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

<channel>
	<title>Hussain Fakhruddin, India Weblog &#187; code</title>
	<atom:link href="http://blog.hussulinux.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hussulinux.com</link>
	<description>Things should be simple. But not any simpler!</description>
	<lastBuildDate>Tue, 07 Sep 2010 19:04:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>gettinig PDF form field names</title>
		<link>http://blog.hussulinux.com/2009/10/gettinig-pdf-form-field-names/</link>
		<comments>http://blog.hussulinux.com/2009/10/gettinig-pdf-form-field-names/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 12:15:59 +0000</pubDate>
		<dc:creator>Hussain Fakhruddin</dc:creator>
				<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://blog.hussulinux.com/?p=237</guid>
		<description><![CDATA[If you have a PDF and want to fill the pdf programmatic-ally, You can but you need those pdf&#8217;s form fields.
Here&#8217;s a simple Java Class which can help you. I am using iText as my PDF library.
import java.util.HashMap;
import java.util.Iterator;
import com.lowagie.text.pdf.*;
public class iTextSample {
public static void main(String[] args) throws Exception{
PdfReader reader = new PdfReader(&#8220;/Users/Admin/Public/jars/a.pdf&#8221;);
boolean test = [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a PDF and want to fill the pdf programmatic-ally, You can but you need those pdf&#8217;s form fields.</p>
<p>Here&#8217;s a simple Java Class which can help you. I am using iText as my PDF library.</p>
<p>import java.util.HashMap;<br />
import java.util.Iterator;<br />
import com.lowagie.text.pdf.*;</p>
<p>public class iTextSample {<br />
public static void main(String[] args) throws Exception{<br />
PdfReader reader = new PdfReader(&#8220;/Users/Admin/Public/jars/a.pdf&#8221;);<br />
boolean test = reader.isEncrypted();</p>
<p>System.out.println(test);</p>
<p>AcroFields form = reader.getAcroFields();<br />
HashMap fields = form.getFields();<br />
System.out.println(&#8220;Total Fields: &#8221; + fields.size());<br />
String key;<br />
for (Iterator i = fields.keySet().iterator(); i.hasNext(); ) {<br />
key = (String) i.next();<br />
switch(form.getFieldType(key)) {</p>
<p>case AcroFields.FIELD_TYPE_TEXT:<br />
{<br />
System.out.print(key + &#8220;: &#8220;);<br />
System.out.print(&#8220;Text&#8221;);<br />
System.out.print(&#8220;, At Page:&#8221; + form.getFieldItem(key).getPage(0));<br />
System.out.println(&#8220;, at tab:&#8221; + form.getFieldItem(key).getTabOrder(0));<br />
}<br />
break;</p>
<p>}<br />
}<br />
}<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hussulinux.com/2009/10/gettinig-pdf-form-field-names/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Stop using rediff</title>
		<link>http://blog.hussulinux.com/2009/07/stop-using-rediff/</link>
		<comments>http://blog.hussulinux.com/2009/07/stop-using-rediff/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 13:02:42 +0000</pubDate>
		<dc:creator>Hussain Fakhruddin</dc:creator>
				<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://blog.hussulinux.com/?p=188</guid>
		<description><![CDATA[I have reasons to believe that rediff&#8217;s code quality has become really pathetic day by day. Delivery managers aren&#8217;t paying attention to the feedbacks. They keep putting bad code and pile up stacks of powerful servers to hide their bad programming practices!
Its high time Rediff ! WAKE UP!
After my initial post on a full quality [...]]]></description>
			<content:encoded><![CDATA[<p>I have reasons to believe that rediff&#8217;s code quality has become really pathetic day by day. Delivery managers aren&#8217;t paying attention to the feedbacks. They keep putting bad code and pile up stacks of powerful servers to hide their bad programming practices!</p>
<p>Its high time Rediff ! WAKE UP!</p>
<p>After my initial post on a full quality analysis of rediff which can be found <a href="http://hussulinux.blogspot.com/.../rediffcom-coding-standards-analysis.html ">here</a> I thought they would improve the quality but they went worse. Neither did they improve the quality but they left out loop holes for themselves for hackers to hack in.</p>
<p>The below screenshots would explain:</p>
<p><a href="http://blog.hussulinux.com/wp-content/uploads/2009/07/rediff_bad_coding.png"><img class="alignnone size-medium wp-image-189" title="rediff_bad_coding" src="http://blog.hussulinux.com/wp-content/uploads/2009/07/rediff_bad_coding-300x185.png" alt="rediff_bad_coding" width="300" height="185" /></a> Click to enlarge</p>
<p><a href="http://blog.hussulinux.com/wp-content/uploads/2009/07/rediff_code_horror.png"><img class="alignnone size-medium wp-image-190" title="rediff_code_horror" src="http://blog.hussulinux.com/wp-content/uploads/2009/07/rediff_code_horror-300x182.png" alt="rediff_code_horror" width="300" height="182" /></a> Click to enlarge</p>
<p>I did email the product manager, but he asked me to wait and I&#8217;m still waiting!!</p>
<p><a href="http://blog.hussulinux.com/wp-content/uploads/2009/07/Picture-3.png"><img class="alignnone size-medium wp-image-191" title="Picture 3" src="http://blog.hussulinux.com/wp-content/uploads/2009/07/Picture-3-286x300.png" alt="Picture 3" width="286" height="300" /></a> Click to enlarge.</p>
<p>So now I&#8217;ve decided that I will stop using Rediff, and go to other news sites which are good for my browser.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hussulinux.com/2009/07/stop-using-rediff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH proxy &#8211; Running SSH over blocked ports, SSH on mobile phones, SSH over HTTP</title>
		<link>http://blog.hussulinux.com/2009/02/ssh-proxy-running-ssh-over-blocked-ports-ssh-on-mobile-phones-ssh-over-http/</link>
		<comments>http://blog.hussulinux.com/2009/02/ssh-proxy-running-ssh-over-blocked-ports-ssh-on-mobile-phones-ssh-over-http/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 12:15:41 +0000</pubDate>
		<dc:creator>Hussain Fakhruddin</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.hussulinux.com/?p=135</guid>
		<description><![CDATA[Imagine yourself in a scenario where you&#8217;re a behind a firewall and cannot access the SSH, or you&#8217;re controlling your servers via your mobile. Here&#8217;s a quick way to manage your servers through HTTP via command line. You can fire scripts, run shell commands etc.
Be careful, it will not ask you any username/password and runs [...]]]></description>
			<content:encoded><![CDATA[<p>Imagine yourself in a scenario where you&#8217;re a behind a firewall and cannot access the SSH, or you&#8217;re <strong>controlling your servers via your mobile.</strong> Here&#8217;s a quick way to manage your servers through HTTP via command line. You can fire scripts, run shell commands etc.</p>
<p>Be careful, it will not ask you any username/password and runs with username Apache/SYSTEM.</p>
<p>The script is tested over linux and windows servers!</p>
<p><a href="http://blog.hussulinux.com/wp-content/uploads/2009/02/ssh-over-http1.png"><img class="aligncenter size-full wp-image-136" title="ssh-over-http1" src="http://blog.hussulinux.com/wp-content/uploads/2009/02/ssh-over-http1.png" alt="ssh-over-http1" width="685" height="485" /></a></p>
<p><a href="http://blog.hussulinux.com/wp-content/uploads/2009/02/ssh-over-http2.png"><img class="aligncenter size-full wp-image-137" title="ssh-over-http2" src="http://blog.hussulinux.com/wp-content/uploads/2009/02/ssh-over-http2.png" alt="ssh-over-http2" width="688" height="492" /></a></p>
<p>All you need is an Apache server with PHP installed. Just create a PHP file and insert the following code.</p>
<p>Put in a comment if this really helped you!</p>
<p>//&#8212; BEGIN OF CODE&#8212;-</p>
<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;HussuLinux SSH over HTTP&#8230;&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;form id=&#8221;form1&#8243; name=&#8221;form1&#8243; method=&#8221;post&#8221; action=&#8221;"&gt;<br />
&lt;label&gt;Enter Command<br />
&lt;input type=&#8221;text&#8221; name=&#8221;cmd&#8221; /&gt;<br />
&lt;/label&gt;<br />
&lt;input type=&#8221;submit&#8221; name=&#8221;Submit&#8221; value=&#8221;Submit&#8221; /&gt;<br />
&lt;/form&gt;</p>
<p>Output :<br />
&lt;textarea cols=&#8221;100&#8243; rows=&#8221;30&#8243;&gt;<br />
&lt;?php<br />
$cmd = $_POST['cmd'];<br />
if ($cmd==&#8221;")<br />
{<br />
//Do Nothing!<br />
}<br />
else<br />
{<br />
echo htmlspecialchars((shell_exec($cmd)));<br />
}<br />
?&gt;<br />
&lt;/textarea&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>//&#8212; END OF CODE&#8212;&#8211;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hussulinux.com/2009/02/ssh-proxy-running-ssh-over-blocked-ports-ssh-on-mobile-phones-ssh-over-http/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Webmethods running linux commands as a java service</title>
		<link>http://blog.hussulinux.com/2009/02/webmethods-running-linux-commands-as-a-java-service/</link>
		<comments>http://blog.hussulinux.com/2009/02/webmethods-running-linux-commands-as-a-java-service/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 09:31:43 +0000</pubDate>
		<dc:creator>Hussain Fakhruddin</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[webmethods]]></category>

		<guid isPermaLink="false">http://blog.hussulinux.com/?p=117</guid>
		<description><![CDATA[Recently a friend asked me how in webmethods, she could fire linux specific utility tasks. She wanted to find out if the disk space is full on linux. This can be done very easily by the &#8220;df- kh&#8221; command. But how to invoke this through webmethods?
Solution: Follow the steps below.
Step 1: Create a Java Service [...]]]></description>
			<content:encoded><![CDATA[<p>Recently a friend asked me how in webmethods, she could fire linux specific utility tasks. She wanted to find out if the disk space is full on linux. This can be done very easily by the &#8220;<em>df- kh</em>&#8221; command. But how to invoke this through webmethods?</p>
<p><strong>Solution: </strong>Follow the steps below.</p>
<p><strong>Step 1:</strong> Create a Java Service with the following input and output</p>
<p><a href="http://blog.hussulinux.com/wp-content/uploads/2009/02/webmethods-java-service-1.png"><img class="aligncenter size-full wp-image-118" title="webmethods-java-service-1" src="http://blog.hussulinux.com/wp-content/uploads/2009/02/webmethods-java-service-1.png" alt="webmethods-java-service-1" width="543" height="186" /></a></p>
<p><strong>Step 2:</strong> Paste in the following code:</p>
<p><em>//&#8212;- BEGIN OF CODE<br />
//Author: Hussain Fakhruddin<br />
//Date: 20090203<br />
IDataCursor cursor = pipeline.getCursor();<br />
//Return if no command is specified&#8230;<br />
if (!cursor.first(&#8220;command&#8221;)) return;<br />
String output = &#8220;&#8221;;<br />
try {<br />
String command = (String)cursor.getValue();<br />
String line=&#8221;";</em></p>
<p><em>//Creating a Process Instance and executing the command..<br />
Process p = Runtime.getRuntime().exec(command);</em></p>
<p><em>// Capturing the output.<br />
BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));<br />
while ((line = input.readLine()) != null) {<br />
output = output + line + &#8220;\n&#8221;;<br />
}<br />
input.close();<br />
}<br />
catch (Exception err) {<br />
// Do something on error&#8230; may be throw a ServiceException<br />
}<br />
// setting the outputMsg for whatever output the command has given.<br />
cursor.insertAfter(&#8220;outputMsg&#8221;, output);</em></p>
<p><em>//&#8212;&#8211;END OF CODE&#8212;&#8212;&#8212;&#8212;</em></p>
<p><a href="http://blog.hussulinux.com/wp-content/uploads/2009/02/webmethods-run-external-command-or-programs.png"><img class="aligncenter size-full wp-image-119" title="webmethods-run-external-command-or-programs" src="http://blog.hussulinux.com/wp-content/uploads/2009/02/webmethods-run-external-command-or-programs.png" alt="webmethods-run-external-command-or-programs" width="929" height="468" /></a></p>
<p><strong>Step 3:</strong> Run the program and pass the unix/linux command</p>
<p><strong>Note:</strong> <strong><span style="color: #ff0000;">DO NOT</span> </strong>use commands which are not exiting after giving an output. For example &#8220;<em>tail -f</em>&#8221; . This service is only for commands like &#8220;<em>df -hk</em>&#8221; or &#8220;<em>cp file1 file2</em>&#8221; or &#8220;<em>pwd</em>&#8221; or &#8220;<em>ls -lrt</em>&#8220;.</p>
<p>If you face some issues, do feel free to write back.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hussulinux.com/2009/02/webmethods-running-linux-commands-as-a-java-service/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Rediff.com Coding Standards: An Analysis</title>
		<link>http://blog.hussulinux.com/2008/10/rediffcom-coding-standards-an-analysis/</link>
		<comments>http://blog.hussulinux.com/2008/10/rediffcom-coding-standards-an-analysis/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 11:56:00 +0000</pubDate>
		<dc:creator>Hussain Fakhruddin</dc:creator>
				<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://hussulinux.com/blog/?p=45</guid>
		<description><![CDATA[By Hussain Fakhruddin
  hussulinux@gmail.com



  





Rediff has a lot of portals within its main portal. 
  
This is how they organize their re-usable code.
  
 
  
The first thing I did is logged on to: http://indian-railways.rediff.com/
  
 
  


I opened my Fire Fox’s Error Console and found this:





  [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="text-align: right;" align="right"><span style=";font-family:Verdana;font-size:85%;"  >By Hussain Fakhruddin<o:p></o:p></span></p>
<div style="text-align: right;">  <span style=";font-family:Verdana;font-size:85%;"  ><a href="mailto:hussulinux@gmail.com">hussulinux@</a></span><span style=";font-family:Verdana;font-size:85%;"  ><a href="mailto:hussulinux@gmail.com">gmail.com</a></p>
<p></span><meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11">
<link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Chussaif%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml">
<link rel="Edit-Time-Data" href="file:///C:%5CDOCUME%7E1%5Chussaif%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_editdata.mso"><!--[if !mso]><br />
<style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style>
<p> <![endif]--><!--[if gte mso 9]><xml>  <w:worddocument>   <w:view>Normal</w:View>   <w:zoom>0</w:Zoom>   <w:punctuationkerning/>   <w:validateagainstschemas/>   <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid>   <w:ignoremixedcontent>false</w:IgnoreMixedContent>   <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText>   <w:compatibility>    <w:breakwrappedtables/>    <w:snaptogridincell/>    <w:wraptextwithpunct/>    <w:useasianbreakrules/>    <w:dontgrowautofit/>   </w:Compatibility>   <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel>  </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml>  <w:latentstyles deflockedstate="false" latentstylecount="156">  </w:LatentStyles> </xml><![endif]--><br />
<style> <!--  /* Font Definitions */  @font-face 	{font-family:Verdana; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:536871559 0 0 0 415 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} a:link, span.MsoHyperlink 	{color:blue; 	text-decoration:underline; 	text-underline:single;} a:visited, span.MsoHyperlinkFollowed 	{color:purple; 	text-decoration:underline; 	text-underline:single;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;}  /* List Definitions */  @list l0 	{mso-list-id:559557557; 	mso-list-type:hybrid; 	mso-list-template-ids:501106636 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l0:level1 	{mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in;} @list l1 	{mso-list-id:1030185757; 	mso-list-type:hybrid; 	mso-list-template-ids:914372410 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l1:level1 	{mso-level-start-at:12; 	mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in;} ol 	{margin-bottom:0in;} ul 	{margin-bottom:0in;} --> </style>
<p><!--[if gte mso 10]><br />
<style>  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} </style>
<p> <![endif]-->
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><br />
<br /></span></p>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><br />
<br /></span></p>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  >Rediff has a lot of portals within its main portal. <o:p></o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  >This is how they organize their re-usable code.<o:p></o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  >The first thing I did is logged on to: <a href="http://indian-railways.rediff.com/">http://indian-railways.rediff.com/</a><o:p></o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><br />
<br /></span></p>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  >I opened my Fire Fox’s Error Console and found this:</span></p>
<p style="text-align: left;" class="MsoNormal">
</p>
<p style="text-align: center;" class="MsoNormal"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_dcS1l9icSOg/SPx2q4fQZ3I/AAAAAAAAAfY/Qs_3k0qdccc/s1600-h/rediff-error-console.png"><img style="cursor: pointer; width: 438px; height: 253px;" src="http://2.bp.blogspot.com/_dcS1l9icSOg/SPx2q4fQZ3I/AAAAAAAAAfY/Qs_3k0qdccc/s400/rediff-error-console.png" alt="" id="BLOGGER_PHOTO_ID_5259208943951964018" border="0" /></a></p>
<p style="text-align: left;" class="MsoNormal">
<br /><span style=";font-family:Verdana;font-size:85%;"  ><o:p></o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style="font-size:85%;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_dcS1l9icSOg/SPx1CSzb0VI/AAAAAAAAAeo/PAgkPxXgpgY/s1600-h/rediff-error-console.png"><br />
<br /></a></span></p>
<div style="text-align: left;">   <span style=";font-family:Verdana;font-size:85%;"  > </span>  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  >The next thing I did was to open up the source code:<o:p></o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  >I was shocked. I could really figure out that this type of code was <o:p></o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_dcS1l9icSOg/SPx3fMBBeII/AAAAAAAAAfg/GmF3135x4WQ/s1600-h/rediff-coding-1.png"><img style="cursor: pointer;" src="http://4.bp.blogspot.com/_dcS1l9icSOg/SPx3fMBBeII/AAAAAAAAAfg/GmF3135x4WQ/s400/rediff-coding-1.png" alt="" id="BLOGGER_PHOTO_ID_5259209842547062914" border="0" /></a></p>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  >1) Written by just “Jugard” of code from their own paces here and there!<o:p></o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  >2) Not at all reviewed!<o:p></o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  >3) Done in haste to meet the deadlines!<o:p></o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><br />
<br /></span></p>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  >I will put some screenshots to prove my point:(Please enlarge them as needed)<br />
<br /></span></p>
<p style="text-align: left;" class="MsoNormal">
<br /><span style=";font-family:Verdana;font-size:85%;"  ><o:p></o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: center;" class="MsoNormal"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_dcS1l9icSOg/SPx2CF1eFLI/AAAAAAAAAew/8Ep-o1pjE84/s1600-h/rediff-coding-1.png"><img style="cursor: pointer;" src="http://1.bp.blogspot.com/_dcS1l9icSOg/SPx2CF1eFLI/AAAAAAAAAew/8Ep-o1pjE84/s400/rediff-coding-1.png" alt="" id="BLOGGER_PHOTO_ID_5259208243160159410" border="0" /></a><span style=";font-family:Verdana;font-size:85%;"  ><!--[if gte vml 1]><v:shape id="_x0000_i1027" type="#_x0000_t75" style="'width:495pt;height:61.5pt'">  <v:imagedata src="file:///C:\DOCUME~1\hussaif\LOCALS~1\Temp\msohtml1\01\clip_image003.png" title=""> </v:shape><![endif]--><!--[if !vml]--></span></p>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><br />
<br /><!--[endif]--><o:p></o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<ol style="margin-top: 0in; text-align: left;" start="1" type="1">
<li class="MsoNormal"><span style="font-size:85%;"><b style=""><span style="font-family:Verdana;">Are these written by the same programmer? <o:p></o:p></span></b></span></li>
</ol>
<div style="text-align: left;">  </div>
<p class="MsoNormal" style="margin-left: 0.5in; text-align: left;"><span style=";font-family:Verdana;font-size:85%;"  >Subsequent lines of code, but one in caps and other in small.<br />
<br />- Seems like they have just copied it from some previous page.<o:p></o:p></span></p>
<div style="text-align: left;">  </div>
<p class="MsoNormal" style="margin-left: 0.25in; text-align: left;"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<ol style="margin-top: 0in; text-align: left;" start="2" type="1">
<li class="MsoNormal"><span style="font-size:85%;"><b style=""><span style="font-family:Verdana;">Dirty CSS to look good? </span></b></span><span style=";font-family:Verdana;font-size:85%;"  >: Reuse of CSS codes, but not      at all arranged in a proper manner. They are probably using the code which      is lying here and there.</p>
<p><o:p></o:p></span></li>
</ol>
<div style="text-align: left;">  </div>
<p class="MsoNormal" style="margin-left: 0.25in; text-align: left;"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: center;" class="MsoNormal"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_dcS1l9icSOg/SPx30n8pGyI/AAAAAAAAAfo/DTHBH7-lTPg/s1600-h/rediff-coding-2.png"><img style="cursor: pointer;" src="http://2.bp.blogspot.com/_dcS1l9icSOg/SPx30n8pGyI/AAAAAAAAAfo/DTHBH7-lTPg/s400/rediff-coding-2.png" alt="" id="BLOGGER_PHOTO_ID_5259210210822134562" border="0" /></a></p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<ol style="margin-top: 0in; text-align: left;" start="3" type="1">
<li class="MsoNormal"><span style="font-size:85%;"><b style=""><span style="font-family:Verdana;">Code lying here and there</span></b></span><span style=";font-family:Verdana;font-size:85%;"  > + insert what is needed and      get the things done!</span></li>
</ol>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">   <span style=";font-family:Verdana;font-size:85%;"  > </span>  </div>
<p style="text-align: center;" class="MsoNormal"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_dcS1l9icSOg/SPx3-pVEDDI/AAAAAAAAAfw/NkAdTs3XVd4/s1600-h/rediff-coding-3.png"><img style="cursor: pointer;" src="http://1.bp.blogspot.com/_dcS1l9icSOg/SPx3-pVEDDI/AAAAAAAAAfw/NkAdTs3XVd4/s400/rediff-coding-3.png" alt="" id="BLOGGER_PHOTO_ID_5259210382991690802" border="0" /></a></p>
<div style="text-align: left;">  </div>
<p class="MsoNormal" style="margin-left: 0.25in; text-align: left;"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<p class="MsoNormal" style="margin-left: 0.25in; text-align: left;"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<ol style="margin-top: 0in; text-align: left;" start="4" type="1">
<li class="MsoNormal"><span style="font-size:85%;"><b style=""><span style="font-family:Verdana;">JavaScript in the middle of an external CSS.</span></b></span><span style=";font-family:Verdana;font-size:85%;"  ><br />
<br />Why not place it together along with the code above!<o:p></o:p></span></li>
</ol>
<div style="text-align: left;">  </div>
<p class="MsoNormal" style="margin-left: 0.25in; text-align: left;"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<ol style="margin-top: 0in; text-align: left;" start="5" type="1">
<li class="MsoNormal"><span style="font-size:85%;"><b style=""><span style="font-family:Verdana;">Just Wow:</span></b></span><span style=";font-family:Verdana;font-size:85%;"  > Internal JS > CSS > External JS > Internal      JS<br />
<br />CSS surrounded between JavaScript and JavaScript surrounded between CSS!<o:p></o:p></span></li>
</ol>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<ol style="margin-top: 0in; text-align: left;" start="6" type="1">
<li class="MsoNormal"><span style="font-size:85%;"><b style=""><span style="font-family:Verdana;">Where are your code conventions Mr. Rediff?</span></b></span><span style=";font-family:Verdana;font-size:85%;"  ><br />
<br />See the CSS classname ‘Naming standards’<o:p></o:p></span></li>
</ol>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<ol style="margin-top: 0in; text-align: left;" start="7" type="1">
<li class="MsoNormal"><span style="font-size:85%;"><b style=""><span style="font-family:Verdana;">Rediff’s way of importing external JS!<o:p></o:p></span></b></span></li>
</ol>
<div style="text-align: left;">  </div>
<p class="MsoNormal" style="margin-left: 0.5in; text-align: left;"><span style=";font-family:Verdana;font-size:85%;"  >They are using JavaScript to import another JavaScript code!<br />
<br />Look carefully!</span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-align: left;">
</p>
<p class="MsoNormal" style="margin-left: 0.5in; text-align: left;">
</p>
<p class="MsoNormal" style="margin-left: 0.5in; text-align: left;">
<br /><span style=";font-family:Verdana;font-size:85%;"  ><o:p></o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: center;" class="MsoNormal"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_dcS1l9icSOg/SPx4ltksA8I/AAAAAAAAAgA/W71p7S_Rn3A/s1600-h/rediff-coding-4.png"><img style="cursor: pointer;" src="http://1.bp.blogspot.com/_dcS1l9icSOg/SPx4ltksA8I/AAAAAAAAAgA/W71p7S_Rn3A/s400/rediff-coding-4.png" alt="" id="BLOGGER_PHOTO_ID_5259211054145864642" border="0" /></a><span style=";font-family:Verdana;font-size:85%;"  ><!--[if gte vml 1]><v:shape id="_x0000_i1030" type="#_x0000_t75" style="'width:431.25pt;height:144.75pt'">  <v:imagedata src="file:///C:\DOCUME~1\hussaif\LOCALS~1\Temp\msohtml1\01\clip_image009.png" title=""> </v:shape><![endif]--><!--[if !vml]--></span></p>
<p style="text-align: left;" class="MsoNormal">
<br /><span style=";font-family:Verdana;font-size:85%;"  ><!--[endif]--><o:p></o:p></span></p>
<div style="text-align: left;">  </div>
<ol style="margin-top: 0in; text-align: left;" start="8" type="1">
<li class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><span style="font-weight: bold;">Debugging debris remains…</span></span></li>
</ol>
<p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: center;" class="MsoNormal"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_dcS1l9icSOg/SPx4ZBtV_UI/AAAAAAAAAf4/7kQM8j6JNhQ/s1600-h/rediff-coding-5.png"><img style="cursor: pointer;" src="http://4.bp.blogspot.com/_dcS1l9icSOg/SPx4ZBtV_UI/AAAAAAAAAf4/7kQM8j6JNhQ/s400/rediff-coding-5.png" alt="" id="BLOGGER_PHOTO_ID_5259210836212579650" border="0" /></a></p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<ol style="margin-top: 0in; text-align: left;" start="9" type="1">
<li class="MsoNormal"><span style="font-size:85%;"><b style=""><span style="font-family:Verdana;">Reuse the code, but not in the same page man!<br />
<br /></span></b></span><span style=";font-family:Verdana;font-size:85%;"  >I saw this      CSS defined AGAIN somewhere below the code!       <!--[if !supportLineBreakNewLine]-->       <!--[endif]--><o:p></o:p></span></li>
<li class="MsoNormal"><span style="font-size:85%;"><b style=""><span style="font-family:Verdana;">What a waste of memory!</span></b></span><span style=";font-family:Verdana;font-size:85%;"  ><br />
<br />Everything commented inside the function, what does this function do      then?!<o:p></o:p></span></li>
</ol>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<p style="text-align: center;" class="MsoNormal">
</p>
<p style="text-align: center;" class="MsoNormal"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_dcS1l9icSOg/SPx42hFqhHI/AAAAAAAAAgI/deqQO8aA1Fg/s1600-h/rediff-coding-6.png"><img style="cursor: pointer; width: 429px; height: 57px;" src="http://3.bp.blogspot.com/_dcS1l9icSOg/SPx42hFqhHI/AAAAAAAAAgI/deqQO8aA1Fg/s400/rediff-coding-6.png" alt="" id="BLOGGER_PHOTO_ID_5259211342852293746" border="0" /></a></p>
<p style="text-align: center;" class="MsoNormal"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_dcS1l9icSOg/SPx4ZBtV_UI/AAAAAAAAAf4/7kQM8j6JNhQ/s1600-h/rediff-coding-5.png"><br />
<br /></a></p>
<div style="text-align: left;">  </div>
<ol style="margin-top: 0in; text-align: left;" start="11" type="1">
<li class="MsoNormal"><span style="font-size:85%;"><b style=""><span style="font-family:Verdana;"><span style=""> </span>Agreed we all      use broadband, but what a waste of Bandwidth?        <!--[if !supportLineBreakNewLine]-->       <!--[endif]--><o:p></o:p></span></b></span></li>
</ol>
<div style="text-align: left;">  </div>
<p class="MsoNormal" style="margin-left: 0.25in; text-indent: 0.25in; text-align: left;"><span style=";font-family:Verdana;font-size:85%;"  >Why so many wide spaces! <o:p></o:p></span></p>
<div style="text-align: left;">  </div>
<p class="MsoNormal" style="margin-left: 0.25in; text-indent: 0.25in; text-align: left;"><span style=";font-family:Verdana;font-size:85%;"  >Don’t you guys know browser ignores them but bandwidth network doesn’t!<o:p></o:p></span></p>
<div style="text-align: left;">   <span style=";font-family:Verdana;font-size:85%;"  > </span>  </div>
<p style="text-align: left;" class="MsoNormal">
<br /><span style=";font-family:Verdana;font-size:85%;"  ><!--[if gte vml 1]><v:shape id="_x0000_i1033" type="#_x0000_t75" style="'width:6in;height:385.5pt'">  <v:imagedata src="file:///C:\DOCUME~1\hussaif\LOCALS~1\Temp\msohtml1\01\clip_image015.png" title=""> </v:shape><![endif]--><!--[if !vml]--></span></p>
<p style="text-align: center;" class="MsoNormal"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_dcS1l9icSOg/SPx5BNcTBPI/AAAAAAAAAgQ/4cTk-xwxJm0/s1600-h/rediff-coding-7.png"><img style="cursor: pointer;" src="http://2.bp.blogspot.com/_dcS1l9icSOg/SPx5BNcTBPI/AAAAAAAAAgQ/4cTk-xwxJm0/s400/rediff-coding-7.png" alt="" id="BLOGGER_PHOTO_ID_5259211526557074674" border="0" /></a></p>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<ol style="margin-top: 0in; text-align: left;" start="12" type="1">
<li class="MsoNormal"><span style="font-size:85%;"><b style=""><span style="font-family:Verdana;">Broken Link<o:p></o:p></span></b></span></li>
</ol>
<div style="text-align: left;">  </div>
<p class="MsoNormal" style="margin-left: 0.5in; text-align: left;"><span style=";font-family:Verdana;font-size:85%;"  >Wanna report?<o:p></o:p></span></p>
<div style="text-align: left;">  </div>
<p class="MsoNormal" style="margin-left: 0.25in; text-align: left;"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<ol style="margin-top: 0in; text-align: left;" start="13" type="1">
<li class="MsoNormal"><span style="font-size:85%;"><b style=""><span style="font-family:Verdana;">Total time over 512KBPS<br />
<br /></span></b></span><span style=";font-family:Verdana;font-size:85%;"  >No comments!<o:p></o:p></span></li>
</ol>
<div style="text-align: left;">  </div>
<p class="MsoNormal" style="margin-left: 0.25in; text-align: left;"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<ol style="margin-top: 0in; text-align: left;" start="14" type="1">
<li class="MsoNormal"><span style="font-size:85%;"><b style=""><span style="font-family:Verdana;">19 Requests to the server! Woah!</span></b></span><span style=";font-family:Verdana;font-size:85%;"  ><br />
<br />Thank you that I have an advance browser to do these for me!<o:p></o:p></span></li>
</ol>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<ol style="margin-top: 0in; text-align: left;" start="15" type="1">
<li class="MsoNormal"><span style="font-size:85%;"><b style=""><span style="font-family:Verdana;">So many DNS resolutions</span></b></span><span style=";font-family:Verdana;font-size:85%;"  ><br />
<br />My ISP might think I am doing a DNS attack!<o:p></o:p></span></li>
</ol>
<div style="text-align: left;">  </div>
<p style="text-align: left;" class="MsoNormal"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">   <span style=";font-family:Verdana;font-size:85%;"  > </span>  </div>
<p class="MsoNormal" style="margin-left: 0.25in; text-align: left;">
<br /><span style=";font-family:Verdana;font-size:85%;"  ><!--[if gte vml 1]><v:shape id="_x0000_i1026" type="#_x0000_t75" style="'width:431.25pt;height:336pt'">  <v:imagedata src="file:///C:\DOCUME~1\hussaif\LOCALS~1\Temp\msohtml1\01\clip_image017.png" title=""> </v:shape><![endif]--><!--[if !vml]--></span></p>
<p class="MsoNormal" style="margin-left: 0.25in; text-align: center;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_dcS1l9icSOg/SPx8glcOcII/AAAAAAAAAgY/RgZCv7mN9U8/s1600-h/rediff-coding-8.png"><img style="cursor: pointer;" src="http://3.bp.blogspot.com/_dcS1l9icSOg/SPx8glcOcII/AAAAAAAAAgY/RgZCv7mN9U8/s400/rediff-coding-8.png" alt="" id="BLOGGER_PHOTO_ID_5259215364110053506" border="0" /></a></p>
<p class="MsoNormal" style="margin-left: 0.25in; text-align: left;"><span style=";font-family:Verdana;font-size:85%;"  ><br />
<br /><!--[endif]--><o:p></o:p></span></p>
<div style="text-align: left;">  </div>
<p class="MsoNormal" style="margin-left: 0.25in; text-align: left;"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<p class="MsoNormal" style="margin-left: 0.25in; text-align: left;"><span style=";font-family:Verdana;font-size:85%;"  ><o:p> </o:p></span></p>
<div style="text-align: left;">  </div>
<p class="MsoNormal" style="margin-left: 0.25in; text-align: left;"><span style="font-size:85%;"><b style=""><span style="font-family:Verdana;">16. Best of all: </span></b></span><span style=";font-family:Verdana;font-size:85%;"  ><br />
<br /><span style="">     </span>Around 8 MB of Memory occupied by just 41KB of HTML code!<o:p></o:p></span></p>
<p> <span style="font-size:85%;"><br />
<br /></span></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.hussulinux.com/2008/10/rediffcom-coding-standards-an-analysis/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Single line of HTML crashes IE 6</title>
		<link>http://blog.hussulinux.com/2007/08/single-line-of-html-crashes-ie-6/</link>
		<comments>http://blog.hussulinux.com/2007/08/single-line-of-html-crashes-ie-6/#comments</comments>
		<pubDate>Tue, 07 Aug 2007 21:16:00 +0000</pubDate>
		<dc:creator>Hussain Fakhruddin</dc:creator>
				<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://hussulinux.com/blog/?p=18</guid>
		<description><![CDATA[A Japanese blogger who goes by the name Hamachiya2 has discovered a single line of HTML and CSS that crashes IE 6. The line is:
&#60;style&#62;*{position:relative}&#60;/style&#62;&#60;table&#62;&#60;input&#62;&#60;/table&#62;
If you’re brave, you can click here to try it out. The code is rendered correctly in Firefox, Safari and Opera (didn’t get a chance to try any other browsers, but [...]]]></description>
			<content:encoded><![CDATA[<p>A Japanese blogger who goes by the name <a href="http://d.hatena.ne.jp/Hamachiya2/20070804/browser_crasher">Hamachiya2</a> has discovered a single line of HTML and CSS that crashes IE 6. The line is:</p>
<pre>&lt;style&gt;*{position:relative}&lt;/style&gt;&lt;table&gt;&lt;input&gt;&lt;/table&gt;</pre>
<p>If you’re brave, you can <a href="http://immike.net/scripts/ie_crash.html">click here to try it out</a>. The code is rendered correctly in Firefox, Safari and Opera (didn’t get a chance to try any other browsers, but presumably they work too). But in IE 6 it raises a fatal error in mshtml.dll.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hussulinux.com/2007/08/single-line-of-html-crashes-ie-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deep Linking How to avoid</title>
		<link>http://blog.hussulinux.com/2007/08/deep-linking-how-to-avoid/</link>
		<comments>http://blog.hussulinux.com/2007/08/deep-linking-how-to-avoid/#comments</comments>
		<pubDate>Tue, 07 Aug 2007 20:27:00 +0000</pubDate>
		<dc:creator>Hussain Fakhruddin</dc:creator>
				<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://hussulinux.com/blog/?p=17</guid>
		<description><![CDATA[A deep link is a direct link to a web site&#8217;s resource without accessing the main page of the site. For example your site is http://www.abc.com and your contact page is at http://www.abc.com/contactus/contact.html. If a user types the 2nd link without going though the main page, he is called as The Deep Linker.
It becomes a [...]]]></description>
			<content:encoded><![CDATA[<p>A deep link is a direct link to a web site&#8217;s resource without accessing the main page of the site. For example your site is http://www.abc.com and your contact page is at http://www.abc.com/contactus/contact.html. If a user types the 2nd link without going though the main page, he is called as The Deep Linker.</p>
<p>It becomes a problem for many of the sites which display ads on their first page(the index page). The HTTP protocol doesn&#8217;t bother if the user is asking for a resource via a deep link or via a normal link. After all, the request which goes to the server is something like this :<br /><span style="font-weight: bold;"><br />GET /contactus/contact.html</span></p>
<p>for both cases 1. When you access it through a deep link or 2. When you access it normally via first page&#8217;s <a> link.</p>
<p>So, how to avoid people from linking deep?<br />Here&#8217;s a small trick:</p>
<p>1. Check for a cookie at each deep link. If it doesn&#8217;t exist, redirect to index page.<br />2. On the index page insert a cookie which gets killed when the browser is closed.</p>
<p>Anyone knowing a non cookie based solution to this problem do post it in the comments<br /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hussulinux.com/2007/08/deep-linking-how-to-avoid/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VB6 and IE7 problem</title>
		<link>http://blog.hussulinux.com/2007/06/vb6-and-ie7-problem/</link>
		<comments>http://blog.hussulinux.com/2007/06/vb6-and-ie7-problem/#comments</comments>
		<pubDate>Thu, 07 Jun 2007 15:49:00 +0000</pubDate>
		<dc:creator>Hussain Fakhruddin</dc:creator>
				<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://hussulinux.com/blog/?p=11</guid>
		<description><![CDATA[One may no longer be able to use the ieframe.dll when using IE7 with VB6&#8217;s Web Browser Control
Here&#8217;s a quick tip:On your component selection dialog box, Point the Microsoft Internet Controls to SHDOCVW.dll instead of ieframe.dll and bingo!
]]></description>
			<content:encoded><![CDATA[<p>One may no longer be able to use the ieframe.dll when using IE7 with VB6&#8217;s Web Browser Control</p>
<p>Here&#8217;s a quick tip:<br />On your component selection dialog box, Point the Microsoft Internet Controls to SHDOCVW.dll instead of ieframe.dll and bingo!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hussulinux.com/2007/06/vb6-and-ie7-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
