<?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>Sublime Porte</title>
	<atom:link href="http://sublimeporte.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://sublimeporte.info</link>
	<description>Open Source Advocate</description>
	<lastBuildDate>Wed, 07 Jul 2010 22:16:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>XP3eSD</title>
		<link>http://sublimeporte.info/2010/07/01/58/</link>
		<comments>http://sublimeporte.info/2010/07/01/58/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 10:45:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[3eportal]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[eeePC]]></category>

		<guid isPermaLink="false">http://sublimeporte.info/?p=58</guid>
		<description><![CDATA[This is a small utility to modify a Windows installation CD so that it can be installed onto an SD card (eg. for use in your SSD-based netbooks with little onboard storage). You just need to copy the contents of your CD to your hard drive, then run the utility and voila it will produce [...]]]></description>
			<content:encoded><![CDATA[<p>This is a small utility to modify a Windows installation CD so that it can be installed onto an SD card (eg. for use in your SSD-based netbooks with little onboard storage). You just need to copy the contents of your CD to your hard drive, then run the utility and voila it will produce an iso ready to be burned to CD for installing Windows XP onto your computer so that it can then transferred to an SD card. The installation instructions are geared towards the Asus EeePC.</p>
<p><img src="/wp-content/uploads/2010/07/xp3esd.jpg" alt="" /></p>
<p><span id="more-58"></span></p>
<p>This how-to is based on the one <a href="http://forum.eeeuser.com/viewtopic.php?id=1433" target="_blank">here</a> but instead the first 12 or so steps are replaced by a little utility that can modify all of the required Windows install files for you.</p>
<p>Note: This process will wipe all data from your 3epc, backup any personal files you want to keep.</p>
<p>Requirements</p>
<ul>
<li>PC running Windows XP/2000 with a CD/DVD burner.</li>
<li>USB Flashdrive (Or some way to transfer files to the 3epc once Windows is installed)</li>
<li>SD Card, a fast SDHC is recommended of at least 2GB.</li>
<li>XP3eSD Utility</li>
<li>Hitachi Microdrive Filter Drivers</li>
<li><a href="http://partedmagic.com/" target="_blank">Partedmagic</a> (or another bootable CD with disk cloning software)</li>
<li>Windows XP CD (SP2 Only Tested, may work with  others)</li>
<li>Asus Eee PC (Of course!!)</li>
</ul>
<p>Instructions:</p>
<ol>
<li>Copy all files from your XP Install CD to a folder on your Hard Drive</li>
<li>Download the <a href="/wp-content/uploads/2010/07/xp3esd.exe">XP3eSD utility</a> and run it to create a new install CD capable of installing Windows to boot off the SD card reader</li>
<li>Boot your 3epc from the CD made in step 2</li>
<li>Install Windows onto a FAT partition, deleting all the existing partitions</li>
<li>When windows boots for the first time turn off the swap file, system restore, and the screensaver.</li>
<li>Then stick your USB thumb drive into the EEE with the Hitachi Microdrive Filter.</li>
<li>Next copy the files from your thumb drive to the desktop and then properly remove the thumb drive.</li>
<li>Unzip the microdrive files to a folder on the desktop. And Insert your SDHC Card into the EEE.</li>
<li>You need to then Hit Start go to run, and type regedit. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USBSTOR\<br />
Inside that you should find a directory called something like Disk&amp;Ven_USB2.0&amp;Prod_CardReader_SD0&amp;Rev_0100. Open it. Inside that you should find another directory wich is just a bunch of numbers. Open it. In the right pane you should see a key called “Hardware ID” Right click on it, and select modify. It should list about 7 lines of text. Copy ONLY the first line to the clipboard. Hit cancel, close regedit.</li>
<li>Open cfadisk.inf in the directory you unzipped the microdrive filter to. Edit the section called [cfadisk_device] so that rather than containing 11 lines, just have one line. The line begins with: %MicroDrive_devdesc% = cfadisk_install,<br />
After the comma, hit ctrl V to paste what you coppied from the registry into the file then save the file.</li>
<li>Go to Device manager. Under disk drives, you should see SiliconMotion and USB2.0 Card Reader. Right click on the card reader and click update driver. Direct the driver updater window to the Hitachi driver you just edited. It won’t detect the driver automatically, you have to specifty that your supplying the disk for the hardware and force it to use the driver.</li>
<li>Reboot using the Partedmagic CD or USB Flashdrive.</li>
<li>Create a FAT32 partition on the SD card, same size as the one on the SSD in your 3epc</li>
<li>Use &#8216;fdisk -l&#8217; to find out the partition names of your SSD and SD.</li>
<li>Type this command into a prompt: &#8216;dd  if=/dev/sda1 of=/dev/sdb1&#8242;  When it finishes (it will take some time) type this command: &#8216;dd if=/dev/sda of=/dev/sdb bs=512 count=1&#8242; (Note: If fdisk reported your SSD and SD as different than sda and sdb respectively, you must change that in the dd commands, if unsure ask in the support forums)</li>
<li>When it finishes the task is complete, reboot and select to boot from the card reader</li>
<li>Re-image the SSD of your 3epc with your restore DVD or USB.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://sublimeporte.info/2010/07/01/58/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Google Translate in Python</title>
		<link>http://sublimeporte.info/2009/08/02/google-translate-in-python/</link>
		<comments>http://sublimeporte.info/2009/08/02/google-translate-in-python/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 23:53:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[languages]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[translation]]></category>

		<guid isPermaLink="false">http://sublimeporte.info/?p=28</guid>
		<description><![CDATA[I was looking around for an example of how to access Google&#8217;s Translation services from Python, and all the examples I found seemed too bloated to me, so I decided to write my own, and managed it in just a few lines of code. Perhaps the Ajax API didn&#8217;t exist when others wrote theirs, but [...]]]></description>
			<content:encoded><![CDATA[<p>I was looking around for an example of how to access Google&#8217;s Translation services from Python, and all the examples I found seemed too bloated to me, so I decided to write my own, and managed it in just a few lines of code. Perhaps the Ajax API didn&#8217;t exist when others wrote theirs, but it&#8217;s certainly much easier now.</p>
<p>So here it is, <a href="http://sublimeporte.info/wp-content/uploads/2009/08/gtrans.zip">gtrans.py</a>:</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">#!/usr/bin/env python</div>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;"># author: sublime@3euser.com</div>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;"># usage: gtrans &lt;from_lang&gt; &lt;to_lang&gt; &lt;text&gt;</div>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">import sys</div>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">import urllib</div>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">url = &#8216;http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&amp;q=&#8217;+urllib.quote(&#8216; &#8216;.join(sys.argv[3:]))+&#8217;&amp;langpair=&#8217;+sys.argv[1]+&#8217;%7C&#8217;+sys.argv[2]</div>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;"># Google returns the result string in exactly the same format as a python dictionary, just need to escape &#8216;null&#8217; values.</div>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">transtext = eval(urllib.urlopen(url).read().replace(&#8216;null,&#8217;, &#8216;&#8221;",&#8217;))</div>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">if transtext['responseData']:</div>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;"><span style="white-space: pre;"> </span>print &#8220;\n&#8221;, transtext['responseData']['translatedText'], &#8220;\n&#8221;</div>
<p>`
<pre class="brush: python">url = &#039;http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&amp;q=&#039;+urllib.quote(&#039; &#039;.join(sys.argv[3:]))+&#039;&amp;langpair=&#039;+sys.argv[1]+&#039;%7C&#039;+sys.argv[2]

transtext = eval(urllib.urlopen(url).read().replace(&#039;null,&#039;, &#039;&quot;&quot;,&#039;))

if transtext[&#039;responseData&#039;]:
print &quot;\n&quot;, transtext[&#039;responseData&#039;][&#039;translatedText&#039;], &quot;\n&quot;</pre>
<p>`</p>
]]></content:encoded>
			<wfw:commentRss>http://sublimeporte.info/2009/08/02/google-translate-in-python/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Google Wave</title>
		<link>http://sublimeporte.info/2009/07/30/google-wave/</link>
		<comments>http://sublimeporte.info/2009/07/30/google-wave/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 14:28:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Google Wave]]></category>
		<category><![CDATA[wave]]></category>

		<guid isPermaLink="false">http://sublimeporte.info/?p=17</guid>
		<description><![CDATA[I just received my Google Wave Developer Sandbox account today, and so I&#8217;ve spent a good part of the evening playing around with it, finding my bearings in the interface, and working out how it all works. So far it looks like a very nicely integrated communication system, with a lot of API access to [...]]]></description>
			<content:encoded><![CDATA[<p>I just received my Google Wave Developer Sandbox account today, and so I&#8217;ve spent a good part of the evening playing around with it, finding my bearings in the interface, and working out how it all works. So far it looks like a very nicely integrated communication system, with a lot of API access to ensure it develops rapidly. There&#8217;s quite a few bots already running, for code syntax highlighting, for blogging, for starting discussion groups and a whole swath of other things.</p>
<p>Here is a screenshot of a wave:</p>
<div id="attachment_21" class="wp-caption alignnone" style="width: 160px"><a href="http://sublimeporte.info/wp-content/uploads/2009/07/wave_tips.png"><img class="size-thumbnail wp-image-21" title="wave_tips" src="http://sublimeporte.info/wp-content/uploads/2009/07/wave_tips-150x150.png" alt="Wave hints &amp; tips" width="150" height="150" /></a><p class="wp-caption-text">Wave hints &amp; tips</p></div>
<p>This wave is a collection of hints and tips on how to get started using Wave, and is a really handy FAQ to get things rolling once you&#8217;ve got your account setup.</p>
<p>And here is a shot of the entire interface for Wave, with a wave open that demos some of the stuff that can be embedded into a wave, in this case Google Maps.</p>
<div id="attachment_23" class="wp-caption alignnone" style="width: 160px"><a href="http://sublimeporte.info/wp-content/uploads/2009/07/wave_interface.jpg"><img class="size-thumbnail wp-image-23" title="wave_interface" src="http://sublimeporte.info/wp-content/uploads/2009/07/wave_interface-150x150.jpg" alt="Google Wave interface" width="150" height="150" /></a><p class="wp-caption-text">Google Wave interface</p></div>
<p>As far as browser support goes, I&#8217;ve mostly been using it in Chromium (3.0.196.0), where it seems to work best (Surprise Surprise). It didn&#8217;t even recognise Firefox 3.5 as being a browser capable of handling Wave for some reason, but 3.0.11 was fine. The experience is a little laggy, but that could just be because it&#8217;s only a preview implementation, and therefore is probably not well distributed (like most other Google services usually are).</p>
]]></content:encoded>
			<wfw:commentRss>http://sublimeporte.info/2009/07/30/google-wave/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ultralight text viewer</title>
		<link>http://sublimeporte.info/2009/07/25/textview/</link>
		<comments>http://sublimeporte.info/2009/07/25/textview/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 14:47:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[genie]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://sublimeporte.info/?p=1</guid>
		<description><![CDATA[textview is my first application written in Genie, a python-like language which is converted into C and then compiled as a normal C program.]]></description>
			<content:encoded><![CDATA[<p>textview is my first application written in <a href="http://live.gnome.org/Genie" target="_blank">Genie</a>, a python-like language which is converted into C and then compiled as a normal C program. The language is cross-platform also, and I have compiled textview on Windows just to prove it!</p>
<p>Although I think there&#8217;s more than enough text editors available for Linux, I was unable to find a really lightweight text viewer that could also perform basic editing functions. Previously I used leafpad or gedit for this purpose, but even that is overkill, since most of the time I just view Readme files etc. which don&#8217;t need syntax highlighting, vast arrays of menu options or dialogs popping up asking me if I want to save etc.</p>
<p>Be warned that textview does not have any undo or backup features, and probably never will. It&#8217;s primarily for use as a viewer, not an editor. To enter edit mode, press escape, to return to view-only mode press escape again. To save any changes, press &#8220;w&#8221; in view-only mode.</p>
<h3><span style="text-decoration: underline;"><strong>Downloads</strong></span></h3>
<p><span style="text-decoration: underline;"><strong><br />
</strong></span></p>
<p><strong><span style="font-weight: normal; -webkit-text-decorations-in-effect: none; font-size: 13px;"><a href="../wp-content/uploads/2009/07/textview_0.1.deb">textview_0.1.deb (deb package)</a></span></strong></p>
<p><strong><span style="font-weight: normal; -webkit-text-decorations-in-effect: none; font-size: 13px;"><a href="/wp-content/uploads/2009/07/textview-windows.zip">textview-windows.zip (compiled for Windows)</a></span></strong></p>
<p><strong><span style="font-weight: normal; -webkit-text-decorations-in-effect: none; font-size: 13px;">You will also need to download <a href="http://gtk-win.sourceforge.net/home/index.php/en/Home" target="_blank">GTK for windows</a> to run this.</span></strong></p>
<p><a href="http://sublimeporte.info/wp-content/uploads/2009/07/textview.gs">textview.gs (source code)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sublimeporte.info/2009/07/25/textview/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

