<?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>ss &#124; blog &#187; Tips &amp; Tweaks</title>
	<atom:link href="http://blog.siansiew.com/category/tips-tweaks/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.siansiew.com</link>
	<description>Geeky (and non-geeky) ramblings.</description>
	<lastBuildDate>Fri, 07 Oct 2011 06:44:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ubuntu 11.04 fsck/MOTD bug/issue</title>
		<link>http://blog.siansiew.com/2011/10/07/ubuntu-11-04-fsckmotd-bug/</link>
		<comments>http://blog.siansiew.com/2011/10/07/ubuntu-11-04-fsckmotd-bug/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 06:43:39 +0000</pubDate>
		<dc:creator>Benny Chew</dc:creator>
				<category><![CDATA[Coding/Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips & Tweaks]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[fsck]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[MOTD]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu 11.04]]></category>

		<guid isPermaLink="false">http://blog.siansiew.com/?p=308</guid>
		<description><![CDATA[Recently this message popped up on the MOTD of the Ubuntu servers on EC2: *** /dev/xvda1 will be checked for errors at next reboot *** After proceeding to do a fsck and restarting, the message still kept appearing. After some debugging with wk, it apparently was due to a stale fsck-at-reboot file left around causing [...]]]></description>
			<content:encoded><![CDATA[<p>Recently this message popped up on the MOTD of the Ubuntu servers on EC2:</p>
<p><code>*** /dev/xvda1 will be checked for errors at next reboot ***</code></p>
<p>After proceeding to do a fsck and restarting, the message still kept appearing. After some debugging with wk, it apparently was due to a stale fsck-at-reboot file left around causing the message to keep popping up.</p>
<p>Here are the steps I used to make sure they stopped popping up again:</p>
<p><code>sudo touch /forcefsck<br />
sudo shutdown -r now<br />
sudo rm /var/lib/update-notifier/fsck-at-reboot<br />
cd /usr/lib/update-notifier/<br />
sudo ./update-motd-fsck-at-reboot<br />
sudo rm /forcefsck</code></p>
<p>Thanks wk!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.siansiew.com/2011/10/07/ubuntu-11-04-fsckmotd-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redirect HTTP to HTTPS on IIS behind an AWS ELB</title>
		<link>http://blog.siansiew.com/2011/08/28/redirect-http-to-https-on-iis-behind-an-aws-elb/</link>
		<comments>http://blog.siansiew.com/2011/08/28/redirect-http-to-https-on-iis-behind-an-aws-elb/#comments</comments>
		<pubDate>Sun, 28 Aug 2011 01:40:33 +0000</pubDate>
		<dc:creator>Benny Chew</dc:creator>
				<category><![CDATA[Coding/Development]]></category>
		<category><![CDATA[Tips & Tweaks]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[elb]]></category>
		<category><![CDATA[iis]]></category>

		<guid isPermaLink="false">http://blog.siansiew.com/?p=281</guid>
		<description><![CDATA[In recent times I&#8217;ve had to handle the Microsoft stack (.NET) among other things. One of the things I&#8217;ve faced recently was redirecting traffic hitting the application running on IIS behind an AWS Elastic Load Balancer (ELB) from HTTP to HTTPS. Fairly easy on the Linux stacks which had nginx in front as a reverse [...]]]></description>
			<content:encoded><![CDATA[<p>In recent times I&#8217;ve had to handle the Microsoft stack (.NET) among other things. One of the things I&#8217;ve faced recently was redirecting traffic hitting the application running on IIS behind an <a href="http://aws.amazon.com/elasticloadbalancing/" target="_blank">AWS Elastic Load Balancer</a> (ELB) from HTTP to HTTPS. Fairly easy on the Linux stacks which had <a href="http://nginx.org/" target="_blank">nginx</a> in front as a reverse proxy (just add a rewrite rule on your HTTP host to HTTPS), but after tinkering around a bit, finally got the correct rewrite rule working (with the help of IIS7&#8242;s .htaccess conversion utility).</p>
<p>The transform code you would want to stick into your Web.&lt;transform&gt;.config (was for a ASP.NET MVC project):</p>
<pre>    &lt;rewrite xdt:Transform="Insert"&gt;
      &lt;rules&gt;
        &lt;rule name="HTTPS rewrite behind ELB rule" stopProcessing="true"&gt;
          &lt;match url="^(.*)$" ignoreCase="false" /&gt;
          &lt;conditions&gt;
            &lt;add input="{HTTP_X_FORWARDED_PROTO}" pattern="^http$" ignoreCase="false" /&gt;
          &lt;/conditions&gt;
          &lt;action type="Redirect" redirectType="Found" url="https://{SERVER_NAME}{URL}" /&gt;
        &lt;/rule&gt;
      &lt;/rules&gt;
    &lt;/rewrite&gt;</pre>
<p>This assumes you have the <a href="http://www.iis.net/download/urlrewrite" target="_blank">IIS URL Rewrite module</a> installed on your IIS server.</p>
<p>References:</p>
<p><a href="http://www.iis-aid.com/articles/how_to_guides/redirect_http_to_https_iis_7?page=1">http://www.iis-aid.com/articles/how_to_guides/redirect_http_to_https_iis_7?page=1<br />
</a><a href="http://serverfault.com/questions/304621/endless-redirect-loop-with-aws-elb-and-wordpress-site-using-wordpress-https-plugi">http://serverfault.com/questions/304621/endless-redirect-loop-with-aws-elb-and-wordpress-site-using-wordpress-https-plugi<br />
</a><a href="http://docs.amazonwebservices.com/ElasticLoadBalancing/latest/DeveloperGuide/index.html?SvcIntro.html">http://docs.amazonwebservices.com/ElasticLoadBalancing/latest/DeveloperGuide/index.html?SvcIntro.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.siansiew.com/2011/08/28/redirect-http-to-https-on-iis-behind-an-aws-elb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSD tweak utility for Windows</title>
		<link>http://blog.siansiew.com/2011/08/28/ssd-tweak-utility-for-windows/</link>
		<comments>http://blog.siansiew.com/2011/08/28/ssd-tweak-utility-for-windows/#comments</comments>
		<pubDate>Sun, 28 Aug 2011 01:21:35 +0000</pubDate>
		<dc:creator>Benny Chew</dc:creator>
				<category><![CDATA[Tips & Tweaks]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.siansiew.com/?p=285</guid>
		<description><![CDATA[All machines I regularly use are now using SSDs (60GB/120GB OCZ Vertex 2E), and this handy utility has done all the tweaks for me: SSD Tweaker More info on it here and here.]]></description>
			<content:encoded><![CDATA[<p>All machines I regularly use are now using SSDs (60GB/120GB OCZ Vertex 2E), and this handy utility has done all the tweaks for me: <a href="http://elpamsoft.com/Downloads.aspx?Name=SSD%20Tweaker" target="_blank">SSD Tweaker</a></p>
<p>More info on it <a href="http://www.ocztechnologyforum.com/forum/showthread.php?49779-SSD-Tweak-Utility" target="_blank">here</a> and <a href="http://www.tweaktown.com/articles/3116/tweaktown_s_solid_state_drive_optimization_guide/index5.html" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.siansiew.com/2011/08/28/ssd-tweak-utility-for-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ipfilter (blocklist) update</title>
		<link>http://blog.siansiew.com/2009/07/26/ipfilter-blocklist-update/</link>
		<comments>http://blog.siansiew.com/2009/07/26/ipfilter-blocklist-update/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 08:18:21 +0000</pubDate>
		<dc:creator>Benny Chew</dc:creator>
				<category><![CDATA[BitTorrent]]></category>
		<category><![CDATA[General Tech]]></category>
		<category><![CDATA[Tips & Tweaks]]></category>
		<category><![CDATA[blocklist]]></category>
		<category><![CDATA[ipfilter]]></category>

		<guid isPermaLink="false">http://siansiew.com/?p=252</guid>
		<description><![CDATA[There has been update to the ipfilter.dat source which I posted up before (have just updated that post). The previous source was from BISS but the people who maintain the blocklists now publish it at this site. Whether or not the blocklists are of any use is up for debate, and definitely not something I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p>There has been update to the ipfilter.dat source which I <a href="http://siansiew.com/2006/08/14/blocking-bad-data-and-peers-in-bittorrent/" target="_blank">posted up before</a> (have just updated that post). The previous source was from <a href="http://www.bluetack.co.uk/forums/index.php" target="_blank">BISS</a> but the people who maintain the blocklists now publish it at <a href="http://tbg.iblocklist.com/" target="_blank">this site</a>.</p>
<p>Whether or not the blocklists are of any use is up for debate, and definitely not something I&#8217;m going to go into in this post..</p>
<p>via <a href="http://forums.phoenixlabs.org/showthread.php?t=17291" target="_blank">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.siansiew.com/2009/07/26/ipfilter-blocklist-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create iPhone ringtones via iTunes</title>
		<link>http://blog.siansiew.com/2008/10/12/create-iphone-ringtones-via-itunes/</link>
		<comments>http://blog.siansiew.com/2008/10/12/create-iphone-ringtones-via-itunes/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 02:41:17 +0000</pubDate>
		<dc:creator>Benny Chew</dc:creator>
				<category><![CDATA[Tips & Tweaks]]></category>

		<guid isPermaLink="false">http://siansiew.com/?p=231</guid>
		<description><![CDATA[The article title says on Windows, but I think it should work on Mac OS X as well. Link over here.]]></description>
			<content:encoded><![CDATA[<p>The article title says on Windows, but I think it should work on Mac OS X as well. Link over <a href="http://cybernetnews.com/2008/08/21/cybernotes-create-free-iphone-ringtones-using-itunes-in-windows/" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.siansiew.com/2008/10/12/create-iphone-ringtones-via-itunes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iTunes 100% CPU on closing</title>
		<link>http://blog.siansiew.com/2008/10/12/itunes-100-cpu-on-closing/</link>
		<comments>http://blog.siansiew.com/2008/10/12/itunes-100-cpu-on-closing/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 02:32:12 +0000</pubDate>
		<dc:creator>Benny Chew</dc:creator>
				<category><![CDATA[Tips & Tweaks]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[100% cpu]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[nod32]]></category>

		<guid isPermaLink="false">http://siansiew.com/?p=226</guid>
		<description><![CDATA[After I got my iPhone 3G a couple about 2 months ago, I had no other choice but to use iTunes for all the syncing, backups, music etc as Apple wants total control of what you can or can&#8217;t do with its devices (was using YamiPod previously, writeup here). :&#124; My loathing for it got [...]]]></description>
			<content:encoded><![CDATA[<p>After I got my <a href="http://www.apple.com/iphone/" target="_blank">iPhone 3G</a> a couple about 2 months ago, I had no other choice but to use <a href="http://www.apple.com/itunes/" target="_blank">iTunes</a> for all the syncing, backups, music etc as Apple wants total control of what you can or can&#8217;t do with its devices (was using YamiPod previously, writeup <a href="http://spherebox.com/2007/07/09/yamipod-yet-another-ipod-manager/" target="_blank">here</a>). :|</p>
<p>My loathing for it got worse as it didn&#8217;t seem to be closing gracefully on quitting besides causing software restores which all ended up with iTunes.exe taking up 100% CPU. I decided to stop swearing at it and search around for the root cause as this behaviour wasn&#8217;t replicated on my work machine and on colleague&#8217;s variety of machines.</p>
<p>Turns out it wasn&#8217;t iTunes, but the antivirus (<a href="http://www.eset.com/" target="_blank">NOD32</a> 2.7) which wasn&#8217;t playing nice. After adding various iTunes paths to AMON/IMON exclusion lists, there has not been crashes or 100% CPU since (instructions on how to do this <a href="http://training.eset.com/kb/index.php?option=com_kb&amp;Itemid=29&amp;page=articles&amp;articleid=760" target="_blank">here</a>). Guess I was cursing the wrong software but anyhow..</p>
<p>Just a note, this is a fairly belated post as I was having this issue with iTunes 7.x and have since upgraded to 8.0.1 which may no longer require this workaround. ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.siansiew.com/2008/10/12/itunes-100-cpu-on-closing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cross street in Google Maps</title>
		<link>http://blog.siansiew.com/2008/06/16/cross-street-in-google-maps/</link>
		<comments>http://blog.siansiew.com/2008/06/16/cross-street-in-google-maps/#comments</comments>
		<pubDate>Sun, 15 Jun 2008 16:29:06 +0000</pubDate>
		<dc:creator>Benny Chew</dc:creator>
				<category><![CDATA[General Tech]]></category>
		<category><![CDATA[Tips & Tweaks]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://siansiew.com/?p=217</guid>
		<description><![CDATA[I decided to find out if cross streets (intersections) can be easily searched via Google Maps rather than searching for one street and just scrolling around to find the intersection with the other recently, and realised there was a keyword to do that. For e.g., typing a very frequently used rendezvous point into Google Maps: [...]]]></description>
			<content:encoded><![CDATA[<p>I decided to find out if cross streets (intersections) can be easily searched via Google Maps rather than searching for one street and just scrolling around to find the intersection with the other recently, and realised there was a keyword to do that.</p>
<p>For e.g., typing a very frequently used rendezvous point into Google Maps:</p>
<blockquote><p>Swanston St at Bourke St VIC 3000</p></blockquote>
<p>Would give you the intersection of Swanston St and Bourke St (ex-Nike Melbourne). Link to the page <a href="http://maps.google.com.au/maps?f=q&amp;hl=en&amp;geocode=&amp;q=swanston+st+at+bourke+st+vic+3000" target="_blank">here</a>.</p>
<p><a href="http://siansiew.com/wp-content/uploads/2008/06/cross-street.png"><img class="alignnone size-thumbnail wp-image-218" title="Google Maps cross street" src="http://siansiew.com/wp-content/uploads/2008/06/cross-street-150x150.png" alt="" width="150" height="150" /></a></p>
<p>Pretty nifty since it&#8217;s common place for shop lot locations to be listed as &#8216;corner X road and Y road&#8217;.</p>
<p><em>via <a href="http://malektips.com/google_maps_0003.html" target="_blank">MalekTips</a></em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.siansiew.com/2008/06/16/cross-street-in-google-maps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gmail 2.0</title>
		<link>http://blog.siansiew.com/2007/11/11/gmail-20/</link>
		<comments>http://blog.siansiew.com/2007/11/11/gmail-20/#comments</comments>
		<pubDate>Sun, 11 Nov 2007 13:10:56 +0000</pubDate>
		<dc:creator>Benny Chew</dc:creator>
				<category><![CDATA[General Tech]]></category>
		<category><![CDATA[Tips & Tweaks]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[gmail]]></category>

		<guid isPermaLink="false">http://siansiew.com/2007/11/11/gmail-20/</guid>
		<description><![CDATA[An updated version of Gmail was recently rolled out to most users just after IMAP access was released, and I got it pretty early on. However, I somehow got reverted back to the old version a few hours later and never actually figured out why, till now.. Apparently, after I got moved over to the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://mail.google.com/" target="_blank"><img src="http://siansiew.com/wp-content/uploads/2007/11/logo1.gif" alt="Gmail logo" align="left" /></a>An updated version of <a href="http://mail.google.com/" target="_blank">Gmail</a> was recently rolled out to most users just after <a href="http://gmailblog.blogspot.com/2007/10/imap-access-now-available-for-all-users.html" target="_blank">IMAP</a> access was released, and I got it pretty early on. However, I somehow got reverted back to the old version a few hours later and never actually figured out why, till now..</p>
<p>Apparently, after I got moved over to the <a href="http://googlesystem.blogspot.com/2007/10/gmails-new-version-is-now-available.html" target="_blank">new version</a>, I actually switched my language preference in the settings from English (US) to English (UK). :| I sort of left it as it is since then and finally decided to find out the root cause today (after much cursing at how evil it was for me to be given access to the updated version for just a few hours..).</p>
<p>So if you still seem to be stuck in the old version, try the following (was suggested <a href="http://groups.google.com/group/Google-Mail-POP-and-Forwarding-uk/msg/4bb3dfcfa535db67" target="_blank">here</a>):</p>
<ol>
<li>Click &#8216;Settings&#8217; in your Gmail window (top right, close to &#8216;Sign Out&#8217;).</li>
<li>In the drop down for &#8216;Gmail display language&#8217;, change it to &#8216;English (US)&#8217;.</li>
</ol>
<p>Oh well, Gmail is still in beta..</p>
<p>More screenshots of the new version <a href="http://blogoscoped.com/archive/2007-10-29-n47.html" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.siansiew.com/2007/11/11/gmail-20/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More BitTorrent stuff</title>
		<link>http://blog.siansiew.com/2007/10/30/more-bittorrent-stuff/</link>
		<comments>http://blog.siansiew.com/2007/10/30/more-bittorrent-stuff/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 12:11:58 +0000</pubDate>
		<dc:creator>Benny Chew</dc:creator>
				<category><![CDATA[BitTorrent]]></category>
		<category><![CDATA[Tips & Tweaks]]></category>

		<guid isPermaLink="false">http://siansiew.com/2007/10/30/more-bittorrent-stuff/</guid>
		<description><![CDATA[I think the links are kinda old, but anyway.. Bypass any Firewall or throttling ISP with SSH 10 Private BitTorrent Trackers open for signup Both links from TorrentFreak.]]></description>
			<content:encoded><![CDATA[<p>I think the links are kinda old, but anyway..</p>
<ul>
<li><a href="http://torrentfreak.com/bittorrent-over-ssh-071014/" target="_blank">Bypass any Firewall or throttling ISP with SSH</a></li>
<li><a href="http://torrentfreak.com/10-private-trackers-open-for-signup-071020/" target="_blank">10 Private BitTorrent Trackers open for signup</a></li>
</ul>
<p>Both links from <a href="http://torrentfreak.com/" target="_blank">TorrentFreak</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.siansiew.com/2007/10/30/more-bittorrent-stuff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shrinking VMware VMDK files before distribution</title>
		<link>http://blog.siansiew.com/2007/10/29/shrinking-vmware-vmdk-files-before-distribution/</link>
		<comments>http://blog.siansiew.com/2007/10/29/shrinking-vmware-vmdk-files-before-distribution/#comments</comments>
		<pubDate>Mon, 29 Oct 2007 11:55:30 +0000</pubDate>
		<dc:creator>Benny Chew</dc:creator>
				<category><![CDATA[Coding/Development]]></category>
		<category><![CDATA[Tips & Tweaks]]></category>
		<category><![CDATA[virtualisation]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://siansiew.com/2007/10/29/shrinking-vmware-vmdk-files-before-distribution/</guid>
		<description><![CDATA[Recently been researching and testing with VMware images for the deployment of our application at work which turned out to work pretty well (Ubuntu + Java 6 + MySQL + Glassfish). However, one thing which became bothersome was the overgrowing .vmdk images which didn&#8217;t seem to reduce in size even after file deletions were made [...]]]></description>
			<content:encoded><![CDATA[<p>Recently been researching and testing with <a href="http://www.vmware.com/" target="_blank">VMware </a>images for the deployment of our application at work which turned out to work pretty well (Ubuntu + Java 6 + MySQL + Glassfish). However, one thing which became bothersome was the overgrowing .vmdk images which didn&#8217;t seem to reduce in size even after file deletions were made in the virtual disk itself.</p>
<p>Again, Google came to the rescue for this, linking me to <a href="http://h0bbel.p0ggel.org/shrinking-vmdk-files" target="_blank">this site</a> which gave a 2 step process for doing the shrinking. Do note that the instructions are for those who are using Windows as their host OS.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.siansiew.com/2007/10/29/shrinking-vmware-vmdk-files-before-distribution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
