<?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>Tips for Twits&#187; iis</title>
	<atom:link href="http://t.wits.sg/tag/iis/feed/" rel="self" type="application/rss+xml" />
	<link>http://t.wits.sg</link>
	<description>WARNING: excessive use of this site will increase MP at the expense of HP</description>
	<lastBuildDate>Tue, 12 Jul 2011 15:09:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>HOWTO: Self-Signed SSL on IIS in Vista</title>
		<link>http://t.wits.sg/2009/02/24/howto-self-signed-https-on-iis-in-vista/</link>
		<comments>http://t.wits.sg/2009/02/24/howto-self-signed-https-on-iis-in-vista/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 15:48:08 +0000</pubDate>
		<dc:creator>gaweee</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[certificate]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[vista]]></category>

		<guid isPermaLink="false">http://t.wits.sg/?p=30</guid>
		<description><![CDATA[Yes it can be done, no its not hard at all, no you dont have to download any weird sharewares and no it doesnt cost a cent. Lets go! Download the SelfSSL from microsoft downloads Install it, duh. Assuming you installed it where its supposed to be, go to C:\Program Files\IIS Resources\SelfSSL and run selfssl.exe [...]]]></description>
			<content:encoded><![CDATA[<p>Yes it can be done, no its not hard at all, no you dont have to download any weird sharewares and no it doesnt cost a cent. Lets go!</p>
<ol>
<li>Download the SelfSSL from <a href="http://www.microsoft.com/downloads/details.aspx?familyid=56FC92EE-A71A-4C73-B628-ADE629C89499&amp;displaylang=en">microsoft downloads</a></li>
<li>Install it, duh.</li>
<li>Assuming you installed it where its supposed to be, go to <em>C:\Program Files\IIS Resources\SelfSSL</em> and run <strong>selfssl.exe</strong></li>
<li>Agree to it installing the certificate for you and press <strong>Y</strong></li>
<li>Open your <em>IIS Manager &gt; Sites</em></li>
<li>Right click on the <em>Default Web Site</em> and choose <strong>Edit Bindings</strong></li>
<li>Add</li>
<li>Select type as <strong>https</strong> and select the certificate you just installed.</li>
<li>Done</li>
</ol>
<p>Viola!</p>
<p>This adds the certificate for only a puny <strong>7 days</strong>. If you&#8217;re like us, you&#8217;ll probably need a cert for a much longer period than that. No problem!<br />
Fire up your command prompt and cd to <code>C:\Program Files\IIS Resources\SelfSS\</code><br />
type the following:</p>

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;">selfssl.exe /V:3650 /t</pre></div></div>

<p>That&#8217;ll give you a nice cert for 10 years.<br />
But wait, you&#8217;re original cert is still there! Wel&#8217;ll have to remove it.</p>
<ol>
<li>Start-&gt;Run-&gt;mmc.exe</li>
<li>File -&gt; Add/Remove Snap-in</li>
<li>Certificates (on the left column)</li>
<li>OK</li>
<li>Navigate the tree to: Certificates -&gt; Personal -&gt; Certificates</li>
<li>Delete the original SSL cert you created (see the expiration date differences)</li>
<li>Follow the above instructions in customizing your IIS to the new cert now. =D</li>
</ol>
<p><strong>Note:</strong> This is used for development purposes and the certificates will be recognized as invalid for that domain. Go ahead and add the security exception in Firefox, IE, Chrome or whatever other browsers you&#8217;re using.</p>
]]></content:encoded>
			<wfw:commentRss>http://t.wits.sg/2009/02/24/howto-self-signed-https-on-iis-in-vista/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOWTO: Fix EXTJS Textarea for IE6</title>
		<link>http://t.wits.sg/2008/06/17/howto-fix-extjs-textarea-for-ie6/</link>
		<comments>http://t.wits.sg/2008/06/17/howto-fix-extjs-textarea-for-ie6/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 06:34:23 +0000</pubDate>
		<dc:creator>gaweee</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[bugfix]]></category>
		<category><![CDATA[ext]]></category>
		<category><![CDATA[frontend]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[js]]></category>

		<guid isPermaLink="false">http://t.wits.sg/?p=8</guid>
		<description><![CDATA[I encountered a interesting display bug when working with EXTJS recently. The following code renders well in FF 2 and above but not in IE6. var form = new Ext.form.FormPanel({ baseCls: 'x-plain', labelWidth: 140, url: 'abc/def.php', defaultType: 'textfield', items: [{ fieldLabel: 'Name', name: 'name', anchor:'100%' // anchor width by percentage }, { xtype: 'textarea', fieldLabel: [...]]]></description>
			<content:encoded><![CDATA[<p>I encountered a interesting display bug when working with EXTJS recently. The following code renders well in FF 2 and above but not in IE6.</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">var form = new Ext.form.FormPanel({
	baseCls: 'x-plain',
	labelWidth: 140,
	url: 'abc/def.php',
	defaultType: 'textfield',
	items: [{
		fieldLabel: 'Name',
		name: 'name',
		anchor:'100%'  // anchor width by percentage
	}, {
		xtype: 'textarea',
		fieldLabel: 'Description',
		name: 'description',
		anchor: '100% -30'  // bug in IE6
	}]
});
&nbsp;
var window = new Ext.Window({
	title: 'Some Window',
	width: 500, height: 300, 
	layout: 'fit',
	plain: true,
	buttonAlign: 'center',
	items: form
});
&nbsp;
window.show();</pre></div></div>

<p> brian.moeskau  from the EXTJS forums was kind enough to answer this problem. The fix is a piece of code that primes the width of the controls to prevent it from overflowing out of the window/panels. The code is as follows</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">Ext.override(Ext.form.Field, {
    adjustWidth : function(tag, w){
        tag = tag.toLowerCase();
        if(typeof w == 'number' &amp;&amp; !Ext.isSafari){
            if(Ext.isIE &amp;&amp; (tag == 'input' || tag == 'textarea')){
                if(!Ext.isStrict){
                    return this.inEditor ? w : w - 3;
                }
                if(tag == 'input' &amp;&amp; Ext.isStrict){
                    return w - (Ext.isIE6 ? 4 : 1);
                }
                if(tag == 'textarea' &amp;&amp; Ext.isStrict){
                    return w-4;
                }
            }else if(Ext.isOpera &amp;&amp; Ext.isStrict){
                if(tag == 'input'){
                    return w + 2;
                }
                if(tag == 'textarea'){
                    return w-2;
                }
            }
        }
        return w;
    }
});</pre></div></div>

<p>I hope this will solve other people&#8217;s problems too!</p>
]]></content:encoded>
			<wfw:commentRss>http://t.wits.sg/2008/06/17/howto-fix-extjs-textarea-for-ie6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOWTO: Codeigniter, IIS and ISAPI_Rewrite</title>
		<link>http://t.wits.sg/2008/06/17/howto-codeigniter-iis-and-isapi_rewrite/</link>
		<comments>http://t.wits.sg/2008/06/17/howto-codeigniter-iis-and-isapi_rewrite/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 06:25:52 +0000</pubDate>
		<dc:creator>gaweee</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[backend]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[regex]]></category>

		<guid isPermaLink="false">http://t.wits.sg/?p=7</guid>
		<description><![CDATA[Pretty URLs on IIS is possible. Not so much to make it pretty but to make it convenient when testing your system. Its really simple too! Step 1 &#8211; Install ISAPI_Rewrite from Helicon Step 2 &#8211; Configure your ISAPI_Rewrite httpd.ini below is my configuration for a codeigniter virtual directory called firingrange RewriteRule ^/firingrange/(images&#124;css&#124;files&#124;js)(.*)$ /firingrange/webroot/$1$2 [L] [...]]]></description>
			<content:encoded><![CDATA[<p>Pretty URLs on IIS is possible. Not so much to make it pretty but to make it convenient when testing your system. Its really simple too!</p>
<div class="contentblock">
<strong>Step 1 &#8211; Install ISAPI_Rewrite from <a href="http://www.helicontech.com/isapi_rewrite/" target="_blank">Helicon</a></strong>
</div>
<div class="contentblock">
<strong>Step 2 &#8211; Configure your ISAPI_Rewrite httpd.ini</strong><br />
below is my configuration for a codeigniter virtual directory called firingrange</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">RewriteRule ^/firingrange/(images|css|files|js)(.*)$ /firingrange/webroot/$1$2 [L]
RewriteRule ^/firingrange/$ /firingrange/index.php [L]
RewriteRule ^/firingrange/index.php$ /firingrange/index.php [L]
RewriteRule ^/firingrange/index.php?(.*)$ /firingrange/index.php?$1 [L]
RewriteRule ^/firingrange/(\w+).php$ /firingrange/webroot/($1).php [L]
RewriteRule ^/firingrange/(.+)\?(.*)$ /firingrange/index.php?$1&amp;amp;$2 [L]
RewriteRule ^/firingrange/(.*)$ /firingrange/index.php?$1 [L]</pre></div></div>

<p>Just like the mod_rewrite HOWTO, I threw all my static files into webroot folder so that you can access the site via http://t.wits.g/images/myimage.jpg easily. Same goes for css and js.
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://t.wits.sg/2008/06/17/howto-codeigniter-iis-and-isapi_rewrite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

