<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sumit Gupta</title>
	<atom:link href="http://www.sumitgupta.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sumitgupta.net</link>
	<description>bookmarking my life</description>
	<lastBuildDate>Wed, 18 Jan 2012 19:24:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Case Sensitive Search in SQL Server</title>
		<link>http://www.sumitgupta.net/case-sensitive-search-in-sql-server/</link>
		<comments>http://www.sumitgupta.net/case-sensitive-search-in-sql-server/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 19:23:36 +0000</pubDate>
		<dc:creator>Sumit Gupta</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[MS SQL Server]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[COLLATE]]></category>
		<category><![CDATA[Password Protection]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.sumitgupta.net/?p=546</guid>
		<description><![CDATA[Mysql mostly provide a Case sensitive search because of its default collate configuration. However SQL server use different collate and hence by default it is not case sensitive. It is good to not having case sensitive search by default, as except password compare you most often doesn&#8217;t need case sensitive search. Do you? well I [...]]]></description>
			<content:encoded><![CDATA[<p>Mysql mostly provide a Case sensitive search because of its default collate configuration. However SQL server use different collate and hence by default it is not case sensitive. It is good to not having case sensitive search by default, as except password compare you most often doesn&#8217;t need case sensitive search. Do you? well I never really need that, anyways. Those who wonder how they can get case sensitive search should look this good article</p>
<p><a href="http://blog.sqlauthority.com/2007/04/30/case-sensitive-sql-query-search/">http://blog.sqlauthority.com/2007/04/30/case-sensitive-sql-query-search/</a></p>
<p>It simply case to change the collate value of column for which you want to get case sensitivity, by defining COLLATE Latin1_General_CS_AS to field declaration.</p>
<p>You can check existing collate of each field using </p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">EXEC</span> sp_help <span style="color: #66cc66;">&#91;</span>tablename<span style="color: #66cc66;">&#93;</span></pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #66cc66;">&#91;</span>tablename<span style="color: #66cc66;">&#93;</span> <span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">COLUMN</span> Password <span style="color: #993333; font-weight: bold;">VARCHAR</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">32</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">COLLATE</span> Latin1_General_CS_AS</pre></td></tr></table></div>

<p>However why are you wondering for case sensitive for password field? aren&#8217;t you doing MD5 or other conversion on your password for security already ? <img src='http://www.sumitgupta.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sumitgupta.net/case-sensitive-search-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HostGator: Impressed me, but still not good</title>
		<link>http://www.sumitgupta.net/hostgator-impressed-me-but-still-not-good/</link>
		<comments>http://www.sumitgupta.net/hostgator-impressed-me-but-still-not-good/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 10:01:03 +0000</pubDate>
		<dc:creator>Sumit Gupta</dc:creator>
				<category><![CDATA[Blog: My thoughts]]></category>

		<guid isPermaLink="false">http://www.sumitgupta.net/?p=543</guid>
		<description><![CDATA[After a very bad experience in hosting service and try like of godaddy, 1and1, bluehost and few other, I finally reach HostGator. They are still a traditional hosting provider but at least their server works. It is not that you cannot find a good hosting then hostGator, but comparing to $$ spend on hosting decide [...]]]></description>
			<content:encoded><![CDATA[<p>After a very bad experience in hosting service and try like of godaddy, 1and1, bluehost and few other, I finally reach HostGator. They are still a traditional hosting provider but at least their server works. It is not that you cannot find a good hosting then hostGator, but comparing to $$ spend on hosting decide the quality a lot. I use company like Rackspace and Hosting.com, they are really what a quality hosting should be, but considering their fee, it is not reachable to every day to day client. </p>
<p>However, I use their USA server and it was not quite good, maybe too much overloaded, though for my blog I use their Indian Server and since it is new server and probably not so much loaded yet, it works great for me from last 3 months. They have down time of about 10-15 minute here and there, maybe server just get too overloaded at time, been a shared hosting server, but otherwise it is normally a good speed. My clients are happy that my project management system finally works for them, and this is great achievement in itself.</p>
<p>Anyways, my new working environment is going solid. Increase my productivity a lot just waiting for good results to come with time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sumitgupta.net/hostgator-impressed-me-but-still-not-good/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Akismet Plugin : Great stats</title>
		<link>http://www.sumitgupta.net/akismet-plugin-great-stats/</link>
		<comments>http://www.sumitgupta.net/akismet-plugin-great-stats/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 19:01:09 +0000</pubDate>
		<dc:creator>Sumit Gupta</dc:creator>
				<category><![CDATA[Joyous]]></category>
		<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://www.sumitgupta.net/?p=539</guid>
		<description><![CDATA[Just look at my Stats counter and it show about 6500 spam comments been posted on my blog so far in 1 year time span. This is small number as compare to page visit per day on blog, but still looks like lot of people try to spam me. Phew I am somewhat safe till [...]]]></description>
			<content:encoded><![CDATA[<p>Just look at my Stats counter and it show about 6500 spam comments been posted on my blog so far in 1 year time span. This is small number as compare to page visit per day on blog, but still looks like lot of people try to spam me. Phew I am somewhat safe till date.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sumitgupta.net/akismet-plugin-great-stats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Future: undecided</title>
		<link>http://www.sumitgupta.net/new-future-undecided/</link>
		<comments>http://www.sumitgupta.net/new-future-undecided/#comments</comments>
		<pubDate>Sat, 05 Nov 2011 09:48:25 +0000</pubDate>
		<dc:creator>Sumit Gupta</dc:creator>
				<category><![CDATA[Blog: My thoughts]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[Rant]]></category>

		<guid isPermaLink="false">http://www.sumitgupta.net/?p=537</guid>
		<description><![CDATA[Been involve in technical field, I have encounter lot of technical hurdles. There has been some new problem always, and I somehow manage to escape them by solving those problem. Though not all problems are solvable is what I learn overtime and you need to take different route to nullify the effect of such things. [...]]]></description>
			<content:encoded><![CDATA[<p>Been involve in technical field, I have encounter lot of technical hurdles. There has been some new problem always, and I somehow manage to escape them by solving those problem. Though not all problems are solvable is what I learn overtime and you need to take different route to nullify the effect of such things. In last 3 years, I had a good time with all freedom I enjoying working on project that I love to and try to finish and accomplish them with my methods. It has been a great evolution process for my knowledge.</p>
<p>Though it doesn&#8217;t seems as comfortable now, as the difference between me and my dream has grown bigger. My dream is around building a team of technical person help or work with me to achieve goals we set. We want to achieve the standards we set over other counterpart of ours. Though the term team seems to be the biggest challenge to get at this stage. With economy going no where, finding good person is becoming equally hard. About 18 months ago, you will find all sort of talent around you, but now I see a downside which is effective by two things mainly:</p>
<p>1. No one is willing to take responsibility of work. It is not that this is uncommon thing to human, but it has increased a level where you just cannot trust your employee to any degree. Even if you pay them double the salary, but they know they are just employee and one day they use your double salary to get hired in another company with even more money.</p>
<p>2. Freedom from work, eventually you will read on internet or articles in magazine that people look for freedom at work, but I said they look for freedom from work. If you don&#8217;t ask them to follow your well tested methodology and don&#8217;t ask them to finish in time, they are happy to work for you, but otherwise they says we need freedom to work our way and hence they don&#8217;t like you.</p>
<p>These unfriendly act of candidate here leave me in two mind to go with them or not to go with them. I see some of them does has good thinking brain, but they are not willing to work. I can make good software but I am not god to make good human.</p>
<p>Always in search of good developer who help me go along, but I decide not to work with one who is not more than an employee. I will now work for great peoples only, either they are my client or my team members. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sumitgupta.net/new-future-undecided/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>GDI+ Generic Error</title>
		<link>http://www.sumitgupta.net/gdi-generic-error/</link>
		<comments>http://www.sumitgupta.net/gdi-generic-error/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 08:28:54 +0000</pubDate>
		<dc:creator>Sumit Gupta</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#.NET]]></category>
		<category><![CDATA[VB.NET/VB]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[GDI+]]></category>
		<category><![CDATA[Generic Error]]></category>

		<guid isPermaLink="false">http://www.sumitgupta.net/?p=534</guid>
		<description><![CDATA[I see lot of people asking about GDI+ Generic Error. Since this is &#8220;generic&#8221; error nobody can tell what is wrong with code. So did a work around and get it working. I had this error quite a time in early days of my programming and just found same error in one of junior&#8217;s code. [...]]]></description>
			<content:encoded><![CDATA[<p>I see lot of people asking about GDI+ Generic Error. Since this is &#8220;generic&#8221; error nobody can tell what is wrong with code. So did a work around and get it working. I had this error quite a time in early days of my programming and just found same error in one of junior&#8217;s code. Well from my experience I can say one thing. GDI+ Generic error 99.9% means &#8220;developer miss a detail or overlooked something&#8221;. Most common reason of error are negligence of</p>
<p>1. Path should be physical path</p>
<p>2. All folder should present before you create file.</p>
<p>3. Previous files should be in write mode if case of overriding files.</p>
<p>4. Make sure permission are for writing to User of process.</p>
<p>5. Do not include any special character which windows do not permit in folder name or file name.</p>
<p>6. FILE FORMAT has nothing to do with this error most often.</p>
<p>7. Recheck permission if you try all above.</p>
<p>8. Recheck Path again <img src='http://www.sumitgupta.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>Point #7 and #8 are most important solution and always works for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sumitgupta.net/gdi-generic-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plesk: Not Recommended</title>
		<link>http://www.sumitgupta.net/plesk-not-recommended/</link>
		<comments>http://www.sumitgupta.net/plesk-not-recommended/#comments</comments>
		<pubDate>Mon, 10 Oct 2011 19:19:38 +0000</pubDate>
		<dc:creator>Sumit Gupta</dc:creator>
				<category><![CDATA[Rants]]></category>
		<category><![CDATA[Server Configuration]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[Websitepanel]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.sumitgupta.net/?p=531</guid>
		<description><![CDATA[Lately I got a chance to work on lot of server. Working on 6-7 server in 15 days it not much for a full time server admin, but for a programmer who only manage server to fasten his development process is really long ask. During this process I have 2 encounter with Plesk and unfortunately [...]]]></description>
			<content:encoded><![CDATA[<p>Lately I got a chance to work on lot of server. Working on 6-7 server in 15 days it not much for a full time server admin, but for a programmer who only manage server to fasten his development process is really long ask. During this process I have 2 encounter with Plesk and unfortunately both time Plesk proves to be a pain in neck.</p>
<p>First encounter was during setup a new Windows machine. My client purchase a Leased Term license of plesk and in return plesk send them 10 days temporary license which is expected to install on server and later plesk will auto update the license from online server. This is what I understand during our communication with plesk. However my client took 15 days to pass me the license and server access or you can say they hire me after 15 days of buying license. When I install plesk and try to upload license it naturally says, it is expired. Then we try to contact Plesk support, we call USA support, India Sales support, email to plesk, but no response and no guidance how we get corrected license. After 7 days of talking with plesk we drop the idea of having plesk on server.</p>
<p>Here comes the second problem with plesk. You just cannot run the &#8220;uninstaller&#8221; because they never build uninstaller for their PERFECT software. luckily my client get the computer formatted at no additional cost, otherwise I have to search and delete all file manually, which I don&#8217;t want for two reason. I hate deletion they always leave traces anyways and it is lot more work then expected.</p>
<p>We later use Microsoft&#8217;s Free WebsitePanel. An Awesome software with ease of use for our purpose. We can install any version of SQL Server, MySql, PHP, ASP.NET and configure that easily. Plus we pay nothing to get it.</p>
<p>My second encounter came with a Linux/CentOs Based VPS with Plesk, where I need to upgrade the PHP version from 5.1 to 5.3 on client demand. I search on internet and found that Plesk do not distribute PHP so they do no provide any upgrade method. But there is atomic shell script available to help update. I did that update. PHP was upgraded. We run it, but as you have expected Plesk is broken now. Been on VPS it frequently goes out of memory and create all problems. We ultimately decide to drop that server as it is just test server <img src='http://www.sumitgupta.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>I got saved both time and will never try a Plesk. Horrible software, powered by horrible support. Plesk is good for non experience, but nightmare for custom requirements. Never use it if you love to configure your server for speed or customization.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sumitgupta.net/plesk-not-recommended/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Upgrade on Plesk/Linux</title>
		<link>http://www.sumitgupta.net/php-upgrade-on-plesklinux/</link>
		<comments>http://www.sumitgupta.net/php-upgrade-on-plesklinux/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 10:29:16 +0000</pubDate>
		<dc:creator>Sumit Gupta</dc:creator>
				<category><![CDATA[Operating System]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Server Configuration]]></category>
		<category><![CDATA[atomic]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[PHP Upgrade]]></category>
		<category><![CDATA[Server upgrade]]></category>

		<guid isPermaLink="false">http://www.sumitgupta.net/?p=527</guid>
		<description><![CDATA[Well if you search topic on google you will find lot about it. But here is quick guide for me with little explanation. 1. Plesk do not ship PHP as it&#8217;s integrated part, so it ask you to upgrade outside plesk and they do not provide support on it. 2. On Linux you can use [...]]]></description>
			<content:encoded><![CDATA[<p>Well if you search topic on google you will find lot about it. But here is quick guide for me with little explanation.</p>
<p>1. Plesk do not ship PHP as it&#8217;s integrated part, so it ask you to upgrade outside plesk and they do not provide support on it.</p>
<p>2. On Linux you can use default APT or YUM to upgrade PHP. In my case it is CentOS/Red hat flavour so this article apply to that mainly. Now when I try to upgrade from PHP 5.1 to PHP5.3 I cannot do that as default CentOS repo shows PHP53 as different package and do not come under default upgrade. And it though gets in conflict with PHP5.1&#8242;s current install.</p>
<p>3. I try to Erase existing package and thought to install PHP 5.3 afresh. But it shows a list of 110 dependencies which mainly consist of Plesk&#8217;s module. Otherwise it was fairly okay to YUM ERASE PHP. So, I have to opt for this solution which works 100% for where I read about it.</p>
<p>4. Atomic Corp create a script then on Red Hat favour enable 5.1 to 5.3 upgrade (Their WIKI: <a href="http://www.atomicorp.com/wiki/index.php/PHP">http://www.atomicorp.com/wiki/index.php/PHP</a> ) Once you run this SH script you can re-run YUM to do the update. Steps are:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="sh" style="font-family:monospace;"># wget -q -O -http://www.atomicorp.com/installers/atomic.sh
# yum upgrade php
# service httpd restart</pre></td></tr></table></div>

<p>Bingo !!! PHP upgraded. No server restart needed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sumitgupta.net/php-upgrade-on-plesklinux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Developer Preview : First look</title>
		<link>http://www.sumitgupta.net/windows-developer-preview-first-look/</link>
		<comments>http://www.sumitgupta.net/windows-developer-preview-first-look/#comments</comments>
		<pubDate>Sat, 17 Sep 2011 10:25:57 +0000</pubDate>
		<dc:creator>Sumit Gupta</dc:creator>
				<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Developer preview]]></category>
		<category><![CDATA[Win8]]></category>
		<category><![CDATA[Windows 8]]></category>

		<guid isPermaLink="false">http://www.sumitgupta.net/?p=523</guid>
		<description><![CDATA[Okay, so everyone is sharing their thoughts on Windows 8 aka Windows Developer Preview. I thought to do so. So, if I talk all about in one word. Awesome !!!. This is cool, easy ..err, not really easy at first. But really great. So, what make it feel like it is not easy. Well, the [...]]]></description>
			<content:encoded><![CDATA[<p>Okay, so everyone is sharing their thoughts on Windows 8 aka Windows Developer Preview. I thought to do so. So, if I talk all about in one word. Awesome !!!. This is cool, easy ..err, not really easy at first. But really great. So, what make it feel like it is not easy. Well, the metro application, was great to go there, but when I am on metro apps I miss the &#8220;multi-tasking&#8221; as I do not see the other application. This is explainable as metro style is for general user who love to do saying painting or if you just want to view facebook. Most home user are of that type. But as a software developer, this isn&#8217;t the scenario with us and I believe even a banker won&#8217;t like that when they often switch between different apps etc.</p>
<p>But that doesn&#8217;t mean we cannot work without metro, they have classic desktop to suite our habitual old style. But now in classic desktop I miss two important things. The Start menu which show multiple option if you take mouse over it diagonally, but if you go from taskbar to new start menu it shows nothing and clicking it doesn&#8217;t open your software but open the metro apps dashboard. Not good. The second thing I found missing is that I cannot add the &#8220;myComputer&#8221; or &#8220;Computer&#8221; on Desktop. I am in habit of having that icon since time of Windows 95. Not a big thing to miss but always a good to have on my desktop.</p>
<p>OS is touch centric, but a traditional PC or laptop for office work doesn&#8217;t suite it as mostly users are 18&#8243; away from monitor and they are in parallel to eye. So if you have to work 8 hrs in office desk you cannot touch your monitor to move around. And you cannot work on Tablet from office either. With above missing option for Start Menu, [or maybe I didn't find that menu yet]. It is hard to adopt it for me as developer. But as a normal user, I am more than happy to have those cluster removed for me.</p>
<p>So, I gave 10/10 as user, but will give 7/10 as full day computer user. Though the best thing I love about this preview is it&#8217;s Speed. I mean I use preview on computer with just 1 GB RAM in 3/4yr old processor. And I run faster than Windows 7 on that machine. Application opening and closing is very fast and noticeable for me and my colleagues. Must give 100% marks to microsoft for this.</p>
<p>In all it is great, but have to change few habits to adopt it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sumitgupta.net/windows-developer-preview-first-look/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Static Object in ASP.NET</title>
		<link>http://www.sumitgupta.net/static-object-in-asp-net/</link>
		<comments>http://www.sumitgupta.net/static-object-in-asp-net/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 12:03:22 +0000</pubDate>
		<dc:creator>Sumit Gupta</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#.NET]]></category>
		<category><![CDATA[Concept/algorithm]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[VB.NET/VB]]></category>
		<category><![CDATA[SQLConnection]]></category>
		<category><![CDATA[Static Object]]></category>

		<guid isPermaLink="false">http://www.sumitgupta.net/?p=520</guid>
		<description><![CDATA[Recently I found a problem in one of application we developed. Here my colleague use a Static SqlConnection object through a class in his code. He did that to save his effort of writing and Connection everytime. Everything works great during our development and online reviewing. However as soon as we lauch website in beta [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I found a problem in one of application we developed. Here my colleague use a Static SqlConnection object through a class in his code. He did that to save his effort of writing and Connection everytime. Everything works great during our development and online reviewing. However as soon as we lauch website in beta mode, it start creating problem which seems bit random in occurance and hence were hard to track. During this time I get involve in the project development and I was not very big fan on Static object and start to think against that code, which looks good to me at first. However for some reason I miss the basic of C# and ASP.NET and hence it took a while to recognize the problem was indeed the static code. So for those who did same mistake here is explanation of why Static object didn&#8217;t work in ASP.NET for connection.</p>
<p>When ASP.NET application is first called the complete code is loaded in Memory, specially the pages in App_Code folder and they act as part of web server and not as standard PHP site where they run and loaded on each request. Hence, once this happens all static object become static in memory for each and every request your server will get. This is indeed good way to share information between all User and all request, if that help your case. But in most general case you never want to share information between user in this dynamic method, which is not permanent. Anyways, for connection it really doesn&#8217;t make a difference if you share the object as you anyways want to open connection and close it as soon as you are done. In most case you have 1 simple insert or fetch query to run. And in a website with several users at a time it hardly make a difference as Sqlconnection are open and close in jiffy and took less than 1 second in most cases. For a shopping cart which has 100 -200 order per month this case will work just fine.</p>
<p>However, since connection is shared, there is every possible chance that if you fire a SQL query for say Reader, it get shared with some user on some other session and this is what you don&#8217;t want. It happens to our project when we have Bulk CSV upload which usually take 30-50 seconds, but if someone during this time fires and open other page of website they start to get random Database related errors. From SqlReader is close to field &#8220;Xyz&#8221; is not available, as they tend to share the connection with other requests.</p>
<p>Hope you avoid those problem. The colleague who did this in our project is not working with us anymore, but hey, where ever you are , please don&#8217;t punish us like this again !!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sumitgupta.net/static-object-in-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQLite Bulk Insert on ADO.NET</title>
		<link>http://www.sumitgupta.net/sqlite-bulk-insert-on-ado-net/</link>
		<comments>http://www.sumitgupta.net/sqlite-bulk-insert-on-ado-net/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 15:31:53 +0000</pubDate>
		<dc:creator>Sumit Gupta</dc:creator>
				<category><![CDATA[SQlite]]></category>
		<category><![CDATA[Bulk Insert]]></category>
		<category><![CDATA[Data Management]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLite]]></category>

		<guid isPermaLink="false">http://www.sumitgupta.net/?p=515</guid>
		<description><![CDATA[Today, I was trying to find an alternative on reading a Binary data file to use information in my software. For this I choose to use SQlite the embedded database. It has quite a few steps before I achieve a acceptable speed with database and here is list of those that need to be taken [...]]]></description>
			<content:encoded><![CDATA[<p>Today, I was trying to find an alternative on reading a Binary data file to use information in my software. For this I choose to use SQlite the embedded database. It has quite a few steps before I achieve a acceptable speed with database and here is list of those that need to be taken care for BULK INSERT in SQLite database.</p>
<p>1. Try to simplify your for or while loop as much as you can. For example do not construct the Query within Loop. Give String Query before the start of loop.</p>
<p>2. Loop should be enclosed within the Transaction. Somebody techincally explain me that with Tranasction the fsync function which is responsible of ensuring the  data safely written, is called once only. If you don&#8217;t use Transaction fsync is called on every insert query and proves to be a bottleneck in performance.</p>
<p>3. Index your Table if you have to &#8220;update&#8221; the result within the Loop. In my case I have to first find one value in my Binary file, write it down to Database, then in one of condition to read of file, I might get other value to UPDATE my existing record. So, within my loop I have insert and update commands. And indexing makes it easier to find record when I got more than 50-60K record inserted. It make the speed upgrade of 1500% in my case with just 0.1M records. I have to read 1.5M records.</p>
<p>SQLite is really fun. It works charm with proper techniques used and store more than 1M record for me to work on.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sumitgupta.net/sqlite-bulk-insert-on-ado-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Andriod Development</title>
		<link>http://www.sumitgupta.net/andriod-development/</link>
		<comments>http://www.sumitgupta.net/andriod-development/#comments</comments>
		<pubDate>Thu, 11 Aug 2011 19:44:51 +0000</pubDate>
		<dc:creator>Sumit Gupta</dc:creator>
				<category><![CDATA[Andriod]]></category>
		<category><![CDATA[Mobile Development]]></category>

		<guid isPermaLink="false">http://www.sumitgupta.net/?p=511</guid>
		<description><![CDATA[Sometime things are so easy to do that you never expect them to be that easy. Been a developer I thought to learn Mobile Development, or rather I should say extend my knowledge to new mobile like iPhone or Andriod. I can already do Win Phone software development. Anyways, I was just getting lazy to [...]]]></description>
			<content:encoded><![CDATA[<p>Sometime things are so easy to do that you never expect them to be that easy. Been a developer I thought to learn Mobile Development, or rather I should say extend my knowledge to new mobile like iPhone or Andriod. I can already do Win Phone software development. Anyways, I was just getting lazy to do it thought it is lot of work. But then one day I just search on Youtube for Andriod Mobile Apps, and found few 10-15min &#8220;Hello world&#8221; tutorial. Wola !!! those tutorial just ask you to download same stuff as in Google Andriod SDK site. i.e. Eclipse [I already had that ], PDT for eclipse, SDK, Java SDK what else, well nothing. Google SDK install some API etc to finish it off.</p>
<p>Once I have all these things ready it took 2-3 minute to launch my hello world Andriod application. Later I spent 30 more minute to try to attach button and textfield to application. All was great. Just cannot wait to find more time to build something real cool. But currently experiementing with SQLite database. another project another story. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sumitgupta.net/andriod-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Look</title>
		<link>http://www.sumitgupta.net/new-look/</link>
		<comments>http://www.sumitgupta.net/new-look/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 12:55:54 +0000</pubDate>
		<dc:creator>Sumit Gupta</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://www.sumitgupta.net/?p=508</guid>
		<description><![CDATA[After a long time finally give a new look to my Blog. I love the last design, but thought to get something which is more easy to read and is simple. What is more simple then 1990&#8242;s fashion plain text with modern touch. Thanks for Hybird the. I will modify it with time, but for [...]]]></description>
			<content:encoded><![CDATA[<p>After a long time finally give a new look to my Blog. I love the last design, but thought to get something which is more easy to read and is simple. What is more simple then 1990&#8242;s fashion plain text with modern touch. Thanks for Hybird the. I will modify it with time, but for today it looks great.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sumitgupta.net/new-look/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deleting a Folder with Error &#8220;Path not found&#8221;</title>
		<link>http://www.sumitgupta.net/deleting-a-folder-with-error-path-not-found/</link>
		<comments>http://www.sumitgupta.net/deleting-a-folder-with-error-path-not-found/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 06:26:59 +0000</pubDate>
		<dc:creator>Sumit Gupta</dc:creator>
				<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Delete]]></category>
		<category><![CDATA[Win7]]></category>

		<guid isPermaLink="false">http://www.sumitgupta.net/?p=503</guid>
		<description><![CDATA[Okay after using computer for 13 yrs, I encounter a problem in deleting a empty folder in my system. Interesting ..huh? Whenever I press delete button on folder it says &#8220;Folder not found&#8221;. I try to delete it from command prompt, with same result. When I try to take ownership of folder, yet again it [...]]]></description>
			<content:encoded><![CDATA[<p>Okay after using computer for 13 yrs, I encounter a problem in deleting a empty folder in my system. Interesting ..huh? Whenever I press delete button on folder it says &#8220;Folder not found&#8221;. I try to delete it from command prompt, with same result. When I try to take ownership of folder, yet again it didn&#8217;t allow me as &#8220;folder doesn&#8217;t exists&#8221; so it cannot read the permission to set or reset. So I found this method to work for me.</p>
<p>On Windows Command prompt simply look for ShortName of folder by</p>
<p>dir /x</p>
<p>it shows Old age Shortname [DOS Name ?]</p>
<p>now use regular rmdir command with shortname</p>
<p>rmdir &lt;folder&#8217;s shortname&gt; /s</p>
<p>And it is done.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sumitgupta.net/deleting-a-folder-with-error-path-not-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why we don&#8217;t need VPS?</title>
		<link>http://www.sumitgupta.net/why-we-dont-need-vps/</link>
		<comments>http://www.sumitgupta.net/why-we-dont-need-vps/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 19:45:17 +0000</pubDate>
		<dc:creator>Sumit Gupta</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[Blog: My thoughts]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Compare]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Virtual Private Server]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://www.sumitgupta.net/?p=499</guid>
		<description><![CDATA[Late last year, I was pretty happy to have a budget to take a VPS for my company. This was first server that we own. What a great feeling to have it. But soon the great feeling becomes a nightmare. It was not that hosting company is not that good, it was just that the [...]]]></description>
			<content:encoded><![CDATA[<p>Late last year, I was pretty happy to have a budget to take a VPS for my company. This was first server that we own. What a great feeling to have it. But soon the great feeling becomes a nightmare. It was not that hosting company is not that good, it was just that the VPS are not good in general. I am talking about it after using atleast 10 VPS server from 3-4 different companies. Fortunately I invest only in one of them. </p>
<p>Coming back to topic, here are reasons why I hate VPS now:<br />
1. VPS is said to be cheaper, But for whom? You or hosting companies? Companies with good reputation or resources gives a VPS starting at $60 per month for just a 1GB RAM, with 30GB HDD. IF you compare it with Dedicate server with low end they ends up with 160 GB HDD and 2 GB RAM. for about $100. But to get that configuration you need to spend over $100. So comparatively they are not cheap. </p>
<p>2. When I buy a VPS I read that my VPS will be hosted on Cloud network and hence if a VPS fails for some reason it get up again on next node in network and reduce the downtime. Unfortunately my VPS Hosting GRID failed and it dump my data for 48 hrs, before they can fix the node. I was not alone but all people having their VPS on that grid lost valuble 48hrs waiting for their server. Later it took 15 days to get my hosting to move my VPS to new GRID as even after 48 hrs they said they still need to do few maintenance and my VPS will do roller coaster during that time. If I have Dedicated server and if some hardware fails it took less than 2 hrs to get it up live. But if VPS grid&#8217;s hardware fails who grid gets overloaded from other VPS and reduce performance. Plus changinge their hardware wasn&#8217;t easy. This is what I had experience on my server and unfortunately on client&#8217;s hosting when their Hosting [different my mine] fails for them too. </p>
<p>3. VPS should not be confused with Cloud Hosting. VPS are virtual machine, and even if they are hosted on Cloud Network they are not Cloud hosting for your purpose, they are as good as dedicate machine. IF your VPS fails, or shutdown, your website will be down. You won&#8217;t get shifted or reboot, becuase machine is down not a network. It is like notepad crashing on your computer. It do not effect computer otherwise. Cloud hosting are like shared hosting, where multiple computers store data, and a data replication happens on fallback node. then your webserver runs on different hardware on same grid and other application as well. So if say one web server fails there are other webserver available to take load of your application. But this is note the case with VPS machines. IF you take VPS you take a 1990&#8242;s computer as server don&#8217;t expect too much.</p>
<p>4. VPS is a concept of running more than one Operating system on given hardware. Like running Parallel to run Widows on Mac. Though it is been said that they share resources, but actually if you have a computer with 4 GB RAM running 2 VM with 2 GB RAM. do you think you get full 2GB RAM performance? the answer is NO. because at 4GB RAM there are 3 OS running. and one is using 4GB, while other 2 are using 2GB each, so they need 8GB in total, but it is not possible because we have 4GB. So the host operating system scarifice some of his RAM, maybe 3GB but it still be a 5GB. Same happens with CPU processing, Same with HDD. A HDD writes a 1xX speed if it has to write it for 3 OS will it write faster? no it still write 1xX and each os get only 1/3xX of speed.</p>
<p>In nutshell, if you are trying to save money by using VPS, then you better reconsider using a Shared hosting or a Dedicated server. Hosting 10 site on VPS will cost you $6 per month with no performance, where as shared hosting from decently good host will cost your just about same, but much better performance. And if you have enough money why not a Dedicated server or a Cloud hosting like Microsoft Azure, or Amazon S3 like services ? </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sumitgupta.net/why-we-dont-need-vps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Session in ASP.NET handler Page</title>
		<link>http://www.sumitgupta.net/session-in-asp-net-handler-page/</link>
		<comments>http://www.sumitgupta.net/session-in-asp-net-handler-page/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 20:10:35 +0000</pubDate>
		<dc:creator>Sumit Gupta</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#.NET]]></category>

		<guid isPermaLink="false">http://www.sumitgupta.net/?p=495</guid>
		<description><![CDATA[To use Session data in Handler Class you need to implement IRequiresSessionState which is part of Following namespace (using for helping copy/paste ) using System.Web.SessionState; Self reminder]]></description>
			<content:encoded><![CDATA[<p>To use Session data in Handler Class you need to implement</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;">IRequiresSessionState</pre></div></div>

<p>which is part of Following namespace (using for helping copy/paste )</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Web.SessionState</span><span style="color: #008000;">;</span></pre></div></div>

<p>Self reminder <img src='http://www.sumitgupta.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sumitgupta.net/session-in-asp-net-handler-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

