<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>A web developer's diary</title>
	
	<link>http://webomania.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 16 Feb 2012 06:40:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain="webomania.wordpress.com" port="80" path="/?rsscloud=notify" registerProcedure="" protocol="http-post" />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>A web developer's diary</title>
		<link>http://webomania.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://webomania.wordpress.com/osd.xml" title="A web developer's diary" />
	
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/developer_diary" /><feedburner:info uri="developer_diary" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://webomania.wordpress.com/?pushpress=hub" /><feedburner:browserFriendly></feedburner:browserFriendly><item>
		<title>Entity Expansion Attack</title>
		<link>http://webomania.wordpress.com/2012/02/16/entity-expansion-attack/</link>
		<comments>http://webomania.wordpress.com/2012/02/16/entity-expansion-attack/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 06:40:07 +0000</pubDate>
		<dc:creator>Bindu</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://webomania.wordpress.com/2012/02/16/entity-expansion-attack/</guid>
		<description><![CDATA[In my last article, I covered the basic attacks that could be tried with the XML file. In today’s article, I will describe in detail about an attack called ‘Entity Expansion’. This is also called as the million laugh attack. Consider the below piece of XML code. &#60;!DOCTYPE foo [ &#60;!ENTITY a &#34;1234567890&#34; &#62; &#60;!ENTITY [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webomania.wordpress.com&amp;blog=411318&amp;post=39&amp;subd=webomania&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In my last article, I covered the basic attacks that could be tried with the XML file. In today’s article, I will describe in detail about an attack called ‘Entity Expansion’. This is also called as the million laugh attack.</p>
<p>Consider the below piece of XML code.</p>
<p>&lt;!DOCTYPE foo [ </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">
<span lang="EN" style="font-size:10pt;"><br />
&lt;!ENTITY a &quot;1234567890&quot; &gt; </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">
<span lang="EN" style="font-size:10pt;"><br />
&lt;!ENTITY b &quot;&amp;a;&amp;a;&amp;a;&amp;a;&amp;a;&amp;a;&amp;a;&amp;a;&quot; &gt; </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">
<span lang="EN" style="font-size:10pt;"><br />
&lt;!ENTITY c &quot;&amp;b;&amp;b;&amp;b;&amp;b;&amp;b;&amp;b;&amp;b;&amp;b;&quot; &gt; </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">
<span lang="EN" style="font-size:10pt;"><br />
&lt;!ENTITY d &quot;&amp;c;&amp;c;&amp;c;&amp;c;&amp;c;&amp;c;&amp;c;&amp;c;&quot; &gt; </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">
<span lang="EN" style="font-size:10pt;"><br />
&lt;!ENTITY e &quot;&amp;d;&amp;d;&amp;d;&amp;d;&amp;d;&amp;d;&amp;d;&amp;d;&quot; &gt; </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">
<span lang="EN" style="font-size:10pt;"><br />
&lt;!ENTITY f &quot;&amp;e;&amp;e;&amp;e;&amp;e;&amp;e;&amp;e;&amp;e;&amp;e;&quot; &gt; </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">
<span lang="EN" style="font-size:10pt;"><br />
&lt;!ENTITY g &quot;&amp;f;&amp;f;&amp;f;&amp;f;&amp;f;&amp;f;&amp;f;&amp;f;&quot; &gt; </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">
<span lang="EN" style="font-size:10pt;"><br />
&lt;!ENTITY h &quot;&amp;g;&amp;g;&amp;g;&amp;g;&amp;g;&amp;g;&amp;g;&amp;g;&quot; &gt; </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">
<span lang="EN" style="font-size:10pt;"><br />
&lt;!ENTITY i &quot;&amp;h;&amp;h;&amp;h;&amp;h;&amp;h;&amp;h;&amp;h;&amp;h;&quot; &gt; </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">
<span lang="EN" style="font-size:10pt;"><br />
&lt;!ENTITY j &quot;&amp;i;&amp;i;&amp;i;&amp;i;&amp;i;&amp;i;&amp;i;&amp;i;&quot; &gt; </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">
<span lang="EN" style="font-size:10pt;"><br />
&lt;!ENTITY k &quot;&amp;j;&amp;j;&amp;j;&amp;j;&amp;j;&amp;j;&amp;j;&amp;j;&quot; &gt; </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">
<span lang="EN" style="font-size:10pt;"><br />
&lt;!ENTITY l &quot;&amp;k;&amp;k;&amp;k;&amp;k;&amp;k;&amp;k;&amp;k;&amp;k;&quot; &gt; </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">
<span lang="EN" style="font-size:10pt;"><br />
&lt;!ENTITY m &quot;&amp;l;&amp;l;&amp;l;&amp;l;&amp;l;&amp;l;&amp;l;&amp;l;&quot; &gt; </span></p>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">
<span lang="EN" style="font-size:10pt;"><br />
]&gt;</p>
<p>&lt;foo&gt;&amp;m;&lt;/foo&gt;</p>
<p>The above does look like some garbage but when this data is parsed by your XML parser, it has the potential to use up all your CPU and get your XML service down.</p>
<p>Does this get your attention? Ok, now let us what is so scary about this innocent looking code.</p>
<p><strong>DOCTYPE:</strong></p>
<p>People who are familiar with DOCTYPE, DTD and Entities can move on to the next passage. For others, I will try to give a little background on this.</p>
<p>A XML document is made up building blocks called Elements. Each element can have one to many attributes and zero –to-many child elements. The elements will also carry data. While XML is all about elements, data and its attributes, the definition of these elements is done in Document Type Definition (DTD). There is one other building block in XML called Entities. Entities are something like macros or alias. If you want to repeat the message ‘hi’ 1000 times in your XML, you can just define this string as an entity and specify it in your XML. While parsing, XML parser will take care of replacing the entity with ‘hi’ thousand times.</p>
<p><strong>Code Explanation:</strong></p>
<p>In the above code, while XML parses the entities, the entity ‘&amp;m;’ will blow out to 687,194,767,360 in size. Expanding this entity would be a time consuming job for the CPU and it will go down. And so, we successfully brought down a system with a humble piece of code.</p>
<p><strong>Remediation:</strong></p>
<p>A soap message should actually make use of XSD schema and not DTD. Even if DTD is used, the XML parser shouldn’t encourage the use of entities. But there might be instances when entities are desired. In that case, the parser should limit the size of data it expands. Or set an Auto Timeout after which it will stop parsing to halt this denial of service attack.</p>
<p>But, in reality, how many parsers take care of this attack?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webomania.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webomania.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webomania.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webomania.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webomania.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webomania.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webomania.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webomania.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webomania.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webomania.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webomania.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webomania.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webomania.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webomania.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webomania.wordpress.com&amp;blog=411318&amp;post=39&amp;subd=webomania&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webomania.wordpress.com/2012/02/16/entity-expansion-attack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1d46d1d1d9b2d55c8064357acb568978?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">rexselin</media:title>
		</media:content>
	</item>
		<item>
		<title>XML Security – Part 1</title>
		<link>http://webomania.wordpress.com/2012/02/15/xml-security-part-1/</link>
		<comments>http://webomania.wordpress.com/2012/02/15/xml-security-part-1/#comments</comments>
		<pubDate>Wed, 15 Feb 2012 09:14:40 +0000</pubDate>
		<dc:creator>Bindu</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://webomania.wordpress.com/2012/02/15/xml-security-part-1/</guid>
		<description><![CDATA[I have been doing some research on XML Security and attack vectors related to it. The more I dig into the attacks possible, the more I am convinced that given the right kind of attack, even a sophisticated XML parser would succumb to the exploit. While, this might seem like a bold statement with no [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webomania.wordpress.com&amp;blog=411318&amp;post=38&amp;subd=webomania&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have been doing some research on XML Security and attack vectors related to it. The more I dig into the attacks possible, the more I am convinced that given the right kind of attack, even a sophisticated XML parser would succumb to the exploit. While, this might seem like a bold statement with no proof attached, I am afraid that this is indeed true.</p>
<p>If you are a developer working on XML, you should know how to protect your application from XML based attacks. If you are not working on XML, its never too late to learn <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Before we dive into XML Security, I will give a brief on what is XML.</p>
<p><strong>XML:</strong></p>
<p>XML stands for eXtensible Markup Language. This is the de-facto standard produced and specified by W3C to transport, store and carry data.</p>
<p><strong>Applications: </strong></p>
<p>XML is used extensively to transport data between applications, web services and is one of the components in web2.0 ajax based framworks. In this age, atleast 1/3 of the websites available on the internet would use XML in one form or other. These applications would not just use XML but rely on XML for their usability, availability and accuracy.</p>
<p>Since XML has become more important for an application, attackers are also more interested in exploiting XML data. While there are numerous examples on the internet to lanuch network based attacks and application based attacks, exploits against XML payloads (data) are very less in number.</p>
<p>In this series, we will see what kind of attacks are possible and how we can protect a XML payload against these attacks. Today, I will talk about one particular attack called &#8216;Parameter Tampering&#8217;.</p>
<p><strong>Paramater Tampering:</strong></p>
<p>This is not a new term to an application security professional. Ever since appsec consultants were born, they have been tampering with whatever data that comes to their hand. So, XML based tampering is no surprise.</p>
<p>So, what kind of acts are possible in this category?</p>
<p>1) Tweaking the XML elements, attributes or the text content to inject cross site scripting attack.</p>
<p>2) SQL Injection attack by tweaking the text content in XML.</p>
<p>3) Adding non-existent attributes or elements to an XML and checking whether it would cause DOS or information leakage.</p>
<p>4) Adding parameters that would make the XML malformed and check for exceptional conditions.</p>
<p>5) Inserting malicious special characters to check for malformed XML.</p>
<p>6) Using long attribute names or element names</p>
<p>7) Jumbo Payload (unclosed tags) and checking whether it cause DOS (denial of service).</p>
<p>The above (7) points are pretty self-explanatory and I hope I needn&#8217;t explain step by step. Now, that I have detailed these notorius acts, what do you think can protect your application from these acts?</p>
<p><strong>Remediation:</strong></p>
<p>The application should ensure that it checks for the correct element length, type, position, format and validate its XML data. Seems fair enough, isn&#8217;t it? In my next article, I would talk about another attack called &#8216;Entity Expansion&#8217;.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webomania.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webomania.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webomania.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webomania.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webomania.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webomania.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webomania.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webomania.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webomania.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webomania.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webomania.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webomania.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webomania.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webomania.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webomania.wordpress.com&amp;blog=411318&amp;post=38&amp;subd=webomania&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webomania.wordpress.com/2012/02/15/xml-security-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1d46d1d1d9b2d55c8064357acb568978?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">rexselin</media:title>
		</media:content>
	</item>
		<item>
		<title>Ethical Hacking</title>
		<link>http://webomania.wordpress.com/2011/08/23/ethical-hacking/</link>
		<comments>http://webomania.wordpress.com/2011/08/23/ethical-hacking/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 02:43:28 +0000</pubDate>
		<dc:creator>Bindu</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://webomania.wordpress.com/2011/08/23/ethical-hacking/</guid>
		<description><![CDATA[I have been learning about ethical hacking these days. Thought that I will cover what I learn in this blog. My learning source is my EC Council training and internet. So, I will take you on a tour by covering the below modules. 1. CEH Ethics and Legal Issues 12. CEH Web Application Vulnerabilities 2. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webomania.wordpress.com&amp;blog=411318&amp;post=37&amp;subd=webomania&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have been learning about ethical hacking these days. Thought that I will cover what I learn in this blog.</p>
<p>My learning source is my EC Council training and internet. So, I will take you on a tour by covering the below modules.</p>
<table border="0" cellspacing="1" cellpadding="0" width="100%">
<tr>
<td>1.</td>
<td>CEH Ethics and Legal Issues</td>
<td>12.</td>
<td>CEH Web Application Vulnerabilities</td>
</tr>
<tr>
<td>2.</td>
<td>CEH Footprinting</td>
<td>13.</td>
<td>CEH Web Based Password Cracking Techniques</td>
</tr>
<tr>
<td>3.</td>
<td>CEH Scanning</td>
<td>14.</td>
<td>CEH SQL Injection</td>
</tr>
<tr>
<td>4.</td>
<td>CEH Enumeration</td>
<td>15.</td>
<td>CEH Hacking Wireless Networks</td>
</tr>
<tr>
<td>5.</td>
<td>CEH System Hacking</td>
<td>16.</td>
<td>CEH Virus and Worms</td>
</tr>
<tr>
<td>6.</td>
<td>CEH Trojans and Backdoors</td>
<td>17.</td>
<td>CEH Hacking Novell</td>
</tr>
<tr>
<td>7.</td>
<td>CEH Sniffers</td>
<td>18.</td>
<td>CEH Hacking Linux</td>
</tr>
<tr>
<td>8.</td>
<td>CEH Denial of Service</td>
<td>19.</td>
<td>CEH IDS, Firewalls and Honeypots</td>
</tr>
<tr>
<td>9.</td>
<td>CEH Social Engineering</td>
<td>20.</td>
<td>CEH Buffer Overflows</td>
</tr>
<tr>
<td>10.</td>
<td>CEH Session Hijacking</td>
<td>21.</td>
<td>CEH Cryptography</td>
</tr>
<tr>
<td>11.</td>
<td>CEH Hacking Web Servers</td>
<td>22.</td>
<td>CEH Penetration Testing Methodologies</td>
</tr>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webomania.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webomania.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webomania.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webomania.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webomania.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webomania.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webomania.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webomania.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webomania.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webomania.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webomania.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webomania.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webomania.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webomania.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webomania.wordpress.com&amp;blog=411318&amp;post=37&amp;subd=webomania&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webomania.wordpress.com/2011/08/23/ethical-hacking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1d46d1d1d9b2d55c8064357acb568978?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">rexselin</media:title>
		</media:content>
	</item>
		<item>
		<title>Enjoying Microsoft Communicator</title>
		<link>http://webomania.wordpress.com/2011/01/25/enjoying-microsoft-communicator/</link>
		<comments>http://webomania.wordpress.com/2011/01/25/enjoying-microsoft-communicator/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 09:24:15 +0000</pubDate>
		<dc:creator>Bindu</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://webomania.wordpress.com/2011/01/25/enjoying-microsoft-communicator/</guid>
		<description><![CDATA[I never had a fascination for Microsoft Products earlier. I think I took them for granted. MS Office, VB.NET, Paint and likes. These are the only ones that were exposed to me that time. Off late, I am using ‘Microsoft Communicator’ to a great extent and I just can’t imagine how my life would be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webomania.wordpress.com&amp;blog=411318&amp;post=36&amp;subd=webomania&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I never had a fascination for Microsoft Products earlier. I think I took them for granted. MS Office, VB.NET, Paint and likes. These are the only ones that were exposed to me that time.</p>
<p>Off late, I am using ‘Microsoft Communicator’ to a great extent and I just can’t imagine how my life would be without it. Let me list out the features that I like here.</p>
<p>1) Group Chat – It’s there in other messengers too</p>
<p>2) Sharing Desktop and taking control – Since I work remotely, this is an indispensable feature. I use this to show demos, assign tasks to developers and in debugging.</p>
<p>3) Tag Contact – A trivia but yet so nice. I can keep a tab on a person to know his availability.</p>
<p>4) Its integrated with outlook..</p>
<p>I guess GTalk , Yahoo and MSN might offer some of the above features. But overall, I like Communicator the best.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webomania.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webomania.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webomania.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webomania.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webomania.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webomania.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webomania.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webomania.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webomania.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webomania.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webomania.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webomania.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webomania.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webomania.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webomania.wordpress.com&amp;blog=411318&amp;post=36&amp;subd=webomania&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webomania.wordpress.com/2011/01/25/enjoying-microsoft-communicator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1d46d1d1d9b2d55c8064357acb568978?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">rexselin</media:title>
		</media:content>
	</item>
		<item>
		<title>Building A Secure Web Application – Part 1</title>
		<link>http://webomania.wordpress.com/2010/08/08/building-a-secure-web-application-part-1/</link>
		<comments>http://webomania.wordpress.com/2010/08/08/building-a-secure-web-application-part-1/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 15:24:28 +0000</pubDate>
		<dc:creator>Bindu</dc:creator>
				<category><![CDATA[Application Security]]></category>

		<guid isPermaLink="false">http://webomania.wordpress.com/?p=34</guid>
		<description><![CDATA[Well, when I first thought of posting about this topic, a friend of mine suggested.. &#8220;Celia, forget about security. Once you put your application on the web, no matter what you do, it is always vulnerable.&#8221; Another one said, &#8220;Gosh! Remember that we are from the service industry. Lets not overdo on that security aspect. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webomania.wordpress.com&amp;blog=411318&amp;post=34&amp;subd=webomania&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Well, when I first thought of posting about this topic, a friend of mine suggested..</p>
<p>&#8220;Celia, forget about security. Once you put your application on the web, no matter what you do, it is always vulnerable.&#8221;</p>
<p>Another one said, &#8220;Gosh! Remember that we are from the service industry. Lets not overdo on that security aspect. The client will take care of it when he deploys it. Also, remember, we can do only what they ask for.. &#8220;</p>
<p>As I pondered about this, I was wondering how I could strike a balance between these two people. Agreed, security is an ongoing thing. It seems like a race between the hackers and the crackers.. Today, we find a vulnerability and fix it. Tomorrow, there comes another issue.</p>
<p>Likewise, clients come in all flavors. There are some who really know a lot about what they want. These people are a delight to work with as their requirements are very clear. Also, they are quick to understand and know that building efficient security applications do take some royal effort. And there are some who think that application development shouldn&#8217;t take more than a week. There was this manager who once asked me, &#8220;After all, its just adding, editing, deleting and viewing. You are not doing rocket science. Why is it taking more time?&#8221;.</p>
<p>Yeah.. I agree to it. It would just take me one single query on the database to let an administrator login to a system. But it would take me atleast 10 other policy checks to prevent other users from manipulating this query. Wouldn&#8217;t this take some solid effort?</p>
<p>I hope people are atleast nodding a little now. Let me say one thing now. Even popular websites like gmail, facebook, youtube and msn have vulnerabilities. So, its not just because of a poor programmer&#8217;s pathetic code. Even experienced experts find it difficult to take care of all vulnerability issues when all their attention is focused on business logic.</p>
<p>In this case, what can be done? First thing:</p>
<p>Client: Client has to know that building secure web application takes some time. And some real effort.</p>
<p>Developer: The programmer needs to know how to secure their code and need to follow some security standard.</p>
<p>PM: The one who takes the real pressure. Needs to coordinate between the above two.</p>
<p>Security Consultant: The one who tells us what we already know <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .. well, jokes apart.. This is the person who makes our lives simpler. Who tells us what needs to be done to make our code secure and who reviews it before the app gets deployed in the production environment.</p>
<p>Now, just like how we have a separate team for application design, BI development and testing, we do need a separate group of security experts who concentrate just on the security aspect of the application. How a security expert will add value to the application, will be discussed in PART 2 of this article&#8230; <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webomania.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webomania.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webomania.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webomania.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webomania.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webomania.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webomania.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webomania.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webomania.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webomania.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webomania.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webomania.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webomania.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webomania.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webomania.wordpress.com&amp;blog=411318&amp;post=34&amp;subd=webomania&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webomania.wordpress.com/2010/08/08/building-a-secure-web-application-part-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1d46d1d1d9b2d55c8064357acb568978?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">rexselin</media:title>
		</media:content>
	</item>
		<item>
		<title>Web Application Security</title>
		<link>http://webomania.wordpress.com/2010/08/02/web-application-security/</link>
		<comments>http://webomania.wordpress.com/2010/08/02/web-application-security/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 13:39:42 +0000</pubDate>
		<dc:creator>Bindu</dc:creator>
				<category><![CDATA[Application Security]]></category>

		<guid isPermaLink="false">http://webomania.wordpress.com/?p=30</guid>
		<description><![CDATA[Its been a long time since I posted, in this blog. I guess, from now on you can see frequent posts. I will be covering the &#8216;Web Application Security&#8217; topic in general and will deal with every aspect of it. To Start with, let me tell you the standard that has been adopted by the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webomania.wordpress.com&amp;blog=411318&amp;post=30&amp;subd=webomania&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Its been a long time since I posted, in this blog. I guess, from now on you can see frequent posts. I will be covering the &#8216;Web Application Security&#8217; topic in general and will deal with every aspect of it.</p>
<p>To Start with, let me tell you the standard that has been adopted by the security world.</p>
<p>The standards available are</p>
<p>1) OWASP top ten security vulnerabilities</p>
<p>2) CWE/SANS Top 25 software vulnerabilities</p>
<p>Since OWASP broadly covers the most of the aspects, I will be taking this as my verification standard.</p>
<p>For all the vulnerabilities covered, example code will be that of php language.</p>
<p>Lets dive in..</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webomania.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webomania.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webomania.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webomania.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webomania.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webomania.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webomania.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webomania.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webomania.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webomania.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webomania.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webomania.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webomania.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webomania.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webomania.wordpress.com&amp;blog=411318&amp;post=30&amp;subd=webomania&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webomania.wordpress.com/2010/08/02/web-application-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1d46d1d1d9b2d55c8064357acb568978?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">rexselin</media:title>
		</media:content>
	</item>
		<item>
		<title>Accessing C or C++ code from PHP</title>
		<link>http://webomania.wordpress.com/2008/06/25/accessing-c-or-c-code-from-php/</link>
		<comments>http://webomania.wordpress.com/2008/06/25/accessing-c-or-c-code-from-php/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 04:48:33 +0000</pubDate>
		<dc:creator>Bindu</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[c]]></category>

		<guid isPermaLink="false">http://webomania.wordpress.com/2008/06/25/accessing-c-or-c-code-from-php/</guid>
		<description><![CDATA[One of my friends had called up today. He has a project assignment in his company in which he needs to access and manipulate c++ code from within his php script. As we were brainstorming and trying to find ways to do this, some ideas crossed our mind. 1) To call the executable c code [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webomania.wordpress.com&amp;blog=411318&amp;post=26&amp;subd=webomania&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One of my friends had called up today. He has a project assignment in his  company in which he needs to access and manipulate c++ code from within his php  script. As we were brainstorming and trying to find ways to do this, some ideas  crossed our mind.</p>
<p>1) To call the executable c code from php using  function calls like system or ~~.</p>
<p>2) To compile the c code and make it  into a php extension. This way, he can call methods in the code and use its  objects.</p>
<p>We found one tool which is helpful in developing these  extensions. That is SWIG. SWIG is a compiler that takes C declarations and turns  them into the &#8220;glue&#8221; needed to access them from common scripting languages  including Perl, Python, and Tcl. SWIG usually requires no modifications to  existing C code and can often be used to build a working interface in a matter  of minutes.</p>
<p><a href="http://www.swig.org/Doc1.1/HTML/Introduction.html#n1">http://www.swig.org/Doc1.1/HTML/Introduction.html#n1</a></p>
<p>Though  this seems quite an interesting option, he was a little hesitant because he was  not sure whether the c++ code would have been written in such a way to act as a  stand alone library.</p>
<p>3) To turn over to python. I have heard that in  python, one can include c++ code and get down to the nuts and grits of any  API.</p>
<p>Though this was a mundane 5 minute conversation, I found that it  offered enough scope to look into one weak-area of PHP. Does anyone have any  expertise in such a area? Like accessing native API code from scripting  languages?</p>
<p>Any thoughts, inputs are welcome.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/webomania.wordpress.com/26/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/webomania.wordpress.com/26/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webomania.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webomania.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webomania.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webomania.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webomania.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webomania.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webomania.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webomania.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webomania.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webomania.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webomania.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webomania.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webomania.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webomania.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webomania.wordpress.com&amp;blog=411318&amp;post=26&amp;subd=webomania&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webomania.wordpress.com/2008/06/25/accessing-c-or-c-code-from-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1d46d1d1d9b2d55c8064357acb568978?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">rexselin</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting PhpMailer to connect to GMAIL’s SMTP Server</title>
		<link>http://webomania.wordpress.com/2007/06/12/getting-phpmailer-to-connect-to-gmails-smtp-server/</link>
		<comments>http://webomania.wordpress.com/2007/06/12/getting-phpmailer-to-connect-to-gmails-smtp-server/#comments</comments>
		<pubDate>Tue, 12 Jun 2007 08:38:14 +0000</pubDate>
		<dc:creator>Bindu</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://webomania.wordpress.com/2007/06/12/getting-phpmailer-to-connect-to-gmails-smtp-server/</guid>
		<description><![CDATA[PhpMailer is quite a cool open source library for sending outgoing mails in PHP. I have used it in a few applications which require sending mails via SMTP. But sadly, it doesn&#8217;t work for GMAIL smtp server, the reason being that GMAIL requires TLS or SSL to send mails. I found a way to fix [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webomania.wordpress.com&amp;blog=411318&amp;post=25&amp;subd=webomania&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>PhpMailer is quite a cool open source library for sending outgoing mails in PHP. I have used it in a few applications which require sending mails via SMTP.</p>
<p>But sadly, it doesn&#8217;t work for GMAIL smtp server, the reason being that GMAIL requires TLS or SSL to send mails.</p>
<p>I found a way to fix this problem. </p>
<p><strong>Fix: </strong></p>
<p>1) Just prefix your smtp hostname with a ssl://<br />
In this case, your hostname will be ssl://smtp.gmail.com</p>
<p>	<code>$this-&gt;phpMail-&gt;Host     = "ssl://smtp.gmail.com";<br />
	$this-&gt;phpMail-&gt;Port=465;	</code></p>
<p>2) Comment out the following lines of code in class.phpmailer.php<br />
<code>/*  if(strstr($hosts[$index], ":"))<br />
                list($host, $port) = explode(":", $hosts[$index]);<br />
            else */<br />
</code><br />
I guess that would be from Line No: 537 &#8211; 539</p>
<p>Save the file and test it out.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/webomania.wordpress.com/25/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/webomania.wordpress.com/25/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webomania.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webomania.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webomania.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webomania.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webomania.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webomania.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webomania.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webomania.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webomania.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webomania.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webomania.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webomania.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webomania.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webomania.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webomania.wordpress.com&amp;blog=411318&amp;post=25&amp;subd=webomania&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webomania.wordpress.com/2007/06/12/getting-phpmailer-to-connect-to-gmails-smtp-server/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1d46d1d1d9b2d55c8064357acb568978?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">rexselin</media:title>
		</media:content>
	</item>
		<item>
		<title>Vim Quick Tips – Cheat Sheet</title>
		<link>http://webomania.wordpress.com/2007/04/24/vim-quick-tips-cheat-sheet/</link>
		<comments>http://webomania.wordpress.com/2007/04/24/vim-quick-tips-cheat-sheet/#comments</comments>
		<pubDate>Tue, 24 Apr 2007 09:29:52 +0000</pubDate>
		<dc:creator>Bindu</dc:creator>
				<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://webomania.wordpress.com/2007/04/24/vim-quick-tips-cheat-sheet/</guid>
		<description><![CDATA[Thanks to those who wrote all nice tips in Vim.org, I am beginning to love my editor more and more. Here, I have noted down some quick tips that I found at vim.org and ones that you&#8217;ll not usually find anywhere else. I have followed a terminology here. CMD &#8211; means command mode. INS &#8211; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webomania.wordpress.com&amp;blog=411318&amp;post=24&amp;subd=webomania&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Thanks to those who wrote all nice tips in <a href="http://www.vim.org/tips/">Vim.org</a>, I am beginning to love my editor more and more. Here, I have noted down some quick tips that I found at vim.org and ones that you&#8217;ll not usually find anywhere else.</p>
<p>I have followed a terminology here.<br />
CMD &#8211; means command mode.<br />
INS  &#8211; means insert mode.<br />
VIS  &#8211; means visual mode.<br />
LOC  &#8211; means to be entered in .vimrc file</p>
<p><code></p>
<table border="1" style="width:95%;border-collapse:collapse;text-align:center;" cellspacing="0" cellpadding="0">
<tr style="background:#ccc;color:#fff;">
<td>Mode</td>
<td>Command</td>
<td>Description</td>
</tr>
<tr>
<td>CMD
<td>
:lineno</td>
<td> Go to a specific line.</td>
</tr>
<tr>
<td>CMD</td>
<td>
*
</td>
<td> Searches for the word under cursor </td>
</tr>
<tr>
<td> INS </td>
<td> CTRL - N</td>
<td> Autocompletes word </td>
</tr>
<tr>
<td>CMD </td>
<td> % </td>
<td> to jump to a matching closing/opening brace</td>
</tr>
<tr>
<td> CMD </td>
<td> . </td>
<td> quick copy/paste </td>
</tr>
<tr>
<td>CMD </td>
<td> x </td>
<td> Shortcut for save and exit (wq) </td>
</tr>
<tr>
<td>CMD </td>
<td> @: </td>
<td> Repeat last command </td>
</tr>
<tr>
<td> LOC</td>
<td> iab { {CR} (Enclose CR in angular brackets)</td>
<td> automatically adds closing brace </td>
</tr>
</table>
<p></code></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/webomania.wordpress.com/24/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/webomania.wordpress.com/24/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webomania.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webomania.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webomania.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webomania.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webomania.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webomania.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webomania.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webomania.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webomania.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webomania.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webomania.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webomania.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webomania.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webomania.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webomania.wordpress.com&amp;blog=411318&amp;post=24&amp;subd=webomania&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webomania.wordpress.com/2007/04/24/vim-quick-tips-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1d46d1d1d9b2d55c8064357acb568978?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">rexselin</media:title>
		</media:content>
	</item>
		<item>
		<title>Javascript: Positioning the cursor at the beginning of a textarea</title>
		<link>http://webomania.wordpress.com/2007/04/11/javascript-positioning-the-cursor-at-the-beginning-of-a-textarea/</link>
		<comments>http://webomania.wordpress.com/2007/04/11/javascript-positioning-the-cursor-at-the-beginning-of-a-textarea/#comments</comments>
		<pubDate>Wed, 11 Apr 2007 07:13:35 +0000</pubDate>
		<dc:creator>Bindu</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://webomania.wordpress.com/2007/04/11/javascript-positioning-the-cursor-at-the-beginning-of-a-textarea/</guid>
		<description><![CDATA[I had been using the textarea.focus() function and saw that it behaves differently in different browsers. If there is no content in the textarea, all the browsers behave the same and they set the cursor position at the beginning of the textarea. However, if there is some text contained in the textarea, IE positions the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webomania.wordpress.com&amp;blog=411318&amp;post=22&amp;subd=webomania&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had been using the textarea.focus() function and saw that it behaves differently in different browsers. If there is no content in the textarea, all the browsers behave the same and they set the cursor position at the beginning of the textarea.</p>
<p>However, if there is some text contained in the textarea, IE positions the cursor at the end whereas safari positions the cursor at the beginning. After some frantic google searching, I found the below javascript would fix this discrepancy.</p>
<p><code>	replybox=document.myform.reply;<br />
	      replybox.focus(0);<br />
		if (replybox.setSelectionRange )<br />
		{<br />
		replybox.setSelectionRange(0,0);<br />
		}</code></p>
<p>This works fine in all the browsers. Let me know if this helped you.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/webomania.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/webomania.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webomania.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webomania.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webomania.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webomania.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webomania.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webomania.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webomania.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webomania.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webomania.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webomania.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webomania.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webomania.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webomania.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webomania.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webomania.wordpress.com&amp;blog=411318&amp;post=22&amp;subd=webomania&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webomania.wordpress.com/2007/04/11/javascript-positioning-the-cursor-at-the-beginning-of-a-textarea/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1d46d1d1d9b2d55c8064357acb568978?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">rexselin</media:title>
		</media:content>
	</item>
	</channel>
</rss>

