Here is the great video from Josh Bloch on GWT.
Saturday, November 21, 2009
Wednesday, November 11, 2009
Extremely useful blog entries that I used in recent days
Subversion, subclipse, JavaHL - http://blog.lv25.com/2009/04/build-subversion-16-on-ubuntu-810.html
Eclipse on Snow Leopard - http://ekkescorner.wordpress.com/2009/06/30/galileo-epp-for-cocoa-64-bit/
Friday, November 6, 2009
pic2shop
My brother just found a great application, something extremely useful to shoppers, actually cautious shoppers who want to make sure that they get the best price. The application is called as 'pic2shop'. You can just scan bar code using iPhone and then it tells you the price on best of the websites. You can go to amazon, bestbuy, buy.com from here to get more information.
Just cool :)
Wednesday, November 4, 2009
GWT on Snow Leopard
I was trying to run gwt module on Mac Snow Leopard. Snow Leopard does not come with java 1.5, so when I tried running gwt module after upgrading from Leopard, it did not work.
I tried following and it worked. Here is the page.
Tuesday, October 13, 2009
Henplus installation on Jaunty Jackalope
Henplus is one of the great tools where one can perform database operations. It is a great tool for developers who are working remotely on Linux or Mac machines. I had Henplus installed on Gutsy Gibbon for a long time and I successfully used it to code my jdbc calls and test it while being at home all through ssh tunneling.
Now it was time to move to Jaunty Jackalope but somehow the move was not so easy when it came to henplus. I tried installing henplus using just
sudo apt-get install henplus
This installation has a problem that it does not let you pass
userName@machineName:~$henplus
using GNU readline (Brian Fox, Chet Ramey), Java wrapper by Bernhard Bablok
henplus config at /home/oliver/.henplus
---------------------------------------------------------------------------
HenPlus II 0.9.7-1 Debian
Copyright(C) 1997..2006 Henner Zeller
HenPlus is provided AS IS and comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it under the
conditions of the GNU Public License
---------------------------------------------------------------------------
usage: henplus
-h,--help print this message
-J,--url JDBC URL to connect to
-P,--password Password to connect with
-U,--username Username to connect with
---
The problem is discussed here. The problem is still not fixed in Jaunty, so I decided to directly download it from henplus site.
- Here is the link to download henplus.
- You will also need libreadline-java, download it from following libreadline.
- You will need to make for libreadline-java as followed userName@machineName:/opt/installs/libreadline-java-0.8.0$ make
- You will see that there is new jar that is created libreadline-java.jar . Copy this jar to /usr/lib userName@machineName:/opt/installs/libreadline-java-0.8.0$ cp libreadline-java.jar /usr/lib/.
- Now you will need to update the script of henplus as followed (at the end of this article) userName@machineName:/opt/installs/henplus/bin$sudo gedit henplus
- Now final step you will need to compile the java files to classes. userName@machineName:/opt/installs/henplus$ ant -buildfile build.xml
- You of course need to have JAVA_HOME set on your machine. Of course whatever jdbc driver that you are using, you will need to have that in CLASSPATH defined in your /etc/bash.bashrc.
- You should be able to use henplus userName@machineName:/opt/installs/henplus/bin$ henplus ./.../../build/classes::/opt/installs/jdk1.6:/opt/installs/ant/bin:/opt/installs/ojdbc14.jar:/opt/installs/jmeter/bin:/opt/installs/jdk1.6/lib:./../lib/commons-cli-1.2.jar:./../lib/libreadline-java-0.8.0.jar ./../build/classes::/opt/installs/jdk1.6:/opt/installs/ant/bin:/opt/installs/ojdbc14.jar:/opt/installs/jmeter/bin:/opt/installs/jdk1.6/lib:./../lib/commons-cli-1.2.jar:./../lib/libreadline-java-0.8.0.jar:/usr/lib/libreadline-java.jar
using GNU readline (Brian Fox, Chet Ramey), Java wrapper by Bernhard Bablok
henplus config at /home/shilpa/.henplus
----------------------------------------------------------------------------
HenPlus II 0.9.8 "Yay Labor Day"
Copyright(C) 1997..2009 Henner Zeller
HenPlus is provided AS IS and comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it under the
conditions of the GNU Public License
----------------------------------------------------------------------------
Hen*Plus>
Here is the updated henplus script
#!/bin/sh
# $Id: henplus,v 1.13 2006-03-19 22:41:56 hzeller Exp $
### additional flags you might want to pass to the java interpreter
# like -Dfile.encoding=ISO-8859-1
JAVA_FLAGS=
if [ -z "$JAVA_HOME" ] ; then
# try to use java in path
JAVA=java
else
JAVA=$JAVA_HOME/bin/java
fi
##------------------
THISDIR=`dirname $0`
# install layout is: script in /usr/bin/henplus and libs in /usr/share/henplus
HENPLUSDIR=$THISDIR/.. #WE HAVE UPDATED THIS
echo $HENPLUSDIR
# not yet installed ? Then look in the local build directory, we need to make sure that build/classes are added to the classpath.
#WE HAVE UPDATED FOLLOWING SECTION
if [ ! -d "$HENPLUSDIR" ] ; then
HENPLUSDIR=$THISDIR/..
fi
for f in $HENPLUSDIR/lib/*.jar ; do
CLASSPATH=$CLASSPATH:$f
done
CLASSPATH=$HENPLUSDIR/build/classes:$CLASSPATH
echo $CLASSPATH
# location of the readline lib.
# Modify this, if you installation stores this at a different
# position.
LD_LIBRARY_PATH=$THISDIR/../lib:/usr/lib/jni:$LD_LIBRARY_PATH
CLASSPATH=$CLASSPATH:/usr/lib/libreadline-java.jar #WE HAVE UPDATED THIS
# you may just throw your own jar files in this dir.
# (like additional JDBC-drivers, that are not in default
# classpath)
for f in $HENPLUSDIR/*.jar $HENPLUSDIR/*.zip ; do
if [ -r "$f" ] ; then
CLASSPATH=$CLASSPATH:$f
fi
done
echo $CLASSPATH
# starting at the current directory we look for additional
# JDBC-drivers in .henplus/lib-directories up the path.
# if no directory like that has been found the one in the
# home directory will be used
DIR=`pwd`
CUSTOM_HENPLUSDIR=""
while [ $DIR != "/" ] ; do
if [ -d $DIR"/.henplus/lib" ]; then
CUSTOM_HENPLUSDIR=$DIR"/.henplus/lib"
break
fi
DIR=`dirname $DIR`
done
if [ -z $CUSTOM_HENPLUSDIR ]; then
if [ -d "/.henplus/lib" ]; then
CUSTOM_HENPLUSDIR="/.henplus/lib"
else
CUSTOM_HENPLUSDIR=$HOME/.henplus/lib
fi
fi
for f in $CUSTOM_HENPLUSDIR/*.jar $CUSTOM_HENPLUSDIR/*.zip ; do
if [ -r "$f" ] ; then
CLASSPATH=$CLASSPATH:$f
fi
done
export CLASSPATH LD_LIBRARY_PATH
exec $JAVA $JAVA_FLAGS henplus.HenPlus "$@"
Sunday, February 15, 2009
Some links of great presentations
Finally after a long postponement, I saw the presentation How to design an API by Joshua Bloch. I want to share a link where you can see the video and presentation. Just click here. Also while googling him, I found that he is one of the top 40 software people in the world. If you are interested, here is the list.
InfoQ is a great site with exceptional presentation. One of the latest addition is Neal Gafter's presentation. I hope to see that soon.
Subscribe to:
Posts (Atom)