Solution of "UnicodeEncodeError:'latin-1' codec can't encode character ..." while working with MySQLdb and Python.

Posted on Wed 28 March 2012 in General • Tagged with mysql, mysqldb, pythonLeave a comment

I got the error of "UnicodeEncodeError:'latin-1' codec can't encode character ..." while i was inserting data into mysql with MySQLdb/Python.

Below is the solution:

import MySQLdb as litefire
conx = litefire.connect('127.0.0.1', 'root', '' , 'litefire2' );
conx.set_character_set('utf8')
conr=conx.cursor()
conr.execute('SET NAMES utf8 ...

Continue reading

Solution of "Could not Find any X11 fonts, check that Font path is correct" while working with "R-statistics" and "Python-rpy2" on MAC LION 10.7.2

Posted on Mon 13 February 2012 in General • Tagged with bashrc, Could not Find any X11 fonts, python, R, R Foundation for Statistical Computing, rpy, rpy2 and python, X11, x11 fontsLeave a comment

Such kind of error i got while i want to get some graphics using python and rpy on Mac LION 10.7.2.
After some google i got the solution, but that search was very tedious, so i decided to simplified the whole procedure. Below is the solution for that ...

Continue reading

Solution of "Can't turn on Web sharing on Mac OSX LION!"

Posted on Sun 05 February 2012 in General • Tagged with Apache, mac os x, osx-lion, web sharingLeave a comment

I have upgraded my macbook from snow leopard to lion. I have to test some python-cgi, for that i want to use native apache that i shipped with mac operating system. But when i click the checkbox to turn it on it displays a dash in the checkbox, changes from ...

Continue reading

Outlook of Global Carbon Market

Posted on Sun 25 September 2011 in GeneralLeave a comment

We can’t ignore this development. I believe that in distant future, it will be levied as a tax on the common people.

But I believe this is not the proper way to address the main problem(Global warming). These are just quick-fixes, not long-term solution.

Long-term solution requires change ...

Continue reading

Horrible reality!

Posted on Thu 31 March 2011 in GeneralLeave a comment

I am speechless!!!
wake up please,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

Continue reading