Inspired from my friend Alosh Bennett I also jumped into the world of firefox extensions. Last weekend tried to write a rudimentary URL shortener firefox plug-in called googly. The name is inspired from Alosh’s URL shortener plug-in shortly (which was apparently named so because it uses http://bit.ly as the shortening service ). In my case …
Category Archive: Code
Sep 21
Setting JAVA_HOME Environment variable in Ubuntu
I know this is a very tiny problem but we often tend to forget and start googling till we find an working example We can use the following to set the $JAVA_HOME environment variable on an Ubuntu Linux system where there is no specific JDK installation directory and we want to point it to the …
Sep 06
Hadoop Resources
I thought of putting Hadoop recourses together in this post Apache ——– MapReduce Tutorial ||Quick Start setup [Versions keeps increasing , see the URL for latest] API Docs || Wiki || Source Control Yahoo ——- Hadoop Blog || Yahoo Hadoop Tutorial Cloudera Video Training Books ——- Hadoop: The Definitive Guide / Pro Hadoop Blogs: What …
Aug 21
Beginning Android
The word “Android” had been buzzing since quite a while now. However I realized the power and beauty of it only when I saw my friend’s Google Nexus one phone (Not sure why they stopped it, probably it was just for Demo ) and finally ended up buying an entry level Android phone , HTC …
Jun 04
XSD editor in netbeans IDE 6.8
Recently I downloaded netbeans IDE from http://netbeans.org/ everything seemed to be working fine until I tried to validate my .xsd file in it. It showed me an error “Cannot find the declaration of element ‘xsd:schema’.” even though my xsd file was valid and began with xsd tag <xsd:schema xmlns:xsd=http://www.w3.org/2001/XMLSchema targetNamespace="http://www.example.org/schema/test/v1" xmlns:tns="http://www.example.org/schema/test/v1" …
Mar 28
Interactive Chart from Google Apps Engine datastore
Create a simple python file chart.py which should have been already mapped to a particular URL pattern in app.yamx – url: /chart/.* script: chart.py 1: import cgi 2: 3: from google.appengine.ext import db 4: import hist 5: 6: import os 7: from google.appengine.ext.webapp import template 8: 9: quotes = db.GqlQuery("SELECT * FROM HistoricalPrices") 10: …
Mar 28
Loading CSV data in Google Apps Engine datastore
Edit your app.yaml, and add the following lines to the handlers: section: – url: /remote_api script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py login: admin 1.Create hist.py similar to the type of data in CSV file. 1: from google.appengine.ext import db 2: 3: class HistoricalPrices(db.Model): 4: SYMBOL = db.StringProperty() 5: SERIES = db.StringProperty() 6: OPEN = db.FloatProperty() 7: HIGH = db.FloatProperty() …