tag:blogger.com,1999:blog-54852912824548777862024-03-05T02:46:10.216-08:00AspBucketAspBucket offers ASP.NET, C#, VB, Jquery, CSS, Ajax, SQL tutorials. It is the best place for programmers to learnShivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.comBlogger160125tag:blogger.com,1999:blog-5485291282454877786.post-3466781804524737322023-03-03T07:13:00.003-08:002023-03-03T07:13:48.478-08:00How to add extra SSL certificates in Node JS server?<div><br></div><div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEh3owHctD0-nxzTDlZeXjbDB2nwxI-88ZaNCPxRKUfDTomsEzsxeZDvjq-Hlc5nvW4DQNSxE25OFHM3Iv6gTmIf8VH_rpGp7xQFZ9h5Oa6mF9qrgiNalnyFToUBWuxF3URbC-uoxvYzwMVxC7mBUqc3nz7yqw-8m_CBsdFtq2Sxo9quTTT8i_Bs6zSFVA" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="401" data-original-width="546" height="235" src="https://blogger.googleusercontent.com/img/a/AVvXsEh3owHctD0-nxzTDlZeXjbDB2nwxI-88ZaNCPxRKUfDTomsEzsxeZDvjq-Hlc5nvW4DQNSxE25OFHM3Iv6gTmIf8VH_rpGp7xQFZ9h5Oa6mF9qrgiNalnyFToUBWuxF3URbC-uoxvYzwMVxC7mBUqc3nz7yqw-8m_CBsdFtq2Sxo9quTTT8i_Bs6zSFVA" width="320"></a></div><br></div></div></div>If node server is communicating with other Server & trusted certificate installed on the other server. Then Node Server could get certificate error like "Chain of trust issue". To over come this issue Trusted certificate also need to be added in the Node server.<span></span><a href="http://www.aspbucket.com/2023/03/how-to-add-extra-ssl-certificates-in.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com0tag:blogger.com,1999:blog-5485291282454877786.post-36490359371328974602023-01-22T01:22:00.001-08:002023-01-22T01:22:12.689-08:00DSA problem solution: Climbing stairs<p> </p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgH_IDG91y65ZeTy4hoxxYUu_RxU2aqxVOUwIv4PWT9O2l8R5ClNnCDsDyi0RNTyKoo7EvEqyoLdU8-YGE_iB7jHCUD8OLKsJ2ak3HxN2aKWunN9agdfeIGdQOOuvZAbJ5Jlfae7Ja5_e7xdDKbeqskxMuA4__82f26kUtJmcWdpvhVPma3PlZY3Mb2DQ" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="401" data-original-width="582" height="220" src="https://blogger.googleusercontent.com/img/a/AVvXsEgH_IDG91y65ZeTy4hoxxYUu_RxU2aqxVOUwIv4PWT9O2l8R5ClNnCDsDyi0RNTyKoo7EvEqyoLdU8-YGE_iB7jHCUD8OLKsJ2ak3HxN2aKWunN9agdfeIGdQOOuvZAbJ5Jlfae7Ja5_e7xdDKbeqskxMuA4__82f26kUtJmcWdpvhVPma3PlZY3Mb2DQ" width="320"></a></div><p></p><p>You are climbing a staircase. It takes n steps to reach the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?<span><br><br></span></p><a href="http://www.aspbucket.com/2023/01/dsa-problem-solution-climbing-stairs.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com0tag:blogger.com,1999:blog-5485291282454877786.post-5764419444697708492023-01-21T04:09:00.004-08:002023-01-21T04:10:57.061-08:00Create a valid self signed certificate using openssl and deploy in apache tomcat<p> </p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjscbcc4bT9TZ5NeQiHygdWQ7xp4HU6yvdmBoMjrMMQWu0HXBOP7t7QLCRY2PJpSyUHbFVjqYY-BO8TaxKMu2sSpkuRuvrGVg_LbsiGfA6sgrkQutK8ZShEVn2z7QO5eGTj1Pu9xVnlVLqzdOvSzQhbigKthWAwO8cjiPE_3fAEpX7YeDwSc-HRT35k1w" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="210" data-original-width="651" height="103" src="https://blogger.googleusercontent.com/img/a/AVvXsEjscbcc4bT9TZ5NeQiHygdWQ7xp4HU6yvdmBoMjrMMQWu0HXBOP7t7QLCRY2PJpSyUHbFVjqYY-BO8TaxKMu2sSpkuRuvrGVg_LbsiGfA6sgrkQutK8ZShEVn2z7QO5eGTj1Pu9xVnlVLqzdOvSzQhbigKthWAwO8cjiPE_3fAEpX7YeDwSc-HRT35k1w" width="320"></a></div><div class="separator" style="clear: both; text-align: left;">This article we are going to explain how to use openssl to create valid self signed certificate & deploy it on the tomcat server.</div><div class="separator" style="clear: both; text-align: left;"><br></div><span></span><a href="http://www.aspbucket.com/2023/01/create-valid-self-signed-certificate.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com0tag:blogger.com,1999:blog-5485291282454877786.post-69125625579784729722023-01-13T06:34:00.006-08:002023-01-13T06:35:41.176-08:00DSA problem solution: Trapping Rain Water<p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjDYBOuMpI_StkrcoQ8d2Onjz5lx17mKUcW0ojX2eOBLCsJc4Ck7Whojp0noi4rNJtLWRl61kFdhYtaxNc4hZQNT0Oi8kFsHFUe-tRBTTPZ7VkNWOGWsDeUDFKYc4no6TFNGyN6uIfStBrRnssCPwxc7hyVCIgkttUoQ9qSGoTzzIGIo2YflTsAQDJHIg" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="288" data-original-width="727" height="127" src="https://blogger.googleusercontent.com/img/a/AVvXsEjDYBOuMpI_StkrcoQ8d2Onjz5lx17mKUcW0ojX2eOBLCsJc4Ck7Whojp0noi4rNJtLWRl61kFdhYtaxNc4hZQNT0Oi8kFsHFUe-tRBTTPZ7VkNWOGWsDeUDFKYc4no6TFNGyN6uIfStBrRnssCPwxc7hyVCIgkttUoQ9qSGoTzzIGIo2YflTsAQDJHIg" width="320"></a></div><br><br><p></p><p>Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.</p><p><b>Example 1:</b></p><p>Input: height = [0,1,0,2,1,0,1,3,2,1,2,1]</p><p>Output: 6</p><span></span><a href="http://www.aspbucket.com/2023/01/dsa-problem-solution-trapping-rain-water.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com0tag:blogger.com,1999:blog-5485291282454877786.post-11559233938672231322023-01-13T06:19:00.006-08:002023-03-19T09:50:05.681-07:00DSA Problem solution: Find Kth Largest Element in an Array using Heap in C#<p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgeWcHE3koT74ZR815xCqWGHXupcNzgeaWdukFsdJEmms6Djkkp1ZTHCkAxdD_1JDQP_Y5kXVxS2HkQhvXct8g6Eerxf6U6ZOxC1yE7Bbw2q5ggBJNkYi-gzE9CP_nsHLnb5Uf3W43HFgJFr1Omfjg0kwK5RPHiiDGt0e9cn9aS-ClPfdBzOb3IOvljyg" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="338" data-original-width="1112" height="97" src="https://blogger.googleusercontent.com/img/a/AVvXsEgeWcHE3koT74ZR815xCqWGHXupcNzgeaWdukFsdJEmms6Djkkp1ZTHCkAxdD_1JDQP_Y5kXVxS2HkQhvXct8g6Eerxf6U6ZOxC1yE7Bbw2q5ggBJNkYi-gzE9CP_nsHLnb5Uf3W43HFgJFr1Omfjg0kwK5RPHiiDGt0e9cn9aS-ClPfdBzOb3IOvljyg" width="320"></a></div><br><br><p></p><p>Given an integer array nums and an integer k, return the kth largest element in the array.</p><p>Note that it is the kth largest element in the sorted order, not the kth distinct element.</p><p><br></p><p><b>Example 1:</b></p><p>Input: nums = [3,2,1,5,6,4], k = 2</p><p>Output: 5</p><span></span><a href="http://www.aspbucket.com/2023/01/dsa-problem-solution-find-kth-largest.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com0tag:blogger.com,1999:blog-5485291282454877786.post-49335849217979328682023-01-07T06:16:00.004-08:002023-01-07T06:18:50.735-08:00DSA Problem Solution: Binary Search<p></p><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><br></div><br><br></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3_jVhWfMjdcPI69xokrksAV8B16NqZgBH8-MQwLKENwIWvk6mtFr8ctav_MCddoS7VAJlVpysi8ZR-Xw2CrR_jhC664rGuDTospg_ivfTjiXP7q6r4ElrrW7UiLOqVwAz0wR_1rHWrApFzx4z-iVtr4s_rtT8848_q_PI4Zm-T1z3SuyNK74vYI55Pw/s593/Binary%20search.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="184" data-original-width="593" height="99" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3_jVhWfMjdcPI69xokrksAV8B16NqZgBH8-MQwLKENwIWvk6mtFr8ctav_MCddoS7VAJlVpysi8ZR-Xw2CrR_jhC664rGuDTospg_ivfTjiXP7q6r4ElrrW7UiLOqVwAz0wR_1rHWrApFzx4z-iVtr4s_rtT8848_q_PI4Zm-T1z3SuyNK74vYI55Pw/s320/Binary%20search.JPG" width="320"></a></div><br><p></p><p>Given an array of integers nums which is sorted in ascending order, and an integer target, write a function to search target in nums. If target exists, then return its index. Otherwise, return -1.</p><p>Example 1:</p><p>Input: nums = [-6,1,3,5,9,11], target = 9</p><p>Output: 4</p><p>Explanation: 9 exists in nums and its index is 4</p><span></span><a href="http://www.aspbucket.com/2023/01/dsa-problem-solution-binary-search.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com0tag:blogger.com,1999:blog-5485291282454877786.post-24333085349762244452022-12-26T08:34:00.006-08:002023-01-07T06:08:46.476-08:00DSA Problem Solution: Product of Array Except Self<p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEiEGzZYvWPCU2AQaggeTHWJNF2hc5c7lvaZ2ntq1boemswu5au1gT5f_bo27r5WeRbXqecuIkliY54wEA9iTCzROBq34rj_JAViOIe-KNjzJZgOXI720qRsx7Fy07icYLLdxda1a772_WU5UxKDgMCIIUy_9wtgv8De6WHjJKC2dkN6pbNuaa1wiNRYTg" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="259" data-original-width="1228" height="67" src="https://blogger.googleusercontent.com/img/a/AVvXsEiEGzZYvWPCU2AQaggeTHWJNF2hc5c7lvaZ2ntq1boemswu5au1gT5f_bo27r5WeRbXqecuIkliY54wEA9iTCzROBq34rj_JAViOIe-KNjzJZgOXI720qRsx7Fy07icYLLdxda1a772_WU5UxKDgMCIIUy_9wtgv8De6WHjJKC2dkN6pbNuaa1wiNRYTg" width="320"></a></div><br><br><p></p><p>Given an integer array nums, return an array answer such that answer[i] is equal to the product of all the elements of nums except nums[i].</p><p>The product of any prefix or suffix of nums is guaranteed to fit in a 32-bit integer.</p><p>Example 1:</p><p>Input: nums = [1,2,3,4]</p><p>Output: [24,12,8,6]</p><span></span><a href="http://www.aspbucket.com/2022/12/dsa-problem-product-of-array-except-self.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com0tag:blogger.com,1999:blog-5485291282454877786.post-66282675192092092862022-12-10T01:24:00.007-08:002023-03-07T22:25:52.389-08:00DSA Problem Solution: Two Sum<div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjRMd6NCh4qNH2RkQhmxlrL5lMlRWsJ6VqP_YKZwHRZWayZqXAHnscWEAMSkBVRep_7zRkVhDaBWhDVM9jKsaHAUbc4wJSlI6GmJxmW27Epm_L663shv7-B0AmnlnwL3hZZzyct976ErYzGndhUyBZsfEhGPeEcP-pu6ndou4JaLiVAc2pkH8e8a5bxVw" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="202" data-original-width="851" height="76" src="https://blogger.googleusercontent.com/img/a/AVvXsEjRMd6NCh4qNH2RkQhmxlrL5lMlRWsJ6VqP_YKZwHRZWayZqXAHnscWEAMSkBVRep_7zRkVhDaBWhDVM9jKsaHAUbc4wJSlI6GmJxmW27Epm_L663shv7-B0AmnlnwL3hZZzyct976ErYzGndhUyBZsfEhGPeEcP-pu6ndou4JaLiVAc2pkH8e8a5bxVw" width="320"></a></div><br><br></div><div><br></div>Given an unsorted integer array, find a pair with the given sum in it. <div><br></div><div> Input : array[] = [7, 8, 2, 5, 3, 1], target = 10 </div><div>Output: (8, 2) or (7, 3)</div><div><br></div><div>If no pair with the given sum exists, the solution should return the pair (-1, -1). </div><div>Input : array[] = [5, 6, 2, 8, 1, 9], target = 12
Output: (-1, -1)
</div><div><br></div><span></span><a href="http://www.aspbucket.com/2022/12/dsa-two-sum.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com0tag:blogger.com,1999:blog-5485291282454877786.post-13072866744816396032022-09-06T06:30:00.009-07:002022-09-06T06:35:58.946-07:00 How to setup Tomcat to support SSL or https?<p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEitKDnTbYqxSzCuRiCQJK2cPWdTeYM3GzB9PWS0PSWqD8F4N8AIrOo1oke7xJtqufwO-njYBQE2yoy4IVxyvbC2agemETNvtdRj6XAjpxjuRduO9uEw29t1rjQSZkWrxMsSe2IoMJEr9j2tn2601mFn6potZEZ7JDVFpdME2kcoEhHNNxIOtooo73QpDQ" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="120" data-original-width="525" height="73" src="https://blogger.googleusercontent.com/img/a/AVvXsEitKDnTbYqxSzCuRiCQJK2cPWdTeYM3GzB9PWS0PSWqD8F4N8AIrOo1oke7xJtqufwO-njYBQE2yoy4IVxyvbC2agemETNvtdRj6XAjpxjuRduO9uEw29t1rjQSZkWrxMsSe2IoMJEr9j2tn2601mFn6potZEZ7JDVFpdME2kcoEhHNNxIOtooo73QpDQ" width="320"></a></div><br><br><p></p><p>This article we will setup https on tomcat. </p><p><b>Prerequisite :</b></p><p>1)JDK installed + JAVA_HOME environment variable setup</p><p>2) Tomcat 8.0 archieve file</p><span></span><a href="http://www.aspbucket.com/2022/09/how-to-setup-tomcat-to-support-ssl-or.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com0tag:blogger.com,1999:blog-5485291282454877786.post-41170998220461284942021-09-27T00:33:00.007-07:002021-09-27T04:55:37.444-07:00Priority queue implementation using BlockingCollection<p> </p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSVAkkc04fvqiHMoQ4Jph0qAq_oFYtjUG06fbRXMJkz_7B0C4IPpVVj6Iu0oR3CQp_JozQ0zaVkWaKiUIwIGeKLtv94X0Vd5FxG8ixmErsAXXfNJ2GgMeSMtwmM4CDbby6iuOXB6EoyEhyphenhyphen/" style="margin-left: 1em; margin-right: 1em;"><img data-original-height="447" data-original-width="1364" height="131" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSVAkkc04fvqiHMoQ4Jph0qAq_oFYtjUG06fbRXMJkz_7B0C4IPpVVj6Iu0oR3CQp_JozQ0zaVkWaKiUIwIGeKLtv94X0Vd5FxG8ixmErsAXXfNJ2GgMeSMtwmM4CDbby6iuOXB6EoyEhyphenhyphen/w400-h131/image.png" width="400"></a></div><br><p></p><div class="separator" style="clear: both; text-align: center;"><br></div>In this article We will discuss about priority queue implementation. <p></p><div><b>Problem statement:</b></div><div><ol style="text-align: left;"><li>There are multiple queue Queue 1, Queue 2, Queue 3..... etc.</li><li>Queue 1 have higher priority than Queue 2 and Queue 2 have higher priority than queue 3 same pattern will be followed for other queues.</li><li>Elements can be pass to the queue at any point time.</li><li>Element priority will be depend on queue periority & elements inside the current queue.<span></span></li></ol></div><a href="http://www.aspbucket.com/2021/09/periority-queue-implementation-using.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com0tag:blogger.com,1999:blog-5485291282454877786.post-16449535367949434372020-10-29T02:07:00.005-07:002020-10-29T02:40:55.377-07:00Display the text over notify icon image in Windows Application(Win forms, WPF)<p> In current post we will discuss how to write text over the image. An application that runs on system tray and occasionally shows notification using the system tray default notifications. Below code could be helpful to modify the icon tray of image.</p><p><br></p><p><br></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-yuHbrfzmddLuAOJJEsrobFpy77n200Vtk2un_gA37mYKK3X3SwsxJ8iIPwI4VI5927OLnku9gLfC0-xyBC755sDkOynOo8vENC3_w-O28gSnYDZO3uc4QTXKjpfG7K2muytgyJ1Xm_se/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="227" data-original-width="279" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-yuHbrfzmddLuAOJJEsrobFpy77n200Vtk2un_gA37mYKK3X3SwsxJ8iIPwI4VI5927OLnku9gLfC0-xyBC755sDkOynOo8vENC3_w-O28gSnYDZO3uc4QTXKjpfG7K2muytgyJ1Xm_se/" width="295"></a></div><br><br><p></p>
<a href="http://www.aspbucket.com/2020/10/display-text-over-notify-icon-image-in.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com0tag:blogger.com,1999:blog-5485291282454877786.post-2839674649158079962018-12-18T03:21:00.001-08:002022-12-10T01:26:07.710-08:00Bubble sort in c#<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikZ_kR_-Jk59MDenl5ZjSWRjZMMvJa7H7wbzYlCgtMsc1eOSunDGUc_7ExWOmSUGSvPbzEC9eP1ITVRMABfQlDjSjNjqlbcW77SgU-CRrqlsbwGeaEapso1PvuD_PIxOXPpPD5HgGQNqxo/s1600/bubble-sort.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="190" data-original-width="401" height="151" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikZ_kR_-Jk59MDenl5ZjSWRjZMMvJa7H7wbzYlCgtMsc1eOSunDGUc_7ExWOmSUGSvPbzEC9eP1ITVRMABfQlDjSjNjqlbcW77SgU-CRrqlsbwGeaEapso1PvuD_PIxOXPpPD5HgGQNqxo/s320/bubble-sort.PNG" width="320"></a></div>
Bubble sort is the simplest sorting algorithm. As per name the sorting will be done sequentially by iterating down an array to be sorted from the first element to the last, comparing each pair of elements and switching their positions if necessary. This process is repeated as many times as necessary, until the array is sorted.<br>
</div><a href="http://www.aspbucket.com/2018/12/bubble-sort-in-c.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com0tag:blogger.com,1999:blog-5485291282454877786.post-31848664020863836402018-11-27T02:41:00.002-08:002018-11-27T03:07:10.933-08:00Inversion of Control and how it's different from the dependency inversion principle?<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
</div>
Most of the people mix the DIP, IOC and DI together but, Inversion of Control is part of a dependency inversion principle. As per dependency inversion principle high level module should not be dependent on lower level modules so Inversion of Control is a way to solve this problem.<br>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCVUsm9Xz7Byhz8PLnOcP4y_VYy_vLHZevz9OFGRt1qMtsODX5ziN2rRkZMuHlBNVERFwgl-VHTK4DIFNnlcU037fAAPVegPla1myeuftOSdxdiYvuCCw2XKg_enbRiB9D6m7AIev_p3gH/s1600/IOC.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="357" data-original-width="785" height="181" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCVUsm9Xz7Byhz8PLnOcP4y_VYy_vLHZevz9OFGRt1qMtsODX5ziN2rRkZMuHlBNVERFwgl-VHTK4DIFNnlcU037fAAPVegPla1myeuftOSdxdiYvuCCw2XKg_enbRiB9D6m7AIev_p3gH/s400/IOC.PNG" width="400"></a></div>
<br>
</div><a href="http://www.aspbucket.com/2018/11/inversion-of-control-and-how-its.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com0tag:blogger.com,1999:blog-5485291282454877786.post-85205735542587564962018-11-27T02:13:00.000-08:002018-11-27T02:13:04.436-08:00Dependency inversion Principle<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYrB9NLJRjOUsaK3GySdM1Q0JY7dPEgwhHV-gTG-YpQE3I_Hz_r3HdLutMM53VzGfh1cBivIJH6iXDKfzRnyv-CvgIs91uqpzTMlmaDYJkUNlfX-Q9GHERN6NHr2AcNyMnSixJhhVJ-O2G/s1600/Dependency-Inverstion.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="527" data-original-width="817" height="206" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYrB9NLJRjOUsaK3GySdM1Q0JY7dPEgwhHV-gTG-YpQE3I_Hz_r3HdLutMM53VzGfh1cBivIJH6iXDKfzRnyv-CvgIs91uqpzTMlmaDYJkUNlfX-Q9GHERN6NHr2AcNyMnSixJhhVJ-O2G/s320/Dependency-Inverstion.PNG" width="320"></a></div>
Dependency Inversion principle is a part of SOLID principle. It was given by Bob Martin, who is founder of SOLID principles.<br>
<br>
<b>Bob's Definition</b><br>
<br>
<ul style="text-align: left;">
<li>High level module should not be dependent on lower level modules. Both should dependent on abstraction.</li>
<li>Abstraction should not dependent on details. Details should be dependent on abstraction.</li>
</ul>
<div>
</div></div><a href="http://www.aspbucket.com/2018/11/dependency-inversion-principle.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com0tag:blogger.com,1999:blog-5485291282454877786.post-23675782274621192982018-11-01T08:20:00.000-07:002018-11-01T08:21:37.332-07:00Kadane's Algorithm solution in c#<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhg8jHjDCDTKwmG7HHjNdEMzOimT6T7gaGZ7U683Eow4SldMHsJnuI8Mt4ChUZTo3mhuzfZ8tt2usIODZkCSpYgkn_xOaVAaJMjjzQAinxrXqx2z5QIrmY2mmmX09h62GMtd7314tblz65G/s1600/algo.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="134" data-original-width="515" height="83" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhg8jHjDCDTKwmG7HHjNdEMzOimT6T7gaGZ7U683Eow4SldMHsJnuI8Mt4ChUZTo3mhuzfZ8tt2usIODZkCSpYgkn_xOaVAaJMjjzQAinxrXqx2z5QIrmY2mmmX09h62GMtd7314tblz65G/s320/algo.PNG" width="320"></a></div>
In the current article we are going to provide solution of the kadane's algorithm. Kadane's alogrithm is also known as <b>"Maximum sub-array problem"</b>.<br>
<br>
</div><a href="http://www.aspbucket.com/2018/11/kadanes-algorithm-solution-in-c.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com0tag:blogger.com,1999:blog-5485291282454877786.post-92189233830509749382018-06-12T23:00:00.001-07:002018-06-12T23:01:53.900-07:00When to use interfaces and when to use abstract classes?<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSfl743TvtOCkY2EUs-fO_1VTMfwH413KsbtGLssXqaL3Id8Ng6U_PyG6kalPgn6iA0k7_Tl7PASBPNzLxtHAjGjNj4ZEquo-x3-qjN6JJd-k0LmyWRqR688w-DfZnatL0xho7b68daQpx/s1600/interface-abstract.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="246" data-original-width="394" height="199" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSfl743TvtOCkY2EUs-fO_1VTMfwH413KsbtGLssXqaL3Id8Ng6U_PyG6kalPgn6iA0k7_Tl7PASBPNzLxtHAjGjNj4ZEquo-x3-qjN6JJd-k0LmyWRqR688w-DfZnatL0xho7b68daQpx/s320/interface-abstract.PNG" width="320"></a></div>
In current article we will discuss, When to use interfaces, and when to use abstract classes? Most of the time developers are confused on design time weather to use interface or abstract class.<br>
</div><a href="http://www.aspbucket.com/2018/06/when-to-use-interfaces-and-when-to-use.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com1tag:blogger.com,1999:blog-5485291282454877786.post-9598679013894606862018-06-05T22:24:00.001-07:002018-06-05T22:25:51.404-07:00What are Indexers in C#?<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIOl_oB9Tmkf9WW5O0AmQVtrIm_5XobnYtHzpOP3xYu_5wEjHB4TjThS5ylqN7DLMud9zNY_ZmOBHp5JMWx4SOT095SKE0DDtBD3HtWek0HZdXIqAVqqIPdUu8IFgH8AkuPNjUvtH5LqbQ/s1600/indexer.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="169" data-original-width="409" height="132" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIOl_oB9Tmkf9WW5O0AmQVtrIm_5XobnYtHzpOP3xYu_5wEjHB4TjThS5ylqN7DLMud9zNY_ZmOBHp5JMWx4SOT095SKE0DDtBD3HtWek0HZdXIqAVqqIPdUu8IFgH8AkuPNjUvtH5LqbQ/s320/indexer.PNG" width="320"></a></div>
In current article I am going to discuss How to implement Indexers? Indexer is an object which is virtually behaving as an array. Where declaration on indexer is similar to properties & <b>get </b>and <b>set </b>accessors are use to define an indexer.<br>
</div><a href="http://www.aspbucket.com/2018/06/what-are-indexers-in-c-net.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com0tag:blogger.com,1999:blog-5485291282454877786.post-71091487335529352462018-05-07T11:23:00.005-07:002018-05-07T11:23:51.601-07:00How to generate partial class in c#?<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh77Ko3UCZtN9FQngGOjlLIVIJk2HzdBsqMRsl299eCkp05TbVeYAjzu3_xd-1KFPX-34bwGYRl5OSPk_T-aPuLq-bYRwjpIHi79EkEWkuWfKFuJLiPcTvgNsiYkppNtLLN8GE_z3VNiDQN/s1600/partial-class.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="149" data-original-width="420" height="113" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh77Ko3UCZtN9FQngGOjlLIVIJk2HzdBsqMRsl299eCkp05TbVeYAjzu3_xd-1KFPX-34bwGYRl5OSPk_T-aPuLq-bYRwjpIHi79EkEWkuWfKFuJLiPcTvgNsiYkppNtLLN8GE_z3VNiDQN/s320/partial-class.PNG" width="320"></a></div>
In this article I am going to discuss about partial classes in c#. Partial class provides a facility to create single class file code to multiple class files. "<b>Partial" </b>keyword is used to implement the partial class.<br>
</div><a href="http://www.aspbucket.com/2018/05/how-to-generate-partial-class-in-c.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com0tag:blogger.com,1999:blog-5485291282454877786.post-17019477476138774002018-04-27T12:27:00.001-07:002018-04-27T12:27:25.177-07:00How to create parallel task in C#? <div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtofYiIEffqy2abesG1OfwQPBRCMISi7bgiCiea1akCyX2zo2EQAKvve24ZbKCfB0ju2nhXobkQ_4GkU3aSBbEz2KlAA5Z6jhvvEk9fUh3HNrubXMwuh9ZpXIVge6TppfRATWSP5AUNFhd/s1600/Parllel-task.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="142" data-original-width="361" height="125" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtofYiIEffqy2abesG1OfwQPBRCMISi7bgiCiea1akCyX2zo2EQAKvve24ZbKCfB0ju2nhXobkQ_4GkU3aSBbEz2KlAA5Z6jhvvEk9fUh3HNrubXMwuh9ZpXIVge6TppfRATWSP5AUNFhd/s320/Parllel-task.PNG" width="320"></a></div>
In this article I will explain How to handle one or more task at a time. Please read below scenarios to understand.<br>
</div><a href="http://www.aspbucket.com/2018/04/how-to-create-parallel-task-in-c.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com0tag:blogger.com,1999:blog-5485291282454877786.post-80323305570684599982018-04-01T02:52:00.000-07:002018-04-03T12:13:58.154-07:00Visitor Design Pattern in c#<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLLwMNhrUt4LWMCItrfxgUc4GXvSCNNx08dNp7KkJMEHEvP7X9xjOHRWWfQqeXFn4tgFWZnQe0bgqHxXPXngtBi3ZuvMVgrpqgwzmYhKrdkhR19cZGmmcYouzDc-lnwY-Z327EwRc9-DTC/s1600/visitor-pattern.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="127" data-original-width="433" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLLwMNhrUt4LWMCItrfxgUc4GXvSCNNx08dNp7KkJMEHEvP7X9xjOHRWWfQqeXFn4tgFWZnQe0bgqHxXPXngtBi3ZuvMVgrpqgwzmYhKrdkhR19cZGmmcYouzDc-lnwY-Z327EwRc9-DTC/s1600/visitor-pattern.PNG"></a></div>
Visitor pattern is a part of behavioral design pattern. Visitor pattern will not change the current code structure It is used to add the new functionality in existing code. Classes which holds the new behaviors are commonly known as <b>Visitors</b>.<br>
</div><a href="http://www.aspbucket.com/2018/04/visitor-design-pattern-in-c.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com0tag:blogger.com,1999:blog-5485291282454877786.post-70679579625683780632017-12-24T23:53:00.001-08:002017-12-24T23:56:41.170-08:00Introduction to ReactJS<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZPaebebjpt4UkWwle1GdObZoxa2uosYh91sB0KVYX1I5LDGK02TNg6kY5XT6QTmTBY4VctV4iQrVU88H3aX9xQpl_vgIQ9aQUcBuIjM4RLmKF8-odrBrpmonN6E83ws5sLRKB9QySsxaI/s1600/ReactJS.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="174" data-original-width="324" height="171" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZPaebebjpt4UkWwle1GdObZoxa2uosYh91sB0KVYX1I5LDGK02TNg6kY5XT6QTmTBY4VctV4iQrVU88H3aX9xQpl_vgIQ9aQUcBuIjM4RLmKF8-odrBrpmonN6E83ws5sLRKB9QySsxaI/s320/ReactJS.PNG" width="320"></a></div>
ReactJS is a open source javascript library. It is used to create single page application(SPA) & large web application. It was developed by engineers at facebook.<br>
</div><a href="http://www.aspbucket.com/2017/12/introduction-to-reactjs.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com0tag:blogger.com,1999:blog-5485291282454877786.post-73857730228193487582017-10-12T09:44:00.003-07:002017-10-12T09:44:42.252-07:00How to detect the event when new USB is connected?<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgr5D81Vk9KnspFPOYZSRVysj1tTjbJrSRqqJ5tja_RnE7e7CVY7tPGeJ0cUrX2LTS5kowuiNYhdwB8jC_oyi522uaHmvXtmuKRmddOFl0r8sxEUJAQzk5-fxTLtPOSlQwLwEauGHXWRYSV/s1600/USB-detection.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="133" data-original-width="404" height="105" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgr5D81Vk9KnspFPOYZSRVysj1tTjbJrSRqqJ5tja_RnE7e7CVY7tPGeJ0cUrX2LTS5kowuiNYhdwB8jC_oyi522uaHmvXtmuKRmddOFl0r8sxEUJAQzk5-fxTLtPOSlQwLwEauGHXWRYSV/s320/USB-detection.PNG" width="320"></a></div>
In this article I am going to discuss, How to trigger an event when a device is added or removed from the system? Let's start with an example and implement the USB detector.<br>
<br>
</div><a href="http://www.aspbucket.com/2017/10/how-to-detect-event-when-new-usb-is.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com0tag:blogger.com,1999:blog-5485291282454877786.post-39562073397725177662017-10-06T10:46:00.002-07:002018-04-01T02:55:52.593-07:00Introduction to design patterns<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkNuV7ytziWmKI5sC58gkskGUSkGNkuSzb3oa5rInwsveBbL3cZ8t4DCRBJTBPvRKtVa9wbC4UPWWTsevGwOOzY6q0A_QV1owhQNOmG2NAGUu72cMJCPOK0sFg6WnmOaXIdjBLSUVvtZI2/s1600/Design-Pattern.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="179" data-original-width="680" height="168" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkNuV7ytziWmKI5sC58gkskGUSkGNkuSzb3oa5rInwsveBbL3cZ8t4DCRBJTBPvRKtVa9wbC4UPWWTsevGwOOzY6q0A_QV1owhQNOmG2NAGUu72cMJCPOK0sFg6WnmOaXIdjBLSUVvtZI2/s640/Design-Pattern.PNG" width="640"></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
This article gives you an introduction of design pattern. Design patterns help to solve the issue related to software development problems. The solution will be minimal coupling between modules.<br>
</div><a href="http://www.aspbucket.com/2017/10/net-design-patterns.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com1tag:blogger.com,1999:blog-5485291282454877786.post-46602824155909974712017-08-04T05:00:00.001-07:002017-08-05T22:04:15.008-07:00How to create self-hosted Web API?<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLNFiIfvNw6jqY8dvNQ5jODSOCYt7exEaJ_S7qa_vULIsISlbFzS-mCJOwqvLMtuIzr1rffiW_3_LpVnhZhiv5lqGarmJ5ngSPqABS_yvG6jpBBy__DYieTkRDUr2szeBYs-B2PNIsTN5H/s1600/Owin.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="247" data-original-width="765" height="206" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLNFiIfvNw6jqY8dvNQ5jODSOCYt7exEaJ_S7qa_vULIsISlbFzS-mCJOwqvLMtuIzr1rffiW_3_LpVnhZhiv5lqGarmJ5ngSPqABS_yvG6jpBBy__DYieTkRDUr2szeBYs-B2PNIsTN5H/s640/Owin.PNG" width="640"></a></div>
In this article I am going to discuss how to create a self hosting service in Web API. You can self-host a web API in your own host process. Please follow the below steps to create a self host API.<br>
<br>
</div><a href="http://www.aspbucket.com/2017/08/how-to-create-self-hosted-web-api.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com0tag:blogger.com,1999:blog-5485291282454877786.post-51622019615841659672017-07-05T11:02:00.003-07:002017-07-05T11:04:37.330-07:00How to create a single page application using AngularJS, WebAPI & MVC?<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMcS9iIt-TyIBNcDedRrqoOLdSvmqlmTUKh0xqx222AJiZv-I4RzszHXUT7xRCq1bRQyBJJZO2nVoV0gD9JJwijEQXYGfAC2QL48ORYO13TkKEg_QTEfiS24AxMN6IIWTr2LzcF23Kh9EE/s1600/Angularjs.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="192" data-original-width="435" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMcS9iIt-TyIBNcDedRrqoOLdSvmqlmTUKh0xqx222AJiZv-I4RzszHXUT7xRCq1bRQyBJJZO2nVoV0gD9JJwijEQXYGfAC2QL48ORYO13TkKEg_QTEfiS24AxMN6IIWTr2LzcF23Kh9EE/s1600/Angularjs.PNG"></a></div>
In this article I am going discuss How to create a single page application using <b>AngularJS</b>, <b>Web-API </b>and <b>MVC</b> with a basic example for beginners. How to implement <b>routing</b>, <b>controllers</b> and <b>services</b> using angular. Please follow the below steps for creating the Angular application.<br>
</div><a href="http://www.aspbucket.com/2017/07/how-to-create-single-page-application.html#more">Read more »</a>Shivam Srivastavahttp://www.blogger.com/profile/08714015342682574969noreply@blogger.com0