<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Playing with Pointers</title>
	<atom:link href="http://playingwithpointers.000space.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://playingwithpointers.000space.com</link>
	<description>The philosophy of theDigitalAngel.</description>
	<lastBuildDate>Fri, 17 Jul 2009 20:15:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>You know what I did last summer</title>
		<link>http://playingwithpointers.000space.com/you-know-what-i-did-last-summer/</link>
		<comments>http://playingwithpointers.000space.com/you-know-what-i-did-last-summer/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 20:15:38 +0000</pubDate>
		<dc:creator>theDigitalAngel</dc:creator>
				<category><![CDATA[Digital Dope]]></category>

		<guid isPermaLink="false">http://playingwithpointers.000space.com/?p=167</guid>
		<description><![CDATA[In a few hours I will be leaving for Kharagpur, after spending a vacation of about two and a half months back here in beautiful Dehradoon valley. Before you continue please understand that this is more like a note to myself than anything else. Nevertheless, you are welcome to read ahead. As I was leaving [...]]]></description>
			<content:encoded><![CDATA[<p><P align=justify>In a few hours I will be leaving for Kharagpur, after spending a vacation of about two and a half months back here in beautiful Dehradoon valley. Before you continue please understand that this is more like a note to myself than anything else. Nevertheless, you are welcome to read ahead. As I was leaving Kharagpur I resolved to make these ninety odd days as fruitful as possible. And even though nothing is ever perfect I like to think I have succeeded in this to some measurable extent. Some stuff I started during the vacations is not yet complete &#8211; I intent to keep working on those specific goals once I reach Kharagpur and get settled in my new hall.</P></p>
<ol>
<li>
		<P align=justify>The Digital Circle</P></p>
<ol>
<li>
		<P align=justify>For various reasons I ended up writing up a lot of code in Java. Though no self respecting geek will consider writing code in Java a worthy pastime,  I ended up learning a lot. The last time I coded in Java was a around three years back and now I discovered I could things with Java I previously could not. Specifically I ended up knowing a lot about the Android platform &#8211; well, enough to judge how crappy it really is.</P>
		</li>
<li>
		<P align=justify>I set up this very blog. For the record currently the blog is hosted on a free hosting provider (http://www.000space.com) and the domain name was bought from http://www.dynonames.com. I&#8217;ve also, very recently, set up Google Apps on my domain &#8211; now I have a really neat webmail interface at http://mail.playingwithpointers.com.</P>
		</li>
<li>
		<P align=justify>I am having a go at hacking the Linux kernel. Though I am nowhere near to writing full-fledged kernel driver modules or debugging kernel panics, I have learnt quite a few things. Currently I am following &#8216;Linux Device Drivers&#8217; by Colbert, Rubini and Greg and &#8216;Linux Kernel Development&#8217; by Robert Love. I know I still have a long long way to go but I know I&#8217;m getting <i>somewhere</i> (I know basic stuff about how the kernel memory paging, process management &#8211; how the scheduler works, writing a basic driver) and will continue to put in my best efforts.</P>
		</li>
<li>
		<P align=justify>Learned miscellaneous stuff about GNU/Linux &#8211; things ranging from some basic GNU utilities present in a typical distribution to licensing and patenting issues.</P>
		</li>
</li>
<ol>
		<P align=justify>The Offliners</P></p>
<li>
		<P align=justify>After two months of debating with so called <i>logical</i> theists I am finally a firm atheist. After a lot of thinking I&#8217;ve finally figured out exactly <i>why</i> theism does not make sense. Will probably write more on this in a later post.</P>
		</li>
<li>
		<P align=justify>Connected with a few of my old friends. Though I could not <i>connect</i> as much as I wished I could, but I did have fun.</P>
		</li>
<li>
		<P align=justify>Worked out big time. I hit the gym <b>everyday</b> for the past ninety days and lifted weights like an ox.</P>
		</li>
<li>
		<P align=justify>Tried to learn up new things as much as possible &#8211; looked up Wikipedia for every small thing that struck my curiosity.</P>
		</li>
<li>
		<P align=justify>Rediscovered coffee &#8211; I&#8217;ve already dedicated a post to this topic I think.</P>
		</li>
</ol>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://playingwithpointers.000space.com/you-know-what-i-did-last-summer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Avant Window Manager</title>
		<link>http://playingwithpointers.000space.com/the-avant-window-manager/</link>
		<comments>http://playingwithpointers.000space.com/the-avant-window-manager/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 15:14:59 +0000</pubDate>
		<dc:creator>theDigitalAngel</dc:creator>
				<category><![CDATA[Digital Dope]]></category>
		<category><![CDATA[avant]]></category>
		<category><![CDATA[awn]]></category>
		<category><![CDATA[decoration]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[eye-candy]]></category>
		<category><![CDATA[xfce]]></category>

		<guid isPermaLink="false">http://playingwithpointers.000space.com/?p=152</guid>
		<description><![CDATA[
I generally stay away from the my-desktop-is-flashy-so-what-if-it-eats-CPU crowd but I seem to have met my match. Day before yesterday I installed The Avant Window Manager. Currently I am running AWN on top of XFCE. I&#8217;ve removed the XFCE panel and now all I have is the AWN running at the bottom of my screen.
I absolutely [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_161" class="wp-caption alignleft" style="width: 250px"><a title="My Desktop with AWN" href="http://playingwithpointers.000space.com/wp-content/uploads/2009/07/Screenshot-1.png" target="_blank"><img class="size-thumbnail wp-image-161 " style="border: 3px solid black;" title="Screenshot-1" src="http://playingwithpointers.000space.com/wp-content/uploads/2009/07/Screenshot-1-150x150.png" alt="My Desktop with AWN" width="240" height="150" /></a><p class="wp-caption-text">My Desktop with AWN</p></div>
<p align="justify">
I generally stay away from the <em>my-desktop-is-flashy-so-what-if-it-eats-CPU</em> crowd but I seem to have met my match. Day before yesterday I installed The Avant Window Manager. Currently I am running AWN on top of XFCE. I&#8217;ve removed the XFCE panel and now all I have is the AWN running at the bottom of my screen.</P></p>
<div id="attachment_160" class="wp-caption alignright" style="width: 250px"><a href="http://playingwithpointers.000space.com/wp-content/uploads/2009/07/Screenshot.png"><img class="size-thumbnail wp-image-160 " style="border: 3px solid black;" title="The AWN Popup Terminal" src="http://playingwithpointers.000space.com/wp-content/uploads/2009/07/Screenshot-150x150.png" alt="The AWN Popup Terminal" width="240" height="150" /></a><p class="wp-caption-text">The AWN Popup Terminal</p></div>
<p align="justify">I absolutely love the popup terminal applet that comes with AWN. Though it is difficult to  comment on how long I will find AWN as interesting as I find it now but, as they say, so far so good.</P></p>
]]></content:encoded>
			<wfw:commentRss>http://playingwithpointers.000space.com/the-avant-window-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rendezvous with GRUB2</title>
		<link>http://playingwithpointers.000space.com/rendezvous-with-grub2/</link>
		<comments>http://playingwithpointers.000space.com/rendezvous-with-grub2/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 07:57:56 +0000</pubDate>
		<dc:creator>theDigitalAngel</dc:creator>
				<category><![CDATA[Digital Dope]]></category>
		<category><![CDATA[Free software]]></category>
		<category><![CDATA[GNU]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[grub2]]></category>

		<guid isPermaLink="false">http://playingwithpointers.000space.com/?p=145</guid>
		<description><![CDATA[I recently upgraded my boot-loader to GNU GRUB 2. It has several new interesting features which sets it apart it from the older version, now termed GRUB Legacy
Another reason for my upgrade to GNU GRUB 2 was that GRUB legacy it no longer being under active development &#8211; no new features will be added to [...]]]></description>
			<content:encoded><![CDATA[<p><P align=justify>I recently upgraded my boot-loader to GNU GRUB 2. It has several new interesting features which sets it apart it from the older version, now termed <i>GRUB Legacy</i></P><br />
<P align=justify>Another reason for my upgrade to GNU GRUB 2 was that GRUB legacy it no longer being under active development &#8211; no new features will be added to it, ever. The GNU website cites messy code as the primary reason for this decision. GRUB 2, as of now, is relatively stable and will probably run properly on your system unless you happen to have a really weird configuration.</P><br />
<P align=justify>On a typical Arch GNU/Linux system a simple <code>sudo pacman -S grub2</code> will do the job. The sweet little package manager actually will tell you about the new <code>grub2</code> package conflicting with the older <code>grub</code> package and will offer to remove the older package for you.</P><br />
<P align=justify>One very important difference between GRUB Legacy and GRUB 2 is the configuration file &#8211; instead of <code>/boot/grub/menu.lst</code> the configuration file is stored at <code>/boot/grub/grub.cfg</code>. The format is also very different, a sample <code>grub.cfg</code> would look like</P><br />
<code><br />
# Timeout for menu<br />
set timeout=10<br />
</code><code><br />
# Set default boot entry as Entry 0<br />
set default=0<br />
</code><code><br />
# Entry 0 - Load Linux kernel<br />
menuentry "My Linux Kernel on (hd0,1)" {<br />
    set root=(hd0,1)<br />
    linux /vmlinuz root=/dev/hda1<br />
    initrd /initrd<br />
}<br />
</code><code><br />
# Entry 1 - Chainload another bootloader<br />
menuentry "Chainload my OS" {<br />
    set root=(hd0,3)<br />
    chainloader +1<br />
}<br />
</code><br />
<P align=justify>The numbering of the hard drives is also different &#8211; what was <code>(hd0,8)</code> on my system with GRUB legacy is now <code>(hd0,9)</code>.</P><br />
<P align=justify>Coming to the more interesting stuff &#8211; you have the option of setting the font for the GRUB interface. You need to convert your fonts to the pf2 format before you can use them. GRUB 2 provides an utility for this conversion &#8211; <code>grub-mkfont</code>. I tried converting my favorite Monaco from ttf to pf2 but the menu seems not to like the height of the font &#8211; I probably need to pass some extra parameters to <code>grub-mkfont</code>, will work that out later. If your graphics card is currently supported you can actually display a high-resolution GNU menu and maybe even a nice background image (not those 14 color pictures supported by GRUB legacy but a <i>proper</i> JPEG or TGA image). You can do all this by something like the following:</P><br />
<code><br />
if loadfont /usr/share/grub/unicode.pf2 ; then<br />
	set gfxmode="1024x768"<br />
	insmod gfxterm<br />
	insmod vbe<br />
	terminal_output gfxterm<br />
	if terminal_output gfxterm; then true ; else<br />
		terminal gfxterm<br />
	fi<br />
fi</p>
<p>insmod tga<br />
background_image /boot/grub/GrubSplash.tga<br />
</code><br />
<P align=justify>Overall the GNU GRUB 2 gives a nice feeling, it is stable on my Acer Aspire 4720z and when I boot up I get a nice 1024&#215;768 background image (it is still unable to display a 1280&#215;800 native resolution) and a nice and smooth font. The new GRUB is also <i>slightly</i> slower &#8211; you might notice a slight latency as the bootloader loads itself. In short, the new GRUB looks very promising and coupled with things like scripting support and real memory management one can guess how interesting the future will be.</P></p>
]]></content:encoded>
			<wfw:commentRss>http://playingwithpointers.000space.com/rendezvous-with-grub2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Gandhiism and Software</title>
		<link>http://playingwithpointers.000space.com/gandhiism-and-software/</link>
		<comments>http://playingwithpointers.000space.com/gandhiism-and-software/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 04:40:19 +0000</pubDate>
		<dc:creator>theDigitalAngel</dc:creator>
				<category><![CDATA[Digital Dope]]></category>
		<category><![CDATA[Offline Bytes]]></category>
		<category><![CDATA[ahimsa]]></category>
		<category><![CDATA[Free software]]></category>
		<category><![CDATA[Gandhism]]></category>
		<category><![CDATA[open-source]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://playingwithpointers.000space.com/gandhiism-and-software/</guid>
		<description><![CDATA[Guess what I just realized? Passive resistance is to ahimsa what open-source is to free software. The analogy just fits.
]]></description>
			<content:encoded><![CDATA[<p><P align=justify>Guess what I just realized? Passive resistance is to <i>ahimsa</i> what open-source is to free software. The analogy just fits.</P></p>
]]></content:encoded>
			<wfw:commentRss>http://playingwithpointers.000space.com/gandhiism-and-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A C++ STL Error Message</title>
		<link>http://playingwithpointers.000space.com/a-c-stl-error-message/</link>
		<comments>http://playingwithpointers.000space.com/a-c-stl-error-message/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 20:30:40 +0000</pubDate>
		<dc:creator>theDigitalAngel</dc:creator>
				<category><![CDATA[Digital Dope]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[Humour]]></category>
		<category><![CDATA[STL]]></category>

		<guid isPermaLink="false">http://playingwithpointers.000space.com/?p=138</guid>
		<description><![CDATA[Here&#8217;s an interesting error I got while compiling C++ code during a TopCoder SRM.
LongStraightRoad.cc:43: error: no match for ‘operator==’ in ‘dist. std::map::find [with _Key = std::basic_string, _Tp = double, _Compare = std::less, _Alloc = std::allocator](((const std::basic_string&#038;)((const std::basic_string*)(&#038; dest)))) == std::map::end [with _Key = std::basic_string, _Tp = double, _Compare = std::less, _Alloc = std::allocator]
PS: As far [...]]]></description>
			<content:encoded><![CDATA[<p><P align=justify>Here&#8217;s an interesting error I got while compiling C++ code during a TopCoder SRM.</P><br />
<code>LongStraightRoad.cc:43: error: no match for ‘operator==’ in ‘dist. std::map<_Key, _Tp, _Compare, _Alloc>::find [with _Key = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _Tp = double, _Compare = std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _Alloc = std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, double> >](((const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&#038;)((const std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)(&#038; dest)))) == std::map<_Key, _Tp, _Compare, _Alloc>::end [with _Key = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _Tp = double, _Compare = std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _Alloc = std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, double> >]</code><br />
<P align=justify>PS: As far as I know the new C++0x will do away with such cryptic template error messages</P></p>
]]></content:encoded>
			<wfw:commentRss>http://playingwithpointers.000space.com/a-c-stl-error-message/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running Mono Applications in XFCE</title>
		<link>http://playingwithpointers.000space.com/running-mono-applications-in-xfce/</link>
		<comments>http://playingwithpointers.000space.com/running-mono-applications-in-xfce/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 22:30:07 +0000</pubDate>
		<dc:creator>theDigitalAngel</dc:creator>
				<category><![CDATA[Digital Dope]]></category>
		<category><![CDATA[Banshee]]></category>
		<category><![CDATA[gnome-do]]></category>
		<category><![CDATA[Mono]]></category>
		<category><![CDATA[xfce]]></category>

		<guid isPermaLink="false">http://playingwithpointers.000space.com/?p=131</guid>
		<description><![CDATA[I have been using XFCE for around a month. Yesterday I tried installing gnome-do. The installation was successful but on running gnome-do I kept getting an 'Unable to open the session message bus.' error on my terminal. Today, after installing Banshee I faced the same problem.
Googling did not help &#8211; possibly because XFCE users do [...]]]></description>
			<content:encoded><![CDATA[<p><P align=justify>I have been using XFCE for around a month. Yesterday I tried installing gnome-do. The installation was successful but on running <code>gnome-do</code> I kept getting an <code>'Unable to open the session message bus.'</code> error on my terminal. Today, after installing Banshee I faced the same problem.</P><br />
<P align=justify>Googling did not help &#8211; possibly because XFCE users do not user Mono applications much. After a little hit and trial I figured out that the problem could be solved by launching mono applications as <code>dbus-launch &lt;application-name&gt;</code>. So to start <code>gnome-do</code> you type <code>dbus-launch gnome-do</code>.</P><br />
<P align=justify>PS: The <code>Super + Space</code> combination does not seem to work either &#8211; I&#8217;ve changed it to <code>&lt;Alt&gt;&lt;Ctrl&gt;Z</code>.</P></p>
]]></content:encoded>
			<wfw:commentRss>http://playingwithpointers.000space.com/running-mono-applications-in-xfce/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Passion of the Caffeine</title>
		<link>http://playingwithpointers.000space.com/the-passion-of-the-caffeine/</link>
		<comments>http://playingwithpointers.000space.com/the-passion-of-the-caffeine/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 16:51:35 +0000</pubDate>
		<dc:creator>theDigitalAngel</dc:creator>
				<category><![CDATA[Offline Bytes]]></category>
		<category><![CDATA[coffee]]></category>
		<category><![CDATA[Dehradoon]]></category>
		<category><![CDATA[IIT]]></category>
		<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://playingwithpointers.000space.com/?p=128</guid>
		<description><![CDATA[This month in Dehradoon I rekindled an old flame. Coffee.
The truth is that I find it difficult to get decent coffee inside the campus of IIT Kharagpur (at least when you live in the Madan Mohan Malviya Hall of Residence). You are either stuck with some weird synthetic high-sugar stuff handed to you by the [...]]]></description>
			<content:encoded><![CDATA[<p><P align=justify>This month in Dehradoon I rekindled an old flame. Coffee.</P><br />
<P align=justify>The truth is that I find it difficult to get decent coffee inside the campus of IIT Kharagpur (at least when you live in the Madan Mohan Malviya Hall of Residence). You are either stuck with some weird synthetic high-sugar stuff handed to you by the Nescafe guys (not to mention the paper cups) or have to carry your ass to the Veggies / Eggies restaurant to sit about fifteen minutes for something slightly less shitty. And I, trust me, do not want to get started on the detergent-smelling <i>coffee</i> we were served inside the MMM mess.</P><br />
<P align=justify>As a coffee freak, the mug is as important to me as the coffee. I (naturally) prefer a large mug, in earth colors. Right now I am sipping from a beautiful hand-painted light-brown mug I picked up a year and a half ago from a national trader&#8217;s fair thing in Dehradoon. I actually carried this thing to Kharagpur &#8211; too bad I never got to use it!</P><br />
<P align=justify>As far as the brew is concerned I love the plain Nescafe (this is not an advertisement, I am just voicing my personal opinions). And by plain I mean plain, not fuckin 30 % chicory bullshit. And I like it strong, about one heaped tablespoon per cup.</P><br />
<P align=justify>I have learned a lot in my one year stint in Kharagpur &#8211; not take-notes-in-the-classroom learning but download-video-lectures-from-dc-and-actually-make-some-good-use-of-the-internet learning. But now I sit in front of my terminal, listening to Dylan and Rammstein (I know I&#8217;m weird), sipping an unusually strong brew of coffee, my legs completely sore from today&#8217;s workout, typing code (well not exactly, but that&#8217;s what I was doing few minutes ago) I feel myself reconnecting with a part of me which I had lost &#8211; a part of myself I had abandoned. That will not happen again. I will not let that happen again.</P><br />
<P align=justify>There! My first non-technical post.</P></p>
]]></content:encoded>
			<wfw:commentRss>http://playingwithpointers.000space.com/the-passion-of-the-caffeine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting to JFS</title>
		<link>http://playingwithpointers.000space.com/converting-to-jfs/</link>
		<comments>http://playingwithpointers.000space.com/converting-to-jfs/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 10:23:27 +0000</pubDate>
		<dc:creator>theDigitalAngel</dc:creator>
				<category><![CDATA[Digital Dope]]></category>
		<category><![CDATA[conversion]]></category>
		<category><![CDATA[ext3]]></category>
		<category><![CDATA[GNU]]></category>
		<category><![CDATA[hard drive]]></category>
		<category><![CDATA[JFS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[partitions]]></category>

		<guid isPermaLink="false">http://playingwithpointers.000space.com/?p=107</guid>
		<description><![CDATA[I finally did it! Now my root partition is, instead of a boring old ext3 a shiny new JFS parition.
The very first thing I did was build a new kernel with JFS support compiled into it. While configuring the kernel I also selected the deadline IO scheduler as the default scheduler since it tends to [...]]]></description>
			<content:encoded><![CDATA[<p><P align=justify>I finally did it! Now my root partition is, instead of a boring old <code>ext3</code> a shiny new <code>JFS</code> parition.</P><br />
<P align=justify>The very first thing I did was build a new kernel with JFS support compiled into it. While configuring the kernel I also selected the deadline IO scheduler as the default scheduler since it tends to extract the best performance out of a JFS partition. Then I installed the new kernel. Now I needed some way to convert the existing root partition (in the device <code>/dev/sda9</code>) from <code>ext3</code> to <code>JFS</code>. Since even after having installed every program I need (and two and a half desktop environments) the total size of the partition was a meager 9 GiB (compare that to a fresh installation of Windows Vista) this had a simple and safe solution &#8211; simply backup and restore the files. One nice automated way is to use some software like CloneZilla. I, however, like doing things my way. I burned an Arch Linux installation CD and started up my notebook from it.</P><br />
<P align=justify>The best part about the Arch Linux install live CD is that after booting up it gives you a very clean, no-frills bash environment to work on. Once I was up and running I did a simple <code>mkdir /media/root</code> and mounted the partition onto the new directory by <code>mount /dev/sda9 /media/root</code>. Since I was logged in as <code>root</code> I really did not need to use <code>sudo</code> or <code>su</code>. I also needed another partition with space to spare. I used <code>/dev/sda5</code> &#8211; an <code>ntfs</code> partition. I mounted it by <code>mkdir /media/backup</code> and then <code>mount -t ntfs-3g /dev/sda5 /media/backup</code>. Instead of simply copying the data from <code>/media/root</code> to <code>/media/backup</code> I used TAR &#8211; <code>cd /media/root; tar cvf * /media/backup/everything.tar</code>. This actually sped up the process a little (or so I though) since it prevented the <code>ntfs-3g</code> driver from wasting time by allocating space for the tens of thousands of files. The entire thing took about twenty minutes to complete.</P><br />
<P align=justify>That done I unmounted the partition &#8211; <code>umount /media/root</code> and ran <code>mkfs.jfs /dev/sda9</code>. This warned me about losing all data and then converted the partition. The conversion, surprisingly, took only about a second or two.</P><br />
<P align=justify>Now it was time to restore the files again &#8211; I mounted the partition again using <code>mount /dev/sda9 /media/root</code> and extracted the tar files &#8211; <code>cd /media/root; tar xvf /media/backup/everything.tar</code>. Then I installed GRUB using grub-install. I restarted my system only to find the kernel unable to boot.</P><br />
<P align=justify>A little probing showed what was wrong &#8211; while initially installing Arch Linux the installer had configured my GRUB&#8217;s <code>menu.lst</code> to recognize my disk using its UUID. The reformatting some reset the UUID of my partitions (I really do not know how or why). I fixed that by changing the <code>/by-uuid</code> thingode>/dev/sda9</code>. I know, I know - this was not the <i>right</i> way but it did work and I saved a lot of time. I had to fix <code>/etc/fsatb</code> for the same reason.</P><br />
<P align=justify>So now my computer boots faster, applications load without eating too much CPU and the system is more responsive overall.</P></p>
]]></content:encoded>
			<wfw:commentRss>http://playingwithpointers.000space.com/converting-to-jfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wrong framebuffer resolution in 2.6.30</title>
		<link>http://playingwithpointers.000space.com/wrong-framebuffer-resolution-in-2-6-30/</link>
		<comments>http://playingwithpointers.000space.com/wrong-framebuffer-resolution-in-2-6-30/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 08:33:43 +0000</pubDate>
		<dc:creator>theDigitalAngel</dc:creator>
				<category><![CDATA[Digital Dope]]></category>
		<category><![CDATA[Acer]]></category>
		<category><![CDATA[framebuffer]]></category>
		<category><![CDATA[GM965]]></category>
		<category><![CDATA[i915]]></category>
		<category><![CDATA[Intel]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[resolution]]></category>

		<guid isPermaLink="false">http://playingwithpointers.000space.com/?p=93</guid>
		<description><![CDATA[The i915 driver for the Intel GM965 is broken in kernel 2.6.30 &#8211; instead of getting 1280&#215;800 framebuffer console you end up getting up getting 1024&#215;768. Please note that the (overall) resolution is perfectly fine &#8211; only the text will appear to remain constrained in an imaginary 1024&#215;768 box. This happens at least in Acer [...]]]></description>
			<content:encoded><![CDATA[<p><P align=justify>The i915 driver for the Intel GM965 is broken in kernel 2.6.30 &#8211; instead of getting 1280&#215;800 framebuffer console you end up getting up getting 1024&#215;768. Please note that the (overall) resolution is perfectly fine &#8211; only the text will appear to remain constrained in an imaginary 1024&#215;768 <em>box</em>. This happens at least in Acer 4720z and probably in other boxes too which use the GM965 and have a TV out. What really happens is that the kernel mistakenly detects a projector connected to the TV-OUT even though there is none and sets the framebuffer resolution to 1024&#215;768. This is evident from the output of <code>dmesg</code> &#8211; </p>
<p><code>...<br />
[drm] TV-12: set mode 1024x768 18<br />
...<br />
</code></p>
<p><P align=justify>This is especially annoying for people like me who</p>
<ol>
<li><P align=justify>Like to use the console for things that do not require starting up X.org</li>
<li><P align=justify>Have painstakingly created a boot-logo which the wrong resolution is ruining.</li>
<li><P align=justify>Want every aspect of their computers to be flawless.</li>
</ol>
<p><P align=justify>All the while I was trying to google with terms like &#8220;wrong resolution&#8221; and &#8220;changing the framebuffer resolution&#8221; only to find the forums invariably advising me to add <code>vga=773</code> to the kernel boot line &#8211; something I knew would not work.</p>
<p><P align=justify>Anyways after googling with the above dmesg line I finally came across a patch which supposedly fixes the problem. When I tried to patch my kernel, however I got two failed hunks. So I tried to use my own <em>hunking</em> abilities and fired up my trusted <code>vim</code>.</p>
<p><P align=justify>To cut a long story short, the culprit is <code>drivers/gpu/drm/i915/intel_display.c</code> and you can download an edited version <a href="http://www.playingwithpointers.com/custom/intel_display.c">here</a>. Just replace the file, re-compile and you are ready to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://playingwithpointers.000space.com/wrong-framebuffer-resolution-in-2-6-30/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Experiencing Music</title>
		<link>http://playingwithpointers.000space.com/experiencing-music/</link>
		<comments>http://playingwithpointers.000space.com/experiencing-music/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 07:27:50 +0000</pubDate>
		<dc:creator>theDigitalAngel</dc:creator>
				<category><![CDATA[Digital Dope]]></category>
		<category><![CDATA[GNU]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[media player daemon]]></category>
		<category><![CDATA[mpc]]></category>
		<category><![CDATA[mpd]]></category>
		<category><![CDATA[music]]></category>

		<guid isPermaLink="false">http://playingwithpointers.000space.com/?p=45</guid>
		<description><![CDATA[I just discovered a new companion (no, not an iPod), but the MPD &#8211; Music Player Daemon. This is the probably the first time I am feeling truly satisfied about my music player.
The MPD runs as a service. It binds to a port on your computer (6600 by default). Once you have the MPD up [...]]]></description>
			<content:encoded><![CDATA[<p><P align=justify>I just discovered a new companion (no, not an iPod), but the MPD &#8211; Music Player Daemon. This is the probably the first time I am feeling truly satisfied about my music player.</p>
<p><P align=justify>The MPD runs as a service. It binds to a port on your computer (6600 by default). Once you have the MPD up and running (you need to edit <code>mpd.conf</code> for one thing) you need to install (or write yourself) additional client software which <em>talks</em> to the daemon. Once such program is <code>mpc</code>.</p>
<p><P align=justify><code>mpc</code> is essentially a console program. You need to set the <code>MPD_HOST</code> and <code>MPD_PORT</code> environmental before you start using it (unless you&#8217;ve really left everything to the defaults). So to first scan the directory you&#8217;ve set in <code>mpd.conf</code> as the root of music you need to run <code>mpc update</code>. This fetches the file names and the id3 tags to create a media library. Then you can search by running <code>mpc search ANY some_term</code> (hint &#8211; read the man-pages) to get a list of the songs which have <code>some_term</code> in any field. You may specifically search in the author field, in the title field among other things.</p>
<p><P align=justify>You run <code>mpc add</code> to add music to the playlist, <code>mpc play</code> to start playing it, <code>mpc next</code> to move to the next song and so on &#8230;</p>
<p><P align=justify>I have not tried this but it seems that in case you are on a network anyone on the network may stream music from your MPD server. However you do have access control &#8211; you may set a password and not allow the users who do not authenticate themselves with the password to, say, change the song. It is also reportedly easy to hook this up with IceCast to broadcast over HTTP.</p>
]]></content:encoded>
			<wfw:commentRss>http://playingwithpointers.000space.com/experiencing-music/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
