tag:blogger.com,1999:blog-66385511782645798212024-03-14T08:51:09.523+06:00God helps them that help themselvesShare knowledgeNoman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.comBlogger35125tag:blogger.com,1999:blog-6638551178264579821.post-6013380978285819732010-05-14T15:16:00.007+06:002010-05-14T16:37:34.594+06:00Lets Rejoice in the Beautiful GameThe 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:<br /><br />---------------------------------------------<br />Ooooooh Wooooooh<br /><br />Give me freedom, give me fire, give me reason, take me higher<br />See the champions, take the field now, you define us, make us feel proud<br />In the streets are, exaliftin , as we lose our inhabition,<br />Celebration its around us, every nation, all around us<br /><br />Singin forever young, singin songs underneath that sun<br />Lets rejoice in the beautiful game.<br />And together at the end of the day.<br /><br />WE ALL SAY<br /><br />When I get older I will be stronger<br />They'll call me freedom Just like a wavin' flag<br />And then it goes back<br />And then it goes back<br />And then it goes back<br /><br />When I get older I will be stronger<br />They'll call me freedom<br />Just like a wavin' flag<br />And then it goes back<br />And then it goes back<br />And then it goes<br /><br />Oooooooooooooh woooooooooohh hohoho<br /><br />Give you freedom, give you fire, give you reason, take you higher<br />See the champions, take the field now, you define us, make us feel proud<br />In the streets are, exaliftin, every loser in ambition,<br />Celebration, its around us, every nations, all around us<br /><br />Singin forever young, singin songs underneath that sun<br />Lets rejoice in the beautiful game.<br />And together at the end of the day.<br /><br />WE ALL SAY<br /><br />When I get older, I will be stronger<br />They'll call me freedom<br />Just like a wavin' flag<br />And then it goes back<br />And then it goes back<br />And then it goes back<br /><br />When I get older I will be stronger<br />They'll call me freedom<br />Just like a wavin' flag<br />And then it goes back<br />And then it goes back<br />And then it goes<br /><br />Wooooooooo Ohohohoooooooo ! OOOoooooh Wooooooooo<br /><br />WE ALL SAY !<br />When I get older I will be stronger<br />They'll call me freedom<br />Just like a wavin' flag<br />And then it goes back<br />And then it goes back<br />And then it goes back<br /><br />When I get older I will be stronger<br />They'll call me freedom<br />Just like a wavin' flag<br />And then it goes back<br />And then it goes back<br />And then it goes<br /><br />Wooo hooooo hohohohoooooo<br /><br />And everybody will be singinit<br />Wooooooooo ohohohoooooo<br />And we are all singinit<br /><br />---------------------------------------------<br /><br />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 <span style="font-weight: bold;">Argentina</span> :)<br /><br />Hope to see smiling <span style="font-weight: bold;">Messi</span> with the cup @ 11 July' 10.Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com0tag:blogger.com,1999:blog-6638551178264579821.post-28877414623689836272010-04-12T21:50:00.015+06:002010-04-13T15:19:57.326+06:00Import Blog Post as Notes in FacebookFirst click on the "Account" button. Now Select "Application Settings".<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_boja1fXZ5zY/S8NE9zNnS3I/AAAAAAAACXk/VNyXKbhFSGs/s1600/app_setting.png"><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" /></a><br /><br /><div><br /></div><br /><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div><br/><br/><br/><br/>Then from the page click on 'Profile' next to the 'Notes'</div><div><br /></div><div><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_boja1fXZ5zY/S8NIbbUVVkI/AAAAAAAACX0/Cj4NPXky0no/s1600/notes_profile.png"><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" /></a><br /></div><div><br /></div><div>After the page opens, click on 'Go to Application'</div><div><br /></div><div><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_boja1fXZ5zY/S8NJBwq5EvI/AAAAAAAACX8/GNm_PhXj2gw/s1600/go_app.png"><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" /></a><br /></div><div><br /></div><div>When the page opens, click on 'Import a blog'</div><div><br /></div><div><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_boja1fXZ5zY/S8NJ1eBuLGI/AAAAAAAACYE/-gU87_S4Nho/s1600/import.png"><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" /></a><br /></div><div><br /></div><div>Then on the Web URL text box type your blog address and the press 'Start Importing' ...</div><div><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_boja1fXZ5zY/S8NLPuedfSI/AAAAAAAACYM/sMJIZZGTQuY/s1600/strt_import.png"><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" /></a><br /></div><div><br /></div><div>After importing confirm it. All the blog posts will be saved as notes.</div><div><br /></div><div>!!! Enjoy :)</div>Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com1tag:blogger.com,1999:blog-6638551178264579821.post-26142280402269144012010-02-07T15:14:00.003+06:002010-02-08T12:46:54.058+06:00Two Articles that Inspire Me to Live more MeaningfullyI 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.<br />The speech by Steve Jobs, CEO of Apple computer was delivered at Stanford University. I got this text from <a href="http://news-service.stanford.edu/news/2005/june15/jobs-061505.html" title="Steve Jobs at Stanford University" target="_blank">this link</a>. 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 <blockquote>... 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 ...</blockquote>. <br />This is quite inhaling to love work more meaningfully.<br /><br />I get the second article <a href="http://www.downes.ca/post/38502" title="Things You Really Need to Learn" target="_blank">here</a>. 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 <blockquote>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.</blockquote><br /><br />I really love the sentence from the Steve Jobs' speech "Stay Hungry, Stay Foolish"Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com2tag:blogger.com,1999:blog-6638551178264579821.post-8573009454327920972009-11-08T15:03:00.003+07:002009-11-09T11:46:23.836+07:00Dynamically detect Language and add CSS accordinglyIn blog sites the blog owner allows visitors to comment on his blog post. If the site is local or regional like <a href="http://www.somewhereinblog.net" target="_blank">Somewherein</a>, <a href="http://www.amarblog.com" target="_blank">Amar Blog</a> 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. <a href="http://code.google.com/apis/ajax/playground/#language_detect" target="_blank">Google Code</a> 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.<br /><pre name="code" class="php"><br /><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><br /><html xmlns="http://www.w3.org/1999/xhtml"><br /> <head><br /> <meta http-equiv="content-type" content="text/html; charset=utf-8"/><br /> <script src="http://www.google.com/jsapi?key=API_KEY"></script><br /> <script type="text/javascript"><br /> <br /> google.load("language", "1");<br /> <br /> function initialize() {<br /> var text = document.getElementById("text").innerHTML;<br /> <br /> // Detect the language of the text.<br /> google.language.detect(text, function(result) {<br /> var detected = document.getElementById("detected");<br /> // If there wasn't an error in the request<br /> if (!result.error) {<br /> var langCode = result.language;<br /> var langName;<br /> <br /> // Loop through the languages enum so that we can find the actual name of the language.<br /> // Learn about the languages enum here:<br /> // http://code.google.com/apis/ajaxlanguage/documentation/reference.html#LangNameArray<br /> for (var i in google.language.Languages) {<br /> var thisLangCode = google.language.Languages[i];<br /> if (thisLangCode == langCode) {<br /> // If we find the language code, store the language name.<br /> langName = i;<br /> break;<br /> }<br /> }<br /> <br /> // Se the detected language.<br /> if(langName == "BENGALI")<br /> {<br /> document.getElementById("text").setAttribute("class", "bn");<br /> }<br /> else <br /> {<br /> document.getElementById("text").setAttribute("class", "en");<br /> }<br /> }<br /> });<br /> }<br /> google.setOnLoadCallback(initialize);<br /> <br /> </script><br /> </head><br /> <body><br /> <div id="content"><br /> <div id="text">share-facts.blogspot.com</div><br /> <div id="detected"/><br /> </div><br /> </body><br /></html><br /></pre><br /><br />Here content of the DIV with id="text" will be examined then the class of that DIV will added accordingly.<br /><br />Note: on line 5 API_KEY will be replaced by a valid API key.Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com1tag:blogger.com,1999:blog-6638551178264579821.post-60694239290833071212009-11-04T11:09:00.004+07:002009-11-04T11:57:03.149+07:00Simple cURL example using PHP<a href="http://curl.haxx.se/" target="_blank">cURL</a> 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 <span style="font-style:italic;">cURL</span> at first we retrieve the contents of the site that we targeted and then parse the retrieved contents to show the specific portion using <span style="font-style:italic;">preg_match()</span>. Here I'll show a simple example to retrieve and show the stock market price in my site from <a href="http://m.www.yahoo.com/" target="_blank">Yahoo!</a>. At first I have to open <a href="http://m.www.yahoo.com/" target="_blank">Yahoo!</a> in my browser. Then view the source of the page and identify that the stock market price is shown in between <span style="font-weight:bold;"><dl class="markets clearfix strong small"> and </dl></span>. 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:<br /><pre name="code" class="php"><br /><html><br /><head><br /><title>cURL Example</title><br /></head><br /><body><br /><div style="margin-left:30px"><br /><?php<br />//URL of targeted site<br />$url = "http://m.www.yahoo.com/";<br />$ch = curl_init();<br /><br />// set URL and other appropriate options<br />curl_setopt($ch, CURLOPT_URL, $url);<br />curl_setopt($ch, CURLOPT_HEADER, 0);<br />curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);<br /><br />// grab URL and pass it to the browser<br /><br />$output = curl_exec($ch);<br /><br />//Regular expression to excerpt the targeted portion<br />preg_match('/<dl class="markets clearfix strong small">(.*)<\/dl>/is', $output, $matches);<br />echo $matches[0];<br /><br />// close curl resource, and free up system resources<br />curl_close($ch);<br />?><br /></div><br /></body><br /></html><br /></pre><br /><br />Very simple, isn't it? Now by using our own css we can show the data in our own way.Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com0tag:blogger.com,1999:blog-6638551178264579821.post-52194844822679238782009-09-20T15:40:00.007+07:002009-10-21T14:37:42.215+07:00Fixing Transparent Image in IE6IE6 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. <br /><br /><pre name="code" class="html"><br />#header<br />{<br /> background:url(logo.png) no-repeat;<br /> height:109px;<br /> width:507px;<br />}<br /><br />*html #header <br />{<br /> background-image:none;<br /> filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="logo.png");<br />}<br /></pre><br /><br />this "<span style="font-weight:bold;">*html #header</span>" 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: <span style="font-style:italic;">http://www.mysitename.com/images/logo.png</span>).<br />Another drawback is links (i.e <a></a>) somwtimes become unclickable and forms become unfocusable. To get rid of it we have use <span style="font-weight:bold;">postion:relative</span> for <span style="font-weight:bold;">a<span style="font-style:italic;"></span></span> tag. i.e<br /><pre name="code" class="html"><br />a <br />{<br /> postion:relative;<br />}<br /></pre>Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com0tag:blogger.com,1999:blog-6638551178264579821.post-83561570837084982322009-08-06T16:08:00.003+07:002009-08-07T12:32:34.271+07:00Bangla Typing using Google TransliterationWe 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 <a href="http://www.bengaliwiki.com/page/Bengali+Alphabet" title="bangla alphabet, bengali alphabet">Bengali alphabet</a>. For example, typing "Bangladesh" transliterates into Bengali as বাংলাদেশ. <br />Its a small piece of code that stores on our browser(s). Visit <a href="http://t13n.googlecode.com/svn/trunk/blet/docs/help_bn.html">this link</a> to know how to enable this option to the various browsers.Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com1tag:blogger.com,1999:blog-6638551178264579821.post-77785649360636494942009-07-22T12:25:00.008+07:002009-07-26T10:15:41.772+07:00Some Interesting Google Search TechniqueWe always search our query in <a href="http://www.google.com" title="search engine">Google</a>. There are huge set of techniques by which we can search in <a href="http://www.google.com" title="search engine">Google</a> more accurately. I collect and show some of them here that I frequently use. Those techniques are very simple but provide very fruitful result :) .<br /><br />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 <a href="http://www.google.com" title="search engine">Google</a> will handle this keyword using a method called Boolean Default. <a href="http://www.google.com" title="search engine">Google's</a> Boolean default is 'AND'; that means if we enter query words without modifiers, <a href="http://www.google.com" title="search engine">Google</a> will search for all of them. If we search for:<br /><blockquote>computer programming</blockquote><br /><a href="http://www.google.com" title="search engine, google">Google</a> will search for all the words. If we want to specify that either word is acceptable, we can put an 'OR' between each item:<br /><blockquote>computer OR programming</blockquote><br />If we want to exclude a query item from search results, use a -.(minus sign or dash:<br /><blockquote>computer -programming</blockquote><br />note that there is no space after the (-) sign.<br /><br />2. To search for a phrase use "" surrounding the phrase. like:<br /><blockquote>"Some Interesting Google Search Technique"</blockquote><br /><br />3. Period (.) and Asterisk (*) can also be used as traditionally used.<br /><br />4. To search anything from a specific site use 'site:site_name'.<br /><blockquote>google site:share-facts.blogspot.com</blockquote><br />This will search for the term google only in the specified site.<br /><br />note that there is no space after the (:) sign.<br /><br />5. To restrict search to title of web pages we can use 'intitle:search_keyword'<br /><blockquote>intitle:google</blockquote><br /><br />6. Use 'inurl:search_keyword' to restrict search to the URLs of web pages.<br /><blockquote>inurl:google</blockquote><br /><br />7. To search in body text use 'intext:search_keyword'<br /><blockquote>intext:html</blockquote><br /><br />8.Searches for text in a page's link anchors<br /><blockquote>inanchor:"google desktop"</blockquote><br /><br />9. To search for a specific filetype use 'filetype:desired_file_type'<br /><blockquote>bangladesh filetype:pdf</blockquote><br /><br />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.<br /><blockquote>cache:share-facts.blogspot.com</blockquote><br /><br />11. To get the definition of search keyword 'define:search_keyword'.<br /><blockquote>define:physics</blockquote><br /><br />12. To find lyrics use <blockquote>"lyrics_phrase" lyrics</blockquote><br /><br />13. To get the time of Dhaka <blockquote>time dhaka</blockquote>Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com2tag:blogger.com,1999:blog-6638551178264579821.post-68276515920831210442009-07-05T16:32:00.003+07:002009-07-05T17:01:00.590+07:00Adding Digg Button on Blogspot Post<a href="http://www.digg.com" title="digg, social content site">Digg</a> 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 <a href="http://www.digg.com" title="digg, social content site">digg</a>. To show digg button on blogger post we to put some code on the template.<br /><br />1.) Find the below line on the blogger template (its found when "Expand Widget Templates" is clicked). <pre name="code" class="html"><p><data:post.body/></p></pre> <br /><br />2.) Now replace this above code with<br /><pre name="code" class="js"><br /><div style='float:left; margin-right:10px;'><br /><script type='text/javascript'><br /> digg_url='<data:post.url/>';<br /></script><br /><script src='http://digg.com/tools/diggthis.js' type='text/javascript'/><br /></div><br /><p><data:post.body/></p><br /></pre><br />This will show the digg button on ur post's left top corner. To change button's orientation simply change div orientation.Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com1tag:blogger.com,1999:blog-6638551178264579821.post-52775121161720240552009-06-06T07:30:00.003+06:002009-06-06T08:05:05.044+06:00Install Google Desktop on 64 bit VistaGoogle Desktop can not be installed normally on 64 bit Windows Vista. But we can install it from command line by '/force'.<br /><br />To do so, first download <a href="http://desktop.google.com/" title="google desktop, google desktop in 64 bit vista">google desktop</a>. Then open the <span style="font-weight:bold;" title="google desktop in 64 bit vista">Command prompt</span> and go to the installer directory, type the command '<span style="font-style:italic;" title="google desktop in 64 bit vista"><span style="font-weight:bold;" title="google desktop in 64 bit vista">googledesktopsetup.exe /force</span></span>' and press Enter. Thats all ...Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com0tag:blogger.com,1999:blog-6638551178264579821.post-35249657914292648172009-05-27T15:49:00.003+06:002009-06-09T22:37:14.942+06:00Adding SyntaxHighlighter JS to blogspot<a href="http://code.google.com/p/syntaxhighlighter/" title="SyntaxHighlighter">SyntaxHighlighter</a> 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 <a href="http://code.google.com/p/syntaxhighlighter/downloads/list" title="SyntaxHighlighter">SyntaxHighlighter</a>.<br />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. <br />To make it work, now we need to edit our blog's template and add the following code after the <span style="font-weight:bold;"><!-- end outer-wrapper --></span> tag: <br /><pre name="code" class="html"><br /><link href='http://[HOST URL]/SyntaxHighlighter.css' rel='stylesheet' type='text/css'/><br /><script language='javascript' src='http://[HOST URL]/shCore.js'/><br /><br /><script language='javascript'><br />dp.SyntaxHighlighter.BloggerMode();<br />dp.SyntaxHighlighter.HighlightAll('code');<br /></script><br /></pre><br />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. <span style="font-weight:bold;">shBrushPhp.js</span> and <span style="font-weight:bold;">shBrushRuby.js</span>. <br /><span style="font-weight:bold;">Another Interesting thing</span> that Its not really needed to upload the code/files as those files are already hosted by google.code.<br />We can easily lined up to those files. So, the above code snippet with support for <span style="font-weight:bold;">PHP</span> and <span style="font-weight:bold;">RUBY</span> will be as below.<br /><pre name="code" class="html"><br /><link href='http://syntaxhighlighter.googlecode.com/svn-history/r57/trunk/Styles/SyntaxHighlighter.css' rel='stylesheet' type='text/css'/><br /><script language='javascript' src='http://syntaxhighlighter.googlecode.com/svn-history/r57/trunk/Scripts/shCore.js'/><br /><br /><script language='javascript'><br />dp.SyntaxHighlighter.BloggerMode();<br />dp.SyntaxHighlighter.HighlightAll('code');<br /></script<<br /><br /><!--Support for php and ruby : --><br /><script language='javascript' src='http://syntaxhighlighter.googlecode.com/svn-history/r57/trunk/Scripts/shBrushPhp.js'/><br /><script language='javascript' src='http://syntaxhighlighter.googlecode.com/svn-history/r57/trunk/Scripts/shBrushRuby.js'/><br /></pre><br />Syntaxhighlighter supports pre and textarea tags, but it will not work automagically, we need to put our code into the <pre> or <textarea>.<br /><br />To add some php code to our blog we to put our code as follows:<br /><pre name="code" class="php"><br /> ---- PHP code goes here ----<br /></pre><br /><br />Similarly for Ruby Code:<br /><pre name="code" class="ror"><br /> ---- RUBY code goes here ----<br /></pre><br /><br />See details on that <a href="http://code.google.com/p/syntaxhighlighter/w/list" title="Syntaxhighlighter wiki">page</a><br /><br />One important notice from <a href="http://code.google.com/p/syntaxhighlighter/wiki/Overview">Overview of SyntaxHighlighter</a> <span style="font-weight:bold;">Trying to highlight 10kb worth of text will result in JavaScript being aborted because of long execution time.</span>Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com0tag:blogger.com,1999:blog-6638551178264579821.post-79374027129241000302009-05-24T10:07:00.004+06:002009-05-24T10:32:30.448+06:00Command line PHP in WindowsIn 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.<br />We can do that in two ways ...<br /><br />1. Open the command prompt (<span style="font-weight: bold;">start</span> -> <span style="font-weight: bold;">run</span> -> <span style="font-weight: bold;">cmd</span>)<br />and type: set <span style="font-style:italic;">PATH=%PATH%;C:\path_to_php</span><br />here, "<span style="font-style:italic;">C:\path_to_php</span>" is the physical folder where <span style="font-weight:bold;"><span style="font-style:italic;">php.exe</span></span> is located. In my case its on <span style="font-weight:bold;"><span style="font-style:italic;">C:\xampp\php</span></span>.<br /><br />Now we can run PHP script from anywhere we want like this:<br />D:\>php -v<br />PHP 5.2.5 (cli) (built: Nov 8 2007 23:18:51)<br />Copyright (c) 1997-2007 The PHP Group<br />Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies<br /> with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies<br /> with Xdebug v2.0.2, Copyright (c) 2002-2007, by Derick Rethans<br /><br />Main problem of this method is this will affect only a single command prompt.<br /><br />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.<br />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.<br />Append the variable value with:<br /><br />;C:\path_to_php<br /><br />here, "<span style="font-style:italic;">C:\path_to_php</span>" is the physical folder where <span style="font-weight:bold;"><span style="font-style:italic;">php.exe</span></span> is located. In my case its on <span style="font-weight:bold;"><span style="font-style:italic;">C:\xampp\php</span></span>.<br />';' character is used to separate directories in the var, so be sure it’s present.<br /><br />Thats all.Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com0tag:blogger.com,1999:blog-6638551178264579821.post-53377023559731036872009-05-12T12:19:00.006+06:002009-05-28T10:36:13.834+06:00Copy to Clipboard !!! using JavascriptCopy 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 <span style="font-style:italic;">javascript</span> function "execCommand()". Here is an example how I use it:<br /><pre name="code" class="php"><br /><body><br /><script type="text/javascript"><br />function ClipBoard()<br />{<br />holdtext.innerText = copytext.innerText;<br />Copied = holdtext.createTextRange();<br />Copied.execCommand("RemoveFormat");<br />Copied.execCommand("Copy");<br />}<br /></script><br /><br /><br /><SPAN ID="copytext" STYLE="background-color:pink"><br />COPY This Line!<br /></SPAN><br /><br /><TEXTAREA ID="holdtext" STYLE="display:none;"></TEXTAREA><br /><BUTTON onClick="ClipBoard();">Copy to Clipboard</BUTTON><br /></body></pre><br /><br />When I click on the button the line "<span style="font-weight:bold;">COPY This Line!</span>" will be copied to the clipboard and then I can paste it anywhere.<br />But its not a solution of my problem when i open my page on Mozilla Firefox browser.<br />As per I know Firefox doesn't support the <span style="font-style:italic;">javascript</span> function "execCommand()".<br /><br />After some googling I find this <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">link</a> which solve my problem both for IE and FireFox. Here is my implementation of this:<br /><pre name="code" class="php"><br /><html><br /><head>Copy to Clipboard</head><br /><body><br /><script type="text/javascript"><br />function copy_to_clipboard(text)<br />{<br /> if(window.clipboardData)<br /> {<br /> window.clipboardData.setData('text',text);<br /> }<br /> else<br /> {<br /> var clipboarddiv=document.getElementById('divclipboardswf');<br /> if(clipboarddiv==null)<br /> {<br /> clipboarddiv=document.createElement('div');<br /> clipboarddiv.setAttribute("name", "divclipboardswf");<br /> clipboarddiv.setAttribute("id", "divclipboardswf");<br /> document.body.appendChild(clipboarddiv);<br /> }<br /> clipboarddiv.innerHTML='<embed src="clipboard.swf" FlashVars="clipboard='+<br />encodeURIComponent(text)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';<br /> }<br />}<br /></script><br /><br /><input type="text" id="rt" value="" /><br /><input type="button" value="Copy" onclick="copy_to_clipboard(document.getElementById('rt').value);" /><br /><br /></body><br /></html></pre><br /><br />To use it for firefox I have to download the flash (.swf) file from <a href="http://www.logiclabz.com/postimg/clipboard.rar">here</a> 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.<br />I also need firefox plugins for flash player as it depends on flash.<br />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.<br /><br />It works very fine. :)Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com0tag:blogger.com,1999:blog-6638551178264579821.post-78118160309595605822009-05-03T08:36:00.011+06:002009-06-05T11:24:05.131+06:00Fckeditor: Image resize on UploadFckeditor (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<br /><br />1. go to line # 219. It looks like <br /><pre name="code" class="php"><br />move_uploaded_file( $oFile['tmp_name'], $sFilePath ) ;<br /></pre> <br />This line is under the function '<span style="font-style: italic;">FileUpload</span>'<br /><br />2. Now change the line to <br /><pre name="code" class="php"><br />if($sExtension == 'jpg' || $sExtension == 'jpeg' || $sExtension == 'gif' )<br />{<br /> $uploadedfile = $_FILES['NewFile']['tmp_name'];<br /><br /> // Create an Image from it so we can do the resize<br /> $src = imagecreatefromjpeg($uploadedfile);<br /> <br /> // Capture the original size of the uploaded image<br /> list($width,$height)=getimagesize($uploadedfile);<br /> <br /> // For my purposes, I have resized the image to be<br /> // 300 pixels wide, and maintain the original aspect<br /> // ratio. This prevents the image from being "stretched"<br /> // or "squashed". If you prefer some max width other than<br /> // 300, simply change the $newwidth variable<br /> $newwidth=300;<br /> $newheight=($height/$width)*$newwidth;<br /> $tmp=imagecreatetruecolor($newwidth,$newheight);<br /> <br /> // this line actually does the image resizing, copying from the original<br /> // image into the $tmp image<br /> imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height);<br /> <br /> // now write the resized image to disk. I have assumed that you want the<br /> // resized, uploaded image file to reside in the ./images subdirectory.<br /> $filename = $_FILES['NewFile']['tmp_name'];<br /> imagejpeg($tmp,$filename,100);<br /> move_uploaded_file( $filename, $sFilePath ) ;<br /> imagedestroy($src);<br /> imagedestroy($tmp);<br />}<br />else<br />{<br /> move_uploaded_file( $oFile['tmp_name'], $sFilePath ) ;<br />}<br /></pre><br />3. thats all. <br /><br />It works for me and hope will for U :)Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com14tag:blogger.com,1999:blog-6638551178264579821.post-40285563467925334142009-04-09T12:13:00.004+06:002009-05-28T10:34:11.009+06:00Scrolling PHP News TickerWe 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 <a title="php news ticker, scrolling news ticker, javascript news ticker" href="http://www.mioplanet.com/rsc/webticker_lib.zip">javascript file</a> to do this. Here is my steps<br /><br />1. create a <span style="font-weight: bold; font-style: italic;">index.php</span><span style="font-weight: bold;"></span> file and add these lines between body tag:<br /><pre name="code" class="php"><DIV ID="TICKER" STYLE="width:520px; overflow:hidden" onmouseover="TICKER_PAUSED=true" onMouseOut="TICKER_PAUSED=false"><br /><?php<br />include("xmlparser.php");<br />?><br /></DIV><br /><script type="text/javascript" src="webticker_lib.js" language="javascript"></script></pre><br /><br />2. Download the webticker_lib.js javascript file from <a title="php news ticker, scrolling news ticker, javascript news ticker" href="http://www.mioplanet.com/rsc/webticker_lib.zip">here</a><br /><br />3. create a .php file name xmlparser.php and put those line:<br /><pre name="code" class="php"><br /><?php<br /><br />$insideitem = false;<br />$tag = "";<br />$title = "";<br />$description = "";<br />$link = "";<br /><br />function startElement($parser, $name, $attrs) {<br /> global $insideitem, $tag, $title, $description, $link;<br /> if ($insideitem) {<br /> $tag = $name;<br /> } elseif ($name == "ITEM") {<br /> $insideitem = true;<br /> }<br />}<br /><br />function endElement($parser, $name) {<br /> global $insideitem, $tag, $title, $description, $link;<br /> if ($name == "ITEM") {<br /> printf("<a href='%s' target='_blank'>%s</a> ",<br /> trim($link),htmlspecialchars(trim($title)));<br /> $title = "";<br /> $description = "";<br /> $link = "";<br /> $insideitem = false;<br /> }<br />}<br /><br />function characterData($parser, $data) {<br /> global $insideitem, $tag, $title, $description, $link;<br /> if ($insideitem) {<br /> switch ($tag) {<br /> case "TITLE":<br /> $title .= $data;<br /> break;<br /> case "DESCRIPTION":<br /> $description .= $data;<br /> break;<br /> case "LINK":<br /> $link .= $data;<br /> break;<br /> }<br /> }<br />}<br /><br /><br /> $xml_parser = xml_parser_create();<br /> xml_set_element_handler($xml_parser, "startElement", "endElement");<br /> xml_set_character_data_handler($xml_parser, "characterData");<br /> $fp = fopen("http://bangla.irib.ir/index.php?option=com_rss&feed=RSS2.0&no_html=1","r")<br /> or die("Error reading RSS data.");<br /> while ($data = fread($fp, 4096))<br /> xml_parse($xml_parser, $data, feof($fp))<br /> or die(sprintf("XML error: %s at line %d", <br /> xml_error_string(xml_get_error_code($xml_parser)), <br /> xml_get_current_line_number($xml_parser)));<br /> fclose($fp);<br /> xml_parser_free($xml_parser);<br /><br />?></pre><br /><br />Here "http://bangla.irib.ir/index.php?option=com_rss&feed=RSS2.0&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.<br />Thats all. Now Run the index.php file and get news ticker in action.Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com1tag:blogger.com,1999:blog-6638551178264579821.post-51692326851746089312009-04-08T09:07:00.003+06:002009-04-08T10:28:01.159+06:00Simple Javascript menu :OpenCubeOften 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 <a href="http://www.opencube.com/download/quickmenu7.exe" title="javascript menu, free javacript menu">this link</a>. For Linux/mac download from <a href="http://www.opencube.com/download/quickmenu7.zip" title="javascript menu linux, javascript menu mac">here</a>. Use it and enjoy it :).Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com0tag:blogger.com,1999:blog-6638551178264579821.post-29580629491063220052009-04-05T15:39:00.008+06:002009-05-27T17:09:34.309+06:00Simple Ajax Tab MenuAjax 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 <a href="http://crackajax.net/tabs.php" title="php ajax tab menu">this link</a>. Here i'll show the steps that i do to create this menu functional.<br /><br />1. create a simple html file (index.html). Between <span style="font-weight: bold;">body</span> tag put these<br /><pre name="code" class="php"><br /><ul id="tabmenu"><br /><li onclick="makeactive(1)"><a class="" id="tab1">First Tab</a></li><br /><li onclick="makeactive(2)"><a class="" id="tab2">Second Tab</a></li><br /><li onclick="makeactive(3)"><a class="" id="tab3">Third Tab</a></li><br /></ul><br /><div id="content"></div><br /></pre><br />Between <span style="font-weight: bold;">head</span> tag put these lines<br /><pre name="code" class="javascript"><br /><script language="JavaScript" type="text/javascript" src="ajax.js"></script><br /><script language="JavaScript" type="text/javascript"><br />function makeactive(tab)<br />{<br /> document.getElementById("tab1").className = "";<br /> document.getElementById("tab2").className = "";<br /> document.getElementById("tab3").className = "";<br /> document.getElementById("tab"+tab).className = "active";<br /> callAjax('content.php?content= '+tab, 'content', 'getting content for tab '+tab+'. Wait...', 'Error');<br />}<br /></script><br /></pre><br /><br />2. Now create the <span style="font-style: italic;">ajax.js</span> that we add in our <span style="font-weight: bold;">head</span> section. These are the content of <span style="font-style: italic;">ajax.js</span><br /><pre name="code" class="php"><br />function callAjax(url, pageElement, callMessage, errorMessage) {<br /> document.getElementById(pageElement).innerHTML = callMessage;<br /> try {<br /> req = new XMLHttpRequest(); /* e.g. Firefox */<br /> } catch(e) {<br /> try {<br /> req = new ActiveXObject("Msxml2.XMLHTTP"); /* some versions IE */<br /> } catch (e) {<br /> try {<br /> req = new ActiveXObject("Microsoft.XMLHTTP"); /* some versions IE */<br /> } catch (E) {<br /> req = false;<br /> }<br /> }<br /> }<br /> req.onreadystatechange = function() {responseAjax(pageElement, errorMessage);};<br /> req.open("GET",url,true);<br /> req.send(null);<br /> }<br /><br />function responseAjax(pageElement, errorMessage) {<br /> var output = '';<br /> if(req.readyState == 4) {<br /> if(req.status == 200) {<br /> output = req.responseText;<br /> document.getElementById(pageElement).innerHTML = output;<br /> } else {<br /> document.getElementById(pageElement).innerHTML = errorMessage+"\n"+output;<br /> }<br /> }<br /> }<br /></pre><br /><br />3. Now we need another <span style="font-style: italic;">php</span> file where output will be processed. Nmae it "content.php" and put these lines in it<br /><pre name="code" class="php"><br /><?php<br />if ($_GET['content'] == 1)<br />{<br /> echo 'Content for Page 1';<br />}<br />if ($_GET['content'] == 2)<br />{<br /> echo 'Content for Page 2';<br />}<br />if ($_GET['content'] == 3)<br />{<br /> echo 'Content For Page 3';<br />}<br />?><br /></pre><br /><br />Thats all. Now run the index file and see the tab menu in action. <br />To get First Tab selected when the page loaded just add this( onload="makeactive(1)") to <span style="font-weight:bold;">body</span> tag. So in <span style="font-style:italic;">index.html</span> <span style="font-weight:bold;">body</span> tag will look as like as that : <body onload="makeactive(1)">Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com3tag:blogger.com,1999:blog-6638551178264579821.post-3620241514399732582009-03-28T06:53:00.002+06:002009-03-28T07:06:54.025+06:00Free online .flv to .mp3 converterSomwtimes 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 <a title="online flv converter" href="http://www.flv2mp3.com/">this site</a> 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 <span style="font-weight: bold; font-style: italic;">convert ... </span>thats all.Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com0tag:blogger.com,1999:blog-6638551178264579821.post-3883340599296781972009-03-10T18:09:00.005+06:002009-03-10T20:56:33.282+06:00Spread your site content : AddthisSocial 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 <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"><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" /></a><br />almost in every sites' content. This is one of the way to open the door to the network to spread our content.<br /><a href="http://addthis.com/">Addthis</a> 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.Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com0tag:blogger.com,1999:blog-6638551178264579821.post-76442585335973463052009-03-09T10:28:00.003+06:002009-03-09T10:52:57.599+06:00Skype installation in Ubuntu<a href="http://www.skype.com" title="skype">Skype</a> 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 <a href="http://www.skype.com/go/getskype-linux-ubuntu" title="skype, skype ubuntu, skype linux">Skype download page</a>. Skppe can also be downloaded for <a href="http://www.skype.com/go/getskype-linux-ubuntu-amd64" title="skype ubuntu 64 bit">Ubuntu 64 bit</a>. Then install it by double-clicking the deb file and clicking "Install package".Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com0tag:blogger.com,1999:blog-6638551178264579821.post-91864761418721334032009-03-08T17:31:00.003+06:002009-03-08T17:56:31.849+06:00Some useful firefox pluginsFirefox offers huge list of plugins/addons that let us to personalize our browser. I list some of them as very useful. Those are:<br />1)<span style="font-weight: bold;"> Firebug</span>: <a href="https://addons.mozilla.org/en-US/firefox/addon/1843">Firebug</a> is used to edit, debug, and monitor CSS, HTML, and JavaScript live in any web page.<br />2)<span style="font-weight: bold;"> MeasureIt</span>: <a href="https://addons.mozilla.org/en-US/firefox/addon/539">MeasureIt</a> allows us to draw out a ruler to get the pixel width and height of any elements in a web page.<br />3)<span style="font-weight: bold;"> lori (Life-of-request info)</span>: <a href="https://addons.mozilla.org/en-US/firefox/addon/1743">lori</a> tells us how long it takes to load a webpage.<br />4)<span style="font-weight: bold;"> IE View Lite</span>: We use <a href="https://addons.mozilla.org/en-US/firefox/addon/1429">IE View Lite</a> see how a site is rendered in IE.<br />5)<span style="font-weight: bold;"> Delicious Bookmarks</span>: <a href="https://addons.mozilla.org/en-US/firefox/addon/3615">Its</a> the official firefox add-on for Delicious.<br />6)<span style="font-weight: bold;"> Add to Search Bar</span>:<a href="https://addons.mozilla.org/en-US/firefox/addon/3682"> Add to Search Bar</a> integrates any pages' search functionality available in the Search Bar of firefox browser.Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com1tag:blogger.com,1999:blog-6638551178264579821.post-36807480697742111792009-03-08T14:48:00.004+06:002009-03-08T15:58:13.595+06:00Use Google Apps for site's mail box<a href="http://www.google.com/apps" title="google apps, email">Google Apps</a> is another superb service from <a href="http://www.google.com" title="google, search engine">Google</a>. 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 <a href="http://www.google.com/apps/intl/en/group/index.html" title="google apps standard version, google apps standard edition">Standard Version</a>, 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.Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com0tag:blogger.com,1999:blog-6638551178264579821.post-25976446294601870752009-03-02T12:32:00.006+06:002009-03-02T12:58:23.284+06:00Popular websites enrich English Dictionary !!!Net surfing is very popular throughout the world. Now-a-days the interesting thing is popular wesbsites enriches the dictionary. Quite interesting. I'm <span style="font-weight: bold; font-style: italic;">googling</span> it. What does it mean? It certainly means that I'm searching it in <span style="font-weight: bold; font-style: italic;">google</span>(<a href="http://www.google.com/" title="google, search engine">www.google.com</a>). So <span style="font-weight: bold; font-style: italic;">googling</span> is a new word ;) . Similarly the most popular social networking site <a href="http://www.facebook.com/" title="facebook, social community site">Facebook</a> also enrich the dictionary. I've <span style="font-weight: bold; font-style: italic;">facebooked</span> all of my photos. Here <span style="font-weight: bold; font-style: italic;">facebooked</span> stands for uploaded the photos to my facebook page. Again, I <span style="font-weight: bold; font-style: italic;">facebooked</span> u. here <span style="font-weight: bold; font-style: italic;">facebooked</span> stands for added u to my facebook page. So, <span style="font-weight: bold;">facebook</span> is a versatile word. Isn't it?<br />Similarly, if u <a href="http://www.myspace.com" title="myspace, social community site"><span style="font-weight: bold; font-style: italic;">myspacing</span></a> u may waste ur time :D. Have fun in <a href="http://www.twitter.com"><span style="font-weight: bold; font-style: italic;">twittering</span></a>.Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com0tag:blogger.com,1999:blog-6638551178264579821.post-50473537696805093112009-02-24T17:32:00.002+06:002009-02-24T17:35:58.539+06:00Codeigniter help site<a href="http://www.phpeveryday.com/articles/CodeIgniter-Introduction-to-CodeIgniter-Framework-P146.html" target="_blank">http://www.phpeveryday.com/articles/CodeIgniter-Introduction-to-CodeIgniter-Framework-P146.html</a> <a href="http://www.developertutorials.com/tutorials/php/rapid-application-development-with-codeigniter-8-02-17/page4.html" target="_blank">http://www.developertutorials.com/tutorials/php/rapid-application-development-with-codeigniter-8-02-17/page4.html</a><br /><a href="http://opinionatedcoder.wordpress.com/2008/05/19/codeigniter-tutorial-part-2-htaccess/" target="_blank">http://opinionatedcoder.wordpress.com/2008/05/19/codeigniter-tutorial-part-2-htaccess/</a><br /><a href="http://godbit.com/article/introduction-to-code-igniter" target="_blank">http://godbit.com/article/introduction-to-code-igniter</a><br /><a href="http://godbit.com/article/introduction-to-code-igniter-part-2" target="_blank">http://godbit.com/article/introduction-to-code-igniter-part-2</a><br /><a href="http://godbit.com/article/introduction-to-code-igniter-part-3" target="_blank">http://godbit.com/article/introduction-to-code-igniter-part-3</a><br /><a href="http://afruj.wordpress.com/2008/05/02/some-codeigniter-tutorial-links/" target="_blank">http://afruj.wordpress.com/2008/05/02/some-codeigniter-tutorial-links/</a><br /><a href="http://www.tomcode.com/inside/codeigniter/userauth/test/" target="_blank">http://www.tomcode.com/inside/codeigniter/userauth/test/</a><br /><a href="http://michaelwales.com/tutorials/codeigniter-ajax-with-jquery/" target="_blank">CodeIgniter AJAX With jQuery</a><br /><a href="http://michaelwales.com/tutorials/codeigniter-ajax-with-jquery/2" target="_blank">CodeIgniter AJAX With jQuery-2</a><br /><a href="http://www.codeigniterdirectory.com/" target="_blank">http://www.codeigniterdirectory.com/</a><br /><a href="http://remysharp.com/2008/03/25/codeigniter/" target="_blank">http://remysharp.com/2008/03/25/codeigniter/</a><br /><a href="http://www.alexajax.com/" target="_blank">http://www.alexajax.com</a><br /><a href="http://codeigniter.com/forums/viewthread/73012/" target="_blank">CI and set_checkbox()</a><br /><a href="http://codeigniter.com/forums/viewthread/69949/" target="_blank">CI and set_checkbox()</a><br /><a href="http://codeextinguisher.com/index.php/documentation" target="_blank">http://codeextinguisher.com/index.php/documentation</a><br /><a href="http://michaelwales.com/tutorials/codeigniter-ajax-with-jquery/" target="_blank">http://michaelwales.com/tutorials/codeigniter-ajax-with-jquery/</a><br /><br /><strong><a href="http://michaelwales.com/tutorials/codeigniter-ajax-with-jquery/" target="_blank"></a>Codeigniter and Jquery</strong><br /><a href="http://www.mrforbes.com/wordpress/2007/05/13/a-quick-code-igniter-and-jquery-ajax-tutorial/" target="_blank">http://www.mrforbes.com/wordpress/2007/05/13/a-quick-code-igniter-and-jquery-ajax-tutorial/</a><br /><a href="http://littlebrain.org/2008/05/27/codeigniter-and-ajax-using-jquery-tutorial/" target="_blank">http://littlebrain.org/2008/05/27/codeigniter-and-ajax-using-jquery-tutorial/</a><br /><a href="http://www.alexajax.com/feedback" target="_blank">http://www.alexajax.com/feedback</a><br /><a href="http://codeigniter.com/wiki/AJAX_for_CodeIgniter/" target="_blank">http://codeigniter.com/wiki/AJAX_for_CodeIgniter/</a><br /><a href="http://blog.heuristicdesign.co.uk/archives/2008/02/01/code-igniter-authentication-with-erkana-auth/" target="_blank">http://blog.heuristicdesign.co.uk/archives/2008/02/01/code-igniter-authentication-with-erkana-auth/</a><br /><a href="http://codeigniter.com/wiki/Special:Categories" target="_blank">http://codeigniter.com/wiki/Special:Categories</a><br /><a href="http://codeigniter.com/wiki/FreakAuth/" target="_blank">http://codeigniter.com/wiki/FreakAuth/</a><br /><a href="http://afruj.wordpress.com/2008/07/15/more-information-on-codeigniter/" target="_blank">http://afruj.wordpress.com/2008/07/15/more-information-on-codeigniter/</a><br /><strong>CI templating</strong><br /><a href="http://maestric.com/en/doc/php/codeigniter_template" target="_blank">http://maestric.com/en/doc/php/codeigniter_template</a>Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com0tag:blogger.com,1999:blog-6638551178264579821.post-78488284414926175022009-02-24T15:19:00.006+06:002009-05-28T10:32:06.148+06:00Free Php Photo Gallery: SelectaPix Image GalleryLast week i googling for a Php photo gallery and found many. I try some of them and at last use <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">SelectaPix Image Gallery</a>. It seems very handy and useful to me as it is database supported. Though the <span style="font-weight: bold;">instructions</span> are very easy to implement, i found some error when i run the Gallery. It may be for that the <span style="font-style: italic; font-weight: bold;">config</span> file is not included everywhere correctly. Then i add this line <pre name="code" class="php">include('includes/config.php');</pre> to Two files (<span style="font-weight: bold; font-style: italic;">classes/top_cat.php</span> and <span style="font-weight: bold; font-style: italic;">classes/sub_cat.php</span>).<br />I add <a title="lightbox, lightbox javascript" href="http://www.huddletogether.com/projects/lightbox2/">lightbox Javascript</a> 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 <span style="font-weight: bold; font-style: italic;">classes/sub_cat.php </span><span>file </span>to bring lightbox in action :D<br /><br /><a title="totalheightsafety" href="http://totalheightsafety.co.nz/photogallery">SelectaPix Image Gallery with lightbox</a>.Noman Muhammadhttp://www.blogger.com/profile/12798958532874029193noreply@blogger.com3