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

<channel>
	<title>itsAnimesh.com &#187; FOSS</title>
	<atom:link href="http://itsanimesh.com/tag/foss/feed/" rel="self" type="application/rss+xml" />
	<link>http://itsanimesh.com</link>
	<description>A Techie Gyaan Vyaan Blog.</description>
	<lastBuildDate>Mon, 06 Sep 2010 18:50:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Access MSSQL with Python!!!</title>
		<link>http://itsanimesh.com/2010/04/24/access-mssql-with-python/</link>
		<comments>http://itsanimesh.com/2010/04/24/access-mssql-with-python/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 08:25:46 +0000</pubDate>
		<dc:creator>Animesh Kumar</dc:creator>
				<category><![CDATA[Techi Gyaan]]></category>
		<category><![CDATA[FOSS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://itsanimesh.com/?p=1807</guid>
		<description><![CDATA[I started using Python a while ago and one of the things I need to do is to be able to connect to Microsoft SQL server from Linux servers&#8230; Its suprising that only a few projects are alive for it&#8230; One of them is the commercial MxODBC from eGenix, while the other is called pymssql&#8230; [...]]]></description>
			<content:encoded><![CDATA[<p>I started using Python a while ago and one of the things I need to do is to be able to connect to Microsoft SQL server from Linux servers&#8230; Its suprising that only a few projects are alive for it&#8230; One of them is the commercial MxODBC from <a title="eGenix" href="http://www.egenix.com/products/python/mxODBC/" target="_blank">eGenix</a>, while the other is called pymssql&#8230; I gave pymssql a try and it worked almost at once on my Ubuntu machine&#8230;</p>
<p>First I installed the prerequisites: freetds and the python headers:</p>
<pre>aptitude install python2.5-dev freetds-dev</pre>
<p>There might be some other packages that are needed but that was the only ones I needed to install&#8230;. Then I decompressed the latest   release from <a title="pymssql" href="https://sourceforge.net/project/showfiles.php?group_id=40059" target="_blank">pymssql</a> at   sourceforge and installed:</p>
<p><strong>NOTE :</strong> for me the latest package did not work so I used <strong>pymssql-0.8.0</strong></p>
<pre>tar -xvzf pymssql-0.8.0.tar.gz
cd pymssql-0.8.0
python setup.py install</pre>
<p>Now you can test it out  by creating your own test script and it is as follows :</p>
<pre>import pymssql
conn = pymssql.connect(host='&lt;hostname&gt;', user='&lt;username&gt;', password='&lt;passwd&gt;', database='&lt;dbname&gt;')
cur = conn.cursor()
cur.execute('SELECT * FROM tbABCD')
row = cur.fetchone()
while row:
 print "ID=%s, Name=%s, Address=%s" % (row[0], row[1], row[2])
 row = cur.fetchone()
conn.close()</pre>
<p>The script ran perfectly&#8230;<br />
For more information on pymssql you can view its <a href="http://pymssql.sourceforge.net/documentation.php">documentation here</a>&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://itsanimesh.com/2010/04/24/access-mssql-with-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP vs. ASP!!!</title>
		<link>http://itsanimesh.com/2010/03/30/php-vs-asp/</link>
		<comments>http://itsanimesh.com/2010/03/30/php-vs-asp/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 09:26:11 +0000</pubDate>
		<dc:creator>Animesh Kumar</dc:creator>
				<category><![CDATA[Techi Gyaan]]></category>
		<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[FOSS]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://itsanimesh.com/?p=1750</guid>
		<description><![CDATA[In the world of web development, the option of which development language to use usually comes down to two well-liked choices&#8230; Web applications, specifically those relying on back end databases, are naturally being created by either Microsoft&#8217;s ASP.Net language, or the Open Source substitute language of PHP&#8230; ASP stands for Active Server Pages and PHP [...]]]></description>
			<content:encoded><![CDATA[<p>In the world of web development, the option of which                    development language to use usually comes down to two                    well-liked choices&#8230; Web applications, specifically those                    relying on back end databases, are naturally being created by                    either Microsoft&#8217;s ASP.Net language, or the Open Source                    substitute language of PHP&#8230;</p>
<p>ASP stands for <strong>Active Server Pages</strong> and PHP formerly stood for <strong>Personal Home Pages</strong> and is now known as <strong>PHP Hypertext Preprocessor</strong>&#8230;</p>
<p>ASP is basically a toy from the Microsoft development toy chest and is used with <strong>Internet Information Server</strong> (IIS) which is a program that runs on Microsoft servers&#8230; However, there are 3rd party applications that can make it compatible with a few other servers. ASP is widely used for large companies Web needs&#8230;</p>
<p>Rasmus Lerdorf originally designed the PHP parsing language during 1994/1995&#8230; Some other major contributors were Zeev Suraski and Andi Gutmans who rewrote the parsing engine to create PHP version 3&#8230; The major NT and UNIX Web servers support it and it is widely used with the mySQL database. Small and medium Web developers use it religiously&#8230;<span id="more-1750"></span></p>
<p>PHP has it&#8217;s own language and syntax, the language is simplified due to the programs incorporation of a parsing engine that is especially designed to make short work of translating PHP code into machine language that executes commands&#8230; If you were a programmer adept with the C++ language, you would probably be more comfortable using PHP than ASP&#8230; PHP uses C/C++ as base language and most syntax are similar to each other&#8230; Because a big chunk of programmers are still using C++ language, PHP are by far more popular than ASP&#8230;</p>
<p>On the other hand ASP makes use of a language that was dying before Microsoft managed          to breathe new life into it&#8230; Visual Basic Script is the language used          in ASP and was formerly used as          a client side scripting language that was in direct competitions with          JavaScript&#8230; This was back when Internet Explorer was still the #2 browser          behind Netscape Navigator&#8230; During this era, JavaScript was whooping the          pants off of Visual Basic Script with its wide acceptance amongst Web          developers&#8230; <img src='http://itsanimesh.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>PHP is very much flexible when it terms of database connectivity&#8230; It can connect to several databases of which the most commonly used is the MySQL&#8230; Note that MySQL would not cost you a thing to use&#8230; But if you were to use ASP, you need to purchase MS-SQL, which is a Microsoft product&#8230; This makes PHP very attractive                    to the independent web developer&#8230;</p>
<p>Loading speed is a big factor in maintaining a website&#8230; If you are particular about speed, then you need to go with PHP&#8230; PHP codes runs much quicker than ASP basically because it runs in its very own memory space while ASP uses an overhead server and is uses a COM based architecture&#8230;</p>
<p>In working with PHP, most tools associated with the program are mostly open source software so you need not pay for them&#8230; As for ASP, you might need to buy additional tools to work with its programs&#8230;</p>
<p>In conclusion, both PHP and ASP have its own advantages and disadvantages&#8230; It basically depends on which part of developing a website you are most concerned with&#8230; Choosing between ASP and PHP basically depends on your own personal preference&#8230; It doesn&#8217;t hurt to confer with other programmers or webmasters and research more information on which programming would best fit the requirements of your website&#8230;</p>
<p>Truly speaking, I am not that much interested in ASP .NET&#8230; All I have is some basic knowledge on C#, Visual Basic and J#. But in the case of PHP, I love it!!! I have been developing PHP applications for more than a year and trust me, it is the simplest and easiest, yet, very powerful and efficient programming language for the web&#8230;</p>
<p>Cheers.. <img src='http://itsanimesh.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://itsanimesh.com/2010/03/30/php-vs-asp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Epic Speeches by Linus Torvalds!!!</title>
		<link>http://itsanimesh.com/2010/03/24/epic-speeches-by-linus-torvalds/</link>
		<comments>http://itsanimesh.com/2010/03/24/epic-speeches-by-linus-torvalds/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 07:16:56 +0000</pubDate>
		<dc:creator>Animesh Kumar</dc:creator>
				<category><![CDATA[Techi Gyaan]]></category>
		<category><![CDATA[FOSS]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://itsanimesh.com/?p=1735</guid>
		<description><![CDATA[I have been mesmerised by Linus Torvalds speeches&#8230; here are a few of them&#8230; Linus Torvalds visits Google to share his thoughts on git, the source control management system he created&#8230; Linus Torvalds, the creator of the operating system phenomenon Linux, tells the story of how he went from writing code as a graduate student [...]]]></description>
			<content:encoded><![CDATA[<p>I have been mesmerised by Linus Torvalds speeches&#8230; here are a few of them&#8230;</p>
<p>Linus Torvalds visits Google to share his thoughts on git, the source control management system he created&#8230;</p>
<p><a href="http://itsanimesh.com/2010/03/24/epic-speeches-by-linus-torvalds/"><em>Click here to view the embedded video.</em></a></p>
<p>Linus Torvalds, the creator of the operating system phenomenon Linux, tells the story of how he went from writing code as a graduate student in Helsinki in the early 1990s..</p>
<p><a href="http://itsanimesh.com/2010/03/24/epic-speeches-by-linus-torvalds/"><em>Click here to view the embedded video.</em></a></p>
]]></content:encoded>
			<wfw:commentRss>http://itsanimesh.com/2010/03/24/epic-speeches-by-linus-torvalds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto : Twitter from Command Line&#8230;</title>
		<link>http://itsanimesh.com/2010/01/25/howto-twitter-from-command-line/</link>
		<comments>http://itsanimesh.com/2010/01/25/howto-twitter-from-command-line/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 09:07:01 +0000</pubDate>
		<dc:creator>Animesh Kumar</dc:creator>
				<category><![CDATA[Techi Gyaan]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[FOSS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://itsanimesh.com/?p=1593</guid>
		<description><![CDATA[This is a tutorial explaining how to post to Twitter using command-line in Linux, without needing to even open up your web browser&#8230;. First, install the curl package: sudo apt-get install curl Next, create a script anywhere in your $PATH, for example tweet.sh inside ~/bin, where ~ is your home directory (make sure ~/bin is [...]]]></description>
			<content:encoded><![CDATA[<p>This is a tutorial explaining how to post to Twitter using command-line in Linux, without needing to even open up your web browser&#8230;.</p>
<p>First, install the curl package:</p>
<pre>sudo apt-get install curl</pre>
<p>Next, create a script anywhere in your <strong>$PATH</strong>, for example <strong>tweet.sh</strong> inside <strong>~/bin</strong>, where ~ is your home directory (make sure ~/bin is included in your $PATH variable, in case echo $PATH doesn&#8217;t return it, edit <strong>~/.bashrc</strong> and add a line like this: <strong>export PATH=/home/USER/bin/:$PATH</strong>)&#8230;</p>
<p>The script <strong>tweet.sh</strong> should contain the following:<span id="more-1593"></span><br />
<code> </code></p>
<p><code> </code></p>
<p><code> </code></p>
<p><code></p>
<pre>#!/bin/sh

############EDIT THE FOLLOWING LINES...###########################
user="USERNAME"
pass="PASSWORD"
##################################################################

######################DO NOT EDIT BELOW THIS######################
tweet="${@}"

if [ $(echo "${tweet}" | wc -c) -gt 140 ]; then
    echo "FATAL: The tweet is longer than 140 characters!"
    exit 1
fi

curl -k -u ${user}:${pass} -d status="${tweet}" https://twitter.com/statuses/update.xml &gt;/dev/null 2&gt;&amp;1

if [ "$?" == "0" ]; then
    echo "Successful tweet!"
fi</pre>
<p></code></p>
<p>Replace <strong>USERNAME </strong>and <strong>PASSWORD </strong>with your Twitter username and password, and then make the script executable:</p>
<pre>chmod 755 ~/bin/tweet.sh</pre>
<p>And now test it.. Just use it as :</p>
<pre>tweet.sh YOUR MESSAGE</pre>
<p>This should be all&#8230;</p>
<p>If you don&#8217;t want to copy paste the code for tweet.sh then use the following link to download <a href="http://itsanimesh.com/wp-content/uploads/2010/01/tweet.txt">tweet.txt</a> and RENAME it as tweet.sh</p>
]]></content:encoded>
			<wfw:commentRss>http://itsanimesh.com/2010/01/25/howto-twitter-from-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Commandline Fu!!!</title>
		<link>http://itsanimesh.com/2010/01/18/commandline-fu/</link>
		<comments>http://itsanimesh.com/2010/01/18/commandline-fu/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 05:45:42 +0000</pubDate>
		<dc:creator>Animesh Kumar</dc:creator>
				<category><![CDATA[Techi Gyaan]]></category>
		<category><![CDATA[FOSS]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://itsanimesh.com/?p=1544</guid>
		<description><![CDATA[I&#8217;m a great fan of Linux command-line, basically because of its amazing versatility&#8230; I love to find new ways to do things from the command line, so do not have to leave the comfort of my keyboard&#8230;. Recently, I found a site that let’s me learn awesome command line tricks.. Its called commandlinefu.com This is [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a great fan of Linux command-line, basically because of its amazing versatility&#8230; I love to find new ways to do things from the command line, so do not have to leave the comfort of my keyboard&#8230;.</p>
<p>Recently, I found a site that let’s me learn awesome command line tricks.. Its called <strong><a href="http://www.commandlinefu.com/commands/browse">commandlinefu.com</a></strong></p>
<p><span id="more-1544"></span>This is a community driven site, where users submit various commands everyday, to do all sorts of tricks and jobs&#8230;. Commands get votes from fellow users, and often, better versions are posted&#8230;. This makes Commandline Fu one of the must visit sites for geek&#8230;s. Commands are tagged, and hence searchable&#8230;.. The site also has an API and a simple javascript widget, making it ideal for embedding a command in blog posts&#8230;.. Commandline Fu also provides Twitter and RSS feeds for commands posted to the site, and discerning users can subscribe to commands which have more than 3 or 10 votes&#8230;</p>
<p>Do visit and join this site!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://itsanimesh.com/2010/01/18/commandline-fu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
