Author Archives : techstruggles


Nutch: setup tomcat

After building war file for nutch with: ant war Put nutch-*.war  and nutch.xml into /opt/tomcat/apache-tomcat-7.0.12/webapps Restart tomcat and it will expand war file automatically. I also created softlink in /opt/tomcat/apache-tomcat-7.0.12/conf/Catalina/localhost/nutch.xml to point to /opt/tomcat/apache-tomcat-7.0.12/webapps/nutch.xml  Don’t know if it’s necessary.  Once you create this you’ll have to restart tomcat. Edit nutch.xml to tell it where index is […]


Setting up Nutch: war file

You need to build war file with: ant war However, you may get: java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.TraXLiaison Your ant may not be installed right. Just download binaries (not use yum) from ant.apache.org set classpath to the jars within, e.g. export CLASSPATH=/opt/ant/apache-ant-1.8.2/lib/ant-antlr.jar:/opt/ant/apache-ant-1.8.2/li b/ant-apache-bcel.jar:/opt/ant/apache-ant-1.8.2/lib/ant-apache-bsf.jar:/opt/ant/apache-an t-1.8.2/lib/ant-apache-log4j.jar:/opt/ant/apache-ant-1.8.2/lib/ant-apache-oro.jar:/opt/an t/apache-ant-1.8.2/lib/ant-apache-regexp.jar:/opt/ant/apache-ant-1.8.2/lib/ant-apache-res olver.jar:/opt/ant/apache-ant-1.8.2/lib/ant-apache-xalan2.jar:/opt/ant/apache-ant-1.8.2/l ib/ant-commons-logging.jar:/opt/ant/apache-ant-1.8.2/lib/ant-commons-net.jar:/opt/ant/apa che-ant-1.8.2/lib/ant-jai.jar:/opt/ant/apache-ant-1.8.2/lib/ant-javamail.jar:/opt/ant/apa che-ant-1.8.2/lib/ant-jdepend.jar:/opt/ant/apache-ant-1.8.2/lib/ant-jmf.jar:/opt/ant/apac he-ant-1.8.2/lib/ant-jsch.jar:/opt/ant/apache-ant-1.8.2/lib/ant-junit4.jar:/opt/ant/apach e-ant-1.8.2/lib/ant-junit.jar:/opt/ant/apache-ant-1.8.2/lib/ant-launcher.jar:/opt/ant/apa che-ant-1.8.2/lib/ant-netrexx.jar:/opt/ant/apache-ant-1.8.2/lib/ant-swing.jar:/opt/ant/ap ache-ant-1.8.2/lib/ant-testutil.jar:$CLASSPATH AND make sure ANT_HOME is […]


Cron stopped working on solaris

Check if cron is running, if so, check /var/cron/log If it says: ! c queue max run limit reached Sat May  7 21:15:00 2011 ! rescheduling a cron job Sat May  7 21:15:00 2011 ! c queue max run limit reached Sat May  7 21:16:00 2011 ! rescheduling a cron job Sat May  7 21:16:00 […]


Mac OS on VM:

Fails to boot on desktop with some panic error. So do the following: 1. During boot, on screen that prompts to boot from CD or hd, press tab, then select 2nd option (boot from HD), and also enter: -v busratio=18


Droid X: use internal memory instead of sdcard

Droid X has 8 gb of internal memory. In theory you shouldn’t need an sdcard for storage.  So use adb (i.e. adb shell): umount /sdcard mount -o rw,remount / umount /sdcard ln -s cache /sdcard It’s just creating a symbolic link.  If you can’t do the ln command, get “root explorer” app, go to root, […]


Signup for Amazon App Store without credit card

Create fake info from here: http://www.fakenamegenerator.com/gen-random-us-us.php  per instructions from http://androinica.com/2011/03/amazon-app-store-used-outside-the-united-states/ I don’t see why I needed to give them my credit card information when I plan on getting free apps only.  Nevertheless,  I have not tried nor will I use that randomly generated info to download a non-free app.  It’s only to get past the […]


Android

Droid x: change default user to marketplace: 1. move /data/system/accounts to /sdcard 2. download sqlite3 3. sqlite3.exe accounts.db 4. change accounts table’s row that contains old email 5. copy accounts.db back into /data/system/accounts