Posts Tagged ‘FOSS’
Access MSSQL with Python!!! April 24th, 2010
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… Its suprising that only a few projects are alive for it… One of them is the commercial MxODBC from eGenix, while the other is called pymssql… I gave pymssql a try and it worked almost at once on my Ubuntu machine…
First I installed the prerequisites: freetds and the python headers:
aptitude install python2.5-dev freetds-dev
There might be some other packages that are needed but that was the only ones I needed to install…. Then I decompressed the latest release from pymssql at sourceforge and installed:
NOTE : for me the latest package did not work so I used pymssql-0.8.0
tar -xvzf pymssql-0.8.0.tar.gz cd pymssql-0.8.0 python setup.py install
Now you can test it out by creating your own test script and it is as follows :
import pymssql
conn = pymssql.connect(host='<hostname>', user='<username>', password='<passwd>', database='<dbname>')
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()
The script ran perfectly…
For more information on pymssql you can view its documentation here…
Tags: FOSS, Linux, MSSQL, python, script, Ubuntu
Posted in Techi Gyaan | Comments (0)
PHP vs. ASP!!! March 30th, 2010
In the world of web development, the option of which development language to use usually comes down to two well-liked choices… Web applications, specifically those relying on back end databases, are naturally being created by either Microsoft’s ASP.Net language, or the Open Source substitute language of PHP…
ASP stands for Active Server Pages and PHP formerly stood for Personal Home Pages and is now known as PHP Hypertext Preprocessor…
ASP is basically a toy from the Microsoft development toy chest and is used with Internet Information Server (IIS) which is a program that runs on Microsoft servers… 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…
Rasmus Lerdorf originally designed the PHP parsing language during 1994/1995… Some other major contributors were Zeev Suraski and Andi Gutmans who rewrote the parsing engine to create PHP version 3… 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… Read the rest of this entry »
Tags: ASP.Net, FOSS, Microsoft, PHP
Posted in Techi Gyaan | Comments (0)
Epic Speeches by Linus Torvalds!!! March 24th, 2010
I have been mesmerised by Linus Torvalds speeches… here are a few of them…
Linus Torvalds visits Google to share his thoughts on git, the source control management system he created…
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..
Tags: FOSS, Linux
Posted in Techi Gyaan | Comments (0)
Howto : Twitter from Command Line… January 25th, 2010
This is a tutorial explaining how to post to Twitter using command-line in Linux, without needing to even open up your web browser….
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 included in your $PATH variable, in case echo $PATH doesn’t return it, edit ~/.bashrc and add a line like this: export PATH=/home/USER/bin/:$PATH)…
The script tweet.sh should contain the following: Read the rest of this entry »
Tags: Bash, Command Line, Fedora, FOSS, Linux, twitter, Ubuntu
Posted in Techi Gyaan | Comments (0)
Commandline Fu!!! January 18th, 2010
I’m a great fan of Linux command-line, basically because of its amazing versatility… I love to find new ways to do things from the command line, so do not have to leave the comfort of my keyboard….
Recently, I found a site that let’s me learn awesome command line tricks.. Its called commandlinefu.com
Tags: FOSS, Linux
Posted in Techi Gyaan | Comments (0)
Howto Reinstall Grub!!! January 15th, 2010
It being a very common problem and sooner or latter a Linux user tends to face it when installing Windows after Linux… The master boot records from the memory are lost and they are writed for windows only systems…. So here is the way to write Master boot records or rather installing grub again so that LINUX gets back to work..
1. Boot the Desktop/Live CD of linux.
2. Open a terminal (Applications -> Accessories -> Terminal)
3. Start grub as root with the following command :
sudo grub Read the rest of this entry »
Tags: FOSS, GRUB, Linux
Posted in Techi Gyaan | Comments (0)
FOSS Wireframing Tool!!! January 7th, 2010
I found the best open source wireframing tool, for the developers out there that sometimes like/have to pretend they are designers and need to create prototypes for graphical user interface, its called Pencil Project.
The Pencil Project runs as a standalone application or as a Firefox add-on. You can download it at the main site or directly from the evoluspencil code repository where you can also find more stencils packages.
Go get it now!
Tags: Firefox, FOSS, Pencil Project
Posted in Techi Gyaan | Comments (0)
What Does “OPEN” Mean to Google!!! December 22nd, 2009
Jonathan Rosenberg, Senior Vice President, Product Management posted a nice article yesterday, pointing out what really does OPEN mean to Google…
Last week I sent an email to Googlers about the meaning of “open” as it relates to the Internet, Google, and our users. In the spirit of openness, I thought it would be appropriate to share these thoughts with those outside of Google as well.
At Google we believe that open systems win. They lead to more innovation, value, and freedom of choice for consumers, and a vibrant, profitable, and competitive ecosystem for businesses. Many companies will claim roughly the same thing since they know that declaring themselves to be open is both good for their brand and completely without risk. After all, in our industry there is no clear definition of what open really means. It is a Rashomon-like term: highly subjective and vitally important….
Tags: FOSS, Google
Posted in Assorted Gyaan | Comments (0)
Why be a FOSS Contributor???
December 9th, 2009
Giving things away for the good of others
Giving things away for the good of others
I find this to be a noble thing to do.. It’s quite generous to help someone… That is the case with commodities and money. How is it different when it is applied to knowledge?? Read the rest of this entry »
Tags: FOSS
Posted in Techi Gyaan | Comments (0)
How To Become A Hacker??? November 26th, 2009
What does the word ‘HACKER’ mean? I am not worried about the English dictionary meaning of the word, but what does it really mean to you?
Go ahead and read this really wonderful & very famous article from Eric. S. Raymond How To Become Hacker. Read the rest of this entry »
Tags: FOSS, Hacker, Linux
Posted in Techi Gyaan | Comments (2)