This blog covers various topics from technical tweaks to latest in computational linguistics, Artificial Intelligence, Machine Learning and Wed Data Mining.
Sunday, June 28, 2009
firefox proxy
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
Lexical Chains tool is available here.
Convert source code to pure HTML. Useful when pasting code on a blog.
http://pygments.org/
Tuesday, May 5, 2009
Wednesday, April 29, 2009
feisty upgrade
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
Friday, December 19, 2008
installing caml on ubuntu
http://caml.inria.fr/download.en.html
Gzipped file. decompress using tar xzvf
do ./configure
test with make world and make opt
install by
sudo make install
#if you want to install/compile MEGA
edit WITHCLIBS variable in Makefile and set this to /usr/lib/ocaml/3.10.0/caml
(replace with your version of caml)
Monday, November 24, 2008
Microsoft Outlook Web Access
Thursday, October 30, 2008
SAMBA Ubuntu Putty Windows Xp Tunneling Map Drive!
To achieve this goal, this post describes the following:
1. How to install/configure SAMBA on Ubuntu (file server)
2. How to install/configure a network adapater on windows (Windows connection)
3. How to install/configure Putty (SSH agent)
4. How to Map a network drive (Mapping a network drive)
Installing SAMBA on Ubuntu
sudo apt-get update
sudo apt-get install samba
sudo emacs -nw /etc/samba/smb.conf [open config file]
set the following line.
browsable = yes
writeable = yes
restart samba
sudo /etc/init.d/samba reload
share a folder.
right click the folder in nautilus and select "share options"...share over windows networks (SMB)
see this video and this site
Install a loopback network adapter
A loopback network adapter is kind of a “virtual network adapter”: it acts as a normal network adapter, but you don’t have to install any physical hardware to use it. It is only usable on the PC it’s installed on (other PCs can’t connect to it).
- Go to Control Panel - Add Hardware
- Click Next, then wait a while, choose “Yes, I have already connected to the hardware” and Next again.
- Choose the last option, “Add a new hardware device”, click Next.
- Choose “Install the hardware that I manually select from a list (Advanced)”, click Next.
- Choose “Network adapters”, click Next.
- Choose Microsoft, “Microsoft Loopback Adapter”, click Next and Next again.
- Click Finish.
Configure the Microsoft Loopback Adapter
Since the loopback adapter won’t have a DHCP server to ask for an IP address, we need to configure an IP address manually.
- Right click on “My Network Places” (on your desktop or in your Start Menu), click Properties.
- Find the network connection that is associated with the “Microsoft Loopback Adapter”. Usually it’s called “Local Area Connection 2″. For clarity, I renamed mine to “Loopback” (what’s in a name?). Right click the connection name, click Rename and change it.
- Right click the Loopback connection, click Properties.
- On the General tab: disable “Client for Microsoft Networks” and “File and Printer Sharing for Microsoft Networks” (only untick the checkboxes, DO NOT uninstall!).
- Click “Internet Protocol (TCP/IP)” and click Properties.
- On the General tab: click “Use the following IP address” and pick a private IP address on an unused subnet (I used 192.168.100.100 with subnet mask 255.255.255.0).
- Click Advanced.
- On the WINS tab: click “Disable NetBIOS over TCP/IP”, then click OK and again OK.
- Click Close.
Create or edit the LMHOSTS file
- Open the file “C:\WINDOWS\system32\drivers\etc\lmhosts” (create it if it doesn’t exist - note that the file should have no file extension).
- Add the following line to the end of the file:
192.168.100.100 servernamehere - Save and close.
Configure PuTTY
At last, we have to tell PuTTY to create an SSH tunnel from the loopback connection to our home server. I assume you already have a PuTTY saved session to connect to your home server.
- Open PuTTY, click your saved session and click Load.
- Go to Connection - SSH - Tunnels.
- In Source port, type “192.168.100.100:139″ (I know, the field is quite small, but it will accept the value anyway).
- In Destination, type “localhost:139″.
- Click Add, and do not forget to resave your saved connection!
To confirm that everything is working, connect to your home server with the saved session in PuTTY. Click Start - Run and enter “\\servernamehere\sharenamehere”. Depending on your Samba setup, you may have to enter a username and password. Done!
Background information a.k.a. Frequently Asked Questions
Why do I have to install an extra loopback adapter? Can’t I use the adapter that’s already in my PC?
Yes, in fact you could use the adapter that’s already in your PC. But… you would still have to disable the Client for Microsoft Networks and File and Printer Sharing. That means you won’t be able to use any other shares besides your home shares. Not very practical. An extra adapter allows you to have Microsoft Networking enabled on your normal network connection and use your home shares simultaneously with other (work, school, …) shares.
Do I really need the LMHOSTS file?
No, you don’t. You could refer to the IP address as well (e.g. connect to “\\192.168.100.100\sharenamehere”). But I wanted the solution to be transparant, whether I’m at home or not. If I use “\\servernamehere\sharenamehere” at home, then I want to use it anywhere else as well (or else I have to remember too many things). That’s what the LMHOSTS file is for.
=============================================
Above post was copied from here just in case the original post get vanished!
To set putty access without passwords, copy your private key (id_dsa) from the remote machine to the local machine. Open puttygen and load this key. Save this key in putty format without a passphrase. In Putty select ssh->auth and specify this file. Also connection->auto-login name and specify the user.
Continuously monitor GPU usage
For nvidia GPUs do the follwing: nvidia-smi -l 1
-
If you used Adobe acrobat to annotate a PDF file and you had Acrobat crashed or had to restart the computer abruptly during the annotation p...
-
EXPLORING WEB SCALE LANGUAGE MODELS FOR SEARCH QUERY PROCESSING Jian Huang, Jiangbo Miao, Xiaolong Li, Jianfeng Gao and Kuansan Wang CROSS...
-
The following set of commands will plot two data series in a file using point markers and also write the output to a eps file and further co...