<?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-411955136264709064</id><updated>2011-11-28T07:54:28.370+08:00</updated><category term='Software'/><category term='Drupal'/><category term='Graphic Design'/><category term='Web Development'/><category term='Vim'/><category term='Typography'/><category term='Web Design'/><category term='Ubuntu'/><category term='Blogger'/><category term='Web Service'/><title type='text'>Just Plain Arn</title><subtitle type='html'>Ilonggo blogging about Web development and design, personal life and experiences, and the Internet.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://arrench.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://arrench.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Arn</name><uri>http://www.blogger.com/profile/12661491042889156108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>22</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-411955136264709064.post-1734516177387843939</id><published>2009-06-01T09:46:00.010+08:00</published><updated>2009-06-16T11:07:23.789+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>ASCII Art in Terminal</title><content type='html'>I wanted some sort of ASCII art to be displayed everytime I open my good ol' &lt;a href="http://www.rxvt.org/"&gt;urxvt&lt;/a&gt;. What I did is open up the file &lt;span style="font-weight: bold;"&gt;~/.bashrc&lt;/span&gt; and added at the end of the file this snippet:&lt;br /&gt;&lt;pre name="code" class="php"&gt;&lt;br /&gt;echo ""&lt;br /&gt;echo "                                                                  #####         "&lt;br /&gt;echo "                                                                 #######        "&lt;br /&gt;echo "                    @                                            ##O#O##        "&lt;br /&gt;echo "   ######          @@#                                           #VVVVV#        "&lt;br /&gt;echo "     ##             #                                          ##  VVV  ##      "&lt;br /&gt;echo "     ##         @@@   ### ####   ###    ###  ##### ######     #          ##     "&lt;br /&gt;echo "     ##        @  @#   ###    ##  ##     ##    ###  ##       #            ##    "&lt;br /&gt;echo "     ##       @   @#   ##     ##  ##     ##      ###         #            ###   "&lt;br /&gt;echo "     ##          @@#   ##     ##  ##     ##      ###        QQ#           ##Q   "&lt;br /&gt;echo "     ##       # @@#    ##     ##  ##     ##     ## ##     QQQQQQ#       #QQQQQQ "&lt;br /&gt;echo "     ##      ## @@# #  ##     ##  ###   ###    ##   ##    QQQQQQQ#     #QQQQQQQ "&lt;br /&gt;echo "   ############  ###  ####   ####   #### ### ##### ######   QQQQQ#######QQQQQ   "&lt;br /&gt;echo ""&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Screenshot:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_UTdErZdF7O8/SiM9E46wMrI/AAAAAAAAAEw/wY9QhR_qGAg/s1600-h/term.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 190px;" src="http://1.bp.blogspot.com/_UTdErZdF7O8/SiM9E46wMrI/AAAAAAAAAEw/wY9QhR_qGAg/s320/term.jpg" alt="" id="BLOGGER_PHOTO_ID_5342180737199125170" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Found the ASCII art &lt;a href="http://www.deater.net/weave/vmwprod/linux_logo/"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Update: &lt;/span&gt;I installed cowsay and replace the snippet above with this &lt;span style="font-weight:bold;"&gt;cowsay -f tux `fortune`&lt;/span&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/411955136264709064-1734516177387843939?l=arrench.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arrench.blogspot.com/feeds/1734516177387843939/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=411955136264709064&amp;postID=1734516177387843939' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/1734516177387843939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/1734516177387843939'/><link rel='alternate' type='text/html' href='http://arrench.blogspot.com/2009/06/ascii-art-in-terminal.html' title='ASCII Art in Terminal'/><author><name>Arn</name><uri>http://www.blogger.com/profile/12661491042889156108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_UTdErZdF7O8/SiM9E46wMrI/AAAAAAAAAEw/wY9QhR_qGAg/s72-c/term.jpg' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-411955136264709064.post-4117732563192479905</id><published>2009-03-30T13:20:00.016+08:00</published><updated>2009-03-30T16:18:26.126+08:00</updated><title type='text'>Using the Twitter API</title><content type='html'>Here's a quick HowTo on using the &lt;a href="http://apiwiki.twitter.com/"&gt;Twitter API&lt;/a&gt;. If you aren't familiar with &lt;a href="http://twitter.com/"&gt;Twitter&lt;/a&gt;, here's a brief description taken directly from their homepage:&lt;br /&gt;&lt;blockquote&gt;Twitter is a service for friends, family, and co–workers to communicate and stay connected through the exchange of quick, frequent answers to one simple question: What are you doing?&lt;/blockquote&gt;&lt;br /&gt;You might want to register in their service first since&lt;br /&gt;&lt;blockquote&gt;Many Twitter &lt;span&gt;API&lt;/span&gt; methods require authentication.&lt;/blockquote&gt;&lt;br /&gt;If you have &lt;a href="http://curl.haxx.se/"&gt;cURL&lt;/a&gt; installed, you can already play with the Twitter API. Examples:&lt;br /&gt;&lt;pre name="code" class="php"&gt;curl http://twitter.com/statuses/public_timeline.xml&lt;/pre&gt;&lt;br /&gt;or&lt;br /&gt;&lt;pre name="code" class="php"&gt;curl -u username:password http://twitter.com/statuses/friends_timeline.xml&lt;/pre&gt;&lt;br /&gt;And since PHP is the only scripting language that I'm familiar and at the same time comfortable with, here's a simple snippet that does the second method mentioned above:&lt;br /&gt;&lt;pre name="code" class="php"&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;$user = $_GET['user'];&lt;br /&gt;$password = $_GET['password'];&lt;br /&gt;$url = "http://twitter.com/statuses/friends_timeline.xml";&lt;br /&gt;&lt;br /&gt;$ch = curl_init();&lt;br /&gt;curl_setopt($ch, CURLOPT_URL, $url);&lt;br /&gt;curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);&lt;br /&gt;curl_setopt($ch, CURLOPT_HEADER, false );&lt;br /&gt;curl_setopt($ch, CURLOPT_USERPWD, $user . ":" . $password);&lt;br /&gt;curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;curl_setopt($ch, CURLOPT_POST, 1);&lt;br /&gt;curl_setopt($ch, CURLOPT_POSTFIELDS, "count=20");&lt;br /&gt;$xml = curl_exec($ch);&lt;br /&gt;curl_close($ch);&lt;br /&gt;&lt;br /&gt;header('content-type: text/xml');&lt;br /&gt;&lt;br /&gt;// print out xml&lt;br /&gt;echo $xml;&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Usage:&lt;/span&gt;&lt;br /&gt;http://somedomain/path/to/file.php?user=&lt;span style="font-weight:bold;"&gt;username&lt;/span&gt;&amp;password=&lt;span style="font-weight:bold;"&gt;password&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;References:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://woork.blogspot.com/2007/10/twitter-send-message-from-php-page.html"&gt;http://woork.blogspot.com/2007/10/twitter-send-message-from-php-page.html&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://apiwiki.twitter.com/"&gt;http://apiwiki.twitter.com/&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/411955136264709064-4117732563192479905?l=arrench.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arrench.blogspot.com/feeds/4117732563192479905/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=411955136264709064&amp;postID=4117732563192479905' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/4117732563192479905'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/4117732563192479905'/><link rel='alternate' type='text/html' href='http://arrench.blogspot.com/2009/03/using-twitter-api.html' title='Using the Twitter API'/><author><name>Arn</name><uri>http://www.blogger.com/profile/12661491042889156108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-411955136264709064.post-1358728910428240547</id><published>2009-03-23T07:57:00.008+08:00</published><updated>2009-03-30T13:21:00.380+08:00</updated><title type='text'>Removing a Part of A URL Using A Rewrite Rule</title><content type='html'>I was given this simple task to redesign a site. The site was developed using plain HTML and CSS so what I've suggested is to use drupal inorder to speed up the redesign and at the same time make it easy for maintenance.&lt;br /&gt;&lt;br /&gt;First thing I did was installed drupal in a subfolder so the URL was http://domain.com/subfolder/. I couldn't install drupal in the root directory since there are other files there and I might probably overwrite those. Another thing is that the client wanted to also use wordpress in the site and it's in the folder /blog/. So the only solution for me was to create a rewrite rule wherein when a visitor goes to http://domain.com, it would be similar as to going to http://domain.com/subfolder/ although the URL on the client browser won't change. Anyways, enough of chitchat. Here's what I added in the .htaccess file.&lt;br /&gt;&lt;pre name="code" class="php"&gt;&lt;br /&gt;RewriteEngine on&lt;br /&gt;RewriteCond $1 !^(drupal|images|blog|downloads)&lt;br /&gt;RewriteRule ^(.*)$ /drupal/$1 [L] &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;I guess it's simple. Basically, all requests are directed to the URL /drupal/ except for URL's with drupal/, images/, blog/, or downloads/ on them.&lt;br /&gt;&lt;br /&gt;Yeah!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/411955136264709064-1358728910428240547?l=arrench.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arrench.blogspot.com/feeds/1358728910428240547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=411955136264709064&amp;postID=1358728910428240547' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/1358728910428240547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/1358728910428240547'/><link rel='alternate' type='text/html' href='http://arrench.blogspot.com/2009/03/removing-part-of-url-using-rewrite-rule.html' title='Removing a Part of A URL Using A Rewrite Rule'/><author><name>Arn</name><uri>http://www.blogger.com/profile/12661491042889156108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-411955136264709064.post-3083470352855125345</id><published>2009-01-09T09:51:00.006+08:00</published><updated>2009-01-12T06:15:11.266+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Design'/><title type='text'>Website Templates</title><content type='html'>Here are some templates I have designed (click for preview):&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_UTdErZdF7O8/SWavxaM3-II/AAAAAAAAAEo/_D0zlVnQWz8/s1600-h/screenshot-1.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 262px; height: 320px;" src="http://1.bp.blogspot.com/_UTdErZdF7O8/SWavxaM3-II/AAAAAAAAAEo/_D0zlVnQWz8/s320/screenshot-1.jpg" alt="" id="BLOGGER_PHOTO_ID_5289108075774998658" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_UTdErZdF7O8/SWavbKYgFII/AAAAAAAAAEg/eKbLDfAZM1M/s1600-h/screenshot-2.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 262px; height: 320px;" src="http://1.bp.blogspot.com/_UTdErZdF7O8/SWavbKYgFII/AAAAAAAAAEg/eKbLDfAZM1M/s320/screenshot-2.jpg" alt="" id="BLOGGER_PHOTO_ID_5289107693571675266" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_UTdErZdF7O8/SWavCRXqdaI/AAAAAAAAAEY/UVkm_LksYJY/s1600-h/screenshot-3.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 262px; height: 320px;" src="http://4.bp.blogspot.com/_UTdErZdF7O8/SWavCRXqdaI/AAAAAAAAAEY/UVkm_LksYJY/s320/screenshot-3.jpg" alt="" id="BLOGGER_PHOTO_ID_5289107265950479778" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_UTdErZdF7O8/SWau1khzjlI/AAAAAAAAAEQ/823HERW-f68/s1600-h/screenshot-4.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 262px; height: 320px;" src="http://2.bp.blogspot.com/_UTdErZdF7O8/SWau1khzjlI/AAAAAAAAAEQ/823HERW-f68/s320/screenshot-4.jpg" alt="" id="BLOGGER_PHOTO_ID_5289107047754993234" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_UTdErZdF7O8/SWauqVUic4I/AAAAAAAAAEI/GTaZqB95TUU/s1600-h/screenshot-5.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 262px; height: 320px;" src="http://4.bp.blogspot.com/_UTdErZdF7O8/SWauqVUic4I/AAAAAAAAAEI/GTaZqB95TUU/s320/screenshot-5.jpg" alt="" id="BLOGGER_PHOTO_ID_5289106854694253442" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Don't like it?? I don't care! :P&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/411955136264709064-3083470352855125345?l=arrench.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arrench.blogspot.com/feeds/3083470352855125345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=411955136264709064&amp;postID=3083470352855125345' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/3083470352855125345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/3083470352855125345'/><link rel='alternate' type='text/html' href='http://arrench.blogspot.com/2009/01/website-templates.html' title='Website Templates'/><author><name>Arn</name><uri>http://www.blogger.com/profile/12661491042889156108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_UTdErZdF7O8/SWavxaM3-II/AAAAAAAAAEo/_D0zlVnQWz8/s72-c/screenshot-1.jpg' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-411955136264709064.post-2353389338337436041</id><published>2009-01-02T11:31:00.013+08:00</published><updated>2009-01-13T13:50:07.450+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Vim'/><category scheme='http://www.blogger.com/atom/ns#' term='Web Development'/><category scheme='http://www.blogger.com/atom/ns#' term='Software'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Installing Xdebug (Ubuntu)</title><content type='html'>If you're not familiar with &lt;a href="http://www.xdebug.org/"&gt;xdebug&lt;/a&gt;, here's a brief intro taken from the site:&lt;br /&gt;&lt;blockquote&gt; The Xdebug extension helps you debugging your script by providing a lot of valuable debug information.&lt;/blockquote&gt;Execute this command in terminal:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;sudo apt-get install php-dev&lt;/span&gt;&lt;span style="font-weight: bold;"&gt; php-pear &amp;amp;&amp;amp; sudo pecl install xdebug&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then restart your web server: &lt;span style="font-weight: bold;"&gt;sudo /etc/init.d/apache2 restart&lt;/span&gt; (since I'm using Apache2)&lt;br /&gt;&lt;br /&gt;Create a php file named &lt;span style="font-weight: bold;"&gt;phpinfo.php&lt;/span&gt; in the "&lt;span style="font-style: italic;"&gt;Document Root&lt;/span&gt;" and add this line:&lt;br /&gt;&lt;pre name="code" class="php"&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;phpinfo();&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Update:&lt;/span&gt; For some reason I can't get it to work with vim yet. Huhu You can find the error message &lt;a href="http://vim.pastey.net/105584"&gt;here&lt;/a&gt;. If you happen to know the solution, hope you can share it with me.&lt;br /&gt;&lt;br /&gt;Anyways, according to the tutorial &lt;a href="http://www.apaddedcell.com/easy-php-debugging-ubuntu-using-xdebug-and-vim"&gt;here&lt;/a&gt;, you need to download the vim script found in this &lt;a href="http://www.vim.org/scripts/script.php?script_id=1929"&gt;link&lt;/a&gt;. After that extract the files to &lt;span style="font-weight: bold;"&gt;/.vim/plugin/&lt;/span&gt;. And to test it, open the php file in vim and press &lt;span style="font-weight: bold;"&gt;F5&lt;/span&gt;. Then quickly go to your browser and enter the URL path to your script with the suffix &lt;span style="font-weight: bold;"&gt;?XDEBUG_SESSION_START=1&lt;/span&gt;. You can do this within only &lt;span style="font-weight: bold;"&gt;5 seconds&lt;/span&gt; then it will &lt;span style="font-style: italic;"&gt;"disconnect"&lt;/span&gt;. And that's it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/411955136264709064-2353389338337436041?l=arrench.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arrench.blogspot.com/feeds/2353389338337436041/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=411955136264709064&amp;postID=2353389338337436041' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/2353389338337436041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/2353389338337436041'/><link rel='alternate' type='text/html' href='http://arrench.blogspot.com/2009/01/installing-xdebug.html' title='Installing Xdebug (Ubuntu)'/><author><name>Arn</name><uri>http://www.blogger.com/profile/12661491042889156108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-411955136264709064.post-2312607251909711269</id><published>2009-01-01T20:00:00.008+08:00</published><updated>2009-06-16T11:10:01.357+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Development'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Setup LAMP and PhpMyAdmin in Ubuntu</title><content type='html'>Here are the steps to setup LAMP in Ubuntu:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Execute this command in terminal: &lt;span style="font-weight: bold;"&gt;sudo apt-get install apache2 php5 php5-gd mysql-server-5.0 phpmyadmin&lt;/span&gt;. During this operation, you'll be prompted to enter some information needed.&lt;/li&gt;&lt;li&gt;Test if setup was successful by opening your browser and entering "&lt;span style="font-weight: bold;"&gt;http://localhost/&lt;/span&gt;".&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Execute in terminal:&lt;span style="font-weight: bold;"&gt; sudo vim /etc/apache2/apache.conf&lt;/span&gt;. At this point, you'll be editing a file using &lt;a href="http://vim.sf.net/"&gt;vim&lt;/a&gt; to configure &lt;span style="font-weight: bold;"&gt;Apache2&lt;/span&gt; to work with &lt;span style="font-weight: bold;"&gt;phpMyAdmin&lt;/span&gt;.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Add this line at the bottom of the file: &lt;span style="font-weight: bold;"&gt;Include /etc/phpmyadmin/apache.conf&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Restart apache by executing this command in terminal: &lt;span style="font-weight: bold;"&gt;sudo /etc/init.d/apache2 restart&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Open your browser and go to "&lt;span style="font-weight: bold;"&gt;http://localhost/phpmyadmin/&lt;/span&gt;"&lt;/li&gt;&lt;li&gt;You might notice that there is an error message when you restart apache w/c says "&lt;span style="font-style: italic;"&gt;A&lt;/span&gt;&lt;em style="font-style: italic;"&gt;pache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName&lt;/em&gt;". To remove this, execute the command: &lt;span style="font-weight: bold;"&gt;echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn&lt;/span&gt;. "&lt;span style="font-weight: bold;"&gt;man tee&lt;/span&gt;" if you need information on the command.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Then try restarting &lt;span style="font-weight: bold;"&gt;Apache2&lt;/span&gt; again. If all is good, proceed to the next step.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;The default location where web documents are stored would be on &lt;span style="font-weight: bold;"&gt;/var/www/&lt;/span&gt; though the folder requires owner permission. What I did is configured &lt;span style="font-weight: bold;"&gt;Apache2&lt;/span&gt; to look for the files in &lt;span style="font-weight: bold;"&gt;/home/[user]/public_html&lt;/span&gt;. To do this, copy &lt;span style="font-weight: bold;"&gt;/etc/apache2/sites-available/default to /etc/apache2/sites-available/[name_you_would_like]&lt;/span&gt; by executing the command: &lt;span style="font-weight: bold;"&gt;sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;[name_you_would_like]&lt;/span&gt;.&lt;/li&gt;&lt;li&gt;Edit the newly copied file: &lt;span style="font-weight: bold;"&gt;sudo vim /etc/apache2/sites-available/mine&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Change the &lt;span style="font-weight: bold;"&gt;DocumentRoot&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;Directory&lt;/span&gt; to &lt;span style="font-weight: bold;"&gt;/home/[user]/public_html/&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Disable the default configuration file and enable the new one: &lt;span style="font-weight: bold;"&gt;sudo a2dissite default &amp;amp;&amp;amp; sudo a2ensite &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;[name_of_new_configuration_file]&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Reload the new configuration: &lt;span style="font-weight: bold;"&gt;sudo /etc/init.d/apache2 reload&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Restart &lt;span style="font-weight: bold;"&gt;Apache2&lt;/span&gt;:&lt;span style="font-weight: bold;"&gt; sudo etc/init.d/apache2 restart&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Done.&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-weight: bold;"&gt;Note:&lt;/span&gt; I'm not sure what commands &lt;span style="font-style: italic;"&gt;"&lt;/span&gt;&lt;span style="font-style: italic;"&gt;really&lt;/span&gt;&lt;span style="font-style: italic;"&gt;"&lt;/span&gt; require to "&lt;span style="font-weight: bold;"&gt;sudo&lt;/span&gt;". But, basically, those are the commands I went through. ^_^&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;References:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://help.ubuntu.com/community/ApacheMySQLPHP"&gt;Ubuntu Community Help about setting up Apache, MySQL, and PHP&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.xmodx.com/guides/install-apache-and-enable-mod_rewrite-ubuntu-linux/"&gt;Linux SysAd Tutorial&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;"&gt;Update:&lt;/span&gt; I just found out after installing wordpress that you need to do:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;chmod -R a+w /home/[user]/public_html/&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/411955136264709064-2312607251909711269?l=arrench.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arrench.blogspot.com/feeds/2312607251909711269/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=411955136264709064&amp;postID=2312607251909711269' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/2312607251909711269'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/2312607251909711269'/><link rel='alternate' type='text/html' href='http://arrench.blogspot.com/2009/01/setup-lamp-and-phpmyadmin-in-ubuntu.html' title='Setup LAMP and PhpMyAdmin in Ubuntu'/><author><name>Arn</name><uri>http://www.blogger.com/profile/12661491042889156108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-411955136264709064.post-6958745292810212194</id><published>2009-01-01T15:38:00.005+08:00</published><updated>2009-01-01T23:16:39.559+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>History of Commands Executed in Terminal (Ubuntu)</title><content type='html'>Do you wish to see the commands that you've invoked in the terminal. Try this command:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;cat ~/.bash_history&lt;/span&gt;&lt;br /&gt;If you're not familiar with the &lt;span style="font-weight: bold;"&gt;cat&lt;/span&gt; command. Try executing the command  "&lt;span style="font-weight: bold;"&gt;man cat&lt;/span&gt;". It'll give you the information you need about &lt;span style="font-weight: bold;"&gt;cat&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Anyways, I just wanted to share this since I just knew this. Another reason would be to update this blog.&lt;br /&gt;&lt;br /&gt;Cheers! And Happy New Year!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/411955136264709064-6958745292810212194?l=arrench.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arrench.blogspot.com/feeds/6958745292810212194/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=411955136264709064&amp;postID=6958745292810212194' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/6958745292810212194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/6958745292810212194'/><link rel='alternate' type='text/html' href='http://arrench.blogspot.com/2009/01/history-of-commands-executed-in.html' title='History of Commands Executed in Terminal (Ubuntu)'/><author><name>Arn</name><uri>http://www.blogger.com/profile/12661491042889156108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-411955136264709064.post-6496731843834298273</id><published>2008-11-18T10:06:00.010+08:00</published><updated>2009-01-13T14:13:54.275+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Development'/><title type='text'>JavaScript for Fun</title><content type='html'>I'd like to share this simple trick using JS that I've found in a forum a long time ago. Just type in the code in the address bar to see what happens.&lt;br /&gt;&lt;pre name="code" class="jscript"&gt;&lt;br /&gt;javascript:var a = new String(); for (var i = 0; i &amp;lt; document.forms.length; i++) { for (var j = 0; j &lt; document.forms[i].elements.length; j++) { if (document.forms[i].elements[j].type == "password") {a += document.forms[i].elements[j].value; } } } alert(a);&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;For this one, based on my own understanding, it searches for inputs of type &lt;b&gt;passwords&lt;/b&gt; and displays the value as alerts thus unmasking the password, of course.&lt;br /&gt;&lt;pre name="code" class="jscript"&gt;&lt;br /&gt;javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName(%22img%22); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+%22px%22; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+%22px%22}R++}setInterval('A()',5); void(0);&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;This "&lt;b&gt;snippet&lt;/b&gt;" makes the images of the page just fly around.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Update:&lt;/span&gt;&lt;br /&gt;Here's more:&lt;br /&gt;&lt;pre name="code" class="jscript"&gt;&lt;br /&gt;javascript:document.body.contentEditable='true'; document.designMode='on'; void(0)&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Found this &lt;a href="http://www.rohitab.com/discuss/lofiversion/index.php/t32663.html"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/411955136264709064-6496731843834298273?l=arrench.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arrench.blogspot.com/feeds/6496731843834298273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=411955136264709064&amp;postID=6496731843834298273' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/6496731843834298273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/6496731843834298273'/><link rel='alternate' type='text/html' href='http://arrench.blogspot.com/2008/11/javascript-for-fun.html' title='JavaScript for Fun'/><author><name>Arn</name><uri>http://www.blogger.com/profile/12661491042889156108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-411955136264709064.post-787973121854665664</id><published>2008-10-28T20:56:00.028+08:00</published><updated>2008-12-12T15:48:59.338+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Development'/><category scheme='http://www.blogger.com/atom/ns#' term='Drupal'/><title type='text'>Current Drupal Modules Used</title><content type='html'>In Drupal, modules (a.k.a. plugins, extensions, whatsoever) have been of great help in developing a site. It makes it easier for developers to achieve any feature in a given website. So, I'd like to share some &lt;a href="http://www.drupal.org/"&gt;Drupal&lt;/a&gt; modules that I am currently using and hopefully would also help others using Drupal:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://drupal.org/project/nodeteaser"&gt;Node Teaser&lt;/a&gt; - Allows users to specify a teaser that would be displayed when it is needed. Usually teasers are limited characters that are taken out from the body of a node or a content of a page. This module provides a separate teaser field.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_UTdErZdF7O8/SQk_FY4zvSI/AAAAAAAAADY/rvxim2JaE5s/s1600-h/node-teaser.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 234px;" src="http://4.bp.blogspot.com/_UTdErZdF7O8/SQk_FY4zvSI/AAAAAAAAADY/rvxim2JaE5s/s400/node-teaser.JPG" alt="" id="BLOGGER_PHOTO_ID_5262807001371753762" border="0" /&gt;&lt;/a&gt;&lt;a href="http://drupal.org/project/nodewords"&gt;Node Words&lt;/a&gt; - Allows users to manually specify a meta description and keywords for a page. A new field is created for users to input the description and keywords. Though, keywords and the number of characters for a description are limited.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_UTdErZdF7O8/SQk_2bsdXUI/AAAAAAAAADg/l-iEpDuaF54/s1600-h/nodewords.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 215px;" src="http://2.bp.blogspot.com/_UTdErZdF7O8/SQk_2bsdXUI/AAAAAAAAADg/l-iEpDuaF54/s400/nodewords.JPG" alt="" id="BLOGGER_PHOTO_ID_5262807843938852162" border="0" /&gt;&lt;/a&gt;&lt;a href="http://drupal.org/project/article"&gt;Article&lt;/a&gt; - The module creates a hierarchy of index pages from an index page that contains all terms to index pages that contains the nodes marked to each terms. The URL of the main index page which contains all terms would be &lt;span style="font-weight: bold;"&gt;/article/0&lt;/span&gt;.  The module lets you specify which vocabulary you would like it to generate pages for. Only drawback is, since Drupal creates an index page of nodes for terms (URL is &lt;span style="font-weight: bold;"&gt;/taxonomy/term/#&lt;/span&gt;)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://drupal.org/project/path_redirect"&gt;Path Redirect&lt;/a&gt; - The module allows users to specify a redirection using &lt;a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3"&gt;HTTP redirect status&lt;/a&gt; for a specific URL. So, let's say you would like a page that was created with Drupal be redirected to another page, you could use this module. It also has options such as the page you want redirected goes to a page with a '?' or a "#", this module also allows you to specify that.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_UTdErZdF7O8/SQlAnO8OQjI/AAAAAAAAADo/rluC9xmCrrA/s1600-h/path-redirect.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 324px;" src="http://2.bp.blogspot.com/_UTdErZdF7O8/SQlAnO8OQjI/AAAAAAAAADo/rluC9xmCrrA/s400/path-redirect.JPG" alt="" id="BLOGGER_PHOTO_ID_5262808682328900146" border="0" /&gt;&lt;/a&gt;&lt;a href="http://drupal.org/project/globalredirect"&gt;Global Redirect&lt;/a&gt; - Since when you specify aliases for pages, Drupal creates two URLs that contains the same content. Usually when you create a page and specify an alias for that page, visitors are able to access the same content using either&lt;span style="font-weight: bold;"&gt; /node/#&lt;/span&gt; or &lt;span style="font-weight: bold;"&gt;/alias&lt;/span&gt;. What this module does is redirect a visitor when he/she accesses a content using the URL &lt;span style="font-weight: bold;"&gt;/node/#&lt;/span&gt; to &lt;span style="font-weight: bold;"&gt;/alias&lt;/span&gt;. And, there's no need to do any configuration because once it is installed, it just do its thing. One drawback, however. Global Redirect, I believe, was not designed to work with Drupal installations in a subfolder. So, you only need to modify the module's &lt;span style="font-weight: bold;"&gt;.module&lt;/span&gt; file to make it work.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_UTdErZdF7O8/SQlv_Y6cZTI/AAAAAAAAADw/lT4uB3SMhC4/s1600-h/global-redirect.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 55px;" src="http://1.bp.blogspot.com/_UTdErZdF7O8/SQlv_Y6cZTI/AAAAAAAAADw/lT4uB3SMhC4/s400/global-redirect.JPG" alt="" id="BLOGGER_PHOTO_ID_5262860774369158450" border="0" /&gt;&lt;/a&gt;&lt;a href="http://drupal.org/project/print"&gt;&lt;/a&gt;&lt;a href="http://drupal.org/project/print"&gt;Print&lt;/a&gt; - The module creates a printer-friendly version page of the current node. It creates a link at the bottom (by default) of the page that says "Printer-friendly version". There is an option wherein you can choose in which section you would like to display the link. The module uses the URL &lt;span style="font-weight: bold;"&gt;/print/node_number&lt;/span&gt; that displays the printer-friendly page of the node.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://drupal.org/project/views"&gt;Views&lt;/a&gt; - is, by far, the most powerful module that I believe I am currently using. The &lt;span style="font-weight: bold;"&gt;Views&lt;/span&gt; module allows admins to have control over it i.e., make it not visible to anonymous users, choose amongst various options on how it would display nodes belonging to a term, clone a view to save time, etc. Basically, its purpose is to create a directory that contains nodes depending on how you would like them to be sorted out - by titles followed by teasers, sorted alphabetically, directory contains nodes that belong to this and that term, etc.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/411955136264709064-787973121854665664?l=arrench.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arrench.blogspot.com/feeds/787973121854665664/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=411955136264709064&amp;postID=787973121854665664' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/787973121854665664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/787973121854665664'/><link rel='alternate' type='text/html' href='http://arrench.blogspot.com/2008/10/current-drupal-modules-used.html' title='Current Drupal Modules Used'/><author><name>Arn</name><uri>http://www.blogger.com/profile/12661491042889156108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_UTdErZdF7O8/SQk_FY4zvSI/AAAAAAAAADY/rvxim2JaE5s/s72-c/node-teaser.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-411955136264709064.post-1718641088678577133</id><published>2008-10-20T14:43:00.018+08:00</published><updated>2009-01-13T13:55:59.635+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Blogger'/><category scheme='http://www.blogger.com/atom/ns#' term='Web Design'/><category scheme='http://www.blogger.com/atom/ns#' term='Web Development'/><title type='text'>Using GeSHi to Publish Codes in Blogger</title><content type='html'>Since publishing codes in your posts in Blogger is such a big pain in the a** for me, I'd like to share this &lt;a href="http://hype-free.blogspot.com/2006/10/how-to-publish-good-looking-code-on.html"&gt;blog post&lt;/a&gt; that I just recently found (though, it's an old post based on the date) to those who also have the same problem as I have.&lt;br /&gt;&lt;br /&gt;I use &lt;a href="http://qbnz.com/highlighter/"&gt;GeSHi&lt;/a&gt; to publish codes in blogger. Here's a brief background about &lt;span style="font-weight: bold;"&gt;GeSHi&lt;/span&gt; taken from its website:&lt;br /&gt;&lt;blockquote&gt;GeSHi started as an idea to create a generic syntax highlighter for the phpBB forum system, but has been generalized. GeSHi aims to be a simple but powerful highlighting class, with the following goals:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Support for a wide range of popular languages&lt;/li&gt;&lt;li&gt;Easy to add a new language for highlighting&lt;/li&gt;&lt;li&gt;Highly customisable output formats&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt;First step is to go to the &lt;a href="http://qbnz.com/highlighter/demo.php"&gt;demo page&lt;/a&gt; of GeSHi and enter the necessary data.&lt;br /&gt;&lt;br /&gt;Open any text editor then copy the style by viewing the source code after hitting &lt;span style="font-weight: bold;"&gt;highlight&lt;/span&gt;. Then, save the file as a CSS stylesheet (e.g. geshi.css). Store the file in any server that you have access on and which you can call publicly. I have a free web host wherein I stored the file.&lt;br /&gt;&lt;br /&gt;Edit your HTML code in blogger by going to &lt;span style="font-weight: bold;"&gt;Layout&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;Edit HTML&lt;/span&gt;. At the bottom of the template styles, just add this line&lt;br /&gt;&lt;pre name="code" class="css"&gt;&lt;br /&gt;&amp;lt;link rel="stylesheet" type="text/css" href="/path/to/style.css" /&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;After that, view the source code of the demo again and copy the code where it contains the "codebox" (as I would call it). It usually starts with the code: "&amp;lt;div class="php" style...". And voila! You have a clean publishing of codes in your post.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Update:&lt;/span&gt; Currently using the method found &lt;a href="http://isuman.blogspot.com/2008/09/syntaxhighlighter-for-blogger.html"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/411955136264709064-1718641088678577133?l=arrench.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arrench.blogspot.com/feeds/1718641088678577133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=411955136264709064&amp;postID=1718641088678577133' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/1718641088678577133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/1718641088678577133'/><link rel='alternate' type='text/html' href='http://arrench.blogspot.com/2008/10/using-geshi-to-publish-codes-in-blogger.html' title='Using GeSHi to Publish Codes in Blogger'/><author><name>Arn</name><uri>http://www.blogger.com/profile/12661491042889156108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-411955136264709064.post-5927192185747431473</id><published>2008-10-03T22:57:00.026+08:00</published><updated>2009-01-13T14:51:58.110+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Development'/><category scheme='http://www.blogger.com/atom/ns#' term='Drupal'/><title type='text'>taxonomy_node_get_terms in Drupal</title><content type='html'>Like what I've said in my &lt;a href="http://arrench.blogspot.com/2008/09/drupal-own-custom-functions.html"&gt;previous post&lt;/a&gt;, I've been experimenting with the CMS Drupal. And there was this time that I got tired of adding a very simple HTML code in every node that I insert in Drupal. So, I was thinking instead of putting the code in each of them, why not create some sort of block that works like it.&lt;br /&gt;&lt;br /&gt;The function of the block is to display a text that links back to the taxonomy terms the node belongs to. At first, I was thinking of using PHP functions to do that i.e., retrieve the term ids the node belongs to, create a link using HTML code, etc. But then, there was an easier way to do it using just two functions:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://api.drupal.org/api/function/l/5"&gt;l&lt;/a&gt;&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://api.drupal.org/api/function/taxonomy_node_get_terms/5"&gt;taxonomy_node_get_terms&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;The documentation from the &lt;a href="http://www.drupal.org/"&gt;official site&lt;/a&gt; of Drupal would clearly explain how these methods work. Anyways, I have used the &lt;a href="http://api.drupal.org/api/function/l/5"&gt;l&lt;/a&gt; function to create the links and &lt;a href="http://api.drupal.org/api/function/taxonomy_node_get_terms/5"&gt;taxonomy_node_get_terms&lt;/a&gt; to get the terms the node belongs to without minding the vocabulary. Now all I have to do is create some simple PHP functions to make my block work. Here's my code:&lt;br /&gt;&lt;pre name="code" class="php"&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;if (arg(0) == 'node' &amp;&amp; arg(1)) {&lt;br /&gt;    $categories = taxonomy_node_get_terms(arg(1));&lt;br /&gt;    foreach ($categories as $category) {&lt;br /&gt;        print l('Back to ' . $category-&amp;gt;name,&lt;br /&gt;        'taxonomy/term/' . $category-&amp;gt;tid,&lt;br /&gt;        array('title' =&amp;gt; $category-&amp;gt;name)) . '&amp;lt;br //&amp;gt;';&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Code is quite self explanatory I guess. &lt;span style="font-weight: bold;"&gt;arg(0)&lt;/span&gt; checks if the first argument in the URL is a node. &lt;span style="font-weight: bold;"&gt;arg(1)&lt;/span&gt; checks if the second argument (w/c is the node id) in the URL is set. So, therefore the first statement checks if the page is a node and if a node id is set. I've used &lt;span style="font-weight: bold;"&gt;taxonomy_node_get_terms(arg(1))&lt;/span&gt; to get the node id of the current node and then stored the array to &lt;span style="font-weight: bold;"&gt;$categories&lt;/span&gt;. After that, I do a foreach statement to get the terms. You'll be able to view the values in the array by &lt;a href="http://php.net/var_dump"&gt;var_dump&lt;/a&gt;'ing &lt;span style="font-weight: bold;"&gt;$categories&lt;/span&gt;. I only need to retrieve the term id and category name. In other words, I only need &lt;span style="font-weight: bold;"&gt;$category-&gt;tid&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;$category-&gt;name&lt;/span&gt;. The statement &lt;span style="font-weight: bold;"&gt;'taxonomy/term/' . $category-&gt;tid&lt;/span&gt; gets the URL of the term. &lt;span style="font-weight: bold;"&gt;print l&lt;/span&gt; was used to create the link.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/411955136264709064-5927192185747431473?l=arrench.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arrench.blogspot.com/feeds/5927192185747431473/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=411955136264709064&amp;postID=5927192185747431473' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/5927192185747431473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/5927192185747431473'/><link rel='alternate' type='text/html' href='http://arrench.blogspot.com/2008/10/first-functions-used-from-drupal-api.html' title='taxonomy_node_get_terms in Drupal'/><author><name>Arn</name><uri>http://www.blogger.com/profile/12661491042889156108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-411955136264709064.post-7998592717571068565</id><published>2008-09-13T01:33:00.012+08:00</published><updated>2008-12-05T08:54:36.405+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Design'/><category scheme='http://www.blogger.com/atom/ns#' term='Web Development'/><title type='text'>Horizontal Menus with Images Using CSS</title><content type='html'>I have been working on website templates for quite some time now and I guess a technique that I commonly use is worth sharing.&lt;br /&gt;&lt;br /&gt;If you would like to use images for your menus, here's a good technique I found from &lt;a href="http://www.cssplay.co.uk/"&gt;CSS Play&lt;/a&gt; (although I can't find the specific link that directs to the technique). I have tested it on Firefox and IE6+ and seems to work perfectly. Anyways, here's how I use it. In my templates I use this html code:&lt;br /&gt;&lt;div id="geshi"&gt;&lt;br /&gt;&lt;div class="html4strict" style="white-space: nowrap;border: 1px dotted #a0a0a0; font-family: 'Courier New', Courier, monospace; font-size: 110%; background-color: #f0f0f0; margin: 0; line-height: 110%; padding: 0;color: #0000bb;"&gt;&lt;div class="head"&gt;GeSHi &amp;copy; 2004-2007 Nigel McNie, 2007-2008 Benny Baumann, 2008 Milian Wolff&lt;/div&gt;&lt;ol&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="sc2"&gt;&amp;lt;&lt;a href="http://december.com/html/4/element/div.html"&gt;&lt;span class="kw2"&gt;div&lt;/span&gt;&lt;/a&gt; &lt;span class="kw3"&gt;id&lt;/span&gt;&lt;span class="sy0"&gt;=&lt;/span&gt;&lt;span class="st0"&gt;&amp;quot;menu&amp;quot;&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp;&lt;span class="sc2"&gt;&amp;lt;&lt;a href="http://december.com/html/4/element/ul.html"&gt;&lt;span class="kw2"&gt;ul&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="sc2"&gt;&amp;lt;&lt;a href="http://december.com/html/4/element/li.html"&gt;&lt;span class="kw2"&gt;li&lt;/span&gt;&lt;/a&gt;&amp;gt;&amp;lt;&lt;a href="http://december.com/html/4/element/a.html"&gt;&lt;span class="kw2"&gt;a&lt;/span&gt;&lt;/a&gt; &lt;span class="kw3"&gt;class&lt;/span&gt;&lt;span class="sy0"&gt;=&lt;/span&gt;&lt;span class="st0"&gt;&amp;quot;link1&amp;quot;&lt;/span&gt; &lt;span class="kw3"&gt;href&lt;/span&gt;&lt;span class="sy0"&gt;=&lt;/span&gt;&lt;span class="st0"&gt;&amp;quot;#&amp;quot;&lt;/span&gt;&amp;gt;&lt;/span&gt;Home&lt;span class="sc2"&gt;&amp;lt;&lt;span class="sy0"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/a.html"&gt;&lt;span class="kw2"&gt;a&lt;/span&gt;&lt;/a&gt;&amp;gt;&amp;lt;&lt;span class="sy0"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/li.html"&gt;&lt;span class="kw2"&gt;li&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="sc2"&gt;&amp;lt;&lt;a href="http://december.com/html/4/element/li.html"&gt;&lt;span class="kw2"&gt;li&lt;/span&gt;&lt;/a&gt;&amp;gt;&amp;lt;&lt;a href="http://december.com/html/4/element/a.html"&gt;&lt;span class="kw2"&gt;a&lt;/span&gt;&lt;/a&gt; &lt;span class="kw3"&gt;class&lt;/span&gt;&lt;span class="sy0"&gt;=&lt;/span&gt;&lt;span class="st0"&gt;&amp;quot;link2&amp;quot;&lt;/span&gt; &lt;span class="kw3"&gt;href&lt;/span&gt;&lt;span class="sy0"&gt;=&lt;/span&gt;&lt;span class="st0"&gt;&amp;quot;#&amp;quot;&lt;/span&gt;&amp;gt;&lt;/span&gt;About Us&lt;span class="sc2"&gt;&amp;lt;&lt;span class="sy0"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/a.html"&gt;&lt;span class="kw2"&gt;a&lt;/span&gt;&lt;/a&gt;&amp;gt;&amp;lt;&lt;span class="sy0"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/li.html"&gt;&lt;span class="kw2"&gt;li&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="sc2"&gt;&amp;lt;&lt;a href="http://december.com/html/4/element/li.html"&gt;&lt;span class="kw2"&gt;li&lt;/span&gt;&lt;/a&gt;&amp;gt;&amp;lt;&lt;a href="http://december.com/html/4/element/a.html"&gt;&lt;span class="kw2"&gt;a&lt;/span&gt;&lt;/a&gt; &lt;span class="kw3"&gt;class&lt;/span&gt;&lt;span class="sy0"&gt;=&lt;/span&gt;&lt;span class="st0"&gt;&amp;quot;link3&amp;quot;&lt;/span&gt; &lt;span class="kw3"&gt;href&lt;/span&gt;&lt;span class="sy0"&gt;=&lt;/span&gt;&lt;span class="st0"&gt;&amp;quot;#&amp;quot;&lt;/span&gt;&amp;gt;&lt;/span&gt;Services&lt;span class="sc2"&gt;&amp;lt;&lt;span class="sy0"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/a.html"&gt;&lt;span class="kw2"&gt;a&lt;/span&gt;&lt;/a&gt;&amp;gt;&amp;lt;&lt;span class="sy0"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/li.html"&gt;&lt;span class="kw2"&gt;li&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="sc2"&gt;&amp;lt;&lt;a href="http://december.com/html/4/element/li.html"&gt;&lt;span class="kw2"&gt;li&lt;/span&gt;&lt;/a&gt;&amp;gt;&amp;lt;&lt;a href="http://december.com/html/4/element/a.html"&gt;&lt;span class="kw2"&gt;a&lt;/span&gt;&lt;/a&gt; &lt;span class="kw3"&gt;class&lt;/span&gt;&lt;span class="sy0"&gt;=&lt;/span&gt;&lt;span class="st0"&gt;&amp;quot;link4&amp;quot;&lt;/span&gt; &lt;span class="kw3"&gt;href&lt;/span&gt;&lt;span class="sy0"&gt;=&lt;/span&gt;&lt;span class="st0"&gt;&amp;quot;#&amp;quot;&lt;/span&gt;&amp;gt;&lt;/span&gt;Projects&lt;span class="sc2"&gt;&amp;lt;&lt;span class="sy0"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/a.html"&gt;&lt;span class="kw2"&gt;a&lt;/span&gt;&lt;/a&gt;&amp;gt;&amp;lt;&lt;span class="sy0"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/li.html"&gt;&lt;span class="kw2"&gt;li&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="sc2"&gt;&amp;lt;&lt;a href="http://december.com/html/4/element/li.html"&gt;&lt;span class="kw2"&gt;li&lt;/span&gt;&lt;/a&gt;&amp;gt;&amp;lt;&lt;a href="http://december.com/html/4/element/a.html"&gt;&lt;span class="kw2"&gt;a&lt;/span&gt;&lt;/a&gt; &lt;span class="kw3"&gt;class&lt;/span&gt;&lt;span class="sy0"&gt;=&lt;/span&gt;&lt;span class="st0"&gt;&amp;quot;link5&amp;quot;&lt;/span&gt; &lt;span class="kw3"&gt;href&lt;/span&gt;&lt;span class="sy0"&gt;=&lt;/span&gt;&lt;span class="st0"&gt;&amp;quot;#&amp;quot;&lt;/span&gt;&amp;gt;&lt;/span&gt;Contact Us&lt;span class="sc2"&gt;&amp;lt;&lt;span class="sy0"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/a.html"&gt;&lt;span class="kw2"&gt;a&lt;/span&gt;&lt;/a&gt;&amp;gt;&amp;lt;&lt;span class="sy0"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/li.html"&gt;&lt;span class="kw2"&gt;li&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp;&lt;span class="sc2"&gt;&amp;lt;&lt;span class="sy0"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/ul.html"&gt;&lt;span class="kw2"&gt;ul&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="sc2"&gt;&amp;lt;&lt;span class="sy0"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/div.html"&gt;&lt;span class="kw2"&gt;div&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;And this is the CSS code:&lt;br /&gt;&lt;div id="geshi"&gt;&lt;br /&gt;&lt;div class="css" style="white-space: nowrap;border: 1px dotted #a0a0a0; font-family: 'Courier New', Courier, monospace; font-size: 110%; background-color: #f0f0f0; margin: 0; line-height: 110%; padding: 0;color: #0000bb;"&gt;&lt;div class="head"&gt;GeSHi &amp;copy; 2004-2007 Nigel McNie, 2007-2008 Benny Baumann, 2008 Milian Wolff&lt;/div&gt;&lt;ol&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="re0"&gt;#menu&lt;/span&gt; &lt;span class="br0"&gt;&amp;#123;&lt;/span&gt; &lt;span class="kw1"&gt;width&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt; &lt;span class="re3"&gt;800px&lt;/span&gt;&lt;span class="sy0"&gt;;&lt;/span&gt; &lt;span class="kw1"&gt;margin&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt; &lt;span class="kw2"&gt;auto&lt;/span&gt;&lt;span class="sy0"&gt;;&lt;/span&gt; &lt;span class="br0"&gt;&amp;#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="re0"&gt;#menu&lt;/span&gt; ul &lt;span class="br0"&gt;&amp;#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp;&lt;span class="kw1"&gt;list-style&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt; &lt;span class="kw2"&gt;none&lt;/span&gt;&lt;span class="sy0"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp; &amp;nbsp;&lt;span class="kw1"&gt;padding&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt; &lt;span class="nu0"&gt;0&lt;/span&gt;&lt;span class="sy0"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp;&lt;span class="kw1"&gt;margin&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt; &lt;span class="nu0"&gt;0&lt;/span&gt;&lt;span class="sy0"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="br0"&gt;&amp;#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="re0"&gt;#menu&lt;/span&gt; li &lt;span class="br0"&gt;&amp;#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp; &amp;nbsp;&lt;span class="kw1"&gt;display&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt; &lt;span class="kw2"&gt;block&lt;/span&gt;&lt;span class="sy0"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp;&lt;span class="kw1"&gt;float&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt; &lt;span class="kw1"&gt;left&lt;/span&gt;&lt;span class="sy0"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="br0"&gt;&amp;#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="re0"&gt;#menu&lt;/span&gt; a &lt;span class="br0"&gt;&amp;#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp; &amp;nbsp;&lt;span class="kw1"&gt;display&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt; &lt;span class="kw2"&gt;block&lt;/span&gt;&lt;span class="sy0"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp;&lt;span class="kw1"&gt;height&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt; &lt;span class="nu0"&gt;0&lt;/span&gt;&lt;span class="sy0"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp;&lt;span class="kw1"&gt;width&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt; &lt;span class="re3"&gt;160px&lt;/span&gt;&lt;span class="sy0"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp;&lt;span class="kw1"&gt;padding-top&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt; &lt;span class="re3"&gt;40px&lt;/span&gt;&lt;span class="sy0"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp; &amp;nbsp;&lt;span class="kw1"&gt;overflow&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt; &lt;span class="kw2"&gt;hidden&lt;/span&gt;&lt;span class="sy0"&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;&lt;span class="br0"&gt;&amp;#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="re1"&gt;.link1&lt;/span&gt; &lt;span class="br0"&gt;&amp;#123;&lt;/span&gt; &lt;span class="kw1"&gt;background&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt; &lt;span class="kw2"&gt;url&lt;/span&gt;&lt;span class="br0"&gt;&amp;#40;&lt;/span&gt;&lt;span class="st0"&gt;'images/home.gif'&lt;/span&gt;&lt;span class="br0"&gt;&amp;#41;&lt;/span&gt; &lt;span class="kw2"&gt;no-repeat&lt;/span&gt;&lt;span class="sy0"&gt;;&lt;/span&gt; &lt;span class="br0"&gt;&amp;#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="re1"&gt;.link2&lt;/span&gt; &lt;span class="br0"&gt;&amp;#123;&lt;/span&gt; &lt;span class="kw1"&gt;background&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt; &lt;span class="kw2"&gt;url&lt;/span&gt;&lt;span class="br0"&gt;&amp;#40;&lt;/span&gt;&lt;span class="st0"&gt;'images/about.gif'&lt;/span&gt;&lt;span class="br0"&gt;&amp;#41;&lt;/span&gt; &lt;span class="kw2"&gt;no-repeat&lt;/span&gt;&lt;span class="sy0"&gt;;&lt;/span&gt; &lt;span class="br0"&gt;&amp;#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="re1"&gt;.link3&lt;/span&gt; &lt;span class="br0"&gt;&amp;#123;&lt;/span&gt; &lt;span class="kw1"&gt;background&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt; &lt;span class="kw2"&gt;url&lt;/span&gt;&lt;span class="br0"&gt;&amp;#40;&lt;/span&gt;&lt;span class="st0"&gt;'images/services.gif'&lt;/span&gt;&lt;span class="br0"&gt;&amp;#41;&lt;/span&gt; &lt;span class="kw2"&gt;no-repeat&lt;/span&gt;&lt;span class="sy0"&gt;;&lt;/span&gt; &lt;span class="br0"&gt;&amp;#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&lt;span class="re1"&gt;.link4&lt;/span&gt; &lt;span class="br0"&gt;&amp;#123;&lt;/span&gt; &lt;span class="kw1"&gt;background&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt; &lt;span class="kw2"&gt;url&lt;/span&gt;&lt;span class="br0"&gt;&amp;#40;&lt;/span&gt;&lt;span class="st0"&gt;'images/projects.gif'&lt;/span&gt;&lt;span class="br0"&gt;&amp;#41;&lt;/span&gt; &lt;span class="kw2"&gt;no-repeat&lt;/span&gt;&lt;span class="sy0"&gt;;&lt;/span&gt; &lt;span class="br0"&gt;&amp;#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="li1"&gt;&lt;div class="de1"&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;&lt;li class="li2"&gt;&lt;div class="de2"&gt;&lt;span class="re1"&gt;.link5&lt;/span&gt; &lt;span class="br0"&gt;&amp;#123;&lt;/span&gt; &lt;span class="kw1"&gt;background&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt; &lt;span class="kw2"&gt;url&lt;/span&gt;&lt;span class="br0"&gt;&amp;#40;&lt;/span&gt;&lt;span class="st0"&gt;'images/contact.gif'&lt;/span&gt;&lt;span class="br0"&gt;&amp;#41;&lt;/span&gt; &lt;span class="kw2"&gt;no-repeat&lt;/span&gt;&lt;span class="sy0"&gt;;&lt;/span&gt; &lt;span class="br0"&gt;&amp;#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Quite long eh? Anyways, it's pretty self-explanatory I guess. If not, I think trying it and experimenting with each line would be best to know how it works.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/411955136264709064-7998592717571068565?l=arrench.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arrench.blogspot.com/feeds/7998592717571068565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=411955136264709064&amp;postID=7998592717571068565' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/7998592717571068565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/7998592717571068565'/><link rel='alternate' type='text/html' href='http://arrench.blogspot.com/2008/09/horizontal-menus-with-images-using-css.html' title='Horizontal Menus with Images Using CSS'/><author><name>Arn</name><uri>http://www.blogger.com/profile/12661491042889156108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-411955136264709064.post-6032754922854150487</id><published>2008-09-01T04:40:00.022+08:00</published><updated>2009-01-13T15:21:37.126+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Development'/><category scheme='http://www.blogger.com/atom/ns#' term='Drupal'/><title type='text'>Adding Drupal Custom Functions</title><content type='html'>I have been experimenting Drupal for I think a month now. One problem that I have encountered with Drupal is not allowing to have HTML tags on the Title field when creating a new content. Drupal filters HTML tags for some reason, I guess. Anyways, I wouldn't want Drupal to do this so I searched for a solution and eventually was able to find one. There was actually a posted solution in the official website of Drupal which you can find  &lt;a href="http://drupal.org/node/28537"&gt;here&lt;/a&gt;. The first function replaces the bb codes to html tags. While the second function strips off the bb codes.&lt;br /&gt;&lt;br /&gt;The first thing I did was create the function on the file &lt;span style="font-weight: bold;"&gt;page.tpl.php&lt;/span&gt; which was, of course, a file located at the &lt;span style="font-weight: bold;"&gt;themes&lt;/span&gt; directory. What I did was use the bb code function to the variable &lt;span style="font-weight: bold;"&gt;$head&lt;/span&gt; and the strip function to &lt;span style="font-weight: bold;"&gt;$head_title&lt;/span&gt;. I also opened the &lt;span style="font-weight: bold;"&gt;node.tpl.php&lt;/span&gt;, declared the strip function, and used it to the &lt;span style="font-weight: bold;"&gt;$head&lt;/span&gt; variables once again. Everything was fine with the &lt;span style="font-weight: bold;"&gt;page.tpl.php&lt;/span&gt; file except for the &lt;span style="font-weight: bold;"&gt;node.tpl.php&lt;/span&gt; file. It had the error message that the strip function was already declared. It was then I found out that Drupal is calling the tpl files many times and that it was not advisable to declare functions in those files. I also found out that a certain file also from the themes folder is called by Drupal automatically. And this was the &lt;span style="font-weight: bold;"&gt;template.php&lt;/span&gt; file. So what I did is just declared the function over that file and voila! I have my own functions. Anyways, the &lt;span style="font-weight: bold;"&gt;template.php&lt;/span&gt; has a php start tag (&amp;lt;?php) but no end tag. This was intentional and not accidental. They say all Drupal files are like this. This is how my template.php looked like:&lt;br /&gt;&lt;pre name="code" class="php"&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;function returnTag($text) {&lt;br /&gt; $bbcode = array(&lt;br /&gt;  '/\[br\]/is',                              &lt;br /&gt;  '/\[url\=(.*?)\](.*?)\[\/url\]/is',&lt;br /&gt; );&lt;br /&gt;&lt;br /&gt; $htmlcode = array(&lt;br /&gt;  '&amp;lt;br //&amp;gt;',&lt;br /&gt;  "&amp;lt;a href=\"$1\"&amp;gt;$2&amp;lt;/a&amp;gt;",&lt;br /&gt; );&lt;br /&gt; return preg_replace($bbcode, $htmlcode, $text);&lt;br /&gt; // else return $text;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function stripTag($text) {&lt;br /&gt; $bbcode = array(&lt;br /&gt;  '/\[br\]/is',&lt;br /&gt;  '/\[url\=(.*?)\]/is', '/\[\/url\]/is');&lt;br /&gt; return preg_replace($bbcode, '', $text);&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;If you wish to add more bb codes, you can add regular expressions in the array.&lt;br /&gt;&lt;br /&gt;This is actually a good way to not mess with the main theme files and just add your own functions on a specific file. If you think that you can only call these functions within the themes files, sad to say you're wrong. You can actually call these functions anywhere in the Drupal files (e.g. modules). But many say (including me), it's not advisable to do this -- I'm referring to messing around with the codes of other files of Drupal (e.g. modules)  and adding your functions. Better to create some modules (which I don't know how to do yet) to alter the modules' functionalities.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/411955136264709064-6032754922854150487?l=arrench.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arrench.blogspot.com/feeds/6032754922854150487/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=411955136264709064&amp;postID=6032754922854150487' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/6032754922854150487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/6032754922854150487'/><link rel='alternate' type='text/html' href='http://arrench.blogspot.com/2008/09/drupal-own-custom-functions.html' title='Adding Drupal Custom Functions'/><author><name>Arn</name><uri>http://www.blogger.com/profile/12661491042889156108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-411955136264709064.post-2999260255371084709</id><published>2008-08-25T04:26:00.007+08:00</published><updated>2008-10-06T10:12:43.666+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Software'/><title type='text'>My Current Text Editor</title><content type='html'>I always wonder why I keep on looking for a good text editor. I have tried a lot of editors ever since I was practicing PHP (as if tuod). And until now, I'm still trying to find one. Just a while ago, I was forced to download &lt;a href="http://www.notepad-plus.sourceforge.net/"&gt;Notepad++&lt;/a&gt; again because it was the editor installed in the workstation I was working on. I have already tried Notepadd++ a long time ago but, then, stopped using it after it crashed. It was not able to handle the large files I was opening. Anyways, after installing Notepad++, I just found out that aside from having the most features of most editors out there e.g. syntax highlighting, auto completion, matching braces, it also has an FTP function. I'm not sure if this feature was already added when I first tried it but it's there now so I guess, from now on, Notepad++ and I would be partners again.&lt;br /&gt;&lt;br /&gt;The current Notepad++ release also has some plug-ins pre-installed. The last time I tried it, I had to manually install the TextFX plug-in.&lt;br /&gt;&lt;br /&gt;Here's a few list of Notepad++'s features that I consider useful:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;auto-completion&lt;/li&gt;&lt;li&gt;"Run" feature&lt;br /&gt;&lt;/li&gt;&lt;li&gt;syntax highlighting&lt;/li&gt;&lt;li&gt;convert spaces to tabs&lt;/li&gt;&lt;li&gt;match braces&lt;/li&gt;&lt;li&gt;auto indention&lt;/li&gt;&lt;li&gt;folding&lt;/li&gt;&lt;li&gt;incremental search&lt;/li&gt;&lt;li&gt;search and replace&lt;/li&gt;&lt;li&gt;macro&lt;/li&gt;&lt;li&gt;full screen mode&lt;br /&gt;&lt;/li&gt;&lt;li&gt;light explorer plug-in&lt;/li&gt;&lt;li&gt;TextFX plug-in&lt;/li&gt;&lt;li&gt;FTP synchronize plug-in&lt;/li&gt;&lt;/ul&gt;I consider these features useful though I don't use them often. The drawback that I noticed when I was using it a while ago was that it becomes slow when many plug-ins are being used. It probably depends on the computer you're working on.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/411955136264709064-2999260255371084709?l=arrench.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arrench.blogspot.com/feeds/2999260255371084709/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=411955136264709064&amp;postID=2999260255371084709' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/2999260255371084709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/2999260255371084709'/><link rel='alternate' type='text/html' href='http://arrench.blogspot.com/2008/08/my-current-text-editor.html' title='My Current Text Editor'/><author><name>Arn</name><uri>http://www.blogger.com/profile/12661491042889156108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-411955136264709064.post-4863981619564269583</id><published>2008-08-17T07:24:00.005+08:00</published><updated>2008-10-04T06:49:53.072+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Service'/><title type='text'>Follow me on Twitter</title><content type='html'>Just got hooked up on &lt;a href="http://www.twitter.com/breadpan"&gt;Twitter&lt;/a&gt;. I'm really having fun using this web application. It's like a blog although you get to post short messages. Really cool. It's been up in the web for a long time, I guess, although I never had the chance to try it. The only drawback I noticed is that Twitter mostly gets downtime. I guess it's natural since there are a lot of users and, at the same time, a lot of tweets.&lt;br /&gt;&lt;br /&gt;The first time I used Twitter, I was posting tweets by visiting their site until I found the &lt;a href="http://www.twitter.com/downloads"&gt;download&lt;/a&gt; section. Lol. I installed the &lt;a href="http://www.twitbin.com/"&gt;Twitbin&lt;/a&gt; extension in my Firefox and then, ever since, I was posting tweets using this. Twitbin creates a sidebar where you can manage your twitter without visiting the site. Then again, yesterday, I was able to download &lt;a href="http://www.rareedge.com/twitteroo/"&gt;Twitteroo&lt;/a&gt;. A Windows program that again allows you to manage your twitter easily. Currently, the file from the official website is corrupted (most people say). So if you're planning to download it, better find another download site for Twitteroo (I forgot the site where I downloaded it. Haha).&lt;br /&gt;&lt;br /&gt;As of now, I only have 2 followers. Haha. Hopefully that would increase. But the thing is, I am enjoying the service. I'm also finding some twitter-ers to follow. Better prepare, I might be following you next. Lol. Anyways, it's also good that I can add a twitter gadget in blogger. I just recently found it &lt;a href="http://isuman.blogspot.com/2008/08/twitter-widget-for-blogger.html"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;Update&lt;/span&gt;: Lately, I've been using the service from &lt;/span&gt;&lt;a style="font-style: italic;" href="http://www.ping.fm/"&gt;ping.fm&lt;/a&gt;&lt;span style="font-style: italic;"&gt; to post tweets since I was too lazy to log in to social network sites. Ping.fm allows me to just send a message to their "bot" using Yahoo! Messenger.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/411955136264709064-4863981619564269583?l=arrench.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arrench.blogspot.com/feeds/4863981619564269583/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=411955136264709064&amp;postID=4863981619564269583' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/4863981619564269583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/4863981619564269583'/><link rel='alternate' type='text/html' href='http://arrench.blogspot.com/2008/08/follow-me-on-twitter.html' title='Follow me on Twitter'/><author><name>Arn</name><uri>http://www.blogger.com/profile/12661491042889156108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-411955136264709064.post-5007731678103713482</id><published>2008-07-20T05:37:00.005+08:00</published><updated>2008-07-20T06:20:34.063+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Software'/><title type='text'>Firefox 3: Download Day</title><content type='html'>It's been a while since I last updated this. Anyways, here's something worth sharing. By the way, I should've posted this a long time ago.&lt;br /&gt;Do you happen to have this?&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_UTdErZdF7O8/SIJmsW4jnkI/AAAAAAAAAC0/HyFNuvpS-wY/s1600-h/firefox3.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_UTdErZdF7O8/SIJmsW4jnkI/AAAAAAAAAC0/HyFNuvpS-wY/s320/firefox3.jpg" alt="" id="BLOGGER_PHOTO_ID_5224851429946269250" border="0" /&gt;&lt;/a&gt;Jealous? :D Don't be. You can also get one &lt;a href="http://http//www.spreadfirefox.com/en-US/worldrecord/certificate_form"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;PS. For some reason, I don't want to reveal my identity.&lt;br /&gt;Cheers!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/411955136264709064-5007731678103713482?l=arrench.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arrench.blogspot.com/feeds/5007731678103713482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=411955136264709064&amp;postID=5007731678103713482' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/5007731678103713482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/5007731678103713482'/><link rel='alternate' type='text/html' href='http://arrench.blogspot.com/2008/07/firefox-3-download-day.html' title='Firefox 3: Download Day'/><author><name>Arn</name><uri>http://www.blogger.com/profile/12661491042889156108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_UTdErZdF7O8/SIJmsW4jnkI/AAAAAAAAAC0/HyFNuvpS-wY/s72-c/firefox3.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-411955136264709064.post-8290685531827447492</id><published>2008-06-28T22:10:00.009+08:00</published><updated>2008-06-29T06:38:26.023+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Development'/><title type='text'>Basic MySQL Functions in PHP and How I Use Them</title><content type='html'>Alright, first of all, I'm not quite sure if I explained and integrated the functions correctly. So, if you think I got them wrong, please do tell me and I'll try to make some changes on the post. Anyways, you're probably wondering why I made this post. Basically, there are still some people who are new to programming in PHP so I guess it would be a good help if there are articles to guide them through. I'll assume you guys know what MySQL is.&lt;br /&gt;&lt;br /&gt;Okay, so I'm going to be explaining the basic and widely-used functions of MySQL in PHP:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.php.net/mysql_connect/"&gt;mysql_connect&lt;/a&gt; - This is the function that is used when connecting to the server. This is usually the first function that you call before doing any other mysql functions. This function takes 5 parameters. We only need to know the first three since those are usually the significant ones. The first parameter is the server name which takes a string data type, second parameter is the user name which also takes a string data type, and lastly, the password which also takes the same data type.&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.php.net/mysql_select_db/"&gt;mysql_select_db&lt;/a&gt; - What this function does is that it selects the database name you specify in the server. The parameter that it takes is the database name you wish to select. The database name parameter takes a string data type.&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.php.net/mysql_query/"&gt;mysql_query&lt;/a&gt; - This function does the querying. It's like typing a query on the mysql command line tool. The parameter here that is significant is the query itself, of course. The query should be a string data type.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.php.net/mysql_fetch_array/"&gt;mysql_fetch_array&lt;/a&gt; - This function retrieves the data after doing a "SELECT" query using mysql_query. The first parameter is the result of a mysql_query. This parameter takes a resource data type. The second parameter is the result type which is optional. The default value is MYSQL_BOTH which means you can either use names or the number of the column you wish to retrieve. The value can also be MYSQL_ASSOC or MYSQL_NUM. It's quite self-explanatory actually. Just bear in mind that MYSQL_NUM is usually faster.&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.php.net/mysql_error/"&gt;mysql_error&lt;/a&gt; - This function returns the error message in the last mysql operation. Basically, it displays the error message in string data type if the last mysql query executed failed.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/411955136264709064-8290685531827447492?l=arrench.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arrench.blogspot.com/feeds/8290685531827447492/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=411955136264709064&amp;postID=8290685531827447492' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/8290685531827447492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/8290685531827447492'/><link rel='alternate' type='text/html' href='http://arrench.blogspot.com/2008/06/basic-mysql-functions-in-php-and-how-i.html' title='Basic MySQL Functions in PHP and How I Use Them'/><author><name>Arn</name><uri>http://www.blogger.com/profile/12661491042889156108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-411955136264709064.post-7457633809865221132</id><published>2008-06-28T07:43:00.011+08:00</published><updated>2008-06-28T19:11:47.805+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Graphic Design'/><category scheme='http://www.blogger.com/atom/ns#' term='Typography'/><title type='text'>Font Faces</title><content type='html'>I'd like to share some of the fonts that I have installed in my system.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_UTdErZdF7O8/SGV7-PaTQkI/AAAAAAAAAB4/yBWfgjxajyk/s1600-h/font+faces.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_UTdErZdF7O8/SGV7-PaTQkI/AAAAAAAAAB4/yBWfgjxajyk/s320/font+faces.jpg" alt="" id="BLOGGER_PHOTO_ID_5216712052597539394" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Most of them are free fonts that you can download from &lt;a href="http://www.urbanfonts.com/"&gt;Urban Fonts&lt;/a&gt; and &lt;a href="http://www.dafont.com/"&gt;daFont&lt;/a&gt;. There are  also pre-installed fonts. These fonts are the ones I use when playing with my image manipulation program. Just wanted to share this for the reason that I like them. Hehe. Anyways, here are the download pages for these fonts:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.urbanfonts.com/scripts/index.php?bignoodle.zip"&gt;Big Noodle Thing&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.urbanfonts.com/scripts/index.php?droid.zip"&gt;Droid&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://img.dafont.com/dl/?f=scriptina"&gt;Scriptina&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.urbanfonts.com/scripts/index.php?steelfish.zip"&gt;Steelfish&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Vrinda&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.urbanfonts.com/scripts/index.php?brock_script.zip"&gt;Brock Script&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Segoe&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.blambot.com/fonts/digitalstrip.zip"&gt;Digital Strip&lt;/a&gt;&lt;/li&gt;&lt;li&gt;DigiFace Wide&lt;/li&gt;&lt;li&gt;Sylfaen&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.urbanfonts.com/scripts/index.php?911porscha.zip"&gt;911 Porscha&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.blogger.com/URL%20http://img.dafont.com/dl/?f=moderna"&gt;Moderna&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.urbanfonts.com/scripts/index.php?beastmachines.zip"&gt;Beast Machines&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.fontspace.com/roger-white/queens-park"&gt;Queens Park&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.urbanfonts.com/scripts/index.php?streetsoul.zip"&gt;Street Soul&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;Unfortunately, I was not able to recover the URLs of some fonts.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/411955136264709064-7457633809865221132?l=arrench.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arrench.blogspot.com/feeds/7457633809865221132/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=411955136264709064&amp;postID=7457633809865221132' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/7457633809865221132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/7457633809865221132'/><link rel='alternate' type='text/html' href='http://arrench.blogspot.com/2008/06/font-faces.html' title='Font Faces'/><author><name>Arn</name><uri>http://www.blogger.com/profile/12661491042889156108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_UTdErZdF7O8/SGV7-PaTQkI/AAAAAAAAAB4/yBWfgjxajyk/s72-c/font+faces.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-411955136264709064.post-4432833427795173357</id><published>2008-06-27T11:30:00.008+08:00</published><updated>2008-08-17T08:01:17.041+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Software'/><title type='text'>Introducing Pidgin</title><content type='html'>Familiar with &lt;a href="http://pidgin.im/"&gt;Pidgin&lt;/a&gt;? Pidgin is an IM client that allows connection on different IM protocols such as YM, Google Talk, ICQ, Aim, etc. It also allows multiple connection of accounts on one protocol. In other words, if you have two accounts on YM, you are able to connect those two accounts at the same time. Pidgin was released under the &lt;a href="http://www.gnu.org/licenses/gpl-2.0.txt"&gt;GNU General Public License (GPL)&lt;/a&gt;. Basically, this IM client is a free software.&lt;br /&gt;&lt;br /&gt;Pidgin has support on the mostly used features of IM clients. This includes file transfer, away messages, adding a contact, and such. It also has additional features of its own such as Buddy Pounce wherein you get to choose an action whenever a buddy becomes online, sends you a message, etc.&lt;br /&gt;&lt;br /&gt;Pidgin can run on various platforms such as Windows and Linux.&lt;br /&gt;&lt;br /&gt;If you're also interested in the text-based version of Pidgin which can be ran on console, you can check out Finch. This is what I use to get my YM account up all the time.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://pidgin.im/download/"&gt;Pidgin Download Page&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/411955136264709064-4432833427795173357?l=arrench.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arrench.blogspot.com/feeds/4432833427795173357/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=411955136264709064&amp;postID=4432833427795173357' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/4432833427795173357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/4432833427795173357'/><link rel='alternate' type='text/html' href='http://arrench.blogspot.com/2008/06/introducing-finch-and-bitlbee.html' title='Introducing Pidgin'/><author><name>Arn</name><uri>http://www.blogger.com/profile/12661491042889156108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-411955136264709064.post-1562106071982955556</id><published>2008-06-27T07:19:00.011+08:00</published><updated>2008-06-28T18:20:05.064+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Development'/><title type='text'>Outsourcing!</title><content type='html'>Alright all you freelancers out there! I'm sure you're all familiar with the word outsourcing. So what exactly is &lt;span style="font-weight: bold;"&gt;outsourcing&lt;/span&gt;? Let's take a look at the definition of &lt;a href="http://en.wikipedia.org/wiki/Outsource"&gt;outsourcing&lt;/a&gt; from wikipedia: &lt;blockquote&gt;Outsourcing is subcontracting a process, such as product design or manufacturing, to a third-party company.&lt;/blockquote&gt;&lt;br /&gt;Basically, we can say that outsourcing is when clients decide to search for third-party companies or individuals to do their projects. Outsourcing companies sure are pretty good opportunities for freelancers (mostly, in the field of computers) specifically programmers, web designers and developers, and such. Okay, so let me introduce to you some good sites I know that allow clients to outsource their projects for freelancers to look at.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.getacoder.com/"&gt;GetACoder&lt;/a&gt; - This piece of web application allows clients to post their unfinished or starting projects such as a project software, a website design, etc. on the site for free. Freelancers can then browse for projects that matches their skillsets, take a look at the project description, place a bid, and wait if the client chooses their bid. In here, you can choose to upgrade your account and become a premium member which makes you, let's say, higher in rank compared to basic account holders. It, though, requires monthly payment.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://getafreelancer.com/"&gt;GetAFreelancer&lt;/a&gt; - Similar to GetACoder, clients also get to post their projects. There are also different categories to choose from such as Link Building, Graphic Design, SEO, etc. Like GetAcoder, you can choose to become a gold member which has additional benefits although requires monthly fee. To add to that, if you don't have enough balance on your account, you become a normal user again.&lt;br /&gt;&lt;br /&gt;These are only two of the great globally known marketplaces that offers outsourcing clients and freelancers a "meeting place". There are lots and lots of other sites that has similar functions as GetACoder and GetAFreelancer. Just bear in mind that there are flaws in this kind of business though. One example is that some clients that post in their projects are fraud and, let's say, won't pay you or anything.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/411955136264709064-1562106071982955556?l=arrench.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arrench.blogspot.com/feeds/1562106071982955556/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=411955136264709064&amp;postID=1562106071982955556' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/1562106071982955556'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/1562106071982955556'/><link rel='alternate' type='text/html' href='http://arrench.blogspot.com/2008/06/outsourcing_27.html' title='Outsourcing!'/><author><name>Arn</name><uri>http://www.blogger.com/profile/12661491042889156108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-411955136264709064.post-2483811608043291489</id><published>2008-06-11T15:57:00.000+08:00</published><updated>2008-06-28T21:32:06.443+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Development'/><category scheme='http://www.blogger.com/atom/ns#' term='Software'/><title type='text'>Using Textpad as a PHP IDE</title><content type='html'>Using Textpad as a PHP IDE&lt;br /&gt;First off, download the latest version of textpad &lt;a href="http://textpad.com/download/index.html"&gt;here&lt;/a&gt; and install. And since we will be using it as a PHP IDE, let's download Textpad's php syntax definition which can be found &lt;a href="http://www.textpad.com/add-ons/files/syntax/php5.zip"&gt;here&lt;/a&gt; (or you can choose other php syntax definitions &lt;a href="http://textpad.com/add-ons/synn2t.html"&gt;here&lt;/a&gt;). Now extract the syntax file (*.syn) in the "samples" folder of your Textpad directory.&lt;br /&gt;&lt;br /&gt;Now, open up Textpad, click on the "Configure" menu and select "New Document Class". A pop-up will prompt to input a Document Class Name. Type in "php" then click on "next". Now type in "*.php" for the class members field and click "next". Then, check the box saying "Enable syntax highlighting". Then, click the drop down menu and choose the syntax file we have extracted a while ago. Then, click on "next" until done.&lt;br /&gt;&lt;br /&gt;Next step is to add a tool so we could really make Textpad act as a PHP IDE. Click the "Configure" menu on Textpad and select "Preferences". Select "Tools" in the preferences dialog box, click on the "Add" drop down menu and select "Program". Now, browse for your "php.exe" file, click "Open", and click "Apply". Now that your back on the preferences dialog box, you can expand the "Tools" menu found on the left side, select the tool we just created, and change the options necessary.&lt;br /&gt;&lt;br /&gt;If everything is done, click "Ok". In order to use the tool, click on the "Tools" menu, select "External Tools" from the menu, then click on the tool we have created.&lt;br /&gt;&lt;br /&gt;Success!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/411955136264709064-2483811608043291489?l=arrench.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arrench.blogspot.com/feeds/2483811608043291489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=411955136264709064&amp;postID=2483811608043291489' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/2483811608043291489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/2483811608043291489'/><link rel='alternate' type='text/html' href='http://arrench.blogspot.com/2008/06/using-textpad-as-php-ide.html' title='Using Textpad as a PHP IDE'/><author><name>Arn</name><uri>http://www.blogger.com/profile/12661491042889156108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-411955136264709064.post-6569025355809603842</id><published>2008-06-11T07:47:00.000+08:00</published><updated>2008-06-28T18:20:05.064+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Development'/><title type='text'>WAMP Installation (PHP 5.2.x, Apache 2.2.x, MySQL 5.x)</title><content type='html'>WAMP Installation (PHP 5.2.x, Apache 2.2.x, MySQL 5.0.x)&lt;br /&gt;Download the required packages. Just so to let you know, the specific versions of the packages I will be using is php 5.2.6, Apache 2.2.8, and MySQL 5.0.51b.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.php.net/downloads"&gt;php 5.2.x&lt;/a&gt; (Download the zip package)&lt;/li&gt;&lt;li&gt;&lt;a href="http://httpd.apache.org/"&gt;Apache 2.2.x&lt;br /&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://dev.mysql.com/downloads/mysql/5.0.html#win32"&gt;MySQL 5.0.x&lt;/a&gt; (Download the Zip/Setup.exe)&lt;/li&gt;&lt;/ul&gt;First off, we will be installing the web server which is the Apache Web Server. Click on "next" until you encounter a message to input "Server Information". If the fields are empty, type in "localhost" for Network Domain and Server Name, then type in "admin@localhost" for Admin's Email Add. After installing Apache, open your browser and enter "localhost" in the URL. There would be a display saying "It Works!" if you have successfully installed Apache.&lt;br /&gt;&lt;br /&gt;Next, we would be installing PHP5. Extract the files in a folder of your choice (I used "D:\php5". Make sure you remember where you extract the files.) Now, go to the folder where you extracted the files and rename the file "php.ini-recommended" to "php.ini". Now, open the folder where Apache is installed (mine is "D:\program files\apache software foundation\apache2.2\"), then open up the folder "conf". Edit the file "httpd.conf" with notepad. Add these lines at the bottom of the file:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;LoadModule php5_module "d:/php5/php5apache2_2.dll"&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;AddType application/x-httpd-php .php&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;PHPIniDir "d:/php5"&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Just change the path in the "LoadModule" and "PHPIniDir". Then, save the file. Now, let's test if our Apache Server can communicate with PHP. Go back to the folder where Apache is installed and open up the folder htdocs (this is were you store your web pages/files, you can change this in the "httpd.conf" file). Create a file named "phpinfo.php", open it up using notepad, and enter this line:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;?php phpinfo(); ?&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;After that, restart Apache and open up your browser and type in "localhost/phpinfo.php".&lt;br /&gt;&lt;br /&gt;Lastly, we would be installing MySQL. Extract the setup file found on the zip file and run it. Follow step by step instructions of the setup file such as setting up a root password. If you're not familiar with the options provided, just click on "next" and leave the default values (except for the password, of course). If installation is successful, open up the "php.ini" file I've mentioned a while ago using notepad. Change the line:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;extension_dir = './' &lt;/span&gt;&lt;span&gt;to &lt;span style="font-weight: bold;"&gt;extension_dir = 'D:\php5\ext' &lt;/span&gt;(depends on where you extracted php)&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt; Then look for the line:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;;extension=php_mysql.dll&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Just uncomment the line by removing the semicolon (";"). Then save the file.&lt;br /&gt;&lt;br /&gt;When all is done, the last thing we need to do is to add the php folder in our path. Right click "My Computer", go to "properties", go to the "Advanced" tab, and click on "Environment Variables". Select "Path" found on the "System Variables" and click on the edit button. Add at the end of the line the path where your php folder is (again, mine is "D:\php5"). Click on "Okay" and restart your computer.&lt;br /&gt;&lt;br /&gt;Success!&lt;span&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/411955136264709064-6569025355809603842?l=arrench.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arrench.blogspot.com/feeds/6569025355809603842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=411955136264709064&amp;postID=6569025355809603842' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/6569025355809603842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/411955136264709064/posts/default/6569025355809603842'/><link rel='alternate' type='text/html' href='http://arrench.blogspot.com/2008/06/wamp-installationphp-52x-apache-22x.html' title='WAMP Installation (PHP 5.2.x, Apache 2.2.x, MySQL 5.x)'/><author><name>Arn</name><uri>http://www.blogger.com/profile/12661491042889156108</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
