Loading... Born a day after the American Independence in Jalandhar, Punjab, India, I've spent most part of my life there. Studied till 5th standard in St. Joseph's Convent School, Jalandhar, and later had to join Apeejay School, Jalandhar as, perhaps, the former school decided boys could be troublesome in a girls' school after 5th. After completing schooling in APJ (till 12th), joined National Institute of Technology [NITJ] (again, in Jalandhar) as a Computer Science & Engineering student in 2005. During the worst period of downtime (recession), got an on-campus placement in Accenture in 2008. Graduating from college took another year after that, and finally joined Accenture in mid-2009. This is my story so far... Btw, you can find me at: facebook twitter last.fm digg librarything granular
Nov 07
TweetDeck

TweetDeck

With Adobe AIR‘s (the runtime required by TweetDeck) official support for Linux ended, and no Linux 64-bit edition already in place, installing TweetDeck it in Ubuntu 64-bit is one hell of a task. You can get it installed in your 64-bit Linux system by following one of these tutorials, but chances are you’ll end up with a partially working installation, as happened with me.

Here I list out 4 simple steps to get the thing properly installed & working in Ubuntu:

  1. Download the 64-bit Adobe AIR deb package.
  2. Install the deb using the command: sudo dpkg -i adobeair_64.deb
  3. (Important) Install ia32-libs: sudo apt-get install ia32-libs. This is required for 32-bit environment emulation. Remember, the above packaged “64-bit” AIR is still 32-bit Linux version only. If you do not install ia32-libs, you may get errors like – Error loading the runtime (libxml2.so.2: wrong ELF class: ELFCLASS64)
  4. Download the latest TweetDeck AIR package. Install the package by double-clicking on it. Alternately, fire the command “Adobe AIR Application Installer” (with quotes) to invoke the GUI app installer, from where you can browse to the location of the downloaded TweetDeck AIR package to install it.

Tested on Kubuntu 11.10 (64-bit)

Tagged with:
Jan 28

BSNL EVDO

BSNL EVDO


So you just bought yourself a swanky new BSNL EV-DO broadband Internet device. It works happily on your Windows, fine, as they provide a Windows-friendly CD along with the device that installs the required software and drivers easily. But what about if you want to use your EV-DO in Linux, if you have it? Due to lack of official Linux support, setting up EV-DO in Linux can be quite tricky, but here is how to do it easily, without much fuss.

Linux comes in many flavors (from different vendors), like Ubuntu, openSuSE, Mandriva, Fedora, Mint. If you have one of these, or any modern Linux distro, proceed as follows.

In Linux, plug in the USB modem device. Now check if device nodes for it are created in your /dev folder. Usually, they are like /dev/ttyUSB0, /dev/ttyUSB1, /dev/usb/ttyUSB0, and so on. In most cases, this step should automatically happen. If it doesn’t, then you’ll have to manually create the device nodes for your USB modem by inserting its module in the kernel. To do it:

Check for the device ID of the USB modem. You do this using the following command. Run the command first with the modem unplugged, and then with modem plugged in. Compare the output in both the cases; whichever new entry appears in the list is of your modem.

lsusb

Within the output that you get, your modem (in most cases a ZTE device), will be listed something like:

Bus 002 Device 004: ID 19d2:fffe ZTE Corporation
or
Bus 002 Device 004: ID 19d2:fffe

Now using this device ID, you’ll create its device nodes by using this command:

depmod
modprobe usbserial vendor=0x19d2 product=0xfffe

This should create the relevant device nodes for the modem in /dev folder. If not, try unplugging and then plugging in the modem. Now your work is half done.

Next, you’ll need these packages installed to configure the modem:

wvdial
pppd
kppp or kinternet (for KDE users)
gnome-ppp (for GNOME users)

After making sure wvdial is installed, edit the file /etc/wvdial.conf to make it look similar to (note – you can use the command wvdialconf to setup the file automatically):

[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 115200
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 =
Area Code =
Phone = #777
Username = xxxxxxxxxx
Password = xxxxxxxxxx
Ask Password = 0
Dial Command = ATDT
Stupid Mode = 1
Compuserve = 0
Force Address =
Idle Seconds = 0
DialMessage1 =
DialMessage2 =
ISDN = 0
Auto DNS = 1

Replace xxxxxxxxxx in case of username and password with the 10-digit phone number of your modem. Now, execute this command:

wvdial

Voila! Your Internet should work now, in full glory. To ease up things a bit, you may want to connect to Internet using a graphical (GUI ) tool everytime. Use kppp (KDE) or gnome-ppp (GNOME) for that.

UPDATE: As pointed out by my friend Yatin, NetworkManager is another great and easy way to setup EVDO. Most modern distros come pre-installed with it. If not, you can always install it manually.

Tagged with:
Jul 31

jQuery is a very powerful JavaScript framework, and to put in their own terms, is The Write Less, Do More JavaScript library. jQuery’s slogan indeed holds true to its claim, as you’ll discover as soon as you start coding using jQuery. Although jQuery has an extensive set of API and a collection of many functions in its arsenal, I would be concentrating more on the AJAX capabilities of jQuery in this tutorial.

Most of the modern websites, irrespective of whether they offer a simple or a complex interface, usually use AJAX for some task or the other. While designing in order to cater to today’s needs, it becomes almost indispensable to use AJAX to make the end-user experience faster and more pleasant. So, if you had been deferring the use of AJAX till now owing to it’s complexity in raw JavaScript, here is your chance to start using it with utmost ease.

It is really amazing to see how much simplified AJAX is with jQuery. The developers have seemingly (and painstakingly) done a lot of hard work behind the scenes to make it easy for the web developer to implement even the most complex JavaScript concepts, including AJAX.

For the purpose of demostrating AJAX, I’ll be making use of a simple web application (that I designed using HTML, PHP, jQuery, CSS and MySQL). I call it the Albums Database.

Continue reading »

Tagged with:
Oct 09


Adobe Shockwave is an advanced platform for 3D applications on the Internet, and online games benefit the most out of it. But unfortunately, Adobe never released a version of Shockwave for the Linux platform.

If you are a Linux user, worry not. Using Wine, you can easily play for favorite games made using Shockwave. Wine is a software that allows running Windows applications on Linux. Wine is an open-source, free software, and is now available as a stable 1.0 version.

Here’s what you need to do:

  1. Install the latest version of Wine.
  2. Install the latest version of Shockwave for Windows using Wine. To do that, open command-line (Konsole/Terminal) and cd to the folder where Shockwave’s installer has been stored. Next, issue the command: wine Shockwave_Installer_Slim.exe. This will install Shockwave as it does in Windows.
  3. Next, install the latest version of Mozilla Firefox for Windows using Wine, in the similar way as above.
  4. After it’s installation, open Firefox, go to the desired URL containing your favorite Shockwave application, and viola! The Shockwave application is ready to be used.

The screenshot in the beginning of this post shows Miniclip’s Table Tennis game being played in Google Chrome installed in Linux using Wine.

[ To installed Google Chrome using Wine on Linux, refer to this excellent tutorial ]

Tagged with:
preload preload preload