Supermind Search Consulting Blog 
Solr - Elasticsearch - Big Data

Definitive guide to svn post-commit emails with nice colored diffs on DreamHost

Posted by Kelvin on 08 Jun 2010 | Tagged as: programming

Step 1 mkdir ~/perl Step 2 perl -MCPAN -e 'install SVN::Notify' This command will try to do something, then most probably fail. That's OK. Step 3 Change ~/.cpan/CPAN/MyConfig.pm to contain: 'makepl_arg' => q[PREFIX=/home/username/perl LIB=/home/username/perl/lib], 'mbuildpl_arg' => q[install_base=/home/username/perl], Step 4 perl -MCPAN -e 'install SVN::Notify' This should now install properly Step 5 Running ~/perl/bin/svnnotify should produce: […]

MySQL collations demystified

Posted by Kelvin on 07 Jun 2010 | Tagged as: programming

Good article here: http://code.openark.org/blog/mysql/mysqls-character-sets-and-collations-demystified MySQL’s character sets and collations are often considered as a mystery, and many users either completely disregard them and keep with the defaults, or set everything to UTF8. This post will attempt to shed some light on the mystery, and provide with some best practices for use with text columns with […]

Django not setting default column value in MySQL

Posted by Kelvin on 07 Jun 2010 | Tagged as: programming

Django 1.1 refuses to set the default value of columns when creating SQL. For example, given this model, class Test(models.Model): price = models.IntegerField(default=0) Django generates the following SQL: CREATE TABLE `test` ( `id` INTEGER AUTO_INCREMENT NOT NULL PRIMARY KEY, `price` INTEGER NOT NULL ) ; Its a relatively easy fix: 1. Hunt down the django […]

EVDO/3G as preferred network on Android 2.1+

Posted by Kelvin on 05 Jun 2010 | Tagged as: programming, android

Found this out through a friend: 1. Hit *#*#4636#*#* 2. Phone Info 3. Select WCDMA in Preferred Network. More information on preferred networks available here: http://www.google.com/support/forum/p/android/thread?tid=6a327a95211ac789&hl=en WCDMA preferred – The GSM phone is capable of using both 2G and 3G data communication and when signal strength is low 3G is favored more. GSM only – […]

Accepting remote proxy connections on Android

Posted by Kelvin on 02 Jun 2010 | Tagged as: android, programming

Android's adb bridge, when performing port forwarding to the Android device, only accepts connections from localhost. This is most probably for security reasons, but is a nuisance when you want to be able to access the net via your Android device from >1 computer over the network. The solution: http://rxwen.blogspot.com/2009/11/adb-for-remote-connections.html Its a drop-in replacement for […]

[SOLVED] Android 2.1 + HTC Droid Eris on Windows XP

Posted by Kelvin on 28 May 2010 | Tagged as: programming, android

After updating to Android 2.1, Windows XP no longer recognized my HTC Droid Eris. The fix: 1. download the USB Driver via the Windows Android SDK 2.check your Android's VID and PID via Windows Device Manager 3. Open android_winusb.inf in the usb_driver folder and check that the VID/PID combo exists in the file. 4. If […]

[SOLVED] Ubuntu 10.04 Lucid and VMWare Workstation 6.5.4

Posted by Kelvin on 26 May 2010 | Tagged as: programming, Ubuntu

After following a number of unsuccessful links, the definitive solution for installing VMWare Workstation 6.5.x on Ubuntu 10.04: http://blog.digital-scurf.org/2010/04/20#vmware-6.5.4-ubuntu-10.04

[SOLVED] Set cd-rom speed on Ubuntu

Posted by Kelvin on 03 May 2010 | Tagged as: programming, Ubuntu

My cdrom is a speedy 48x drive. Unfortunately when it revs up, its often rather loud. Here's how to lower the speed on Ubuntu. sudo apt-get install setcd setcd -x 1 Change -x 1 to -x [some number] where the higher the number, the faster the drive.

[SOLVED] Connection Reset problems with Proxoid

Posted by Kelvin on 02 May 2010 | Tagged as: programming, android

Update My patched version of Proxoid is available here: http://www.supermind.org/friends/SuperProxoid-debug.apk Source code is available here: http://www.supermind.org/friends/superproxoid-snapshot-20101009.tar.gz Note: I'm no longer using Proxoid, SuperProxoid, or even AziLink etc. I'm now using a rooted Android 2.2 which supports USB and wifi tethering! Way cool. Instructions here: http://www.supermind.org/blog/774/upgrade-your-htc-droid-eris-to-android-2-2 I've been using the excellent tether app, Proxoid to hook […]

Upgrading to Lucene 3.0

Posted by Kelvin on 28 Apr 2010 | Tagged as: programming, Lucene / Solr / Elasticsearch / Nutch

Recently upgraded a 3-year old app from Lucene 2.1-dev to 3.0.1. Some random thoughts to the evolution of the Lucene API over the past 3 years: I miss Hits Sigh. Hits has been deprecated for awhile now, but with 3.0 its gone. And I have to say its a pain that it is. Where I […]

« Previous PageNext Page »