<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1844583014281829941</id><updated>2012-02-16T18:44:11.008-08:00</updated><category term='dropdown'/><category term='flash'/><category term='datasource'/><category term='javascript'/><category term='visual-studio'/><category term='img-effect'/><category term='bulk-insert'/><category term='general'/><category term='mssql'/><category term='shortcut'/><category term='form'/><category term='ip'/><category term='microsoft-enterprise-library'/><category term='firefox'/><category term='xampp'/><category term='remote-desktop'/><category term='bat'/><category term='gimp'/><category term='windows'/><category term='asp.net 2.0'/><category term='.net'/><category term='vs2005'/><category term='file'/><category term='embed'/><category term='float'/><category term='vb.net'/><category term='database'/><category term='connection-string'/><category term='xml'/><category term='IE7'/><category term='checkbox'/><category term='combo'/><category term='mysql'/><category term='php'/><category term='cookies'/><category term='ajax'/><category term='number'/><category term='tutorial'/><category term='field'/><category term='dataset'/><category term='precision'/><category term='format'/><category term='crystal report'/><category term='blog'/><category term='oracle'/><category term='stored-procedure'/><category term='ctrl-alt-del'/><category term='sql'/><category term='html'/><category term='asp.net'/><category term='decimal'/><category term='run'/><category term='tree'/><category term='extjs'/><category term='label'/><title type='text'>the geek sista</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>63</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-7672934493331688788</id><published>2011-12-19T01:12:00.000-08:00</published><updated>2011-12-19T01:13:14.053-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='crystal report'/><title type='text'>CR Keeping together the group and the detail</title><content type='html'>In Crystal Report, in order to keep together the group and the detail, pls follow the following setting:&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #cc0000;"&gt;Not Working&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;Report -&amp;gt; Section Expert -&amp;gt; Select Group -&amp;gt; Enable Keep together&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #006633;"&gt;Working&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;Report Group Section -&amp;gt; Change Group-&amp;gt; Options -&amp;gt; Keep Group Together&lt;/div&gt;&lt;div&gt;If you want the Group name to be displayed on the new page, you may tick on the 'Repeat Group Header on Each Page' &lt;/div&gt;&lt;br /&gt;Ref: &lt;a href="http://www.crystalreportsbook.com/Forum/forum_posts.asp?TID=7076" target="_blank"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-7672934493331688788?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/7672934493331688788/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=7672934493331688788' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/7672934493331688788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/7672934493331688788'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2011/12/cr-keeping-together-group-and-detail.html' title='CR Keeping together the group and the detail'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-776743568260363793</id><published>2011-12-05T01:46:00.001-08:00</published><updated>2011-12-05T01:48:51.402-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><title type='text'>javascript startsWith() and endsWith()</title><content type='html'>&lt;b&gt;&lt;span id="intelliTxt"&gt;Javascript function startsWith&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span id="intelliTxt"&gt;String.prototype.startsWith = function(str) &lt;br /&gt;{return (this.match("^"+str)==str)}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span id="intelliTxt"&gt;Javascript function endsWith&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span id="intelliTxt"&gt;String.prototype.endsWith = function(str) &lt;br /&gt;{return (this.match(str+"$")==str)}&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Usage:&lt;/b&gt;&lt;br /&gt;&lt;span id="intelliTxt"&gt;var myStr = “&amp;nbsp;&amp;nbsp;Earth is a beautiful planet&amp;nbsp;&amp;nbsp;”;&lt;br /&gt;var myStr2 = myStr.trim();&lt;br /&gt;//==“Earth is a beautiful planet”;&lt;br /&gt;&lt;br /&gt;if (myStr2.startsWith(“Earth”)) // returns TRUE&lt;br /&gt;&lt;br /&gt;if (myStr2.endsWith(“planet”)) // returns TRUE&lt;br /&gt;&lt;br /&gt;if (myStr.startsWith(“Earth”)) &lt;br /&gt;// returns FALSE due to the leading spaces…&lt;br /&gt;&lt;br /&gt;if (myStr.endsWith(“planet”)) &lt;br /&gt;// returns FALSE due to trailing spaces…&lt;/span&gt;&lt;br /&gt;&lt;span id="intelliTxt"&gt;&amp;nbsp;&lt;/span&gt; &lt;br /&gt;Ref: &lt;a href="http://www.tek-tips.com/faqs.cfm?fid=6620"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-776743568260363793?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/776743568260363793/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=776743568260363793' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/776743568260363793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/776743568260363793'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2011/12/javascript-startswith-and-endswith.html' title='javascript startsWith() and endsWith()'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-1975792639327261008</id><published>2010-11-26T00:17:00.000-08:00</published><updated>2010-11-26T00:17:32.228-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='float'/><category scheme='http://www.blogger.com/atom/ns#' term='decimal'/><category scheme='http://www.blogger.com/atom/ns#' term='precision'/><title type='text'>SQL Precision (Float vs Decimal) and Computation</title><content type='html'>If we have a computation of (a/b*c), in decimal SQL datatype it will not give the same result as (a*c/b)&lt;br /&gt;Correct value can be obtained using this sequence: multiply first then divide ( (a*c/b).&lt;br /&gt;Trying the computation in calculator, the actual value will be value of (a*c/b)&lt;br /&gt;&lt;br /&gt;Here's the sample:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;DECLARE @a as DECIMAL(38,10), @b as DECIMAL(38,10), @dec as decimal(38,10)&lt;br /&gt;declare @flt as float&lt;br /&gt;SET @a = 5094450&lt;br /&gt;SET @b = 5225985.8002&lt;br /&gt;SET @dec=  2504000&lt;br /&gt;SET @flt=  2504000&lt;br /&gt;SELECT @dec*@b/@a -- 2568651.855195&lt;br /&gt;SELECT (@dec/@a)*@b -- 2568650.410585&lt;br /&gt;SELECT @flt*@b/@a -- 2568651.85519552&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-1975792639327261008?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/1975792639327261008/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=1975792639327261008' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/1975792639327261008'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/1975792639327261008'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2010/11/sql-precision-float-vs-decimal-and.html' title='SQL Precision (Float vs Decimal) and Computation'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-4400467425405043019</id><published>2010-06-15T19:29:00.000-07:00</published><updated>2010-06-15T19:29:39.897-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><title type='text'>Sharing permission vs security</title><content type='html'>The Security Tab is the NTFS permissions.&lt;br /&gt;Sharing permissions only apply when a user accesses a share via the network. &lt;br /&gt;&lt;br /&gt;If the person is not given write permissions at the sharing level, then no matter the NTFS permissions, they will not be able to write to the folder.&lt;br /&gt;&lt;br /&gt;Folder/NTFS permissions apply to a local logon or network access. If sharing &lt;br /&gt;permissions conflict with folder/NTFS permissions for a network user, the &lt;br /&gt;most restrictive permission will apply to the user. In other words if a user &lt;br /&gt;has only read access in the sharing permission but full control to the folder/NTFS &lt;br /&gt;permissions. That user will only have to read/list/execute access over the &lt;br /&gt;network for the share contents.&lt;br /&gt;&lt;br /&gt;Reference: &lt;a href="http://seclists.org/basics/2007/Dec/148" target="new"&gt;1&lt;/a&gt; &lt;a href="http://www.tomshardware.com/forum/225193-46-shared-permissions-security" target="new"&gt;2&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-4400467425405043019?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/4400467425405043019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=4400467425405043019' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/4400467425405043019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/4400467425405043019'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2010/06/sharing-permission-vs-security.html' title='Sharing permission vs security'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-2876858690769175507</id><published>2010-06-15T19:20:00.000-07:00</published><updated>2010-06-15T19:20:12.324-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><title type='text'>System account in Windows</title><content type='html'>The system account and the administrator account (Administrators group) have the same file privileges, but they have different functions. The system account is used by the operating system and by services that run under Windows. &lt;br /&gt;By default, the system account is granted full control to all files on an NTFS volume. &lt;br /&gt;The system account's permissions can be removed from a file but it is not recommended. &lt;br /&gt;Reference: &lt;a href="http://support.microsoft.com/kb/120929" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-2876858690769175507?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/2876858690769175507/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=2876858690769175507' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/2876858690769175507'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/2876858690769175507'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2010/06/system-account-in-windows.html' title='System account in Windows'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-8857868005765180337</id><published>2010-03-30T00:28:00.000-07:00</published><updated>2010-03-30T00:28:54.301-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='stored-procedure'/><category scheme='http://www.blogger.com/atom/ns#' term='crystal report'/><category scheme='http://www.blogger.com/atom/ns#' term='datasource'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><title type='text'>Change the database source without changing the fields</title><content type='html'>In CR, in order to change the data source/sp without changing the whole crystal report format, here's what we can do.&lt;br /&gt;1) Go to the menu on top, under &lt;b&gt;Database&lt;/b&gt;, select &lt;b&gt;Set Data source Location ...&lt;/b&gt;&lt;br /&gt;2) Select your data source to be changed and select new data source &lt;br /&gt;3) Click update &lt;br /&gt;&lt;br /&gt;Viola.. that's all it takes!&lt;br /&gt;Reference: &lt;a href="http://www.crystalreportsbook.com/Forum/forum_posts.asp?TID=5229" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-8857868005765180337?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/8857868005765180337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=8857868005765180337' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/8857868005765180337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/8857868005765180337'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2010/03/change-database-source-without-changing.html' title='Change the database source without changing the fields'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-4035672508997669757</id><published>2010-03-22T00:54:00.000-07:00</published><updated>2010-03-22T00:58:20.753-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='connection-string'/><title type='text'>connection string in .net</title><content type='html'>In .net we can separate the connection string from the config file (app.config/web.config).&lt;br /&gt;Here's how to do it:&lt;br /&gt;1) Create ConnectionString.config, place this file in the same file as your config file.&lt;br /&gt;Copy and paste the connection string from your config file to this file.&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;&amp;lt;connectionstrings&amp;gt;&lt;br /&gt;&amp;lt;add name=&amp;quot;AIConnectionString&amp;quot; connectionString=&amp;quot;VsE02TxJgFtwnFegSRgcJtT9lrEl4ZFtSY+&amp;quot;  providerName=&amp;quot;System.Data.SqlClient&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/connectionStrings&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;2) In your config file, replace the connection string with this:&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;&amp;lt;connectionstrings configSource=&amp;quot;ConnectionString.config&amp;quot;/&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;Thinking of consolidating all your other batches to use one connection string file only?&lt;br /&gt;This is not possible, pls see the reference below.&lt;br /&gt;Reference: &lt;a href="http://dotnetslackers.com/Community/forums/the-configsource-attribute-must-be-a-relative-physical-path-so-the-character-is-not-allowed/p/1607/25360.aspx" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-4035672508997669757?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/4035672508997669757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=4035672508997669757' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/4035672508997669757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/4035672508997669757'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2010/03/connection-string-in-net.html' title='connection string in .net'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-6825001255633981324</id><published>2010-03-04T01:05:00.000-08:00</published><updated>2010-03-04T01:12:33.615-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='crystal report'/><title type='text'>How to refresh the SP table field in Crystal Report?</title><content type='html'>When we have made changes to the SP in the database, the crystal report (version 10) does not reflect the changes I made even when I have closed and re-opened the report.&lt;br /&gt;In order to refresh this, we can go to the Database in the menu, select &lt;b&gt;Verify Database&lt;/b&gt; to update this.&lt;br /&gt;Reference: &lt;a href="http://it.toolbox.com/blogs/programming-life/adding-new-fields-to-stored-procedure-and-updating-it-in-crystal-reports-30072" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-6825001255633981324?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/6825001255633981324/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=6825001255633981324' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/6825001255633981324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/6825001255633981324'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2010/03/how-to-refresh-sp-table-field-in.html' title='How to refresh the SP table field in Crystal Report?'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-8644827596025615492</id><published>2010-03-03T22:53:00.000-08:00</published><updated>2010-03-03T22:53:44.123-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='mssql'/><title type='text'>SQL Tree Hierarchy</title><content type='html'>How to construct the tree hierarchy using SQL???&lt;br /&gt;I was searching for this and found a great link, so I followed and it works!&lt;br /&gt;&lt;br /&gt;Here's the snippet for my codes:&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;declare @AITree table &lt;br /&gt;(Node int NOT NULL IDENTITY(100, 1), AIType int,&lt;br /&gt;parent varchar(20), child varchar(20), &lt;br /&gt;depth int NULL, lineage varchar(1000))&lt;br /&gt;&lt;br /&gt;--insert whatever inside your table, u can ignore the AIType&lt;br /&gt;insert into @AITree (AIType, child)&lt;br /&gt;select AIType, ID from AI_Grouping &lt;br /&gt;WHERE effstartdate&amp;lt;=@treeDate and effendDate&amp;gt;=@treeDate&lt;br /&gt;order by AIType, parent, child&lt;br /&gt;&lt;br /&gt;--updating parent using the node (not my table)&lt;br /&gt;UPDATE T&lt;br /&gt;SET T.Parent=P.node&lt;br /&gt;FROM @AITree T &lt;br /&gt;INNER JOIN AI_Grouping C ON T.child=C.ID and T.AIType = C.AIType &lt;br /&gt;INNER JOIN AI_Grouping PT ON C.parent=PT.child and C.AIType = PT.AIType &lt;br /&gt;INNER JOIN @AITree P ON PT.ID=P.child and P.AIType = PT.AIType &lt;br /&gt;WHERE C.effstartdate&amp;lt;=@treeDate and C.effendDate&amp;gt;=@treeDate AND&lt;br /&gt;PT.effstartdate&amp;lt;=@treeDate and PT.effendDate&amp;gt;=@treeDate &lt;br /&gt;&lt;br /&gt;-- updating the top parent&lt;br /&gt;UPDATE @AITree SET Lineage='/', Depth=0 WHERE parent Is Null&lt;br /&gt;&lt;br /&gt;-- updating the rest of the nodes&lt;br /&gt;UPDATE T SET T.depth = P.Depth + 1, &lt;br /&gt;T.Lineage = P.Lineage + Ltrim(Str(T.Parent,6,0)) + '/' &lt;br /&gt;FROM @AITree AS T &lt;br /&gt;INNER JOIN @AITree AS P ON (T.Parent=P.Node) &lt;br /&gt;WHERE P.Depth&amp;gt;=0 &lt;br /&gt;AND P.Lineage Is Not Null &lt;br /&gt;AND T.Depth Is Null&lt;br /&gt;&lt;br /&gt;WHILE EXISTS (SELECT * FROM @AITree WHERE Depth Is Null) &lt;br /&gt;UPDATE T SET T.depth = P.Depth + 1, &lt;br /&gt;T.Lineage = P.Lineage + Ltrim(Str(T.Parent,6,0)) + '/' &lt;br /&gt;FROM @AITree AS T &lt;br /&gt;INNER JOIN @AITree AS P ON (T.Parent=P.Node) &lt;br /&gt;WHERE P.Depth&amp;gt;=0 &lt;br /&gt;AND P.Lineage Is Not Null &lt;br /&gt;AND T.Depth Is Null&lt;br /&gt;&lt;br /&gt;--try this to output the treee&lt;br /&gt;SELECT Space(T.Depth*2) + &lt;br /&gt;    case depth when 0 then '-' else '' end + &lt;br /&gt;    G.child AS Name&lt;br /&gt;FROM AI_Grouping G INNER JOIN @AITree T &lt;br /&gt;ON G.ID = T.child &lt;br /&gt;ORDER BY T.Lineage + Ltrim(Str(T.Node,6,0))&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Enjoy!&lt;br /&gt;Reference: &lt;a href="http://www.sqlteam.com/article/more-trees-hierarchies-in-sql" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-8644827596025615492?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/8644827596025615492/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=8644827596025615492' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/8644827596025615492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/8644827596025615492'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2010/03/sql-tree-hierarchy.html' title='SQL Tree Hierarchy'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-8537029566121256890</id><published>2010-03-03T22:48:00.000-08:00</published><updated>2010-03-03T22:48:57.076-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='mssql'/><title type='text'>To get the number of occurrence of a character in SQL</title><content type='html'>Wonder how to get the number occurrence of a character in MS SQL?&lt;br /&gt;Here's a trick on how to do it&lt;br /&gt;&lt;br /&gt;declare @char varchar(1), @str varchar(100)&lt;br /&gt;SET @char ='/'&lt;br /&gt;SET @str = '/102///111/'&lt;br /&gt;SELECT LEN(@str)-LEN(REPLACE(@str,@char,''))&lt;br /&gt;&lt;br /&gt;Wala.. there u go, u will get 5 for the scenario above.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-8537029566121256890?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/8537029566121256890/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=8537029566121256890' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/8537029566121256890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/8537029566121256890'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2010/03/to-get-number-of-occurrence-of.html' title='To get the number of occurrence of a character in SQL'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-5226268467363100889</id><published>2010-03-02T20:07:00.000-08:00</published><updated>2010-03-02T20:07:45.388-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='mssql'/><title type='text'>SQL Query case sensitive</title><content type='html'>How to make the case sensitive query?&lt;br /&gt;There are 2 records in the database with currAbbr = ZAR and ZAr, in order to get the correct case sensitive comparision, u can use BINARY_CHECKSUM.&lt;br /&gt;&lt;br /&gt;try this query:&lt;br /&gt;select * from MYTable &lt;br /&gt;where &lt;b&gt;BINARY_CHECKSUM(currAbbr) = BINARY_CHECKSUM('ZAR') &lt;/b&gt;&lt;br /&gt;select * from MYTable &lt;br /&gt;where &lt;b&gt;BINARY_CHECKSUM(currAbbr) = BINARY_CHECKSUM('ZAr') &lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-5226268467363100889?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/5226268467363100889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=5226268467363100889' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/5226268467363100889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/5226268467363100889'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2010/03/sql-query-case-sensitive.html' title='SQL Query case sensitive'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-6568279718521960458</id><published>2010-02-12T00:52:00.001-08:00</published><updated>2010-02-12T00:52:18.423-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><title type='text'>SQL Joins</title><content type='html'>This is a good website to illustrate the SQL joins.&lt;br /&gt;&lt;a href="http://www.codinghorror.com/blog/archives/000976.html" target="new"&gt;http://www.codinghorror.com/blog/archives/000976.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-6568279718521960458?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/6568279718521960458/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=6568279718521960458' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/6568279718521960458'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/6568279718521960458'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2010/02/sql-joins.html' title='SQL Joins'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-6298950234102738150</id><published>2010-01-28T05:51:00.000-08:00</published><updated>2010-01-28T05:52:06.908-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><title type='text'>check .net version installed in your computer</title><content type='html'>to do this, simply create a html page and copy the content.&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;&amp;lt;Html&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;script&amp;gt;&lt;br /&gt;alert(navigator.userAgent)&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;Then open the page on IE, it will prompt the .NET version.&lt;br /&gt;&lt;br /&gt;Reference: &lt;a href="http://www.walkernews.net/2008/05/16/how-to-check-net-framework-version-installed/" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-6298950234102738150?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/6298950234102738150/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=6298950234102738150' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/6298950234102738150'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/6298950234102738150'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2010/01/check-net-version-installed-in-your.html' title='check .net version installed in your computer'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-7385553197481303600</id><published>2010-01-05T19:30:00.000-08:00</published><updated>2010-01-05T19:33:25.529-08:00</updated><title type='text'>ASP.NET Dropdown SelectedValue does not change?</title><content type='html'>Problem:&lt;br /&gt;My dropdown selected value does not change.&lt;br /&gt;It will always return the initialized value.&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;Check if you put the initialization within the page.ispostback criteria.&lt;br /&gt;&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load&lt;br /&gt;        If Not Page.IsPostBack Then&lt;br /&gt;            ddl.SelectedValue = &amp;quot;1&amp;quot;&lt;br /&gt;        End If&lt;br /&gt;    End Sub&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-7385553197481303600?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/7385553197481303600/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=7385553197481303600' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/7385553197481303600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/7385553197481303600'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2010/01/aspnet-dropdown-selectedvalue-does-not.html' title='ASP.NET Dropdown SelectedValue does not change?'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-56414833271602856</id><published>2009-12-28T00:50:00.000-08:00</published><updated>2009-12-28T02:23:23.920-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='asp.net 2.0'/><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><title type='text'>'Sys' is undefined - ASP.NET 2.0 Ajax Control Toolkit</title><content type='html'>To fix this:&lt;br /&gt;1. Open your web.config&lt;br /&gt;2. Add this in between &lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;&amp;lt;httpHandlers&amp;gt; &amp;lt;/httpHandlers&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt; section&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;&amp;lt;add verb=&amp;quot;GET&amp;quot; path=&amp;quot;ScriptResource.axd&amp;quot; type=&amp;quot;Microsoft.Web.Handlers.ScriptResourceHandler&amp;quot; validate=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Reference: &lt;a href="http://geekswithblogs.net/ranganh/archive/2006/11/24/98276.aspx" target="new"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The above would work fine, however it will give the following error:&lt;br /&gt;&lt;code&gt; Could not load type 'Microsoft.Web.Handlers.ScriptResourceHandler'.&lt;br /&gt;ScriptResource.axd &lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Some suggested to change the code added to the following &lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;&amp;lt;add verb=&amp;quot;GET,HEAD&amp;quot; path=&amp;quot;ScriptResource.axd&amp;quot; type=&amp;quot;System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&amp;quot; validate=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;(Change the word Microsoft to System)&lt;br /&gt;&lt;br /&gt;But it gave me this javascript error:&lt;br /&gt;&lt;code&gt;Sys.ArgumentTypeException. Object of type 'Sys._Application' cannot be converted to 'Sys._Application'&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;In order to solve this will need to add this &lt;code&gt;ScriptMode="Release"&lt;/code&gt; on the ScriptManager tag, like this:&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;&amp;lt;asp:ScriptManager id=&amp;quot;ScriptManager1&amp;quot; runat=&amp;quot;server&amp;quot; ScriptMode=&amp;quot;Release&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;/asp:ScriptManager&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Reference: &lt;a href="http://forums.asp.net/p/1040587/1447995.aspx" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-56414833271602856?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/56414833271602856/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=56414833271602856' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/56414833271602856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/56414833271602856'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/12/sys-is-undefined-aspnet-20-ajax-control.html' title='&apos;Sys&apos; is undefined - ASP.NET 2.0 Ajax Control Toolkit'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-8307807205878931296</id><published>2009-12-28T00:37:00.000-08:00</published><updated>2009-12-28T02:24:03.642-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><title type='text'>Access is denied in Ajax Control Toolkit 1</title><content type='html'>Here's what you have to do.&lt;br /&gt;Change the following in the MicrosoftAjax.js &lt;br /&gt;between this line :&lt;br /&gt;&lt;code&gt;case Sys.Browser.InternetExplorer:&lt;/code&gt;&lt;br /&gt;and this line :&lt;br /&gt;&lt;code&gt;case Sys.Browser.Safari:&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;The code to be used:&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;Sys.UI.DomElement.getLocation = function Sys$UI$DomElement$getLocation(element) {&lt;br /&gt;            if(element.self&amp;#124;&amp;#124;element.nodeType===9)&lt;br /&gt;          return new Sys.UI.Point(0,0);&lt;br /&gt;       var d = element.getClientRects();&lt;br /&gt;      if(!d &amp;#124;&amp;#124; !d.length) &lt;br /&gt;        return new Sys.UI.Point(0,0);&lt;br /&gt; &lt;br /&gt;      var inFrame = false;&lt;br /&gt;      // Get the first bounding rectangle in screen coordinates&lt;br /&gt;      var screenRects = element.getClientRects();&lt;br /&gt; &lt;br /&gt;      if (!screenRects &amp;#124;&amp;#124; !screenRects.length) {&lt;br /&gt;          return new Sys.UI.Point(0,0);&lt;br /&gt;      }&lt;br /&gt; &lt;br /&gt;      var first = screenRects[0];&lt;br /&gt;      // Delta between client coords and screen coords&lt;br /&gt;      var dLeft = 0;&lt;br /&gt;      var dTop = 0;&lt;br /&gt; &lt;br /&gt;      try&lt;br /&gt;      {&lt;br /&gt;        inFrame = a.ownerDocument.parentWindow.frameElement;&lt;br /&gt;      }&lt;br /&gt;      catch(ex)&lt;br /&gt;      {&lt;br /&gt;        inFrame = true;&lt;br /&gt;      }&lt;br /&gt; &lt;br /&gt;      if(!inFrame)&lt;br /&gt;      { &lt;br /&gt;        var e=a.ownerDocument.parentWindow; &lt;br /&gt;        var g=e.screenLeft - top.screenLeft - top.document.documentElement.scrollLeft + 2; &lt;br /&gt;        var h=e.screenTop - top.screenTop - top.document.documentElement.scrollTop + 2; &lt;br /&gt;        var c=e.frameElement&amp;#124;&amp;#124;null; &lt;br /&gt;        if(c) &lt;br /&gt;        { &lt;br /&gt;          var b=c.currentStyle; &lt;br /&gt;          g+=(c.frameBorder&amp;#124;&amp;#124;1) * 2 + (parseInt(b.paddingLeft) &amp;#124;&amp;#124; 0) + (parseInt(b.borderLeftWidth) &amp;#124;&amp;#124; 0) - a.ownerDocument.documentElement.scrollLeft; &lt;br /&gt;          h+=(c.frameBorder&amp;#124;&amp;#124;1) * 2 + (parseInt(b.paddingTop) &amp;#124;&amp;#124; 0) + (parseInt(b.borderTopWidth) &amp;#124;&amp;#124; 0) - a.ownerDocument.documentElement.scrollTop; &lt;br /&gt;        } &lt;br /&gt;        var f=d[0]; &lt;br /&gt;        return new Sys.UI.Point(f.left-g,f.top-h); &lt;br /&gt;      } &lt;br /&gt;      else &lt;br /&gt;      { &lt;br /&gt;        // Get the bounding rectangle in client coords &lt;br /&gt;        var clientRect = element.getBoundingClientRect(); &lt;br /&gt;        if (!clientRect)&lt;br /&gt;        { &lt;br /&gt;          return new Sys.UI.Point(0,0);&lt;br /&gt;        } &lt;br /&gt;        // Find the minima in screen coords &lt;br /&gt;        var minLeft = first.left; &lt;br /&gt;        var minTop = first.top;&lt;br /&gt; &lt;br /&gt;        for (var i = 1; i &amp;lt; screenRects.length; i++)&lt;br /&gt;        { &lt;br /&gt;          var r = screenRects[i]; &lt;br /&gt;          if (r.left &amp;lt; minLeft) &lt;br /&gt;          { &lt;br /&gt;            minLeft = r.left; &lt;br /&gt;          } &lt;br /&gt;          if (r.top &amp;lt; minTop)&lt;br /&gt;          { &lt;br /&gt;            minTop = r.top;&lt;br /&gt;          }&lt;br /&gt; &lt;br /&gt;        }&lt;br /&gt; &lt;br /&gt;        // Compute the delta between screen and client coords &lt;br /&gt;        dLeft = minLeft - clientRect.left; &lt;br /&gt;        dTop = minTop - clientRect.top;&lt;br /&gt; &lt;br /&gt;        // Subtract 2px, the border of the viewport (It can be changed in IE6 by applying a border style to the HTML element, &lt;br /&gt;        // but this is not supported by ASP.NET AJAX, and it cannot be changed in IE7.), and also subtract the delta between &lt;br /&gt;        // screen coords and client coords&lt;br /&gt; &lt;br /&gt;        var ownerDocument = element.document.documentElement; &lt;br /&gt;        return new Sys.UI.Point(first.left - 2 - dLeft + ownerDocument.scrollLeft, first.top - 2 - dTop + ownerDocument.scrollTop); &lt;br /&gt;      } &lt;br /&gt;    };&lt;br /&gt;        break;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Reference: &lt;br /&gt;&lt;a href="http://blogs.msdn.com/delay/archive/2007/02/05/safely-avoiding-the-access-denied-dialog-how-to-work-around-the-access-denied-cross-domain-iframe-issue-in-the-ajax-control-toolkit.aspx" target="new"&gt;here&lt;/a&gt; and &lt;a href="http://weblogs.asp.net/bleroy/archive/2007/01/31/how-to-work-around-the-quot-access-denied-quot-cross-domain-frame-issue-in-asp-net-ajax-1-0.aspx" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-8307807205878931296?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/8307807205878931296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=8307807205878931296' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/8307807205878931296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/8307807205878931296'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/12/access-is-denied-in-ajax-control.html' title='Access is denied in Ajax Control Toolkit 1'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-6851345755557193652</id><published>2009-12-14T00:29:00.000-08:00</published><updated>2010-02-08T20:02:32.380-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><title type='text'>Date (no time) in SQL</title><content type='html'>To get date only, u can use this:&lt;br /&gt;&lt;code&gt;select Convert(datetime, Convert(VARCHAR, getdate(), 101) , 101)&lt;/code&gt;&lt;br /&gt;alternatively&lt;br /&gt;&lt;code&gt;select cast (floor (cast (createddate as float)) as datetime)&lt;/code&gt;&lt;br /&gt;Reference: &lt;a href="http://justgeeks.blogspot.com/2007/11/query-by-date-no-time-in-sql-server.html" target="new"&gt;here&lt;/a&gt; &lt;br /&gt;Complete reference: &lt;a href="http://www.sqlusa.com/bestpractices/datetimeconversion/" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-6851345755557193652?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/6851345755557193652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=6851345755557193652' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/6851345755557193652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/6851345755557193652'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/12/date-no-time-in-sql.html' title='Date (no time) in SQL'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-8798026733158003222</id><published>2009-12-10T00:01:00.000-08:00</published><updated>2009-12-10T00:03:21.495-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vs2005'/><category scheme='http://www.blogger.com/atom/ns#' term='visual-studio'/><category scheme='http://www.blogger.com/atom/ns#' term='vb.net'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><title type='text'>Could not find file 'Microsoft.Windows.CommonLanguageRuntime, Version=2.0.50727.0'</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Problem:&lt;/span&gt;&lt;br /&gt;Encountered this error in Microsoft Visual Studio 2005 while building the web project.&lt;br /&gt;&lt;code&gt;Error 123 Could not find file 'Microsoft.Windows.CommonLanguageRuntime, Version=2.0.50727.0'.&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Resolution:&lt;/span&gt;&lt;br /&gt;Do not use project reference, but use the dll or exe reference instead.&lt;br /&gt;Then try to compile again.&lt;br /&gt;It should work.&lt;br /&gt;&lt;br /&gt;Reference: &lt;a href="http://support.microsoft.com/kb/907757" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-8798026733158003222?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/8798026733158003222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=8798026733158003222' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/8798026733158003222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/8798026733158003222'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/12/could-not-find-file-microsoftwindowscom.html' title='Could not find file &apos;Microsoft.Windows.CommonLanguageRuntime, Version=2.0.50727.0&apos;'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-2365036775760247563</id><published>2009-12-08T02:13:00.000-08:00</published><updated>2009-12-08T02:15:54.405-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='extjs'/><category scheme='http://www.blogger.com/atom/ns#' term='tree'/><title type='text'>extjs - ajax.net</title><content type='html'>Use ajax combined with .net&lt;br /&gt;You can use &lt;a href="http://www.ajaxpro.info/" target="new"&gt;AjaxPro&lt;/a&gt; to get the json data.&lt;br /&gt;Reference: &lt;a href="http://www.extjs.com/forum/showthread.php?t=5277" target="new"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.extjs.com/learn/Tutorial:EXTJS_Tree_Panel_with_ASP_NET" target="new"&gt;EXTJS Tree panel with .NET&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-2365036775760247563?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/2365036775760247563/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=2365036775760247563' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/2365036775760247563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/2365036775760247563'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/12/extjs-ajaxnet.html' title='extjs - ajax.net'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-7972109699112852800</id><published>2009-12-07T23:42:00.000-08:00</published><updated>2009-12-07T23:44:07.940-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb.net'/><category scheme='http://www.blogger.com/atom/ns#' term='checkbox'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><title type='text'>CheckedChanged does not work!</title><content type='html'>While I was coding, it was very hard to debug as the CheckedChanged for my Checkbox event was not working.&lt;br /&gt;&lt;br /&gt;Found out that the AutoPostBack field was set to FALSE, it is supposed to be TRUE if you want to use the CheckedChanged event.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-7972109699112852800?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/7972109699112852800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=7972109699112852800' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/7972109699112852800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/7972109699112852800'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/12/checkedchanged-does-not-work.html' title='CheckedChanged does not work!'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-6003349485752581702</id><published>2009-12-07T21:42:00.000-08:00</published><updated>2009-12-07T21:44:48.791-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb.net'/><category scheme='http://www.blogger.com/atom/ns#' term='stored-procedure'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><title type='text'>Obtain return value from stored procedure back to code</title><content type='html'>&lt;code&gt;sqlCmd.Parameters.Add(New SqlParameter("RETURN_VALUE",SqlDbType.Int)).Direction = ParameterDirection.ReturnValue&lt;br /&gt;&lt;br /&gt;Dim i as integer = CType(sqlCmd.Parameters("RETURN_VALUE").Value, Integer)&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Reference: &lt;a href="http://www.velocityreviews.com/forums/t87797-obtaining-the-return-code-from-a-stored-procedure.html" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-6003349485752581702?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/6003349485752581702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=6003349485752581702' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/6003349485752581702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/6003349485752581702'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/12/obtain-return-value-from-stored.html' title='Obtain return value from stored procedure back to code'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-9056796900355410925</id><published>2009-12-04T02:15:00.000-08:00</published><updated>2009-12-08T02:16:04.824-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb.net'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='tree'/><title type='text'>Free Tree for ASP.NET</title><content type='html'>&lt;a href="http://www.astreeview.com/" target="new"&gt;astreeview&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-9056796900355410925?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/9056796900355410925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=9056796900355410925' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/9056796900355410925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/9056796900355410925'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/12/free-tree-for-aspnet.html' title='Free Tree for ASP.NET'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-619208636484246541</id><published>2009-12-03T21:16:00.000-08:00</published><updated>2009-12-03T21:17:37.596-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb.net'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='dropdown'/><title type='text'>Add blank item at the top of dropdownlist</title><content type='html'>&lt;code&gt;drpList.Items.Insert(0, new ListItem(String.Empty, String.Empty));&lt;br /&gt;drpList.SelectedIndex = 0;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Reference: &lt;a href="http://stackoverflow.com/questions/267064/asp-net-add-blank-item-at-top-of-dropdownlist" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-619208636484246541?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/619208636484246541/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=619208636484246541' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/619208636484246541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/619208636484246541'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/12/add-blank-item-at-top-of-dropdownlist.html' title='Add blank item at the top of dropdownlist'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-2666546849944536732</id><published>2009-12-03T21:15:00.001-08:00</published><updated>2009-12-03T21:16:20.924-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb.net'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='dataset'/><title type='text'>Insert Record into Database via Dataset</title><content type='html'>Click &lt;a href="http://msdn.microsoft.com/en-us/library/ms233812%28VS.80%29.aspx" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-2666546849944536732?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/2666546849944536732/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=2666546849944536732' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/2666546849944536732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/2666546849944536732'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/12/insert-record-into-database-via-dataset.html' title='Insert Record into Database via Dataset'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-1334589530031156564</id><published>2009-12-03T19:51:00.000-08:00</published><updated>2009-12-03T19:54:52.113-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb.net'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><title type='text'>VB.NET Class</title><content type='html'>If the class inherit another class, you may use the baseclass sub new as follows:&lt;br /&gt;&lt;code&gt;Class ChildClass&lt;br /&gt;  Inherits BaseClass&lt;br /&gt;  Public Sub New(text As String)&lt;br /&gt;    MyBase.New(text)&lt;br /&gt;  End Sub&lt;br /&gt;End Class&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Reference: &lt;a href="http://stackoverflow.com/questions/789814/can-you-inherit-a-sub-new-constructor-with-parameters-in-vb" target="new"&gt;Here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.functionx.com/vbasic/Lesson11.htm" target="new"&gt;More inheritance lessons&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-1334589530031156564?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/1334589530031156564/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=1334589530031156564' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/1334589530031156564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/1334589530031156564'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/12/vbnet-class.html' title='VB.NET Class'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-7114715206863225515</id><published>2009-12-03T19:49:00.000-08:00</published><updated>2009-12-03T19:51:45.332-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='microsoft-enterprise-library'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><title type='text'>Microsoft Enterprise Library Exception Logging error</title><content type='html'>Did you encounter this error?&lt;br /&gt;&lt;code&gt;The type 'Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.LoggingExceptionHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' cannot be resolved. Please verify the spelling is correct or that the full type name is provided.&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Simply add Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll as the reference to your project.&lt;br /&gt;&lt;br /&gt;Reference: &lt;a href="http://geekswithblogs.net/TimH/archive/2007/08/27/114986.aspx" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-7114715206863225515?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/7114715206863225515/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=7114715206863225515' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/7114715206863225515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/7114715206863225515'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/12/microsoft-enterprise-library-exception.html' title='Microsoft Enterprise Library Exception Logging error'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-7152201739251263410</id><published>2009-12-01T22:48:00.000-08:00</published><updated>2009-12-01T22:51:17.864-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='mssql'/><title type='text'>Remove Identity column in a table</title><content type='html'>&lt;a href="http://www.dev102.com/2008/03/22/how-to-reset-identity-increment-value-in-ms-sql/" target="new"&gt;Reset Identity in MS SQL&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://support.microsoft.com/kb/319664/en-us" target="new"&gt;Remove the IDENTITY Property from an Existing Column in SQL Server 2000&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://support.microsoft.com/kb/319664/en-us" target="new"&gt;Removing IDENTITY from existing column&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-7152201739251263410?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/7152201739251263410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=7152201739251263410' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/7152201739251263410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/7152201739251263410'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/12/remove-identity-column-in-table.html' title='Remove Identity column in a table'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-4029008543514054501</id><published>2009-12-01T22:46:00.001-08:00</published><updated>2009-12-01T22:51:33.826-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='mssql'/><title type='text'>Subquery sample</title><content type='html'>&lt;code&gt;create table T3 (a int unique clustered, b int)&lt;br /&gt;&lt;br /&gt;insert T1 values(0, 0, 0)&lt;br /&gt;insert T1 values(1, 1, 1)&lt;br /&gt;&lt;br /&gt;select&lt;br /&gt;    case&lt;br /&gt;        when T1.a &gt; 0 then&lt;br /&gt;            (select T3.b from T3 where T3.a = T1.b)&lt;br /&gt;        else&lt;br /&gt;            T1.c&lt;br /&gt;    end&lt;br /&gt;from T1&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Reference: &lt;a href="http://blogs.msdn.com/craigfr/archive/2006/08/23/715306.aspx" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-4029008543514054501?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/4029008543514054501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=4029008543514054501' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/4029008543514054501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/4029008543514054501'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/12/subquery-sample.html' title='Subquery sample'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-6361491252805819183</id><published>2009-07-02T02:37:00.000-07:00</published><updated>2009-07-02T02:40:46.245-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb.net'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><title type='text'>Append string in front to StringBuilder</title><content type='html'>Here's how to append string in front for StringBuilder&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;StringBuilder sb = new StringBuilder();&lt;br /&gt;sb.Append(&amp;quot;sample&amp;quot;);&lt;br /&gt;sb.Insert(0, &amp;quot;firststring &amp;quot;);&lt;br /&gt;string s = sb.ToString();&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Reference: &lt;a href="http://www.daniweb.com/forums/thread139781.html" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-6361491252805819183?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/6361491252805819183/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=6361491252805819183' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/6361491252805819183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/6361491252805819183'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/07/append-string-in-front-to-stringbuilder.html' title='Append string in front to StringBuilder'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-7221827227608621110</id><published>2009-06-30T00:22:00.000-07:00</published><updated>2009-06-30T00:24:48.344-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cookies'/><category scheme='http://www.blogger.com/atom/ns#' term='vb.net'/><title type='text'>A potentially dangerous Request.Cookies value was detected from the client</title><content type='html'>A potentially dangerous Request.Cookies value was detected from the client (AppEvtStat="Deal..."). &lt;br /&gt;&lt;br /&gt;Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. You can disable request validation by setting validateRequest=false in the Page directive or in the configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case.&lt;br /&gt;&lt;br /&gt;To resolve this:&lt;br /&gt;Add &lt;span style="font-weight:bold;"&gt;validateRequest="false"&lt;/span&gt; on the Page element like below&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;%@ Page validateRequest="false" %&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Reference: &lt;a href="http://forums.asp.net/t/577973.aspx" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-7221827227608621110?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/7221827227608621110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=7221827227608621110' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/7221827227608621110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/7221827227608621110'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/06/potentially-dangerous-requestcookies.html' title='A potentially dangerous Request.Cookies value was detected from the client'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-3426329319032176557</id><published>2009-06-29T21:08:00.000-07:00</published><updated>2009-06-29T22:17:58.111-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><title type='text'>Firefox enable windows authentication</title><content type='html'>To enable windows authentication on your domain.&lt;br /&gt;&lt;br /&gt;1. Open Firefox&lt;br /&gt;&lt;br /&gt;2. Enter on url textbox: &lt;span style="font-weight:bold;"&gt;about:config&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Locate the following preference names and put as the value the comma separated values of the address roots.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;network.automatic-ntlm-auth.trusted-uris&lt;br /&gt;network.negotiate-auth.delegation-uris&lt;br /&gt;network.negotiate-auth.trusted-uris&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Your value should look something like this: localhost, server1, server2, serverX, something.com&lt;br /&gt;&lt;br /&gt;Reference: &lt;a href="http://codebetter.com/blogs/eric.wise/archive/2006/11/16/Note-to-self_3A00_-Firefox-Windows-Authentication.aspx" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-3426329319032176557?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/3426329319032176557/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=3426329319032176557' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/3426329319032176557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/3426329319032176557'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/06/firefox-enable-windows-authentication.html' title='Firefox enable windows authentication'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-5392500851935186231</id><published>2009-06-29T01:05:00.000-07:00</published><updated>2009-06-29T01:09:07.662-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vb.net'/><title type='text'>Thread was being aborted.</title><content type='html'>&lt;blockquote&gt;&lt;code&gt;Error: Thread was being aborted.&lt;br /&gt;&lt;br /&gt;Stack Trace :   &lt;br /&gt;&lt;br /&gt;   at System.Threading.Thread.AbortInternal()&lt;br /&gt;   at System.Threading.Thread.Abort(Object stateInfo)&lt;br /&gt;   at System.Web.HttpResponse.End()&lt;br /&gt;   at System.Web.HttpResponse.Redirect(String url, Boolean endResponse)&lt;br /&gt;   at System.Web.HttpResponse.Redirect(String url)&lt;/code&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Response.Redirect&lt;/span&gt; is added within a &lt;span style="font-weight:bold;"&gt;try-catch block&lt;/span&gt; by ONLY providing a url will cause the above error.&lt;br /&gt;&lt;br /&gt;An exception will be thrown, even though it can still redirect to the URL that you want. (you can track this error in debug mode) &lt;br /&gt;&lt;br /&gt;To resolve this: &lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;Response.Redirect(url,&lt;span style="font-weight:bold;"&gt;false&lt;/span&gt;) &lt;/code&gt;&lt;/blockquote&gt;&lt;br /&gt;add a boolean indicator to end the response&lt;br /&gt;&lt;br /&gt;Reference: &lt;a href="http://aspadvice.com/blogs/getwhatyouwant/archive/2006/10/27/Thread-was-being-aborted-_2D00_-simple.aspx" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-5392500851935186231?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/5392500851935186231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=5392500851935186231' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/5392500851935186231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/5392500851935186231'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/06/thread-was-being-aborted.html' title='Thread was being aborted.'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-5709816579597241433</id><published>2009-06-22T01:08:00.000-07:00</published><updated>2009-06-22T01:14:20.952-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='run'/><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><category scheme='http://www.blogger.com/atom/ns#' term='shortcut'/><title type='text'>RUN command shortcuts</title><content type='html'>&lt;blockquote&gt;Accessibility Controls  :  access.cpl  &lt;br /&gt;Add Hardware Wizard : hdwwiz.cpl &lt;br /&gt;Add/Remove Programs : appwiz.cpl &lt;br /&gt;Administrative Tools : control admintools &lt;br /&gt;Automatic Updates :  wuaucpl.cpl &lt;br /&gt;Bluetooth Transfer Wizard : fsquirt &lt;br /&gt;Calculator : calc &lt;br /&gt;Certificate Manager : certmgr.msc &lt;br /&gt;Character Map : charmap &lt;br /&gt;Check Disk Utility : chkdsk &lt;br /&gt;Clipboard Viewer : clipbrd &lt;br /&gt;Command Prompt : cmd &lt;br /&gt;Component Services : dcomcnfg &lt;br /&gt;Computer Management : compmgmt.msc &lt;br /&gt;Date and Time Properties : timedate.cpl &lt;br /&gt;DDE Shares : ddeshare &lt;br /&gt;Device Manager : devmgmt.msc &lt;br /&gt;Direct X Control Panel (If Installed)* : directx.cp&lt;br /&gt;Direct X Troubleshooter : dxdiag&lt;br /&gt;Disk Cleanup Utility : cleanmgr&lt;br /&gt;Disk Defragment : dfrg.msc&lt;br /&gt;Disk Management : diskmgmt.msc&lt;br /&gt;Disk Partition Manager : diskpart&lt;br /&gt;Display Properties : control desktop&lt;br /&gt;Display Properties : desk.cpl&lt;br /&gt;Display Properties (w/Appearance Tab Preselected) : control color&lt;br /&gt;Dr. Watson System Troubleshooting Utility : drwtsn32&lt;br /&gt;Driver Verifier Utility : verifier&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Event Viewer : eventvwr.msc&lt;/span&gt;&lt;br /&gt;File Signature Verification Tool : sigverif&lt;br /&gt;Findfast : findfast.cpl&lt;br /&gt;Folders Properties : control folders&lt;br /&gt;Fonts : control fonts&lt;br /&gt;Fonts Folder : fonts&lt;br /&gt;Free Cell Card Game : freecell&lt;br /&gt;Game Controllers : joy.cpl&lt;br /&gt;Group Policy Editor (XP Prof) : gpedit.msc&lt;br /&gt;Hearts Card Game : mshearts&lt;br /&gt;Iexpress Wizard : iexpress&lt;br /&gt;Indexing Service : ciadv.msc&lt;br /&gt;Internet Properties : inetcpl.cpl&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;IP Configuration (Display Connection Configuration) : ipconfig /all&lt;/span&gt;&lt;br /&gt;IP Configuration (Display DNS Cache Contents) : ipconfig /displaydns&lt;br /&gt;IP Configuration (Delete DNS Cache Contents) : ipconfig /flushdns&lt;br /&gt;IP Configuration (Release All Connections) : ipconfig /release&lt;br /&gt;IP Configuration (Renew All Connections) : ipconfig /renew&lt;br /&gt;IP Configuration (Refreshes DHCP &amp; Re-Registers DNS) : ipconfig /registerdns&lt;br /&gt;IP Configuration (Display DHCP Class ID) : ipconfig /showclassid&lt;br /&gt;IP Configuration (Modifies DHCP Class ID) : ipconfig /setclassid&lt;br /&gt;Java Control Panel (If Installed) : jpicpl32.cpl&lt;br /&gt;Java Control Panel (If Installed) : javaws&lt;br /&gt;Keyboard Properties : control keyboard&lt;br /&gt;Local Security Settings : secpol.msc &lt;br /&gt;Local Users and Groups : lusrmgr.msc &lt;br /&gt;Logs You Out Of Windows : logoff &lt;br /&gt;Microsoft Chat : winchat &lt;br /&gt;Minesweeper Game : winmine &lt;br /&gt;Mouse Properties : control mouse &lt;br /&gt;Mouse Properties : main.cpl &lt;br /&gt;Network Connections : control netconnections&lt;br /&gt;Network Connections : ncpa.cpl &lt;br /&gt;Network Setup Wizard : netsetup.cpl&lt;br /&gt;Notepad : notepad &lt;br /&gt;Nview Desktop Manager (If Installed) : nvtuicpl.cpl &lt;br /&gt;Object Packager : packager &lt;br /&gt;ODBC Data Source Administrator : odbccp32.cpl &lt;br /&gt;On Screen Keyboard : osk &lt;br /&gt;Opens AC3 Filter (If Installed) : ac3filter.cpl &lt;br /&gt;Password Properties : password.cpl &lt;br /&gt;Performance Monitor : perfmon.msc &lt;br /&gt;Performance Monitor : perfmon &lt;br /&gt;Phone and Modem Options : telephon.cpl &lt;br /&gt;Power Configuration : powercfg.cpl &lt;br /&gt;Printers and Faxes : control printers &lt;br /&gt;Printers Folder : printers &lt;br /&gt;Private Character Editor : eudcedit &lt;br /&gt;Quicktime (If Installed) : QuickTime.cpl &lt;br /&gt;Regional Settings : intl.cpl &lt;br /&gt;Registry Editor : regedit &lt;br /&gt;Registry Editor : regedit32 &lt;br /&gt;Remote Desktop : mstsc &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Removable Storage : ntmsmgr.msc &lt;/span&gt;&lt;br /&gt;Removable Storage Operator Requests : ntmsoprq.msc &lt;br /&gt;Resultant Set of Policy (XP Prof) : rsop.msc &lt;br /&gt;Scanners and Cameras : sticpl.cpl &lt;br /&gt;Scheduled Tasks : control schedtasks &lt;br /&gt;Security Center : wscui.cpl &lt;br /&gt;Services : services.msc &lt;br /&gt;Shared Folders : fsmgmt.msc &lt;br /&gt;Shuts Down Windows : shutdown &lt;br /&gt;Sounds and Audio : mmsys.cpl &lt;br /&gt;Spider Solitare Card Game : spider &lt;br /&gt;SQL Client Configuration : cliconfg &lt;br /&gt;System Configuration Editor : sysedit &lt;br /&gt;System Configuration Utility : msconfig &lt;br /&gt;System File Checker Utility (Scan Immediately) : sfc /scannow &lt;br /&gt;System File Checker Utility (Scan Once At Next Boot) : sfc /scanonce &lt;br /&gt;System File Checker Utility (Scan On Every Boot) : sfc /scanboot &lt;br /&gt;System File Checker Utility (Return to Default Setting) : sfc /revert &lt;br /&gt;System File Checker Utility (Purge File Cache) : sfc /purgecache &lt;br /&gt;System File Checker Utility (Set Cache Size to size x) : sfc /cachesize=x &lt;br /&gt;System Properties : sysdm.cpl &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Task Manager : taskmgr &lt;/span&gt;&lt;br /&gt;Telnet Client : telnet &lt;br /&gt;User Account Management : nusrmgr.cpl &lt;br /&gt;Utility Manager : utilman &lt;br /&gt;Windows Firewall : firewall.cpl &lt;br /&gt;Windows Magnifier : magnify &lt;br /&gt;Windows Management Infrastructure : wmimgmt.msc&lt;br /&gt;Windows System Security Tool : syskey&lt;br /&gt;Windows Update Launches : wupdmgr&lt;br /&gt;Windows XP Tour Wizard : tourstart&lt;br /&gt;Wordpad : write&lt;/blockquote&gt;&lt;br /&gt;taken from &lt;a href="http://blogs.sqlxml.org/vinodkumar/archive/2006/01/19/4681.aspx" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-5709816579597241433?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/5709816579597241433/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=5709816579597241433' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/5709816579597241433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/5709816579597241433'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/06/run-command-shortcuts.html' title='RUN command shortcuts'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-8260725970210471175</id><published>2009-04-08T19:57:00.000-07:00</published><updated>2009-04-08T19:58:59.655-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='stored-procedure'/><category scheme='http://www.blogger.com/atom/ns#' term='mssql'/><title type='text'>Find Last day of the month</title><content type='html'>To find the last day of the month in SQL:&lt;br /&gt;&lt;blockquote&gt;—-Last Day of Previous Month&lt;br /&gt;SELECT DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,GETDATE()),0))&lt;br /&gt;LastDay_PreviousMonth&lt;br /&gt;—-Last Day of Current Month&lt;br /&gt;SELECT DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,GETDATE())+1,0))&lt;br /&gt;LastDay_CurrentMonth&lt;br /&gt;—-Last Day of Next Month&lt;br /&gt;SELECT DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,GETDATE())+2,0))&lt;/blockquote&gt;&lt;br /&gt;Source: &lt;a href="http://blog.sqlauthority.com/2007/08/18/sql-server-find-last-day-of-any-month-current-previous-next/"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-8260725970210471175?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/8260725970210471175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=8260725970210471175' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/8260725970210471175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/8260725970210471175'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/04/find-last-day-of-month.html' title='Find Last day of the month'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-5633218680410441497</id><published>2009-04-02T18:02:00.000-07:00</published><updated>2009-04-02T18:04:33.899-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><title type='text'>Learn 3dMax, Adobe etc Online</title><content type='html'>Website: &lt;a href="http://www.lynda.com"&gt;lynda.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Need to pay $25 but unlimited, with video quicktime and a good teaching structure.&lt;br /&gt;if you signed up with premium, practice file will be given.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-5633218680410441497?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/5633218680410441497/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=5633218680410441497' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/5633218680410441497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/5633218680410441497'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/04/learn-3dmax-adobe-etc-online.html' title='Learn 3dMax, Adobe etc Online'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-4825018099954773392</id><published>2009-03-23T00:36:00.001-07:00</published><updated>2009-03-23T00:37:35.014-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='mssql'/><title type='text'>Get list of all tables in SQL and its approximate row count</title><content type='html'>Here's the SQL to do this.&lt;br /&gt;&lt;blockquote&gt;SELECT &lt;br /&gt;    [TableName] = so.name, &lt;br /&gt;    [RowCount] = MAX(si.rows) &lt;br /&gt;FROM &lt;br /&gt;    sysobjects so, &lt;br /&gt;    sysindexes si &lt;br /&gt;WHERE &lt;br /&gt;    so.xtype = 'U' &lt;br /&gt;    AND &lt;br /&gt;    si.id = OBJECT_ID(so.name) &lt;br /&gt;GROUP BY &lt;br /&gt;    so.name &lt;br /&gt;ORDER BY &lt;br /&gt;    2 DESC&lt;/blockquote&gt;&lt;br /&gt;Kewl, huh!?&lt;br /&gt;Reference: &lt;a href="http://sqlserver2000.databases.aspfaq.com/how-do-i-get-a-list-of-sql-server-tables-and-their-row-counts.html" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-4825018099954773392?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/4825018099954773392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=4825018099954773392' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/4825018099954773392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/4825018099954773392'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/03/get-list-of-all-tables-in-sql-and-its.html' title='Get list of all tables in SQL and its approximate row count'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-5152155640107533285</id><published>2009-03-19T03:24:00.000-07:00</published><updated>2009-03-19T03:27:02.770-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='stored-procedure'/><title type='text'>Bracket Plus Sign (+) in SQL</title><content type='html'>&lt;blockquote&gt;SELECT *&lt;br /&gt;FROM TABLE1 a, TABLE2 b&lt;br /&gt;WHERE a.CODE = b.CODE(+)&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;This bracket plus sign (+) indicates a LEFT OUTER JOIN. It includes all records from TABLE1 and from TABLE2 that has CODE field value match.&lt;br /&gt;&lt;br /&gt;Click &lt;a href="http://answers.yahoo.com/question/index?qid=20090225181252AAjPBrW" target="new"&gt;here&lt;/a&gt; for more information&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-5152155640107533285?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/5152155640107533285/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=5152155640107533285' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/5152155640107533285'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/5152155640107533285'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/03/bracket-plus-sign-in-sql.html' title='Bracket Plus Sign (+) in SQL'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-4176485777913351071</id><published>2009-03-16T23:02:00.000-07:00</published><updated>2009-03-16T23:08:10.457-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IE7'/><title type='text'>Clear Browsing History in IE7</title><content type='html'>Create batch file (for example: New_IE.bat)&lt;br /&gt;&lt;br /&gt;Fill the file with this:&lt;br /&gt;&lt;blockquote&gt;C:\Progra~1\Intern~1\iexplore.exe&lt;br /&gt;RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255&lt;/blockquote&gt;&lt;br /&gt;When we exit Internet Explorer, System will clear all the history.&lt;br /&gt;This only works for IE 7.&lt;br /&gt;&lt;br /&gt;anonymizer&lt;br /&gt;nph-proxy: website that will not write the history to the proxy.&lt;br /&gt;&lt;a href="http://www.bpcd.net/cgi-bin/nph-proxy.cgi" target="new"&gt;http://www.bpcd.net/cgi-bin/nph-proxy.cgi&lt;/a&gt;&lt;br /&gt;enter URL on the site, open all sites, only that url will show in the nph-proxy &lt;br /&gt;&lt;br /&gt;or you can use this so that won't keep the history.&lt;br /&gt;chrome: incognito&lt;br /&gt;ie8 (beta): &lt;span style="font-style:italic;"&gt;sorry, forgot the name&lt;/span&gt;&lt;br /&gt;firefox: there's an option to clear&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-4176485777913351071?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/4176485777913351071/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=4176485777913351071' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/4176485777913351071'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/4176485777913351071'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/03/clear-browsing-history-in-ie7.html' title='Clear Browsing History in IE7'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-418648328113969331</id><published>2009-03-11T02:10:00.000-07:00</published><updated>2009-03-11T02:14:25.789-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='mssql'/><title type='text'>Identity after inserting</title><content type='html'>How is exactly to get the identity after inserting in MS SQL?&lt;br /&gt;If the table u are inserting have identity set to YES.&lt;br /&gt;Hence you can use this.&lt;br /&gt;&lt;blockquote&gt;declare @theid as bigint&lt;br /&gt;insert into tablename select myvalue1, myvalue2&lt;br /&gt;set @theid=@@IDENTITY&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;So the new ID is kept in the variable @theid now.&lt;br /&gt;&lt;br /&gt;Reference: &lt;a href="http://databases.aspfaq.com/general/how-do-i-get-the-identity/autonumber-value-for-the-row-i-inserted.html" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-418648328113969331?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/418648328113969331/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=418648328113969331' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/418648328113969331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/418648328113969331'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/03/identity-after-inserting.html' title='Identity after inserting'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-3220475209868781301</id><published>2009-03-10T23:06:00.000-07:00</published><updated>2009-03-10T23:12:29.653-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mssql'/><title type='text'>BCP function</title><content type='html'>You can use this BCP function easily to import/export from the MS SQL database.&lt;br /&gt;&lt;br /&gt;usage: bcp {dbtable | query} {in | out | queryout | format} datafile&lt;br /&gt;  [-m maxerrors]            [-f formatfile]          [-e errfile]&lt;br /&gt;  [-F firstrow]             [-L lastrow]             [-b batchsize]&lt;br /&gt;  [-n native type]          [-c character type]      [-w wide character type]&lt;br /&gt;  [-N keep non-text native] [-V file format version] [-q quoted identifier]&lt;br /&gt;  [-C code page specifier]  [-t field terminator]    [-r row terminator]&lt;br /&gt;  [-i inputfile]            [-o outfile]             [-a packetsize]&lt;br /&gt;  [-S server name]          [-U username]            [-P password]&lt;br /&gt;  [-T trusted connection]   [-v version]             [-R regional enable]&lt;br /&gt;  [-k keep null values]     [-E keep identity values]&lt;br /&gt;  [-h "load hints"]&lt;br /&gt;&lt;br /&gt;Here's an example to export the data from the database.&lt;br /&gt;- with trusted connection&lt;br /&gt;&lt;blockquote&gt;bcp "dbname.dbo.tablename" out "dev_tablename.bcp" -e error.log -c -S servername -T -k &lt;/blockquote&gt;&lt;br /&gt;- with username and password&lt;br /&gt;&lt;blockquote&gt;bcp "dbname.dbo.tablename" out "dev_tablename.bcp" -e error.log -c -S servername -U username -P password -k &lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Here's an example to import the data to the database.&lt;br /&gt;- with trusted connection&lt;br /&gt;&lt;blockquote&gt;bcp "dbname.dbo.tablename" &lt;span style="font-weight:bold;"&gt;in&lt;/span&gt; "dev_tablename.bcp" -e error.log -c -S servername -T -k &lt;/blockquote&gt;&lt;br /&gt;- with username and password&lt;br /&gt;&lt;blockquote&gt;bcp "dbname.dbo.tablename" &lt;span style="font-weight:bold;"&gt;in&lt;/span&gt; "dev_tablename.bcp" -e error.log -c -S servername -U username -P password -k &lt;/blockquote&gt;&lt;br /&gt;- with username and password and order clause&lt;br /&gt;&lt;blockquote&gt;bcp "dbname.dbo.tablename" &lt;span style="font-weight:bold;"&gt;in&lt;/span&gt; "dev_tablename.bcp" -e error.log -c -S servername -U username -P password -k -h "ORDER (TheDate DESC)"&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-3220475209868781301?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/3220475209868781301/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=3220475209868781301' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/3220475209868781301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/3220475209868781301'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/03/bcp-function.html' title='BCP function'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-2662448542436224272</id><published>2009-02-16T17:14:00.000-08:00</published><updated>2009-02-16T17:23:52.184-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mssql'/><title type='text'>Select Nth Row</title><content type='html'>SQL Query:&lt;br /&gt;&lt;blockquote&gt;SELECT TOP 1 name FROM (SELECT TOP 9 name FROM master..syslogins ORDER BY name ASC) sq ORDER BY name DESC -- gets 9th row&lt;/blockquote&gt; &lt;br /&gt;&lt;a href="http://pentestmonkey.net/blog/mssql-sql-injection-cheat-sheet/" target="new"&gt;MSSQL Injection Cheat Sheet&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Looping in MSSQL&lt;br /&gt;&lt;blockquote&gt;declare @index integer&lt;br /&gt;set @index = 0&lt;br /&gt;while @index &lt; 10&lt;br /&gt;begin&lt;br /&gt;select 'loop counter = ', @index&lt;br /&gt;set @index = @index + 1&lt;br /&gt;end&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-2662448542436224272?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/2662448542436224272/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=2662448542436224272' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/2662448542436224272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/2662448542436224272'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/02/select-nth-row.html' title='Select Nth Row'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-9001503955601274324</id><published>2009-02-06T00:01:00.001-08:00</published><updated>2009-02-06T00:02:02.034-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ip'/><title type='text'>Find computer using IP</title><content type='html'>On command prompt we can type this:&lt;br /&gt;&lt;br /&gt;NSLOOKUP &lt;the ip address&gt;&lt;br /&gt;&lt;br /&gt;it will show the computer name.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-9001503955601274324?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/9001503955601274324/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=9001503955601274324' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/9001503955601274324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/9001503955601274324'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/02/find-computer-using-ip.html' title='Find computer using IP'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-6222831461079101495</id><published>2009-02-03T01:44:00.000-08:00</published><updated>2009-02-03T01:53:33.882-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='file'/><title type='text'>Cannot delete file: cannot read from source file or disk</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_a17NJUyFeDQ/SYgSHZq5LuI/AAAAAAAAA-Q/p03NFf75ooU/s1600-h/error.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 166px;" src="http://1.bp.blogspot.com/_a17NJUyFeDQ/SYgSHZq5LuI/AAAAAAAAA-Q/p03NFf75ooU/s320/error.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5298504879960567522" /&gt;&lt;/a&gt;&lt;br /&gt;When we receive this kind of error what to do??&lt;br /&gt;The files within this folder is somehow corrupted.&lt;br /&gt;First step is to fix it.&lt;br /&gt;1. Open command prompt (Start -&gt; Run -&gt; cmd)&lt;br /&gt;2. Type &lt;span style="font-weight:bold;"&gt;chkdsk /F E:\&lt;ur dir&gt;&lt;/span&gt;&lt;br /&gt;It will fixed by itself.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-6222831461079101495?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/6222831461079101495/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=6222831461079101495' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/6222831461079101495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/6222831461079101495'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/02/cannot-delete-file-cannot-read-from.html' title='Cannot delete file: cannot read from source file or disk'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_a17NJUyFeDQ/SYgSHZq5LuI/AAAAAAAAA-Q/p03NFf75ooU/s72-c/error.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-2864569066278970797</id><published>2009-01-08T05:42:00.000-08:00</published><updated>2009-01-08T05:45:04.872-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>PHP Get User Information</title><content type='html'>Class features:&lt;br /&gt;    * Get User Browser.&lt;br /&gt;    * Get User Operating System.&lt;br /&gt;    * Get User IP.&lt;br /&gt;    * Get User Country.&lt;br /&gt;    * Get User Referral + Search Engine.&lt;br /&gt;    * Get User Language.&lt;br /&gt;    * Check if Flash enabled.&lt;br /&gt;    * Check if JavaScript enabled.&lt;br /&gt;    * Check user speed (bandwidth).&lt;br /&gt;&lt;br /&gt;&lt;a href="http://awesomephp.com/?Download*16" target="new"&gt;Download the file.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Reference: &lt;a href="http://forums.digitalpoint.com/showthread.php?p=9402567" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-2864569066278970797?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/2864569066278970797/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=2864569066278970797' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/2864569066278970797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/2864569066278970797'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/01/php-get-user-information.html' title='PHP Get User Information'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-2369404194075929485</id><published>2009-01-08T05:25:00.000-08:00</published><updated>2009-01-08T05:31:39.575-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 134 bytes)</title><content type='html'>When you received this kind of error in PHP&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 134 bytes) in /home/www/domains/www.salzwimmer.at/html/gb/PYG.php on line 181&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Here's how to resolve in xampp:&lt;br /&gt;1. Enable the Rewrite module.&lt;br /&gt;Open %XAMPP%\apache\conf\httpd.conf in notepad and search for mod_rewrite. You will find a line like:&lt;br /&gt;&lt;blockquote&gt;#LoadModule rewrite_module modules/mod_rewrite.so&lt;/blockquote&gt;&lt;br /&gt;Remove the # from the beginning. It will now look:&lt;br /&gt;&lt;blockquote&gt;LoadModule rewrite_module modules/mod_rewrite.so&lt;/blockquote&gt;&lt;br /&gt;Restart the Apache web server through XAMPP control panel.&lt;br /&gt;&lt;br /&gt;2. Find php.ini in your folder&lt;br /&gt;Change the memory_limit to 64M&lt;br /&gt;Here are the files that I changed:&lt;br /&gt;%XAMPP%\php\php.ini&lt;br /&gt;and&lt;br /&gt;%XAMPP%\apache\bin\php.ini&lt;br /&gt;&lt;br /&gt;Find a line like:&lt;br /&gt;&lt;blockquote&gt;memory_limit = 32M      ; Maximum amount of memory a script may consume (16MB)&lt;/blockquote&gt;&lt;br /&gt;Change to&lt;br /&gt;&lt;blockquote&gt;memory_limit = 64M      ; Maximum amount of memory a script may consume (16MB)&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Save the file and restart the Apache web server.&lt;br /&gt;You should be able to resolve this error.&lt;br /&gt;&lt;br /&gt;To check on the configuration:&lt;br /&gt;1. Go to localhost/xampp&lt;br /&gt;2. Click on the phpinfo()&lt;br /&gt;3. Find for memory_limit&lt;br /&gt;4. See if it's 64M instead of 32M&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-2369404194075929485?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/2369404194075929485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=2369404194075929485' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/2369404194075929485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/2369404194075929485'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2009/01/fatal-error-allowed-memory-size-of.html' title='Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 134 bytes)'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-4547447983121735632</id><published>2008-12-12T00:19:00.000-08:00</published><updated>2008-12-12T00:21:18.324-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gimp'/><category scheme='http://www.blogger.com/atom/ns#' term='img-effect'/><title type='text'>Sun Ray Effect</title><content type='html'>This is what I have been searching for long....&lt;br /&gt;At last, i found it.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://gimp-tutorials.net/files/files/thumb-sunburstl.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 200px;" src="http://gimp-tutorials.net/files/files/thumb-sunburstl.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;Click &lt;a href="http://gimp-tutorials.net/node/153" target="new"&gt;here&lt;/a&gt; to view the tutorial.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-4547447983121735632?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/4547447983121735632/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=4547447983121735632' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/4547447983121735632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/4547447983121735632'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2008/12/sun-ray-effect.html' title='Sun Ray Effect'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-6802207272536003877</id><published>2008-11-27T00:00:00.000-08:00</published><updated>2008-11-27T00:03:59.504-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mssql'/><title type='text'>Key column information is insufficient or incorrect. Too many rows were affected by update.</title><content type='html'>In MS SQL 2000, in a table with no primary key/index/constraint, whenever there is duplicate record, we cannot delete any of the duplicate record, it will give this error:&lt;br /&gt;&lt;blockquote&gt;"Key column information is insufficient or incorrect. Too many rows were&lt;br /&gt;affected by update."&lt;/blockquote&gt;&lt;br /&gt;So how is the trick to remove this duplication?&lt;br /&gt;I was searching and finally found something.&lt;br /&gt;&lt;br /&gt;here's what we can do:&lt;br /&gt;1. find out which are the duplicate records&lt;br /&gt;&lt;blockquote&gt;SELECT col1, col2, count(*)&lt;br /&gt;FROM t1&lt;br /&gt;GROUP BY col1, col2&lt;br /&gt;HAVING count(*) &gt; 1&lt;/blockquote&gt;&lt;br /&gt;2. delete the duplicate by using this sql&lt;br /&gt;&lt;blockquote&gt;set rowcount 1&lt;br /&gt;delete from t1&lt;br /&gt;where col1=1 and col2=1&lt;/blockquote&gt;&lt;br /&gt;it works!&lt;br /&gt;&lt;br /&gt;Reference: &lt;a href="http://support.microsoft.com/kb/139444" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-6802207272536003877?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/6802207272536003877/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=6802207272536003877' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/6802207272536003877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/6802207272536003877'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2008/11/key-column-information-is-insufficient.html' title='Key column information is insufficient or incorrect. Too many rows were affected by update.'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-2880976942012076739</id><published>2008-11-26T08:16:00.000-08:00</published><updated>2008-11-26T08:19:06.046-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='xampp'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Access violation at address 10002593 in module ‘LIBMYSQL.dll’ read at address 00000000.</title><content type='html'>Yeah I continuously got this error after installing xampp.&lt;br /&gt;Maybe u got this too?&lt;br /&gt;Here's how to solve the problem:&lt;br /&gt;   1. Choose Start &gt; All Programs &gt; Startup &gt; WinMySQLadmin&lt;br /&gt;   2. Click on the my.ini Setup tab in the WinMySQLadmin window. This can be tricky because the error message windows keep popping up on top the WinMySQLadmin window.&lt;br /&gt;   3. In the my.ini Setup tab, there’s a big text box and at the bottom, you’ll see&lt;br /&gt;      user=root&lt;br /&gt;      password=password&lt;br /&gt;   4. Delete the second ‘password’ so that those two lines look like this:&lt;br /&gt;      user=root&lt;br /&gt;      password=&lt;br /&gt;   5. Click the ‘Save Modification’ button in the left area of the window, and confirm that you want to save your changes.&lt;br /&gt;   6. The error messages should stop now. &lt;br /&gt;&lt;br /&gt;Reference: &lt;a href="http://www.sawmac.com/etc/2008/02/14/mamp-madness/" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-2880976942012076739?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/2880976942012076739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=2880976942012076739' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/2880976942012076739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/2880976942012076739'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2008/11/access-violation-at-address-10002593-in.html' title='Access violation at address 10002593 in module ‘LIBMYSQL.dll’ read at address 00000000.'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-5835216301693478488</id><published>2008-11-19T01:26:00.000-08:00</published><updated>2008-11-19T01:31:23.688-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='visual-studio'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><title type='text'>Unable to read the project file 'something.vbproj'. The system cannot find the path specified</title><content type='html'>I have encountered this error and tried to debug it for quite sometime.&lt;br /&gt;It's kinda annoying as I cannot open the web application.&lt;br /&gt;&lt;br /&gt;My solution has reference to this vbproj file as etp file.&lt;br /&gt;I have checked that the reference path to this vbproj file is correct in the etp file (http://localhost/something).&lt;br /&gt;I have tried adding the virtual directory 'something' manually on IIS, but yet it didn't work.&lt;br /&gt;&lt;br /&gt;How to work around this problem?&lt;br /&gt;There is a file that contains the visual studio settings for the solution. Not sure what it holds. Things like startup project, page.&lt;br /&gt;&lt;br /&gt;If the solution is called mysolution.sln then the file is mysolution.suo. It is a hidden file so you will need to turn on the display of hidden files in windows explorer or use dos.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Delete it and all will be fine.&lt;/span&gt; VS will create a new one.&lt;br /&gt;Make a backup of the whole directory if it makes you more comfortable.&lt;br /&gt;&lt;br /&gt;Reference: &lt;a href="http://www.velocityreviews.com/forums/t112064-unable-to-read-the-project-file.html" target="new"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;And I tried that.. and wala... I can open successfully.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-5835216301693478488?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/5835216301693478488/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=5835216301693478488' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/5835216301693478488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/5835216301693478488'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2008/11/unable-to-read-project-file.html' title='Unable to read the project file &apos;something.vbproj&apos;. The system cannot find the path specified'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-3411101094824490212</id><published>2008-11-11T22:25:00.000-08:00</published><updated>2008-11-11T22:44:50.719-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='form'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='html'/><category scheme='http://www.blogger.com/atom/ns#' term='dropdown'/><title type='text'>Autocomplete control with dropdown</title><content type='html'>Besides extjs, here's what I found to be useful as dropdown.&lt;br /&gt;&lt;br /&gt;Featuring auto-complete dropdown, or auto-complete textarea like Gmail's one, also country listing (PHP)&lt;br /&gt;&lt;br /&gt;Reference: &lt;a href="http://momche.net/publish/article.php?page=acdropdown" target="new"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Resources for date picker: &lt;a href="http://sixrevisions.com/resources/free_calendar_datepicker_scripts/" target="new"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://momche.net/publish/downloads/moacdropdown.zip"&gt;Download the code here.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-3411101094824490212?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/3411101094824490212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=3411101094824490212' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/3411101094824490212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/3411101094824490212'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2008/11/autocomplete-control-with-dropdown.html' title='Autocomplete control with dropdown'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-835272446489147603</id><published>2008-10-30T03:38:00.000-07:00</published><updated>2008-10-30T03:40:57.425-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><title type='text'>SQL - Drop, Truncate and Delete</title><content type='html'>Yeah.. basic things but it might be asked on the interview for Application Consultant position at Barclays.&lt;br /&gt;&lt;br /&gt;What is the difference between Drop, Truncate and Delete?&lt;br /&gt;Drop is to remove the whole table including the structure.&lt;br /&gt;Truncate is to clean the table, delete all the data within the table.&lt;br /&gt;Delete is to delete a record from the table.&lt;br /&gt;&lt;br /&gt;So delete from table and truncate is the same?&lt;br /&gt;The answer is no.&lt;br /&gt;&lt;br /&gt;Delete will lock the table, but truncate will not.&lt;br /&gt;That's the main difference!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-835272446489147603?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/835272446489147603/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=835272446489147603' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/835272446489147603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/835272446489147603'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2008/10/sql-drop-truncate-and-delete.html' title='SQL - Drop, Truncate and Delete'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-6570691306682650818</id><published>2008-10-10T02:39:00.000-07:00</published><updated>2008-10-10T02:54:51.366-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='vb.net'/><category scheme='http://www.blogger.com/atom/ns#' term='stored-procedure'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='xml'/><category scheme='http://www.blogger.com/atom/ns#' term='mssql'/><category scheme='http://www.blogger.com/atom/ns#' term='bulk-insert'/><title type='text'>Inserting Large Amount of Data - Bulk Insert</title><content type='html'>In order to pass a large amount of data, in VB.NET we can use &lt;span style="font-weight:bold;"&gt;Bulk Insert&lt;/span&gt;, &lt;a href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;316244" target="new"&gt;here&lt;/a&gt;'s the article for more information on the sample too. &lt;br /&gt;Bulk insert sample in vbs file, click &lt;a href="http://www.databasejournal.com/features/mssql/article.php/10894_2235451_1" target="new"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;If you need to create an XML from the Dataset, then u can click &lt;a href="http://msdn.microsoft.com/en-us/library/zx8h06sz.aspx" target="new"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Here's a sample on reading XML format in stored procedure:&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;DECLARE @idoc int&lt;br /&gt;&lt;br /&gt;DECLARE @doc varchar(1000);&lt;br /&gt;&lt;br /&gt;Select @doc ='&lt;br /&gt;&amp;lt;ROOT&amp;gt;&lt;br /&gt;&amp;lt;Customer CustomerID=&amp;quot;1&amp;quot; ContactName=&amp;quot;John 1&amp;quot;/&amp;gt;&lt;br /&gt;&amp;lt;Customer CustomerID=&amp;quot;2&amp;quot; ContactName=&amp;quot;John 2&amp;quot;/&amp;gt;&lt;br /&gt;&amp;lt;Customer CustomerID=&amp;quot;1&amp;quot; ContactName=&amp;quot;John 3&amp;quot;/&amp;gt;&lt;br /&gt;&amp;lt;Customer CustomerID=&amp;quot;2&amp;quot; ContactName=&amp;quot;John 4&amp;quot;/&amp;gt;&lt;br /&gt;&amp;lt;/ROOT&amp;gt;'&lt;br /&gt;&lt;br /&gt;EXEC sp_xml_preparedocument @idoc OUTPUT, @doc&lt;br /&gt;&lt;br /&gt;SELECT    *&lt;br /&gt;FROM       OPENXML (@idoc, '/ROOT/Customer',1)&lt;br /&gt;            WITH (CustomerID  varchar(10),&lt;br /&gt;                  ContactName varchar(20))&lt;br /&gt;&lt;br /&gt;EXEC sp_xml_removedocument @idoc&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Please take note that this is not reading from the physical XML file, this can only be used for reading table field with the value of XML formatted text.&lt;br /&gt;More info on feeding XML to Stored Procedure, click &lt;a href="http://msdn.microsoft.com/en-us/library/aa224820(SQL.80).aspx" target="new"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;This is a sample of reading physical file from the stored procedure, but I have not tested it as I do not have this permission in my office development environment.&lt;br /&gt;&lt;font color="red"&gt;EXECUTE permission denied on object 'sp_OACreate', database 'master', owner 'dbo'.&lt;/font&gt;&lt;br /&gt;I guess this action requires &lt;span style="font-weight:bold;"&gt;sysadmin&lt;/span&gt; rights.&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;declare @objFSys int&lt;br /&gt;declare @objFile int&lt;br /&gt;declare @blnEndOfFile int&lt;br /&gt;declare @strLine varchar(4000)&lt;br /&gt;&lt;br /&gt;exec sp_OACreate 'Scripting.FileSystemObject', @objFSys out&lt;br /&gt;&lt;br /&gt;-- Change the file path to the one that is passed to your stored procedure&lt;br /&gt;exec sp_OAMethod @objFSys, 'OpenTextFile', @objFile out, 'C:\test.txt', 1&lt;br /&gt;exec sp_OAMethod @objFile, 'AtEndOfStream', @blnEndOfFile out&lt;br /&gt;while @blnEndOfFile=0 begin&lt;br /&gt;  exec sp_OAMethod @objFile, 'ReadLine', @strLine out&lt;br /&gt;  -- Here you got one line from the file&lt;br /&gt;  select @strLine&lt;br /&gt;  exec sp_OAMethod @objFile, 'AtEndOfStream', @blnEndOfFile out&lt;br /&gt;end&lt;br /&gt;exec sp_OADestroy @objFile&lt;br /&gt;exec sp_OADestroy @objFSys &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-6570691306682650818?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/6570691306682650818/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=6570691306682650818' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/6570691306682650818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/6570691306682650818'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2008/10/inserting-large-amount-of-data-bulk.html' title='Inserting Large Amount of Data - Bulk Insert'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-1161081680035792572</id><published>2008-10-09T01:35:00.000-07:00</published><updated>2008-10-09T01:49:52.825-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='bat'/><category scheme='http://www.blogger.com/atom/ns#' term='mssql'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Running SQL in bat file</title><content type='html'>For MS SQL Server 2000, we can use &lt;span style="font-weight:bold;"&gt;osql&lt;/span&gt;.&lt;br /&gt;click &lt;a href="http://msdn.microsoft.com/en-us/library/aa213092.aspx" target="new"&gt;here&lt;/a&gt; and &lt;a href="http://msdn.microsoft.com/en-us/library/aa213087.aspx" target="new"&gt;here&lt;/a&gt; for some samples.&lt;br /&gt;&lt;br /&gt;For MS SQL Server 2005, we can use &lt;span style="font-weight:bold;"&gt;sqlcmd&lt;/span&gt;.&lt;br /&gt;Click &lt;a href="http://msdn.microsoft.com/en-us/library/ms165702(SQL.90).aspx" target="new"&gt;here&lt;/a&gt; for more info&lt;br /&gt;&lt;br /&gt;For Oracle, we can use &lt;span style="font-weight:bold;"&gt;sqlplus&lt;/span&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-1161081680035792572?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/1161081680035792572/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=1161081680035792572' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/1161081680035792572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/1161081680035792572'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2008/10/running-sql-in-bat-file.html' title='Running SQL in bat file'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-8210635976903924576</id><published>2008-09-30T01:26:00.000-07:00</published><updated>2008-09-30T01:30:56.785-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='stored-procedure'/><category scheme='http://www.blogger.com/atom/ns#' term='mssql'/><title type='text'>Stored Procedure QUOTED_IDENTIFIER and ANSI_NULLS</title><content type='html'>&lt;strong&gt;SET QUOTED_IDENTIFIER (Transact-SQL)&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Causes SQL Server to follow the ISO rules regarding quotation mark delimiting identifiers and literal strings. Identifiers delimited by double quotation marks can be either Transact-SQL reserved keywords or can contain characters not generally allowed by the Transact-SQL syntax rules for identifiers.&lt;br /&gt;&lt;br /&gt;When &lt;strong&gt;SET QUOTED_IDENTIFIER&lt;/strong&gt; is &lt;strong&gt;ON&lt;/strong&gt;, identifiers can be delimited by double quotation marks, and literals must be delimited by single quotation marks. &lt;br /&gt;&lt;br /&gt;When &lt;strong&gt;SET QUOTED_IDENTIFIER&lt;/strong&gt; is &lt;strong&gt;OFF&lt;/strong&gt;, identifiers cannot be quoted and must follow all Transact-SQL rules for identifiers. Literals can be delimited by either single or double quotation marks.&lt;br /&gt;&lt;br /&gt;Reference: &lt;a href="http://msdn.microsoft.com/en-us/library/ms174393.aspx" target="new"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SET ANSI_NULLS&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Specifies SQL-92 compliant behavior of the Equals (=) and Not Equal to (&lt;&gt;) comparison operators when used with null values.&lt;br /&gt;&lt;br /&gt;When &lt;strong&gt;SET ANSI_NULLS&lt;/strong&gt; is &lt;strong&gt;ON&lt;/strong&gt;, a SELECT statement using WHERE column_name = NULL returns zero rows even if there are null values in column_name. A SELECT statement using WHERE column_name &lt;&gt; NULL returns zero rows even if there are nonnull values in column_name.&lt;br /&gt;&lt;br /&gt;When &lt;strong&gt;SET ANSI_NULLS&lt;/strong&gt; is &lt;strong&gt;OFF&lt;/strong&gt;, the Equals (=) and Not Equal To (&lt;&gt;) comparison operators do not follow the SQL-92 standard. A SELECT statement using WHERE column_name = NULL returns the rows with null values in column_name. A SELECT statement using WHERE column_name &lt;&gt; NULL returns the rows with nonnull values in the column. In addition, a SELECT statement using WHERE column_name &lt;&gt; XYZ_value returns all rows that are not XYZ value and that are not NULL.&lt;br /&gt;&lt;br /&gt;Reference: &lt;a href="http://msdn.microsoft.com/en-us/library/aa259229(SQL.80).aspx" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-8210635976903924576?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/8210635976903924576/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=8210635976903924576' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/8210635976903924576'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/8210635976903924576'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2008/09/stored-procedure-quotedidentifier-and.html' title='Stored Procedure QUOTED_IDENTIFIER and ANSI_NULLS'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-1267835833704878584</id><published>2008-09-24T19:12:00.000-07:00</published><updated>2008-09-24T19:23:22.264-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ctrl-alt-del'/><category scheme='http://www.blogger.com/atom/ns#' term='remote-desktop'/><title type='text'>Send Ctrl+Alt+Del to Remote Desktop</title><content type='html'>In order to change the account password in Windows Server via Remote Desktop, we can use &lt;strong&gt;Ctrl+Alt+Del&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;How to send this command via Remote Desktop?&lt;br /&gt;Press &lt;strong&gt;Ctrl+Alt+END&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-1267835833704878584?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/1267835833704878584/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=1267835833704878584' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/1267835833704878584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/1267835833704878584'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2008/09/send-ctrlaltdel-to-remote-desktop.html' title='Send Ctrl+Alt+Del to Remote Desktop'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-7815111763323250294</id><published>2008-09-23T02:16:00.001-07:00</published><updated>2008-09-23T02:20:18.485-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='stored-procedure'/><category scheme='http://www.blogger.com/atom/ns#' term='mssql'/><title type='text'>SQL Store Procedure CURSOR</title><content type='html'>I just learnt stored procedure with cursor pointer.&lt;br /&gt;&lt;br /&gt;Here's an example:&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;BEGIN&lt;br /&gt;    DECLARE @MyID AS BIGINT&lt;br /&gt;    DECLARE MyIDCursor CURSOR FOR&lt;br /&gt;        SELECT ID FROM MyTable&lt;br /&gt;    OPEN MyIDCursor&lt;br /&gt;&lt;br /&gt;    FETCH NEXT FROM MyIDCursor INTO @MyID&lt;br /&gt;    WHILE @@FETCH_STATUS=0 &lt;font color="green"&gt;-- this is necessary to loop&lt;/font&gt;&lt;br /&gt;    BEGIN&lt;br /&gt;        &lt;font color="green"&gt;-- print it out&lt;/font&gt;&lt;br /&gt;        print '@MyID'&lt;br /&gt;        print @MyID&lt;br /&gt;        &lt;font color="green"&gt;-- to assign to the next value, without this, it will loops forever!&lt;/font&gt;&lt;br /&gt;        FETCH NEXT FROM MyIDCursor INTO @MyID &lt;br /&gt;    END&lt;br /&gt;&lt;br /&gt;    CLOSE MyIDCursor&lt;br /&gt;    DEALLOCATE MyIDCursor&lt;br /&gt;END&lt;/code&gt;&lt;/pre&gt;Actually this method is not recommended, look &lt;a href="http://www.sommarskog.se/share_data.html#cursor" target="new"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-7815111763323250294?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/7815111763323250294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=7815111763323250294' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/7815111763323250294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/7815111763323250294'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2008/09/sql-store-procedure-cursor.html' title='SQL Store Procedure CURSOR'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-7347698294343313132</id><published>2008-09-22T22:38:00.000-07:00</published><updated>2008-09-23T19:46:15.059-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><category scheme='http://www.blogger.com/atom/ns#' term='precision'/><category scheme='http://www.blogger.com/atom/ns#' term='number'/><category scheme='http://www.blogger.com/atom/ns#' term='mssql'/><title type='text'>MSSQL Multiplication and Division Limitation</title><content type='html'>There was a case at work, the number is not precise enough for multiplication of data type decimal (38,10).&lt;br /&gt;&lt;br /&gt;The result will give up to 6 decimal place precision and the rest 4 decimal place follows it will be truncated, replaced with 0.&lt;br /&gt;&lt;br /&gt;Here's the sample in SQL Query Analyzer:&lt;br /&gt;&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;DECLARE @CrossRate as decimal(38,10)&lt;br /&gt;DECLARE @ExchRate1 as decimal(38,10)&lt;br /&gt;DECLARE @ExchRate2 as decimal(38,10)&lt;br /&gt;&lt;br /&gt;SET @ExchRate1 = 1.3159643631&lt;br /&gt;SET @ExchRate2 = 1.3663000000&lt;br /&gt;&lt;br /&gt;SET @CrossRate = @ExchRate1/@ExchRate2&lt;br /&gt;print '@ExchRate1: '&lt;br /&gt;print @ExchRate1&lt;br /&gt;print '@ExchRate2: '&lt;br /&gt;print @ExchRate2&lt;br /&gt;print '@CrossRate: '&lt;br /&gt;print @CrossRate&lt;/code&gt;&lt;/pre&gt;And here's the result:&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;@ExchRate1:&lt;br /&gt;1.3159643631&lt;br /&gt;@ExchRate2:&lt;br /&gt;1.3663000000&lt;br /&gt;@CrossRate:&lt;br /&gt;0.9631590000&lt;/code&gt;&lt;/pre&gt;However for data type decimal (18,10), multiplication result of the two data types will give the same precision - decimal(18,10).&lt;br /&gt;&lt;br /&gt;The CrossRate result of decimal (18,10) is&lt;br /&gt;&lt;strong&gt;0.9631591620&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;I am still not yet known how to solve this, as the requirement that we have is for data type decimal (38,10) instead of decimal (18,10). If you have any idea on how to solve this, please let me know. Thanks.&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;Some updates&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;My colleague just said that we can use float.&lt;br /&gt;However there are some things to take note:&lt;br /&gt;&lt;br /&gt;Float is &lt;strong&gt;Approximate-number&lt;/strong&gt; data type, which means that not all values in the data type range can be represented exactly. &lt;br /&gt;&lt;br /&gt;Decimal/Numeric is Fixed-Precision data type, which means that all the values in the data type reane can be represented exactly with precision and scale.&lt;br /&gt;&lt;br /&gt;Converting from Decimal or Numeric to float can cause &lt;em&gt;some loss of precision&lt;/em&gt;. &lt;br /&gt;&lt;br /&gt;Reference: &lt;a href="http://blogs.msdn.com/sqlprogrammability/archive/2006/03/29/564110.aspx" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-7347698294343313132?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/7347698294343313132/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=7347698294343313132' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/7347698294343313132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/7347698294343313132'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2008/09/mssql-multiplication-and-division.html' title='MSSQL Multiplication and Division Limitation'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-9115629445655879539</id><published>2008-08-19T23:08:00.001-07:00</published><updated>2008-08-20T23:54:57.078-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='extjs'/><title type='text'>Fixing NS_ERROR_XPC_JS_THREW_STRING</title><content type='html'>In htmls using ExtJs, most of the times I encountered this error in firebug:&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;&amp;quot;Exception: The request to read the property &lt;br /&gt;HTMLDivElement.nodeType was denied, when calling method:&lt;br /&gt;[nsIDOMEventListener::handleEvent]&amp;quot; nsresult: &amp;quot;0x8057001e &lt;br /&gt;(NS_ERROR_XPC_JS_THREW_STRING)&amp;quot; location: &amp;quot;&amp;lt;unknown&amp;gt;&amp;quot; &lt;br /&gt;data: no]&amp;quot;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;After searching a long time, here's what i found on how to fix it:&lt;br /&gt;One of them saying it will be fixed by adding &lt;span style="font-weight:bold;"&gt;autocomplete="off"&lt;/span&gt; to all text fields.&lt;br /&gt;I tried this however it doesn't really work!&lt;br /&gt;&lt;br /&gt;And after I look at &lt;a href="http://extjs.com/forum/showthread.php?t=4923" target="new"&gt;this ExtJs forum thread&lt;/a&gt;, I tried adding this &lt;span style="font-weight:bold;"&gt;trackMouseOver:false&lt;/span&gt; on my ExtJs grid.&lt;br /&gt;And so far I did not have that error anymore :)&lt;br /&gt;Yay!&lt;br /&gt;&lt;br /&gt;&lt;a target="new" href="http://extjs.com/playpen/ext-2.0-dev5/examples/message-box/msg-box.html"&gt;ExtJs messagebox sample&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-9115629445655879539?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/9115629445655879539/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=9115629445655879539' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/9115629445655879539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/9115629445655879539'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2008/08/fixing-nserrorxpcjsthrewstring.html' title='Fixing NS_ERROR_XPC_JS_THREW_STRING'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-2057437667854705794</id><published>2008-07-16T18:13:00.000-07:00</published><updated>2008-12-09T13:26:33.435-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='form'/><category scheme='http://www.blogger.com/atom/ns#' term='extjs'/><category scheme='http://www.blogger.com/atom/ns#' term='embed'/><category scheme='http://www.blogger.com/atom/ns#' term='flash'/><title type='text'>Flash Overlay Problem</title><content type='html'>There is a problem when embedding flash into a web page.&lt;br /&gt;For example if you have dropdown, the dropdown values will be covered by the flash.&lt;br /&gt;Hence you won't be able to view all the images like the picture below.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_a17NJUyFeDQ/SH6eEaEViEI/AAAAAAAAAmA/rbSE_hDdKYI/s1600-h/before.png"&gt;&lt;img style="float:center; margin:10px;cursor:pointer; cursor:hand;" src="http://3.bp.blogspot.com/_a17NJUyFeDQ/SH6eEaEViEI/AAAAAAAAAmA/rbSE_hDdKYI/s320/before.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5223786416350529602" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here's what we need add &lt;br /&gt;&lt;br /&gt;for Flash tag embed&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;&amp;lt;param name=WMode value=Opaque&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;for Javascript&lt;br /&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;fo.addParam(&amp;quot;wmode&amp;quot;, &amp;quot;opaque&amp;quot;);&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;and wala.. here's the result...&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_a17NJUyFeDQ/SH6jxpKJ5tI/AAAAAAAAAmI/_L-PkyqtFtk/s1600-h/after.png"&gt;&lt;img style="float:center; margin:10px;cursor:pointer; cursor:hand;" src="http://4.bp.blogspot.com/_a17NJUyFeDQ/SH6jxpKJ5tI/AAAAAAAAAmI/_L-PkyqtFtk/s320/after.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5223792691053717202" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;However, this apparently does not work in Linux.&lt;br /&gt;&lt;br /&gt;Reference: &lt;a href="http://dolem.com/forum/showthread.php?tid=6" target="new"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-2057437667854705794?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/2057437667854705794/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=2057437667854705794' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/2057437667854705794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/2057437667854705794'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2008/07/flash-overlay-problem.html' title='Flash Overlay Problem'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_a17NJUyFeDQ/SH6eEaEViEI/AAAAAAAAAmA/rbSE_hDdKYI/s72-c/before.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-304114186472282855</id><published>2008-07-09T19:53:00.000-07:00</published><updated>2008-07-09T19:58:20.177-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='form'/><category scheme='http://www.blogger.com/atom/ns#' term='extjs'/><category scheme='http://www.blogger.com/atom/ns#' term='label'/><category scheme='http://www.blogger.com/atom/ns#' term='field'/><title type='text'>Hide/Show FieldLabel in ExtJs form</title><content type='html'>This is an overriding function to enable hide/show fieldLabel in ExtJs field form.&lt;br /&gt;The current release of ExtJs 2.1 does not support it.&lt;br /&gt;&lt;br /&gt;You can use the function &lt;span style="font-style:italic;"&gt;hideItem&lt;/span&gt; and &lt;span style="font-style:italic;"&gt;showItem&lt;/span&gt; in order to show/hide the form field.&lt;br /&gt;&lt;br /&gt;Put this function in a javascript file eg. ext-override.js&lt;br /&gt;Then include this file into your html file containing ExtJs form.&lt;br /&gt;&lt;blockquote&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;Ext.override(Ext.form.Field, {&lt;br /&gt;    hideItem :function(){&lt;br /&gt;        this.formItem.addClass('x-hide-' + this.hideMode);             &lt;br /&gt;    },&lt;br /&gt;&lt;br /&gt;    showItem: function(){&lt;br /&gt;        this.formItem.removeClass('x-hide-' + this.hideMode);             &lt;br /&gt;    },&lt;br /&gt;    setFieldLabel: function(text) {&lt;br /&gt;    var ct = this.el.findParent('div.x-form-item', 3, true);&lt;br /&gt;    var label = ct.first('label.x-form-item-label');&lt;br /&gt;    label.update(text);&lt;br /&gt;  }&lt;br /&gt;});&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-304114186472282855?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/304114186472282855/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=304114186472282855' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/304114186472282855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/304114186472282855'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2008/07/hideshow-fieldlabel-in-extjs-form.html' title='Hide/Show FieldLabel in ExtJs form'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-4888631021165411254</id><published>2008-07-03T20:18:00.000-07:00</published><updated>2008-07-03T20:57:06.345-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='form'/><category scheme='http://www.blogger.com/atom/ns#' term='html'/><category scheme='http://www.blogger.com/atom/ns#' term='combo'/><title type='text'>Pre-populate combo values</title><content type='html'>This sample is to populate combo values in html form using javascript.&lt;br /&gt;&lt;br /&gt;For manually insertion of the Option values into the combobox.&lt;br /&gt;&lt;blockquote&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt; &lt;br /&gt;function prepopulate(reportType){&lt;br /&gt;    document.form1.report_view.options.length = 0;&lt;br /&gt;    if (reportType ==  &amp;quot;Pie_Chart&amp;quot; &amp;#124;&amp;#124; reportType == &amp;quot;Bar_Graph&amp;quot;){&lt;br /&gt;        document.form1.report_view.options[0] = new Option(&amp;quot;Adobe Reader (.pdf)&amp;quot;,&amp;quot;pdf&amp;quot;);&lt;br /&gt;        document.form1.report_view.options[1] = new Option(&amp;quot;Open Office (.odt)&amp;quot;,&amp;quot;odt&amp;quot;);&lt;br /&gt;    }else{&lt;br /&gt;        document.form1.report_view.options[0] = new Option(&amp;quot;Adobe Reader (.pdf)&amp;quot;,&amp;quot;pdf&amp;quot;);&lt;br /&gt;        document.form1.report_view.options[1] = new Option(&amp;quot;Microsoft Excel (.xls)&amp;quot;,&amp;quot;xls&amp;quot;);&lt;br /&gt;        document.form1.report_view.options[2] = new Option(&amp;quot;Open Office (.odt)&amp;quot;,&amp;quot;odt&amp;quot;);&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;In the html part:&lt;br /&gt;&lt;blockquote&gt;&lt;pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"&gt;&lt;code&gt;&amp;lt;select name=&amp;quot;report_type&amp;quot; id = &amp;quot;report_type&amp;quot; onChange=&amp;quot;javascript:prepopulate(this.value)&amp;quot;&amp;gt;&lt;br /&gt;    &amp;lt;option value=&amp;quot;Consolidated_Comments&amp;quot;&amp;gt;Consolidated Comments&amp;lt;/option&amp;gt;&lt;br /&gt;    &amp;lt;option value=&amp;quot;Pie_Chart&amp;quot;&amp;gt;Consolidated Result - Pie Chart&amp;lt;/option&amp;gt;&lt;br /&gt;    &amp;lt;option value=&amp;quot;Bar_Graph&amp;quot;&amp;gt;Consolidated Result - Bar Graph&amp;lt;/option&amp;gt;&lt;br /&gt;    &amp;lt;option value=&amp;quot;Individual_Results_Comments&amp;quot;&amp;gt;Individual Results (Comments)&amp;lt;/option&amp;gt;&lt;br /&gt;    &amp;lt;option value=&amp;quot;Individual_Results_FreeText&amp;quot;&amp;gt;Individual Results (Free Text)&amp;lt;/option&amp;gt;&lt;br /&gt;    &amp;lt;option value=&amp;quot;List_of_Questions&amp;quot;&amp;gt;List of Questions&amp;lt;/option&amp;gt;&lt;br /&gt;    &amp;lt;option value=&amp;quot;Individual_Comment&amp;quot;&amp;gt;Individual Result&amp;lt;/option&amp;gt;&lt;br /&gt;&amp;lt;/select&amp;gt;&lt;br /&gt;&amp;lt;select name=&amp;quot;report_view&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;/select&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;Whenever the report type selected is bar graph or pie chart, it will not display the excel report view, else it will return all three report views.&lt;br /&gt;&lt;br /&gt;reference: &lt;a target="new" href="http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_21757923.html"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-4888631021165411254?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/4888631021165411254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=4888631021165411254' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/4888631021165411254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/4888631021165411254'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2008/07/pre-populate-combo-values.html' title='Pre-populate combo values'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-3015095212223086814</id><published>2008-07-03T20:17:00.000-07:00</published><updated>2008-07-03T20:57:36.456-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='format'/><category scheme='http://www.blogger.com/atom/ns#' term='blog'/><category scheme='http://www.blogger.com/atom/ns#' term='html'/><title type='text'>Format source code for blogging</title><content type='html'>Taken from &lt;a href="http://formatmysourcecode.blogspot.com/" target="new"&gt;here&lt;/a&gt;. Applicable only for the first 25 lines of codes.&lt;br /&gt;&lt;form&gt;&lt;br /&gt;&lt;textarea wrap="off" rows="5" cols="50" id="textin"&gt;Paste your text here.&lt;/textarea&gt;&lt;br /&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;button onclick="javascript:format()" type="button"&gt;Format Text&lt;/button&gt;&lt;/td&gt;&lt;td&gt;Tab size: &lt;input type="radio" name="tabsize" id="tab2"&gt;2&lt;/input&gt; &lt;input type="radio" name="tabsize" id="tab4" checked="true"&gt;4&lt;/input&gt; &lt;input type="radio" name="tabsize" id="tab8"&gt;8&lt;/input&gt;&lt;br /&gt;Embed Stylesheet: &lt;input type="checkbox" id="embedstyle" checked="true"&gt;&lt;/input&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;div class="step-instr" id="fade"&gt;Copy the HTML below to your clipboard. Insert the HTML of your blog or wiki.&lt;br /&gt;&lt;textarea wrap="off" rows="12" cols="50" id="textout"&gt;formatted HTML will appear in here.&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt;&lt;br /&gt;&lt;div id="vert-pipe-warning" style="display: none"&gt;&lt;br /&gt;&lt;p class="warning"&gt;&lt;b&gt;Vertical Pipe Character Warning:&lt;/b&gt;&lt;br /&gt;The text contains the vertical pipe character '|' which Blogger's editor may remove.  Blogger's editor on the web has two edit tabs: "Edit HTML" and "Compose".  The "Compose" tab will remove all | characters!  Use the "Edit HTML" tab only.&lt;/p&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div id="results"&gt;&lt;pre class="source-code"&gt;&lt;code&gt;This is an example of what your text will look like.&lt;br /&gt;    &amp;#8226; Tabs are converted to spaces.&lt;br /&gt;    &amp;#8226; Quotes and other special characters are converted to HTML.&lt;br /&gt;    &amp;#8226; Everything is enclose in HTML's 'pre' and 'code' tags.&lt;br /&gt;    &amp;#8226; Style is set:&lt;br /&gt;        &amp;#8226; Fixed width font.&lt;br /&gt;        &amp;#8226; Shaded box.&lt;br /&gt;        &amp;#8226; Dotted line border.&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;div id="style" style="display: none"&gt;&lt;br /&gt;Example Stylesheet:&lt;br /&gt;&lt;textarea wrap="off" rows="13" cols="50" id="textout"&gt;&lt;style type="text/css"&gt;&lt;br /&gt;pre.source-code {&lt;br /&gt;  font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; &lt;br /&gt;  color: #000000;&lt;br /&gt;  background-color: #eee;&lt;br /&gt;  font-size: 12px;&lt;br /&gt;  border: 1px dashed #999999;&lt;br /&gt;  line-height: 14px;&lt;br /&gt;  padding: 5px;&lt;br /&gt;  overflow: auto;&lt;br /&gt;  width: 100%&lt;br /&gt;}&lt;br /&gt;&lt;/style&gt;&lt;/textarea&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-3015095212223086814?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/3015095212223086814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=3015095212223086814' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/3015095212223086814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/3015095212223086814'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2008/07/format-source-code-for-blogging.html' title='Format source code for blogging'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1844583014281829941.post-4086028530041684660</id><published>2008-07-03T20:15:00.000-07:00</published><updated>2008-07-03T21:07:55.358-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='general'/><title type='text'>the geek sista</title><content type='html'>&lt;span style="font-weight:bold;"&gt;geek&lt;/span&gt; &lt;span style="font-style:italic;"&gt;Slang.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style:italic;color:green;"&gt;–noun&lt;/span&gt;&lt;br /&gt;1. a peculiar or otherwise dislikable person, esp. one who is perceived to be overly intellectual.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2. a computer expert or enthusiast (a term of pride as self-reference, but often considered offensive when used by outsiders.)&lt;/span&gt;&lt;br /&gt;3. a carnival performer who performs sensationally morbid or disgusting acts, as biting off the head of a live chicken.&lt;br /&gt;&lt;span style="color:maroon;"&gt;[Origin: 1915- 20; prob. var. of geck (mainly Scots) fool &lt; D or LG gek] &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;the &lt;span style="font-weight:bold;"&gt;geek&lt;/span&gt; refers to the second meaning.&lt;br /&gt;&lt;br /&gt;this blog will contains anything related to programming languages, new technologies, to simple html, etc..&lt;br /&gt;&lt;br /&gt;all for the programming knowledge only..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1844583014281829941-4086028530041684660?l=thegeeksista.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thegeeksista.blogspot.com/feeds/4086028530041684660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1844583014281829941&amp;postID=4086028530041684660' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/4086028530041684660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1844583014281829941/posts/default/4086028530041684660'/><link rel='alternate' type='text/html' href='http://thegeeksista.blogspot.com/2008/07/geek.html' title='the geek sista'/><author><name>sista</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
