Sunday, March 15, 2009

New Blog

Now on, I will be writing at blog.regmee.com

Friday, November 21, 2008

Experiment with InkScape and the Vector Graphics.

Took a while before I could draw Mr. Frankenstein on InkScape. But it was worth learning.
For those who want to draw Vector Graphics on InkScape, the connectors are pretty immature and so will be difficult to draw data flow diagrams. Polygon tool might be of help, but will take a lot of practice.

Here's the image.

Wednesday, November 12, 2008

"Ghajni" --- Bollywood and Creativity.

aaah .... Bollywood seems to be synonymous to creativity as far as Cinema goes :P
My expectations of Aamir starrer "Ghajini" in being a Taare-zameen-par alike with a different take-away message is 60% ruined already. Heard it's a remake of south Indian movie "Gajni" with just the spelling difference ... haha .. which in-turn seems to be a copy of the hollywood-made "Memento".

I wish I hadn't seen "Memento" a while ago ... The Ghajni youtube-promo makes me wonder if I really want to see the movie just for those lengthy songs and the new Aaamir Khan look .... hmmmmmmm ... less likely.
`

Monday, October 27, 2008

Zombie blog re-discovered.

After almost 4 years I re-discovered my zombie blog here.
Now I know why I shouldn't have picked the blog NAME I did. :D

One thing is for sure... No matter where you hide/hibernate... your forgotten web posts/materials will haunt you back someday.

I am wondering if at all someone visited those pages. No comments as of yet.... hints at some useless posting done .... haha

Sunday, October 26, 2008

Making good use of the available Lyx templates for Thesis writeup (in Ubuntu)

/usr/share/texmf/tex/latex/lyx
--> cmuthesis.cls
--> sigplanconf.cls
--> xxxxx

/home/user/.lyx/layouts
--> cmuthesis.layout
--> sigplanconf.layout
--> unswthesis.layout

sudo texhash
(now on, the changes in cmuthesis.cls will immediately reflect on the pdf)

run lyx Tools->reconfigure

restart lyx

Open with lyx and start using the templates
--> cmuthesis_template.lyx
--> sigplanconf_template.lyx

Saturday, October 04, 2008

SSH key authentication with NetBeans

Once you have generated the private/public key pair and done server/client side configurations there's little more to be done to be able to use it with NetBeans.

Edit ~/.subversion/config file to include.

ssh = $SVN_SSH ssh -l
(This is disabled by default)

Then add the key to the agent.

$ ssh-add

You are all good now if you have no passphrase set in which case you might have to authenticate with the passphrase.

Annoying problem with SVN-Server SSH authentication

Don't you get mad when you have to enter your passphrase 3 times for every SVN-commit ? Well I do.

Go avoid it !!!

(If you don't know this already) Pass-phrase need be entered just once for every X-login.

$ env | grep SSH

This command gives your ssh agent that is running.

SSH_AUTH_SOCK=/tmp/ssh-THqzVF9262/agent.9262

Generate the private/public key pair with

$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/user/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/user/.ssh/id_rsa.
Your public key has been saved in /home/user/.ssh/id_rsa.pub.
The key fingerprint is:
XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX user@host

(select no passphrase to login without a passphrase)
Now, id_rsa holds your private key and id_rsa.pub has the public which has to be updated in the server.

(Server) Edit the ~/.ssh/authorized_keys to include the public key.

On the client side, you can load your keys into the agent with ssh-add

$ ssh-add

That will load the standard keys into the agent:

~/.ssh/identity (SSH1, RSA)
~/.ssh/id_dsa (SSH2, DSA)
~/.ssh/id_rsa (SSH2, RSA)

Now, you need not supply pass-phrase for any ssh client you start from your X session. If you don't have a passphrase set you don't need to supply one.

To Check the loaded keys use

$ ssh-add -l

Monday, September 08, 2008

SVN setup Linux Server - Linux User

Linux Server: (you don't need root privilege if you can use svn commands)

xxx@yyy$ svnadmin create ./ALDORSVN/ --fs-type fsfs
xxx@yyy$ ls ./myProject/
Proj1 Proj2
xxx@yyy$ svn import ./myProject/ file:///path/to/SVNrepo/ -m "first import"
xxx@yyy$ svn file:///path/to/SVNrepo/
xxx@yyy$ cd /path/to/SVNrepo

/* contents of the following files should start from the first column */
xxx@yyy$ vi ./conf/passwd

[users]
xxx=yyy
zzz=aaa

xxx@yyy$ vi ./conf/svnserve.conf
[general]
xxx = write
zzz=read
password-db = passwd

xxx@yyy$ svnserve -d -r file:///path/to/SVNrepo/ --listen-port 8888

Linux User: (I had to login with ssh password :P )
svn co svn+ssh://xxx@yyy.zzz.ca/path/to/SVNrepo
svn co svn+ssh://xxx@yyy.zzz.ca/path/to/SVNrepo/Proj1
svn co svn+ssh://xxx@yyy.zzz.ca/path/to/SVNrepo/Proj2

:-)