Listen him here:
Saturday, September 24, 2011
Chingum Boy Jokes Audio clips
Listen him here:
Thursday, August 4, 2011
Apple IPad wireless connection problem at WIFI hotspots and hotels
The problem is Apple's foolishness in doing the Internet Connectivity Test. Whenever a IPad gets connected to WIFI, it does an Internet Connectivity Test, by trying to fetch, "http://www.apple.com/library/test/suc". If the HTTP response is 404 Not Found, IPad assumes that it has been successful in reaching Internet. In case of WIFI hotspots, the http response returned is HTTP 200 OK, or HTTP 302 redirection. Upon receiving this non-404 response, IPad foolishly assumes that it is not able to reach to Internet.
Until IPad, rectifies this problem, the solution is that the WIFI router should whitelist "http://www.apple.com/library/test/suc".
Another ugly solution is to add "apple.com
Rejoice!
Monday, February 28, 2011
Dilemma - Switching Job
A survey reported that professionals who regularly changed their jobs are more confident and financially secure than their counterparts. To find out the truth we decided to have a conversation with some of our friends. We began with some professionals who had changed their jobs a year ago.
This is what one had to say:
“I started my career in a company and worked in the same company for 10 years. During this period I developed very good relations with my seniors, HoD and also with admin dept. This created a sense of security in my mind and I started loving my company. During this period I came across many job opportunities from other companies and also from foreign lands. But the sense of security was so deep rooted in my mind that I never bothered to even attend a walk-in-interview. Forget about thinking of going abroad. I watched many of my colleagues resign and join other companies on a higher salary and a higher position. Some even went abroad and are settled there.
Meanwhile I also saw some young engineers almost 5 years junior to me joined my company with same pay as what I was earning. It was then I was disturbed and started looking for alternatives. I had good relations with my HOD and also with administration dept so I decided to put up my case against this “injustice”. Everybody showed sympathy to me but nobody took any action, all that they would say were “we will revise your scale in the next appraisal”. I had faith in my company so I waited for the appraisal and to my shock I was given only an average increment the same was given to the new chaps too. The same story repeated the following year. It was then I decided to quit.
But leaving was not so easy. I had many of sleepless nights before I actually resigned. I had built a shell of “sense of security” around me and it was very difficult to break. Worse I had lost confidence that I would be able to adjust and perform in a different environment. But later I found out it is not so difficult to get adjusted to the new environment. I am happy now that I earn better and have a good position.”
This is just an example. Many professionals we talked to had a similar
experience.
WE CONCLUDE THAT WORKING IN ANY COMPANY FOR MORE THAN 7 YEARS HAVE FOLLOWING DISADVANTAGES:
- You are taken for granted by the company.
- You get used to working in an environment which is unique to that company this makes you less confident for taking up new opportunities.
- Personal growth is hampered as there is very little new to learn after 5-7 years.
- You become complacent reducing your own market value.
- The only benefit it offers is so called “security” (And that too is imaginary)
- You join the company satisfied with your needs ( pay and position) and on your own terms.
- Work in a different environment and learn to negotiate different problems and situations.
- Often you get a chance to attend a new course/seminar thereby increasing your professional knowledge.
- You are always conscious about your performance keeping your market value intact.
bothered about your loyalty all they want is performance. You won’t be
awarded anything extraordinary for your loyalty. It is always performance
that counts. If you are in a company serving for too long then the chances
are you not one of the best performers because of the inevitable
complacency.
Also such people presented with an opportunity of lifetime are incapable
to grab it. It is impossible for these people to break their shell of
“security” and grab the new opportunity. The situation is worse for the
people who have worked for more than 15 years in only one company. They
can’t even dream of quitting their job – it is like fish out of water.
FALL IN LOVE WITH YOUR JOB….
NEVER FALL IN LOVE WITH YOUR COMPANY…..
I didn’t say resign from your job right now but keep this in mind.
Wednesday, February 23, 2011
How to verify if a company or LLP is registered in India
http://mca.gov.in/
Direct link to the search page:
http://mca.gov.in/DCAPortalWeb/dca/SearchCIN.do
Friday, January 28, 2011
Record speaker audio on Ubuntu
On the command line, install the following packages:
sudo apt-get install pulseaudio-utils
sudo apt-get install soxOpen up your favorite editor (e.g. vi /tmp/record.sh) and paste the following code in it.
#!/bin/sh
WAV="$1" && [ -z "$WAV" ] && echo "Usage: $0 OUTPUT.WAV" && exit 1
rm -f "$WAV"
# Get sink monitor e.g. alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
MONITOR=$(pactl list | grep 'Monitor Source:' | awk '{print $3}')
[ -z "$MONITOR" ] && echo "Failed to fetch sink monitor" && exit 1
# Record it raw, and convert to a wav
echo "Recording to $WAV file ...Press CTRL-C to stop recording"
parec -d "$MONITOR" | sox -t raw -r 44k -sLb 16 -c 2 - "$WAV"
chmod 755 /tmp/record.sh
/tmp/record.sh /tmp/filetostore.wavNow play any song from your favorite website and run /tmp/record.sh /tmp/filetostore.wav, it should record the audio in wav format in /tmp/filetostore.wav.
The output file is in wav format. You may use audacity to convert the output file into the formats of your choice e.g. mp3. Audacity is available in ubuntu repositories and you can install it using: apt-get install audacity.
Enjoy!
Tuesday, January 25, 2011
Cyberoam IPSec VPN client on linux
So here you go. On Cyberoam:
- Logon to Cyberoam GUI
- Click on the following menu on left panel: OBJECTS --> Hosts
- Click the ADD button
- Add the local network (behind Cyberoam) that you wish to access over VPN and give it a name. See the snapshot below. The local network behind my Cyberoam is 192.168.0.0/20, I named it as 192series. Press OK.
- Click on the following menu on left panel: VPN --> IPSec
- Press the ADD button. Follow the steps as per below snapshots.
- If everything went well, you should see the following screen.
- The Red button should turn green after pressing it.
- Now you need to allow the VPN connection in firewall. On the left panel, click on Firewall --> Rule. Click ADD to add a rule to allow traffic from VPN to LAN. Do the same for allowing traffic from LAN to VPN. Here's a snapshot:
Here, you are done with the Cyberoam part. Now turn to your laptop or desktop:
--------------------------------------------------------------
On your laptop or PC:
- Install the openswan package from the default repositories. For debian based systems:
apt-get install openswan
For redhat based systems:
yum install openswan
- Add the following configuration to your /etc/ipsec.conf. Change the network parameters as per your network scenario.
conn roadwarrior
rightsubnet=192.168.0.0/255.255.240.0
auto=add
type=tunnel
right=<your_cyberoam_public_ipaddress>
left=your-laptop-ipaddress
leftnexthop=%defaultroute
authby=secret
keyingtries=3
compress=yes
failureshunt=drop
dpddelay=30
dpdtimeout=120
dpdaction=clear
pfs=yes
ike="aes128-md5-modp1024,aes128-sha1-modp1024,3des-md5-modp1024"
esp="aes128-md5,aes128-sha1,3des-md5" - Add the following line in /etc/ipsec.secrets
%any <your_cyberoam_public_ipaddress>: PSK "<pre-shared-key which you defined on cyberoam>"
- Load the connection in ipsec by using the following command on command line.
sudo ipsec auto --add roadwarrior
- Start the connection and test if you are able to reach the local network behind Cyberoam.
sudo ipsec auto --up roadwarrior
ping 192.168.13.102
That should get your VPN up and running. In case of problems, you may contact Cyberoam Support at:
http://www.cyberoam.com/contactsupport.html
Wednesday, January 19, 2011
openwrt-x86-ext2.image in qemu on linux
Get the starting offset of first partition in the image:
startsector=`fdisk -lu openwrt-x86-ext2.image 2>/dev/null | grep openwrt-x86-ext2.image2 | awk '{print $2}'`Set-up a loop device to access the file offset as a block device, assuming 512 bytes sector size:
losetup -o `expr $startsector \* 512` /dev/loop0 openwrt-x86-ext2.imageNow, mount the device to a directory:
mount /dev/loop0 /mnt/To unmount the device:
umount /dev/loop0To delete the loop device:
losetup -d /dev/loop0
To run the image under qemu with 128 MB ram and single network card:
sudo qemu -m 128 -hda openwrt-x86-ext2.image -net nic,model=ne2k_pci -net tap,ifname=tap1,script=~/qemu/qemu-ifup.sh
Sunday, October 3, 2010
Micromax MMX200g USB MODEM on Ubuntu
YES, JUST EJECT THE DEVICE USING GUI FILE EXPLORER.
Then paste the following settings in /etc/wvdial.conf
--------------------------------
[Dialer Defaults]--------------------------------
Init1 = AT+CGDCONT=1,"IP","airtelgprs.com","",0,0
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
stupid mode = 1
Modem Type = USB Modem
Baud = 460800
New PPPD = yes
Modem = /dev/ttyACM0 # Your modem device may be different
ISDN = 0
Phone = *99#
Password = a
Username = a
After that run the wvdial command:
# sudo wvdialand there you should get connected.
Wednesday, September 22, 2010
swim,swam,swum,swimming
Swimming is one of the most popular forms of aerobic exercise, and it is an excellent activity for anyone who wishes to get fit and stay active. Swimming exercise uses more of the overall muscle mass of the body than almost any other form of exercise, and people get an upper-body workout and a lower-body workout, unlike running or biking or other activities like tennis, where you get a good workout in just the legs. In addition, as with most aerobic exercise it is believed to reduce the harmful effects of stress.
Overall, swimming is an excellent form of exercise. Because the density of the human body is approximately similar to that of water, the body is supported by the water and less stress is therefore placed on joints and bones. Since then the buoyancy of the water protects the joints, water exercise is a particularly good choice for people who are overweight or who are prevented from taking part in other activities because of injuries or other physical limitations. Therefore, swimming is frequently used as an exercise in rehabilitation after injuries or for the disabled.
Saturday, July 3, 2010
My first swim (floating)
rest comfortably in deep water when swimming out over your head or when swimming long distances. If you have learned to float, then diving or jumping off a spring board or dock can easily be followed by a few minutes floating while you catch your breath and decide what you want to do next. If you are in any type of water craft that inadvertently capsizes, you'll be very glad you learned to float because you possess a survival skill that will keep you alive and calm until help can arrive. Learning to float requires some concentration and a little practice, but once you have learned the skill of floating, it is yours for a lifetime.
Having know this for a while now, I set my step ahead and left myself sleeping on water, head facing downwards. Apart from few initial hiccups, I managed to get myself on water. Though there was a trouble keeping myself from getting rotated on one side, soon a little practice helped me align my head in-order to prevent the rotation. Today will be the second day. Will keep posting what happens next.
Friday, June 11, 2010
राँझा राँझा ( रावन मूवी )
'Ranjha Ranjha Kardi Ve Main Aape Ranjha Hoyi
Ranjha Ranjha Saddo Ni Mainu Heer Na Aakho Koyi'
is a verse from sufi poet Waris Shah's poem on Heer-Ranjha.
Singer(S): Rekha Bhardwaj, Javed Ali, Anuradha Sriram
Music Director: A R Rahman
Lyricist: Gulzar
Ranjha Ranjha Kardi Ve Main Aape Ranjha Hoyi
Ranjha Ranjha Saddo Ni Mainu Heer Na Aakho Koyi
Oo Ranjha Ranjha Na Kar Heere Jag Badnami Hoye
Patti Patti Jhar Jaave Par Khushboo Chup Na Hoye
Begunah Pakda Gaya (Yaaro)
Ishq Mein Jakda Gaya (Yaaro)
Aankh Ke Dosh Mein Dil (Yaaro)
Bewajah Pakda Gaya (Yaaro)
Aankh Se Hatt Ti Nahin, Arrey Hatt Ti Nahin, Arrey Hatt Ti Nahin
Sotey Sotey Bolta Hoon, Kabhi Bolte Bolte Sota Hoon
Kya Jaane Kya Hota Hai, Kabhi Jalti Aag Dadolta Hoon
Ek Baar To Aake Dekhe Woh Bhi
Ranjha Ranjha Kardi Ve Main Aape Ranjha Hoyi
Ranjha Ranjha Saddo Ni Mainu Heer Na Aakho Koyi
Oo Ranjha Ranjha Na Kar Heere Jag Badnami Hoye
Patti Patti Jhar Jaave Par Khushboo Chup Na Hoye
Jal Ja, Jal Ja Ishq Mein Jal Ja, Jale Se Kundan Ho
Jalti Raakh Laga Le Maathe Lagey To Chandan Hoye
Ranjha Ranjha Kardi Ve Main
Ranjha Ranjha Kardi Ve Main Aape Ranjha Hoyi
Ranjha Ranjha Saddo Ni Mainu Heer Na Aakho Koyi
Waqt Katt Ta Bhi Nahin, Waqt Rukta Bhi Nahin
Dil Hai Sajde Mein Magar, Ishq Jhukta Bhi Nahin
Bina Tere Raatein, Arrey Raatein Kyun Lambhi Lagti Hain
Kabhi Tera Gussa, Kabhi Teri Baatein Kyun Achchi Lagti Hain
Yeh Jalte Koyle, Arrey Koyle Ab Rakhna Mushkil Hai
Ranjha Ranjha Kardi Ve Main Aape Ranjha Hoyi
Ranjha Ranjha Saddo Ni Mainu Heer Na Aakho Koyi
Oo Ranjha Ranjha Na Kar Heere Jag Badnami Hoye
Patti Patti Jhar Jaave Par Khushboo Chup Na Hoye
Jal Ja, Jal Ja Ishq Mein Jal Ja, Jale Se Kundan Ho
Jalti Raakh Laga Le Maathe Lagey To Chandan Hoye
Chal, Chal Junoon Chalte Rahein, Tu Kahin Theher Nahin
Dil Agar Aa Bhi Gaya, Woh Tera Shehar Nahin
Bina Tere Saansein, Arrey Saansein Kahin Khatam Na Ho Jaayein
Sabi Teri Yaadein, Sabi Yaadein Kahin Basam Na Ho Jaayein
Sulagte Koyle, Arrey Koyle Ab Bujhna Mushkil Hai
Ranjha Ranjha Kardi Ve Main
Ranjha Ranjha Kardi Ve Main Aape Ranjha Hoyi
Ranjha Ranjha Saddo Ni Mainu Heer Na Aakho Koyi
Ranjha Ranjha Kardi Ve Main Aape Ranjha Hoyi
Ranjha Ranjha Kardi Ve Main Aape Ranjha Hoyi
Oo
Ranjha Ranjha Na Kar Heere Jag Badnami Hoye
Patti Patti Jhar Jaave Par Khushboo Chup Na Hoye
Ranjha Ranjha Kardi Ve Main Aape Ranjha Hoyi ........ 4
Saturday, June 5, 2010
Setup my own IVR
Here are the steps:
1) Register yourself at Voxeo Evolution Site. (Goto Account->Register)
2) Login with your user and password.
3) Copy paste the following text in your favourite editor.
4) Save the file on your local machine (say hello.xml)
<vxml version = "2.1" >
<form>
<block>
<prompt>
<break strength="large"/>
Hello. Welcome to Nand Tele Services. We are the leaders in Education Call Center.
prompt>
block>
form>vxml>
5) On voxeo evolution site, goto,
ACCOUNT -> (Files, Logs, & Reports)
6) You should see a www directory. Click on www directory.
7) Upload hello.xml using the browse button.
8) Goto ACCOUNT -> Application Manager, Click Add Application.
9) Type in a arbitrary name, and select "Voice Phone Calls"
10) In Voice URL, click on file manager, select hello.xml and Press MAP.
11) Press "Create Application".
12) Click on the application, and it will show you various contact methods.
Your first voice application is ready to rock!!!
On creating your application, voxeo gives you free Skype, Sip, & direct US phone numbers. You can use skype to test your new voice application. If you have a sip softphone, like linphone, put in the sip url and listen the voice of your application. Now you need to connect it to your PSTN line. I did it using Linksys SPA-3102. My boss is calling, need to go, will post the rest in next few days.
Saturday, May 15, 2010
Reliance broadband+ ZTE-AC2726 on linux (Ubuntu-9.04 karmic koala)
Here are the steps:
Insert the modem into USB interface and see if its detected. You should see something like this in dmesg:
$ dmesg19d2:fff5 is the vendor:product id.There are other varients which have 19d2:fff6 as a vendor:product id.
[22882.972130] usb 3-2: new full speed USB device using uhci_hcd and address 16
[22883.128910] usb 3-2: configuration #1 chosen from 1 choice
[22883.131004] scsi10 : SCSI emulation for USB Mass Storage devices
[22883.131239] usb-storage: device found at 16
[22883.131244] usb-storage: waiting for device to settle before scanning
[22888.130780] usb-storage: device scan complete
[22888.133718] scsi 10:0:0:0: CD-ROM ZTE USB Storage FFF1 2.31 PQ: 0 ANSI: 2
[22888.136787] scsi 10:0:0:1: Direct-Access ZTE USB Storage FFF1 2.31 PQ: 0 ANSI: 2
[22888.170799] sr1: scsi-1 drive
[22888.171045] sr 10:0:0:0: Attached scsi CD-ROM sr1
[22888.171180] sr 10:0:0:0: Attached scsi generic sg2 type 5
[22888.171403] sd 10:0:0:1: Attached scsi generic sg3 type 0
[22888.191688] sd 10:0:0:1: [sdb] Attached SCSI removable disk
[22889.655795] ISO 9660 Extensions: Microsoft Joliet Level 3
[22889.663783] ISOFS: changing to secondary root
Use lsusb to get its vendor:product id
$ sudo lsusb
Bus 003 Device 016: ID 19d2:fff5 ONDA Communication S.p.A.
This means that the device is detected as a storage. We need it to be detected as modem. There is a command called usb-modeswitch to achieve this. Install it using the following command:
$ sudo apt-get install usb-modeswitch
Using the vendorid and productid, fire the following command:
$ sudo usb_modeswitch -v 0x19d2 -p 0xfff5 -M "5553424312345678c00000008000069f030000000000000000000000000000"
The above command should not fail and it should display the following things:
$ lsusb
Bus 003 Device 023: ID 19d2:fff1 ONDA Communication S.p.A.
$ modprobe usbserial vendor=0x19d2 product=0xfff1
Copy paste the following items in your /etc/wvdial.conf
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem = /dev/ttyUSB0 ; modify based on the results of your dmesg
Phone = #777
Idle Seconds = 300
Modem Type = Analog Modem
Stupid Mode = 1
Compuserve = 0
Baud = 460800
Auto DNS = 1
Dial Command = ATDT
Ask Password = 0
ISDN = 0
Username = "10-digit-modem-mobile-number"
Password = "10-digit-modem-mobile-number"
Now the last step:
$ sudo wvdial
और आप इन्टरनेट से जुड़ चुके है। There you are connected to internet.
Tuesday, April 27, 2010
Switched to ubunto-9.10 from opensuse-11.2
1) Frequent hang-up of GUI.
2) Suse upgrade screwed my pdf reader - evince.
3) Pulling the power cable from laptop would make the screen go black.
So i downloaded the ubuntu-9.10 iso. I did not have a blank cdrom, so thought of burning the iso to a usb pen drive. I used Lili Usb Creater to burn the ISO file to a pen-drive, note that, this works only on windows. I could not find similar tool for linux in my limited google search operation.
Finally, i backed up my thunderbird folder, firefox bookmarks, and other interesting documents to another partition. Reboot the machine from USB pen drive. Installation was pretty smooth, and it hardly took 15 minutes to install. I like this thing about ubuntu that it does not give package selection option during installation. After installation, i had to configure a few shortcuts that i was used to previously. I did not like the default Alt-F2 "run application" program. Needed to lookup for something that could search applications based on keywords. So i looked up for a package-manager which could work like yast. I found Synaptic package manager for GUI and aptitude for text console. Started synaptic and installed gnome-deskbar. Surprisingly, Alt-F3 was the shortcut assigned. Amrish, the suse ambassador, came up with something new which used the useless windows key on the keyboard. After that i installed thunderbird, created a softlink to my previous thunderbird folder. I am impressed by Thunderbird. It works so smooth. Next i imported the bookmarks in firefox. And so here i am, struggling to learn shortcuts and installing new applications.
Cheers from ubuntu blogger!










