Remedying the glib go error in ubuntu

If you encounter the glib gio error while firing an app from the commandline/shell, such as this one:

GLib-GIO:ERROR:/build/buildd/glib2.0-2.28.6/./gio/gdbusconnection.c:2279:initable_init: assertion failed: (connection->initialization_error == NULL)


use the following script. It exports the dbus session and then runs the apps. Simply use: <command> or if you have already used a long command and failed: use the trick “ !!” (!! replicates the last command).

Download the script from:

A few new things

1. Opera 11.10 -> Me likey 🙂
2. Opera Mail -> a bit slow 😦
3. Greplin: google it to have a better google 😀
4. Firefox Aurora (The dev build)
5. Ubuntu Natty
6. My new blogname.

Pseudo but awesome portable chrome.

This is a nifty little script which I use for google chrome portability. There is no proper portable chrome app with proper update functionalities.

The procedure:

  • Download the zip file: (~70kb)
  • Extract it in your pen drive.
  • Copy any existing Chrome installation from C:\Documents and Settings\<username>\Local Settiings\Application Data\Google (Win XP) or C:\Users\sudhansh\AppData\Local\Google to the unzipped chrome folder. Match the folder structure already made in the directory.
  • Thats it!
  • Run chrome.bat whenever you need to use your portable installation/profile.

How does it work:

  • As Google Chrome installs itself in the local app settings directory of Windows, I copied it. The directory also contains a subdir for the user profile with all the settings, extensions etc.
  • The chrome folder contains a chrome.bat file which when run, does either of the following 2:
    • If it finds an already existing chrome installation on a comp it runs it using MY personal profile. Local resources give better performance.
    • If it doesn’t find any installation, it uses my own installation as well as the profile.

TODO: If the existing installation on a comp is updated one, update my installation to that one. Will do that when I boot into windows next time :).

Google Chrome: Sharing Profiles with a Linux OS

Some of you might be wondering how to share a google chrome profile between a windows and a linux operating system. Copying or creating a symbolic link doesn’t seem to work as the extensions go haywire. The reason is the use of “\\” in the profiles created in windows. Use the following command to change the path names in the Preferences file to use a ‘/’ instead of ‘\\’.

sed -i ‘s/\\\\/\//g’ ~/.config/google-chrome/Default/Preferencesas

Happy chroming! Its still the fastest starting browser.


Tata Photon – How to obtain Usage details

There are many ways. But my favorite is to use a bookmark for the official usage site:<your photon phone number>&SOURCE=postpaidMCCI&d-4030679-p=1

This is for postpaid connections, for prepaid, I do not have any clue. If your accounts page shows the usage stats, you can open the frame in a new tab and get that link.

The only drawback is that its not real time. The delay is generally of 3hrs, but sometimes it may go upto 12 hrs, depending on the server updates. For real tme updates, I use:
Windows: Networx.
Linux: vnstat with its php frontend. &