Skip to main content

Posts

Showing posts from March, 2011

Installing python in user space

wget http://www.python.org/ftp/python/2.6.6/Python-2.6.6.tar.bz2 cd Python-2.6.6/ ./configure --prefix=/home/kg46/local make make install git clone git://github.com/numpy/numpy.git numpy ~/local/bin/python setup.py 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 https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib matplotlib cd matplotlib python setup.py install --home=~ Now add to .bash_login the lines PYTHONPATH='/home/kg46/lib/python/' export PYTHONPATH 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 Disable: sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist sudo launchctl unload -w /System/Library/LaunchAgents/com.apple.Spotlight.plist Enable: sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist sudo launchctl load -w /System/Library/LaunchAgents/com.apple.Spotlight.plist

Important Bangla unicode rules

Consonant conjucts are made using hashanta 0x09cd Hashanta is generated using hashanta + zero width non joiner 0x09cd + 0x200c The 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 Mac Didn't find any online Found this tutorial from Apple on how to make an IM Only 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 search Click on the link to go to some hit (This must be done first) Hit back on the browser The relevant hit now has a "Block" link below it Click it if you want to block search hits from that site I 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 encrypted Create a sparse bundle through the disk utility The 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. http://www.ruby-forum.com/topic/1205279 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 http://rubyforge.org/docman/view.php/5/460/faq.html#scm