Supermind Search Consulting Blog 
Solr - Elasticsearch - Big Data

Recursive directory listing sorted by file size

Posted by Kelvin on 03 Dec 2010 | Tagged as: Ubuntu

Ever wanted to list a directory sorted by decreasing file size? Useful for finding large files.. du -k * | sort -nr | cut -f2 | xargs -d '\n' du -sh Courtesy of LinuxQuestions.org

Hide 'Uncategorized' category in WordPress

Posted by Kelvin on 26 Nov 2010 | Tagged as: programming

The solution to this is somewhat surprising. It doesn't involve any PHP code or modifications to functions. It's a CSS declaration! .cat-item-1 {display:none;}

Resume cancelled/crashed downloads in Google Chrome on Ubuntu/OSX

Posted by Kelvin on 28 Oct 2010 | Tagged as: Ubuntu

If you've ever found yourself downloading a large file in Google Chrome (like the 700MB Ubuntu distro) and had either Chrome or the OS crash, read on to find out how to recover and resume the download using wget First, go to the folder where Chrome saves your downloads. For me, its ~/Downloads and list […]

How to wipe your hard drive securely

Posted by Kelvin on 26 Oct 2010 | Tagged as: Ubuntu

Give yourself a pat on the back if you're even thinking of doing this. Its kinda scary what people put on their hard drives, then casually dispose of them without first wiping the data clean. Some really interesting comments from shred.c, written by Colin Plumb: * Do a more secure overwrite of given files or […]

Solandra – Solr running on Cassandra

Posted by Kelvin on 21 Oct 2010 | Tagged as: Lucene / Solr / Elasticsearch / Nutch

Courtest of Nick Lothian.. http://nicklothian.com/blog/2009/10/27/solr-cassandra-solandra/

What's new in Solr 1.4.1

Posted by Kelvin on 20 Oct 2010 | Tagged as: Lucene / Solr / Elasticsearch / Nutch

Solr 1.4.1 is a bug-fix release. No new features. Here's the list of bugs that were fixed. * SOLR-1934: Upgrade to Apache Lucene 2.9.3 to obtain several bug fixes from the previous 2.9.1. See the Lucene 2.9.3 release notes for details. (hossman, Mark Miller) * SOLR-1432: Make the new ValueSource.getValues(context,reader) delegate to the original ValueSource.getValues(reader) […]

Change Redmine homepage to project page

Posted by Kelvin on 15 Oct 2010 | Tagged as: programming

Edit config/routes.rb Change map.home to look like this: map.home ", :controller => 'projects', :action => 'show', :id => 'projectname'

How to copy a Subversion directory to another repo preserving revision history

Posted by Kelvin on 15 Oct 2010 | Tagged as: programming

svnadmin dump /svn/old_repos > ./repository.dump svndumpfilter include path/to/docs path/to/anotherdir –drop-empty-revs –renumber-revs –preserve-revprops < ./repository.dump > ./docs_only.dump svnadmin load /svn/new_repos < ./docs_only.dump Courtesy of stackoverflow. Note that the switches –drop-empty-revs –renumber-revs will change revision numbers. Omit these switches if preserving version numbers is important to you.

How to serve a Subversion repository from Apache

Posted by Kelvin on 14 Oct 2010 | Tagged as: programming

There are alot of tutorials out there on how to get Apache working with Subversion. I think most coherent instructions can be found at http://csoft.net/docs/svndav.html.en If you use Dreamhost like I do, and like the easy way in which subversions repos are setup, then you'll like what you see there.

URLizer: a WordPress plugin to automatically linkify URLs

Posted by Kelvin on 12 Oct 2010 | Tagged as: programming, PHP

Am I the only guy using WordPress who is too lazy to type out anchors? Well, I've been using a WordPress plugin I wrote to automagically linkify URLs for a number of years now, and finally decided to add it to Google Code. So here it is! http://code.google.com/p/urlizer/

« Previous PageNext Page »