<?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>codehunk</title>
	<atom:link href="http://codehunk.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://codehunk.wordpress.com</link>
	<description>the way i see it.......</description>
	<lastBuildDate>Sat, 28 Nov 2009 03:09:10 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='codehunk.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/bf6177718ee96efc0d86cdd7a05d087f?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>codehunk</title>
		<link>http://codehunk.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://codehunk.wordpress.com/osd.xml" title="codehunk" />
		<item>
		<title>Fix: cannot open display: :0.0</title>
		<link>http://codehunk.wordpress.com/2009/11/28/fix-cannot-open-display-0-0/</link>
		<comments>http://codehunk.wordpress.com/2009/11/28/fix-cannot-open-display-0-0/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 03:09:10 +0000</pubDate>
		<dc:creator>janmejay</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[upgrade-problems]]></category>
		<category><![CDATA[MIT-MAGIC-COOKIE-1]]></category>
		<category><![CDATA[NetworkManager]]></category>
		<category><![CDATA[Xauthority]]></category>
		<category><![CDATA[xorg]]></category>

		<guid isPermaLink="false">http://codehunk.wordpress.com/?p=318</guid>
		<description><![CDATA[Off late I noticed X applications on my Gentoo installation failing to launch in gnome sessions unless launched within first few seconds. It didn&#8217;t seem easily reproducible so it took me a few xdm and os restarts to nail the actual problem.
Problem:
NetworkManager changes the hostname after connecting to wireless network. However, it doesn&#8217;t update xauth [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codehunk.wordpress.com&blog=1587745&post=318&subd=codehunk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Off late I noticed X applications on my Gentoo installation failing to launch in gnome sessions unless launched within first few seconds. It didn&#8217;t seem easily reproducible so it took me a few xdm and os restarts to nail the actual problem.</p>
<p><strong>Problem:</strong><br />
NetworkManager changes the hostname after connecting to wireless network. However, it doesn&#8217;t update xauth with the new hostname, which means .Xauthority file is no longer valid once the hostname is changed, and attempts to launch applications fail with &#8216;no protocol specified/cannot open display&#8217; messages.</p>
<p><strong>Fix:</strong><br />
In my case, i believe, &#8216;etc-update&#8217; was the culprit. Fix is to update /etc/conf.d/hostname with the desired hostname, which is apparently honored by NetworkManager. Once HOSTNAME is set in the conf-file, and OS is rebooted, &#8216;xhost list&#8217; can be used to validate the .Xauthority contents and hostname can be matched. X applications should start without any trouble.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codehunk.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codehunk.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codehunk.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codehunk.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codehunk.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codehunk.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codehunk.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codehunk.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codehunk.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codehunk.wordpress.com/318/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codehunk.wordpress.com&blog=1587745&post=318&subd=codehunk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://codehunk.wordpress.com/2009/11/28/fix-cannot-open-display-0-0/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a2cf57e4c0ab471f97fe202d4b98e96e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janmejay</media:title>
		</media:content>
	</item>
		<item>
		<title>Fix: &#8216;xdm&#8217; launch making laptop fans roar</title>
		<link>http://codehunk.wordpress.com/2009/11/25/fix-xdm-launch-making-laptop-fans-roar/</link>
		<comments>http://codehunk.wordpress.com/2009/11/25/fix-xdm-launch-making-laptop-fans-roar/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 06:04:21 +0000</pubDate>
		<dc:creator>janmejay</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[problems]]></category>
		<category><![CDATA[upgrade-problems]]></category>
		<category><![CDATA[Dell]]></category>
		<category><![CDATA[fan speed]]></category>
		<category><![CDATA[bios upgrade]]></category>
		<category><![CDATA[noisy fans]]></category>
		<category><![CDATA[xdm]]></category>
		<category><![CDATA[gdm]]></category>
		<category><![CDATA[x session start]]></category>
		<category><![CDATA[nvidia]]></category>

		<guid isPermaLink="false">http://codehunk.wordpress.com/?p=310</guid>
		<description><![CDATA[Problem:
Recently Gentoo x86 profile 10.0 pushed x11-drivers/nvidia-drivers version 185.18.36, which made &#8216;xdm&#8217; launch on my laptop(Dell D630 Latitude) really noisy. First few minutes of X session on my box started to push fan to the limit making it unbearable.
Fix:
Some digging up on the web revealed it is a known Dell bios bug, and has been [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codehunk.wordpress.com&blog=1587745&post=310&subd=codehunk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Problem:</strong><br />
Recently Gentoo x86 profile 10.0 pushed x11-drivers/nvidia-drivers version 185.18.36, which made &#8216;xdm&#8217; launch on my laptop(Dell D630 Latitude) really noisy. First few minutes of X session on my box started to push fan to the limit making it unbearable.</p>
<p><strong>Fix:</strong><br />
Some digging up on the web revealed it is a known Dell bios bug, and has been fixed in upstream.  So, the solution is to upgrade bios to latest available version.</p>
<p><strong>Steps to upgrade:</strong><br />
Install &#8216;libsmbios&#8217;:<br />
<code><br />
sudo emerge --sync<br />
sudo emerge libsmbios<br />
</code><br />
&#8230;and follow further instructions here: <a href="http://linux.dell.com/wiki/index.php/Tech/libsmbios_dellBiosUpdate">http://linux.dell.com/wiki/index.php/Tech/libsmbios_dellBiosUpdate</a> (this page has steps to download updated bios and install it using dellBiosUpdate (a15 is the latest available release at the time of writing, and fixed the problem for me))(Ignore distribution specific instructions).</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codehunk.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codehunk.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codehunk.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codehunk.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codehunk.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codehunk.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codehunk.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codehunk.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codehunk.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codehunk.wordpress.com/310/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codehunk.wordpress.com&blog=1587745&post=310&subd=codehunk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://codehunk.wordpress.com/2009/11/25/fix-xdm-launch-making-laptop-fans-roar/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a2cf57e4c0ab471f97fe202d4b98e96e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janmejay</media:title>
		</media:content>
	</item>
		<item>
		<title>Propritory software&#8230; such a pain</title>
		<link>http://codehunk.wordpress.com/2009/10/19/propritory-software-such-a-pain/</link>
		<comments>http://codehunk.wordpress.com/2009/10/19/propritory-software-such-a-pain/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 07:03:38 +0000</pubDate>
		<dc:creator>janmejay</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[customiation]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[data sharing]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[GNU]]></category>
		<category><![CDATA[interoperatability]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[shared media]]></category>
		<category><![CDATA[Snow Leopard]]></category>

		<guid isPermaLink="false">http://codehunk.wordpress.com/?p=284</guid>
		<description><![CDATA[I recently got my 1.5 TB external storage(usb) unit, which i had planed to use as a shared datastore, between:

 my laptop(Dell D630)(usually runs Gentoo, sometimes Debian-Lenny)
 Sweta(my wife)&#8217;s laptop(MacBook Black running OS X Snow Leopard)
 our desktop at home (runs Ubuntu(as of now), which im planning to move to Lenny too, as Ubuntu is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codehunk.wordpress.com&blog=1587745&post=284&subd=codehunk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I recently got my 1.5 TB external storage(usb) unit, which i had planed to use as a shared datastore, between:</p>
<ul>
<li> my laptop(Dell D630)(usually runs <strong>Gentoo</strong>, sometimes <strong>Debian-Lenny</strong>)</li>
<li> Sweta(my wife)&#8217;s laptop(MacBook Black running <strong>OS X Snow Leopard</strong>)</li>
<li> our desktop at home (runs <strong>Ubuntu</strong>(as of now), which im planning to move to Lenny too, as Ubuntu is obnoxiously irritating)(this one was supposed to be the permanent docking station for the unit as well)</li>
</ul>
<p>So given the situation, the disk was obviously going to live most of its life flirting with GNU/Linux<strong> </strong>setups, so it made sense to have it  on ext3 (or ext2/jfs/xfs etc?). So, i did the partition tables then mkfs.ext3, some spicing up with tune2fs and after e2labeling it, with some amount of satisfaction mounted the partitions to verify i had done them right.<br />
Having verified disk&#8217;s working state, i unmounted and jacked the disk into the MacBook(OS X) which decided not to mount it. dmesg showed kernel figured the disk was there, which indicated to me the reason for it not being mounted(it probably didn&#8217;t know what ext3 was). Some reading on internet revealed i needed ext2fsx to save the day. My attempt to install it however, was thwarted with a not so intuitive error message(which gave me no clue as to what the fuck was wrong with my installation). With some frustration, i accepted that user friendly softwares are supposed to obfuscate the error messages/stack traces, so that user gets no fucking clue about failure and has no way to fix it(not quite what i call &#8216;user friendly&#8217;, but whatever). Some more reading indicated i needed MacFUSE and FuseExt2 to do userspace shit since my kernel didn&#8217;t think i as someone who paid for the piece of shit(OS X) deserved the right to use other filesystems than HFS+ and crappy windows file systems(like NTFS and FAT32).<br />
FuseExt2 made it work alright, but automount was not writable and doing writable mount required &#8216;-o force&#8217; option, which essentially meant Sweta had to hit the terminal every time she jacked the disk in, but that was no more than tip of the iceberg. Actually mounting the ext3 volume, as we figured, was a fourty minute process, as you are forced to wait after the mount command returns, for Finder to unfreeze and mounted volume to appear. User friendly, isn&#8217;t it?<br />
Having it mounted was however, not the end of my miseries. We tried to transfer a movie(700 odd MBs worth of data i believe), which took forever to get to 33%, not cool by any standards. I finally had to give up and cancel the transfer, and then uninstalled FuseExt2.<br />
Irritated, i popped the Disk Utility app, and started my hunt for options. It seemed to have Ext2 as one of the items in filesystem selection box on the repartition tab, which i decided to go with, only to find it harassing my new disk for one and a half hour without moving the progress bar beyond 50%. I finally ran out of patience and unplugged it. On jacking it into my Dell, fdisk revealed the state of affairs. Mac had made an ass of my disk, the partition table was total mess(and by the way, it hadn&#8217;t even begun creating the second partition(i had requested two ext2 partitions to start with). I don&#8217;t know what world OS X team lives in, but in the world that i know, it usually doesn&#8217;t make sense to write the partition table after formatting the filesystem unless you enjoy doing the same thing over and over. Anyways, i finally had to redo the partition cutting exercise and decided to go with ext2 this time, as it seemed like mac would read that. But guess what?, i jacked the disk into mac only to find out it does not read ext2 either. Fuck! Why does disk utility have an option to create partition using format the OS can&#8217;t read?<br />
Annoyed and frustrated, i gave up and decided to have it the Mac way. Once again i resorted to disk utility in order to create 2 Mac Extended(HFS+ partitions). Surprisingly, the partitioning tool that took one and a fucking half hour without completing even one of the two ext2 volumes i requested, managed to finish HFS+ on a 1.5 TB disk under 2 minutes flat.<br />
Those who compile the Linux kernel for themselves know that HFS+ support(under file systems -&gt; miscellaneous&#8230;) is not default. You have to enable it and recompile. I had to go back to menuconfig, do the hunting, enable it as a module, make it, modules_install and modprobe it before i could use the fucked up proprietory filesystem the jack-ass created. All because OS X doesn&#8217;t know one of the most widely used filesystems in GNU/Linux world(i failed to get any reasons for it supporting NTFS and FAT filesystems inspite of it being a flavour of a very respected Unix distribution, such a bad ass child). Even though i had to compile the module to get things flying, it took me no more than 3 minutes. Thats usability for you.<br />
End of the day, it worked! But i had to compromise. I had to do it the proprietory way, the mac way. You pay for the software and get your license, but even after you own it, you pay every single day, not in terms of money but freedom. You just don&#8217;t have a choice. The software decides what you can and can&#8217;t do on the hardware you own, and fighting your way through is insanely difficult and grossly unproductive excercise. A good software should always help the user and never come in the way. I don&#8217;t know about you, but i do not remember anything ever coming anywhere close to GNU/Linux when it comes to usability.<br />
Software being a dumb-ass tantamounts to it being unusable and un-userfriendly. I can only hope propritory software makers will someday figure what a pain in the butt products they create are, and will start to work towards making user&#8217;s life easy and the softwares usable. I really feel sorry for users that have to put up with this kinda shit everyday.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codehunk.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codehunk.wordpress.com/284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codehunk.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codehunk.wordpress.com/284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codehunk.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codehunk.wordpress.com/284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codehunk.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codehunk.wordpress.com/284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codehunk.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codehunk.wordpress.com/284/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codehunk.wordpress.com&blog=1587745&post=284&subd=codehunk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://codehunk.wordpress.com/2009/10/19/propritory-software-such-a-pain/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a2cf57e4c0ab471f97fe202d4b98e96e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janmejay</media:title>
		</media:content>
	</item>
		<item>
		<title>Headless X setup with Debian(Lenny)</title>
		<link>http://codehunk.wordpress.com/2009/08/23/headless-x-setup-with-debianlenny/</link>
		<comments>http://codehunk.wordpress.com/2009/08/23/headless-x-setup-with-debianlenny/#comments</comments>
		<pubDate>Sun, 23 Aug 2009 07:24:38 +0000</pubDate>
		<dc:creator>janmejay</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[problems]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[debian lenny]]></category>
		<category><![CDATA[headless X]]></category>
		<category><![CDATA[virtual X]]></category>
		<category><![CDATA[vnc]]></category>
		<category><![CDATA[X]]></category>

		<guid isPermaLink="false">http://codehunk.wordpress.com/?p=255</guid>
		<description><![CDATA[I recently did X on a headless Debian blade. This post is about the setup that worked for me. I used Xvfb to setup the virtual X frame-buffer. The usual choice for accessing virtual display is vnc, so i decided to go with x11vnc. Used blackbox as window manager for the setup(because it is believed [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codehunk.wordpress.com&blog=1587745&post=255&subd=codehunk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I recently did X on a headless Debian blade. This post is about the setup that worked for me. I used <strong>Xvfb</strong> to setup the virtual X frame-buffer. The usual choice for accessing virtual display is vnc, so i decided to go with <strong>x11vnc</strong>. Used <strong>blackbox</strong> as window manager for the setup(because it is believed to be pretty light weight).<br />
However, this setup has a problem. x11vnc doesn&#8217;t handle key modifiers(Shift/Ctrl/Alt) too well, it aborts when key combinations involving Shift key are used in vnc session with the setup. Since there was not much help available around x11vnc and the bug, i decided to give <strong>tightvnc</strong> a shot which worked really well.<br />
Here is how the setup be repeated:</p>
<hr />
<code><br />
$ sudo aptitude install xvfb tightvncserver blackbox<br />
$ Xvfb :1 -screen 1 1300x700x16 &amp; # starts X (display=:1) (set width, height and depth for screen 1)<br />
$ DISPLAY=:1 blackbox &amp; # start the window manager<br />
$ DISPLAY=:1 vncserver -depth 16 -geometry 1300x700 -alwaysshared # to startup vnc server (it prints port that vnc listens to).<br />
</code></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codehunk.wordpress.com/255/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codehunk.wordpress.com/255/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codehunk.wordpress.com/255/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codehunk.wordpress.com/255/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codehunk.wordpress.com/255/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codehunk.wordpress.com/255/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codehunk.wordpress.com/255/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codehunk.wordpress.com/255/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codehunk.wordpress.com/255/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codehunk.wordpress.com/255/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codehunk.wordpress.com&blog=1587745&post=255&subd=codehunk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://codehunk.wordpress.com/2009/08/23/headless-x-setup-with-debianlenny/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a2cf57e4c0ab471f97fe202d4b98e96e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janmejay</media:title>
		</media:content>
	</item>
		<item>
		<title>Fix for &#8220;Pidgin not connecting to Yahoo on Lenny&#8221;</title>
		<link>http://codehunk.wordpress.com/2009/07/18/fix-for-pidgin-not-connecting-to-yahoo-on-lenny/</link>
		<comments>http://codehunk.wordpress.com/2009/07/18/fix-for-pidgin-not-connecting-to-yahoo-on-lenny/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 07:28:39 +0000</pubDate>
		<dc:creator>janmejay</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[problems]]></category>
		<category><![CDATA[connectivity problem]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[debian lenny]]></category>
		<category><![CDATA[pidgin]]></category>
		<category><![CDATA[yahoo]]></category>

		<guid isPermaLink="false">http://codehunk.wordpress.com/?p=257</guid>
		<description><![CDATA[For last few weeks Pidgin(from lenny stable repo) was failing to enable my Yahoo account. I tried reading up on the internet and changing hostname etc, but none of that worked. Upgrade to pidgin/testing or unstable looked like too disruptive and could have made my installation unstable. So i decided to compile it from source, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codehunk.wordpress.com&blog=1587745&post=257&subd=codehunk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>For last few weeks Pidgin(from lenny stable repo) was failing to enable my Yahoo account. I tried reading up on the internet and changing hostname etc, but none of that worked. Upgrade to pidgin/testing or unstable looked like too disruptive and could have made my installation unstable. So i decided to compile it from source, which worked, but with a few quirks. So here is what you need to do:<br />
Get the source from <a title="Pidgin" href="http://www.pidgin.im/download/source/" target="_blank">http://www.pidgin.im/download/source/</a></p>
<p><hr />
<code><br />
$ sudo apt-get build-dep pidgin<br />
$ sudo apt-get install network-manager-dev<br />
$ tar -jxvf pidgin-2.5.8.tar.bz2 #extract source from downloaded archive<br />
$ sudo mv pidgin-2.5.8 /usr/local/ #hack: when you 'make install' pidgin it doesn't work(reports some smiley missing or something), so we will invoke it directly from the built-source directory<br />
$ cd /usr/local/pidgin-2.5.8<br />
$ ./configure<br />
$ make<br />
$ sudo make install<br />
$ pidgin # and watch it fail, with some file missing problem<br />
$ sudo chown -R root:root . # as we are going to use this as install location<br />
$ /usr/local/pidgin-2.5.8/pidgin/pidgin #execute pidgin, add your account, and watch it connect to Yahoo<br />
</code></p>
<hr />
<p>
The same executable can be added to session preferences to start pidgin on session load.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codehunk.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codehunk.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codehunk.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codehunk.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codehunk.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codehunk.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codehunk.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codehunk.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codehunk.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codehunk.wordpress.com/257/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codehunk.wordpress.com&blog=1587745&post=257&subd=codehunk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://codehunk.wordpress.com/2009/07/18/fix-for-pidgin-not-connecting-to-yahoo-on-lenny/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a2cf57e4c0ab471f97fe202d4b98e96e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janmejay</media:title>
		</media:content>
	</item>
		<item>
		<title>Booting &#8216;Debian Lenny&#8217; into widescreen framebuffer</title>
		<link>http://codehunk.wordpress.com/2009/07/02/booting-debian-lenny-into-widescreen-framebuffer/</link>
		<comments>http://codehunk.wordpress.com/2009/07/02/booting-debian-lenny-into-widescreen-framebuffer/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 20:06:39 +0000</pubDate>
		<dc:creator>janmejay</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[customiation]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[debian lenny]]></category>
		<category><![CDATA[framebuffer]]></category>
		<category><![CDATA[widescreen]]></category>

		<guid isPermaLink="false">http://codehunk.wordpress.com/?p=249</guid>
		<description><![CDATA[I have a Dell D630 Latitude(running Lenny) that i use at work. While trying to push the framebuffer size, i had to experiment a bit with numbers, because i couldn&#8217;t get ready to use values off google for widescreen framebuffers. &#8216;865&#8216; is what worked for me(it gives me 1280&#215;800). If you got a widescreen laptop(i [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codehunk.wordpress.com&blog=1587745&post=249&subd=codehunk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I have a Dell D630 Latitude(running Lenny) that i use at work. While trying to push the framebuffer size, i had to experiment a bit with numbers, because i couldn&#8217;t get ready to use values off google for widescreen framebuffers. &#8216;<strong>865</strong>&#8216; is what worked for me(it gives me <strong>1280&#215;800</strong>). If you got a widescreen laptop(i guess most laptops these days are), appending &#8216;<strong>vga=856</strong>&#8216; to grub boot line should make it come up in <strong>1280&#215;800</strong> mode. For example, your kernel&#8217;s <strong>menu.lst</strong>(<em>/boot/grub/menu.lst</em>) entry should look like&#8230;</p>
<pre>...
title           Debian GNU/Linux, kernel 2.6.26-2-686
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.26-2-686 root=/dev/sda1 vga=865 ro quiet
initrd          /boot/initrd.img-2.6.26-2-686
...</pre>
<p>Hope this helps someone. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codehunk.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codehunk.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codehunk.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codehunk.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codehunk.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codehunk.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codehunk.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codehunk.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codehunk.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codehunk.wordpress.com/249/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codehunk.wordpress.com&blog=1587745&post=249&subd=codehunk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://codehunk.wordpress.com/2009/07/02/booting-debian-lenny-into-widescreen-framebuffer/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a2cf57e4c0ab471f97fe202d4b98e96e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janmejay</media:title>
		</media:content>
	</item>
		<item>
		<title>Emacs: setup geared towards doing `Ruby based Web-Applications`</title>
		<link>http://codehunk.wordpress.com/2009/06/27/emacs-repo-for-ruby-webapps/</link>
		<comments>http://codehunk.wordpress.com/2009/06/27/emacs-repo-for-ruby-webapps/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 13:58:43 +0000</pubDate>
		<dc:creator>janmejay</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[Editor]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[RubyMine]]></category>
		<category><![CDATA[TextMate]]></category>

		<guid isPermaLink="false">http://codehunk.wordpress.com/?p=231</guid>
		<description><![CDATA[For me to call an editor decent(for Ruby based WebApps), it must have:

A good Ruby editor
Good Haml editor
Good rhtml/html+erb editor
Good JavaScript editor
Terrific auto-completion
Decent ruby debugging support
Decent tag navigation(eg. navigating from method/class/module/variable usage to definition)
Ability run Test::Unit/Rspec tests from the editor
Ability to show multiple files at the same time(by splitting windows)
Ability to jump between related files(controller [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codehunk.wordpress.com&blog=1587745&post=231&subd=codehunk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>For me to call an editor <span style="text-decoration:underline;"><strong>decent</strong></span>(for Ruby based WebApps), it must have:</p>
<ul>
<li>A good Ruby editor</li>
<li>Good Haml editor</li>
<li>Good rhtml/html+erb editor</li>
<li>Good JavaScript editor</li>
<li>Terrific auto-completion</li>
<li>Decent ruby debugging support</li>
<li>Decent tag navigation(eg. navigating from method/class/module/variable usage to definition)</li>
<li>Ability run Test::Unit/Rspec tests from the editor</li>
<li>Ability to show multiple files at the same time(by splitting windows)</li>
<li>Ability to jump between related files(controller &#8211; model &#8211; view &#8211; spec/test etc)</li>
<li>Ability to run an interactive ruby console within the editor</li>
<li>Auto-generatable snippets (some call this one LiveTemplates)</li>
</ul>
<p><strong>RubyMine</strong> has support for certain things like decent ruby editor, showing multiple files at a time(i am assuming it works well, because this was supported in IntelliJ Idea when i used it last), ruby debugging and auto-generatable snippets, but it lacks on certain other fronts. For example, it does not have Haml editor and no key-binding to jump between related entities(controller, model, view, spec, helper etc). However, the major drawback with RubyMine is its resource footprint. I have seen developers force shutdown their OS X (running on MacBook Pro) because RubyMine decided to go unresponsive and `kill -9 &lt;pid&gt;` failed to get rid of it. Even GNU/Linux users are forced to kill it sometimes because it freezes too often(however `kill -9 &lt;pid&gt;` does work reliably on Linux, hence no operating system restart required <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> ). JavaScript support is dumb and doesn&#8217;t highlight errors too well. I do give it some points for navigation and searching though.</p>
<p><strong>TextMate</strong> unlike RubyMine is light on resource footprint. But unfortunately, it also is low on features. Ruby editor is decent, but auto-completion is retard(it completes words from the current buffer(file) only).  Besides, key binding for auto-complete(which is such a common operation) is Esc(no touch-typist in the sane world would like that). It has no debugging support at all, and running rspec needs a plugin which in turn needs rspec installed as a gem, and if you have a frozen version of rspec/rspec-rails in your application codebase, then tough luck(there is no easy way to configure it to pick things up on a per project basis, you need to roll your sleeves up and dig into /Application/TextMate.app, to modify some badly written ruby/shell-script mess). Navigation and searching is horrible(slow and unintuitive). Command-T has no notion of priority, and brings up all the wrong files first. Haml support has to be installed seperately as a plugin, and is terrible(be it indentation, or syntax hilight). There is no interactive console and no spliting of windows supported.</p>
<p>There is more that i expect from an editor before i call it a <strong><span style="text-decoration:underline;">good programming environment</span></strong>. Here is what I think my definition of good programming tool looks like(in addition to the features in the bulleted list above):</p>
<ul>
<li>Ablity to run multiple terminals within the editor</li>
<li>Ability to open directories as buffer(allowing easy selection of files)</li>
<li>Ability to run IRC client(i like to be on IRC channels all the time, helping people and seeking help is a great way to learn)</li>
<li>Snappy frontend and sensible keystrokes(close to the host row, not forcing user to get out of touchtyping mode too often)</li>
<li>Straightforward key-bindings for macro record and play.(Both TextMate and RubyMine claim to have Macro support, but its hidden somewhere under the MenuBar-Submenu(s))</li>
<li>Ability to run commands without leaving the editor or creating a terminal within it.</li>
</ul>
<p><strong>Emacs</strong> is a pretty powerful and mature editor which has passed the test of time and has got several refinements and enhancements over the years it has lived. Most of the major things that i want in my development environment are bundled with Emacs out of the box(and the once that aren&#8217;t, are available as plug-ins). I believe the best thing about <strong>Emacs</strong> is its written in <strong>lisp</strong>, which means you can change things very easily and cleanly. I do <strong>Ruby/Rails</strong> development in my day job, and have been customizing my <strong>Emacs</strong> repository for some time now. Over a period of time, i have accumulated/tweaked some emacs goodies which have not only made<strong> Emacs</strong> a better <strong>Ruby</strong>, <strong>JavaScript</strong>, <strong>Lisp</strong>, <strong>C++</strong> editor, but a better <strong>IRC</strong>, <strong>Mail</strong>, <strong>RSS</strong>, <strong>Atom</strong> and <strong>News</strong> client. I keep my add-ons and customizations on <strong>github.com</strong> as a public repository, which helps me share it with other developers, and also gives me protection against disk failures and other bad things.<br />
So here is what my setup looks like.</p>
<ul>
<li><strong>Ruby</strong>: <em>ruby-mode</em>(written by Matz) + <em>ruby-electric</em>(minor mode)</li>
<li><strong>Haml</strong>: <em>haml-mode</em>(Nathan Weizenbaum) (by far the best support for HAML syntax highlight and marvelous indentation strictness, people who write haml know how painful it can get in TextMate/RubyMine to hunt bad indentation and fix it, but not with <strong>Emacs</strong>)</li>
<li><strong>Rhtml/Erb</strong>:<em> rhtml/rhtml-erb</em> (Paul Nathan Stickney) Great syntax highlighting and indentation support.</li>
<li><strong>JavaScript</strong>: I was waiting to come to this one. <em>js2</em>(Steve Yegge) has the best JavaScript editing support I have ever seen. <em>js2</em> has remarkable indentation, very good syntax highlighting and terrific error detection(warns you even about missing var and semicolons, let alone the more obvious errors).</li>
<li><strong>Auto completion</strong>: Of course. This one works across buffers, across modes and unlike TextMate&#8217;s `Esc` the key binding(M-/) is quite sane. You don&#8217;t have to go out of touch-typing mode, and the same shortcut can be used to browse through other possible completions.</li>
<li><strong>Ruby Debugging</strong>: <em>rubydb3x</em> to rescue (<em>rubydb2x</em> for Emacs 19.2 and older). Just fire <em>rubydb</em> and get rolling. It uses <em>GUD</em> (Grand Unified Debugger), and has sensible(easy to remember) shortcuts(unlike F7, F8, F9 that most IDE(s) have). Some common key bindings are C-n for next line C-s to step in, C-f to finish function, C-r to resume and &lt;, &gt; to roll stack frames up and down(the name-space used is C-c, so it doesn&#8217;t override any of the usual actions that those shortcuts are supposed to perform).</li>
<li><strong>Tag navigation</strong>: Navigation is a breeze. M-. to get to the implementation, M-* to pop out of it. I enhanced it to make it a look recursively up the directory hierarchy to find the tags file(a file named TAGS) and load it up and navigate seamlessly, all by itself. (<em>etags</em> doesn&#8217;t have ruby support, so use <em>exuberant-ctags</em>)(<em>&#8220;/usr/bin/ctags -e -a &#8211;Ruby-kinds=-cmfF -o TAGS -R &lt;dir_name&gt;&#8221;</em> can be used to generate a file named TAGS which emacs will read to navigate ruby code).</li>
<li><strong>Test::Unit/Rspec tests</strong>: <em>test-runner</em>(a tiny add-on) runs your test as you load a test file, and then autoruns it every time the test file is saved. It supports Test::Unit by itself, I added support for Rspec(even running single spec) to it. Works like a charm, and is very easy to tweak.</li>
<li><strong>Ability to show multiple files by splitting windows up</strong>: Do i need to say anything about windows support? <strong>Emacs</strong> is loved for this capability. However, navigation between windows was a bit painful before i added<em> window-numbering.el</em> (Nikolaj Schumacher), which made it sweet.</li>
<li><strong>Ability to jump between related files</strong>: <em>Rinari</em>(Phil Hagelberg, Eric Schulte) uses <em>jump</em>(Eric Schulte) to make jumping between controller-model-view-helper-spec-test on a<strong> Rails</strong> project seamless and quick.</li>
<li><strong>Runing interactive console</strong>: <em>ruby-mode</em> has a this hook called <em>run-ruby</em>(bound to C-c C-s), which can be used to start an interactive ruby session.While in a <em>Rails</em> project C-c M-s can be used to load script/console (<em>irb</em> with the project environment loaded).</li>
<li><strong>Auto-generatable snippets</strong>: <em>YASnippet</em>(pluskid) has this awesome snippet support which can be used to selectively load snippets for a particular mode. Snippets can be overridden by adding a custom location to pick snippets from after loading the default snippets(no need to dive into library code base to make changes)</li>
<li><strong>Ability to run multiple terminals</strong>: Not just one, there are multiple flavors of terminal supported within <strong>Emacs</strong>(<em>ansi-term</em>, <em>shell</em> and <em>eshell </em>to name a few). Each one has its own strong points, but they are all great.</li>
<li><strong>Ability to open directory within a buffer</strong>: <em>dired</em> is your friend (its a full blown file manager).</li>
<li><strong>IRC client</strong>: <em>rcirc</em> can be used to keep in touch with IRC channels. A line or two of lisp can be dropped in to change its default behavior(such as what channels to join, on which servers, using what alias&#8230; etc).</li>
<li><strong>Snappy frontend and sensible keystrokes</strong>: Its has lower footprint than most other editors, TextMate and RubyMine are no match. I can not say it has not frozen ever, it does(but very occasionally). Even when it is frozen, 3 Esc hits or C-g can be used to abort the activity causing it to freeze. I don&#8217;t remember killing it(have been using it for more than a few months now). It just never gets that bad.</li>
<li><strong>Straightforward key-bindings</strong>: I feel key-bindings are very carefully chosen. More common the key, closer it it to the home row index finger positions(f and j). Macro record/play is bound to C-x ( &lt;definition&gt; C-x ) (parenthesis make sense to developers at once, and i believe its quite intuitive a binding to define something. C-e can be used subsequently to play the macro(macros can be stored by numbers and names too). Even complicated keyboard shortcuts like <em>kill-rectangle</em> have sensible C-x r k (r -&gt; rectangle, k-&gt; kill), paste rectangle similarly is C-x r y (y -&gt; yank). Navigation keys are C-n (n -&gt; next), C-p (p -&gt; previous), C-f (f -&gt; forward), C-b (b -&gt; backward). Sensible key bindings are much easier to remember. Orthogonality is maintained across actions C-u &lt;x&gt; &lt;action&gt; does something <em>x</em> number of times and works across different types of actions.</li>
<li><strong>Running single commands</strong>: M-! can be used to run commands from within emacs(output is captured in a buffer and shown to the user).</li>
</ul>
<p>In addition to these emacs comes with some not so well-known features(which need a little exploration), for example <em>make-frame-on-display</em> can create frames on other hosts(making pair-programming really simple). It has terrific <strong>Mail/News/Feed</strong> reader called <strong>Gnus</strong>, a beautiful mode for organizing yourself up called <strong>Org-mode</strong> and a host of other great things like <strong>TRAMP</strong>(Transparent Remote (file) Access, Multiple Protocol) which lets you edit remote files over a whole bunch of protocols(including <em>ssh, smb, rcp</em> etc) and also allows editing of local files as root(using <em>su</em>). It can open compressed archives(and edit files in place), java jars, PDF files, images&#8230;. you name it. Combined with <strong>dired</strong>, these capabilities make it a great tool. This post has only tried to explain what <strong>Emacs</strong> is capable of with respect to other editors, and trust me, I haven&#8217;t even skimmed the surface of it. One really needs to use it to find out what a brilliant tool it is.</p>
<p>It can be a little daunting for a beginner to set <strong>Emacs</strong> up from scratch(it is not difficult; its just takes some time and patience). I have spent time setting it up for myself, and I think it is a good setup to start with for people doing <strong>Ruby(Rails)</strong>/<strong>JavaScript </strong>and <strong>Lisp</strong> in general. My repository is available at <a title="github emacs customization repository" href="http://github.com/janmejay/emacs" target="_blank"><strong>http://github.com/janmejay/emacs</strong></a>. One of my motivations to put it out is to help other developers(especially people starting out with Emacs), so feel free to pull it up and take it for a ride.</p>
<p>Like every other powerful tool, <strong>Emacs</strong> has bit of a learning curve, but i believe it pays off, and it pays off pretty well. To a programmer, its not just an editor, it is a <strong>&#8220;friend for life&#8221;</strong>.</p>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:943px;width:1px;height:1px;">
<pre class="prettyprint lang-el"><span class="com">pluskid</span></pre>
</div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codehunk.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codehunk.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codehunk.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codehunk.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codehunk.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codehunk.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codehunk.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codehunk.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codehunk.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codehunk.wordpress.com/231/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codehunk.wordpress.com&blog=1587745&post=231&subd=codehunk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://codehunk.wordpress.com/2009/06/27/emacs-repo-for-ruby-webapps/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a2cf57e4c0ab471f97fe202d4b98e96e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janmejay</media:title>
		</media:content>
	</item>
		<item>
		<title>apt cache problem and fix</title>
		<link>http://codehunk.wordpress.com/2009/06/25/apt_cache_problem_and_fix/</link>
		<comments>http://codehunk.wordpress.com/2009/06/25/apt_cache_problem_and_fix/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 18:18:34 +0000</pubDate>
		<dc:creator>janmejay</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[chroot jail]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[debootstrap]]></category>
		<category><![CDATA[iso debian mirror]]></category>

		<guid isPermaLink="false">http://codehunk.wordpress.com/?p=221</guid>
		<description><![CDATA[While creating a chroot jail on my machine(using debootstrap), i came across this weird problem with apt-get/aptitude cache, where apt-cache search was yielding an abnormally small subset of packages and apt-get/aptitude install was failing to find packages which i knew for sure existed in Debian package repositories.
Problem:
Snapshot of my /etc/apt/sources.list:
deb http://ftp.us.debian.org/debian/ lenny main contrib non-free
deb-src [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codehunk.wordpress.com&blog=1587745&post=221&subd=codehunk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>While creating a chroot jail on my machine(using <em>debootstrap</em>), i came across this weird problem with <em>apt-get/aptitude</em> cache, where <em>apt-cache search</em> was yielding an abnormally small subset of packages and <em>apt-get/aptitude install</em> was failing to find packages which <span style="text-decoration:underline;">i knew for sure</span> existed in Debian package repositories.</p>
<p><strong>Problem:</strong><br />
Snapshot of my<em> /etc/apt/sources.list</em>:</p>
<pre>deb http://ftp.us.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.us.debian.org/debian/ lenny main contrib non-free
deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free
deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free</pre>
<p>I unsuccessfully tried <em>apt-get/aptitude update/clean</em> several times, and <em>apt-cache search emacs</em> still failed to yield any more than 7 packages. Actually  it should have summed up to around 300 packages with <span style="text-decoration:underline;"><em>main</em></span> <span style="text-decoration:underline;"><em>contrib</em></span> and <span style="text-decoration:underline;"><em>non-free</em></span> repositories as sources.</p>
<p>Apparently, my <em>debootstrap</em> source being a locally mounted<em> <a title="Debian Lenny netinstall ISO" href="http://www.debian.org/distrib/netinst#smallcd" target="_blank">netinstall iso image</a></em> had something to do with <em>apt</em> building bad caches, which subsequent <em>apt-get updates</em> failed to clear.</p>
<p><strong>Solution:</strong><br />
The solution is to follow this procedure as root:<br />
# rm -rf /var/lib/apt<br />
# mkdir -p /var/lib/apt/lists/partial<br />
# touch /var/lib/apt/lists/lock<br />
# apt-get update</p>
<p>After this, <em>apt-cache search emacs</em> should yield around 300 packages. Try `<em>apt-cache search emacs | wc -l`</em> to confirm.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codehunk.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codehunk.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codehunk.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codehunk.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codehunk.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codehunk.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codehunk.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codehunk.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codehunk.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codehunk.wordpress.com/221/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codehunk.wordpress.com&blog=1587745&post=221&subd=codehunk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://codehunk.wordpress.com/2009/06/25/apt_cache_problem_and_fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a2cf57e4c0ab471f97fe202d4b98e96e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janmejay</media:title>
		</media:content>
	</item>
		<item>
		<title>GNU/Linux, the developer OS&#8230;</title>
		<link>http://codehunk.wordpress.com/2009/05/16/gnulinux-the-developer-os/</link>
		<comments>http://codehunk.wordpress.com/2009/05/16/gnulinux-the-developer-os/#comments</comments>
		<pubDate>Sat, 16 May 2009 14:47:29 +0000</pubDate>
		<dc:creator>janmejay</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[operating system debate]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[propriatory vs. free]]></category>

		<guid isPermaLink="false">http://codehunk.wordpress.com/?p=166</guid>
		<description><![CDATA[This post is about my experience developing with Mac OS X vs. GNU/Linux. Im a developer by profession and working on Ruby these days, and a sizable part of the Ruby world happens to use OS X. Its considered the best platform for Ruby development(at-least by some) and TextMate is supposedly the most loved editor [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codehunk.wordpress.com&blog=1587745&post=166&subd=codehunk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This post is about my experience developing with Mac OS X vs. GNU/Linux. Im a developer by profession and working on Ruby these days, and a sizable part of the Ruby world happens to use OS X. Its considered the best platform for Ruby development(at-least by some) and TextMate is supposedly the most loved editor for ruby(or rails, camping, rack???) hacking. When ThoughtWorks offered all ruby developers Mac Book Pro with TextMate licenses, i switced. Almost an year with Mac frustrated me to the core and the tiny Ctrl key injured my wrist big-time, and thats when i decided to move back to the operating system i have been in love with since puberty(oops&#8230; college). I moved back to Debian 5.0(Lenny) and am a happy hacker once again. No other operating system that i know of, matches the usability and simplicity of Debian, and thats what finally brought me back to it.</p>
<p>People(even experienced developers) often don&#8217;t understand what made  &#8216;otherwise excited me&#8217; hate mac this bad. Here are a few things that started it all.</p>
<ul>
<li>User/Group administration(adding an unprivileged user to another group): I started the usual *nix way. Tried usermod/useradd, modifying files under /etc without any luck, post which i was left with no choice but to seek help over the web. I wasted a lot of time before a blog post saved the day(never thought i&#8217;d end up wasting time over something as trivial as that). OS X apparently has a notion of databases for storing user and group on Leopard(what the fuck?), and has some insane command to add a user to another group(which works by specifying the directory that the relevant db lives in, and a key-value pair[aagh....]). There is a groups file under /etc, but that exists for aesthetic reasons(or may be to fool people like myself) as its supposed to have effect ONLY in single user mode.</li>
<li>Microscopic Ctrl key: Before moving back to Debian, I changed my editor(dumped TextMate in favor of Emacs). Post which, Mac made my life miserable. It has just &#8216;ONE&#8217;, really tiny Control key, and i had to put my wrist in all sorts of weird, twisting positions to get emacs shortcuts going. Within a month or two, i ended up with a dorsal ganglion on my left wrist.</li>
<li>Java upgrade: While trying to upgrade to JDK 6 from 5(which came pre-installed), i was forced to register on the apple website(to get the package) and fool around with symlinks in various places, only to find IntelliJ Idea failing to load-up. No logs, no error popups, no messages on the terminal. I HAD to give-up and revert.</li>
<li>No emacs -fs: Most of the times when im in front of my laptop, im actually using Emacs. Its my IMAP/SMTP client, IRC client, editor, terminal, feed reader&#8230; everything. I like to use every pixel thats available on the display(if you are used to coding with 5 irc windows open, you have to), and OS X/Emacs Carbon(i don&#8217;t know which one was responsible) didn&#8217;t like me going full-screen.</li>
<li>No Meta key: I spend a lot of time in bash terminals. Any one who uses bash for serious work knows how important Meta key is. M-b, M-f, M-&lt;bksp&gt;, M-d&#8230;. just goes on. How can you work without those shortcuts? On mac terminal, i was forced to hunt the tiny Esc on top left corner every time i did a Meta combination. Trust me, and hour of Esc &#8211; p, Esc &#8211; f is enough to drive anyone NUTS.</li>
<li>X11: My interest in game development makes me pull Gimp up every now and then. Gimp on OS X runs under X11.app, and while using Gimp i was forced to use Ctrl in place of Command/Apple key. When you use mac, you build your muscle memory around the Command key, and switching to Ctrl for every little shortcut is both difficult and frustrating. The non-X version refused to let me work with layers(to shorten it up, it refused to work).</li>
<li>Package Management: Typical OS X app install workflow: Register on an unknown website. Download a DMG. Mount it. drag-drop the app directory(or whatever it is). Double click, and answer the &#8220;<em>downloaded from internet, dangerous program</em>&#8221; kinda question to get a new application running. And then tolerate all the spam that site sends your way. User&#8217;s misery doesn&#8217;t end there, if you want a clean uninstall, you need to have AppTrap running. I neither have time nor patience to take this kind of shit. MacPort exists, but i had to wait for more than 3 months to get a version of HTTrack that compiled successfully(that says something about ports repository, doesn&#8217;t it?).</li>
</ul>
<p>The list just goes on&#8230;.</p>
<p>Debian on the other hand comes with robust and incredibly powerful package management infrastructure called dpkg and apt. I just can&#8217;t imagine living without them. The gnu tool kit makes customization such a breeze, the day i don&#8217;t like something, i hit the project&#8217;s version control, pull the tag up and rebuild it with my changes(developers know getting dependencies right can be a nightmare&#8230;.. for a dev on debian, its just a matter of firing <em>sudo apt-get build-dep blah</em>). Life is straightforward with GNU/Linux. Changing behavior is as simple as finding some file in<em> /etc</em> and editing it. Can things get any simpler than that? It is the &#8220;<em>principle of least surprise</em>&#8221; embodied.</p>
<p>Is there anything about Mac Hardware/Software that i really liked, things i miss now as a GNU/Linux user? Nothing major, but coming to think of it, i wish GNOME had a translucent dashboard(with configurable widgets) <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> , just for the &#8220;cool-factor&#8221;, but thats pretty much it.</p>
<p>Developers spend so much time with computer that having a no-nonsense system is absolutely essential and i believe it pays-off to find out what works for you. The motivation for this post is not sharing my frustration/findings but making people aware of why any &#8220;<em>proprietary operating systems</em>&#8221; fail to get there. Everyone knows how horrible an operating system Windows is, but OS X is way too hyped which can mislead people like  myself. I hope this post will help other developers form a balanced opinion of Mac.</p>
<p>Long live GNU/Linux!!!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codehunk.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codehunk.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codehunk.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codehunk.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codehunk.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codehunk.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codehunk.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codehunk.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codehunk.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codehunk.wordpress.com/166/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codehunk.wordpress.com&blog=1587745&post=166&subd=codehunk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://codehunk.wordpress.com/2009/05/16/gnulinux-the-developer-os/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a2cf57e4c0ab471f97fe202d4b98e96e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janmejay</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting TuxGuitar sound to work on Debian(Lenny)</title>
		<link>http://codehunk.wordpress.com/2009/05/06/getting-tuxguitar-sound-on-debian-lenny/</link>
		<comments>http://codehunk.wordpress.com/2009/05/06/getting-tuxguitar-sound-on-debian-lenny/#comments</comments>
		<pubDate>Wed, 06 May 2009 09:27:14 +0000</pubDate>
		<dc:creator>janmejay</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[customiation]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[alsa]]></category>
		<category><![CDATA[debian lenny]]></category>
		<category><![CDATA[no midi output]]></category>
		<category><![CDATA[no sound]]></category>
		<category><![CDATA[sound problem]]></category>
		<category><![CDATA[tabs]]></category>
		<category><![CDATA[timidity]]></category>
		<category><![CDATA[tux guitar]]></category>

		<guid isPermaLink="false">http://codehunk.wordpress.com/?p=188</guid>
		<description><![CDATA[Spent a few minutes today to get TuxGuitar(debian package) midi output working on my laptop. I am on ALSA, and these steps will not work for OSS users(but don&#8217;t worry, it should be as simple for OSS setup too). Here is what i did&#8230;.

sudo apt-get install tuxguitar timidity
sudo emacs /etc/default/timidity
it should look like&#8230;.
# Enable MIDI [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codehunk.wordpress.com&blog=1587745&post=188&subd=codehunk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Spent a few minutes today to get TuxGuitar(debian package) midi output working on my laptop. I am on ALSA, and these steps will not work for OSS users(but don&#8217;t worry, it should be as simple for OSS setup too). Here is what i did&#8230;.</p>
<ul>
<li>sudo apt-get install tuxguitar timidity</li>
<li>sudo emacs /etc/default/timidity<br />
it should look like&#8230;.</p>
<pre># Enable MIDI sequencer (ALSA), default is disabled
TIM_ALSASEQ=true
# Setting overrides (of /etc/timidity.conf) for the ALSA sequencer daemon
TIM_ALSASEQPARAMS="-iA -Os"</pre>
</li>
<li>sudo /etc/init.d/timidity restart</li>
</ul>
<p>Fire TuxGuitar up, and go to Tools -&gt; Settings -&gt; Sound (use &#8220;Tux Guitar Sequencer&#8221; and &#8220;TiMidity port 0 [129:0]&#8220;).</p>
<p>This should fix the no-sound problem. Apply changes and try to play tabs to validate.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codehunk.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codehunk.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codehunk.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codehunk.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codehunk.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codehunk.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codehunk.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codehunk.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codehunk.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codehunk.wordpress.com/188/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codehunk.wordpress.com&blog=1587745&post=188&subd=codehunk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://codehunk.wordpress.com/2009/05/06/getting-tuxguitar-sound-on-debian-lenny/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a2cf57e4c0ab471f97fe202d4b98e96e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janmejay</media:title>
		</media:content>
	</item>
	</channel>
</rss>