Posts Tagged ‘Linux’
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)
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)
Generate Hardware Information on Linux!!! February 8th, 2010
You can generate a nice report (HTML or XML format) of your laptop/desktop hardware information by executing this command:
lshw -html > sysinfo.html
You may need to install it first… For Debian and Ubuntu users installation is simple..
sudo aptitude install lshw
You can find the detailed information about lshw from the following page: http://www.ezix.org/project/wiki/HardwareLiSter
Tags: Fedora, Linux, Softwares, Ubuntu
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)
‘Googlle’ opens technology certification ‘school’ in India!!! January 4th, 2010
Read the title again….. ‘GOOGLLE‘
The website for the new school, found here, is as bogus as it gets. Not only does it rip off Google’s logo, but it even uses the same favicon, all whilst having dead links to various web pages. According to TechCrunch, Googlle offers two different certifications: the “GCPA – Googlle Certified Professional in Advanced Computing,” and the “GCPE – Googlle Certified Professional in E-Commerce.” The first certification hopes to educate the students in technologies such as Windows and Linux, and the second teaches skills such as proficiency with Photoshop.
Not only that, but there are also, “Modular courses – duration 60 days to 90 days that can enhance your computer skills and offer you “GOOGLLE” certification, no matter what your specific requirement.” The courses are said to take two years to complete, though, worryingly, the main website shows a campus which apparently doesn’t exist. The real question now is whether or not the site will remain operational for much longer; no doubt Google will take action, hopefully sooner rather than later.
Tags: Google, Linux, Microsoft, Windows
Posted in Assorted Gyaan | Comments (1)
Finally Google Chrome for Mac & Linux!!! December 9th, 2009
Google released its Chrome Browser for Mac and Linux yesterday… Chrome for Mac/Linux beta doesn’t have all of the features available to Chrome on Windows, and if you’ve been using the dev builds of Chrome before this, you probably won’t notice any significant changes.
Got a chance to play around with it on Ubuntu yesterday night… It is not as noticeably faster than Firefox…. But it is significantly better at managing large amounts (20+) of tabs than Firefox.. Chrome is the first mainstream Webkit Browser for Linux. Most people won’t have used Konqueror as Firefox is the most popular browser on Linux. Overall, it is a great foundation for an excellent browser future. It is in my top 3 with Safari and Firefox.
Chrome for Mac/Linux beta is a free download, works with Intel Macs running Leopard or Snow Leopard or Linux PCs.
Tags: Chrome, Chromium, Google, Linux, Ubuntu
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)
Fedora 12 ‘Constantine’ has been released!!! November 18th, 2009
The final release of Fedora’s 12th edition, code-named Constantine, is available for download, after a two-week slippage in its release schedule. The new RedHat community Linux distro includes power management features pulled from RHEL 5, improved support for netbooks, and a much-improved NetworkManager. Read the rest of this entry »
Tags: Fedora, FOSS, Linux
Posted in Techi Gyaan | Comments (0)