<?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:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>electric relaxation &#187; Code</title>
	<atom:link href="http://www.electricrelaxation.com/category/code/feed" rel="self" type="application/rss+xml" />
	<link>http://www.electricrelaxation.com</link>
	<description>numba won stunna</description>
	<lastBuildDate>Wed, 13 Apr 2011 02:44:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<!-- podcast_generator="podPress/8.8.10.2" -->
	<copyright>Copyright &#xA9; electric relaxation 2010 </copyright>
	<managingEditor>r@meshdharan.com (electric relaxation)</managingEditor>
	<webMaster>r@meshdharan.com (electric relaxation)</webMaster>
	<image>
		<url>http://www.electricrelaxation.com/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
		<title>electric relaxation &#187; Code</title>
		<link>http://www.electricrelaxation.com</link>
		<width>144</width>
		<height>144</height>
	</image>
	<itunes:subtitle></itunes:subtitle>
	<itunes:summary>numba won stunna</itunes:summary>
	<itunes:keywords></itunes:keywords>
	<itunes:category text="Society &amp; Culture" />
	<itunes:author>electric relaxation</itunes:author>
	<itunes:owner>
		<itunes:name>electric relaxation</itunes:name>
		<itunes:email>r@meshdharan.com</itunes:email>
	</itunes:owner>
	<itunes:block>no</itunes:block>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://www.electricrelaxation.com/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<item>
		<title>How to discover and reclaim &#8216;Other&#8217; space consumed on Jailbroken iPhones</title>
		<link>http://www.electricrelaxation.com/2011/04/12/how-to-discover-and-reclaim-other-space-consumed-on-jailbroken-iphones</link>
		<comments>http://www.electricrelaxation.com/2011/04/12/how-to-discover-and-reclaim-other-space-consumed-on-jailbroken-iphones#comments</comments>
		<pubDate>Wed, 13 Apr 2011 02:44:29 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.electricrelaxation.com/?p=430</guid>
		<description><![CDATA[I have a Jailbroken iPhone 3GS, and I had 5.1GB of space consumed by the &#8216;Other&#8217; category. I eventually managed to figure out where the space was going by making use of the following tools: Macroplant Phone Disk GrandPerspective Pretty simple: Macroplant Phone Disk uses MacFUSE to present the iPhone filesystem natively. GrandPerspective constructs a [...]]]></description>
			<content:encoded><![CDATA[<p>I have a Jailbroken iPhone 3GS, and I had 5.1GB of space consumed by the &#8216;Other&#8217; category. </p>
<p>I eventually managed to figure out where the space was going by making use of the following tools: </p>
<ul>
<li><a href="http://www.macroplant.com/phonedisk/">Macroplant Phone Disk</a></li>
<li><a href="http://grandperspectiv.sourceforge.net/">GrandPerspective</a></li>
</ul>
<p>Pretty simple: Macroplant Phone Disk uses <a href="http://code.google.com/p/macfuse/">MacFUSE</a> to present the iPhone filesystem natively. GrandPerspective constructs a treemap of any directory. So, mount the phone as a disk with Phone Disk, point GrandPerspective at the disk, hit go. It definitely takes a while &#8211; on the order of 20 minutes for my 32GB phone. </p>
<p>Once the treemap was built it was pretty obvious that the space was being consumed by some stray movie files that somehow ended up getting synced to my iPhone. I don&#8217;t remember when or how I put them there, and I forget exactly where they were now, but I believe the folder name was related to some jailbroken media sync app that I had installed at some point. </p>
<p>Note that GrandPerspective is freeware but Phone Disk is a trial with 100MB transfer limit. Fortunately the total amount of metadata GrandPerspective needed to pull down to reconstruct the treemap of the filesystem was only 98MB. Also, prior to GrandPerspective I tried using <a href="http://www.derlien.com/downloads/index.html">Disk Inventory X</a> (also freeware) but it crashed when I pointed it at the iPhone file system, presumably because FUSE filesystems smell different and/or don&#8217;t support whatever disk IOCTL or other bizarre thing Disk Inventory X wants to do? I was surprised, but not enough to actually try to figure out why it didn&#8217;t work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.electricrelaxation.com/2011/04/12/how-to-discover-and-reclaim-other-space-consumed-on-jailbroken-iphones/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable RDP in all Windows versions</title>
		<link>http://www.electricrelaxation.com/2010/08/21/enable-rdp-in-all-windows-versions</link>
		<comments>http://www.electricrelaxation.com/2010/08/21/enable-rdp-in-all-windows-versions#comments</comments>
		<pubDate>Sun, 22 Aug 2010 06:15:10 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.electricrelaxation.com/?p=424</guid>
		<description><![CDATA[My new Dell Zino HD came with Windows 7 Home Premium &#8211; I was too cheap to spring for the $100 upgrade to Windows 7 Professional because I thought Home Premium had RDP. Turns out it doesn&#8217;t, but that&#8217;s easily remedied with this Termsrv.dll patcher. Note that (I think) you have to manually open port [...]]]></description>
			<content:encoded><![CDATA[<p>My new <a href="http://www.dell.com/us/en/home/desktops/inspiron-zino-hd/pd.aspx?refid=inspiron-zino-hd&#038;cs=19&#038;s=dhs">Dell Zino HD</a> came with Windows 7 Home Premium &#8211; I was too cheap to spring for the $100 upgrade to Windows 7 Professional because I thought Home Premium had RDP.</p>
<p>Turns out it doesn&#8217;t, but that&#8217;s easily remedied with this <a href="http://thegreenbutton.com/forums/t/79427.aspx">Termsrv.dll patcher</a>.</p>
<p>Note that (I think) you have to manually open port 3389 in the firewall, assuming it&#8217;s on, for this to work.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.electricrelaxation.com/2010/08/21/enable-rdp-in-all-windows-versions/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix poor A2DP audio quality with Snow Leopard + Nokia BH-905</title>
		<link>http://www.electricrelaxation.com/2010/08/20/420</link>
		<comments>http://www.electricrelaxation.com/2010/08/20/420#comments</comments>
		<pubDate>Fri, 20 Aug 2010 08:58:47 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.electricrelaxation.com/2010/08/20/420</guid>
		<description><![CDATA[I finally had a good enough reason to try pairing my Nokia BH-905 bluetooth headset with my Mac &#8211; I&#8217;m working late tonight, my mom is visiting and is currently asleep in my room and I don&#8217;t want to disturb her with music. I managed to pair the headset but it sounded like crap. Turns [...]]]></description>
			<content:encoded><![CDATA[<p>I finally had a good enough reason to try pairing my Nokia BH-905 bluetooth headset with my Mac &#8211; I&#8217;m working late tonight, my mom is visiting and is currently asleep in my room and I don&#8217;t want to disturb her with music. </p>
<p>I managed to pair the headset but it sounded like crap. Turns out you need to jack up the minimum bitpool setting for audio devices in OS X because the default negotiated with many headsets is wrong or bogus or something:</p>
<p>I tried using the Bluetooth Explorer as detailed <a href="http://scott.dier.name/2009/10/osx-snow-leopard-a2dp.html">here</a>, but I couldn&#8217;t get the settings to persist &#8211; if I closed and reopened the Special Options window, the settings were back to 0. </p>
<p>With more Googling I found out <a href="http://discussions.apple.com/thread.jspa?threadID=2171888&#038;tstart=-1">how to set it</a> using the <strong>defaults</strong> command in a Terminal:</p>
<p><strong>$ defaults write com.apple.BluetoothAudioAgent &#8220;Apple Bitpool Min (editable)&#8221; 50</strong></p>
<p>Both &#8217;40&#8242; and &#8217;50&#8242; work much better than nothing. It seems like &#8217;40&#8242; actually sounds better than &#8217;50&#8242;. Not sure why that would be though maybe forcing the minimum value too high causes the audio codec to forcibly clip in order to conserve buffer space on the device or something? Yes I&#8217;m waving my hands wildly&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.electricrelaxation.com/2010/08/20/420/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Accessing Windows 7 shared files from Leopard</title>
		<link>http://www.electricrelaxation.com/2009/06/11/accessing-windows-7-shared-files-from-leopard</link>
		<comments>http://www.electricrelaxation.com/2009/06/11/accessing-windows-7-shared-files-from-leopard#comments</comments>
		<pubDate>Fri, 12 Jun 2009 06:58:32 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.electricrelaxation.com/?p=364</guid>
		<description><![CDATA[This was a bitch to figure out. It had been working for months, and I have no idea why it broke, but anyway, the tip in this ArsTechnica forum thread did the trick: Start-&#62;Run-&#62;secpol.msc Find &#8220;Network security: Minimum session security for NTLM SSP based (including secure RPC) clients&#8221;, untick all the boxes. Find &#8220;Network security: [...]]]></description>
			<content:encoded><![CDATA[<p>This was a bitch to figure out. It had been working for months, and I have no idea why it broke, but anyway, the tip in <a href="http://episteme.arstechnica.com/eve/forums/a/tpc/f/8300945231/m/816005867931/inc/1">this ArsTechnica forum thread</a> did the trick:</p>
<p><strong>Start-&gt;Run-&gt;secpol.msc</strong></p>
<p>Find &#8220;Network security: Minimum session security for NTLM SSP based (including secure RPC) clients&#8221;, untick all the boxes.</p>
<p>Find &#8220;Network security: LAN Manager authentication level&#8221;, change to &#8220;Send LM &amp; NTLM &#8212; use NTLMv2 session security if negotiated&#8221;.</p>
<p>I fucking hate CIFS/SMB/Samba/whatever-the-fuck. And I hate computer security. What a bunch of bullshit.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.electricrelaxation.com/2009/06/11/accessing-windows-7-shared-files-from-leopard/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Couple half-decent ideas</title>
		<link>http://www.electricrelaxation.com/2009/03/15/couple-half-decent-ideas</link>
		<comments>http://www.electricrelaxation.com/2009/03/15/couple-half-decent-ideas#comments</comments>
		<pubDate>Mon, 16 Mar 2009 00:13:59 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.electricrelaxation.com/?p=354</guid>
		<description><![CDATA[Two ideas for applications that I think I would find useful, though I&#8217;ll probably be too lazy to ever write them: Automatically guided media purchases The basic idea would be to have a service which automatically spends money out of a dedicated/auto-debited account with a preset limit. The funds are spent on a selection of [...]]]></description>
			<content:encoded><![CDATA[<p>Two ideas for applications that I think I would find useful, though I&#8217;ll probably be too lazy to ever write them:</p>
<ol>
<li><strong>Automatically guided media purchases<br />
<span style="font-weight: normal;">The basic idea would be to have a service which automatically spends money out of a dedicated/auto-debited account with a preset limit. The funds are spent on a selection of movies, music, TV shows etc. You could control the ratio of how you spend your dollars and/or how you want your content composed; e.g. $20/mth on stuff my friends liked, $20/mth on what Pitchfork thinks is hot shit, and $20/mth on Amazon recommendations. This makes the most sense to me when combined with actual ownership a la iTunes, but I suppose the selection is really the point so it could be just as useful as a set of filters on top of say Rhapsody. Actually, I think you could do this just for Kindle books, like guided Kindle purchases. I wonder if Amazon has thought of this already.<br />
</span></strong></li>
<li><strong>Automatic lyric quoting via Last.fm/Scrobbling + some lyrics service<br />
<span style="font-weight: normal;">I don&#8217;t know if there are any good free lyrics services out there; I assume there&#8217;s some decent freetard one. So the idea here would be to just have a Facebook app that automatically updates your status with quotes from songs you&#8217;re listening to in realtime. Basically automating what I do with my Facebook status by hand. Yes, I am that lazy.</span></strong></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.electricrelaxation.com/2009/03/15/couple-half-decent-ideas/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exposé for Vista</title>
		<link>http://www.electricrelaxation.com/2008/12/09/expose-for-vista</link>
		<comments>http://www.electricrelaxation.com/2008/12/09/expose-for-vista#comments</comments>
		<pubDate>Tue, 09 Dec 2008 07:07:52 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.electricrelaxation.com/?p=260</guid>
		<description><![CDATA[This is pretty sweet.]]></description>
			<content:encoded><![CDATA[<p><a href="http://blogs.labo-dotnet.com/simon/developments/MyExposeNovember2006CTP.msi">This</a> is pretty sweet.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.electricrelaxation.com/2008/12/09/expose-for-vista/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Someone probably knows the answer to this&#8230;</title>
		<link>http://www.electricrelaxation.com/2008/08/03/someone-probably-knows-the-answer-to-this</link>
		<comments>http://www.electricrelaxation.com/2008/08/03/someone-probably-knows-the-answer-to-this#comments</comments>
		<pubDate>Mon, 04 Aug 2008 00:30:07 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Stump]]></category>

		<guid isPermaLink="false">http://www.electricrelaxation.com/?p=227</guid>
		<description><![CDATA[Do advances in computing technology tend to show up in the consumer space first, or in a corporate environment? Or is there simply no correlation? I guess there are probably all sorts of measurement/range bias issues that render this an academically uninteresting line of inquiry, and perhaps even my bilateral classification system is naive and [...]]]></description>
			<content:encoded><![CDATA[<p>Do advances in computing technology tend to show up in the consumer space first, or in a corporate environment? Or is there simply no correlation? I guess there are probably all sorts of measurement/range bias issues that render this an academically uninteresting line of inquiry, and perhaps even my bilateral classification system is naive and unrealistic (for example, perhaps I should be considering academia as a third distinct grouping).</p>
<p>I find it intriguing &#8211; and somewhat unsettling, since perhaps it indicates a personal rather than a communal shortcoming &#8211; that when I try to categorize a few big trends, I can&#8217;t definitively state or really even recall where some of them showed up first:</p>
<ul>
<li><strong>Web Access</strong> &#8211; did more people first start browsing regularly at home, or in their offices?</li>
<li><strong>E-mail</strong> &#8211; Ok I&#8217;m fairly certain that this was much more prevalent in the workplace before making it into the home.</li>
<li><strong>Mobile messaging and Push E-mail</strong> &#8211; Were BlackBerry devices already prevalent in the enterprise before the SMS explosion? I would have guessed the former, but according to Wikipedia the average mobile user was sending 35 messages a month in 2000, while the first BlackBerry smartphone was released only in 2002 (though their original device was released in 1997. The NPT lawsuit debacle originated in 2000, which gels with my reollection, in that I&#8217;d heard of BlackBerry before graduating college, so I believe the pre-smartphone devices were already quite popular. Wikipedia does confirm that BlackBerry was the first major push e-mail service in the U.S. and it seems quite reasonable to use the BlackBerry as the barometer for the advent of this era in the corporate sector.</li>
<li><strong>Online video</strong> &#8211; I&#8217;m very uninformed about the use of digital video in business; I feel like it&#8217;s increasingly commonplace but I have no idea how mainstream it is &#8211; and I&#8217;m guessing that my work environment is quite atypical and therefore not a useful indicator. Nonetheless, I&#8217;m reasonably certain that movie piracy was the leading-edge of the trend, and that by and large, unidirectional streaming video is still largely a consumer-driven thing. Video conferencing meanwhile seems to be more evenly distributed, though it feels like it&#8217;s still a year or two away from being truly widespread.</li>
</ul>
<p>Ok, so the reason I&#8217;m rambling about this is because it occurs to me that even assuming that the centralized SaaS-form of <a href="http://en.wikipedia.org/wiki/Vdi">VDI</a> makes any kind of sense as a way of doing computing, it&#8217;s still a toss-up as to whether it takes off at home or in the workplace first. Will VDI become mainstream before this Midori Cloud Computing platform from Microsoft shows up on a Dell machine?</p>
<p>I suppose an alternative outcome might be the emergence of a stable partition between consumer and business computing models, reflecting a fundamentally distinct ordering of priorities and acceptable tradeoffs between user experience, security, reliability and flexibility in these two domains &#8211; but I wouldn&#8217;t bet on it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.electricrelaxation.com/2008/08/03/someone-probably-knows-the-answer-to-this/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Pitchfork Best New Music RSS Feed</title>
		<link>http://www.electricrelaxation.com/2008/05/03/pitchfork-best-new-music-rss-feed</link>
		<comments>http://www.electricrelaxation.com/2008/05/03/pitchfork-best-new-music-rss-feed#comments</comments>
		<pubDate>Sun, 04 May 2008 00:06:46 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Stump]]></category>

		<guid isPermaLink="false">http://www.electricrelaxation.com/?p=219</guid>
		<description><![CDATA[I wish I had found this years ago: http://www.pitchforkmedia.com/rss/best_new_music When I get bored or motivated enough I&#8217;m planning on writing a little RSS transformer that transforms this feed into one that sources Mininova. Actually I think that&#8217;s exactly what Yahoo! Pipes is supposed to be for&#8230; Update: Holy fuck, that was easy. I&#8217;m impressed. This [...]]]></description>
			<content:encoded><![CDATA[<p>I wish I had found this years ago:</p>
<p><a href="http://www.pitchforkmedia.com/rss/best_new_music">http://www.pitchforkmedia.com/rss/best_new_music</a></p>
<p>When I get bored or motivated enough I&#8217;m planning on writing a little RSS transformer that transforms this feed into one that sources <a href="http://www.mininova.org">Mininova</a>. Actually I think that&#8217;s exactly what Yahoo! Pipes is supposed to be for&#8230;</p>
<p><strong>Update: </strong>Holy fuck, <a href="http://pipes.yahoo.com/ramesh/pitchforkbestnewmusictorrents">that was easy</a>. I&#8217;m impressed. <a href="http://pipes.yahoo.com/pipes/pipe.run?_id=aOBdbHIZ3RGOn4zn2h2EvQ&amp;_render=rss">This link</a> works in uTorrent.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.electricrelaxation.com/2008/05/03/pitchfork-best-new-music-rss-feed/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BlackBerry Pearl 8130 Vodafone Today Theme OTA</title>
		<link>http://www.electricrelaxation.com/2007/12/16/blackberry-pearl-8130-vodafone-today-theme-ota</link>
		<comments>http://www.electricrelaxation.com/2007/12/16/blackberry-pearl-8130-vodafone-today-theme-ota#comments</comments>
		<pubDate>Mon, 17 Dec 2007 04:43:10 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.electricrelaxation.com/2007/12/16/blackberry-pearl-8130-vodafone-today-theme-ota</guid>
		<description><![CDATA[I recently switched out my BlackBerry yet again; I traded in the 8830 that I used for just under a month in exchange for the new 8130 Pearl on Sprint. I loved my old 8100 Pearl despite the fact that it only lasted a year of abuse at my hands (I doubt any other phone [...]]]></description>
			<content:encoded><![CDATA[<p>I recently switched out my BlackBerry yet again; I traded in the 8830 that I used for just under a month in exchange for the new <a href="http://na.blackberry.com/eng/devices/device-detail.jsp?navId=H0,C101,P625">8130 Pearl</a> on <a href="http://www.sprintpcs.com">Sprint</a>. I loved my old 8100 Pearl despite the fact that it only lasted a year of abuse at my hands (I doubt any other phone would have lasted a month), and the exchange was part of the game plan all along. I had read somewhere that the 8130 would be released before the end of the month, and so I bought an 8830 betting that the 8130 would come out before my 30 day trial expired. Shockingly, this crazy plan actually worked.</p>
<p>The Sprint 8130 is really sweet: GPS, EVDO, Bluetooth DUN, camera with video, external SD card slot, and standard 1/8&#8243; headphone jack.</p>
<p>Anyway, the first thing I do with a BlackBerry (I can say that now that I&#8217;m on my third one) is to unlock the vendor themes via the standard &#8220;delete Vendor.xml and edit BlackBerry.alx&#8221; trick <a href="http://www.blackberryforums.com/media-center/28821-blackberry-alx-edited-files-packaged-theme-installation-4-1-4-2-only.html">described</a> on the <a href="http://www.blackberryforums.com/">BlackBerry forums</a>. This gets me access to the sweet Vodafone theme that <a href="http://www.google.com/search?hl=en&amp;q=vodafone+theme+pearl&amp;btnG=Search">everybody likes</a>.</p>
<p>Unfortunately, the unlock trick also resets BES activation status. I have already set/reset my status three times in the last month: once when I first got the 8830, next after I did the unlock trick for the 8830, and then again when I got the 8130. I was too ashamed to file yet another ticket when the <a href="http://www.blackberryforums.com/general-8100-series-discussion-pearl/108013-new-pearl-8130-os-4-3-0-71-sprint-released.html">new 8130 OS</a> finally became available (access to the OS install package is a prerequisite for performing the unlock).</p>
<p>Fortunately, I figured out a way to install the Vodafone theme OTA without requiring an OS update or re-install of any kind:</p>
<ol>
<li>Install the new OS package.</li>
<li>Navigate to <strong>%PROGRAMFILES%\Common Files\Research In Motion\Shared\Loader Files\<em>&lt;release&gt;</em>\Java</strong>.</li>
<li>Find the theme you want. They&#8217;re named according to type and vendor ID. The Vodafone vendor ID is 120, and the theme I wanted is named <strong>net_rim_theme_120_today_240x260_b.cod</strong>.</li>
<li>Copy the .cod file to a web server, and <a href="http://www.berryreview.com/2007/12/10/faq-how-to-install-a-cod-file-ota-over-the-air/">follow these instructions</a> to create a .jad file to wrap the .cod for OTA installation.</li>
<li>Add the .htaccess file, then point your BlackBerry browser at the .jad URL.</li>
</ol>
<p>So, without further adieu, here&#8217;s a link to install the Vodafone theme for the 8130 Pearl OTA:</p>
<p>[<strong>WARNING: </strong>Don't try this on anything other than an 8130; the .jad is not well formed and you might screw up your phone. I will not be held responsible for any damage you might do to your phone or anything else that happens in your life after you install this thing.]</p>
<p><a href="http://www.electricrelaxation.com/blackberry/ota/8130-vodafone-today.jad">BlackBerry 8130 (Pearl) Vodafone Today</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.electricrelaxation.com/2007/12/16/blackberry-pearl-8130-vodafone-today-theme-ota/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Better aterm transparency</title>
		<link>http://www.electricrelaxation.com/2007/10/24/better-aterm-transparency-using-net_wm_window_opacity-hint</link>
		<comments>http://www.electricrelaxation.com/2007/10/24/better-aterm-transparency-using-net_wm_window_opacity-hint#comments</comments>
		<pubDate>Thu, 25 Oct 2007 02:19:57 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.electricrelaxation.com/2007/10/24/better-aterm-transparency-using-net_wm_window_opacity-hint</guid>
		<description><![CDATA[For the past several years, I&#8217;ve been using aterm as my terminal emulator. The main reason I keep coming back to it is the off-focus fading support (it dims all the terminal content anytime the main window frame loses focus). It&#8217;s possible to implement off-focus fading for any window or class of windows using a [...]]]></description>
			<content:encoded><![CDATA[<p>For the past several years, I&#8217;ve been using <a href="http://www.afterstep.org/aterm.php">aterm</a> as my terminal emulator. The main reason I keep coming back to it is the off-focus fading support (it dims all the terminal content anytime the main window frame loses focus). It&#8217;s possible to implement off-focus fading for any window or class of windows using a Compiz plugin, but it&#8217;s a much bigger PITA than just setting the <strong>aterm*fading</strong> resource in <em>~/.Xdefaults</em>.</p>
<p>Unfortunately, aterm has a couple of limitations. One is that it doesn&#8217;t handle <strong>XK_ISO_Left_Tab</strong>, which is incredibly annoying since it means you can&#8217;t back up in e.g. a bash or VIM completion list. I think this has something to do with changes in when and how <strong>XK_ISO_Left_Tab</strong> gets sent versus a simple shifted-Tab, and I think the whole thing is as usual the fault of motherfucking i18n which I hate. I sent a patch to fix this problem to the aterm maintainer but I never got a response. Perhaps I should try pushing it through Ubuntu instead. Anyway, I digress.</p>
<p>Another limitation, which is the subject of this post, is that aterm&#8217;s transparency is of the cheap hack form where it just reads the window background and blits it to the terminal window. After giving up on gnome-terminal for like the twentieth time this morning, I went back and hacked in slightly better transparency support using the <strong>_NET_WM_WINDOW_OPACITY</strong> hint. Support for this hint in the <a href="http://standards.freedesktop.org/wm-spec/wm-spec-latest.html">EWMH spec</a> was proposed <a href="http://lists.freedesktop.org/archives/xdg/2003-December/001413.html">like three years ago</a>, and for some reason it&#8217;s still not there, but it works in the window managers I care about (<strong>compiz</strong>, <strong>xfwm4</strong>, and <strong>metacity</strong> w/ <strong>xcompmgr</strong>).</p>
<p>So, my new hacked aterm can read a new commandline argument of the form <strong>-tp %</strong>, where<strong> %</strong> is the transparency value (greater than 0 and less than 100). It can also read the same value from a new resource, <strong>aterm*transparency</strong>. It takes this value, converts it into a fractional multiple of the opaque value (<strong>0xffffffff</strong>), and then sets the <strong>_NET_WM_WINDOW_OPACITY</strong> property accordingly (I just copied the code from <strong>xcompmgr</strong>).</p>
<p>I&#8217;m uploading an AMD64 binary that runs on Ubuntu Gutsy. If you&#8217;re running 32-bit, go fuck yourself. No seriously, perhaps if I get more motivated I will build a 32-bit version, and upload packages as well. In the meantime, I&#8217;ll upload the patch too &#8211; it&#8217;s quite simple and it&#8217;s pretty easy to see how you could do this for any program. I&#8217;m also including a gratuitous screenshot that probably contains confidential information that I shouldn&#8217;t be posting on the intarweb.</p>
<p>The main remaining limitation is that this makes the entire aterm window, frame, text, and all, transparent according to the specified percentage. The right thing to do is to use an ARGB visual when creating the background window, so that the text and frame remain opaque. This is what <a href="http://www.freedesktop.org/~keithp/xterm-trans.tar.gz">Keith Packard&#8217;s hacked transparent xterm</a> does. I may give that a shot if I get bored/annoyed by this in the future.</p>
<ul>
<li><a href="http://www.electricrelaxation.com/wp-content/uploads/2007/10/aterm"><strong>aterm (AMD64, Ubuntu Gutsy)</strong></a></li>
<li><a href="http://www.electricrelaxation.com/wp-content/uploads/2007/10/aterm-netwmopacity-trans.patch">Patch to handle aterm*transparent/-tp argument and set _NET_WM_WINDOW_OPACITY</a><strong><br />
</strong></li>
<li><a href="http://www.electricrelaxation.com/wp-content/uploads/2007/10/transparent_aterms.png">Screenshot with some transparent aterm windows</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.electricrelaxation.com/2007/10/24/better-aterm-transparency-using-net_wm_window_opacity-hint/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.534 seconds -->

