<?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"
	>

<channel>
	<title>Scube</title>
	<atom:link href="http://blog.scubetech.in/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://blog.scubetech.in</link>
	<description>Software,Services,Solutions</description>
	<pubDate>Thu, 27 May 2010 13:58:20 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>Top 10 things that annoy programmers</title>
		<link>http://blog.scubetech.in/?p=323</link>
		<comments>http://blog.scubetech.in/?p=323#comments</comments>
		<pubDate>Thu, 27 May 2010 13:58:20 +0000</pubDate>
		<dc:creator>sandeep.chada</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://blog.scubetech.in/?p=323</guid>
		<description><![CDATA[Hi,
I was going through some websites today when I came across this article and wanted to share it with all of you.
Its really funny, but mostly true. Read ON&#8230;.
Programmers all have their pet peeves.  Whether it’s scope creep, Hungarian notation, or smelly coworkers, we’ve come to accept that there are certain nuisances that come [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>I was going through some websites today when I came across this article and wanted to share it with all of you.</p>
<p>Its really funny, but mostly true. Read ON&#8230;.</p>
<p>Programmers all have their pet peeves.  Whether it’s <a href="http://en.wikipedia.org/wiki/Scope_creep">scope creep</a>, <a href="http://en.wikipedia.org/wiki/Hungarian_notation">Hungarian notation</a>, or smelly coworkers, we’ve come to accept that there are certain nuisances that come with our line of work. The following is a list of the top 10 things that annoy programmers, compiled from the results of <a href="http://beta.stackoverflow.com/questions/27347/what-annoys-you-as-a-programmer">my recent question on StackOverflow</a> along with some of my own experiences:</p>
<h2>10.  Comments that explain the “how” but not the “why”</h2>
<p>Introductory-level programming courses teach students to comment early and comment often. The idea is that it’s better to have too many comments than to have too few. Unfortunately, many programmers seem to take this as a personal challenge to comment <em>every single line of code</em>.  This is why you will often see something like this code snippit taken from Jeff Atwood’s post on <a href="http://www.codinghorror.com/blog/archives/001150.html">Coding Without Comments</a>:</p>
<div class="syntaxhighlighter  csharp">
<div class="bar            ">
<div class="toolbar"><a class="item viewSource" title="view source" href="http://www.kevinwilliampang.com/2008/08/28/top-10-things-that-annoy-programmers/#viewSource">view source</a><a class="item printSource" title="print" href="http://www.kevinwilliampang.com/2008/08/28/top-10-things-that-annoy-programmers/#printSource">print</a><a class="item about" title="?" href="http://www.kevinwilliampang.com/2008/08/28/top-10-things-that-annoy-programmers/#about">?</a></div>
</div>
<div class="lines">
<div class="line alt1">
<table border="0">
<tbody>
<tr>
<td class="number"><code>1</code></td>
<td class="content"><code>r = n / 2; </code><code>// Set r to n divided by 2</code></td>
</tr>
</tbody>
</table>
</div>
<div class="line alt2">
<table border="0">
<tbody>
<tr>
<td class="number"><code>2</code></td>
<td class="content"></td>
</tr>
</tbody>
</table>
</div>
<div class="line alt1">
<table border="0">
<tbody>
<tr>
<td class="number"><code>3</code></td>
<td class="content"><code>// Loop while r - (n/r) is greater than t</code></td>
</tr>
</tbody>
</table>
</div>
<div class="line alt2">
<table border="0">
<tbody>
<tr>
<td class="number"><code>4</code></td>
<td class="content"><code>while</code> <code>( abs( r - (n/r) ) &gt; t ) {</code></td>
</tr>
</tbody>
</table>
</div>
<div class="line alt1">
<table border="0">
<tbody>
<tr>
<td class="number"><code>5</code></td>
<td class="content"><code> </code><code>r = 0.5 * ( r + (n/r) ); </code><code>// Set r to half of r + (n/r)</code></td>
</tr>
</tbody>
</table>
</div>
<div class="line alt2">
<table border="0">
<tbody>
<tr>
<td class="number"><code>6</code></td>
<td class="content"><code>}</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<p>Do you have any idea what this code does?  Me neither.  The problem is that while there are plenty of comments describing <em>what </em>the code is doing, there are none describing <em>why </em>it’s doing it.</p>
<p>Now, consider the same code with a different commenting methodology:</p>
<div class="syntaxhighlighter  csharp">
<div class="bar       ">
<div class="toolbar"><a class="item viewSource" title="view source" href="http://www.kevinwilliampang.com/2008/08/28/top-10-things-that-annoy-programmers/#viewSource">view source</a><a class="item printSource" title="print" href="http://www.kevinwilliampang.com/2008/08/28/top-10-things-that-annoy-programmers/#printSource">print</a><a class="item about" title="?" href="http://www.kevinwilliampang.com/2008/08/28/top-10-things-that-annoy-programmers/#about">?</a></div>
</div>
<div class="lines">
<div class="line alt1">
<table border="0">
<tbody>
<tr>
<td class="number"><code>1</code></td>
<td class="content"><code>// square root of n with Newton-Raphson approximation</code></td>
</tr>
</tbody>
</table>
</div>
<div class="line alt2">
<table border="0">
<tbody>
<tr>
<td class="number"><code>2</code></td>
<td class="content"><code>r = n / 2;</code></td>
</tr>
</tbody>
</table>
</div>
<div class="line alt1">
<table border="0">
<tbody>
<tr>
<td class="number"><code>3</code></td>
<td class="content"></td>
</tr>
</tbody>
</table>
</div>
<div class="line alt2">
<table border="0">
<tbody>
<tr>
<td class="number"><code>4</code></td>
<td class="content"><code>while</code> <code>( abs( r - (n/r) ) &gt; t ) {</code></td>
</tr>
</tbody>
</table>
</div>
<div class="line alt1">
<table border="0">
<tbody>
<tr>
<td class="number"><code>5</code></td>
<td class="content"><code> </code><code>r = 0.5 * ( r + (n/r) );</code></td>
</tr>
</tbody>
</table>
</div>
<div class="line alt2">
<table border="0">
<tbody>
<tr>
<td class="number"><code>6</code></td>
<td class="content"><code>}</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<p>Much better!  We still might not understand exactly what’s going on here, but at least we have a starting point.</p>
<p>Comments are supposed to help the reader understand the code, not the syntax. It’s a fair assumption that the reader has a basic understanding of how a for loop works; there’s no need to add comments such as “// iterate over a list of customers”. What the reader is not going to be familiar with is why your code works and why you chose to write it the way you did.</p>
<h2>9.  Interruptions</h2>
<p>Very few programmers can go from 0 to code at the drop of a hat.  In general, <strong>we tend to be more akin to locomotives than ferraris</strong>; it may take us awhile to get started, but once we hit our stride we can get an impressive amount of work done. Unfortunately, it’s very hard to get into a programming zone when your train of thought is constantly being derailed by clients, managers, and fellow programmers.</p>
<p>There is simply too much information we need to keep in mind while we’re working on a task to be able to drop the task, handle another issue, then pick up the task without missing a beat. Interruptions kill our train of thought and getting it back is often a time-consuming, frustrating, and worst of all, error-prone process.</p>
<h2>8.  Scope creep</h2>
<p>From <a href="http://en.wikipedia.org/wiki/Scope_creep">Wikipedia</a>:</p>
<blockquote><p>Scope creep (also called focus creep, requirement creep, feature creep, and sometimes kitchen sink syndrome) in project management refers to uncontrolled changes in a project’s scope. This phenomenon can occur when the scope of a project is not properly defined, documented, or controlled. It is generally considered a negative occurrence that is to be avoided.</p></blockquote>
<p>Scope creep turns relatively simple requests into horribly complex and time consuming monsters. It only takes a few innocent keystrokes by the requirements guy for scope creep to happen:</p>
<ul>
<li>Version 1: Show a map of the location</li>
<li>Version 2: Show a <strong>3D</strong> map of the location</li>
<li>Version 3: Show a <strong>3D</strong> map of the location <strong>that the user can fly through</strong></li>
</ul>
<p>Argh! What used to be a 30 minute task just turned into a massively complex system that could take hundreds of man hours. Even worse, most of the time scope creep happens <em>during</em> development, which requires rewriting, refactoring, and sometimes throwing out code that was developed just days prior.</p>
<h2>7.  Management that doesn’t understand programming</h2>
<div style="20px;">
<p><img src="http://www.kevinwilliampang.com/wp-content/uploads/Compiling3.png" alt="Compiling" /><br />
<em>Ok, so maybe there are <a href="http://xkcd.com/303/">some perks</a>.</em></div>
<p style="220px;">Management is not an easy job.  People <strong>suck</strong>; we’re fickle and fragile and we’re all out for #1. Keeping a large group of us content and cohesive is a mountain of a task. However, that doesn’t mean that managers should be able to get away without having some basic understanding of what their subordinates are doing. When management cannot grasp the basic concepts of our jobs, we end up with scope creep, unrealistic deadlines, and general frustration on both sides of the table. This is a pretty common complaint amongst programmers and the source of a lot of angst (as well as one hilarious <a href="http://www.dilbert.com/">cartoon</a>).</p>
<h2>6.  Documenting our applications</h2>
<p>Let me preface this by saying that yes, I know that there are a lot of documentation-generating applications out there, but in my experience those are usually only good for generating API documentation for other programmers to read. If you are working with an application that normal everyday people are using, you’re going to have to write some documentation that the average layman can understand (e.g. how your application works, troubleshooting guides, etc.).</p>
<p>It’s not hard to see that this is something programmers dread doing. Take a quick look at all the open-source projects out there. What’s the one thing that all of them are constantly asking for help with? Documentation.</p>
<p>I think I can safely speak on behalf of all programmers everywhere when I say, “<a href="http://en.wikipedia.org/wiki/Trash_of_the_Titans">can’t someone else do it?</a>“.</p>
<h2>5.  Applications without documentation</h2>
<p>I never said that we weren’t hypocrites.  <img class="wp-smiley" src="http://www.kevinwilliampang.com/wp-includes/images/smilies/icon_smile.gif" alt="-)" /> Programmers are constantly asked to incorporate 3rd party libraries and applications into their work.  In order to do that, <strong>we need documentation</strong>.  Unfortunately, as mentioned in item 6, programmers hate writing documentation.  No, the irony is not lost on us.</p>
<p><strong>There is nothing more frustrating than trying to utilize a 3rd party library while having absolutely no fricken idea what half the functions in the API do</strong>. What’s the difference between poorlyNamedFunctionA() and poorlyButSimilarlyNamedFunctionB()? Do I need to perform a null check before accessing PropertyX? I guess I’ll just have to find out through trial and error! Ugh.</p>
<h2>4.  Hardware</h2>
<p>Any programmer who has ever been called upon to debug a strange crash on the database server or why the RAID drives aren’t working properly knows that hardware problems are a pain. There seems to be a common misconception that since programmers work with computers, we must know how to fix them. Granted, this may be true for some programmers, but I reckon the vast majority of us don’t know or really care about what’s going on after the code gets translated into assembly. We just want the stuff to work like it’s supposed to so we can focus on higher level tasks.</p>
<h2>3.  Vagueness</h2>
<p>“The website is broken”.  “Feature X isn’t working properly”.  <strong>Vague requests are a pain to deal with</strong>. It’s always surprising to me how exasperated non-programmers tend to get when they are asked to reproduce a problem for a programmer. They don’t seem to understand that “it’s broken, fix it!” is <strong>not</strong> enough information for us to work off of.</p>
<p>Software is (for the most part) deterministic. We like it that way. Humor us by letting us figure out which step of the process is broken instead of asking us to simply “fix it”.</p>
<h2>2.  Other programmers</h2>
<p>Programmers don’t always get along with other programmers. Shocking, but true. This could easily be its own top 10 list, so I’m just going to list some of the common traits programmers have that annoy their fellow programmers and save going into detail for a separate post:</p>
<ul>
<li>Being grumpy to the point of being hostile.</li>
<li>Failing to understand that there is a time to debate system architecture and a time to get things done.</li>
<li>Inability to communicate effectively and confusing terminology.</li>
<li>Failure to pull ones own weight.</li>
<li>Being apathetic towards the code base and project</li>
</ul>
<p>And last, but not least, the number 1 thing that annoys programmers…</p>
<h2>1.  Their own code, 6 months later</h2>
<div style="20px;">
<p><img src="http://www.kevinwilliampang.com/wp-content/uploads/Sand-Mandala2.JPG" alt="" /><br />
<em>Don’t sneeze, I think I see a bug.</em></div>
<p>Ever look back at some of your old code and grimace in pain?  How stupid you were!  How could you, who know so much <em>now</em>, have written <em>that</em>?  Burn it!  Burn it with fire!</p>
<p>Well, good news.  You’re not alone.</p>
<p>The truth is, the programming world is one that is constantly changing. What we regard as a best practice today can be obsolete tomorrow. It’s simply not possible to write perfect code because the standards upon which our code is judged is evolving every day. It’s tough to cope with the fact that your work, as beautiful as it may be <em>now</em>, is probably going to be ridiculed later. It’s frustrating because no matter how much research we do into the latest and greatest tools, designs, frameworks, and best practices, there’s always the sense that what we’re truly after is slightly out of reach. For me, this is the most annoying thing about being a programmer. The fragility of what we do is necessary to facilitate improvement, but I can’t help feeling like I’m one of those <a href="http://en.wikipedia.org/wiki/Sand_mandala">sand-painting monks</a>.</p>
<p><strong>Full credit to <span class="author vcard"><a class="url fn" title="View all posts by Kevin Pang" href="http://www.kevinwilliampang.com/author/kevinpang/">Kevin Pang</a></span></strong></p>
<p>courtesy: http://www.kevinwilliampang.com/2008/08/28/top-10-things-that-annoy-programmers/</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scubetech.in/?feed=rss2&amp;p=323</wfw:commentRss>
		</item>
		<item>
		<title>Creating a Macro in Microsoft Excel</title>
		<link>http://blog.scubetech.in/?p=320</link>
		<comments>http://blog.scubetech.in/?p=320#comments</comments>
		<pubDate>Mon, 11 Jan 2010 06:25:10 +0000</pubDate>
		<dc:creator>sharief shaik</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[Creating Macro in Microsoft Excel]]></category>

		<category><![CDATA[Macro + Excel]]></category>

		<guid isPermaLink="false">http://blog.scubetech.in/?p=320</guid>
		<description><![CDATA[To create a Custom Macro in Microsoft excel just follow the below steps:
1. Go to tools -&#62; Macro -&#62; Record New Macro : A pop up will display. Just enter the macro name and assign a short cut key to it. Select &#8220;Personal Macro Workbook&#8221; in &#8220;Store macro in&#8221; checkbox.
2. Next do all the stuff [...]]]></description>
			<content:encoded><![CDATA[<p>To create a Custom Macro in Microsoft excel just follow the below steps:</p>
<p>1. Go to tools -&gt; Macro -&gt; Record New Macro : A pop up will display. Just enter the macro name and assign a short cut key to it. Select <strong>&#8220;Personal Macro Workbook&#8221;</strong> in &#8220;Store macro in&#8221; checkbox.</p>
<p>2. Next do all the stuff you wanted by the macro to do manually.</p>
<p>3. Finally Go to tools -&gt; Macro -&gt; Stop Recording.</p>
<p>That&#8217;s it your Macro is Created.</p>
<p>Example:</p>
<p>We will create a Macro for <strong>Cell Merging:</strong></p>
<p>Step 1:  Go to tools -&gt; Macro -&gt; Record New Macro : Provide the below details:</p>
<p>Macro Name : Cell Merge</p>
<p>Key                : Ctrl + Shift + M (You can provide your own key)</p>
<p>Step 2: Select any two cells -&gt; Go to Format -&gt; Cells -&gt; Click on Alignment -&gt; Select Merge Cells Check box and Click Ok.</p>
<p>Step 3: Go to tools -&gt; Macro -&gt; Stop Recording.</p>
<p>Step 4: While closing the excel, it will ask to save the key, click on Yes.</p>
<p>That&#8217;s it from now onwards we can use <strong>Ctrl+Shift+M</strong> for Cell Merging.</p>
<p>Hopefully this may be helpful in many situations like creating <strong>Test Cases, building Formula&#8217;s etc</strong></p>
<p><strong></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scubetech.in/?feed=rss2&amp;p=320</wfw:commentRss>
		</item>
		<item>
		<title>Usage of Calendar using JQUERY and populateing age automatically in text box</title>
		<link>http://blog.scubetech.in/?p=315</link>
		<comments>http://blog.scubetech.in/?p=315#comments</comments>
		<pubDate>Wed, 07 Oct 2009 12:59:46 +0000</pubDate>
		<dc:creator>emailtoid.net/i/df884d6e/</dc:creator>
		
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://blog.scubetech.in/?p=315</guid>
		<description><![CDATA[Please go to this link (http://www.java2s.com/Code/JavaScript/GUI-Components/jquerycalendar.htm) ) and download first jquery-calendar.zip. Extract the zip file and copy the files jquery.js, jquery-alendar.css, jquery-calendar.js into the directory where the webpage is kept in which u want to add the functionality of calendar.Now
1) Add these files to your webpage
&#60;script type=&#8221;text/javascript&#8221; src=&#8221;jquery.js&#8221;&#62;&#60;/script&#62;
&#60;script type=&#8221;text/javascript&#8221; src=&#8221;jquery-calendar.js&#8221;&#62;&#60;/script&#62;
&#60;link rel=&#8221;stylesheet&#8221; href=&#8221;jquery-calendar.css&#8221; /&#62;
2)Now copy the [...]]]></description>
			<content:encoded><![CDATA[<p>Please go to this link (http://www.java2s.com/Code/JavaScript/GUI-Components/jquerycalendar.htm) ) and download first jquery-calendar.zip. Extract the zip file and copy the files jquery.js, jquery-alendar.css, jquery-calendar.js into the directory where the webpage is kept in which u want to add the functionality of calendar.Now</p>
<p>1) Add these files to your webpage</p>
<p>&lt;script type=&#8221;text/javascript&#8221; src=&#8221;jquery.js&#8221;&gt;&lt;/script&gt;</p>
<p>&lt;script type=&#8221;text/javascript&#8221; src=&#8221;jquery-calendar.js&#8221;&gt;&lt;/script&gt;</p>
<p>&lt;link rel=&#8221;stylesheet&#8221; href=&#8221;jquery-calendar.css&#8221; /&gt;</p>
<p>2)Now copy the following Jquery in your script</p>
<p>$(document).ready(function () {<br />
$(&#8217;#dob&#8217;).calendar();<br />
$(&#8217;#dob&#8217;).bind(&#8217;change&#8217;,calculate_Age);<br />
});</p>
<p>3)Copy the follwing function calculate_Age() in your script so that after selecting the date age will popoulate automatically</p>
<p>function calculate_Age(){</p>
<p>//dob has to be the id of ur input element in which u want to call calendar<br />
var user_date = Date.parse(  $(&#8221;#dob&#8221;).val() );<br />
var diff_date =  new Date() - user_date;</p>
<p>//age has to be the id of ur input element in which u want to populate age automatically<br />
$(&#8217;#age&#8217;).val(Math.floor(diff_date/31536000000));<br />
}</p>
<p>4)keep class=&#8221;calendarFocus&#8221; in the &lt;input&gt; element in which u want to call the calendar so that it calls above jquery.</p>
<p>NOTE: calculate_Age() above provided displays the age depending on the date selected. If u selected the date less than the current date the age displays correctly where as if u selected some future age(age greater than the current date) it displays negative value.So u can add ur own fuctionality in case u want to avoid selection of future date.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scubetech.in/?feed=rss2&amp;p=315</wfw:commentRss>
		</item>
		<item>
		<title>Generating Serial No./Row No.</title>
		<link>http://blog.scubetech.in/?p=308</link>
		<comments>http://blog.scubetech.in/?p=308#comments</comments>
		<pubDate>Fri, 11 Sep 2009 03:56:37 +0000</pubDate>
		<dc:creator>sudhakar.dasari</dc:creator>
		
		<category><![CDATA[Mysql]]></category>

		<category><![CDATA[Rownum]]></category>

		<category><![CDATA[Select]]></category>

		<category><![CDATA[Serial]]></category>

		<category><![CDATA[SlNo]]></category>

		<guid isPermaLink="false">http://blog.scubetech.in/?p=308</guid>
		<description><![CDATA[I had a requirement to display serial numbers in Zend grids. So, in order to fulfill this, I had a worse idea of using a count variable and displaying the same as serial number but, Zend grids will not allow such worst ideas to implement.
So had explored for a solution to generate serial numbers or [...]]]></description>
			<content:encoded><![CDATA[<p>I had a requirement to display serial numbers in Zend grids. So, in order to fulfill this, I had a worse idea of using a count variable and displaying the same as serial number but, Zend grids will not allow such worst ideas to implement.</p>
<p>So had explored for a solution to generate serial numbers or what else you call as the row numbers using MySQL query.</p>
<p>I had spent hours on exploring but with some guidance of my colleague, I finally had achieved the query that suits my requirement.</p>
<p>Here it is - an example of how you can generate serial numbers or row numbers using MySQL query:</p>
<p>SELECT (@rownum:=@rownum+1) as SlNo[, &lt;other_fields&gt;] from (SELECT @rownum:=0) alias[, &lt;other_tables&gt;];</p>
<p>Explain?</p>
<p>SELECT @rownum:=0 - this will create a variable &#8220;rownum&#8221; initialized to zero.</p>
<p>@rownum:=@rownum+1 - this SQL expression will increment the value of rownum just as similar to a count variable in for loop.</p>
<p>Hope this could be useful. Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scubetech.in/?feed=rss2&amp;p=308</wfw:commentRss>
		</item>
		<item>
		<title>Apache not rendering HTML pages - Jboss Server</title>
		<link>http://blog.scubetech.in/?p=305</link>
		<comments>http://blog.scubetech.in/?p=305#comments</comments>
		<pubDate>Thu, 27 Aug 2009 08:18:35 +0000</pubDate>
		<dc:creator>pradeep.assrr</dc:creator>
		
		<category><![CDATA[J2EE]]></category>

		<category><![CDATA[Java]]></category>

		<category><![CDATA[apache hiding image display]]></category>

		<category><![CDATA[jboss not displaying images]]></category>

		<category><![CDATA[org.apache.naming.resources.resourceattributes.getcanonicalpath ljava lang string]]></category>

		<category><![CDATA[servlet.service for servlet default threw exception]]></category>

		<guid isPermaLink="false">http://blog.scubetech.in/?p=305</guid>
		<description><![CDATA[When you have an html page of size more than 1MB, Apache will restrict some part of the page to display. This would be usually images. So in order to allow Apache to show the entire page, the following code snippet has to be placed in web.xml file located in \jboss-4.0.5.GA\server\default\deploy\jbossweb-tomcat55.sar\conf path above &#60;load-on-startup&#62;1&#60;/load-on-startup&#62; line.
&#60;init-param&#62;
&#60;param-name&#62;sendfileSize&#60;/param-name&#62;
&#60;param-value&#62;-1&#60;/param-value&#62;
&#60;/init-param&#62;
]]></description>
			<content:encoded><![CDATA[<p>When you have an html page of size more than 1MB, Apache will restrict some part of the page to display. This would be usually images. So in order to allow Apache to show the entire page, the following code snippet has to be placed in <strong>web.xml </strong>file located in<strong> \jboss-4.0.5.GA\server\default\deploy\jbossweb-tomcat55.sar\conf </strong>path above <strong>&lt;load-on-startup&gt;1&lt;/load-on-startup&gt;</strong> line.</p>
<p>&lt;init-param&gt;<br />
&lt;param-name&gt;sendfileSize&lt;/param-name&gt;<br />
&lt;param-value&gt;-1&lt;/param-value&gt;<br />
&lt;/init-param&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scubetech.in/?feed=rss2&amp;p=305</wfw:commentRss>
		</item>
		<item>
		<title>Run a *.bat file as a service</title>
		<link>http://blog.scubetech.in/?p=294</link>
		<comments>http://blog.scubetech.in/?p=294#comments</comments>
		<pubDate>Mon, 10 Aug 2009 13:32:22 +0000</pubDate>
		<dc:creator>kalyan.kadiyala</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[batch file]]></category>

		<category><![CDATA[hide console window]]></category>

		<category><![CDATA[run a batch file during startup]]></category>

		<category><![CDATA[start a service automatically]]></category>

		<guid isPermaLink="false">http://blog.scubetech.in/?p=294</guid>
		<description><![CDATA[Here are the steps to run a batch file automatically on a computer everytime it boots without displaying the console window:


Open two empty notepad files and rename them as *.bat and *.vbs


where * stands for user-defined file names.


Edit the *.bat file and copy the following line into it:


wscript.exe &#8220;C:\~path of the folder in which batch [...]]]></description>
			<content:encoded><![CDATA[<div>Here are the steps to run a batch file automatically on a computer everytime it boots without displaying the console window:</div>
<div>
<ul>
<li>Open two empty notepad files and rename them as *.bat and *.vbs</li>
</ul>
</div>
<div>where * stands for user-defined file names.</div>
<div>
<ul>
<li>Edit the *.bat file and copy the following line into it:</li>
</ul>
</div>
<div>wscript.exe &#8220;C:\<em>~path of the folder in which batch file to be run is present~</em>\*.vbs&#8221; &#8220;<em>~name of the batch file to be run~</em>.bat&#8221;</div>
<div>
<ul>
<li>Edit the *.vbs file and copy the following line into it:</li>
</ul>
</div>
<div>CreateObject(&#8221;Wscript.Shell&#8221;).Run &#8220;&#8221;"&#8221; &amp; WScript.Arguments(0) &amp; &#8220;&#8221;"&#8221;, 0, False</div>
<div>
<ul>
<li>Create a short-cut icon to *.bat file and copy it into the startup folder.</li>
</ul>
</div>
<div>Its done.</div>
<div>Note: The two files that we create must be placed in the same folder in which the original batch file that we needed to run is present.</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.scubetech.in/?feed=rss2&amp;p=294</wfw:commentRss>
		</item>
		<item>
		<title>Ubuntu loading problem: File system check failed due to improper shutdown</title>
		<link>http://blog.scubetech.in/?p=291</link>
		<comments>http://blog.scubetech.in/?p=291#comments</comments>
		<pubDate>Tue, 21 Jul 2009 06:37:14 +0000</pubDate>
		<dc:creator>dhavalesh.potnuru</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[ububtu filesystem failed loading problem]]></category>

		<guid isPermaLink="false">http://blog.scubetech.in/?p=291</guid>
		<description><![CDATA[Due to improper shutdown file system check has failed while loading ubuntu
In order to solve the error you need to correct the file system manually. So the ubuntu will ask you correct the file system manually. To do the same follow the below steps
1. If you dont know the root credentials
Press ctrl + alt + [...]]]></description>
			<content:encoded><![CDATA[<p>Due to improper shutdown file system check has failed while loading ubuntu</p>
<p>In order to solve the error you need to correct the file system manually. So the ubuntu will ask you correct the file system manually. To do the same follow the below steps</p>
<p>1. If you dont know the root credentials</p>
<p>Press ctrl + alt + delete then it will ask the user name, password.</p>
<p>Enter the credentials that you have then execute the following command to correct the file system</p>
<p>sudo fsck then it will ask so many prompts give the inputs of your choice [yes/no]</p>
<p>After that execute this command sudo reboot, Now the ubuntu will load properly</p>
<p>Note: I dont know is it correct or not but it works for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scubetech.in/?feed=rss2&amp;p=291</wfw:commentRss>
		</item>
		<item>
		<title>Zend Cookie Creation</title>
		<link>http://blog.scubetech.in/?p=282</link>
		<comments>http://blog.scubetech.in/?p=282#comments</comments>
		<pubDate>Thu, 16 Jul 2009 07:02:46 +0000</pubDate>
		<dc:creator>rineesh.babu</dc:creator>
		
		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://blog.scubetech.in/?p=282</guid>
		<description><![CDATA[We will consider mostly 3 things while creating a cookie in php they are
1. Cookie name
2. Cookie value and
3. Time on which cookie have to die itself.
The fourth thing which we have to consider is&#8230;
4. Cookie path.
If we did not mention any path externally then it will take the current path as default.
But in Zend, [...]]]></description>
			<content:encoded><![CDATA[<p>We will consider mostly 3 things while creating a cookie in php they are</p>
<p>1. Cookie name</p>
<p>2. Cookie value and</p>
<p>3. Time on which cookie have to die itself.</p>
<p>The fourth thing which we have to consider is&#8230;</p>
<p>4. Cookie path.</p>
<p>If we did not mention any path externally then it will take the current path as default.</p>
<p>But in Zend, please consider the path of the cookie because if you create the cookie in the root which will be accessible from any other path( We can say from any other folder).</p>
<p>It means if you create a cookie in a particular path which is accessible in that path only.</p>
<p>Syntex for creating a cookie in the root&#8230;</p>
<p>setcookie(&#8221;cookie_name&#8221;,&#8221;cookie_value&#8221;,time()+3600,&#8221;/&#8221;);</p>
<p>The above is normal php cookie setting but please follow the zend standards to set a cookie..</p>
<p>Syntax for creating a cookie in the current folder&#8230;</p>
<p>setcookie(&#8221;cookie_name&#8221;,&#8221;cookie_value&#8221;,time()+3600);</p>
<p>Getting a cookie value in Zend</p>
<p>$cookie = $this-&gt;getRequest()-&gt;getCookie(&#8217;cookie_name&#8217;);</p>
<p>I hope this information will help you to solve your Zend cookie problem&#8230;</p>
<p>Please visit this link! to make it easier</p>
<p><a title="Zend Cookie Documentaion" href="http://framework.zend.com/manual/en/zend.http.cookies.html" target="_blank">http://framework.zend.com/manual/en/zend.http.cookies.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scubetech.in/?feed=rss2&amp;p=282</wfw:commentRss>
		</item>
		<item>
		<title>Locking records and Dead lock detection and solution in Mysql</title>
		<link>http://blog.scubetech.in/?p=277</link>
		<comments>http://blog.scubetech.in/?p=277#comments</comments>
		<pubDate>Thu, 16 Jul 2009 06:42:03 +0000</pubDate>
		<dc:creator>bhagat.illalova@scubetech.in</dc:creator>
		
		<category><![CDATA[Mysql]]></category>

		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[Deadlock]]></category>

		<category><![CDATA[engine status]]></category>

		<category><![CDATA[Locks]]></category>

		<category><![CDATA[Synchronization]]></category>

		<category><![CDATA[synchronization queries]]></category>

		<guid isPermaLink="false">http://blog.scubetech.in/?p=277</guid>
		<description><![CDATA[Locking: Locking is the mechanism which locks the tables, records, and pages based upon the requirement.
we have different types of locks are there in MySql.

Read/Write Locks.
Table Locks.
Page Locks.
Record Locks.

Let us have example on the single record lock by using select for update statement.
suppose we are using
select item_id from the item_table where item_id=&#8217;100&#8242; for update.
This 100 [...]]]></description>
			<content:encoded><![CDATA[<p>Locking: Locking is the mechanism which locks the tables, records, and pages based upon the requirement.</p>
<p>we have different types of locks are there in MySql.</p>
<ul>
<li>Read/Write Locks.</li>
<li>Table Locks.</li>
<li>Page Locks.</li>
<li>Record Locks.</li>
</ul>
<p>Let us have example on the single record lock by using select for update statement.</p>
<p>suppose we are using</p>
<p><strong>select item_id from the item_table where item_id=&#8217;100&#8242; for update.</strong></p>
<p>This 100 record is blocked no other user can access this. this will more help in updating any bookings or transactions. which gives the synchronization solutions. that is no same number can generate to different persons.</p>
<p>While implementing this type of synchronization locking use in transaction. began transaction and complete whole task in that transaction if it is not succedded then roll back the changes.</p>
<p>While Implementing transactions and Locking we should be consider all aspects other wise we will be lead to dead lock state.</p>
<p>Suppose in the transaction iam locking the registration number generation table. while submitting the registration form it will generate registration number at that time logged_user table also updates.</p>
<p>In some situations the records locks in the transaction along with the user table but all the persons will definitely interact with the user table then it leads to Dead lock situation.</p>
<p>If we come across with deadlock then the MySql database hangs and doesnt respond to the all the users.</p>
<p>In that situvation we just look after the Engine Status.</p>
<ul>
<li>First Identify which type of engine we are using in Mysql.</li>
<li>Identify the status of engine</li>
<li>Read the status then you will know the bug and solve it.</li>
</ul>
<p>Let us consider that we are using INNODB engine</p>
<p><strong> SHOW ENGINE INNODB STATUS;</strong></p>
<p>execute above command you will get the status of innodb engine.</p>
<p><strong> Copy the content in the status column and paste it in notepad or word</strong></p>
<p>Now read the status then you will find the problem then solve it.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scubetech.in/?feed=rss2&amp;p=277</wfw:commentRss>
		</item>
		<item>
		<title>Transactions in MySql used in Vb.net</title>
		<link>http://blog.scubetech.in/?p=275</link>
		<comments>http://blog.scubetech.in/?p=275#comments</comments>
		<pubDate>Thu, 16 Jul 2009 06:07:52 +0000</pubDate>
		<dc:creator>bhagat.illalova@scubetech.in</dc:creator>
		
		<category><![CDATA[Mysql]]></category>

		<category><![CDATA[VB.NET]]></category>

		<category><![CDATA[Transactions in Mysql]]></category>

		<category><![CDATA[Turn off auto commit mode false or true]]></category>

		<guid isPermaLink="false">http://blog.scubetech.in/?p=275</guid>
		<description><![CDATA[Transactions are very important topic in the Mysql. let us suppose we are working with the Mysql database that is auto commit mode is true. but in all scenarios auto commit mode true will be not safe in that situvations we can turn off MySql database into different modes either Auto commit mode is true [...]]]></description>
			<content:encoded><![CDATA[<p>Transactions are very important topic in the Mysql. let us suppose we are working with the Mysql database that is auto commit mode is true. but in all scenarios auto commit mode true will be not safe in that situvations we can turn off MySql database into different modes either Auto commit mode is true or Auto commit mode is false with out effect to whole application.</p>
<p>While we apply transactions that are applied to that transaction block only. If we want to implement transactions we need to start the transaction and wrote the desired code.</p>
<p>This function is used to start the transaction and set the database to auto commit to false</p>
<p>Public Sub SetTransactionForAccounts()<br />
cmdtext = &#8220;START transaction;&#8221;<br />
connection.ExecuteOperation(cmdtext)<br />
cmdtext = &#8220;SET autocommit=0;&#8221;<br />
connection.ExecuteOperation(cmdtext)<br />
connection.ExecuteOperation(cmdtext)<br />
End Sub<br />
This function is used to Commit the changes done<br />
Public Sub SetCommit()<br />
cmdtext = &#8220;commit;&#8221;<br />
connection.ExecuteOperation(cmdtext)<br />
End Sub<br />
This function is used to commit the transaction and set the database to auto commit to true</p>
<p>Public Sub setAccountsCommit()<br />
cmdtext = &#8220;commit;&#8221;<br />
connection.ExecuteOperation(cmdtext)<br />
cmdtext = &#8220;set autocommit=1;&#8221;<br />
connection.ExecuteOperation(cmdtext)</p>
<p>End Sub<br />
This function is used to roll back the changes and set the database to auto commit to true<br />
Public Sub setAccountsRollBack()<br />
cmdtext = &#8220;Rollback;&#8221;<br />
connection.ExecuteOperation(cmdtext)<br />
cmdtext = &#8220;set autocommit=1;&#8221;<br />
connection.ExecuteOperation(cmdtext)<br />
End Sub</p>
<p>This function is used to roll back the changes<br />
Public Function setRollBack() As Boolean<br />
cmdtext = &#8220;Rollback;&#8221;<br />
Return connection.ExecuteOperation(cmdtext)<br />
End Function</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scubetech.in/?feed=rss2&amp;p=275</wfw:commentRss>
		</item>
	</channel>
</rss>
