This program assigns a new object of class A to reference a. It looks as expected, reference changes to new object ( see line 23,24,25): #include <iostream> using namespace std; class A { string name; public: A(string n): name(n) { } A(): name("NO ONE") { } void print() { cout << "I am "<< name << "!"<< endl; } }; int main(int argc, char *argv[]) { A matrix = A("the matrix"); A &amp;a = matrix; a.

Read more →

I installed Maven on my Fedora 12 box and fired the command listed at How_do_I_make_my_first_Maven_project : $ mvn archetype:create \ -DarchetypeGroupId=org.apache.maven.archetypes \ -DgroupId=com.mycompany.app \ -DartifactId=my-app /usr/lib/jvm/java [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: &amp;lt; 1 second [INFO] Finished at: Thu May 20 13:15:56 GMT+05:30 2010 [INFO] Final Memory: 13M/26M [INFO] ----------------------- I tried to debug it further by adding -X and -e options to the commandline.

Read more →

The most promising tools I found are SCons, CMake and Waf ( little brother of SCons ) SCons is written in Python and very extensible, but it might be slow for other large projects [1]. CMake is written in C++, is faster than SCons but is arguably not as extensible as SCons [1]. [1] Evalutation of various build tools Here is another article: Battle of the build systems

Read more →

Installing TOra( http://torasql.com/about ) for MySQL on Fedora 12 Get the Fedora 12 RPM package tora-2.1.2-1.fc12.x86_64.rpm from http://sourceforge.net/projects/tora/files/ Download oracle-instantclient11.2-basic-11.2.0.1.0-1.x86_64.rpm from Oracle’s website http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxx86_64soft.html $ sudo yum install qscintilla $ sudo yum install qt-mysql $ sudo yum localinstall --nogpgcheck oracle-instantclient11.2-$ basic-11.2.0.1.0-1.x86_64.rpm $ cd /usr/lib/oracle/11.2/client64/lib/ $ sudo ln -s libclntsh.so.11.1 libclntsh.so $ sudo yum localinstall --nogpgcheck tora-2.1.2-1.fc12.x86_64.rpm Now tell linker to find oracle client libraries: $ export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib/ Run tora

Read more →

All about linkers: Linkers part 01: click Linkers part 02: click Linkers part 03: click Linkers part 04: click Linkers part 05: click Linkers part 06: click Linkers part 07: click Linkers part 08: click Linkers part 09: click Linkers part 10: click Linkers part 11: click Linkers part 12: click Linkers part 13: click Linkers part 14: click Linkers part 15: click Linkers part 16: click Linkers part 17: click Linkers part 18: click Linkers part 19: click Linkers part 20: click

Read more →

How does live linux disk work without any swap for applications bigger than available RAM? This question has occurred to me a lot of times. In the normal scenario I configure enough swap space on the harddis for my GNU/Linux installation. It looks clear that whenever a new request for memory is made by an application, the Linux kernel (OS) gives that request by swapping out a page into swap space ( when there wasn’t enought space available in RAM).

Read more →

Twenty years from now you will be more disappointed by the things you didn’t do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sail. Explore. Dream. Discover. Mark Twain

Read more →

Glib-C: C as an alternative Object Oriented Environment book PDF Glib Tutorials: https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?source=dw-linux-glib&S_TACT=105AGX59&S_CMP=GR&ca=dgr-lnxw16GLibCollections http://www.ibm.com/developerworks/linux/library/l-glib.html http://www.ibm.com/developerworks/linux/library/l-glib2.html GObject: http://library.gnome.org/devel/gobject/stable/ Compiling GLib Applications: http://library.gnome.org/devel/glib/stable/glib-compiling.html

Read more →

Debugging Java Code jdb supports fairly primitive support for debugging, which is sufficient ( sort of ) when used as a backend for an IDE ( like NetBeans, Eclipse etc. ). However when I compare it with GDB ( the GNU Debugger ), as a tool to be used on the terminal, it seems to be pretty old. JDB lacks in features and commands which GDB specializes in. I was mainly interested in abbreviation of commands.

Read more →

GIT

git

Branching and Merging Creating a branch: git checkout -b branch-name OR git branch branch-name git checkout branch-name Example: $ git branch rm123 $ git checkout rm123 Merging a branch: $ git checkout master $ git merge rm123

Read more →

http://compprog.wordpress.com/2007/10/10/generating-subsets/

Read more →

Building GNOME from source code Reference: http://live.gnome.org/Jhbuild First download and install Jhbuild as mentioned at: http://live.gnome.org/Jhbuild Modify the configuration file like this: # -*- mode: python -*- # edit this file to match your settings and copy it to ~/.jhbuildrc # if you have a GNOME git account, uncomment this line # repos[‘git.gnome.org’] = ‘ssh://user@git.gnome.org/git/’ modulesets_dir = ‘/home/tuxnda/work/dev/jhbuild/modulesets/’ # what module set should be used. The default at the moment is ‘gnome-2.

Read more →

Adding DeviceKit-disks to Ubuntu Adding DeviceKit-disks to ubuntu is fairly simple once you reach this page: http://packages.ubuntu.com/karmic/i386/devicekit-disks/download Now add the following line to your software sources ( /etc/apt/sources.list ): deb http://cz.archive.ubuntu.com/ubuntu karmic main Thats it!

Read more →

Building the Nemiver Debugger for GNOME on Ubuntu 9.04 – the Jaunty Jackalope : http://projects.gnome.org/nemiver/ Install the libraries $ sudo aptitude install libglademm-2.4-dev libvte-dev libgtop2-dev libsqlite3-dev libgconf2-dev libgtksourceviewmm-2.0-dev gnome-common libboost-dev Checkout the code $ cd ~/work/ $ git clone git://git.gnome.org/nemiver nemiver.git Now build Nemiver $ cd nemiver.git $ ./autogen.sh $ make

Read more →

What will be the future of IT in India? On one hand there is Recession in the US and on the other hand there is a potential Domestic IT market in India in the long run. Till recently in 2006, the IT exports from India were accounted 60% by the US, 20% by the UK and rest by other countries and India’s Domestic IT market. Recession in the US has changed this scenario.

Read more →

Thoughts

thoughts

Any man under 30 who is not a liberal has no heart, and any man over 30 who is not a conservative has no brains. — Winston Churchill

Read more →

Rambling

The meaning of poetry has no direction. It is like a sling; it is not under control. – Rumi Har ek zajbat ko dua nahi milti Har ek arzu ko zuban nahi milti Muskan sajae rakho to duniya hai sath kyuki Aansu ko to ankho main bhi Panah nahi milti – anonymous

Read more →

Few favourite quotes / poems / thoughts , which I have collected recently. What happens to a dream deferred? Does it dry up Like a raisin in the sun?… Or does it explode? – Langston Hughes, Harlem Hope, like the gleaming taper’s light, Adorns and cheers our way; And still, as darker grows the night, Emits a lighter ray. – Oliver Goldsmith A man used to ask his mother, ‘How can I find the right woman for me?

Read more →

centericq: Text messaging for the Gmail+Terminal freaks! How nice it is to just stay on the terminal with hands on the keyboard, staying away from that wierd mouse. I just configured centericq for that particular purpose. Its pretty simple. Step 1. Install the centericq package : $ sudo apt-get install centericq Step 2. Configure it for the Google Talk: $ centericq Server : talk.google.com:5223 Secured : yes Login : ********@gmail.

Read more →

Prism - Mozilla’s new offering! If you have access to a computer and fortunately also have an Internet connection, then it is pretty sure that your first task will be to launch a Web Browser. You want every thing to be on the web browser to access it, be it email, chatting, watching video, playing games ( maybe 3D games in near future ) etcetra etcetra. Yes its true most of the times.

Read more →