Showing posts with label python. Show all posts
Showing posts with label python. Show all posts

Saturday, October 23, 2010

to dB or not to dB

Personally not a big fan of Database technologies. I have only been exposed to PostgresSql and MySql and Oracle but haven't done anything advanced which I can call it as a skill. From what I remember the most screwy query that I have executed is importing and exporting about 2 gigs of some DBpedia file in postgres and still screwed up the DB pretty well.

Exploring as usual I stumbled upon this MongoDB what caught my eye was JSON-style documents with dynamic schemas offer simplicity and power. Already aware of JSON format and having worked on a JSON-RPC kinda modules, I assumed it was some sort of retrieval format of data. Clicking leads me to BSON specs (scroll to the examples and drag the mouse over the BSON format). Going back to MongoDB I goto the obvious tutorial section which leads me here http://try.mongodb.org/ . What an awesome tutorial !!! 
soon :
sudo apt-get install mongodb

sudo easy_install pymongo

didnt work so easily had to get help something about error while loading shared libraries: libmozjs.so, I am guessing the xulrunner package issues.
So here goes :

Have fun playing around with this new schemaless, document-oriented, NoSQL database and its abundant array of drivers.

PS : I found a link to http://expressjs.com/ ... I have read few things about Node.js but what is this now !!!

Saturday, October 2, 2010

Stackoverflow

My first question at Stackoverflow !!!

http://stackoverflow.com/questions/3846631/c-vs-python-precision


I got the solution in minutes later !!! thanks TOR VALAMO

AWK, SED, GREP, FIND

The basics of these 4 utilities is a must know !!! I have found a few tutorials which atleast taught me the basics which HELPS a lot !!!




GREP : http://www.readylines.com/linux/grep/basics You will find a lot on grep but this one of the most basic one I could find.


Well after all this I couldnt resist but googling up python appended to each of these commands and well a few things to read ....




Friday, October 1, 2010

MozGnowser

Our final year project MozGnowser done under the guidance of Dr. Nagarjuna ( chairman of FSF India). His blog http://gnowgi.org/ is a must visit. After completing a mini project of a Mozilla toolbar to connect to http://www.gnowledge.org/ we were given the task of making a GUI for Gnowsys (http://lab.gnowledge.org/Software) as a Mozilla extension.

Gnowsys : Gnowledge networking and Organizing System (GNOWSYS) is the flagship software project. Its main objective is to implement a theory of meaning (neighbourhood theory of meaning) represented in the form of a structure of memory.

Initially all the attempts to make Cross site XML-RPC requests from a remote client was fruitless. Then writing a JSON-RPC server on client side and then using it as a sub domain was the next choice. While googling for python and XPCOM landed to the beautiful solution called PyXPCOM (http://pyxpcomext.mozdev.org/index.html). Creating python stubs and using jquery and jquery-ui we were able to make all requests and with python's power at the backend helped create a powerful application. We faced issues with rendering the SVG which was the most crucial part of the project and to make it interactive with the rest of the UI. The SVG generated at the server side by the Gnowsys app itself. Stumbling onto yet another SVG library http://www.dotuscomus.com/svg/lib/library.html which took a lot of time modifying for making a suitable for the NozGnowser. We used the python backend to completely rewrite the SVG to make it suitable to the DOM interactions we needed.

Proxy settings feature and using the THREAD manager to make the JS scripts run in parallel so that no more UNRESPONSIVE SCRIPT warnings due to slower connections was also implemented. Then the GnowQL Shell where developers can write the python gnowql commands to obtain the pythonised results was also added.


some snapshots of the project :