<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6638551178264579821</id><updated>2011-11-28T05:41:10.689+06:00</updated><category term='image resizing'/><category term='live validation'/><category term='javascript'/><category term='converter'/><category term='FB'/><category term='transparent_image'/><category term='ubuntu vim'/><category term='Ruby on Rails Ubuntu'/><category term='Ajax'/><category term='Skype'/><category term='MAC address change in Ubuntu'/><category term='backgroundrb'/><category term='cron job RoR'/><category term='fckeditor'/><category term='windows variables'/><category term='environment variables'/><category term='Ruby on Rails bangladesh'/><category term='Ubuntu apache mysql php'/><category term='Php Photo Gallery'/><category term='LAMP ubuntu'/><category term='news_ticker'/><category term='ubuntu AC'/><category term='Ruby on Rails'/><category term='Codeigniter'/><category term='review'/><category term='menu'/><category term='Facebook'/><category term='Job scheduler in RoR'/><category term='font install in Ubuntu'/><category term='Goolge'/><category term='Dictionary'/><category term='Ruby on Rails auto complete'/><category term='IE6'/><category term='php'/><category term='Ubuntu font'/><category term='Popular websites'/><category term='Tab menu'/><category term='Copy to clipboard'/><category term='flv'/><category term='blog'/><category term='Google'/><category term='curl_php'/><category term='Syntaxhighlighter'/><category term='google_code'/><category term='Google Desktop'/><category term='cURL'/><category term='firefox add-ons'/><category term='MAC change'/><category term='searching technique'/><category term='Skype Ubuntu'/><category term='mp3'/><category term='VIM'/><category term='ubuntu'/><category term='ubuntu php'/><category term='Google Apps'/><category term='addthis'/><title type='text'>God helps them that help themselves</title><subtitle type='html'>Share knowledge</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>35</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-601338097828581973</id><published>2010-05-14T15:16:00.007+06:00</published><updated>2010-05-14T16:37:34.594+06:00</updated><title type='text'>Lets Rejoice in the Beautiful Game</title><content type='html'>The greatest show on earth (FIFA World Cup 2010) is knocking at the door. Yesterday I hear the theme song for this world cup though it was announced may be on the November' 09. Hearing the song I just feel the emotion of supporting my team again. Lyrics of that song is simply awesome. Here is the lyrics:&lt;br /&gt;&lt;br /&gt;---------------------------------------------&lt;br /&gt;Ooooooh Wooooooh&lt;br /&gt;&lt;br /&gt;Give me freedom, give me fire, give me reason, take me higher&lt;br /&gt;See the champions, take the field now, you define us, make us feel proud&lt;br /&gt;In the streets are, exaliftin , as we lose our  inhabition,&lt;br /&gt;Celebration its around us, every nation, all around us&lt;br /&gt;&lt;br /&gt;Singin forever young, singin songs underneath that sun&lt;br /&gt;Lets rejoice in the beautiful game.&lt;br /&gt;And together at the end of the day.&lt;br /&gt;&lt;br /&gt;WE ALL SAY&lt;br /&gt;&lt;br /&gt;When I get older I will be stronger&lt;br /&gt;They'll call me freedom Just like a wavin' flag&lt;br /&gt;And then it goes back&lt;br /&gt;And then it goes back&lt;br /&gt;And then it goes back&lt;br /&gt;&lt;br /&gt;When I get older I will be stronger&lt;br /&gt;They'll call me freedom&lt;br /&gt;Just like a wavin' flag&lt;br /&gt;And then it goes back&lt;br /&gt;And then it goes back&lt;br /&gt;And then it goes&lt;br /&gt;&lt;br /&gt;Oooooooooooooh woooooooooohh hohoho&lt;br /&gt;&lt;br /&gt;Give you freedom, give you fire, give you reason, take you higher&lt;br /&gt;See the champions, take the field now, you define us, make us feel proud&lt;br /&gt;In the streets are, exaliftin, every loser in ambition,&lt;br /&gt;Celebration, its around us, every nations, all around us&lt;br /&gt;&lt;br /&gt;Singin forever young, singin songs underneath that sun&lt;br /&gt;Lets rejoice in the beautiful game.&lt;br /&gt;And together at the end of the day.&lt;br /&gt;&lt;br /&gt;WE ALL SAY&lt;br /&gt;&lt;br /&gt;When I get older, I will be stronger&lt;br /&gt;They'll call me freedom&lt;br /&gt;Just like a wavin' flag&lt;br /&gt;And then it goes back&lt;br /&gt;And then it goes back&lt;br /&gt;And then it goes back&lt;br /&gt;&lt;br /&gt;When I get older I will be stronger&lt;br /&gt;They'll call me freedom&lt;br /&gt;Just like a wavin' flag&lt;br /&gt;And then it goes back&lt;br /&gt;And then it goes back&lt;br /&gt;And then it goes&lt;br /&gt;&lt;br /&gt;Wooooooooo Ohohohoooooooo ! OOOoooooh Wooooooooo&lt;br /&gt;&lt;br /&gt;WE ALL SAY !&lt;br /&gt;When I get older I will be stronger&lt;br /&gt;They'll call me freedom&lt;br /&gt;Just like a wavin' flag&lt;br /&gt;And then it goes back&lt;br /&gt;And then it goes back&lt;br /&gt;And then it goes back&lt;br /&gt;&lt;br /&gt;When I get older I will be stronger&lt;br /&gt;They'll call me freedom&lt;br /&gt;Just like a wavin' flag&lt;br /&gt;And then it goes back&lt;br /&gt;And then it goes back&lt;br /&gt;And then it goes&lt;br /&gt;&lt;br /&gt;Wooo hooooo hohohohoooooo&lt;br /&gt;&lt;br /&gt;And everybody will be singinit&lt;br /&gt;Wooooooooo ohohohoooooo&lt;br /&gt;And we are all singinit&lt;br /&gt;&lt;br /&gt;---------------------------------------------&lt;br /&gt;&lt;br /&gt;The song is really inspirational. I don't know whether it enriches the spirit of the players but it really inspires supporters to support their team. So, best wishes to my favorite team &lt;span style="font-weight: bold;"&gt;Argentina&lt;/span&gt; :)&lt;br /&gt;&lt;br /&gt;Hope to see smiling &lt;span style="font-weight: bold;"&gt;Messi&lt;/span&gt; with the cup @ 11 July' 10.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-601338097828581973?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/601338097828581973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=601338097828581973&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/601338097828581973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/601338097828581973'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2010/05/lets-rejoice-in-beautiful-game.html' title='Lets Rejoice in the Beautiful Game'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-2887741462368983627</id><published>2010-04-12T21:50:00.015+06:00</published><updated>2010-04-13T15:19:57.326+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='blog'/><category scheme='http://www.blogger.com/atom/ns#' term='Facebook'/><category scheme='http://www.blogger.com/atom/ns#' term='FB'/><title type='text'>Import Blog Post as Notes in Facebook</title><content type='html'>First click on the "Account" button. Now Select "Application Settings".&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_boja1fXZ5zY/S8NE9zNnS3I/AAAAAAAACXk/VNyXKbhFSGs/s1600/app_setting.png"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 241px; height: 242px;" src="http://4.bp.blogspot.com/_boja1fXZ5zY/S8NE9zNnS3I/AAAAAAAACXk/VNyXKbhFSGs/s320/app_setting.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5459283001813191538" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Then from the page click on 'Profile' next to the 'Notes'&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_boja1fXZ5zY/S8NIbbUVVkI/AAAAAAAACX0/Cj4NPXky0no/s1600/notes_profile.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 16px;" src="http://4.bp.blogspot.com/_boja1fXZ5zY/S8NIbbUVVkI/AAAAAAAACX0/Cj4NPXky0no/s400/notes_profile.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5459286809329882690" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;After the page opens, click on 'Go to Application'&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_boja1fXZ5zY/S8NJBwq5EvI/AAAAAAAACX8/GNm_PhXj2gw/s1600/go_app.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 127px; height: 115px;" src="http://2.bp.blogspot.com/_boja1fXZ5zY/S8NJBwq5EvI/AAAAAAAACX8/GNm_PhXj2gw/s320/go_app.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5459287467896673010" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;When the page opens, click on 'Import a blog'&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_boja1fXZ5zY/S8NJ1eBuLGI/AAAAAAAACYE/-gU87_S4Nho/s1600/import.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 196px; height: 218px;" src="http://1.bp.blogspot.com/_boja1fXZ5zY/S8NJ1eBuLGI/AAAAAAAACYE/-gU87_S4Nho/s320/import.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5459288356245351522" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Then on the Web URL text box type your blog address and the press 'Start Importing' ...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_boja1fXZ5zY/S8NLPuedfSI/AAAAAAAACYM/sMJIZZGTQuY/s1600/strt_import.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 239px;" src="http://1.bp.blogspot.com/_boja1fXZ5zY/S8NLPuedfSI/AAAAAAAACYM/sMJIZZGTQuY/s320/strt_import.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5459289906849086754" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;After importing confirm it. All the blog posts will be saved as notes.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;!!! Enjoy :)&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-2887741462368983627?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/2887741462368983627/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=2887741462368983627&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/2887741462368983627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/2887741462368983627'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2010/04/import-blog-post-as-notes-in-facebook.html' title='Import Blog Post as Notes in Facebook'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_boja1fXZ5zY/S8NE9zNnS3I/AAAAAAAACXk/VNyXKbhFSGs/s72-c/app_setting.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-2614228040226914401</id><published>2010-02-07T15:14:00.003+06:00</published><updated>2010-02-08T12:46:54.058+06:00</updated><title type='text'>Two Articles that Inspire Me to Live more Meaningfully</title><content type='html'>I sometimes characterize me as an Escapist. But sometimes try to be responsible in some issues. For that I often read many articles on life. I find two articles that visualize life more meaningful then I thought. Basically one of the two articles is a speech delivered by Steve Jobs, CEO of Apple computer and another is a blog post by Stephen Downes.&lt;br /&gt;The speech by Steve Jobs, CEO of Apple computer was delivered at Stanford University. I got this text from &lt;a href="http://news-service.stanford.edu/news/2005/june15/jobs-061505.html" title="Steve Jobs at Stanford University" target="_blank"&gt;this link&lt;/a&gt;. The title says  "You have got to find what you love, Jobs says". This attracts me very much and I read the text very quickly. It was simply amazing story. I was very much inspired by this &lt;blockquote&gt;... you can't connect the dots looking forward; you can only connect them looking backwards. So you have to trust that the dots will somehow connect in your future. You have to trust in something ...&lt;/blockquote&gt;. &lt;br /&gt;This is quite inhaling to love work more meaningfully.&lt;br /&gt;&lt;br /&gt;I get the second article &lt;a href="http://www.downes.ca/post/38502" title="Things You Really Need to Learn" target="_blank"&gt;here&lt;/a&gt;. Its a large post and I read the whole post within a short time. But it really create impacts on my mind for long. Some lines of this post is really matter of deep thinking &lt;blockquote&gt;What is worth doing? That is up to you to decide. I have chosen to dedicate my life to helping people obtain an education. Others seek to cure diseases, to explore space, to worship God, to raise a family, to design cars, or to attain enlightenment. If you don't decide what is worth doing, someone will decide for you, and at some point in your life you will realize that you haven't done what is worth doing at all. So spend some time, today, thinking about what is worth doing. You can change your mind tomorrow. But begin, at least, to guide yourself somewhere.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;I really love the sentence from the Steve Jobs' speech "Stay Hungry, Stay Foolish"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-2614228040226914401?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/2614228040226914401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=2614228040226914401&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/2614228040226914401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/2614228040226914401'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2010/02/two-articles-that-inspire-me-to-live.html' title='Two Articles that Inspire Me to Live more Meaningfully'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-857300945432792097</id><published>2009-11-08T15:03:00.003+07:00</published><updated>2009-11-09T11:46:23.836+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='google_code'/><title type='text'>Dynamically detect Language and add CSS accordingly</title><content type='html'>In blog sites the blog owner allows visitors to comment on his blog post. If the site is local or regional like &lt;a href="http://www.somewhereinblog.net" target="_blank"&gt;Somewherein&lt;/a&gt;, &lt;a href="http://www.amarblog.com" target="_blank"&gt;Amar Blog&lt;/a&gt; some visitors have tendency to put comment in their native language, on the other hand some visitors always put comments in english. There is a small problem when displaying the comments on the site. If the blog owner has a class for the div where all the comments will be displayed and define font-family for english language then bangla comments will be very difficult to see and vice-versa. So if we can dynamically detect the language of each comments and define separate classes for different language we can show the comments in appropriate way. &lt;a href="http://code.google.com/apis/ajax/playground/#language_detect" target="_blank"&gt;Google Code&lt;/a&gt; provides an API to detect the language of content. We can use this for our purpose. Here i'll show a simple implementation to assign different DIV class for different Languages.&lt;br /&gt;&lt;pre name="code" class="php"&gt;&lt;br /&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&amp;gt;&lt;br /&gt;&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;&lt;br /&gt;  &amp;lt;head&amp;gt;&lt;br /&gt;    &amp;lt;meta http-equiv="content-type" content="text/html; charset=utf-8"/&amp;gt;&lt;br /&gt;    &amp;lt;script src="http://www.google.com/jsapi?key=API_KEY"&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;    &amp;lt;script type="text/javascript"&amp;gt;&lt;br /&gt;    &lt;br /&gt;    google.load("language", "1");&lt;br /&gt;    &lt;br /&gt;    function initialize() {&lt;br /&gt;      var text = document.getElementById("text").innerHTML;&lt;br /&gt;    &lt;br /&gt;      // Detect the language of the text.&lt;br /&gt;      google.language.detect(text, function(result) {&lt;br /&gt;        var detected = document.getElementById("detected");&lt;br /&gt;        // If there wasn't an error in the request&lt;br /&gt;        if (!result.error) {&lt;br /&gt;          var langCode = result.language;&lt;br /&gt;          var langName;&lt;br /&gt;    &lt;br /&gt;          // Loop through the languages enum so that we can find the actual name of the language.&lt;br /&gt;          // Learn about the languages enum here:&lt;br /&gt;          // http://code.google.com/apis/ajaxlanguage/documentation/reference.html#LangNameArray&lt;br /&gt;          for (var i in google.language.Languages) {&lt;br /&gt;            var thisLangCode = google.language.Languages[i];&lt;br /&gt;            if (thisLangCode == langCode) {&lt;br /&gt;              // If we find the language code, store the language name.&lt;br /&gt;              langName = i;&lt;br /&gt;              break;&lt;br /&gt;            }&lt;br /&gt;          }&lt;br /&gt;    &lt;br /&gt;          // Se the detected language.&lt;br /&gt;          if(langName == "BENGALI")&lt;br /&gt;          {&lt;br /&gt;             document.getElementById("text").setAttribute("class", "bn");&lt;br /&gt;          }&lt;br /&gt;          else &lt;br /&gt;          {&lt;br /&gt;             document.getElementById("text").setAttribute("class", "en");&lt;br /&gt;          }&lt;br /&gt;        }&lt;br /&gt;      });&lt;br /&gt;    }&lt;br /&gt;    google.setOnLoadCallback(initialize);&lt;br /&gt;    &lt;br /&gt;    &amp;lt;/script&amp;gt;&lt;br /&gt;  &amp;lt;/head&amp;gt;&lt;br /&gt;  &amp;lt;body&amp;gt;&lt;br /&gt;    &amp;lt;div id="content"&amp;gt;&lt;br /&gt;     &amp;lt;div id="text"&amp;gt;share-facts.blogspot.com&amp;lt;/div&amp;gt;&lt;br /&gt;        &amp;lt;div id="detected"/&amp;gt;&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;  &amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Here content of the DIV with id="text" will be examined then the class of that DIV will added accordingly.&lt;br /&gt;&lt;br /&gt;Note: on line 5 API_KEY will be replaced by a valid API key.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-857300945432792097?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/857300945432792097/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=857300945432792097&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/857300945432792097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/857300945432792097'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/11/dynamically-detect-language-and-add-css.html' title='Dynamically detect Language and add CSS accordingly'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-6069423929083307121</id><published>2009-11-04T11:09:00.004+07:00</published><updated>2009-11-04T11:57:03.149+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='curl_php'/><category scheme='http://www.blogger.com/atom/ns#' term='cURL'/><title type='text'>Simple cURL example using PHP</title><content type='html'>&lt;a href="http://curl.haxx.se/" target="_blank"&gt;cURL&lt;/a&gt; library allows us to connect to different servers using a variety of protocols. This is used for transferring files with URL syntax. In most of the cases we use cURL to display a specific portion of another site in our site. By using &lt;span style="font-style:italic;"&gt;cURL&lt;/span&gt; at first we retrieve the contents of the site that we targeted and then parse the retrieved contents to show the specific portion using &lt;span style="font-style:italic;"&gt;preg_match()&lt;/span&gt;. Here I'll show a simple example to retrieve and show the stock market price in my site from &lt;a href="http://m.www.yahoo.com/" target="_blank"&gt;Yahoo!&lt;/a&gt;. At first I have to open &lt;a href="http://m.www.yahoo.com/" target="_blank"&gt;Yahoo!&lt;/a&gt; in my browser. Then view the source of the page and identify that the stock market price is shown in between &lt;span style="font-weight:bold;"&gt;&amp;lt;dl class="markets clearfix strong small"&amp;gt; and &amp;lt;/dl&amp;gt;&lt;/span&gt;. So this is my targeted portion. I'll use this tag to excerpt my targeted portion from the total contents. Full code is as follows:&lt;br /&gt;&lt;pre name="code" class="php"&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;cURL Example&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;div style="margin-left:30px"&amp;gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;//URL of targeted site&lt;br /&gt;$url = "http://m.www.yahoo.com/";&lt;br /&gt;$ch = curl_init();&lt;br /&gt;&lt;br /&gt;// set URL and other appropriate options&lt;br /&gt;curl_setopt($ch, CURLOPT_URL, $url);&lt;br /&gt;curl_setopt($ch, CURLOPT_HEADER, 0);&lt;br /&gt;curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;&lt;br /&gt;// grab URL and pass it to the browser&lt;br /&gt;&lt;br /&gt;$output = curl_exec($ch);&lt;br /&gt;&lt;br /&gt;//Regular expression to excerpt the targeted portion&lt;br /&gt;preg_match('/&amp;lt;dl class="markets clearfix strong small"&gt;(.*)&amp;lt;\/dl&gt;/is', $output, $matches);&lt;br /&gt;echo $matches[0];&lt;br /&gt;&lt;br /&gt;// close curl resource, and free up system resources&lt;br /&gt;curl_close($ch);&lt;br /&gt;?&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Very simple, isn't it? Now by using our own css we can show the data in our own way.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-6069423929083307121?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/6069423929083307121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=6069423929083307121&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/6069423929083307121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/6069423929083307121'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/11/simple-curl-example-using-php.html' title='Simple cURL example using PHP'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-5219484482267923878</id><published>2009-09-20T15:40:00.007+07:00</published><updated>2009-10-21T14:37:42.215+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='transparent_image'/><category scheme='http://www.blogger.com/atom/ns#' term='IE6'/><title type='text'>Fixing Transparent Image in IE6</title><content type='html'>IE6 doesn't support transparent image. There are many ways to use transparent image in IE6. Here is a way that I use to show the transparent image in IE6 using CSS. CSS part for it is as bellows. &lt;br /&gt;&lt;br /&gt;&lt;pre name="code" class="html"&gt;&lt;br /&gt;#header&lt;br /&gt;{&lt;br /&gt; background:url(logo.png) no-repeat;&lt;br /&gt; height:109px;&lt;br /&gt; width:507px;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;*html #header &lt;br /&gt;{&lt;br /&gt; background-image:none;&lt;br /&gt; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="logo.png");&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;this "&lt;span style="font-weight:bold;"&gt;*html #header&lt;/span&gt;" part is only for IE6 i.e only IE6 will recognize this portion. One drawback of using this is we have to use absolute url to the image (i.e if logo.png is in the images folder(not in the css folder) of the site we have to write absolute url to that image. like: &lt;span style="font-style:italic;"&gt;http://www.mysitename.com/images/logo.png&lt;/span&gt;).&lt;br /&gt;Another drawback is links (i.e &amp;lt;a&amp;gt;&amp;lt;/a&amp;gt;) somwtimes become unclickable and forms become unfocusable. To get rid of it we have use &lt;span style="font-weight:bold;"&gt;postion:relative&lt;/span&gt; for &lt;span style="font-weight:bold;"&gt;a&lt;span style="font-style:italic;"&gt;&lt;/span&gt;&lt;/span&gt; tag. i.e&lt;br /&gt;&lt;pre name="code" class="html"&gt;&lt;br /&gt;a &lt;br /&gt;{&lt;br /&gt;   postion:relative;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-5219484482267923878?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/5219484482267923878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=5219484482267923878&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/5219484482267923878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/5219484482267923878'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/09/fixing-transparent-image-in-ie6.html' title='Fixing Transparent Image in IE6'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-8356157083708498232</id><published>2009-08-06T16:08:00.003+07:00</published><updated>2009-08-07T12:32:34.271+07:00</updated><title type='text'>Bangla Typing using Google Transliteration</title><content type='html'>We can use Google Transliteration to type in Bengali on any web-site. It converts English characters to the characters used in Bengali. It offers us to type Bengali words phonetically in English script and then have them appear in Bengali. Its not translation, it does not change meaning rather it simply converts the sound of the word from English alphabet to &lt;a href="http://www.bengaliwiki.com/page/Bengali+Alphabet" title="bangla alphabet, bengali alphabet"&gt;Bengali alphabet&lt;/a&gt;. For example, typing "Bangladesh" transliterates into Bengali as বাংলাদেশ. &lt;br /&gt;Its a small piece of code that stores on our browser(s). Visit &lt;a href="http://t13n.googlecode.com/svn/trunk/blet/docs/help_bn.html"&gt;this link&lt;/a&gt; to know how to enable this option to the various browsers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-8356157083708498232?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/8356157083708498232/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=8356157083708498232&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/8356157083708498232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/8356157083708498232'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/08/bangla-typing-using-google.html' title='Bangla Typing using Google Transliteration'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-7778564936063649494</id><published>2009-07-22T12:25:00.008+07:00</published><updated>2009-07-26T10:15:41.772+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='searching technique'/><category scheme='http://www.blogger.com/atom/ns#' term='Google'/><title type='text'>Some Interesting Google Search Technique</title><content type='html'>We always search our query in &lt;a href="http://www.google.com" title="search engine"&gt;Google&lt;/a&gt;. There are huge set of techniques by which we can search in &lt;a href="http://www.google.com" title="search engine"&gt;Google&lt;/a&gt; more accurately. I collect and show some of them here that I frequently use. Those techniques are very simple but provide very fruitful result :) .&lt;br /&gt;&lt;br /&gt;1. Whenever we search for more than one keyword (i.e. computer programming, here we use 2 key word. a) computer b) programming) at a time &lt;a href="http://www.google.com" title="search engine"&gt;Google&lt;/a&gt; will handle this keyword using a method called Boolean Default. &lt;a href="http://www.google.com" title="search engine"&gt;Google's&lt;/a&gt; Boolean default is 'AND'; that means if we enter query words without modifiers, &lt;a href="http://www.google.com" title="search engine"&gt;Google&lt;/a&gt; will search for all of them. If we search for:&lt;br /&gt;&lt;blockquote&gt;computer programming&lt;/blockquote&gt;&lt;br /&gt;&lt;a href="http://www.google.com" title="search engine, google"&gt;Google&lt;/a&gt; will search for all the words. If we want to specify that either word is acceptable, we can put an 'OR' between each item:&lt;br /&gt;&lt;blockquote&gt;computer OR programming&lt;/blockquote&gt;&lt;br /&gt;If we want to exclude a query item from search results, use a -.(minus sign or dash:&lt;br /&gt;&lt;blockquote&gt;computer -programming&lt;/blockquote&gt;&lt;br /&gt;note that there is no space after the (-) sign.&lt;br /&gt;&lt;br /&gt;2. To search for a phrase use "" surrounding the phrase. like:&lt;br /&gt;&lt;blockquote&gt;"Some Interesting Google Search Technique"&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;3. Period (.) and Asterisk (*) can also be used as traditionally used.&lt;br /&gt;&lt;br /&gt;4. To search anything from a specific site use 'site:site_name'.&lt;br /&gt;&lt;blockquote&gt;google site:share-facts.blogspot.com&lt;/blockquote&gt;&lt;br /&gt;This will search for the term google only in the specified site.&lt;br /&gt;&lt;br /&gt;note that there is no space after the (:) sign.&lt;br /&gt;&lt;br /&gt;5. To restrict search to title of web pages we can use 'intitle:search_keyword'&lt;br /&gt;&lt;blockquote&gt;intitle:google&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;6. Use 'inurl:search_keyword' to restrict search to the URLs of web pages.&lt;br /&gt;&lt;blockquote&gt;inurl:google&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;7. To search in body text use 'intext:search_keyword'&lt;br /&gt;&lt;blockquote&gt;intext:html&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;8.Searches for text in a page's link anchors&lt;br /&gt;&lt;blockquote&gt;inanchor:"google desktop"&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;9. To search for a specific filetype use 'filetype:desired_file_type'&lt;br /&gt;&lt;blockquote&gt;bangladesh filetype:pdf&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;10. To search a copy of the page that Google indexed even if that site/page is no longer available at its original URL or has since changed its content completely. This is particularly useful for site/pages that change often.&lt;br /&gt;&lt;blockquote&gt;cache:share-facts.blogspot.com&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;11. To get the definition of search keyword 'define:search_keyword'.&lt;br /&gt;&lt;blockquote&gt;define:physics&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;12. To find lyrics use &lt;blockquote&gt;"lyrics_phrase" lyrics&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;13. To get the time of Dhaka &lt;blockquote&gt;time dhaka&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-7778564936063649494?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/7778564936063649494/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=7778564936063649494&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/7778564936063649494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/7778564936063649494'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/07/some-interesting-google-search.html' title='Some Interesting Google Search Technique'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-6827651592083121044</id><published>2009-07-05T16:32:00.003+07:00</published><updated>2009-07-05T17:01:00.590+07:00</updated><title type='text'>Adding Digg Button on Blogspot Post</title><content type='html'>&lt;a href="http://www.digg.com" title="digg, social content site"&gt;Digg&lt;/a&gt; is the social content website where we submit our favorite content. Its a very good idea to have a button on the site content so that visitor easily submit that content to &lt;a href="http://www.digg.com" title="digg, social content site"&gt;digg&lt;/a&gt;. To show digg button on blogger post we to put some code on the template.&lt;br /&gt;&lt;br /&gt;1.) Find the below line on the blogger template (its found when "Expand Widget Templates" is clicked). &lt;pre name="code" class="html"&gt;&amp;lt;p&amp;gt;&amp;lt;data:post.body/&amp;gt;&amp;lt;/p&amp;gt;&lt;/pre&gt; &lt;br /&gt;&lt;br /&gt;2.) Now replace this above code with&lt;br /&gt;&lt;pre name="code" class="js"&gt;&lt;br /&gt;&amp;lt;div style='float:left; margin-right:10px;'&amp;gt;&lt;br /&gt;&amp;lt;script type='text/javascript'&amp;gt;&lt;br /&gt;   digg_url='&amp;lt;data:post.url/&amp;gt;';&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;script src='http://digg.com/tools/diggthis.js' type='text/javascript'/&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;&amp;lt;data:post.body/&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;This will show the digg button on ur post's left top corner. To change button's orientation simply change div orientation.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-6827651592083121044?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/6827651592083121044/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=6827651592083121044&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/6827651592083121044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/6827651592083121044'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/07/adding-digg-button-on-blogspot-post.html' title='Adding Digg Button on Blogspot Post'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-5277512116172024055</id><published>2009-06-06T07:30:00.003+06:00</published><updated>2009-06-06T08:05:05.044+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Google Desktop'/><category scheme='http://www.blogger.com/atom/ns#' term='Goolge'/><title type='text'>Install Google Desktop on 64 bit Vista</title><content type='html'>Google Desktop can not be installed normally on 64 bit Windows Vista. But we can install it from command line by '/force'.&lt;br /&gt;&lt;br /&gt;To do so, first download &lt;a href="http://desktop.google.com/" title="google desktop, google desktop in 64 bit vista"&gt;google desktop&lt;/a&gt;. Then open the &lt;span style="font-weight:bold;" title="google desktop in 64 bit vista"&gt;Command prompt&lt;/span&gt; and go to the installer directory, type the command '&lt;span style="font-style:italic;" title="google desktop in 64 bit vista"&gt;&lt;span style="font-weight:bold;" title="google desktop in 64 bit vista"&gt;googledesktopsetup.exe /force&lt;/span&gt;&lt;/span&gt;' and press Enter. Thats all ...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-5277512116172024055?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/5277512116172024055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=5277512116172024055&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/5277512116172024055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/5277512116172024055'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/06/install-google-desktop-on-64-bit-vista.html' title='Install Google Desktop on 64 bit Vista'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-3524965791429264817</id><published>2009-05-27T15:49:00.003+06:00</published><updated>2009-06-09T22:37:14.942+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Syntaxhighlighter'/><title type='text'>Adding SyntaxHighlighter JS to blogspot</title><content type='html'>&lt;a href="http://code.google.com/p/syntaxhighlighter/" title="SyntaxHighlighter"&gt;SyntaxHighlighter&lt;/a&gt; is a bunch of Javascript files to help a developer/coder to post code snippets to website/blog and have it look pretty. It supports multiple language and its very easy to use and deploy it. Download &lt;a href="http://code.google.com/p/syntaxhighlighter/downloads/list" title="SyntaxHighlighter"&gt;SyntaxHighlighter&lt;/a&gt;.&lt;br /&gt;Now extract the contents of the package and upload the Scripts and Styles folder to any host or website which can be linked from the blogspot site. &lt;br /&gt;To make it work, now we need to edit our blog's template and add the following code after the &lt;span style="font-weight:bold;"&gt;&amp;lt;!-- end outer-wrapper --&amp;gt;&lt;/span&gt; tag: &lt;br /&gt;&lt;pre name="code" class="html"&gt;&lt;br /&gt;&amp;lt;link href='http://[HOST URL]/SyntaxHighlighter.css' rel='stylesheet' type='text/css'/&amp;gt;&lt;br /&gt;&amp;lt;script language='javascript' src='http://[HOST URL]/shCore.js'/&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;script language='javascript'&amp;gt;&lt;br /&gt;dp.SyntaxHighlighter.BloggerMode();&lt;br /&gt;dp.SyntaxHighlighter.HighlightAll('code');&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Now we need to add support for the languages we want. For example to add support for the language php and ruby we need to link to two files. &lt;span style="font-weight:bold;"&gt;shBrushPhp.js&lt;/span&gt; and &lt;span style="font-weight:bold;"&gt;shBrushRuby.js&lt;/span&gt;. &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Another Interesting thing&lt;/span&gt; that Its not really needed to upload the code/files as those files are already hosted by google.code.&lt;br /&gt;We can easily lined up to those files. So, the above code snippet with support for &lt;span style="font-weight:bold;"&gt;PHP&lt;/span&gt; and &lt;span style="font-weight:bold;"&gt;RUBY&lt;/span&gt; will be as below.&lt;br /&gt;&lt;pre name="code" class="html"&gt;&lt;br /&gt;&amp;lt;link href='http://syntaxhighlighter.googlecode.com/svn-history/r57/trunk/Styles/SyntaxHighlighter.css' rel='stylesheet' type='text/css'/&amp;gt;&lt;br /&gt;&amp;lt;script language='javascript' src='http://syntaxhighlighter.googlecode.com/svn-history/r57/trunk/Scripts/shCore.js'/&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;script language='javascript'&amp;gt;&lt;br /&gt;dp.SyntaxHighlighter.BloggerMode();&lt;br /&gt;dp.SyntaxHighlighter.HighlightAll('code');&lt;br /&gt;&amp;lt;/script&amp;lt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!--Support for php and ruby : --&amp;gt;&lt;br /&gt;&amp;lt;script language='javascript' src='http://syntaxhighlighter.googlecode.com/svn-history/r57/trunk/Scripts/shBrushPhp.js'/&amp;gt;&lt;br /&gt;&amp;lt;script language='javascript' src='http://syntaxhighlighter.googlecode.com/svn-history/r57/trunk/Scripts/shBrushRuby.js'/&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Syntaxhighlighter supports pre and textarea tags, but it will not work automagically, we need to put our code into the &amp;lt;pre&amp;gt; or &amp;lt;textarea&amp;gt;.&lt;br /&gt;&lt;br /&gt;To add some php code to our blog we to put our code as follows:&lt;br /&gt;&amp;lt;pre name="code" class="php"&amp;gt;&lt;br /&gt;  ---- PHP code goes here ----&lt;br /&gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;&lt;br /&gt;Similarly for Ruby Code:&lt;br /&gt;&amp;lt;pre name="code" class="ror"&amp;gt;&lt;br /&gt;  ---- RUBY code goes here ----&lt;br /&gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;&lt;br /&gt;See details on that &lt;a href="http://code.google.com/p/syntaxhighlighter/w/list" title="Syntaxhighlighter wiki"&gt;page&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;One important notice from &lt;a href="http://code.google.com/p/syntaxhighlighter/wiki/Overview"&gt;Overview of SyntaxHighlighter&lt;/a&gt; &lt;span style="font-weight:bold;"&gt;Trying to highlight 10kb worth of text will result in JavaScript being aborted because of long execution time.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-3524965791429264817?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/3524965791429264817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=3524965791429264817&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/3524965791429264817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/3524965791429264817'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/05/adding-syntaxhighlighter-js-to-blogspot.html' title='Adding SyntaxHighlighter JS to blogspot'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-7937402712924100030</id><published>2009-05-24T10:07:00.004+06:00</published><updated>2009-05-24T10:32:30.448+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='environment variables'/><category scheme='http://www.blogger.com/atom/ns#' term='windows variables'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Command line PHP in Windows</title><content type='html'>In Linux (Ubuntu, Fedora) OS we have the PHP executable available in shell, so we can run command line php script. But in windows to do so, we have to set PHP executable as Windows path variable.&lt;br /&gt;We can do that in two ways ...&lt;br /&gt;&lt;br /&gt;1. Open the command prompt (&lt;span style="font-weight: bold;"&gt;start&lt;/span&gt; -&gt; &lt;span style="font-weight: bold;"&gt;run&lt;/span&gt; -&gt; &lt;span style="font-weight: bold;"&gt;cmd&lt;/span&gt;)&lt;br /&gt;and type: set &lt;span style="font-style:italic;"&gt;PATH=%PATH%;C:\path_to_php&lt;/span&gt;&lt;br /&gt;here, "&lt;span style="font-style:italic;"&gt;C:\path_to_php&lt;/span&gt;" is the physical folder where &lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;php.exe&lt;/span&gt;&lt;/span&gt; is located. In my case its on &lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;C:\xampp\php&lt;/span&gt;&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Now we can run PHP script from anywhere we want like this:&lt;br /&gt;D:\&amp;gt;php -v&lt;br /&gt;PHP 5.2.5 (cli) (built: Nov  8 2007 23:18:51)&lt;br /&gt;Copyright (c) 1997-2007 The PHP Group&lt;br /&gt;Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies&lt;br /&gt;    with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies&lt;br /&gt;    with Xdebug v2.0.2, Copyright (c) 2002-2007, by Derick Rethans&lt;br /&gt;&lt;br /&gt;Main problem of this method is this will affect only a single command prompt.&lt;br /&gt;&lt;br /&gt;2. The second method will affect all command prompts. First, right click on "My Computer", then click on "Properties" - a dialog box with some tabs will appear.&lt;br /&gt;Now from the tab named "Advanced" click on the button "Environment Variables". This will open the Environment Variables box. Now choose the Path variable from the system variables box and click Edit.&lt;br /&gt;Append the variable value with:&lt;br /&gt;&lt;br /&gt;;C:\path_to_php&lt;br /&gt;&lt;br /&gt;here, "&lt;span style="font-style:italic;"&gt;C:\path_to_php&lt;/span&gt;" is the physical folder where &lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;php.exe&lt;/span&gt;&lt;/span&gt; is located. In my case its on &lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;C:\xampp\php&lt;/span&gt;&lt;/span&gt;.&lt;br /&gt;';' character is used to separate directories in the var, so be sure it’s present.&lt;br /&gt;&lt;br /&gt;Thats all.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-7937402712924100030?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/7937402712924100030/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=7937402712924100030&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/7937402712924100030'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/7937402712924100030'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/05/command-line-php-in-windows.html' title='Command line PHP in Windows'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-5337702355973103687</id><published>2009-05-12T12:19:00.006+06:00</published><updated>2009-05-28T10:36:13.834+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Copy to clipboard'/><title type='text'>Copy to Clipboard !!! using Javascript</title><content type='html'>Copy to clipboard functionality is very useful when we want to copy any particular content of a web page automatically. I search over the net to know how to implement it. I found that almost every tutorial use the &lt;span style="font-style:italic;"&gt;javascript&lt;/span&gt; function "execCommand()". Here is an example how I use it:&lt;br /&gt;&lt;pre name="code" class="php"&gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;br /&gt;function ClipBoard()&lt;br /&gt;{&lt;br /&gt;holdtext.innerText = copytext.innerText;&lt;br /&gt;Copied = holdtext.createTextRange();&lt;br /&gt;Copied.execCommand("RemoveFormat");&lt;br /&gt;Copied.execCommand("Copy");&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;SPAN ID="copytext" STYLE="background-color:pink"&amp;gt;&lt;br /&gt;COPY This Line!&lt;br /&gt;&amp;lt;/SPAN&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;TEXTAREA ID="holdtext" STYLE="display:none;"&amp;gt;&amp;lt;/TEXTAREA&amp;gt;&lt;br /&gt;&amp;lt;BUTTON onClick="ClipBoard();"&amp;gt;Copy to Clipboard&amp;lt;/BUTTON&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;When I click on the button the line "&lt;span style="font-weight:bold;"&gt;COPY This Line!&lt;/span&gt;" will be copied to the clipboard and then I can paste it anywhere.&lt;br /&gt;But its not a solution of my problem when i open my page on Mozilla Firefox browser.&lt;br /&gt;As per I know Firefox doesn't support the &lt;span style="font-style:italic;"&gt;javascript&lt;/span&gt; function "execCommand()".&lt;br /&gt;&lt;br /&gt;After some googling I find this &lt;a href="http://www.logiclabz.com/javascript/copy-to-clipboard-with-javascript-on-mozilla-firefox-and-ie.aspx" title="Copy to Clipboard with Javascript on Mozilla firefox and IE"&gt;link&lt;/a&gt; which solve my problem both for IE and FireFox. Here is my implementation of this:&lt;br /&gt;&lt;pre name="code" class="php"&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;Copy to Clipboard&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;br /&gt;function copy_to_clipboard(text)&lt;br /&gt;{&lt;br /&gt;    if(window.clipboardData)&lt;br /&gt;    {&lt;br /&gt; window.clipboardData.setData('text',text);&lt;br /&gt;    }&lt;br /&gt;    else&lt;br /&gt;    {&lt;br /&gt;        var clipboarddiv=document.getElementById('divclipboardswf');&lt;br /&gt; if(clipboarddiv==null)&lt;br /&gt; {&lt;br /&gt;    clipboarddiv=document.createElement('div');&lt;br /&gt;       clipboarddiv.setAttribute("name", "divclipboardswf");&lt;br /&gt;    clipboarddiv.setAttribute("id", "divclipboardswf");&lt;br /&gt;    document.body.appendChild(clipboarddiv);&lt;br /&gt; }&lt;br /&gt;    clipboarddiv.innerHTML='&amp;lt;embed src="clipboard.swf" FlashVars="clipboard='+&lt;br /&gt;encodeURIComponent(text)+'" width="0" height="0" type="application/x-shockwave-flash"&amp;gt;&amp;lt;/embed&amp;gt;';&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;input type="text" id="rt" value="" /&amp;gt;&lt;br /&gt;&amp;lt;input type="button" value="Copy" onclick="copy_to_clipboard(document.getElementById('rt').value);" /&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;To use it for firefox I have to download the flash (.swf) file from &lt;a href="http://www.logiclabz.com/postimg/clipboard.rar"&gt;here&lt;/a&gt; and placed at path where this function is placed or else source parameter for embed tag to be changed to correct path where the flash file is been placed.&lt;br /&gt;I also need firefox plugins for flash player as it depends on flash.&lt;br /&gt;Now if I write something on the text box and then press the button the written text on the input box will be copied to the clipborad.&lt;br /&gt;&lt;br /&gt;It works very fine. :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-5337702355973103687?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/5337702355973103687/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=5337702355973103687&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/5337702355973103687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/5337702355973103687'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/05/copy-to-clipboard-using-javascript.html' title='Copy to Clipboard !!! using Javascript'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-7811816030959560582</id><published>2009-05-03T08:36:00.011+06:00</published><updated>2009-06-05T11:24:05.131+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fckeditor'/><category scheme='http://www.blogger.com/atom/ns#' term='image resizing'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Fckeditor: Image resize on Upload</title><content type='html'>Fckeditor (Html text editor) v-2.6.4 does not have automatic image resizing feature on upload or at least i don't know :( whether this editor has this feature. So to be able to resize picture on upload via fckeditor i bring some changes on "commands.php" file of fckeditor files. This file located on '\editor\filemanager\connectors\php' of the fckeditor folder. Open this file and&lt;br /&gt;&lt;br /&gt;1. go to line # 219. It looks like &lt;br /&gt;&lt;pre name="code" class="php"&gt;&lt;br /&gt;move_uploaded_file( $oFile['tmp_name'], $sFilePath ) ;&lt;br /&gt;&lt;/pre&gt; &lt;br /&gt;This line is under the function '&lt;span style="font-style: italic;"&gt;FileUpload&lt;/span&gt;'&lt;br /&gt;&lt;br /&gt;2. Now change the line to &lt;br /&gt;&lt;pre name="code" class="php"&gt;&lt;br /&gt;if($sExtension == 'jpg' || $sExtension == 'jpeg' || $sExtension == 'gif' )&lt;br /&gt;{&lt;br /&gt;  $uploadedfile = $_FILES['NewFile']['tmp_name'];&lt;br /&gt;&lt;br /&gt;  // Create an Image from it so we can do the resize&lt;br /&gt;  $src = imagecreatefromjpeg($uploadedfile);&lt;br /&gt;      &lt;br /&gt;  // Capture the original size of the uploaded image&lt;br /&gt;  list($width,$height)=getimagesize($uploadedfile);&lt;br /&gt;     &lt;br /&gt;  // For my purposes, I have resized the image to be&lt;br /&gt;  // 300 pixels wide, and maintain the original aspect&lt;br /&gt;  // ratio. This prevents the image from being "stretched"&lt;br /&gt;  // or "squashed". If you prefer some max width other than&lt;br /&gt;  // 300, simply change the $newwidth variable&lt;br /&gt;  $newwidth=300;&lt;br /&gt;  $newheight=($height/$width)*$newwidth;&lt;br /&gt;  $tmp=imagecreatetruecolor($newwidth,$newheight);&lt;br /&gt;      &lt;br /&gt;  // this line actually does the image resizing, copying from the original&lt;br /&gt;  // image into the $tmp image&lt;br /&gt;  imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height);&lt;br /&gt;      &lt;br /&gt;  // now write the resized image to disk. I have assumed that you want the&lt;br /&gt;  // resized, uploaded image file to reside in the ./images subdirectory.&lt;br /&gt;  $filename = $_FILES['NewFile']['tmp_name'];&lt;br /&gt;  imagejpeg($tmp,$filename,100);&lt;br /&gt;  move_uploaded_file( $filename, $sFilePath ) ;&lt;br /&gt;  imagedestroy($src);&lt;br /&gt;  imagedestroy($tmp);&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;  move_uploaded_file( $oFile['tmp_name'], $sFilePath ) ;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;3. thats all. &lt;br /&gt;&lt;br /&gt;It works for me and hope will for U :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-7811816030959560582?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/7811816030959560582/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=7811816030959560582&amp;isPopup=true' title='14 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/7811816030959560582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/7811816030959560582'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/05/fckeditor-image-resize-on-upload.html' title='Fckeditor: Image resize on Upload'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>14</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-4028556346792533414</id><published>2009-04-09T12:13:00.004+06:00</published><updated>2009-05-28T10:34:11.009+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='news_ticker'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Scrolling PHP News Ticker</title><content type='html'>We often show latest news from various News Site RSS feed in our site. We can show this news as like as scrolling news in the TV channels. We called it news ticker. Here i show the steps that i do to show those news like TV channel scrolling news. I use this &lt;a title="php news ticker, scrolling news ticker, javascript news ticker" href="http://www.mioplanet.com/rsc/webticker_lib.zip"&gt;javascript file&lt;/a&gt; to do this. Here is my steps&lt;br /&gt;&lt;br /&gt;1. create a &lt;span style="font-weight: bold; font-style: italic;"&gt;index.php&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt; file and add these lines between body tag:&lt;br /&gt;&lt;pre name="code" class="php"&gt;&amp;lt;DIV ID="TICKER" STYLE="width:520px; overflow:hidden"  onmouseover="TICKER_PAUSED=true" onMouseOut="TICKER_PAUSED=false"&amp;gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;include("xmlparser.php");&lt;br /&gt;?&amp;gt;&lt;br /&gt;&amp;lt;/DIV&amp;gt;&lt;br /&gt;&amp;lt;script type="text/javascript" src="webticker_lib.js" language="javascript"&amp;gt;&amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;2. Download the webticker_lib.js javascript file from &lt;a title="php news ticker, scrolling news ticker, javascript news ticker" href="http://www.mioplanet.com/rsc/webticker_lib.zip"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;3. create a .php file name xmlparser.php and put those line:&lt;br /&gt;&lt;pre name="code" class="php"&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;&lt;br /&gt;$insideitem = false;&lt;br /&gt;$tag = "";&lt;br /&gt;$title = "";&lt;br /&gt;$description = "";&lt;br /&gt;$link = "";&lt;br /&gt;&lt;br /&gt;function startElement($parser, $name, $attrs) {&lt;br /&gt; global $insideitem, $tag, $title, $description, $link;&lt;br /&gt; if ($insideitem) {&lt;br /&gt;  $tag = $name;&lt;br /&gt; } elseif ($name == "ITEM") {&lt;br /&gt;  $insideitem = true;&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function endElement($parser, $name) {&lt;br /&gt; global $insideitem, $tag, $title, $description, $link;&lt;br /&gt; if ($name == "ITEM") {&lt;br /&gt;  printf("&amp;lt;a href='%s' target='_blank'&amp;gt;%s&amp;lt;/a&amp;gt; ",&lt;br /&gt;   trim($link),htmlspecialchars(trim($title)));&lt;br /&gt;  $title = "";&lt;br /&gt;  $description = "";&lt;br /&gt;  $link = "";&lt;br /&gt;  $insideitem = false;&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function characterData($parser, $data) {&lt;br /&gt; global $insideitem, $tag, $title, $description, $link;&lt;br /&gt; if ($insideitem) {&lt;br /&gt; switch ($tag) {&lt;br /&gt;  case "TITLE":&lt;br /&gt;  $title .= $data;&lt;br /&gt;  break;&lt;br /&gt;  case "DESCRIPTION":&lt;br /&gt;  $description .= $data;&lt;br /&gt;  break;&lt;br /&gt;  case "LINK":&lt;br /&gt;  $link .= $data;&lt;br /&gt;  break;&lt;br /&gt; }&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  $xml_parser = xml_parser_create();&lt;br /&gt;  xml_set_element_handler($xml_parser, "startElement", "endElement");&lt;br /&gt;  xml_set_character_data_handler($xml_parser, "characterData");&lt;br /&gt;  $fp = fopen("http://bangla.irib.ir/index.php?option=com_rss&amp;feed=RSS2.0&amp;no_html=1","r")&lt;br /&gt;   or die("Error reading RSS data.");&lt;br /&gt;  while ($data = fread($fp, 4096))&lt;br /&gt;   xml_parse($xml_parser, $data, feof($fp))&lt;br /&gt;    or die(sprintf("XML error: %s at line %d", &lt;br /&gt;     xml_error_string(xml_get_error_code($xml_parser)), &lt;br /&gt;     xml_get_current_line_number($xml_parser)));&lt;br /&gt;  fclose($fp);&lt;br /&gt;  xml_parser_free($xml_parser);&lt;br /&gt;&lt;br /&gt;?&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Here "http://bangla.irib.ir/index.php?option=com_rss&amp;feed=RSS2.0&amp;no_html=1" is the rss feed address, from that i retrieve news. So we to change this address when we want to retrieve news from other RSS feeder.&lt;br /&gt;Thats all. Now Run the index.php file and get news ticker in action.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-4028556346792533414?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/4028556346792533414/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=4028556346792533414&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/4028556346792533414'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/4028556346792533414'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/04/scrolling-php-news-ticker.html' title='Scrolling PHP News Ticker'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-5169232685174608931</id><published>2009-04-08T09:07:00.003+06:00</published><updated>2009-04-08T10:28:01.159+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='menu'/><title type='text'>Simple Javascript menu :OpenCube</title><content type='html'>Often we to create Javascript menu to use in website. Opencube provides a tremendous software to produce various type(horizontal/vertical) of menu and use it our site. This software can be downloaded from &lt;a href="http://www.opencube.com/download/quickmenu7.exe" title="javascript menu, free javacript menu"&gt;this link&lt;/a&gt;. For Linux/mac download from &lt;a href="http://www.opencube.com/download/quickmenu7.zip" title="javascript menu linux, javascript menu mac"&gt;here&lt;/a&gt;. Use it and enjoy it :).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-5169232685174608931?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/5169232685174608931/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=5169232685174608931&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/5169232685174608931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/5169232685174608931'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/04/simple-javascript-menu-opencube.html' title='Simple Javascript menu :OpenCube'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-2958062949106322005</id><published>2009-04-05T15:39:00.008+06:00</published><updated>2009-05-27T17:09:34.309+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tab menu'/><category scheme='http://www.blogger.com/atom/ns#' term='Ajax'/><title type='text'>Simple Ajax Tab Menu</title><content type='html'>Ajax tab menu is very useful to show contents without reloading the full page. Last week i create a Ajax based tab menu. Basically i modified my menu by getting help from &lt;a href="http://crackajax.net/tabs.php" title="php ajax tab menu"&gt;this link&lt;/a&gt;. Here i'll show the steps that i do to create this menu functional.&lt;br /&gt;&lt;br /&gt;1. create a simple html file (index.html). Between &lt;span style="font-weight: bold;"&gt;body&lt;/span&gt; tag put these&lt;br /&gt;&lt;pre name="code" class="php"&gt;&lt;br /&gt;&amp;lt;ul id="tabmenu"&amp;gt;&lt;br /&gt;&amp;lt;li onclick="makeactive(1)"&gt;&amp;lt;a class="" id="tab1"&gt;First Tab&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;&amp;lt;li onclick="makeactive(2)"&gt;&amp;lt;a class="" id="tab2"&gt;Second Tab&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;&amp;lt;li onclick="makeactive(3)"&gt;&amp;lt;a class="" id="tab3"&gt;Third Tab&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;&amp;lt;div id="content"&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Between &lt;span style="font-weight: bold;"&gt;head&lt;/span&gt; tag put these lines&lt;br /&gt;&lt;pre name="code" class="javascript"&gt;&lt;br /&gt;&amp;lt;script language="JavaScript" type="text/javascript" src="ajax.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;script language="JavaScript" type="text/javascript"&amp;gt;&lt;br /&gt;function makeactive(tab)&lt;br /&gt;{&lt;br /&gt; document.getElementById("tab1").className = "";&lt;br /&gt; document.getElementById("tab2").className = "";&lt;br /&gt; document.getElementById("tab3").className = "";&lt;br /&gt; document.getElementById("tab"+tab).className = "active";&lt;br /&gt; callAjax('content.php?content= '+tab, 'content', 'getting content for tab '+tab+'. Wait...', 'Error');&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;2. Now create the &lt;span style="font-style: italic;"&gt;ajax.js&lt;/span&gt; that we add in our &lt;span style="font-weight: bold;"&gt;head&lt;/span&gt; section. These are the content of &lt;span style="font-style: italic;"&gt;ajax.js&lt;/span&gt;&lt;br /&gt;&lt;pre name="code" class="php"&gt;&lt;br /&gt;function callAjax(url, pageElement, callMessage, errorMessage) {&lt;br /&gt;    document.getElementById(pageElement).innerHTML = callMessage;&lt;br /&gt;    try {&lt;br /&gt;    req = new XMLHttpRequest(); /* e.g. Firefox */&lt;br /&gt;    } catch(e) {&lt;br /&gt;      try {&lt;br /&gt;      req = new ActiveXObject("Msxml2.XMLHTTP");  /* some versions IE */&lt;br /&gt;      } catch (e) {&lt;br /&gt;        try {&lt;br /&gt;        req = new ActiveXObject("Microsoft.XMLHTTP");  /* some versions IE */&lt;br /&gt;        } catch (E) {&lt;br /&gt;         req = false;&lt;br /&gt;        }&lt;br /&gt;      }&lt;br /&gt;    }&lt;br /&gt;    req.onreadystatechange = function() {responseAjax(pageElement, errorMessage);};&lt;br /&gt;    req.open("GET",url,true);&lt;br /&gt;    req.send(null);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;function responseAjax(pageElement, errorMessage) {&lt;br /&gt;  var output = '';&lt;br /&gt;  if(req.readyState == 4) {&lt;br /&gt;     if(req.status == 200) {&lt;br /&gt;        output = req.responseText;&lt;br /&gt;        document.getElementById(pageElement).innerHTML = output;&lt;br /&gt;        } else {&lt;br /&gt;        document.getElementById(pageElement).innerHTML = errorMessage+"\n"+output;&lt;br /&gt;        }&lt;br /&gt;     }&lt;br /&gt; }&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;3. Now we need another &lt;span style="font-style: italic;"&gt;php&lt;/span&gt; file where output will be processed. Nmae it "content.php" and put these lines in it&lt;br /&gt;&lt;pre name="code" class="php"&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;if ($_GET['content'] == 1)&lt;br /&gt;{&lt;br /&gt; echo 'Content for Page 1';&lt;br /&gt;}&lt;br /&gt;if ($_GET['content'] == 2)&lt;br /&gt;{&lt;br /&gt; echo 'Content for Page 2';&lt;br /&gt;}&lt;br /&gt;if ($_GET['content'] == 3)&lt;br /&gt;{&lt;br /&gt; echo 'Content For Page 3';&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Thats all. Now run the index file and see the tab menu in action. &lt;br /&gt;To get First Tab selected when the page loaded just add this( onload="makeactive(1)") to &lt;span style="font-weight:bold;"&gt;body&lt;/span&gt; tag. So in &lt;span style="font-style:italic;"&gt;index.html&lt;/span&gt; &lt;span style="font-weight:bold;"&gt;body&lt;/span&gt; tag will look as like as that : &amp;lt;body onload="makeactive(1)"&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-2958062949106322005?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/2958062949106322005/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=2958062949106322005&amp;isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/2958062949106322005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/2958062949106322005'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/04/simple-ajax-tab-menu.html' title='Simple Ajax Tab Menu'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-362024151439973258</id><published>2009-03-28T06:53:00.002+06:00</published><updated>2009-03-28T07:06:54.025+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='converter'/><category scheme='http://www.blogger.com/atom/ns#' term='mp3'/><category scheme='http://www.blogger.com/atom/ns#' term='flv'/><title type='text'>Free online .flv to .mp3 converter</title><content type='html'>Somwtimes we need to download video from popular video sharing site like Youtube, MySpace, Metacafe, iFilm, Google Video or flash video embedded on web page and then transform it into .mp3 to hear that on our mp3 player. I found &lt;a title="online flv converter" href="http://www.flv2mp3.com/"&gt;this site&lt;/a&gt; on net which is very helpful and handy to convert the .flv extended video file to .mp3 file and download instantly. We just need to copy the URL of the file that we need to convert to .mp3 and paste it into the site and press &lt;span style="font-weight: bold; font-style: italic;"&gt;convert ... &lt;/span&gt;thats all.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-362024151439973258?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/362024151439973258/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=362024151439973258&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/362024151439973258'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/362024151439973258'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/03/free-online-flv-to-mp3-converter.html' title='Free online .flv to .mp3 converter'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-388334059929678197</id><published>2009-03-10T18:09:00.005+06:00</published><updated>2009-03-10T20:56:33.282+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='addthis'/><title type='text'>Spread your site content : Addthis</title><content type='html'>Social networking site become an integral part to spread our website contents. This can help us to increase traffic to our site. Now a days we see something like this &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_boja1fXZ5zY/SbZ_XCk8BsI/AAAAAAAACTc/AUgFaf-rAHs/s1600-h/lg-share-en.gif"&gt;&lt;img style="cursor: pointer; width: 125px; height: 16px;" src="http://1.bp.blogspot.com/_boja1fXZ5zY/SbZ_XCk8BsI/AAAAAAAACTc/AUgFaf-rAHs/s320/lg-share-en.gif" alt="" id="BLOGGER_PHOTO_ID_5311572844335597250" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;almost in every sites' content. This is one of the way to open the door to the network to spread our content.&lt;br /&gt;&lt;a href="http://addthis.com/"&gt;Addthis&lt;/a&gt; offers us this service. Its very simple to use this tools. We can get the code from site and use the code in our site.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-388334059929678197?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/388334059929678197/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=388334059929678197&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/388334059929678197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/388334059929678197'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/03/spread-your-site-content-addthis.html' title='Spread your site content : Addthis'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_boja1fXZ5zY/SbZ_XCk8BsI/AAAAAAAACTc/AUgFaf-rAHs/s72-c/lg-share-en.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-7644258533597346305</id><published>2009-03-09T10:28:00.003+06:00</published><updated>2009-03-09T10:52:57.599+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Skype Ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='Skype'/><title type='text'>Skype installation in Ubuntu</title><content type='html'>&lt;a href="http://www.skype.com" title="skype"&gt;Skype&lt;/a&gt; is not available in any Ubuntu software repository. So it can't be directly installed using Synaptic or apt-get. To install it using Synaptic or apt-get we have to add Medibuntu repository. But I'm too lazy to install it in this way. I rather download Skype from &lt;a href="http://www.skype.com/go/getskype-linux-ubuntu" title="skype, skype ubuntu, skype linux"&gt;Skype download page&lt;/a&gt;. Skppe can also be downloaded for &lt;a href="http://www.skype.com/go/getskype-linux-ubuntu-amd64" title="skype ubuntu 64 bit"&gt;Ubuntu 64 bit&lt;/a&gt;. Then install it by double-clicking the deb file and clicking "Install package".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-7644258533597346305?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/7644258533597346305/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=7644258533597346305&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/7644258533597346305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/7644258533597346305'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/03/skype-installation-in-ubuntu.html' title='Skype installation in Ubuntu'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-9186476141872133403</id><published>2009-03-08T17:31:00.003+06:00</published><updated>2009-03-08T17:56:31.849+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox add-ons'/><category scheme='http://www.blogger.com/atom/ns#' term='review'/><title type='text'>Some useful firefox plugins</title><content type='html'>Firefox offers huge list of plugins/addons that let us to personalize our browser. I list some of them as very useful. Those are:&lt;br /&gt;1)&lt;span style="font-weight: bold;"&gt; Firebug&lt;/span&gt;: &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/1843"&gt;Firebug&lt;/a&gt; is used to edit, debug, and monitor CSS, HTML, and JavaScript live in any web page.&lt;br /&gt;2)&lt;span style="font-weight: bold;"&gt; MeasureIt&lt;/span&gt;: &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/539"&gt;MeasureIt&lt;/a&gt; allows us to draw out a ruler to get the pixel width and height of any elements in a web page.&lt;br /&gt;3)&lt;span style="font-weight: bold;"&gt; lori (Life-of-request info)&lt;/span&gt;: &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/1743"&gt;lori&lt;/a&gt; tells us how long it takes to load a webpage.&lt;br /&gt;4)&lt;span style="font-weight: bold;"&gt; IE View Lite&lt;/span&gt;: We use &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/1429"&gt;IE View Lite&lt;/a&gt; see how a site is rendered in IE.&lt;br /&gt;5)&lt;span style="font-weight: bold;"&gt; Delicious Bookmarks&lt;/span&gt;: &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/3615"&gt;Its&lt;/a&gt; the official firefox add-on for Delicious.&lt;br /&gt;6)&lt;span style="font-weight: bold;"&gt; Add to Search Bar&lt;/span&gt;:&lt;a href="https://addons.mozilla.org/en-US/firefox/addon/3682"&gt; Add to Search Bar&lt;/a&gt; integrates any pages' search functionality available in the Search Bar of firefox browser.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-9186476141872133403?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/9186476141872133403/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=9186476141872133403&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/9186476141872133403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/9186476141872133403'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/03/some-useful-firefox-plugins.html' title='Some useful firefox plugins'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-3680748069774211179</id><published>2009-03-08T14:48:00.004+06:00</published><updated>2009-03-08T15:58:13.595+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Goolge'/><category scheme='http://www.blogger.com/atom/ns#' term='Google Apps'/><title type='text'>Use Google Apps for site's mail box</title><content type='html'>&lt;a href="http://www.google.com/apps" title="google apps, email"&gt;Google Apps&lt;/a&gt; is another superb service from &lt;a href="http://www.google.com" title="google, search engine"&gt;Google&lt;/a&gt;. Google apps is basically a collection of several application and web storage. It includes: Gmail, Google Talk, and Google Calendar, Google Docs (text files, spreadsheets, and presentations), iGoogle, and Google Sites. So we can easily setup our mail box for our site and use this to send and receive mail using Google service. Suppose we have a domain "www.my_domain.com". Using google apps we can easily get mail account like "admin@my_domain.com, my_name@my_domain.com, whatever@my_domain.com" etc etc. Besides that mail holders can easily communicate among them using google talk, share their doc using google docs. Its very easy to setup the hole process and start the journey :) . Interesting thing is Google Apps has a free version i.e &lt;a href="http://www.google.com/apps/intl/en/group/index.html" title="google apps standard version, google apps standard edition"&gt;Standard Version&lt;/a&gt;, it supports 50 email address per domain. But the thing is to integrate this to our site, we must have full control of our site i.e we must have the administrative access to our site and domain control panel.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-3680748069774211179?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/3680748069774211179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=3680748069774211179&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/3680748069774211179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/3680748069774211179'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/03/use-google-apps-for-sites-mail-box.html' title='Use Google Apps for site&apos;s mail box'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-2597644629460187075</id><published>2009-03-02T12:32:00.006+06:00</published><updated>2009-03-02T12:58:23.284+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dictionary'/><category scheme='http://www.blogger.com/atom/ns#' term='Popular websites'/><title type='text'>Popular websites enrich English Dictionary !!!</title><content type='html'>Net surfing is very popular throughout the world. Now-a-days the interesting thing is popular wesbsites enriches the dictionary. Quite interesting. I'm &lt;span style="font-weight: bold; font-style: italic;"&gt;googling&lt;/span&gt; it. What does it mean? It certainly means that I'm searching it in &lt;span style="font-weight: bold; font-style: italic;"&gt;google&lt;/span&gt;(&lt;a href="http://www.google.com/" title="google, search engine"&gt;www.google.com&lt;/a&gt;). So &lt;span style="font-weight: bold; font-style: italic;"&gt;googling&lt;/span&gt; is a new word ;) . Similarly the most popular social networking site &lt;a href="http://www.facebook.com/" title="facebook, social community site"&gt;Facebook&lt;/a&gt; also enrich the dictionary. I've &lt;span style="font-weight: bold; font-style: italic;"&gt;facebooked&lt;/span&gt; all of my photos. Here &lt;span style="font-weight: bold; font-style: italic;"&gt;facebooked&lt;/span&gt; stands for uploaded the photos to my facebook page. Again, I &lt;span style="font-weight: bold; font-style: italic;"&gt;facebooked&lt;/span&gt; u. here &lt;span style="font-weight: bold; font-style: italic;"&gt;facebooked&lt;/span&gt; stands for added u to my facebook page. So, &lt;span style="font-weight: bold;"&gt;facebook&lt;/span&gt; is a versatile word. Isn't it?&lt;br /&gt;Similarly, if u &lt;a href="http://www.myspace.com" title="myspace, social community site"&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;myspacing&lt;/span&gt;&lt;/a&gt; u may waste ur time :D. Have fun in &lt;a href="http://www.twitter.com"&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;twittering&lt;/span&gt;&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-2597644629460187075?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/2597644629460187075/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=2597644629460187075&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/2597644629460187075'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/2597644629460187075'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/03/popular-websites-enrich-english.html' title='Popular websites enrich English Dictionary !!!'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-5047353769680509311</id><published>2009-02-24T17:32:00.002+06:00</published><updated>2009-02-24T17:35:58.539+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Codeigniter'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Codeigniter help site</title><content type='html'>&lt;a href="http://www.phpeveryday.com/articles/CodeIgniter-Introduction-to-CodeIgniter-Framework-P146.html" target="_blank"&gt;http://www.phpeveryday.com/articles/CodeIgniter-Introduction-to-CodeIgniter-Framework-P146.html&lt;/a&gt; &lt;a href="http://www.developertutorials.com/tutorials/php/rapid-application-development-with-codeigniter-8-02-17/page4.html" target="_blank"&gt;http://www.developertutorials.com/tutorials/php/rapid-application-development-with-codeigniter-8-02-17/page4.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://opinionatedcoder.wordpress.com/2008/05/19/codeigniter-tutorial-part-2-htaccess/" target="_blank"&gt;http://opinionatedcoder.wordpress.com/2008/05/19/codeigniter-tutorial-part-2-htaccess/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://godbit.com/article/introduction-to-code-igniter" target="_blank"&gt;http://godbit.com/article/introduction-to-code-igniter&lt;/a&gt;&lt;br /&gt;&lt;a href="http://godbit.com/article/introduction-to-code-igniter-part-2" target="_blank"&gt;http://godbit.com/article/introduction-to-code-igniter-part-2&lt;/a&gt;&lt;br /&gt;&lt;a href="http://godbit.com/article/introduction-to-code-igniter-part-3" target="_blank"&gt;http://godbit.com/article/introduction-to-code-igniter-part-3&lt;/a&gt;&lt;br /&gt;&lt;a href="http://afruj.wordpress.com/2008/05/02/some-codeigniter-tutorial-links/" target="_blank"&gt;http://afruj.wordpress.com/2008/05/02/some-codeigniter-tutorial-links/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.tomcode.com/inside/codeigniter/userauth/test/" target="_blank"&gt;http://www.tomcode.com/inside/codeigniter/userauth/test/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://michaelwales.com/tutorials/codeigniter-ajax-with-jquery/" target="_blank"&gt;CodeIgniter AJAX With jQuery&lt;/a&gt;&lt;br /&gt;&lt;a href="http://michaelwales.com/tutorials/codeigniter-ajax-with-jquery/2" target="_blank"&gt;CodeIgniter AJAX With jQuery-2&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.codeigniterdirectory.com/" target="_blank"&gt;http://www.codeigniterdirectory.com/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://remysharp.com/2008/03/25/codeigniter/" target="_blank"&gt;http://remysharp.com/2008/03/25/codeigniter/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.alexajax.com/" target="_blank"&gt;http://www.alexajax.com&lt;/a&gt;&lt;br /&gt;&lt;a href="http://codeigniter.com/forums/viewthread/73012/" target="_blank"&gt;CI and set_checkbox()&lt;/a&gt;&lt;br /&gt;&lt;a href="http://codeigniter.com/forums/viewthread/69949/" target="_blank"&gt;CI and set_checkbox()&lt;/a&gt;&lt;br /&gt;&lt;a href="http://codeextinguisher.com/index.php/documentation" target="_blank"&gt;http://codeextinguisher.com/index.php/documentation&lt;/a&gt;&lt;br /&gt;&lt;a href="http://michaelwales.com/tutorials/codeigniter-ajax-with-jquery/" target="_blank"&gt;http://michaelwales.com/tutorials/codeigniter-ajax-with-jquery/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;a href="http://michaelwales.com/tutorials/codeigniter-ajax-with-jquery/" target="_blank"&gt;&lt;/a&gt;Codeigniter and Jquery&lt;/strong&gt;&lt;br /&gt;&lt;a href="http://www.mrforbes.com/wordpress/2007/05/13/a-quick-code-igniter-and-jquery-ajax-tutorial/" target="_blank"&gt;http://www.mrforbes.com/wordpress/2007/05/13/a-quick-code-igniter-and-jquery-ajax-tutorial/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://littlebrain.org/2008/05/27/codeigniter-and-ajax-using-jquery-tutorial/" target="_blank"&gt;http://littlebrain.org/2008/05/27/codeigniter-and-ajax-using-jquery-tutorial/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.alexajax.com/feedback" target="_blank"&gt;http://www.alexajax.com/feedback&lt;/a&gt;&lt;br /&gt;&lt;a href="http://codeigniter.com/wiki/AJAX_for_CodeIgniter/" target="_blank"&gt;http://codeigniter.com/wiki/AJAX_for_CodeIgniter/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://blog.heuristicdesign.co.uk/archives/2008/02/01/code-igniter-authentication-with-erkana-auth/" target="_blank"&gt;http://blog.heuristicdesign.co.uk/archives/2008/02/01/code-igniter-authentication-with-erkana-auth/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://codeigniter.com/wiki/Special:Categories" target="_blank"&gt;http://codeigniter.com/wiki/Special:Categories&lt;/a&gt;&lt;br /&gt;&lt;a href="http://codeigniter.com/wiki/FreakAuth/" target="_blank"&gt;http://codeigniter.com/wiki/FreakAuth/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://afruj.wordpress.com/2008/07/15/more-information-on-codeigniter/" target="_blank"&gt;http://afruj.wordpress.com/2008/07/15/more-information-on-codeigniter/&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;CI templating&lt;/strong&gt;&lt;br /&gt;&lt;a href="http://maestric.com/en/doc/php/codeigniter_template" target="_blank"&gt;http://maestric.com/en/doc/php/codeigniter_template&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-5047353769680509311?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/5047353769680509311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=5047353769680509311&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/5047353769680509311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/5047353769680509311'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/02/codeigniter-help-site.html' title='Codeigniter help site'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-7848828441492617502</id><published>2009-02-24T15:19:00.006+06:00</published><updated>2009-05-28T10:32:06.148+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Php Photo Gallery'/><title type='text'>Free Php Photo Gallery: SelectaPix Image Gallery</title><content type='html'>Last week i googling for a Php photo gallery and found many. I try some of them and at last use &lt;a title="php mysql image gallery, php mysql photo gallery, selectapix image gallery, web gallery, slideshow, php slideshow" style="font-weight: bold;" href="http://www.outofthetrees.co.uk/selectapix/index.php"&gt;SelectaPix Image Gallery&lt;/a&gt;. It seems very handy and useful to me as it is database supported. Though the &lt;span style="font-weight: bold;"&gt;instructions&lt;/span&gt; are very easy to implement, i found some error when i run the Gallery. It may be for that the &lt;span style="font-style: italic; font-weight: bold;"&gt;config&lt;/span&gt; file is not included everywhere correctly. Then i add this line &lt;pre name="code" class="php"&gt;include('includes/config.php');&lt;/pre&gt; to Two files (&lt;span style="font-weight: bold; font-style: italic;"&gt;classes/top_cat.php&lt;/span&gt; and &lt;span style="font-weight: bold; font-style: italic;"&gt;classes/sub_cat.php&lt;/span&gt;).&lt;br /&gt;I add &lt;a title="lightbox, lightbox javascript" href="http://www.huddletogether.com/projects/lightbox2/"&gt;lightbox Javascript&lt;/a&gt; to modify the full image view. Lightbox is a simple, unobtrusive script used to overlay images on the current page. According to the instruction of lightbox Javascript keep the folders in appropriate place and then modify &lt;span style="font-weight: bold; font-style: italic;"&gt;classes/sub_cat.php &lt;/span&gt;&lt;span&gt;file &lt;/span&gt;to bring lightbox in action :D&lt;br /&gt;&lt;br /&gt;&lt;a title="totalheightsafety" href="http://totalheightsafety.co.nz/photogallery"&gt;SelectaPix Image Gallery with lightbox&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-7848828441492617502?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/7848828441492617502/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=7848828441492617502&amp;isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/7848828441492617502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/7848828441492617502'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/02/free-php-photo-gallery-selectapix-image.html' title='Free Php Photo Gallery: SelectaPix Image Gallery'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-8591480611877590327</id><published>2009-02-22T11:23:00.005+06:00</published><updated>2009-05-28T10:30:51.971+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='backgroundrb'/><category scheme='http://www.blogger.com/atom/ns#' term='Job scheduler in RoR'/><category scheme='http://www.blogger.com/atom/ns#' term='cron job RoR'/><title type='text'>Job scheduler in RoR</title><content type='html'>&lt;a href="http://backgroundrb.rubyforge.org/" titlt="BackgroundRb"&gt;BackgroundRb&lt;/a&gt; is a Ruby job server and scheduler. In this post i'll create a simple RoR project in which using &lt;strong&gt;backgrounDRb&lt;/strong&gt; we will fetch data from database and logged them in the log file.&lt;br /&gt;&lt;br /&gt;1)&lt;strong&gt; pre-requisites:&lt;/strong&gt; two gem =&amp;gt; &lt;strong&gt;chronic&lt;/strong&gt;, &lt;strong&gt;packet&lt;/strong&gt; [in my case the current version of packet doesn't work, so i download the &lt;strong&gt;packet&lt;/strong&gt; version: 0.1.5 from rubyforge and then manually install it]&lt;br /&gt;(*) install &lt;strong&gt;chronic&lt;/strong&gt; :&lt;br /&gt;~# &lt;em&gt;sudo gem install chronic&lt;/em&gt;&lt;br /&gt;(*) install &lt;strong&gt;packet&lt;/strong&gt; :&lt;br /&gt;~# &lt;em&gt;sudo gem install /path/to/your/directory/packet-0.1.5.gem&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;/em&gt;2) download &lt;strong&gt;backgrounDRb&lt;/strong&gt; from &lt;a href="http://github.com/gnufied/backgroundrb/tree/master" target="_blank"&gt;http://github.com/gnufied/backgroundrb/tree/master&lt;/a&gt; and extract the .tar/.zip file and rename the folder &lt;span style="text-decoration: underline;"&gt;backgroundrb&lt;/span&gt;. Store this folder in &lt;span style="text-decoration: underline;"&gt;projects_name/vendor/plugins&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3) now setup &lt;strong&gt;backgrounDRb&lt;br /&gt;&lt;/strong&gt;~#&lt;em&gt; rake backgroundrb:setup&lt;/em&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;4) now create your own worker class&lt;br /&gt;~# &lt;em&gt;./script&lt;/em&gt;&lt;strong&gt;/&lt;/strong&gt;&lt;em&gt;generate worker fetcher&lt;/em&gt;&lt;br /&gt;---- here &lt;strong&gt;fetcher&lt;/strong&gt; is the worker name, this command will create &lt;strong&gt;fetcher_worker.rb &lt;/strong&gt;file in /libs/worker folder. my &lt;strong&gt;fetcher_worker.rb&lt;/strong&gt; is as follows:&lt;br /&gt;----------------------------------------------------------------------------------------------&lt;br /&gt;&lt;pre name="code" class="ror"&gt;class FetcherWorker &amp;lt; BackgrounDRb::MetaWorker&lt;br /&gt;set_worker_name :fetcher_worker&lt;br /&gt;&lt;br /&gt;def create(args = nil)&lt;br /&gt;#this method is called, when worker is loaded for the first time&lt;br /&gt;   logger.info "Created feeds worker"&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;def update()&lt;br /&gt;   logger.info "Hello UPDATE"&lt;br /&gt;   @posts = Post.find(:all)&lt;br /&gt;&lt;br /&gt;   for post in @posts&lt;br /&gt;      logger.info post.name&lt;br /&gt;   end&lt;br /&gt;end&lt;br /&gt;end&lt;/pre&gt;&lt;br /&gt;---------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-8591480611877590327?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/8591480611877590327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=8591480611877590327&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/8591480611877590327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/8591480611877590327'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/02/job-scheduler-in-ror.html' title='Job scheduler in RoR'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-6393156405322226629</id><published>2009-02-15T16:12:00.004+06:00</published><updated>2009-05-28T10:23:48.822+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='live validation'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><title type='text'>Implementing live validation in Ruby on Rails</title><content type='html'>&lt;a href="http://www.livevalidation.com/"&gt;LiveValidation&lt;/a&gt; is a small open source javascript library for making client-side validation quick, easy, and powerful. livevalidation plugin is used to integrate Javascript library LiveValidation to the Rails application. LiveValidation implements client-side form validation. To see livevalidation in action ( !!! ) we have to install it in our rails project. Then use Rails validation helpers to validate our models and use Rails form helpers to create our forms.&lt;br /&gt;&lt;br /&gt;here is the example steps how i make it live in my project. [i use Netbeans 6.0 to build my app]&lt;br /&gt;&lt;br /&gt;1. create a new project&lt;br /&gt;2. run &lt;span style="font-weight: bold;"&gt;Rake Task&lt;/span&gt; to create the db&lt;br /&gt;3. generate scaffold with this parameter in the [Model Name:] text field&lt;blockquote&gt;Blog title:string body:text&lt;/blockquote&gt;4. now, download &lt;a href="http://github.com/leethal/live-validations/tree/master"&gt;livevalidation plugin&lt;/a&gt; from github&lt;br /&gt;5. unzip the downloaded zip folder and rename the folder 'livevalidation'&lt;br /&gt;6. store 'livevalidation' folder in the "\vendor\plugins\" folder. &lt;span style="font-size:85%;"&gt;[i.e. \vendor\plugins\livevalidation]&lt;/span&gt;&lt;br /&gt;7. now install Javascript and CSS with this Rake task&lt;blockquote&gt;$ rake livevalidation:install&lt;/blockquote&gt;&lt;br /&gt;8. add these lines in /views/layout/blogs.html.erb&lt;pre name="code" class="js"&gt;&lt;%= javascript_include_tag :defaults, 'live_validation' %&gt;&lt;br /&gt;&lt;%= stylesheet_link_tag 'live_validation' %&gt;&lt;/pre&gt;9. now add validations to the model&lt;pre name="code" class="ror"&gt;validates_presence_of :title&lt;/pre&gt;10. now start the server and go to &lt;span style="font-style: italic;"&gt;http://localhost:3000/blogs/new&lt;/span&gt;&lt;br /&gt;11. when you leave &lt;span style="font-style: italic; font-weight: bold;"&gt;title&lt;/span&gt; textfield without entering any value, you will get an error in RED and when you type something in that field you will get a thnx :) . so its working&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-6393156405322226629?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/6393156405322226629/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=6393156405322226629&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/6393156405322226629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/6393156405322226629'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/02/live-validation-for-ruby-on-rails.html' title='Implementing live validation in Ruby on Rails'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-8873432470755811133</id><published>2009-02-13T20:23:00.003+06:00</published><updated>2009-02-13T20:56:53.735+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails bangladesh'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails Ubuntu'/><title type='text'>Ruby on Rails installation in Ubuntu</title><content type='html'>i'm using Ubuntu 8.10. here is the steps how i install RoR in ubuntu. i get this instruction from &lt;a href="https://help.ubuntu.com/community/RubyOnRails"&gt;Ubuntu Community documentation&lt;/a&gt;. I just mention here the steps that i do to install RoR.&lt;br /&gt;&lt;br /&gt;1. at first open the terminal and to get Ruby run this command&lt;blockquote&gt;sudo apt-get install ruby-full build-essential&lt;/blockquote&gt;this command also install a web server named '&lt;span style="font-style: italic;"&gt;WEBrick&lt;/span&gt;'&lt;br /&gt;&lt;br /&gt;2. Now to download and install &lt;span style="font-weight: bold;"&gt;ruby gems&lt;/span&gt; we to run the following command one after another&lt;br /&gt;&lt;blockquote&gt;wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz&lt;br /&gt;tar xzvf rubygems-1.3.1.tgz&lt;br /&gt;cd rubygems-1.3.1&lt;br /&gt;sudo ruby setup.rb&lt;br /&gt;sudo ln -s /usr/bin/gem1.8 /usr/bin/gem&lt;br /&gt;sudo gem update --system&lt;br /&gt;&lt;/blockquote&gt;this will install Rubygems 1.3.1&lt;br /&gt;&lt;br /&gt;3. then we install RAILS as gem&lt;blockquote&gt;sudo gem install rails&lt;/blockquote&gt;4. so, RoR is installed in Ubuntu.&lt;br /&gt;&lt;br /&gt;5. now we will install MySQL database and it's connector&lt;br /&gt;&lt;blockquote&gt;sudo apt-get install mysql-server mysql-client&lt;br /&gt;sudo apt-get install libmysql-ruby libmysqlclient-dev&lt;br /&gt;sudo gem install mysql&lt;/blockquote&gt;6. now to create a new &lt;span style="font-style: italic;"&gt;rails&lt;/span&gt; application run this command&lt;blockquote&gt;rails /home/www/test_app -d mysql&lt;/blockquote&gt; this will create a new applicaton named '&lt;span style="font-style: italic;"&gt;test_app&lt;/span&gt;' in '&lt;span style="font-style: italic;"&gt;/home/www&lt;/span&gt;' directory&lt;br /&gt;&lt;br /&gt;7. now to run the application do the following&lt;br /&gt;&lt;blockquote&gt;$cd /home/www/test_app&lt;br /&gt;$ruby script/server&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;then go to open the browser and go to '&lt;span style="font-style: italic;"&gt;http://0.0.0.0:3000&lt;/span&gt;'. new application will respond&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-8873432470755811133?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/8873432470755811133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=8873432470755811133&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/8873432470755811133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/8873432470755811133'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/02/ruby-on-rails-installation-in-ubuntu.html' title='Ruby on Rails installation in Ubuntu'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-8425265690916595189</id><published>2009-02-12T11:24:00.008+06:00</published><updated>2009-05-28T10:20:45.400+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails bangladesh'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails auto complete'/><title type='text'>AutoCompleter example in Ruby on rails</title><content type='html'>in Ruby on Rails adding auto complete textbox is pretty simple. here is a simple example of it ...&lt;br /&gt;in this example there will be 2 tables in DB. &lt;span style="font-style: italic; font-weight: bold;"&gt;Customers&lt;/span&gt; table &amp;amp; &lt;span style="font-style: italic; font-weight: bold;"&gt;Messages&lt;/span&gt; table. In the &lt;span style="font-weight: bold; font-style: italic;"&gt;Customers&lt;/span&gt; table customer name and address  will be saved. In the &lt;span style="font-style: italic; font-weight: bold;"&gt;Messages&lt;/span&gt; table &lt;span style="font-style: italic;"&gt;customer name&lt;/span&gt; and &lt;span style="font-style: italic;"&gt;message&lt;/span&gt; to that customer will be saved. In the  message form if we start typing the &lt;span style="font-style: italic;"&gt;customer name&lt;span style="font-weight: bold;"&gt;, &lt;/span&gt;&lt;/span&gt;the name of the customers will be shown and we can select a particular &lt;span style="font-style: italic;"&gt;customer name&lt;/span&gt;. that all. so lets start ...&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here i use Netbeans 6.0 as IDE&lt;br /&gt;&lt;br /&gt;1. first create a new rails project.&lt;br /&gt;2. run &lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;R&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;ake&lt;/span&gt; &lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;T&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;ask&lt;/span&gt; to create the db&lt;br /&gt;3. generate &lt;span style="font-style: italic; font-weight: bold;"&gt;scaffold&lt;/span&gt; with this parameter in the [&lt;span style="font-weight: bold;"&gt;Model Name:&lt;/span&gt;] text field&lt;blockquote&gt;Customer name:string address:text&lt;/blockquote&gt;4. run &lt;span style="font-weight: bold; font-style: italic;"&gt;Migrate Database&lt;/span&gt; to create the &lt;span style="font-style: italic;"&gt;customers&lt;/span&gt; table&lt;br /&gt;5. now run this project&lt;br /&gt;6. in the browser go to &lt;span style="font-style: italic;"&gt;http://localhost:3000/customers&lt;/span&gt; and add some customers name and address&lt;br /&gt;7. now generate another &lt;span style="font-style: italic; font-weight: bold;"&gt;scaffold&lt;/span&gt; with this parameter in the [&lt;span style="font-weight: bold;"&gt;Model Name:&lt;/span&gt;] text field&lt;br /&gt;&lt;blockquote&gt;Message to:string body:text&lt;/blockquote&gt;8. run &lt;span style="font-weight: bold; font-style: italic;"&gt;Migrate Database&lt;/span&gt; to create the &lt;span style="font-style: italic;"&gt;messages&lt;/span&gt; table&lt;br /&gt;9. now the plugin &lt;span style="font-weight: bold;"&gt;Auto_complete&lt;/span&gt; have to be downloaded&lt;br /&gt;10. download &lt;a href="http://github.com/rails/auto_complete/tree/master"&gt;auto_complete plugins&lt;/a&gt; from github&lt;br /&gt;11. unzip the downloaded zip folder and rename the folder 'auto_complete'&lt;br /&gt;11. store 'auto_complete' folder in the "\vendor\plugins\" folder.  [i.e. &lt;span style="font-size:78%;"&gt;\vendor\plugins\auto_complete&lt;/span&gt;]&lt;br /&gt;12. now, open the file '&lt;span style="font-weight: bold;"&gt;messages.html.erb&lt;/span&gt;' from &lt;span style="font-weight: bold;"&gt;\app\views\layouts&lt;/span&gt; and add the following line before &lt;span style="font-weight: bold;"&gt;&lt;/span&gt; tag&lt;br /&gt;&lt;pre name="code" class="js"&gt;&lt;%= javascript_include_tag :defaults %&gt;&lt;/pre&gt;13. &lt;span style="font-family:monospace;"&gt;&lt;/span&gt;now, open the file '&lt;span style="font-weight: bold;"&gt;new.html.erb&lt;/span&gt;' from &lt;span style="font-weight: bold;"&gt;app\views\messages&lt;/span&gt; and change this line&lt;pre name="code" class="ror"&gt;&lt;%= f.text_field :to %&gt;&lt;/pre&gt; to&lt;pre name="code" class="ror"&gt;&lt;%= text_field_with_auto_complete 'message', 'to',{}, :skip_style =&gt; false  %&gt;&lt;/pre&gt;14. open MessageController and add this line &lt;pre name="code" class="ror"&gt;skip_before_filter :verify_authenticity_token, :only =&gt; [:auto_complete_for_message_to]&lt;/pre&gt; after this &lt;pre name="code" class="ror"&gt;class MessagesController &amp;lt; ApplicationController&lt;/pre&gt;&lt;br /&gt;15. add this new function in this controller: &lt;pre name="code" class="ror"&gt;def auto_complete_for_message_to()&lt;br /&gt;user_name = params[:message][:to]&lt;br /&gt;@customers = Customer.find(:all , :conditions=&gt;"name like              '%"+user_name.downcase+"%'")&lt;br /&gt;render :partial =&gt; 'username'&lt;br /&gt;end&lt;/pre&gt;&lt;br /&gt;16. now create a new partial file in &lt;span style="font-weight: bold;"&gt;app\views\messages &lt;/span&gt; and name it &lt;span style="font-style: italic;"&gt;_username.html.erb&lt;/span&gt;&lt;br /&gt;17. paste this code in this partial file&lt;pre name="code" class="ror"&gt;&amp;lt;ul class="allusers"&amp;gt;&amp;lt;% for customer in @customers do %&amp;gt;&amp;lt;li class="thisuser"&amp;gt;&amp;lt;div class="useremail"&amp;gt;&amp;lt;%=h customer.name %&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div class="username"&amp;gt;&amp;lt;span class="informal"&amp;gt;&amp;lt;%=h customer.address %&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;% end %&amp;gt;&amp;lt;/ul&amp;gt;&lt;/pre&gt;&lt;br /&gt;18. now restart server and in the browser go to &lt;span style="font-style: italic;"&gt;http://localhost:3000/messages&lt;/span&gt;&lt;span&gt; and &lt;/span&gt;now in the &lt;span style="font-weight: bold;"&gt;to&lt;/span&gt; field start typing u'll see some name coming from DB.&lt;br /&gt;19. so its woking !!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-8425265690916595189?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/8425265690916595189/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=8425265690916595189&amp;isPopup=true' title='15 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/8425265690916595189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/8425265690916595189'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/02/autocompleter-example-in-ruby-on-rails.html' title='AutoCompleter example in Ruby on rails'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>15</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-6943308157253618616</id><published>2009-02-11T17:18:00.002+06:00</published><updated>2009-02-11T17:27:51.512+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='font install in Ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu font'/><title type='text'>New font install in Ubuntu</title><content type='html'>we sometimes need to install new font in Ubuntu. To do so first download the desired truetype font(.ttf) and save it in ur harddisk. Then copy the .ttf file to &lt;span style="font-style: italic;"&gt;truetype&lt;/span&gt; folder of the Ubuntu by running this command in the terminal &gt;&lt;br /&gt;&lt;blockquote&gt;sudo cp /location_of_the_downloaded_font/downloaded_font.ttf /usr/share/fonts/truetype&lt;/blockquote&gt;&lt;br /&gt;then run this command in the terminal&lt;br /&gt;&lt;blockquote&gt;sudo fc-cache -f&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-6943308157253618616?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/6943308157253618616/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=6943308157253618616&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/6943308157253618616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/6943308157253618616'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/02/new-font-install-in-ubuntu.html' title='New font install in Ubuntu'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-481380067207116371</id><published>2009-02-11T11:51:00.004+06:00</published><updated>2009-02-11T12:46:02.138+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu vim'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='VIM'/><title type='text'>using VIM in ubuntu</title><content type='html'>in Ubuntu we often have to use vim(text editor) to edit different type of files. here is some command to get familiar with this editor ... type the following on the terminal&lt;br /&gt;&lt;blockquote&gt;vim file_name&lt;/blockquote&gt;&lt;br /&gt;to start editing press &lt;span style="font-weight: bold;"&gt;[Insert]&lt;/span&gt; button ... then u can edit the file as usually&lt;br /&gt;to finish editing press &lt;span style="font-weight: bold;"&gt;[Esc]&lt;/span&gt; button&lt;br /&gt;then press &lt;span style="font-weight: bold;"&gt;[Shift]&lt;/span&gt; button + &lt;span style="font-weight: bold;"&gt;[:]&lt;/span&gt; button&lt;br /&gt;if u want to save what u do then press &lt;span style="font-weight: bold;"&gt;[x]&lt;/span&gt; button&lt;br /&gt;                                  or&lt;br /&gt;if u want not to save the changed items then press &lt;span style="font-weight: bold;"&gt;[q]&lt;/span&gt; button + &lt;span style="font-weight: bold;"&gt;[!]&lt;/span&gt; button&lt;br /&gt;then to exit press &lt;span style="font-weight: bold;"&gt;[Enter]&lt;/span&gt; button&lt;br /&gt;&lt;br /&gt;actually there are lots of commands to run ... but this are i frequently use .....&lt;br /&gt;&lt;br /&gt;to know ins &amp;amp; outs of vim &lt;a href="http://dailyvim.blogspot.com/"&gt;visit this&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-481380067207116371?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/481380067207116371/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=481380067207116371&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/481380067207116371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/481380067207116371'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/02/using-vim-in-ubuntu.html' title='using VIM in ubuntu'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-4443274734926334104</id><published>2009-02-10T12:14:00.003+06:00</published><updated>2009-02-10T12:36:02.034+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MAC change'/><category scheme='http://www.blogger.com/atom/ns#' term='MAC address change in Ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu AC'/><title type='text'>Change MAC address in Ubuntu temporarily</title><content type='html'>i have to change my MAC address in Ubuntu for temporary basis. so i do the following in the terminal:&lt;br /&gt;&lt;blockquote&gt;ifconfig eth0 down&lt;br /&gt;ifconfig eth0 hw ether 01:02:03:04:05:06&lt;br /&gt;ifconfig eth0 up&lt;br /&gt;&lt;/blockquote&gt;first command will down the network, then 2nd command change my MAC [ &lt;span style="font-size:78%;"&gt;01:02:03:04:05:06 is replaced by my desired MAC address&lt;/span&gt;] and then 3rd one again up my network.&lt;br /&gt;to see the change type &lt;span style="font-style: italic;"&gt;ifconfig&lt;/span&gt; in the terminal and press &lt;span style="font-weight: bold;"&gt;Enter&lt;/span&gt;. changed MAC address will be shown ...&lt;br /&gt;simple ..... huh ;)&lt;br /&gt;&lt;br /&gt;but remember there may be easier solution then that i dont know :(&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-4443274734926334104?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/4443274734926334104/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=4443274734926334104&amp;isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/4443274734926334104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/4443274734926334104'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/02/change-mac-address-in-ubuntu.html' title='Change MAC address in Ubuntu temporarily'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-5243167626376836721</id><published>2009-02-10T11:47:00.008+06:00</published><updated>2009-05-28T10:11:46.025+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu php'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu apache mysql php'/><category scheme='http://www.blogger.com/atom/ns#' term='LAMP ubuntu'/><title type='text'>Is there any one click php-mysql installer in Ubuntu??</title><content type='html'>I dont find any xampp or wamp like installer for Ubuntu. But run the following command in the terminal and get things done ... :) wow&lt;br /&gt;&lt;pre name="code" class="html:nocontrols:nogutter"&gt;sudo apt-get install apache2 php5 mysql-client-5.0 mysql-server-5.0 libapache2- mod-php5 libapache2-mod-auth-mysql php5-mysql php5-cli&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;then from terminal connect to mysql or in the browser type "&lt;span style="font-style: italic;"&gt;http://localhost/&lt;/span&gt;" and get&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;It Works!&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;u can also install &lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;PhpMyAdmin&lt;/span&gt;&lt;/span&gt; in the same way or from Synaptic Package manager&lt;span style="font-weight: bold;"&gt;.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-5243167626376836721?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/5243167626376836721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=5243167626376836721&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/5243167626376836721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/5243167626376836721'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/02/is-there-any-one-click-php-mysql.html' title='Is there any one click php-mysql installer in Ubuntu??'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-2667035556509265212</id><published>2009-02-09T17:48:00.009+06:00</published><updated>2009-05-28T10:11:06.550+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails bangladesh'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby on Rails'/><title type='text'>Ruby on rails installation on Windows</title><content type='html'>a. First, let's check to see if you already have Ruby installed. Bring up a command prompt and and type ruby -v. If Ruby responds, and if it shows a version number at or above 1.8.2 then type gem --version. If you don.t get an error, skip to step 3. Otherwise, we.ll install a fresh Ruby.&lt;br /&gt;b. If Ruby is not installed, then download an installation package from &lt;a href="http://rubyinstaller.rubyforge.org/" target="_blank"&gt;rubyinstaller.rubyforge.org&lt;/a&gt;. Follow the &lt;strong&gt;download&lt;/strong&gt; link, and run the resulting installer. This is an exe like &lt;strong&gt;ruby186-25.exe&lt;/strong&gt; and will be installed in a single click. You may as well install everything . It's a very small package, and you'll get RubyGems as well alongwith this package. Please check &lt;a href="http://instantrails.rubyforge.org/wiki/wiki.pl?Release_Notes" target="_blank"&gt;Release Notes&lt;/a&gt; for more detail.&lt;br /&gt;c. With RubyGems loaded, you can install all of Rails and its dependencies through the command line:&lt;br /&gt;&lt;pre name="code" class="html:nocontrols:nogutter"&gt;C:\&gt; gem install rails --include-dependencies&lt;/pre&gt;&lt;span style="font-weight: bold;"&gt;Keeping Rails Up-to-Date:&lt;/span&gt;&lt;br /&gt;Assuming you installed Rails using RubyGems, keeping up-to-date is relatively easy. Issue the following command:&lt;br /&gt;&lt;pre name="code" class="html:nocontrols:nogutter"&gt;C:\&gt; gem update rails&lt;br /&gt;&lt;/pre&gt;This will automatically update your Rails installation. The next time you restart your application it will pick up this latest version of Rails. While giving this command, make sure you are connected to the internet.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Installation Verification&lt;/b&gt;&lt;br /&gt;You can verify if everything is setup according to your requirements or not. Use the following command to create a demo project.&lt;br /&gt;&lt;pre name="code" class="html:nocontrols:nogutter"&gt;C:\&gt; rails demo&lt;/pre&gt;This will generate a demo rail project, we will discuss about it later. Currently we have to check if envrionment is setup or not. Now next use the following command to run WEBrick web server on your machine.&lt;br /&gt;&lt;pre name="code" class="html:nocontrols:nogutter"&gt;&lt;br /&gt;C:\&gt; cd demo&lt;br /&gt;C:\demo&gt; ruby script/server&lt;br /&gt;=&gt; Rails application started on http://0.0.0.0:3000&lt;br /&gt;=&gt; Ctrl-C to shutdown server; call with --help for options&lt;br /&gt;[2007-02-26 09:16:43] INFO WEBrick 1.3.1&lt;br /&gt;[2007-02-26 09:16:43] INFO ruby 1.8.2 (2004-08-24)...&lt;br /&gt;[2007-02-26 09:16:43] INFO WEBrick::HTTPServer-start:pid=2836...&lt;br /&gt;....&lt;br /&gt;&lt;/pre&gt;Now open your browser and type the following address text box.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;http://localhost:3000&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-2667035556509265212?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/2667035556509265212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=2667035556509265212&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/2667035556509265212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/2667035556509265212'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/02/ruby-on-rails-installation-on-windows.html' title='Ruby on rails installation on Windows'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6638551178264579821.post-4323320159913321946</id><published>2009-02-09T17:36:00.002+06:00</published><updated>2009-02-09T17:46:48.762+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='blog'/><title type='text'>new comer in the blog world</title><content type='html'>Hello everyone&lt;br /&gt;&lt;br /&gt;start my journey on knowledge sharing world. This is 9th Feb' 09. So its a historic day for me. isn't it? ... :D&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6638551178264579821-4323320159913321946?l=share-facts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://share-facts.blogspot.com/feeds/4323320159913321946/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6638551178264579821&amp;postID=4323320159913321946&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/4323320159913321946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6638551178264579821/posts/default/4323320159913321946'/><link rel='alternate' type='text/html' href='http://share-facts.blogspot.com/2009/02/new-comer-in-blog-world.html' title='new comer in the blog world'/><author><name>Noman Muhammad</name><uri>http://www.blogger.com/profile/12798958532874029193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_boja1fXZ5zY/SZOd8ivpFpI/AAAAAAAACQs/snMj_IDVIww/S220/DSC04803.JPG'/></author><thr:total>0</thr:total></entry></feed>
