Monday, April 4, 2011

Quick script to copy text to Android mobile

Hi All,

I wrote a small script to quickly copy some text from linux computer to an android mobile.
To use it,
  • Install Barcode Scanner in your android mobile from here (This is a must app for any android mobile)
  • Copy the below code to a file named and give it executable permissions,
  • Create a Custom application launcher in the top panel to launch the saved script.
Now when you want to copy some text,
  • Using mouse, select the text or url you want to copy.
  • Click on the launcher you created.
  • Scan the barcode displayed on the screen using your android mobile. :-)


#Following function is copied from
#@ uri_escape - convert STRING to hex-encoded string
#@ and assign to optional VAR or _URI_ESCAPE
#@ Author: Chris F.A. Johnson, 2009-03-25
uri_escape ()
local string x;
while [ -n "$string" ]; do
case $string in
printf -v x "%s%c" "$x" "$string"
printf -v x "%s%%%X" "$x" "'$string"
eval "$var=\$x"

data=`xclip -o`
uri_escape "$data" data

#Replace eog with your image viewer application if you are not using gnome desktop.
eog "$uri" &> /dev/null &

Saturday, October 23, 2010

Doing more with ubuntu desktop - Part I

I thought of sharing only online stuff in this blog but since I got bored of those and since it is a long time I posted, I'm converting this blog to contain anything I feel like blogging. :)

I'm a ubuntu linux user for more than 4 years. Lots of my friends like ubuntu but for some small reasons switch back or dual boot with windows. Many fear to upgrade to latest versions of linux and many find it hard to switch between operating systems. They complain that it takes lots of time to re-configure everything in the new os.
Here are some mistakes people make when using ubuntu.
  • Not using the home folder and the default sub folders namely Documents,Pictures,Videos, etc..

    • Don't use separate partitions for everything and forget where is what. Mount all partitions in some meaningful places while installing.

  • Not using ubuntu software centre/synaptic manager for installing applications.

    • Most of the opensource applications/tools you can think of is in ubuntu repository. Using that makes life very very simple than installing from tar.gz files or downloaded deb files in some arbit directory and forgetting it.

  • Trying to mirror whole of ubuntu repository and having a misconception that ubuntu is useless without offline repository.

    • Having offline repos is useful only for the geeks who doesn't have internet connection and want to install and experiment new softwares daily. Normal users doesn't have to mirror whole of repos. Once after you install a fresh ubuntu, one time proper internet connection may be essential to install all that is required. Then a normal/no internet connection is enough for most of the work.

  • Not using ubuntu GUI.

    • Most of the configuration changes a normal user will require is there in the Systems menu. Unlike windows, any one can understand what the preferences mean. Please have a look at the options there before googling. Because the results google gives you will be generic for all linuxes and usually will need to type commands in the terminal or edit some config files in /etc/ . Beginners are frightened because of this and claim windows has better user experience. Ubuntu's System -> preferences and System -> administration menu is much better and easier to use than windows control panel.

  • Not using the power of symlinks

    • Symlinks are very useful and are much better than shortcuts in windows. Applications don't distinguish between normal folders and symlinks. Hence we get the benefit of having same stuff at various places.

  • Not using default packaged software. Ubuntu has some tools/software bundled with it. Have a look at those before searching/using new ones.

    • Rthymbox player.

      • Many don't use this and try to install vlc/amarok for listening to music and claim that vlc doesn't look good and using playlists etc are difficult etc,. Managing music collections, listening to internet radio, playlists, rating, displaying album art, and lots more are inbuilt in rythmbox. It recognised newly added music files in your computer It minimises in a corner and you can use your multimedia keys in the keyboard to control it. Amarok also has all the features but its always better to use applications which is designed for the environment you use. Amarok is designed for KDE desktop while rythmbox for gnome. I avoid KDE apps when using gnome desktop and vice versa. Using menus and shortcuts may be confusing between environments. Also os may have to use lots of resources/background processes for supporting the application from other environment.

    • Empathy & Gwibber

      • I had problems with these when my internet connection was via proxy but with proper internet connection it works really cool. Dont have to always keep your browser with gmail open to chat. If u get a chat msg, it neatly pops up in a corner. You can chat with facebook friends also without opening firefox and logging in. Link the contacts i.e. If a person is in multiple accounts(gmails,fbs,yahoo etc), it'll appear as one entry. This avoids long contact lists. Video call also works cool. :)

      • Twitter and facebook updates keeps popping up neatly in a corner without having a browser open always. Gwibber was very buggy in the beginning. Now it works without problems. If anyone got pissed off this before can give another try.

    • Some interesting applets on panel.

      • Tombay notes allows to take quick notes and it syncs it with ubuntuone. So you can access your notes online any time.

      • Pointer capture captures the pointer. May be useful when you find the mouse disturbing when typing.

      • Force kill applet kills a not responding application instantly. Don't have to go to any task manager and try killing the same several times.

      • Inhibit sleep applet prevents the laptop to go to suspend state when not using laptop for long time. This is useful when you have started a download or listening to music.

    • Evolution.

      • Many have several mail accounts and forget the ids and passwords. Using evolution you can receive mail from several accounts. (Even several gmail accounts). All the mail are saved to your computer so don't have to connect to internet or rush to browsing centre for seeing some important mail. I was previously using Offline gmail using gears but using evolution is very simple and clean.

    • Some interesting accessories.

      • Disk usage analyser shows graphically where most of the disk space is used.

      • Character map can be used if u want to type in local languages, or different symbols etc.

      • Cd burning is in built and I feel its better than windows versions. Hardly any cds were wasted when burning. Also copying cd image is also very simple. Just right click and say copy iso image.

      • Connecting another monitor or projector is very simple in ubuntu. Just click System -> preferences -> monitor. Very easy and clean to understand and use.

Since the post gets very longer and I'm tired of typing, I'll share the remaining tips in the next post hopefully sometime not very late. Please post the your reactions as comments below.



Sunday, October 25, 2009

The Chrome

Have You experienced Google chrome ?
Chrome is a really cool very fast browser. Its javascript engine is very fast. It supports features from HTML 5. Notable one is the 'canvas'. Using canvas, it can create and act on elements replacing images. The js code can change its attributes which can create really cool animations with just only javascript which was once possible only with flash. If you have successfully installed chrome, check this site..

This site consists of experiments with javascript which will require fast js engine like the one in chrome. It consists of variety of experiments which include games, animations, attractive frontend for popular sites like twitter etc., These experiments were created by designers and programmers from around the world using the latest open standards, including HTML5, Canvas, SVG, and more.
Here are my favourite ones

For those who dont want to leave the traditional Internet Explorer, hereis a way to experience chrome inside IE

Wednesday, August 26, 2009

Test post form blog.gears

The following site allows you to blog from your comp when it is offline and sync the changes once you're back online. Just checking its functionality now.

Saturday, June 20, 2009

Wat's New online?

Url shorteners
They allow you to convert long url's to short ones.Additionally and allows u to have have custom names in the url like will point to this blog. Be first to grab urs. :)


This allows u to have a mail address without signup or password. The main use of this mail address is to use it as an temporary address required for signups for few unimportant sites. You can view all the mails at the site. Another good thing is that a duplicate mail address for everymail address is created which cant be used to read mails (write only address) but only to send. So this makes u own the address to some extent if u have some funny name for ur address that no one will be guessing or be willing to have.
Warning: There was a similar service called emailmenot of which stopped working now. So i cannot reset my password for some sites which use bugmenot email as key.

At last, fun

Omegle is a brand-new service for meeting new friends. When you use Omegle, we pick another user at random and let you have a one-on-one chat with each other. Chats are completely anonymous, although there is nothing to stop you from revealing personal details if you would like.

If you like Omegle, be sure to check out the Omegle blog!

Tuesday, April 14, 2009

Which Email??

Any frequent internet user usually has a couple of mail accounts.
The best suited for all is the Gmail but others have certain advantages over the gmail.
Yahoo mail
The Yahoo mail which was the best before gmail has its speciality of unlimited storage. It also has a outlook like user interface which allows browsing thru multiple msgs easy.The major disadvantage of this is the ads at the right. Also the loading time for yahoo mail is slooow. U can have your email addresses short like :) Its a good idea to have the same id as of gmail in ur ymail too. you're likely to get ur prefered id for ur ymail.
Hot mail
I dont find anything attractive with hotmail. Only thing is that many users still use MSN for chatting.
In mail
This is a new email. It has a good advantage of sending future mails. Yes, you can schedule when to send ur mail. Also u can browse ur yahoo and gmails in the In mail id itself. Other thing is that ur email address can be very small like my new address is , Guess u can have even 4 digit ids which makes the email addresses very small.
Find anyother mails better??? post on comments :)
p.s posting after very long.

Friday, July 4, 2008

Flip it ʇı dılɟ

Want to be ʇuǝɹǝɟɟıp ?
Nothing much to explain.. Just check the link

p.s credit goes to Kra