Archive for November, 2007

SSH Profiles with myssh

Thursday, November 15th, 2007

I have a hard time remembering IP addresses of the servers I maintain. Some of them are connected to a specific network only (meaning it’s possible to have two machines have the same IP address). To make it easier for me, I wrote some scripts to do all almost all the memorizing for me.

Download the files, extract and copy myssh* to /usr/bin and you’re good to go. To add a host, use myssh_write:

myssh_write yourlabel somehost someuser 22

The user and port are optional. They default to your username and port 22 respectively.

To connect to somehost, use myssh:

myssh yourlabel

You can make it even easier by adding an alias to your bashrc, alias ssh='myssh', and using SSH keys.

Download: myssh.tar.gz

P.S. I wrote the two scripts in PHP. I have a hundred reasons to do this in Python but I just got too lazy to experiment. I’ll have it ported next week.

Migrating to Python

Saturday, November 10th, 2007

I’m thinking of moving a part of my pet project to Python. I was hoping to learn Python before the year ends. Maybe I could speed it up by going directly to application and browsing through manuals. I’ll use Tkinter instead of wxPython. Here’s what I’m planning to do:

  • A desktop client app
  • Should work with my current XHR pages
  • Safely authenticate
  • Release binary versions for Windows
  • Handle distribution (maybe some sort of automatic update notification thing?)

Yes, I’ll be leaving AJAX/XHR mainly because I’m having a hard time debugging several parts. Specially that Firefox (or my extensions) becomes sluggish and unresponsive. Also, I find Javascript a bit limiting.

In short, I’m chickening out on Javascript. By the way, is it just me that accidentally pronounces Tkinter like it was Tay-kinter?

Long Weekend Hangover

Saturday, November 3rd, 2007

I’ve been migrating to Thunderbird and

Gmail IMAP. I like the threaded conversations view but it doesn’t sort by the date of the last message in the thread.

Anyone with an extension to recommend to get this? I tried a quick search but didn’t point me to anything I was looking for.

Bookmarks for 2007.11.02

Friday, November 2nd, 2007