<?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/"
	>

<channel>
	<title>Chronicles of My Whims...</title>
	<atom:link href="http://blog.sayanriju.co.cc/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sayanriju.co.cc</link>
	<description>...from the Virtual Abode of /me</description>
	<pubDate>Mon, 25 Oct 2010 06:44:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Firefox Extensions /me can&#8217;t do without</title>
		<link>http://blog.sayanriju.co.cc/2009/08/05/firefox-extensions-me-cant-do-without/</link>
		<comments>http://blog.sayanriju.co.cc/2009/08/05/firefox-extensions-me-cant-do-without/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 12:37:42 +0000</pubDate>
		<dc:creator>sayanriju</dc:creator>
		
		<category><![CDATA[Tech]]></category>

		<category><![CDATA[extensions]]></category>

		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://blog.sayanriju.co.cc/?p=200</guid>
		<description><![CDATA[Ok, so if you google around, you&#8217;ll find some 7,370,000 search results on &#8216;top  firefox extensions&#8217;. But this post is gonna be a bit different. Its not about the universally top Firefox Extensions (if such a thing even exists!), but about the ones which /me uses most! NO recommendations!
Here&#8217;s the list (in alphabetical order):

DataFox : [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, so if you google around, you&#8217;ll find some 7,370,000 search results on &#8216;top  firefox extensions&#8217;. But this post is gonna be a bit different. Its not about the <em>universally</em> top Firefox Extensions (if such a thing even exists!), but about the ones which <em>/me</em> uses most! NO recommendations!<br />
Here&#8217;s the list (in alphabetical order):</p>
<ol>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/5471">DataFox</a> : BSNL DataOne Broadband fuels my Internet. And it has a 500GB ul/dl limit per month. That&#8217;s why /me can&#8217;t do without the tiny statusbar applet this nice extension provides to keep a tab on monthly usage.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/3006">Download Helper</a> : The easy way to download YouTube videos to hard disk (when /me is not using youtube-dl script from the CLI i.e.!)</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/26">Download Statusbar</a> : &#8220;View and manage downloads from a tidy statusbar - without the download window getting in the way of your web browsing&#8221;. Yeh&#8230;works just as advertised, esp. that &#8216;getting in the way&#8217; bit.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/201">DownThemAll</a> : The only download manager /me ever uses, be it on or off the web browser. /me just loves its filtering options.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/684">FireFTP</a> : /me&#8217;s favourite FTP client.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/6366">Fire Gesture</a> : The extensions /me uses all the time. Real handy, to the point of making /me kinda lazy!</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/433">Flashblock</a> : /me hates those silly flash ads eating into my monthly data usage limit, not to mention the elevated page loading times.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/10941">Identifox</a> /<a href="https://addons.mozilla.org/en-US/firefox/addon/5081"> Twitterfox</a> : Ever since /me discovered microblogging, these extensions are his constant companions!</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/673">InFormEnter</a> : /me is too lazy to type all those form information over and over again.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/516">Orkut Toolbar</a> : /me spends lotsa time on Orkut, and this is the BEST orkut related extension for Firefox. Its great that it has recently been updated to spport Firefox 3.5</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/403">UrlLink</a> : Very useful for converting those non-hyperlinks into hyperlinks and open them in new/same tabs.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.sayanriju.co.cc/2009/08/05/firefox-extensions-me-cant-do-without/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using a local Ubuntu repository to avoid redownloading packages on a reinstall</title>
		<link>http://blog.sayanriju.co.cc/2009/07/31/using-a-local-ubuntu-repository-to-avoid-redownloading-packages-on-a-reinstall/</link>
		<comments>http://blog.sayanriju.co.cc/2009/07/31/using-a-local-ubuntu-repository-to-avoid-redownloading-packages-on-a-reinstall/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 11:26:14 +0000</pubDate>
		<dc:creator>sayanriju</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Tech]]></category>

		<category><![CDATA[Tutorial]]></category>

		<category><![CDATA[Local repository]]></category>

		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.sayanriju.co.cc/?p=183</guid>
		<description><![CDATA[Imagine the following  situation. You have been happily installing lots of stuff on your Ubuntu. All was going fine until you face a problem XYZ, the only feasible solution to which is a complete re-installation! You can probably back up all your precious personal data safely, but what about all those software you had installed? [...]]]></description>
			<content:encoded><![CDATA[<p>Imagine the following  situation. You have been happily installing lots of stuff on your Ubuntu. All was going fine until you face a problem XYZ, the only feasible solution to which is a complete re-installation! You can probably back up all your precious personal data safely, but what about all those software you had installed? You need to re-install each and every of those in your new install of Ubuntu, but if your Internet connection is slow and/or expensive, that could be a major problem. A solution is to create a local repository with all those installed packages and use it temporarily in your new install to reinstall those packages.That is what this guide will attempt to teach you.<span id="more-183"></span></p>
<p>This guide should be helpful to those as well who wants to install Ubuntu on more than one machines. they will be able to install the same software in all of those machines, but download them from net only once, thereby saving precious bandwidth.</p>
<h3><strong> Backing up the deb packages from your current Ubuntu installation</strong></h3>
<p><em>This step needs to be performed in your existing Ubuntu installtion</em><strong><br />
</strong></p>
<p>You must regularly back up your deb files from your current (old) installation in some place which is not affected by a reinstall (e.g on a removable device like a pen drive). Just copy <em>all</em> the deb-s from /var/cache/apt/archives to some such location. Depending on the number of deb-s you have accumulated, this may take some time. For example,</p>
<blockquote><p>sudo cp /var/cache/apt/archives/*.deb /path/to/backups/</p></blockquote>
<p>Obviously, replace /path/to/backup with your actual backup directory.</p>
<p>At this stage, it is probably a good idea to take a rough note of the names of the &#8216;extra&#8217; software you have installed.</p>
<h3><strong>Install dpkg-dev package in your new installation</strong></h3>
<p><em>From this step onwards, everything is to be done on your new Ubuntu installation.</em><strong><br />
</strong></p>
<p>Before being able to create a local repository, you need to install the dpkg-dev package. Don&#8217;t worry, it is included in your Ubuntu live CD package pool, so no need for internet! Just make sure that the Ubuntu CD repository is enabled in your Software Sources and the CD is in your drive, and do</p>
<blockquote><p>sudo apt-get install dpkg-dev</p></blockquote>
<h3><strong>Creating the local Repository</strong></h3>
<p>After the reinstall, in your new Ubuntu, create a directory and put all the .debs from your backup in it . For example:</p>
<blockquote><p>mkdir ~/debs<br />
cp /path/to/backup/*.deb ~/debs<br />
cd</p></blockquote>
<p>While still in your home directory (i.e. ~/) do:</p>
<blockquote><p>dpkg-scanpackages debs /dev/null | gzip &gt; debs/Packages.gz</p></blockquote>
<p>In the above line,  the command generates a file Packages.gz that contains various information about the packages, which are used by APT.</p>
<h3><strong>Add the local repository to sources.lst</strong></h3>
<p>To use the newly created local repo, you have to add it to your sources.lst file.</p>
<p>First of all, take a backup:</p>
<blockquote><p>sudo cp /etc/apt/sources.list /etc/apt/sources.list.orig</p></blockquote>
<p>Now open the file in your text editor :</p>
<blockquote><p>sudo gedit /etc/apt/sources.list</p></blockquote>
<p>Delete everything <em>except</em> the line which looks like:</p>
<blockquote><p>deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty main restricted</p></blockquote>
<p>(Depending on the version of Ubuntu you are using, the line will change accordingly. This line represents the package repo on your Live CD)</p>
<p>Add the following as a <em>new</em> line after the above:</p>
<blockquote>
<pre>deb file:/home/&lt;your_username&gt; debs/</pre>
</blockquote>
<p>Make sure that you replace &lt;your_username&gt;  with your actual username.</p>
<p>Save and exit the text editor.</p>
<p>Update the apt database to use the local repo:</p>
<blockquote><p>sudo apt-get update</p></blockquote>
<p>Install the software as usual. This is where the rough note containing the names of previously installed applications will come in handy.</p>
<blockquote><p>sudo apt-get install &lt;package_name&gt;</p></blockquote>
<p>You&#8217;d probably be able to use the GUI tools like Synaptic Package Manager normally to install packages as well.</p>
<p><em><strong>Source:</strong></em> <a title="Debian APT-HowTo Manual" href="http://www.debian.org/doc/manuals/apt-howto/ch-basico.en.html#s-dpkg-scanpackages" target="_blank"> http://www.debian.org/doc/manuals/apt-howto/ch-basico.en.html#s-dpkg-scanpackages</a></p>
<h3><strong>Reverting back to &#8220;natural&#8221; state</strong></h3>
<p>Right now, the only software repo you are able to use is your own local one. That is not really a good thing, because you have no access to the huge number of other software available online, nor can you update your packages to the latest versions! So, after you have finished with installing <em>all the old packages from your backups</em>, it is time to revert the system back to its &#8220;natural&#8221; state like it was before. To do so:</p>
<blockquote><p>sudo cp /etc/apt/sources.list.orig /etc/apt/sources.list</p>
<p>sudo apt-get update</p></blockquote>
<p>This will sync your local apt database with the online servers. <em>This step requires active internet, though the downloaded data would be relatively small in size.</em></p>
<p>At this stage, you&#8217;d probably<em> </em>want to delete the files in your local repo, as it will no longer be needed (assuming of course that you are completely done with installing packages from your old backups). This could save a lot of hard disk space:</p>
<blockquote><p>rm -rf ~/debs</p></blockquote>
<h3>Important Notes</h3>
<ul>
<li>In your old installation, make sure you back up <em>each and every</em> deb file that had ever been downloaded to your cache. If, at <em>any point of time</em> in your old install,  you had run #apt-get clean or had manually deleted any of the existing deb-s  from your cache, this method is <strong><em>liable to fail</em></strong>, complaining of missing dependencies for some packages.</li>
<li>Running #apt-get autoclean (which purges only the outdated packages from cache) on your old installation should be safe, though. In fact, it is probably a good idea to do so, just to keep you backup size to minimal.</li>
<li>The packages you install from your local repository will generally not be cached again in your new installation. So, if you are looking for another reinstall sometime in <em>near </em>future, do not delete the backup deb-s as yet!</li>
<li>The main disadvantage of this method is that your installed packages will be at an older version than what is available on the online repos. If the version difference is too much, it may sometimes create problems while installing newer packages from online repos.</li>
<li>This guide will, in all probabilities. not work for cross-version reinstalltions of Ubuntu. I.e. if your backups are from Ubuntu Intrepid, and your new reinstall is Ubuntu Jaunty, the method won&#8217;t work, excpet on isolated cases.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.sayanriju.co.cc/2009/07/31/using-a-local-ubuntu-repository-to-avoid-redownloading-packages-on-a-reinstall/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ubuntu 9.04 Countdown</title>
		<link>http://blog.sayanriju.co.cc/2009/04/18/ubuntu-904-countdown/</link>
		<comments>http://blog.sayanriju.co.cc/2009/04/18/ubuntu-904-countdown/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 08:31:17 +0000</pubDate>
		<dc:creator>sayanriju</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sayanriju.co.cc/2009/04/18/ubuntu-904-countdown/</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript" src="http://www.ubuntu.com/files/countdown/display.js"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sayanriju.co.cc/2009/04/18/ubuntu-904-countdown/feed/</wfw:commentRss>
		</item>
		<item>
		<title>A simple bash script to schedule tasks</title>
		<link>http://blog.sayanriju.co.cc/2009/02/09/a-simple-bash-script-to-schedule-tasks/</link>
		<comments>http://blog.sayanriju.co.cc/2009/02/09/a-simple-bash-script-to-schedule-tasks/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 09:54:29 +0000</pubDate>
		<dc:creator>sayanriju</dc:creator>
		
		<category><![CDATA[Code]]></category>

		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://sayanriju.co.cc/?p=164</guid>
		<description><![CDATA[For some bizzarre reason, I have never been able to run cron successfully on my system. Mostly, I need functionalities like that offered by cron when I schedule my downloads to stop at the end of &#8216;happy hours&#8217; of BSNL Broadband (2 am to 8 am).
Instead of trying to google up and solve my problem, [...]]]></description>
			<content:encoded><![CDATA[<p>For some bizzarre reason, I have never been able to run cron successfully on my system. Mostly, I need functionalities like that offered by cron when I schedule my downloads to stop at the end of &#8216;happy hours&#8217; of BSNL Broadband (2 am to 8 am).<br />
Instead of trying to google up and solve my problem, I just wrote a simple bash script which will address my needs! The job the script does is quite elementary: it takes as argument a time and a command, and runs the command at that scheduled time.</p>
<p>Here&#8217;s the script:</p>
<pre class="brush: bash;">#!/usr/bin/env bash

if [ &quot;$#&quot; -ne 2 -o `echo &quot;$1&quot; | awk -F &quot;:&quot; '{print NF}'` -ne 3 -o &quot;$1&quot; == &quot;-h&quot; -o &quot;$1&quot; == &quot;--help&quot; ];then
	## Print uasge instructions
	echo -e &quot;Usage:	 mycron  \n	(Both arguments are mandatory)\nRuns specified command at specified time\n&quot;
	echo -e &quot;Note: You must specify the time for execution EXACTLY as HH:MM:SS\n&quot;
	echo -e &quot; E.g.: 09:00:00 instead of 9:00:00 or 09:00 &quot;
	echo -e &quot;\nAlso, 24 Hour clock format is expected,\nso use 21:00:00 instead of 09:00:00 if you mean PM\n\n&quot;
	echo -e &quot;mycron -h, --help : Display this help message and exit\n&quot;
	exit
fi

while true;do
    ctime=`date | tr -s ' ' | cut -d' ' -f4 `
    if [ &quot;$ctime&quot; == &quot;$1&quot; ];then
	&quot;$2&quot; &amp;amp;
	echo -e &quot;Process $2 with PID $! has been run at $ctime\nAborting script $0&quot;
	exit
    fi
done
</pre>
<p>Of course, this script can be made to do things a lot better, but right now, it does exactly what I need!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sayanriju.co.cc/2009/02/09/a-simple-bash-script-to-schedule-tasks/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Google feels that visiting google.com may harm my computer!</title>
		<link>http://blog.sayanriju.co.cc/2009/01/31/google-feels-that-visiting-googlecom-may-harm-my-computer/</link>
		<comments>http://blog.sayanriju.co.cc/2009/01/31/google-feels-that-visiting-googlecom-may-harm-my-computer/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 15:14:25 +0000</pubDate>
		<dc:creator>sayanriju</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[funny]]></category>

		<category><![CDATA[google warning]]></category>

		<guid isPermaLink="false">http://sayanriju.co.cc/?p=166</guid>
		<description><![CDATA[5 minutes ago, as I typed my first Google search, all the sites which came up showed a warning that visiting this site may harm my computer! Intrigued, I typed google as the keyword, and hey! Even google.com came with the same warning! 


While being extremely funny, this is quite inconvenient. Now I cannot easily [...]]]></description>
			<content:encoded><![CDATA[<p>5 minutes ago, as I typed my first Google search, all the sites which came up showed a warning that visiting this site may harm my computer! Intrigued, I typed google as the keyword, and hey! Even google.com came with the same warning! <img src='http://blog.sayanriju.co.cc/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /><br />
<a href="http://sayanriju.co.cc/my_images/google.png"><a href="http://sayanriju.co.cc/my_images/google.png"><img class="aligncenter size-thumbnail wp-image-167" title="google" src="http://sayanriju.co.cc/wp-content/uploads/2009/01/google-150x150.png" alt="google" width="150" height="150" /></a><br />
</a></p>
<p>While being extremely funny, this is quite inconvenient. Now I cannot easily go to a page that comes up on google search since on clicking the link, a separate warnign page opens up! I really hope that this bug (or whatever you may call it) gets resolved at the earliest. /me cannot survive for long in the virtual world without google!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sayanriju.co.cc/2009/01/31/google-feels-that-visiting-googlecom-may-harm-my-computer/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Plans for an Ebook Collection Manager in PHP for DOEACC Project</title>
		<link>http://blog.sayanriju.co.cc/2009/01/29/plans-for-a-ebook-collection-manager-in-php-for-doeacc-project/</link>
		<comments>http://blog.sayanriju.co.cc/2009/01/29/plans-for-a-ebook-collection-manager-in-php-for-doeacc-project/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 15:35:26 +0000</pubDate>
		<dc:creator>sayanriju</dc:creator>
		
		<category><![CDATA[Code]]></category>

		<category><![CDATA[ebook]]></category>

		<category><![CDATA[ebook manager]]></category>

		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://sayanriju.co.cc/2009/01/29/plans-for-a-ebook-collection-manager-in-php-for-doeacc-project/</guid>
		<description><![CDATA[I submitted the guide selection form for doing my DOEACC A Level projects yesterday. I had to choose a &#8216;Software platform&#8217; to code on. My primary choice was of course Python, but unfortunately there&#8217;s no guide available at the Institute with any expertise in Python. Hence, I had to choose PHP/MySql as my language! 
The [...]]]></description>
			<content:encoded><![CDATA[<p>I submitted the guide selection form for doing my DOEACC A Level projects yesterday. I had to choose a &#8216;Software platform&#8217; to code on. My primary choice was of course Python, but unfortunately there&#8217;s no guide available at the Institute with any expertise in Python. Hence, I had to choose PHP/MySql as my language! <img src='http://blog.sayanriju.co.cc/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /><br />
The trouble is, I don&#8217;t know PHP at all! <img src='http://blog.sayanriju.co.cc/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> I&#8217;ve begun to learn it from some ebooks and w3schhols, and so far, my take on the language is pretty good.<br />
The syntax is not as lucid and natural as Python (obviously!), but I&#8217;m really enjoying the way it can be used to manipulate HTML stuff!  Since I&#8217;ve never done any web programming at all, this entire concept is like a new toy for me. Currently, I&#8217;m playing with connecting to a mysql database server (I&#8217;m fairly comfortable with SQL stuf) and viewing the result of my queries on the browser. The only time I need to stop is to check on with HTML syntax, because I am not at all well versed with HTML at all. Perhaps a bit of Javascript knowledge would also come in handy.</p>
<p>The idea of the project I have in mind is to develop some kind of a Ebook Library Manager. For long, I myself have felt the need of such an application to manage my reasonably large collection (nearly 2 gigs) of ebooks I have on my hard disk. None of the existing collection managers (like GCstar, Alexandria,etc) catered to my needs, so I <i>needed</i> to write an application of my own. Originally, my plan was to do it in Python with an Sqlite3 database backend and WxPython for the GUI. Now, Php would replace Python, MySql would replace Sqlite, and of course, there would be no need for a GUI toolkit as the frontend will be handled on the web browser itself by using HTML/JS. This is a rather good thing  because I won&#8217;t have to worry about the WxPython codes, which is quite difficult &amp; time consuming to perfect(esp. the layouts &amp; alignments) in absence of a proper RAD tool. Also, the program will now be web-based &amp; hence platform independent with no need for a specific GUI toolkit to be installed. On the downside, using PHP and MySql makes running a webserver like Apache mandatory, which sounds a bit overkill &amp; out-of-context since the purpose of the program is to manage <i>local</i> ebooks. And I have to learn PHP, HTML and Javascript fairly well before starting the project.</p>
<p>I hope that this idea qualifies as a valid A Level Project, esp. with the aprox. 350 man hours involvement requirement posed my DOEACC. Formal allocation of guide and commencement of projects will begin from 3rd week of February. I intend to have a working draft of the project by then to show. Till then, onwards to w3schhols and the PHP Manual!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sayanriju.co.cc/2009/01/29/plans-for-a-ebook-collection-manager-in-php-for-doeacc-project/feed/</wfw:commentRss>
		</item>
		<item>
		<title>A small Python script for merging PDFs</title>
		<link>http://blog.sayanriju.co.cc/2009/01/27/a-small-python-script-for-merging-pdfs/</link>
		<comments>http://blog.sayanriju.co.cc/2009/01/27/a-small-python-script-for-merging-pdfs/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 14:25:50 +0000</pubDate>
		<dc:creator>sayanriju</dc:creator>
		
		<category><![CDATA[Code]]></category>

		<category><![CDATA[ebook]]></category>

		<category><![CDATA[pdf]]></category>

		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://sayanriju.co.cc/?p=132</guid>
		<description><![CDATA[I am a frequent downloader of ebooks in pdf format (yeh&#8230;I know its piracy and all! :P).
Very often the uploaders put up the ebook in parts, probably because of the large size of unsplitted pdfs. Here&#8217;s a simple script I wrote in Python to merge several pdf-s neatly in order.

#!/usr/bin/env python

from pyPdf import PdfFileWriter, PdfFileReader
import [...]]]></description>
			<content:encoded><![CDATA[<p>I am a frequent downloader of ebooks in pdf format (yeh&#8230;I know its piracy and all! :P).<br />
Very often the uploaders put up the ebook in parts, probably because of the large size of unsplitted pdfs. Here&#8217;s a simple script I wrote in Python to merge several pdf-s neatly in order.</p>
<pre class="brush: python;">
#!/usr/bin/env python

from pyPdf import PdfFileWriter, PdfFileReader
import sys

opfile=sys.argv[-1]
output = PdfFileWriter()

for ipfile in sys.argv[1:-1]:
	input=PdfFileReader(file(ipfile, &quot;rb&quot;))
	for pnum in range(0,input.getNumPages()):
		output.addPage(input.getPage(pnum))
outputStream = file(opfile, &quot;wb&quot;)
output.write(outputStream)
outputStream.close()</pre>
<p>Its really easy to use it. Save it as pypdfmerge.py, and run it as:<br />
<strong><code>python pypdfmerge.py  &lt;input_file1&gt; &lt;input_file2&gt; &lt;input_file3&gt; .... &lt;output_file&gt;</code></strong><br />
The last argument is always taken as the output file.<br />
Note that it will throw some Deprecation warnings, but they are generally harmless, so ignore them.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sayanriju.co.cc/2009/01/27/a-small-python-script-for-merging-pdfs/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Tux Avatars with March Linux logo</title>
		<link>http://blog.sayanriju.co.cc/2009/01/22/tux-avatars-with-march-linux-logo/</link>
		<comments>http://blog.sayanriju.co.cc/2009/01/22/tux-avatars-with-march-linux-logo/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 17:58:38 +0000</pubDate>
		<dc:creator>sayanriju</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[image]]></category>

		<category><![CDATA[march]]></category>

		<category><![CDATA[march logo]]></category>

		<category><![CDATA[tux avatar]]></category>

		<guid isPermaLink="false">http://sayanriju.net23.net/?p=104</guid>
		<description><![CDATA[What a way to start off this blog! 
Here are a couple of kewl tux avatars bearing the March linux logo on their stomach. I found the templates on the net and added the March Linux logo using The GIMP.
]]></description>
			<content:encoded><![CDATA[<p>What a way to start off this blog! <img src='http://blog.sayanriju.co.cc/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
Here are a couple of kewl tux avatars bearing the March linux logo on their stomach. I found the templates on the net and added the March Linux logo using The GIMP.</p>
<p><div class="wp-caption aligncenter" style="width: 160px"><a href="http://sayanriju.net23.net/my_images/tux-march.png"><img title="Tux Avatar with March Logo (1)" src="http://sayanriju.net23.net/my_images/tux-march.png" alt="Tux Avatar with March logo" width="150" height="150" /></a><p class="wp-caption-text">Tux Avatar with March logo</p></div></p>
<p><div class="wp-caption aligncenter" style="width: 160px"><a href="http://sayanriju.net23.net/my_images/tux-march2.png"><img title="Tux March 2" src="http://sayanriju.net23.net/my_images/tux-march2.png" alt="Another Tux Avatar with March logo" width="150" height="150" /></a><p class="wp-caption-text">Another Tux Avatar with March logo</p></div></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sayanriju.co.cc/2009/01/22/tux-avatars-with-march-linux-logo/feed/</wfw:commentRss>
		</item>
		<item>
		<title>?????? ???? !! 2222</title>
		<link>http://blog.sayanriju.co.cc/2009/01/03/%e0%a6%ac%e0%a6%be%e0%a6%82%e0%a6%b2%e0%a6%be%e0%a7%9f-%e0%a6%ac%e0%a7%8d%e0%a6%b2%e0%a6%97-2222/</link>
		<comments>http://blog.sayanriju.co.cc/2009/01/03/%e0%a6%ac%e0%a6%be%e0%a6%82%e0%a6%b2%e0%a6%be%e0%a7%9f-%e0%a6%ac%e0%a7%8d%e0%a6%b2%e0%a6%97-2222/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 07:13:15 +0000</pubDate>
		<dc:creator>sayanriju</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sayanriju.net23.net/?p=31</guid>
		<description><![CDATA[??????? ??????????
strongbold/strongSave
??????-
]]></description>
			<content:encoded><![CDATA[<p>??????? ??????????<br />
<strong>strongbold/strong</strong><span id="edit-slug-buttons"><a class="save button" href="http://blog.sayanriju.co.cc/wp-admin/post.php?action=edit&amp;post=31">Save</a></span></p>
<p>??????-</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sayanriju.co.cc/2009/01/03/%e0%a6%ac%e0%a6%be%e0%a6%82%e0%a6%b2%e0%a6%be%e0%a7%9f-%e0%a6%ac%e0%a7%8d%e0%a6%b2%e0%a6%97-2222/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

