Tuesday, May 28, 2013

Adding a website into android home screen

Adding a website into android home screen is very easy.

Bookmark the website.
on your android home screen, long-press in an empty space.
"Add to Home Screen will appear"
Select "Shortcuts"
select "Bookmarks"
select your bookmarked website.

Standard bookmark image of the site’s favicon will be used as the icon.
If the following tag available in the <head>
<link rel="apple-touch-icon-precomposed" href="image-source" />
then source image will be used. Both the iPhone and Android support the apple-touch-icon-precomposed link rel-type.

Another way

Bookmark the website.
Long-press the bookmark.
Select “Add to Home screen”

For web developer, It is best practice to add <link rel="apple-touch-icon-precomposed" href="image-source" /> in the <head> So that reader can add your site into their home screen. iOS and Android both support this "apple-touch-icon-precomposed" rel-tyupe.

Monday, May 27, 2013

Linux Basic - Part 1

If you want to change your current directory, you can use "cd" command.
cd your_destination_directory
changing directory to root directory
cd /
changing directory to your home directory
cd home/your_user_name
OR you can use ~ for changing to your home directory
cd ~
it will change your current directory to your home directory.
if you need to change directory to your "documents" directory /home/you/documents, you can command
cd ~/documents
you can quickly come back to your home directory from any directory
cd ~