Skip to main content


Showing posts from March, 2011

Installing python in user space

cd Python-2.6.6/
./configure --prefix=/home/kg46/local
make install

git clone git:// numpy
~/local/bin/python install --prefix=/home/kg46/local/

Installing matplotlib in user space

Problem:Need to install matplotlib in user space, because I'm going to use a HPC cluster and their version of everything is just a little out of date.

Solution:svn co matplotlib
cd matplotlib
python install --home=~

Now add to .bash_login the lines

And python is picking up the svn version

Spotlight : disabling and reenabling

Problem:I completely screwed up spotlight by killing the mds process AND deleting some spotlight files
Solution:From here: The following commands can be used to properly enable and disable spotlight

sudo launchctl unload -w /System/Library/LaunchDaemons/
sudo launchctl unload -w /System/Library/LaunchAgents/

sudo launchctl load -w /System/Library/LaunchDaemons/
sudo launchctl load -w /System/Library/LaunchAgents/

Important Bangla unicode rules

Consonant conjucts are made using hashanta 0x09cdHashanta is generated using hashanta + zero width non joiner 0x09cd + 0x200cThe zwnj is only needed if the next letter would form a conjunct. Otherwise, 0x09cd is understood to be a hashanta All indic scripts use the devnagari danda and double danda 0x0964,0x0965

Input Method for Bengali (Bangla) on Mac OS X

Wanted to have an IM for Bangla on the MacDidn't find any onlineFound this tutorial from Apple on how to make an IMOnly problem is that the system does not seem to support the generation of conjunctions of vowel modifiers.This means that each and every conjunction and consonant+vowel combination must be present in the file:
i.e. if we want to write কৌ (kou) we have to set kou = কৌ in the file: we can't build a rule. So this file must have all the possible combinations, like কু  কূ etc. etc.This is tedious to do by hand. I'm working on a small script to do these mix-n-matches and print out a input method file based on the rules I developed for lekho (see I knew that effort would come in useful some day!)Jamil Ahmed has put up a bangla dictionary for Firefox.Input keystrokes are case insensitive.

Google can block searches for you

Do a searchClick on the link to go to some hit (This must be done first)Hit back on the browserThe relevant hit now has a "Block" link below itClick it if you want to block search hits from that siteI was initially looking for the "Block" link and didn't find it. It is not so well advertized that you have for first visit the site, before you can block it.

Mac OS X: Sparse Bundles and backups

Sparse bundles, like read/write disk images, can be encryptedCreate a sparse bundle through the disk utilityThe sparse bundle's size on disk corresponds to its content size (which I like, but you may not like that it gives away some information about its insides)The change password function of Disk Utility (Images->Change Password) does not work through the GUI (the sparse bundle is greyed out and can not be selected). Use the command line instead:
hdiutil chpass /path/to/Encrypted.sparsebundle/
The sparse bundle is supposed to be easier on Time Machine and other backups, because it is not one monolithic structure.Resizing the sparse bundle needs to also be done through the command line (GUI greyed out) and is done using
hdiutil resize -size 1.5g /path/to/bundle
Where 1.5g is the new size. It will ask you for the password.

Rubyforge repository public key (from Ben)

Ben writes:

 I don't know if you use rubyforge much anymore, but I found that the reason for this [he could not commit or update his code repository on rubyforge] was because they suddenly started requiring a public key and password authentication is now disabled.
Thought I'd give you a heads up so you don't spend the time trying to troubleshoot on your end.  Maybe you can write a blog entry about it.  It sort of annoys me that they didn't at least notify us by email that they were changing their login setup. Blog entry plagiarized as requested.

Also see