<?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>thinkblobs</title>
	<atom:link href="http://abhidg.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://abhidg.wordpress.com</link>
	<description>my thought-matrix in the web.</description>
	<lastBuildDate>Wed, 02 Nov 2011 13:26:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='abhidg.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>thinkblobs</title>
		<link>http://abhidg.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://abhidg.wordpress.com/osd.xml" title="thinkblobs" />
	<atom:link rel='hub' href='http://abhidg.wordpress.com/?pushpress=hub'/>
		<item>
		<title>indian weather command line tool</title>
		<link>http://abhidg.wordpress.com/2011/10/05/indian-weather-command-line-tool/</link>
		<comments>http://abhidg.wordpress.com/2011/10/05/indian-weather-command-line-tool/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 21:21:19 +0000</pubDate>
		<dc:creator>abhidg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://abhidg.wordpress.com/?p=220</guid>
		<description><![CDATA[Inspired by http://fungi.yuggoth.org/weather, I made a small command line tool to show the weather from a given automatic weather station (AWS) in India. While fungi&#8217;s weather parses US METAR data, such data is usually only available for airports in India. But the IMD has a nice Google maps-enabled page which shows the weather from the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhidg.wordpress.com&amp;blog=616206&amp;post=220&amp;subd=abhidg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Inspired by <a href="http://fungi.yuggoth.org/weather">http://fungi.yuggoth.org/weather</a>, I made a small command line tool to show the weather from a given automatic weather station (AWS) in India.</p>
<p>While fungi&#8217;s weather parses US METAR data, such data is usually only available for airports in India. But the <abbr title="Indian Meteorological Department">IMD</abbr> has a nice Google maps-enabled <a href="http://www.imdkolkata.gov.in/maps/rmckol/plotaws.php">page</a> which shows the weather from the different AWS. The data is available as a CSV file with the weather encoded in SYNOP format, which this tool decodes and shows on the terminal.</p>
<p>The code is available at <a href="http://github.com/abhidg/inwthr">http://github.com/abhidg/inwthr</a>.</p>
<br />Filed under: <a href='http://abhidg.wordpress.com/category/uncategorized/'>Uncategorized</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhidg.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhidg.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhidg.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhidg.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhidg.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhidg.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhidg.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhidg.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhidg.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhidg.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhidg.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhidg.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhidg.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhidg.wordpress.com/220/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhidg.wordpress.com&amp;blog=616206&amp;post=220&amp;subd=abhidg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhidg.wordpress.com/2011/10/05/indian-weather-command-line-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/53e37326139afdc7aa3d5b07d12010e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abhidg</media:title>
		</media:content>
	</item>
		<item>
		<title>Typing the Indian rupee symbol in Debian/Ubuntu</title>
		<link>http://abhidg.wordpress.com/2010/10/14/typing-the-indian-rupee-symbol-in-debianubuntu/</link>
		<comments>http://abhidg.wordpress.com/2010/10/14/typing-the-indian-rupee-symbol-in-debianubuntu/#comments</comments>
		<pubDate>Thu, 14 Oct 2010 07:54:45 +0000</pubDate>
		<dc:creator>abhidg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[indian]]></category>
		<category><![CDATA[keyboard]]></category>

		<guid isPermaLink="false">http://abhidg.wordpress.com/?p=196</guid>
		<description><![CDATA[(If you have got a font which has the Indian rupee symbol installed, then the rest of the instructions should hold good for any other Linux distribution as well. I also assume you are using Gnome for a few of the instructions. Note: If you have one of the fonts listed below installed, then you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhidg.wordpress.com&amp;blog=616206&amp;post=196&amp;subd=abhidg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>(If you have got a font which has the Indian rupee symbol installed, then the rest of the instructions should hold good for any other Linux distribution as well. I also assume you are using Gnome for a few of the instructions. <b>Note</b>: If you have one of the fonts listed below installed, then you can type <b>Ctrl+Shift+u 20b9</b> to get the rupee symbol. This works in all GTK/Gnome applications and in OpenOffice. However it is cumbersome and the method below shows you how to get the rupee symbol by typing right Alt + 3.)</p>
<p>First, you have to get a font which has the <a href="http://en.wikipedia.org/wiki/Indian_rupee_sign">Indian Rupee symbol</a>, which has the Unicode codepoint U20B9. As of writing, I know of two fonts which support it (at the correct Unicode location instead of replacing other letters), the <a href="http://font.ubuntu.com">Ubuntu</a> font and the <a href="http://evertype.com/fonts/rupakara/">Rupakara</a> font.</p>
<p>If you are using Ubuntu maverick (10.10), then the Ubuntu font already comes out of the box, so you don&#8217;t need to install anything. If you are using older Ubuntu versions or Debian then you can</p>
<ul>
<li>Install the <b>Ubuntu</b> font, which you can <a href="http://packages.ubuntu.com/maverick/all/ttf-ubuntu-font-family/download">get here</a>.</li>
<li>Install my <a href="http://db.tt/o9ELzrQ">Debian package</a> for the <b>Rupakara</b> font.</li>
</ul>
<p>These packages can be installed by using <code>sudo dpkg -i filename.deb</code> at a Terminal.</p>
<p>To type the rupee symbol, you either need to <b>replace</b> one of the existing characters on the keyboard or <b>use the <a href="http://en.wikipedia.org/wiki/AltGr_key">AltGr key</a></b>, using which one can use the extended keyboard and get a lot of extra glyphs. If you are using the standard keyboard layout (US English), you do not have an AltGr key and have to remap one of the existing Alt keys. Users with the US International or US Alternative International or UK keyboard layouts have the right Alt key mapped as the AltGr key. [ You can find out which keyboard layout you are using now by going to System » Preferences » Keyboard and selecting Layouts. The top option is your default layout and if you have more than one layout in the list then the keyboard indicator icon at the top right should show the current layout. ]</p>
<p>An alternative to switching to the US International/UK layout is to simply remap your right Alt key to the AltGr key, which can be done in Keyboard preferences » Layouts » Options. Select <em>Keys to choose 3rd level</em> and tick the <em>Right Alt</em> option. Also check <em>Enable extra typographic characters</em> under <em>Miscellaneous compatibility options</em> (Figure 1). A way of doing this from the command line is to use the first part of the tutorial given <a href="http://www.physics.drexel.edu/liki/index.php/Unicode">here</a>.</p>
<h4>Figure 1</h4>
<p><a href="http://abhidg.files.wordpress.com/2010/10/screenshot-keyboard-layout-options.png"><img src="http://abhidg.files.wordpress.com/2010/10/screenshot-keyboard-layout-options.png?w=300&#038;h=270" alt="" title="Screenshot-Keyboard Layout Options" width="300" height="270" class="alignnone size-medium wp-image-206" /></a></p>
<p>Once you have an AltGr key, the next step is to assign the Rupee symbol to AltGr+a key of your choice. I choose 3, so AltGr+3 will give you the rupee sign. To do this open a text editor and type:</p>
<pre>
keycode  12 = 3 numbersign 3 numbersign U20B9 sterling U20B9 sterling</pre>
<p>Save the file with the name <em>.Xmodmap</em> (note the dot at the front) in your home folder.</p>
<p>This will assign the rupee to AltGr+3 and the pound (£) symbol to AltGr+Shift+3.</p>
<p>Log out and log back in, Gnome should ask if you want to load the .Xmodmap file, click on the file and then click <em>Load</em>. Enjoy the rupee symbol!</p>
<p><b>PS</b> If you are use Openbox or a lightweight window manager then you should put <code>xmodmap ~/.Xmodmap</code> in your <em>~/.xinitrc</em> or <em>~/.xsession</em>. Of course, if you already have a <em>.Xmodmap</em> file then append the previous line there.</p>
<br />Filed under: <a href='http://abhidg.wordpress.com/category/uncategorized/'>Uncategorized</a> Tagged: <a href='http://abhidg.wordpress.com/tag/indian/'>indian</a>, <a href='http://abhidg.wordpress.com/tag/keyboard/'>keyboard</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhidg.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhidg.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhidg.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhidg.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhidg.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhidg.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhidg.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhidg.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhidg.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhidg.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhidg.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhidg.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhidg.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhidg.wordpress.com/196/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhidg.wordpress.com&amp;blog=616206&amp;post=196&amp;subd=abhidg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhidg.wordpress.com/2010/10/14/typing-the-indian-rupee-symbol-in-debianubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/53e37326139afdc7aa3d5b07d12010e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abhidg</media:title>
		</media:content>

		<media:content url="http://abhidg.files.wordpress.com/2010/10/screenshot-keyboard-layout-options.png?w=300" medium="image">
			<media:title type="html">Screenshot-Keyboard Layout Options</media:title>
		</media:content>
	</item>
		<item>
		<title>Music players of the next generation</title>
		<link>http://abhidg.wordpress.com/2010/04/25/music-players-of-the-next-generation/</link>
		<comments>http://abhidg.wordpress.com/2010/04/25/music-players-of-the-next-generation/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 09:11:36 +0000</pubDate>
		<dc:creator>abhidg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[future]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[music]]></category>

		<guid isPermaLink="false">http://abhidg.wordpress.com/?p=189</guid>
		<description><![CDATA[I read this post and felt really inspired. It got me thinking about what music players of the next generation could look like. My first music player was iTunes 4 or maybe Winamp. My music collection could be counted on fingers and I never really used playlists (I still use them rarely). Then I moved [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhidg.wordpress.com&amp;blog=616206&amp;post=189&amp;subd=abhidg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I read <a href="http://bloc.eurion.net/archives/2010/automatic-music-rating/">this post</a> and felt really inspired. It got me thinking about what music players of the next generation could look like.</p>
<p>My first music player was iTunes 4 or maybe Winamp. My music collection could be counted on fingers and I never really used playlists (I still use them rarely). Then I moved on to Linux and started using audacious and rhythmbox. I tried out banshee for sometime, but that really hogged my system.</p>
<p>So my ideas for the next generation of music players:</p>
<ol>
<li>Someone implements rainct&#8217;s <a href="http://bloc.eurion.net/archives/2010/automatic-music-rating/">suggestion</a> and it is also media player independent <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li>The volume goes up and down depending on how far you are from the computer (using some sort of algorithm which is used by say, <a href="http://freshmeat.net/projects/blueproximity">blueproximity</a> for locking the screen when you are away)</li>
<li>Building on #1, sync popular tracks to the media player (hopefully players also get the same kind of stuff as #1).</li>
<li>Remember the volume used for each track. This should be simple to implement.</li>
<li>All of this is in a nice data store (zeitgeist/couchdb). Sync with Ubuntu one or similar services to get <a href="http://zeroconf.org">zeroconf</a> sharing of settings across all computers.</li>
<li>A simple way of using blueproximity like things is to shift music playing from different speakers as one moves around the house.</li>
<li>Integrate with <a href="http://burtonini.com/bzr/shackleton/">shackleton</a>, which is an awesome tool for detecting context. Example: in the office, turn off loud rock and roll songs and switch to ambient music.</li>
<li>Filter by language of the music and/or instrument *without* any manual tagging.</li>
<li>Integrate live data from social networking (twitter/jabber status), so if your friends are playing something which is in your library you can listen to it, right now!</li>
</ol>
<p>And we need good speech recognition, soon. Then we can take the leap to sci-fi music players <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />Filed under: <a href='http://abhidg.wordpress.com/category/uncategorized/'>Uncategorized</a> Tagged: <a href='http://abhidg.wordpress.com/tag/automation/'>automation</a>, <a href='http://abhidg.wordpress.com/tag/future/'>future</a>, <a href='http://abhidg.wordpress.com/tag/linux/'>linux</a>, <a href='http://abhidg.wordpress.com/tag/music/'>music</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhidg.wordpress.com/189/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhidg.wordpress.com/189/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhidg.wordpress.com/189/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhidg.wordpress.com/189/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhidg.wordpress.com/189/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhidg.wordpress.com/189/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhidg.wordpress.com/189/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhidg.wordpress.com/189/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhidg.wordpress.com/189/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhidg.wordpress.com/189/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhidg.wordpress.com/189/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhidg.wordpress.com/189/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhidg.wordpress.com/189/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhidg.wordpress.com/189/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhidg.wordpress.com&amp;blog=616206&amp;post=189&amp;subd=abhidg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhidg.wordpress.com/2010/04/25/music-players-of-the-next-generation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/53e37326139afdc7aa3d5b07d12010e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abhidg</media:title>
		</media:content>
	</item>
		<item>
		<title>Jaunty notifications on Arch Linux</title>
		<link>http://abhidg.wordpress.com/2009/03/27/jaunty-notifications-on-arch-linux/</link>
		<comments>http://abhidg.wordpress.com/2009/03/27/jaunty-notifications-on-arch-linux/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 14:40:40 +0000</pubDate>
		<dc:creator>abhidg</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[arch]]></category>
		<category><![CDATA[jaunty]]></category>
		<category><![CDATA[notifications]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ui]]></category>

		<guid isPermaLink="false">http://abhidg.wordpress.com/?p=81</guid>
		<description><![CDATA[The upcoming Ubuntu (codenamed Jaunty Jackalope) 9.04 has a new notification system. Since it&#8217;s so beautiful, you may wonder if it&#8217;s possible to get that stuff onto your Arch box. Here&#8217;s how: Install notify-osd-bzr from Hugo Doria&#8216;s repository. You can enable the repository by putting these lines at the top of your pacman.conf: [archlinuxbr] Server [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhidg.wordpress.com&amp;blog=616206&amp;post=81&amp;subd=abhidg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The upcoming Ubuntu (codenamed Jaunty Jackalope) 9.04 has a <a href="http://www.markshuttleworth.com/archives/265">new notification system</a>. Since it&#8217;s so beautiful, you may wonder if it&#8217;s possible to get that stuff onto your Arch box. Here&#8217;s how:</p>
<ul>
<li>Install <tt>notify-osd-bzr</tt> from <a href="http://hdoria.archlinux-br.org">Hugo Doria</a>&#8216;s repository. You can enable the repository by putting these lines at the top of your pacman.conf:
<pre>
[archlinuxbr]
Server = http://repo.archlinux-br.org/i686/
</pre>
<p>For those of you on 64-bit you can install the notify-osd-bzr package from AUR.</li>
<li>notify-osd shows dialogs for notifications with actions which looks quite ugly. So quite a few applications have to be patched to remove actions for notifications wherever possible. <a href="http://aur.archlinux.org/packages.php?O=0&amp;K=notify-osd&amp;do_Search=Go">Patched versions</a> of some applications can be found in AUR. Some of these are also available from the archlinuxbr repository.</li>
<li>Install <a href="http://aur.archlinux.org/packages.php?ID=7531">human-icon-theme</a> from AUR and use it to get the icons in gnome-power-manager and networkmanager notifications (unfortunately, these icons not yet standardised and only come with the human theme).</li>
<li>Enjoy the new notifications! Note that you must logout and log back in before the new notifications can be active.</li>
</ul>
<p>For more information on the new notification system in Jaunty you can read up the specification at: <a href="http://wiki.ubuntu.com/NotifyOSD">http://wiki.ubuntu.com/NotifyOSD</a>.</p>
<br />Posted in linux Tagged: arch, jaunty, linux, notifications, ubuntu, ui <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhidg.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhidg.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhidg.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhidg.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhidg.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhidg.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhidg.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhidg.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhidg.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhidg.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhidg.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhidg.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhidg.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhidg.wordpress.com/81/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhidg.wordpress.com&amp;blog=616206&amp;post=81&amp;subd=abhidg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhidg.wordpress.com/2009/03/27/jaunty-notifications-on-arch-linux/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/53e37326139afdc7aa3d5b07d12010e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abhidg</media:title>
		</media:content>
	</item>
		<item>
		<title>making keyboard shortcuts in linux as uniform as the mac</title>
		<link>http://abhidg.wordpress.com/2009/03/11/making-keyboard-shortcuts-in-linux-as-uniform-as-the-mac/</link>
		<comments>http://abhidg.wordpress.com/2009/03/11/making-keyboard-shortcuts-in-linux-as-uniform-as-the-mac/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 07:27:53 +0000</pubDate>
		<dc:creator>abhidg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[ui]]></category>

		<guid isPermaLink="false">http://abhidg.wordpress.com/?p=72</guid>
		<description><![CDATA[Keyboard shortcuts in GNU/Linux are not as uniform as in, say the Macintosh. Having uniform keyboard shortcuts for common tasks which do not conflict is an integral part of a good user interface. While the trinity of cut-copy-paste shortcuts have been almost universally implemented, there are quite a few other shortcuts that should be common [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhidg.wordpress.com&amp;blog=616206&amp;post=72&amp;subd=abhidg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Keyboard shortcuts in GNU/Linux are not as uniform as in, say the Macintosh. Having uniform keyboard shortcuts for common tasks which do not conflict is an integral part of a good user interface. While the trinity of cut-copy-paste shortcuts have been almost universally implemented, there are quite a few other shortcuts that should be common (closing a window, quitting an application, opening preferences). Yesterday, I tried to get some uniformity in keyboard shortcuts in my GNOME desktop.</p>
<p>The first thing to do is to allow changing the accelerators (keyboard shortcuts) in the GNOME configuration. This can be done by issuing the following command at a Terminal: <tt><br />
gconftool-2 -t bool -s /desktop/gnome/interface/can_change_accels true</tt></p>
<p>Then I mapped Ctrl to the Alt key (which is just in the place where the Command key is on the Mac) and the Alt key to the Windows key. This can be done in GNOME by going to <i>System</i> »<i>Preferences</i> » <i>Keyboard</i> » <i>Layout</i> » <i>Layout Options&#8230;</i> and changing <i>Alt/Win key behaviour</i>. This is not really necessary, but mapping the Ctrl key to the Alt key made it a lot easier for my fingers.</p>
<p>Now to change the keyboard shortcut corresponding to any menu in GNOME, you simply have to select the menu item and press the shortcut you wish to have associated with the menu item. However, this does not work for all GTK programs. The programs for which I could change the shortcuts using this way included Nautilus, Rhythmbox, Pidgin, Totem, Terminal, Gedit, Image Viewer. For example, I changed all the preferences shortcuts to <i>Control+comma</i>. Keep in mind that if the shortcut you assign is already assigned to some other function, then the shortcut will be reassigned to the menu item you&#8217;ve selected and the previous functionality corresponding to the shortcut will not have any shortcut assigned to it.</p>
<p>Some other shortcuts that I changed in Nautilus are: <i>Control+I</i> for Properties (this is consistent with the same shortcut for Firefox&#8217;s Page Info and the Mac OS X Finder), <i>Control+D</i> for Duplicate, <i>Control+Shift+Delete</i> for Empty Trash and <i>Control+Shift+C</i> for Computer.</p>
<p>Of course, we also have to change the shortcuts for the window manager we&#8217;re using. Since I&#8217;m using Compiz, I used <tt>ccsm</tt> (Arch: <tt>ccsm</tt>, Ubuntu/Debian: <tt>compizconfig-settings-manager</tt> package), to change the shortcut for closing an window to <i>Control+W</i> (in <i>General Options</i> » <i>Key bindings</i>). Also I changed the default shortcut for Run Command&#8230; from <i>Alt+F2</i> to <i>Control+space</i> in <i>Gnome Compatibility</i>. Since I&#8217;d gotten used to pressing <i>Alt+Tab</i> for switching windows, and now <i>Alt</i> had become the <i>Win</i> key, I also had to change the shortcut for switching windows to <i>Control+tab</i> (in <i>Application Switcher</i>).</p>
<p><b>Firefox</b>: I used the Keyconfig extension to change the keyboard shortcuts in Firefox. I changed the Preferences, Back and Forward shortcuts, as well as the shortcuts for switching to tabs 1 to 9. Since <i>Control+W</i> was now used to close the window, I assigned <i>Control+Shift+W</i> for closing the tab (the same applied for other applications which use tabs a lot, like Gedit).</p>
<p><b>VLC</b>. I tried to change the shortcut for preferences in VLC to <i>Control+comma</i> but I could not find any way of doing so. There is an option for changing the hotkeys, but that does not include Preferences. So I&#8217;ve to stick with the default for the time being. <b>GIMP</b> had a nice shortcut editor, using which I could easily change the shortcut for Preferences.</p>
<p>After all this, you might want to turn off the ability to change accelerators in GNOME by issuing this at the terminal: <tt>gconftool-2 -t bool -s /desktop/gnome/interface/can_change_accels false</tt></p>
<p><i>Update (18 Oct 2009)</i>: Registered the <a href="https://blueprints.launchpad.net/ubuntu/+spec/uniform-keyboard-shortcuts">uniform-keyboard-shortcuts</a> blueprint in Launchpad.</p>
<br />Posted in Uncategorized Tagged: interface, keyboard, linux, mac, ui <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhidg.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhidg.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhidg.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhidg.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhidg.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhidg.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhidg.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhidg.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhidg.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhidg.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhidg.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhidg.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhidg.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhidg.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhidg.wordpress.com&amp;blog=616206&amp;post=72&amp;subd=abhidg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhidg.wordpress.com/2009/03/11/making-keyboard-shortcuts-in-linux-as-uniform-as-the-mac/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/53e37326139afdc7aa3d5b07d12010e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abhidg</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting up a planet</title>
		<link>http://abhidg.wordpress.com/2008/12/28/setting-up-a-planet/</link>
		<comments>http://abhidg.wordpress.com/2008/12/28/setting-up-a-planet/#comments</comments>
		<pubDate>Sun, 28 Dec 2008 14:03:23 +0000</pubDate>
		<dc:creator>abhidg</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[planet]]></category>

		<guid isPermaLink="false">http://abhidg.wordpress.com/?p=52</guid>
		<description><![CDATA[So, how does one set up a planet? In case anyone thinks I&#8217;m nuts, I&#8217;m talking of setting up a planet like this (or this). A planet here is just a collection of blogs, and I&#8217;ll talk about how to set up one using the software called planet venus. To get started just download the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhidg.wordpress.com&amp;blog=616206&amp;post=52&amp;subd=abhidg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So, how does one set up a planet?</p>
<p>In case anyone thinks I&#8217;m nuts, I&#8217;m talking of setting up a planet like <a href="http://planet.iiserk.net">this</a> (or <a href="http://planet.debian.org">this</a>). A planet here is just a collection of blogs, and I&#8217;ll talk about how to set up one using the software called <a href="http://intertwingly.net/code/venus/">planet venus</a>. To get started just download the <a href="http://intertwingly.net/code/venus.tgz">tarball</a>. Extract it into a directory of your choice (using <code>tar zxvf venus.tgz</code>), and you&#8217;ll see the directory structure as on the website. The documentation is quite detailed, but if you want a planet quickly, you won&#8217;t have to read most of it.</p>
<p>Here&#8217;s what I did: I made a directory and copied the file <code>themes/classic_fancy/config.ini</code> to this directory (you might prefer some other theme, in this case choose the appropriate <code>config.ini</code>). Edit the file accordingly; mostly you&#8217;d need to change the <code>[planet]</code> section. The other important settings to check are <b>cache_directory</b> and <b>output_dir</b>. It&#8217;s better to set the full path here and in the other places which require a directory (template_files) &#8212; this helps when running the cronjob later. All the generated files will be in <b>output_dir</b>. You can find the <code>index.html.tmpl</code> (index.html template) in the theme directory and the other templates (Atom, RSS feeds) in the <b>themes/common</b> directory.</li>
<p> Remember to put <code>planet.css</code> and other relevant images in the proper places, otherwise people will see an ugly page!</p>
<p>Now add the feeds which you would like to have in the planet in the following format:</p>
<pre>
[http://blah.wordpress.com/feed/] # This should be the feed url
name = My Name
</pre>
<p>You&#8217;re done! Now switch to the directory where you untarred the planet venus code and run <tt>python planet.py /path/to/config.ini</tt>. This will download the feeds, store them in the cache and generate the index.html, Atom and RSS feeds.</p>
<p>Finally set this thing to run as a cronjob (using <tt>crontab -e</tt>); the snippet below will make planet.py run hourly:</p>
<pre>
0 * * * * /usr/bin/python /full/path/to/planet.py /full/path/to/config.py
</pre>
<br />Posted in internet, linux Tagged: blog, configuration, planet <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhidg.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhidg.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhidg.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhidg.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhidg.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhidg.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhidg.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhidg.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhidg.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhidg.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhidg.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhidg.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhidg.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhidg.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhidg.wordpress.com&amp;blog=616206&amp;post=52&amp;subd=abhidg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhidg.wordpress.com/2008/12/28/setting-up-a-planet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/53e37326139afdc7aa3d5b07d12010e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abhidg</media:title>
		</media:content>
	</item>
		<item>
		<title>Science Conclave at Allahabad</title>
		<link>http://abhidg.wordpress.com/2008/12/25/science-conclave-at-allahabad/</link>
		<comments>http://abhidg.wordpress.com/2008/12/25/science-conclave-at-allahabad/#comments</comments>
		<pubDate>Thu, 25 Dec 2008 16:19:26 +0000</pubDate>
		<dc:creator>abhidg</dc:creator>
				<category><![CDATA[science]]></category>
		<category><![CDATA[trip]]></category>

		<guid isPermaLink="false">http://abhidg.wordpress.com/?p=31</guid>
		<description><![CDATA[Merry Christmas to the blogosphere! Christmas evenings are a nice time to talk about lots of things, so I&#8217;ll talk about the trip to the Science Conclave at IIIT Allahabad which I attended along with my friends (eight of them, to be precise) and a scientist from our institute. This science conclave was attended by [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhidg.wordpress.com&amp;blog=616206&amp;post=31&amp;subd=abhidg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Merry Christmas to the blogosphere!</p>
<p>Christmas evenings are a nice time to talk about lots of things, so I&#8217;ll talk about the trip to the Science Conclave at IIIT Allahabad which I attended along with my friends (eight of them, to be precise) and a scientist from our institute. This science conclave was attended by quite a few nobel laureates and other expert scientists.</p>
<p>Five of our friends had reached <a href="http://www.iiita.ac.in">IIIT Allahabad</a> in the morning of the 14th of December (the conclave duration was from 15th to 21st December). We reached via a different train at nearly midday; it was quite nice that we got a room on the same floor as the other group. The conclave was due to begin the next day, so there was actually nothing that I could think of doing, and that&#8217;s what happened. We were staying at the boys&#8217; hostels on the ground floor (almost literally; what separated us from the floor was a blanket). There were nice blankets on top also to keep out the cold (of which there was a lot).</p>
<p>The next day was the first day of the conclave; as usual I got up a bit late; breakfast was done in a hurry and we&#8217;re off to the lectures. The morning lectures were held at a pandal on the campus. Since I don&#8217;t remember the order of the lectures, I shall not now be going into the details of them (not too much, anyway any details become foggy after a few days). After the lecture there was a felicitation ceremony and speech by the director of IIIT-A. By this time, I was feeling hungry (always happens after lectures) and soon my stomach was satisfied (at least I thought so, I did not know then what was to happen a week later!). The second day passed like the first day, with one exception.</p>
<p>One evening, someone suggested that we should play the game of &#8220;mafia&#8221;. I wondered what that was and why others seemed so excited about it. I&#8217;ll leave the explanation of the game to <a href="http://en.wikipedia.org/wiki/Mafia_(game)">wikipedia</a>; what was amazing was how I changed from a bored bystander to a fan of the game (apparently, this always happens in this game). We had lots of rounds of Mafia, and I managed to guess people correctly quite a few times, though as the night wore on, my guesses wore out <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I slept at around four o&#8217; clock and woke up with a nice attack of rhinovirus. Oh well.</p>
<p>The interaction sessions were held at the computer centre; interaction sessions were divided according to  discipline; though I didn&#8217;t much like it, for in my viewpoint I consider science to be indivisible, it would be infeasible for all of the almost over thousand students to interact with the Nobel Laureates &#8212; that would only result in chaos of the non-interesting kind. The questions ranged from nice, profound to downright silly, so one could almost plot a Gaussian there. The nobel laureates were very helpful and listened to all the questions carefully. We had interaction sessions with <a href="http://en.wikipedia.org/wiki/Claude_Cohen-Tannoudji">Prof. Claude Cohen-Tannoudji</a>, <a href="http://en.wikipedia.org/wiki/Jerome_Isaac_Friedman">Prof. Jerome Friedman</a>, <a href="http://en.wikipedia.org/wiki/Martin_Lewis_Perl">Prof. Martin Perl</a> and <a href="http://http://en.wikipedia.org/wiki/Harold_Kroto">Prof. Harry Kroto</a>. I slipped into a Mathematics interaction session once where I could interact with Prof. A A Slavnov of Steklov Mathematical Institute.</p>
<p>We heard nice lectures from all the nobel laureates; most of them were on high energy physics and the Large Hadron Collider and the interesting prospects the LHC opened up for a new generation of research. Arguably the most inspiring one was however, Sir Harry Kroto&#8217;s. I never knew that I would like a chemistry lecture so much! The presentation started with a very loud sound (to wake us up) and continued in a fashion which was like a well arranged salad: flashes of humour, beautiful animations, pictures from the past and visually striking, simple images which make us understand in an instant what his research is about, and on why he loves bucky balls aka fullerenes. I&#8217;ll never feel the same way about chemistry, or at least fullerenes again. He gave two lectures; both were different but in some way carried the same spirit.</p>
<p>In the evenings were the cultural programmes. I didn&#8217;t expect a cultural programme of this magnitude at a science conclave, but then there it was. Many eminent people performed at the cultural programme, including <a href="http://en.wikipedia.org/wiki/Hema_Malini">Hema Malini</a>, Peenaz Masani, <a href="http://en.wikipedia.org/wiki/Anup_Jalota">Anoop Jalota</a>, <a href="http://en.wikipedia.org/wiki/Shobha_Naidu">Dr. Shobha Naidu</a> and <a href="http://www.bhupindermitali.com">Bhupinder &amp; Mitali Singh</a>. There&#8217;s no need to say how they were: they were all astoundingly brilliant and beautiful.</p>
<p>Thus as you see, a lot of things happened at this conclave. We had lots of fun, listened to interesting lectures and talked with interesting people. Space and time, restricted they are; to tell everything of what happened at the conclave would take days and more words than I&#8217;ve the patience to type. However, it was a memorable experience and I thank all those who made it happen.</p>
<p>Oh by the way, as to what happened a week later: I had a nice stomach upset.</p>
<p><i>Update: added links.</i></p>
<br />Posted in science, trip  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhidg.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhidg.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhidg.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhidg.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhidg.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhidg.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhidg.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhidg.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhidg.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhidg.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhidg.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhidg.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhidg.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhidg.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhidg.wordpress.com&amp;blog=616206&amp;post=31&amp;subd=abhidg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhidg.wordpress.com/2008/12/25/science-conclave-at-allahabad/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/53e37326139afdc7aa3d5b07d12010e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abhidg</media:title>
		</media:content>
	</item>
		<item>
		<title>date hack</title>
		<link>http://abhidg.wordpress.com/2008/11/18/date-hack/</link>
		<comments>http://abhidg.wordpress.com/2008/11/18/date-hack/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 05:51:23 +0000</pubDate>
		<dc:creator>abhidg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[date hack]]></category>

		<guid isPermaLink="false">http://abhidg.wordpress.com/?p=24</guid>
		<description><![CDATA[The computers at our institute don&#8217;t have NTP installed, and the time is rarely synchronized. The date on the computer I am writing this post on is about half an hour behind. So here&#8217;s how you can get the correct date from the terminal using wget, sed and the good ol&#8217; date: #!/bin/sh # Prints [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhidg.wordpress.com&amp;blog=616206&amp;post=24&amp;subd=abhidg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The computers at our institute don&#8217;t have NTP installed, and the time<br />
is rarely synchronized. The date on the computer I am writing this post<br />
on is about half an hour behind. So here&#8217;s how you can get the correct<br />
date from the terminal using wget, sed and the good ol&#8217; date:</p>
<p><code><br />
#!/bin/sh<br />
# Prints the date.</p>
<p>x="$(wget -q -O - http://tycho.usno.navy.mil/cgi-bin/timer.pl | grep UTC | cut -c 5- | sed s/\,//g)"<br />
date -d "${x}"<br />
</code></p>
<p>Put this file somewhere in your $PATH, make it executable and run it. It&#8217;ll print the<br />
date in the local timezone. Here&#8217;s how it works:</p>
<ol>
<li>It gets the date from http://tycho.usno.navy.mil/cgi-bin/timer.pl and dumps it on the<br />
terminal.</li>
<li>It gets the first line in UTC using grep</li>
<li>It cuts out the <BR>.</li>
<li>and removes the comma which causes date to choke</li>
<li>Finally date -d converts the date into the local timezone and displays it.</li>
</ol>
<p>I&#8217;ve this script running with watch -n 5 to give the date every five seconds in the terminal.</p>
<br />Posted in Uncategorized Tagged: date hack <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhidg.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhidg.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhidg.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhidg.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhidg.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhidg.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhidg.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhidg.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhidg.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhidg.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhidg.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhidg.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhidg.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhidg.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhidg.wordpress.com&amp;blog=616206&amp;post=24&amp;subd=abhidg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhidg.wordpress.com/2008/11/18/date-hack/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/53e37326139afdc7aa3d5b07d12010e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abhidg</media:title>
		</media:content>
	</item>
		<item>
		<title>multimedia keys</title>
		<link>http://abhidg.wordpress.com/2007/06/04/multimedia-keys/</link>
		<comments>http://abhidg.wordpress.com/2007/06/04/multimedia-keys/#comments</comments>
		<pubDate>Mon, 04 Jun 2007 17:18:01 +0000</pubDate>
		<dc:creator>abhidg</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://abhidg.wordpress.com/2007/06/04/multimedia-keys/</guid>
		<description><![CDATA[In Linux, multimedia keys have always been a bit difficult to configure. Sure, there are third party programs which help, but there&#8217;s an easier, more fundamental way, using xmodmap. What xmodmap does it remap the keys and give them corresponding X identifiers. For example, this is how my ~/.xmodmap file looks like: ! This works [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhidg.wordpress.com&amp;blog=616206&amp;post=22&amp;subd=abhidg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In Linux, multimedia keys have always been a bit difficult to configure. Sure,<br />
there are third party programs which help, but there&#8217;s an easier, more<br />
fundamental way, using <code>xmodmap</code>. What <code>xmodmap</code> does it remap the<br />
keys and give them corresponding X identifiers. For example, this is<br />
how my <code>~/.xmodmap</code> file looks like:</p>
<pre>
! This works with Trust Silverline Direct Access keyboard
! Use ! for comments

keycode 222 = XF86PowerOff
keycode 223 = XF86Sleep
keycode 236 = XF86Mail
keycode 229 = XF86Search
keycode 230 = XF86Favorites
keycode 178 = XF86WWW

keycode 162 = XF86AudioPlay
keycode 164 = XF86AudioStop
keycode 160 = XF86AudioMute
keycode 144 = XF86AudioPrev
keycode 153 = XF86AudioNext
keycode 176 = XF86AudioRaiseVolume
keycode 174 = XF86AudioLowerVolume
</pre>
<p>As you can see, the various keycodes have been assigned to the X key<br />
symbols; this enables whichever window manager you use to understand<br />
the keysym. Now you can associate the keysyms with commands, etc. In<br />
Arch a list of keysyms is at <code>/usr/share/X11/XKeysymDB</code>. To apply<br />
these settings simply run <code>xmodmap ~/.xmodmap</code></p>
<h4>multimedia keys control whichever application is active</h4>
<p>There are many programs which do not natively support the multimedia<br />
keys, for example the Totem media player. Also you can bind only <em>one</em><br />
command to be the keybinding for the keysym. So I have made a small<br />
script in bash which detects the active window, and depending on what<br />
window it is, gives the appropriate commands. For example, the script<br />
for the <em>play</em> key is:</p>
<pre>
#!/bin/bash
# Program to start playing in whichever application
# is the focussed one.

# Abhishek Dasgupta
# get focussed window id
focus=`xdpyinfo | grep focus | cut -c 16-24`
# grab WM_CLASS
info=`xprop -id $focus | grep WM_CLASS | cut -c 20-`

if [[ "$info" =~ .*Audacious.* ]]
then
  audacious --play
elif [[ "$info" =~ .*Totem.* ]]
then
  totem --play
else
  mpc play
fi
</pre>
<p>You can grab the full set of scripts: <a href="http://abhidg.googlepages.com/mediabuttons-scripts-20070508.tar.gz"><br />
<b>mediabuttons-scripts-20070508.tar.gz</b></a></p>
<p>Currently, as you see the scripts support audacious, totem and mpc.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/abhidg.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/abhidg.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhidg.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhidg.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhidg.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhidg.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhidg.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhidg.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhidg.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhidg.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhidg.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhidg.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhidg.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhidg.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhidg.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhidg.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhidg.wordpress.com&amp;blog=616206&amp;post=22&amp;subd=abhidg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhidg.wordpress.com/2007/06/04/multimedia-keys/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/53e37326139afdc7aa3d5b07d12010e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abhidg</media:title>
		</media:content>
	</item>
		<item>
		<title>Arch setup II</title>
		<link>http://abhidg.wordpress.com/2007/05/13/arch-setup-ii/</link>
		<comments>http://abhidg.wordpress.com/2007/05/13/arch-setup-ii/#comments</comments>
		<pubDate>Sun, 13 May 2007 09:01:00 +0000</pubDate>
		<dc:creator>abhidg</dc:creator>
				<category><![CDATA[arch]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://abhidg.wordpress.com/2007/05/13/arch-setup-ii/</guid>
		<description><![CDATA[So onto part II. There are a few important things that one needs to remember when configuring Arch &#8211; one is that most of the configuration is done through plain old text files; no clumsy or hand-holding GUIs here to help you out. Secondly, most of the configuration files in Arch are in exactly the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhidg.wordpress.com&amp;blog=616206&amp;post=21&amp;subd=abhidg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>
So onto part II.
</p>
<p>
There are a few important things that one needs to remember when configuring Arch &#8211; one is that most of the configuration is done through plain old text files; no clumsy or hand-holding GUIs here to help you out. Secondly, most of the configuration files in Arch are in exactly the same place where you would expect them to, i.e. Arch interferes very little with /etc allowing programs to place the files there, without moving them to a special place. Most distributions keep a special system for managing configuration files, Debian has <code>debconf</code>, Gentoo has <code>etc-update</code>, Arch has none, and it needs none. When a configuration file is to be overwritten, Arch will give you a warning; if it does not you can be sure that it&#8217;ll not overwrite and instead the new config will be placed with a <code>.pacnew</code> extension.
</p>
<p>
I am a bit of a console freak, so first off I installed <code>gpm</code>. GPM is this really cool<br />
program which allows you to use the mouse in the console. I did need to a do a bit of tweaking in <code>/etc/conf.d/gpm</code> and I added this line:<br />
<code>GPM_ARGS="-m /dev/input/mice -t imps2"</code>
</p>
<p>
(other great console apps: <a href="http://irssi.org">irssi</a>, centericq, and of course mutt!)
</p>
<p>
Another good thing that I like about Arch is its bleeding edge packages. The magic command<br />
to sync up on the newest stuff is <code>pacman -Syu</code>. Also I made sure to install the latest version of <code>pacman</code> (version <code>3.0.4</code> as of writing). It seems a bit faster, the progressbar for installing also looks neater; of course there are lot of changes underhood too. The other good news for those wanting to try out Arch for the first time &#8211; they&#8217;ll release a 2007-05 version (codename <i>Duke</i>) soon with the new kernel 2.6.21. So wait a few days and download that instead of 0.8!
</p>
<p>
Then I installed slim (the simple login manager) and beryl, compositor-king. In Arch if you know the name of a package, then you can install it with <code>pacman -S package</code>. If you don&#8217;t sync frequently you can also tag a <code>-y</code> to it like <code>pacman -Sy package</code>. That&#8217;ll make sure you get the repositories refreshed with the changes (-y stands for refresh). You can also search for a package by this <code>package -Ss whatever</code>.
</p>
<p>
Arch has a few repositories. To put simply, a repository is a collection of binary packages maintained by Arch developers, or other members of the community. The official repositories are current, extra, unstable, testing, community. Out of these current and extra contain stable packages. <code>testing</code> contains the absolutely new stuff, and one that could (but never has, in my case) break your system (like say, a new kernel version or a new video graphics driver). <code>unstable</code> contains, well unstable code. I don&#8217;t use it and it doesn&#8217;t contain many packages anyway. <code>community</code> is a repo of software that users wrote PKGBUILDs for (I&#8217;ll be coming to what PKGBUILDs are, soon) and they have been voted or are important enough, that binary packages are provided for a few of them. (Did you know, that<br />
anyone can upload packages to the Archlinux User Repository?)
</p>
<p>
If you want to enable some of those repositories, go to <code>/etc/pacman.conf</code> and uncomment out the repos you need, you can also add other repos if you want.
</p>
<p>
Installing stuff is a no-brainer as I told before. I quickly installed openoffice-base, <a href="http://pidgin.im">pidgin</a>, seahorse (manages GPG keys), muttng (grabbed a few configs from <a href="http://hg.codemac.net">codemac</a>, thanks codemac!), screen (the wonderful terminal multiplexer), <a href="http://minuslab.net/code/nitrogen">nitrogen</a> (a wallpaper setter), <a href="http://www.nedrebo.org/kode/alunn/">alunn</a> (excellent notifier for new packages, quietly sits in systray), totem movie player, VLC, etc&#8230;.
</p>
<p>
Now onto configuring NetworkManager. First I had to install the required packages (<code>networkamanger</code> and <code>gnome-network-manager</code> if you use GTK+/GNOME or <code>knetworkmanager</code> if you use KDE). Then you have to go to <code>rc.conf</code> and <i>disable</i> the interfaces which we want to use. You must also remember that your wireless card uses a different interface than your ethernet port. That you have to find out by trial-and-error. In my case it was <code>eth2</code>. So in my <code>rc.conf</code>, I now have:
</p>
<pre>
  lo="lo 127.0.0.1"
  eth0="dhcp" #if you don't want dhcp put something like this:
  #eth0="eth0 192.168.1.3 netmask 255.255.255.0" where the first address is the IP you want
  eth2="dhcp"
  INTERFACES=(lo !eth0 !eth2)
  #
  # Routes to start at boot-up (in this order)
  # Declare each route then list in ROUTES
  #   - prefix an entry in ROUTES with a ! to disable it
  #
  gateway="default gw 192.168.1.1"
  ROUTES=(!gateway)
</pre>
</p>
<p>
Then you need to install the appropriate drivers for your wireless card (if you haven&#8217;t done so already). My card is a Intel IPW3945ABG so I installed the <code>ipw3945</code> package. For this driver, I also need to startup the ipw9345 daemon, so I added to the <code>DAEMONS</code> array. While using networkmanager, we have to disable the <code>network</code> script, so put a ! before it and also add dhcdbd and networkmanager to the DAEMONS array. Next time you reboot, NetworkManager will take over your network settings from <code>rc.conf</code>. So now my DAEMONS array looks like this:
</p>
<pre>
  DAEMONS=(syslog-ng ipw3945d !network alsa dbus hal @powersaved @mpd dhcdbd netwo
  rkmanager @lastfmsubmitd @lastmp @netfs vsftpd crond slim)
</pre>
<p>
(the @ before some daemons means that daemon will be started in the background)
</p>
<p>
To use the GNOME applet, you can put <code>nm-applet --sm-disable</code> in your <code>.xinitrc</code> or whatever system your DE uses to autostart apps on login. The reason <code>--sm-disable</code> is required is that otherwise nm-applet gets confused and multiple instances of it startup <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />
</p>
<p>
Lastly I configured <a href="http://musicpd.org">mpd</a>. For anyone who does not know, mpd is a daemon which plays your music in the background. So even if you kill X, your music goes on. There are many good frontends for it; I prefer <a href="http://sonata.berlios.de">Sonata</a> which  supports editing tags too.
</p>
<p>
Next time, I will write about how drop dead simple it is to make your own packages in Archlinux. Have a look at the <a href="http://wiki.archlinux.org">wiki</a>; and till next time happy pacman -Syu&#8217;ing!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/abhidg.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/abhidg.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhidg.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhidg.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhidg.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhidg.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhidg.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhidg.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhidg.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhidg.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhidg.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhidg.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhidg.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhidg.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhidg.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhidg.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhidg.wordpress.com&amp;blog=616206&amp;post=21&amp;subd=abhidg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhidg.wordpress.com/2007/05/13/arch-setup-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/53e37326139afdc7aa3d5b07d12010e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">abhidg</media:title>
		</media:content>
	</item>
	</channel>
</rss>
