Thursday, November 26, 2009

My gdbinit file

GDB config file, includes STL Support (works with gdb 7.0):

set print pretty on
set print object on
set print static-members on
set print vtbl on
set print demangle on
set demangle-style gnu-v3

python
import sys
sys.path.insert(0, '/home/amit/downloads/gdb_printers/python')
from libstdcxx.v6.printers import register_libstdcxx_printers
register_libstdcxx_printers (None)
end

Monday, November 16, 2009

Date output for a distinct filename

On unix,

> date +%Y-%m-%d-%H-%M-%S
2009-11-16-16-33-48

outputfile=/tmp/my-application-output-`date +%Y-%m-%d-%H-%M-%S`.txt

Friday, November 6, 2009

Ubuntu: Upgrade from 9.04 to 9.10

Overall the upgrade was okay. Was not entirely smooth, as 1-2 applications automatically got uninstalled and I had to install them again. Seems Canonical, the company behind Ubuntu, supports not everything I installed. In particular, openerp-server which was difficult to install in the first place, caused some issues with the upgrade and I have to uninstall it. Will install it again later.

Update : I dont know if it is just me or the new Ubuntu has better music drivers. I am using Rhythmbox, and I think the quality of music is better after the upgrade.

Its like falling in love with Ubuntu all over again.

Epiphany: The Fastest Browser on Ubuntu

I accidently landed upon Epiphany recently and I am loving its speed.

Ubuntu: Missing Skype from Panel?

I accidently made some change in my panel, and after that there was no way left to access skype after O minimized it. To correct this, I proceeded as per http://ubuntuforums.org/showthread.php?t=194980 . Just add "Notification Area" in your panel.

The same would work for dropbox and other application that might have recently disappeared from the panel. 

Wednesday, November 4, 2009

Starting an EC2 Instance for Company-wide Development Tasks

I spent quite a bit of time today setting up an EC2 instance that will soon host a private svn and trac. First, I installed "Elasticfox" firefox extension and ec2 tools from Synaptic Package Manager.

Created a generic account (amazon does not allow EC2 instances to be transferred from an account to another, so don't use your personal account to set up an instance for your company) using a generic email, say sales@mycompany.com.

Then go through the process of setting up your AWS account and starting using EC2 (you'll need credit card for this). This process is quite straightforward thanks to the amazon ui (at a few places there are ambiguities though). 

Now next I have to set up svn and trac on the EC2 instance. For the company-wide password management, probably LDAP would also be needed. Seems like an onerous task. Lets see tomorrow.