Sunday, September 20, 2009

tokyo dystopia

This is an excellent full text search engine.
It can be downloaded from here.
http://1978th.net/tokyodystopia/

There are other useful tools by the same author here.
http://1978th.net/
The installation procedure can be bit tricky.
First install tokyo cabinet.
http://1978th.net/tokyocabinet/
And then install the prerequisites for tokyo dystopia
such as zlib (Otherwise you will get an error when you do configure)
And then install dystopia.
To index a file
dystmgr importtsv indexfolder datafile
datafile should be tsv (tab separated values)
1This is a fun program.

To search do:
dystmgr search -pv indexfolder "program"



Tuesday, September 15, 2009

windows was unable to find a certificate to connect to this network

My laptop connects to the home wireless network successfully but a pop-up appears at the
system tray with the above title (windows xp). The problem here is because I had enabled
IEEE 802.1x but did not have a 802.1x (EAP) environment. The solution is very simple.
Select the corresponding wireless network in the laptop and on properties->authentication tab
disable this authentication. works like a charm!

Saturday, July 11, 2009

basic authentication

If you want to provide basic authentication to a folder on your web server, do the following.

1. create a password file
htpasswd -c mypasswdfile username

Now enter a new password. If this file already exists then you do not need to create it by "-c".
Instead you can straight away add to the existing file a new username and a passwd.

2. Setting access.
cd to the folder that you want to protect and create a .htaccess file.
Add the following lines there.

AuthType Basic
AuthName authentication name
AuthUserFile location_of_the_mypasswd_file
AuthGroupFile ifany
Require specific_users can be given by user or set to valid-user

Thats all folks!

Sunday, June 28, 2009

firefox proxy

To connect to a remote computer and use it as a proxy do the following.

Open Tools->Options->Advanced->Network
SOCKS Host 127.0.0.1 Port 8080
select SOCKS v5

Now open a tunnel in Cygwin+Poderosa by
ssh -C2qTnN -D 8080 usernam@server

Alternatively, you can do the same using Putty.
For this set up a putty connection with details like host, auto login name etc.
Then load your private key to the server in the pagent.
Now to create the tunnel in putty,
Connection->SSH->Tunnels
In the source port type 8080
select Auto and Dynamic and hit Add.
This will add D8080
Now save those settings and open the connection.

Sunday, June 21, 2009

Useful Links

http://www-nlp.stanford.edu/~mgalley/
Lexical Chains tool is available here.

Convert source code to pure HTML. Useful when pasting code on a blog.
http://pygments.org/

Wednesday, April 29, 2009

feisty upgrade

Feisty is no longer supported, other than through old-releases

deb http://old-releases.ubuntu.com/ubuntu/ feisty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ feisty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ feisty-security main restricted universe multiverse

Continuously monitor GPU usage

 For nvidia GPUs do the follwing: nvidia-smi -l 1