<?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/"
	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/"
	>

<channel>
	<title>Plog</title>
	<atom:link href="http://amk1.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://amk1.wordpress.com</link>
	<description>my desktoplog</description>
	<lastBuildDate>Sat, 31 Dec 2011 05:54:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='amk1.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Plog</title>
		<link>http://amk1.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://amk1.wordpress.com/osd.xml" title="Plog" />
	<atom:link rel='hub' href='http://amk1.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Auto-mount using udev</title>
		<link>http://amk1.wordpress.com/2011/12/31/auto-mount-using-udev/</link>
		<comments>http://amk1.wordpress.com/2011/12/31/auto-mount-using-udev/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 05:54:38 +0000</pubDate>
		<dc:creator>a geek</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://amk1.wordpress.com/?p=165</guid>
		<description><![CDATA[I have an entry for my new shiny USB drive in /etc/fstab. But I like my USB drive to auto-mount when it is plugged in (and unmount when appropriate). Here comes udev. In /etc/udev/rules.d/50-usb.rules: To list the environment variables available for matching in udev, use udevadm monitor --environment<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amk1.wordpress.com&amp;blog=447173&amp;post=165&amp;subd=amk1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have an entry for my new shiny USB drive in <code>/etc/fstab</code>. But I like my USB drive to auto-mount when it is plugged in (and unmount when appropriate). Here comes udev.</p>
<p>In <code>/etc/udev/rules.d/50-usb.rules</code>:<br />
<pre class="brush: bash;">
SUBSYSTEM==&quot;block&quot;, DEVTYPE==&quot;disk&quot;, DEVNAME==&quot;/dev/&quot;, ACTION==&quot;add&quot;, RUN+=&quot;/bin/mount -a&quot;
SUBSYSTEM==&quot;block&quot;, DEVTYPE==&quot;disk&quot;, DEVNAME==&quot;/dev/&quot;, ACTION==&quot;remove&quot;, RUN+=&quot;/bin/umount /dev/%k&quot;
</pre></p>
<p>To list the environment variables available for matching in udev, use <code>udevadm monitor --environment</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amk1.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amk1.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amk1.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amk1.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amk1.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amk1.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amk1.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amk1.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amk1.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amk1.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amk1.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amk1.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amk1.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amk1.wordpress.com/165/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amk1.wordpress.com&amp;blog=447173&amp;post=165&amp;subd=amk1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amk1.wordpress.com/2011/12/31/auto-mount-using-udev/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2f930bd99df8d6c491d9643a137a513?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nan0tube</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing Windows 7 SP1 on dual boot system</title>
		<link>http://amk1.wordpress.com/2011/07/24/installing-windows-7-sp1-on-dual-boot-system/</link>
		<comments>http://amk1.wordpress.com/2011/07/24/installing-windows-7-sp1-on-dual-boot-system/#comments</comments>
		<pubDate>Sun, 24 Jul 2011 04:20:03 +0000</pubDate>
		<dc:creator>a geek</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://amk1.wordpress.com/?p=160</guid>
		<description><![CDATA[I had problems installing win 7 sp1 on the dual boot system which has ubuntu installed. The error was 0x800f0a12, which meant nothing to me. According to source from MS, this was &#8220;due to the automount policy for your machine being set to disable&#8221;. Whatever that is, the solution is simple: 1. Run DISKPART 2. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amk1.wordpress.com&amp;blog=447173&amp;post=160&amp;subd=amk1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had problems installing win 7 sp1 on the dual boot system which has ubuntu installed. The error was 0x800f0a12, which meant nothing to me.</p>
<p>According to source from MS, this was &#8220;due to the automount policy for your machine being set to disable&#8221;. Whatever that is, the solution is simple:</p>
<p>1.  Run DISKPART</p>
<p>2.  automount enable</p>
<p>3.  Restart</p>
<p>4.  Install SP1</p>
<p>Works for me, and it&#8217;s all that matters.</p>
<p><a href="http://blogs.technet.com/b/joscon/archive/2011/02/17/windows-7-2008-r2-service-pack-1-fails-with-0x800f0a12.aspx" target="_blank">Windows 7/2008 R2 Service Pack 1 fails with 0x800f0a12</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amk1.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amk1.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amk1.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amk1.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amk1.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amk1.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amk1.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amk1.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amk1.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amk1.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amk1.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amk1.wordpress.com/160/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amk1.wordpress.com/160/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amk1.wordpress.com/160/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amk1.wordpress.com&amp;blog=447173&amp;post=160&amp;subd=amk1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amk1.wordpress.com/2011/07/24/installing-windows-7-sp1-on-dual-boot-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2f930bd99df8d6c491d9643a137a513?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nan0tube</media:title>
		</media:content>
	</item>
		<item>
		<title>Using doskey to setup alias</title>
		<link>http://amk1.wordpress.com/2011/06/15/using-doskey-to-setup-alias/</link>
		<comments>http://amk1.wordpress.com/2011/06/15/using-doskey-to-setup-alias/#comments</comments>
		<pubDate>Wed, 15 Jun 2011 03:32:15 +0000</pubDate>
		<dc:creator>a geek</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://amk1.wordpress.com/?p=156</guid>
		<description><![CDATA[This is obviously old, but still useful nonetheless. I&#8217;m using it as an alternative to adding a directory to PATH, but there are many more use-cases. The 2 steps below will store the aliases (&#8220;macros&#8221;, in windows speak) in a file and setup the command prompt to load them every time it is started. Put [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amk1.wordpress.com&amp;blog=447173&amp;post=156&amp;subd=amk1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is obviously old, but still useful nonetheless. I&#8217;m using it as an alternative to adding a directory to PATH, but there are many more use-cases. The 2 steps below will store the aliases (&#8220;macros&#8221;, in windows speak) in a file and setup the command prompt to load them every time it is started.</p>
<p>Put the aliases in %userprofile%\mymacros.txt:<br />
<code>VBoxManage="c:\Program Files\Oracle\VirtualBox\VBoxManage.exe" $*</code></p>
<p>In HKEY_CURRENT_USER\SOFTWARE\Microsoft\Command Processor, create/edit a string value &#8220;AutoRun&#8221;:<br />
<code>doskey /macrofile="%userprofile%\mymacros.txt"</code></p>
<p>The aliases (macros&#8230;) should be ready the next time the command prompt is started.</p>
<p><a href="http://technet.microsoft.com/en-us/library/bb490894.aspx" target="_blank">Doskey reference</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amk1.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amk1.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amk1.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amk1.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amk1.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amk1.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amk1.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amk1.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amk1.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amk1.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amk1.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amk1.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amk1.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amk1.wordpress.com/156/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amk1.wordpress.com&amp;blog=447173&amp;post=156&amp;subd=amk1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amk1.wordpress.com/2011/06/15/using-doskey-to-setup-alias/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2f930bd99df8d6c491d9643a137a513?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nan0tube</media:title>
		</media:content>
	</item>
		<item>
		<title>Flexget config file</title>
		<link>http://amk1.wordpress.com/2011/04/09/flexget-config-file/</link>
		<comments>http://amk1.wordpress.com/2011/04/09/flexget-config-file/#comments</comments>
		<pubDate>Sat, 09 Apr 2011 04:21:49 +0000</pubDate>
		<dc:creator>a geek</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://amk1.wordpress.com/?p=134</guid>
		<description><![CDATA[Flexget is a automation tool that helps to grab your torrents as they come out. An example of config.yml: This config will check the given rss feed for new torrents and monitor the directory for existing episodes. Torrents for new episodes from either LOL or 2HD groups that have not been downloaded will be added [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amk1.wordpress.com&amp;blog=447173&amp;post=134&amp;subd=amk1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://flexget.com/">Flexget</a> is a automation tool that helps to grab your torrents as they come out.</p>
<p>An example of <code>config.yml</code>:</p>
<p><pre class="brush: plain;">
presets:
  tv:
    series:
      - House:
        from_group:
          - LOL
          - 2HD
    exists_series:
      - /srv/tmp/download
    deluge: yes

feeds:
  house:
    preset: tv
    rss: http://ezrss.it/search/index.php?show_name=House&amp;show_name_exact=true&amp;mode=rss
</pre></p>
<p>This config will check the given rss feed for new torrents and monitor the directory for existing episodes. Torrents for new episodes from either LOL or 2HD groups that have not been downloaded will be added to deluge, a bittorrent client.</p>
<p>Happy downloading!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amk1.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amk1.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amk1.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amk1.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amk1.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amk1.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amk1.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amk1.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amk1.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amk1.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amk1.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amk1.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amk1.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amk1.wordpress.com/134/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amk1.wordpress.com&amp;blog=447173&amp;post=134&amp;subd=amk1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amk1.wordpress.com/2011/04/09/flexget-config-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2f930bd99df8d6c491d9643a137a513?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nan0tube</media:title>
		</media:content>
	</item>
		<item>
		<title>Speed up Google Chrome using ramdisk</title>
		<link>http://amk1.wordpress.com/2011/01/12/speed-up-google-chrome-using-ramdisk/</link>
		<comments>http://amk1.wordpress.com/2011/01/12/speed-up-google-chrome-using-ramdisk/#comments</comments>
		<pubDate>Wed, 12 Jan 2011 08:06:32 +0000</pubDate>
		<dc:creator>a geek</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://amk1.wordpress.com/?p=139</guid>
		<description><![CDATA[This is likely to be the shortest post yet. Objective is as above. In Linux, run Chrome using: google-chrome --disk-cache-dir="/dev/shm/"<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amk1.wordpress.com&amp;blog=447173&amp;post=139&amp;subd=amk1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is likely to be the shortest post yet. Objective is as above. In Linux, run Chrome using: <code>google-chrome --disk-cache-dir="/dev/shm/"</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amk1.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amk1.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amk1.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amk1.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amk1.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amk1.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amk1.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amk1.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amk1.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amk1.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amk1.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amk1.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amk1.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amk1.wordpress.com/139/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amk1.wordpress.com&amp;blog=447173&amp;post=139&amp;subd=amk1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amk1.wordpress.com/2011/01/12/speed-up-google-chrome-using-ramdisk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2f930bd99df8d6c491d9643a137a513?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nan0tube</media:title>
		</media:content>
	</item>
		<item>
		<title>A 2-column Django-admin form</title>
		<link>http://amk1.wordpress.com/2010/09/23/a-2-column-django-admin-form/</link>
		<comments>http://amk1.wordpress.com/2010/09/23/a-2-column-django-admin-form/#comments</comments>
		<pubDate>Thu, 23 Sep 2010 08:41:44 +0000</pubDate>
		<dc:creator>a geek</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[django-admin]]></category>

		<guid isPermaLink="false">http://amk1.wordpress.com/?p=111</guid>
		<description><![CDATA[Django is great. The bundled admin interface makes it better. But as the number of items on the form gets bigger, the amount of wasted space increases because the layout is single column. Coupled with left alignment on wide-screen monitors, my users usually end their day with a condition we call &#8220;eyeballs misalignment&#8221;. So I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amk1.wordpress.com&amp;blog=447173&amp;post=111&amp;subd=amk1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Django is great. The bundled admin interface makes it better. But as the number of items on the form gets bigger, the amount of wasted space increases because the layout is single column. Coupled with left alignment on wide-screen monitors, my users usually end their day with a condition we call &#8220;eyeballs misalignment&#8221;.</p>
<p>So I improvised and changed the form (and <code>StackedInline</code>) to a 2-up layout. No more &#8220;eyeballs misalignment&#8221;.</p>
<p>The corresponding template for Django 1.2.1 (/contrib/admin/templates/admin/includes/fieldset.html) looks like this, modified lines highlighted:</p>
<p><pre class="brush: xml; highlight: [6,8,9,10,30,31,33]; wrap-lines: false;">
&lt;fieldset class=&quot;module aligned {{ fieldset.classes }}&quot;&gt;
    {% if fieldset.name %}&lt;h2&gt;{{ fieldset.name }}&lt;/h2&gt;{% endif %}
    {% if fieldset.description %}
        &lt;div class=&quot;description&quot;&gt;{{ fieldset.description|safe }}&lt;/div&gt;
    {% endif %}
    &lt;table border=0 width=100%&gt;
    {% for line in fieldset %}
        {% cycle '&lt;tr&gt;' '' %}
        &lt;td width=50%&gt;
        &lt;div style=&quot;border-bottom:0&quot; class=&quot;form-row{% if line.errors %} errors{% endif %}{% for field in line %} {{ field.field.name }}{% endfor %}&quot;&gt;
            {{ line.errors }}
            {% for field in line %}
                &lt;div{% if not line.fields|length_is:&quot;1&quot; %} class=&quot;field-box&quot;{% endif %}&gt;
                    {% if field.is_checkbox %}
                        {{ field.field }}{{ field.label_tag }}
                    {% else %}
                        {{ field.label_tag }}
                        {% if field.is_readonly %}
                            &lt;p&gt;{{ field.contents }}&lt;/p&gt;
                        {% else %}
                            {{ field.field }}
                        {% endif %}
                    {% endif %}
                    {% if field.field.field.help_text %}
                        &lt;p class=&quot;help&quot;&gt;{{ field.field.field.help_text|safe }}&lt;/p&gt;
                    {% endif %}
                &lt;/div&gt;
            {% endfor %}
        &lt;/div&gt;
        &lt;/td&gt;
        {% cycle '' '&lt;/tr&gt;' %}
    {% endfor %}
    &lt;/table&gt;
&lt;/fieldset&gt;
</pre></p>
<p>BUT, here&#8217;s the caveat: <code>TextField</code> will mess up the layout a bit due to CSS. And since I do not use <code>TextField</code> extensively, I prefer to leave it at that (minimal hacking). Please leave a comment if anyone find other field types that do not display/work properly.</p>
<p>p/s: All hail source code posting!<br />
<a href="http://en.support.wordpress.com/code/posting-source-code/">Posting Source Code « Support — WordPress.com</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amk1.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amk1.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amk1.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amk1.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amk1.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amk1.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amk1.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amk1.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amk1.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amk1.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amk1.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amk1.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amk1.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amk1.wordpress.com/111/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amk1.wordpress.com&amp;blog=447173&amp;post=111&amp;subd=amk1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amk1.wordpress.com/2010/09/23/a-2-column-django-admin-form/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2f930bd99df8d6c491d9643a137a513?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nan0tube</media:title>
		</media:content>
	</item>
		<item>
		<title>Scaling the Great Firewall of China</title>
		<link>http://amk1.wordpress.com/2010/05/31/scaling-the-great-firewall-of-china/</link>
		<comments>http://amk1.wordpress.com/2010/05/31/scaling-the-great-firewall-of-china/#comments</comments>
		<pubDate>Mon, 31 May 2010 07:05:44 +0000</pubDate>
		<dc:creator>a geek</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://amk1.wordpress.com/?p=103</guid>
		<description><![CDATA[It&#8217;s not news: China blocks a myriad of web sites which are deemed unsuitable for its citizen. But I&#8217;m not its citizen. On the occasional trips to China I suffer withdrawal symptoms from the lack of facebook, youtube and other random sites. Not to mention the epic distress suffered from keywords/URL filtering and strange results [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amk1.wordpress.com&amp;blog=447173&amp;post=103&amp;subd=amk1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s not news: China blocks a myriad of web sites which are deemed unsuitable for its citizen. But I&#8217;m not its citizen. On the occasional trips to China I suffer withdrawal symptoms from the lack of facebook, youtube and other random sites. Not to mention the epic distress suffered from keywords/URL filtering and strange results for things related to Tibet/Tiananmen (oops!).</p>
<p>VPN is a fine solution, but me being lazy, I prefer using softwares already present on my systems. SSH tunneling seems to fit the bill just nice. OpenSSH outside China (checked), Putty on laptop (checked), ready!</p>
<p>Putty</p>
<ol>
<li>Under Session, enter hostname.</li>
<li>Under Connection &gt; SSH &gt; Tunnels, enter source port, select &#8216;Dynamic&#8217; and click &#8216;Add&#8217;.</li>
<li>Select &#8216;Open&#8217; and log in with username and password.</li>
<li>Halfway done; leave the window open.</li>
</ol>
<p>OpenSSH (for *nix only)</p>
<ol>
<pre>ssh -C2qTnN -D source_port_number username@remote_host.com</pre>
</ol>
<p>Browser (<em>edit:</em> only Firefox at the moment)</p>
<ol>
<li>Generally, look under options/preference &gt; network &gt; proxy to enter the address &#8216;localhost&#8217; for SOCKS5 proxy using the source port number chosen.</li>
<li><em>edit:</em> (For Firefox) Enter <code>about:config</code> in the address bar, go (and promise you&#8217;ll be careful), enter <code>network.proxy.socks_remote_dns</code> in the filter bar and set the value to <code>true</code>.</li>
<li>Surf on past the Great Firewall of China!</li>
</ol>
<p>China happens to be the unfortunate example; insert country-that-does-funky-things-to-network-traffic here.</p>
<p><em>edit:</em> Among the mainstream browsers, only Firefox allows remote DNS resolution via SOCKS proxy right now.</p>
<p><em>edit:</em> Empirically, setting <code>keepalive</code> to 2 seconds on client-side seems to improve connectivity (China).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amk1.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amk1.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amk1.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amk1.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amk1.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amk1.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amk1.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amk1.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amk1.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amk1.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amk1.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amk1.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amk1.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amk1.wordpress.com/103/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amk1.wordpress.com&amp;blog=447173&amp;post=103&amp;subd=amk1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amk1.wordpress.com/2010/05/31/scaling-the-great-firewall-of-china/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2f930bd99df8d6c491d9643a137a513?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nan0tube</media:title>
		</media:content>
	</item>
		<item>
		<title>Latest Firefox incompatible with VMware Server</title>
		<link>http://amk1.wordpress.com/2010/01/25/latest-firefox-incompatible-with-vmware-server/</link>
		<comments>http://amk1.wordpress.com/2010/01/25/latest-firefox-incompatible-with-vmware-server/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 03:02:18 +0000</pubDate>
		<dc:creator>a geek</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[rant]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://amk1.wordpress.com/2010/01/25/latest-firefox-incompatible-with-vmware-server/</guid>
		<description><![CDATA[This is a complaint post. The latest firefox update to version 3.6 prevented access to VMware Server 2.0.2. It will first load an empty page where a login prompt is expected, and subsequent refresh is greeted by &#8220;The connection was reset&#8221;. Hold off the firefox updates if you still want to use the webaccess interface [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amk1.wordpress.com&amp;blog=447173&amp;post=101&amp;subd=amk1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a complaint post.</p>
<p>The latest firefox update to version 3.6 prevented access to VMware Server 2.0.2. It will first load an empty page where a login prompt is expected, and subsequent refresh is greeted by &#8220;The connection was reset&#8221;.</p>
<p>Hold off the firefox updates if you still want to use the webaccess interface (3.5.7 works). Or try an alternate browser.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amk1.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amk1.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amk1.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amk1.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amk1.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amk1.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amk1.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amk1.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amk1.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amk1.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amk1.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amk1.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amk1.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amk1.wordpress.com/101/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amk1.wordpress.com&amp;blog=447173&amp;post=101&amp;subd=amk1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amk1.wordpress.com/2010/01/25/latest-firefox-incompatible-with-vmware-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2f930bd99df8d6c491d9643a137a513?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nan0tube</media:title>
		</media:content>
	</item>
		<item>
		<title>Loading symbols in IDA Pro</title>
		<link>http://amk1.wordpress.com/2009/11/26/loading-symbols-in-ida-pro/</link>
		<comments>http://amk1.wordpress.com/2009/11/26/loading-symbols-in-ida-pro/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 14:47:41 +0000</pubDate>
		<dc:creator>a geek</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://amk1.wordpress.com/?p=95</guid>
		<description><![CDATA[IDA Pro has included symbol loading facility some time back. But different installations had yield different results; sometimes symbol loading works, sometimes it didn&#8217;t. This has led me to scratch my head for an extended period of time until now. What happened is when IDA ask the following: IDA Pro has determined that the input [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amk1.wordpress.com&amp;blog=447173&amp;post=95&amp;subd=amk1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>IDA Pro has included symbol loading facility some time back. But different installations had yield different results; sometimes symbol loading works, sometimes it didn&#8217;t. This has led me to scratch my head for an extended period of time until now.</p>
<p>What happened is when IDA ask the following:</p>
<blockquote><p>IDA Pro has determined that the input file was linked with debug information. Do you want to look for the corresponding PDB file at the local symbol store and the Microsoft Symbol Server?</p></blockquote>
<p>it made use of its dbghelp.dll and symsrv.dll to load the symbols. We are supposed to accept Microsoft&#8217;s terms for using their symbols, but since symsrv.dll is used directly by the plugin the prompt to accept the terms is not displayed, the license cannot be accepted, and hence the symbol loading fails.</p>
<p>The solution is to include an empty symsrv.yes file alongside symsrv.dll in IDA&#8217;s directory to indicate that we&#8217;d gladly accept the terms that never appear.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amk1.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amk1.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amk1.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amk1.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amk1.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amk1.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amk1.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amk1.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amk1.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amk1.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amk1.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amk1.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amk1.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amk1.wordpress.com/95/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amk1.wordpress.com&amp;blog=447173&amp;post=95&amp;subd=amk1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amk1.wordpress.com/2009/11/26/loading-symbols-in-ida-pro/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2f930bd99df8d6c491d9643a137a513?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nan0tube</media:title>
		</media:content>
	</item>
		<item>
		<title>Generate Virtual Machine Shortcut for ESXi 4</title>
		<link>http://amk1.wordpress.com/2009/08/26/generate-virtual-machine-shortcut-for-esxi-4/</link>
		<comments>http://amk1.wordpress.com/2009/08/26/generate-virtual-machine-shortcut-for-esxi-4/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 07:53:49 +0000</pubDate>
		<dc:creator>a geek</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://amk1.wordpress.com/?p=87</guid>
		<description><![CDATA[There are many couple of things I liked in VMware Server 2, one of them being the ability to create desktop shortcuts to a VM. Simple things like this are just taken for granted, until I tried the new hypervisor ESXi 4. Time to hit the search engine! (I refuse to call Google a friend, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amk1.wordpress.com&amp;blog=447173&amp;post=87&amp;subd=amk1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are many couple of things I liked in VMware Server 2, one of them being the ability to create desktop shortcuts to a VM. Simple things like this are just taken for granted, until I tried the new hypervisor ESXi 4. Time to hit the search engine! (I refuse to call Google a <em>friend</em>, the cheesy part being least of my concern)</p>
<p><a href="http://dajoni.wordpress.com/2009/06/04/shortcut-to-console-on-vms-iin-esxi/">Someone</a> apparently had the same problem (The internet is a great counselor; it provides relief to grief by telling you that someone out there shares the same fate as you) and gave a solution. For this we need VMware Remote Console from either Workstation or Server; I only attempted this with Server though.</p>
<ol>
<li>Create a shortcut to <code>vmware-vmrc.exe</code> either by selecting &#8220;Generate Virtual Machine Shortcut&#8221; in Server&#8217;s web UI or creating it manually.</li>
<li>Get the path to the vmx file. In vSphere Client it&#8217;s Inventory &gt; Virtual Machine &gt; Edit Settings&#8230; &gt; Options under Virtual Machine Configuration File.</li>
<li>Append arguments to the shortcut in this format:
<pre>&lt;path to vmware-vmrc.exe&gt; -h esxihost -u username -p password -m &lt;path to vmx&gt;</pre>
</li>
</ol>
<p>Of course we can leave out the -u and -p options for interactive authentication. For the record, mine look like this:</p>
<p><code>C:\Users\root\AppData\Roaming\Mozilla\Firefox\Profiles\646a7374.default\extensions\VMwareVMRC@vmware.com\plugins\vmware-vmrc.exe -h 192.168.1.220 -m "[datastore] Ubuntu/Ubuntu.vmx"</code></p>
<p>Edit: There is a vmware-vmrc.exe, e.x.p build-158248, included with VMware vSphere Client (C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\4.0) but I could not get it to work using the arguments given above. If anyone managed to do it (without VMware vSphere Client running) do drop a message.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amk1.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amk1.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amk1.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amk1.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amk1.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amk1.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amk1.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amk1.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amk1.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amk1.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amk1.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amk1.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amk1.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amk1.wordpress.com/87/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amk1.wordpress.com&amp;blog=447173&amp;post=87&amp;subd=amk1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amk1.wordpress.com/2009/08/26/generate-virtual-machine-shortcut-for-esxi-4/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2f930bd99df8d6c491d9643a137a513?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nan0tube</media:title>
		</media:content>
	</item>
	</channel>
</rss>
