<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:thr='http://purl.org/syndication/thread/1.0' version='2.0'><channel><atom:id>tag:blogger.com,1999:blog-7110098008103926817</atom:id><lastBuildDate>Thu, 12 Aug 2010 00:24:03 +0000</lastBuildDate><title>Less Talk, More Example</title><description>Serving tutorials in a quick way...</description><link>http://www.less-talk-more-example.info/</link><managingEditor>noreply@blogger.com (Less Talk, More Example)</managingEditor><generator>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-7110098008103926817.post-8246593556125264122</guid><pubDate>Thu, 11 Feb 2010 04:38:00 +0000</pubDate><atom:updated>2010-02-11T12:54:00.372+07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Linux</category><category domain='http://www.blogger.com/atom/ns#'>Ubuntu</category><category domain='http://www.blogger.com/atom/ns#'>Upgrade</category><title>Upgrading Ubuntu using Alternate ISO</title><description>&lt;h3&gt;The Goal&lt;/h3&gt;
&lt;blockquote&gt;Upgrading ubuntu using alternate ISO without having to burning it to the CD. We mount the ISO manually and install from there.&lt;br style="clear:both;"/&gt;
&lt;div class="ubugal"&gt;&lt;a href="http://farm3.static.flickr.com/2739/4348113260_325e3f4707_o.jpg" title="Upgrade Ubuntu"&gt;&lt;img src="http://farm3.static.flickr.com/2739/4348113260_01a223d12e_m.jpg" alt="Upgrade Ubuntu" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;h3&gt;The Process&lt;/h3&gt;
&lt;a href="http://www.less-talk-more-example.info/"&gt;Important&lt;/a&gt;, upgrading an ubuntu require you to do it in sequence manner. For example, if your current version is Ubuntu 8.04 and you want to upgrade to Ubuntu 9.10 you must upgrade to 8.10 first, then 9.04 and finally 9.10. This tutorial cover upgrading from Ubuntu 9.04 to 9.10. So, here we go.
&lt;a name='more'&gt;&lt;/a&gt;
&lt;ol&gt;
&lt;li&gt;Download ubuntu-9.10-alternate-i386.iso from one of &lt;a href="http://www.ubuntu.com/getubuntu/downloadmirrors#mirrors"&gt;download mirror&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Save it to somewhere i.e. /home/abc/ubuntu-9.10-alternate-i386.iso&lt;/li&gt;
&lt;li&gt;Mount the ISO
&lt;code class="program"&gt;$ sudo mount -t iso9660 -o loop /home/abc/ubuntu-9.10-alternate-i386.iso /media/cdrom0&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Execute the &lt;strong&gt;cdromupgrade&lt;/strong&gt; script.
&lt;code class="program"&gt;$ cd /media/cdrom0
$ sudo ./cdromupgrade &amp;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;It's better to choose "No", and only fully upgrade from the iso.
&lt;div class="ubugal"&gt;&lt;a href="http://farm3.static.flickr.com/2712/4348113258_db1bb14506_o.jpg" title="Choose No Internet"&gt;&lt;img align="left" src="http://farm3.static.flickr.com/2712/4348113258_aa804c9c07_t.jpg" alt="Choose no Internet" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br style="clear:both;"/&gt;&lt;/li&gt;
&lt;li&gt;The upgrade process would start immediately.&lt;br/&gt; 
&lt;div class="ubugal"&gt;&lt;a href="http://farm3.static.flickr.com/2739/4348113260_325e3f4707_o.jpg" title="Ubuntu Software Channel"&gt;&lt;img src="http://farm3.static.flickr.com/2739/4348113260_01a223d12e_t.jpg" alt="Ubuntu Upgrade - Software Channel" /&gt;&lt;/a&gt;&amp;nbsp;
&lt;a href="http://farm3.static.flickr.com/2677/4348113264_c5415cb66a_o.jpg" title="Preparing packages"&gt;&lt;img src="http://farm3.static.flickr.com/2677/4348113264_a79104f75a_t.jpg" alt="Preparing packages" /&gt;&lt;/a&gt;&amp;nbsp; &lt;a href="http://farm3.static.flickr.com/2706/4348113266_07e3e465e2_o.jpg" title="Upgrading Process"&gt;&lt;img src="http://farm3.static.flickr.com/2706/4348113266_304e298f63_t.jpg" alt="Upgrading Process"/&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;After all procress complete, restart your system.&lt;/li&gt;
&lt;li&gt;After logged in open the terminal and check the current Ubuntu version.
&lt;code class="program"&gt;$ sudo lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 9.10
Release: 9.10
Codename: karmic&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Enjoy your brand new Ubuntu :)&lt;/li&gt;
&lt;/ol&gt;
&lt;script type='text/javascript'&gt;
  $('.ubugal a').lightBox();
&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7110098008103926817-8246593556125264122?l=www.less-talk-more-example.info' alt='' /&gt;&lt;/div&gt;</description><link>http://www.less-talk-more-example.info/2010/02/upgrade-ubuntu-using-alternate-iso.html</link><author>noreply@blogger.com (Less Talk, More Example)</author><thr:total>3</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-7110098008103926817.post-7395112360197734887</guid><pubDate>Mon, 08 Feb 2010 13:35:00 +0000</pubDate><atom:updated>2010-02-09T11:33:50.453+07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Screencast</category><category domain='http://www.blogger.com/atom/ns#'>Linux</category><category domain='http://www.blogger.com/atom/ns#'>Shell Script</category><category domain='http://www.blogger.com/atom/ns#'>Twitter</category><title>Updating Twitter Status via Shell Script</title><description>&lt;h3&gt;The Goal&lt;/h3&gt;
&lt;blockquote&gt;Updating twitter status via shell script. The command used to send the HTTP request is POST a.k.a lwp-request (a perl script) that included in most linux distribution.&lt;br style="clear:both;"/&gt;
&lt;div class="twitgal"&gt;&lt;a href="http://farm3.static.flickr.com/2632/4340306995_939ca7514c_o.jpg" title="Twitter Status Update"&gt;&lt;img src="http://farm3.static.flickr.com/2632/4340306995_91d05e344b_m.jpg" alt="Twitter Status Update" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;h3&gt;The Process&lt;/h3&gt;
&lt;ol&gt;
  &lt;li&gt;Open your text editor i.e. gedit/geany/etc or even &lt;em&gt;vi&lt;/em&gt; you are die hard fans of this editor.&lt;/li&gt;
  &lt;li&gt;Copy and paste code below.
&lt;a name='more'&gt;&lt;/a&gt;
&lt;code class="program" style="height:450px"&gt;#!/bin/bash
#
TUNAME=&amp;quot;lesstalkme&amp;quot;
TUPASS=&amp;quot;&amp;quot;
TSTATUS=&amp;quot;&amp;quot;
TURL=&amp;quot;http://twitter.com/statuses/update.xml&amp;quot;
TDATA=&amp;quot;source=LTME&amp;amp;status=&amp;quot;

# print some fancy header :)
echo &amp;quot;-----------------------------------------&amp;quot;
echo &amp;quot;         Twitter Status Updater&amp;quot;
echo &amp;quot; http://www.less-talk-more-example.info/&amp;quot;
echo &amp;quot;------------------------------------------&amp;quot;

echo -n &amp;quot;Twitter Password: &amp;quot;
read -ers TUPASS
echo -e &amp;quot;
Enter Twitter Status:&amp;quot;
read TSTATUS

# replace some characters ( I'm too lazy to replace all the characters :))
TSTATUS=`echo $TSTATUS | sed 's/ /%20/g'` # space =&amp;gt; %20
TSTATUS=`echo $TSTATUS | sed 's/@/%40/g'` # @ =&amp;gt; %40
TSTATUS=`echo $TSTATUS | sed 's/\//%2F/g'` # / =&amp;gt; %2F
TSTATUS=`echo $TSTATUS | sed 's/:/%3A/g'` # : =&amp;gt; %3B
TSTATUS=`echo $TSTATUS | sed 's/#/%23/g'` # # =&amp;gt; %23

# now POST the data
echo &amp;quot;&amp;quot;
echo -n &amp;quot;Updating status...&amp;quot;
echo &amp;quot;${TDATA}${TSTATUS}&amp;quot; | POST -C $TUNAME:$TUPASS $TURL | grep $TUNAME &amp;gt; /dev/null
# check status
# ------------
# successfull request always return XML format that containts our username
# so we grep that to check the status
if [ $? -eq 0 ]; then
  echo &amp;quot;DONE.&amp;quot;;
else
  echo &amp;quot;ERROR.&amp;quot;;
fi&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Replace TUNAME value with your own username.&lt;/li&gt;
&lt;li&gt;Save to somewhere i.e. /tmp directory just for testing.&lt;/li&gt;
&lt;li&gt;Name it &lt;strong&gt;twitter.sh&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Open the shell terminal in GNOME System &amp;raquo; Application &amp;raquo; Terminal&lt;/li&gt;
&lt;li&gt;Go to /tmp directory and give execute permission to the file.
&lt;code class="program"&gt;$ cd /tmp
$ chmod +x twitter.sh&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Execute the file, you'll be promted to enter twitter password and status.
&lt;code class="program"&gt;$ ./twitter.sh&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Fill it and voila!! your twitter status has been updated :).&lt;br/&gt;
&lt;div class="twitgal"&gt;&lt;a href="http://farm3.static.flickr.com/2747/4340363499_c4b5fc1c5b_o.jpg" title="Twitter Status"&gt;&lt;img src="http://farm3.static.flickr.com/2747/4340363499_670f2bda78_m.jpg" alt="Twitter Status" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;a name="twittercast" id="twittercast"&gt;&lt;/a&gt;
&lt;h3&gt;Screencast&lt;/h3&gt;
&lt;object width="425" height="344"&gt;&lt;param name="movie" value="http://www.youtube.com/v/G-4HHnFFRlU&amp;hl=en_US&amp;fs=1&amp;"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/G-4HHnFFRlU&amp;hl=en_US&amp;fs=1&amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;
&lt;br/&gt;
&lt;h3&gt;Download the Code&lt;/h3&gt;
&lt;p&gt;&lt;a href="http://www.ziddu.com/download/8502121/twitter.sh.zip.html" alt="Download twitter code"&gt;twitter.sh.zip&lt;/a&gt; via ziddu.com.&lt;br/&gt;
Size: 0.69kb&lt;br/&gt;
MD5 Checksum: f9d38c632430a617331cc4f8d298fcf1
&lt;/p&gt;
&lt;script type="text/javascript"&gt;
  $('.twitgal a').lightBox();
&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7110098008103926817-7395112360197734887?l=www.less-talk-more-example.info' alt='' /&gt;&lt;/div&gt;</description><link>http://www.less-talk-more-example.info/2010/02/update-twitter-status-via-shell-script.html</link><author>noreply@blogger.com (Less Talk, More Example)</author><thr:total>1</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-7110098008103926817.post-4605498294169514155</guid><pubDate>Sun, 07 Feb 2010 12:47:00 +0000</pubDate><atom:updated>2010-02-09T09:54:59.111+07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Wordpress</category><category domain='http://www.blogger.com/atom/ns#'>PHP</category><category domain='http://www.blogger.com/atom/ns#'>Plugin</category><title>Creating a Simple Wordpress Plugin</title><description>&lt;h3&gt;The Goal&lt;/h3&gt;
&lt;blockquote&gt;Creating a simple plugin that replace &amp;lt;!--ltme=COLOR--&amp;gt; with BIG and colored "Less Talk, More Example" words. Take a look at images below.&lt;br style="clear:both"&gt;
&lt;div class="wpgal"&gt;
&lt;a href="http://farm3.static.flickr.com/2779/4337859026_fb3f99c405_o.jpg" title="Wordpress - writing a post"&gt;&lt;img align="left" src="http://farm3.static.flickr.com/2779/4337859026_186373c449_t.jpg" alt="Wordpress - writing a post" /&gt;&lt;/a&gt;&amp;nbsp;&lt;a href="http://farm3.static.flickr.com/2727/4337081681_492b8e7093_o.jpg" title="Result - Output of the plugin"&gt;&lt;img src="http://farm3.static.flickr.com/2727/4337081681_42db953513_t.jpg" alt="Result" /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;h3&gt;The Process&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Open your text editor then create a new file.&lt;/li&gt;
&lt;li&gt;Copy and paste code below.
&lt;a name='more'&gt;&lt;/a&gt;
&lt;code class="program" style="height:450px"&gt;&amp;lt;?php
/*
Plugin Name: LTME
Plugin URI: http://www.less-talk-more-example/
Description: Simple plugin to subtitude the &amp;lt;!--ltme=COLOR--&amp;gt; string BIG &amp;quot;Less Talk, More Example&amp;quot; string.
Author: Rio Astamal
Version: 1.0
Author URI: http://www.rioastamal.net/
*/

// print some CSS to the header
function ltme_head() {
 echo '
 &amp;lt;!-- start ltme --&amp;gt;
 &amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;
 .ltme {
  padding: 20px 12px;
  font-size: 2em;
  font-weight:bold;
  border: 1px solid #ccc;
  background: #E5E5E5;
 }
 &amp;lt;/style&amp;gt;
 &amp;lt;!-- end ltme --&amp;gt;
 ';
}

// function to replace the &amp;lt;!--ltme=COLOR--&amp;gt; string
function ltme_replace($post_content) {
 $replacement = '&amp;lt;div class=&amp;quot;ltme&amp;quot; style=&amp;quot;color: $1&amp;quot;&amp;gt;Less Talk, More Example&amp;lt;/div&amp;gt;';
 $post_content = preg_replace('/&amp;lt;!--ltme=([a-zA-Z#0-6]+)--&amp;gt;/', $replacement, $post_content);
 // if we enter using visual mode, wordpress intrepet the &amp;lt;!-- string differently
 $post_content = preg_replace('/&amp;amp;lt;!&amp;amp;#8211;ltme=([a-zA-Z#0-6]+)&amp;amp;#8211;&amp;amp;gt;/', $replacement, $post_content);
 return $post_content; 
}

// Register our hooks
add_action('wp_head', 'ltme_head');
add_filter('the_content', 'ltme_replace');
?&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Save the file to path &lt;strong&gt;wp-content/plugins/ltme.php&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Now, activate the LTME plugin&lt;br/&gt;
&lt;div class="wpgal"&gt;&lt;a href="http://farm5.static.flickr.com/4014/4337732922_91f23bbdd3_o.jpg" title="Wordpress - Activate LTME plugin"&gt;&lt;img src="http://farm5.static.flickr.com/4014/4337732922_e930cd42b7_m.jpg" alt="Wordpress - Activate LTME plugin" /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Write some content that include LTME special tag.
&lt;code class="program"&gt;Hello LTME Reader,

This is example of simple plugin creation on wordpress.
Print LTME with green color
&amp;lt;!--ltme=green--&amp;gt;

print LTME with #c60000 color
&amp;lt;!--ltme=#c60000--&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Publish your post, the result should look like this&lt;br/&gt;
&lt;div class="wpgal2 a"&gt;
&lt;a href="http://farm3.static.flickr.com/2727/4337081681_492b8e7093_o.jpg" title="Result - Output of the plugin"&gt;&lt;img src="http://farm3.static.flickr.com/2727/4337081681_42db953513_m.jpg" alt="Result" /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Congratulation for your first Wordpress plugin :)&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;Wordpress Version&lt;/h3&gt;
&lt;p&gt;Tested on Wordpress version 2.8.4 but should work for all version.&lt;/p&gt;

&lt;h3&gt;Download the Code&lt;/h3&gt;
Having trouble copy or paste the code? Download the file here:&lt;br/&gt;
&lt;a href="http://www.ziddu.com/download/8488320/ltme-plugin.zip.html" title="Download"&gt;ltme-plugin.zip&lt;/a&gt; via ziddu.com.&lt;br/&gt;
Size: 0.72kb &lt;br/&gt;
MD5 Checksum: f8898209768ed7524afa4c59eefc82ee
    &lt;script type="text/javascript"&gt;
    $(function() {
        $('.wpgal a').lightBox();
        $('.wpgal2 a').lightBox();
    });
    &lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7110098008103926817-4605498294169514155?l=www.less-talk-more-example.info' alt='' /&gt;&lt;/div&gt;</description><link>http://www.less-talk-more-example.info/2010/02/creating-simple-wordpress-plugin.html</link><author>noreply@blogger.com (Less Talk, More Example)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-7110098008103926817.post-6175229836712161160</guid><pubDate>Sun, 07 Feb 2010 07:28:00 +0000</pubDate><atom:updated>2010-02-07T16:14:31.295+07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Progress Bar</category><category domain='http://www.blogger.com/atom/ns#'>Javascript</category><category domain='http://www.blogger.com/atom/ns#'>CSS</category><title>Animated CSS Progress Bar</title><description>&lt;h3&gt;The Goal&lt;/h3&gt;
&lt;blockquote&gt;Creating animated progress bar using javascript and pure CSS. The final result will look like this:

&lt;iframe scrolling="no" style="border: 0pt none ; margin: 0pt; padding: 0pt; width: 300px; height: 35px;" src="http://rioastamal.net/ltme/demo/css-progress-bar/css-js.html"&gt;&lt;/iframe&gt;&lt;/blockquote&gt;
&lt;h3&gt;The Process&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Open your favorite text editor and create a new file.&lt;/li&gt;
&lt;li&gt;Copy and paste code below:
&lt;a name='more'&gt;&lt;/a&gt;
 &lt;code style="height:500px;" class="program"&gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;Animated CSS Progress Bar&amp;lt;/title&amp;gt;

&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;
div.progress-container {
  border: 1px solid #ccc; 
  width: 200px; 
  margin: 2px 5px 2px 0; 
  padding: 1px; 
  float: left; 
  background: white;
  position:relative;
}

div.progress-container div {
  background-color: #ACE97C; 
  height: 20px;
}
div.progress-container  span {
 width:200px;
 text-align:center;
 float:left;
 font: normal 12px Arial,sans-serif;
 margin-top: 3px;
}
&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
 &amp;lt;div class=&amp;quot;progress-container&amp;quot;&amp;gt;  
   &amp;lt;span id=&amp;quot;progress_text&amp;quot;&amp;gt;0%&amp;lt;/span&amp;gt;

   &amp;lt;div id=&amp;quot;progress_bar&amp;quot; style=&amp;quot;width: 0%&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;
 &amp;lt;/div&amp;gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;
var forever = true;
function start_anim() {
 var ptext = document.getElementById('progress_text');
 var pbar = document.getElementById('progress_bar');
 var curval = parseInt(pbar.style.width);
 var speed = Math.floor(Math.random() * 250) + 10;
 
 document.title = &amp;quot;Speed: &amp;quot; + speed;
 
 curval++;
 ptext.innerHTML = curval + '%';
 pbar.style.width = curval + '%';
 
 if (curval &amp;gt; 99) {
  if (forever) {
   pbar.style.width = '0%';
   setTimeout('start_anim()', speed);
  }
 } else {
  setTimeout('start_anim()', speed);
 }
  }
  start_anim();

&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Save the file with .html extension i.e: css-js.html&lt;/li&gt;
&lt;li&gt;Open the file using your web browser&lt;/li&gt;
&lt;li&gt;Done.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;Tested Browser&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Firefox 3.5&lt;/li&gt;
&lt;li&gt;Chrome 4.0.2&lt;/li&gt;
&lt;li&gt;Opera 10&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;Download the Code&lt;/h3&gt;
&lt;a href="http://www.ziddu.com/download/8483160/animated-css-progress-bar.zip.html"&gt;animated-css-progress-bar.zip&lt;/a&gt; via ziddu.com.&lt;br/&gt;
Size: 0.9kb&lt;br/&gt;
MD5 Checksum: d82877115e220fedcf15b04673404ef1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7110098008103926817-6175229836712161160?l=www.less-talk-more-example.info' alt='' /&gt;&lt;/div&gt;</description><link>http://www.less-talk-more-example.info/2010/02/animated-css-progress-bar.html</link><author>noreply@blogger.com (Less Talk, More Example)</author><thr:total>2</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-7110098008103926817.post-2649487532200391447</guid><pubDate>Sun, 07 Feb 2010 04:36:00 +0000</pubDate><atom:updated>2010-02-08T00:01:23.689+07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Progress Bar</category><category domain='http://www.blogger.com/atom/ns#'>CSS</category><title>Creating Pure CSS Progress Bar</title><description>&lt;h3&gt;The Goal&lt;/h3&gt;
&lt;blockquote&gt;Creating progress bar using pure CSS. The final result will look like this:&lt;br style="clear:both;"/&gt;
 &lt;div style="border: 1px solid #ccc; width: 200px; margin: 2px 5px 2px 0; padding: 1px; float: left; background: white; position:relative;"&gt;
  &lt;span style="width:200px;text-align:center;float:left; font: normal 12px Arial,sans-serif; margin-top: 3px;"&gt;54%&lt;/span&gt;
  &lt;div style="background-color: #ACE97C;height: 20px; width:54%"&gt;&lt;/div&gt;
 &lt;/div&gt;&lt;/blockquote&gt;&lt;br style="clear:both;"/&gt;
&lt;h3&gt;The Process&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Open your favorite text editor and create a new file.&lt;/li&gt;
&lt;li&gt;Copy and paste code below
&lt;a name='more'&gt;&lt;/a&gt;
&lt;code class="program" style="height:450px;"&gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;CSS Progress Bar&amp;lt;/title&amp;gt;

&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;
div.progress-container {
  border: 1px solid #ccc; 
  width: 200px; 
  margin: 2px 5px 2px 0; 
  padding: 1px; 
  float: left; 
  background: white;
  position:relative;
}

div.progress-container div {
  background-color: #ACE97C; 
  height: 20px;
}
div.progress-container  span {
 width:200px;
 text-align:center;
 float:left;
 font: normal 12px Arial,sans-serif;
 margin-top: 3px;
}
&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
 &amp;lt;div class=&amp;quot;progress-container&amp;quot;&amp;gt;  
   &amp;lt;span id=&amp;quot;progress_text&amp;quot;&amp;gt;54%&amp;lt;/span&amp;gt;
   &amp;lt;div id=&amp;quot;progress_bar&amp;quot; style=&amp;quot;width: 54%&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;
 &amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Save it to some location i.e. css-pbar.html&lt;/li&gt;
&lt;li&gt;Open the file using web browser&lt;/li&gt;
&lt;li&gt;Done.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Tested Browser&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Firefox 3.5&lt;/li&gt;
&lt;li&gt;Chrome 4.0.2&lt;/li&gt;
&lt;li&gt;Opera 10&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;Download the Code&lt;/h3&gt;
&lt;a href="http://www.ziddu.com/download/8483161/css-progress-bar.zip.html"&gt;css-progress-bar.zip&lt;/a&gt; via ziddu.com.&lt;br/&gt;
Size: 0.72kb&lt;br/&gt;
MD5 Checksum: 76424cd4f26e5ab2f1e75557e17ba41b&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7110098008103926817-2649487532200391447?l=www.less-talk-more-example.info' alt='' /&gt;&lt;/div&gt;</description><link>http://www.less-talk-more-example.info/2010/02/creating-pure-css-progress-bar.html</link><author>noreply@blogger.com (Less Talk, More Example)</author><thr:total>2</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-7110098008103926817.post-8819377668369997869</guid><pubDate>Sun, 07 Feb 2010 03:29:00 +0000</pubDate><atom:updated>2010-02-07T11:19:46.269+07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Ant</category><category domain='http://www.blogger.com/atom/ns#'>Java</category><category domain='http://www.blogger.com/atom/ns#'>Linux</category><category domain='http://www.blogger.com/atom/ns#'>Ubuntu</category><title>Install Apache Ant on Ubuntu Linux</title><description>&lt;h3&gt;The Goal&lt;/h3&gt;&lt;blockquote&gt;You can install Apache Ant on Ubuntu Linux using manual installation method.&lt;/blockquote&gt;&lt;h3&gt;The Process&lt;/h3&gt;
&lt;strong style="font-style: italic;"&gt;My Environment&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;My $HOME is located in /home/ltme&lt;/li&gt;
&lt;li&gt;I put Ant package in $HOME/archive/a&lt;/li&gt;
&lt;li&gt;I extract the package to $HOME/programs&lt;/li&gt;
&lt;li&gt;My Ant version is 1.7.1&lt;/li&gt;
&lt;/ul&gt;

&lt;strong style="font-style: italic;"&gt;Pre-Installation&lt;/strong&gt;
&lt;p&gt;You must have Java Development Kit (JDK) installed first, refer to this &lt;a href="http://www.less-talk-more-example.info/2010/02/tutorial-how-to-install-java-on-ubuntu.html"&gt;article&lt;/a&gt; if you not install the JDK yet.&lt;/p&gt;
&lt;a name='more'&gt;&lt;/a&gt;
&lt;strong&gt;Installation&lt;/strong&gt;
&lt;ol&gt;&lt;li&gt;Download the latest version of Ant from &lt;a href="http://ant.apache.org/"&gt;http://ant.apache.org&lt;/a&gt;. Saved to some location i.e: I save to $HOME/archive. First we need to extract the package.

&lt;code class="program"&gt;$ tar -jxvf ~/archive/a/apache-ant-1.7.1-bin.tar.bz2 -C ~/programs
$ cd programs
$ ln -s apache-ant-1.7.1 ant&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;The next step is to add Apache Ant directory to shell environment variables. So we need to edit .bashrc file located in our home directory.

&lt;code class="program"&gt;$ gedit ~/.bashrc&lt;/code&gt;&lt;/li&gt;

&lt;li&gt;Put this at the end of .bashrc file, after editing your file look something like this:

&lt;code class="program"&gt;JAVA_HOME=/usr/local/java
JAVA_BIN=$JAVA_HOME/bin
ANT_HOME=/home/astadev/programs/ant
PATH=$PATH:$JAVA_HOME:$JAVA_BIN:$ANT_HOME/bin
export PATH&lt;/code&gt;&lt;/li&gt;

&lt;li&gt;Save the file, and then open new bash session by pressing CTRL-Shift-T. Try to execute ant.
&lt;code class="program"&gt;$ ant
Buildfile: build.xml does not exist!
Build failed&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Done.
&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;Error above indicate that ant command is recognized by shell but it did not find build.xml file that needed to compile ant projects. So, it's absolutely normal and the installation was successful.&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7110098008103926817-8819377668369997869?l=www.less-talk-more-example.info' alt='' /&gt;&lt;/div&gt;</description><link>http://www.less-talk-more-example.info/2010/02/install-apache-ant-ubuntu-linux.html</link><author>noreply@blogger.com (Less Talk, More Example)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-7110098008103926817.post-3718428817587991974</guid><pubDate>Sat, 06 Feb 2010 12:41:00 +0000</pubDate><atom:updated>2010-02-07T11:12:25.279+07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>Java</category><category domain='http://www.blogger.com/atom/ns#'>Linux</category><category domain='http://www.blogger.com/atom/ns#'>Ubuntu</category><title>Install Java (JDK) on Ubuntu Linux</title><description>&lt;h3&gt;The Goal&lt;/h3&gt;&lt;blockquote&gt;You can install Sun JDK on Ubuntu Linux using "unpack and run" method not via apt-get.&lt;/blockquote&gt;&lt;h3&gt;The Process
&lt;/h3&gt;&lt;ol&gt;&lt;li&gt;Download the Sun JDK for Linux from &lt;a href="http://java.sun.com/"&gt;http://java.sun.com/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Open the terminal to extract the package, move to the saved location first:
(I assume you save it to your home directory)

&lt;code class="program"&gt;$ cd /home/user
$ sh jdk-6u7-linux-1586.bin&lt;/code&gt;&lt;/li&gt;&lt;li&gt;You will be asked "License Agreement" and type yes to Agree.

&lt;code class="program"&gt;$ sudo mv jdk1.6.0_07 /usr/local
$ sudo ln -s /usr/local/jdk1.6.0_07 /usr/local/java&lt;/code&gt;

&lt;/li&gt;&lt;li&gt;Check the current java that running on your system
&lt;code class="program"&gt;$ update-alternatives --list java
/usr/bin/gij-4.2
&lt;/code&gt;&lt;/li&gt;&lt;li&gt;After running that command we knew that there is no alternative for java. So, we need to add our new JDK to the alternatives.

&lt;a name='more'&gt;&lt;/a&gt;

&lt;code class="program"&gt;$ sudo update-alternatives --install /usr/bin/java java /usr/local/java/bin/java 100
$ sudo update-alternatives --config java
There are 2 alternatives which provide `java'.

Selection    Alternative
-----------------------------------------------
*         1    /usr/bin/gij-4.2
+        2    /usr/local/java/bin/java

Press enter to keep the default[*], or type selection number: 2
$ java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)&lt;/code&gt;

&lt;/li&gt;&lt;li&gt;Now let's test our new environment, for this purpose we will create simple Java program. Open your favorite text editor, e.g gedit (Application - Accessories - Text Editor) and try this following code.
&lt;code class="program"&gt;public class Hello {
  public static void main(String[] args) {
   System.out.println("Hello World!");
  }
}&lt;/code&gt;

&lt;/li&gt;&lt;li&gt;Save it to some location, since this is only a test I would recommend to save it under /tmp directory. I name it Hello.java.
&lt;/li&gt;&lt;li&gt;We need to add /usr/local/java in shell environment variables by editing .bashrc file located in our home directory.
&lt;code class="program"&gt;$ gedit ~/.bashrc
&lt;/code&gt;&lt;/li&gt;&lt;li&gt;Add the following lines into .bashrc (put these code at the end of file).
&lt;code class="program"&gt;JAVA_HOME=/usr/local/java
JAVA_BIN=$JAVA_HOME/bin
PATH=$PATH:$JAVA_HOME:$JAVA_BIN
export PATH
&lt;/code&gt;&lt;/li&gt;&lt;li&gt;Save the file and close the editor. Now we need to close our Terminal to take affect. Open the terminal again and try to compile Hello.java. All the things should work :).
&lt;code class="program"&gt;$ cd /tmp
$ javac Hello.java
$ java Hello
Hello World!&lt;/code&gt;&lt;/li&gt;&lt;li&gt;Done.
&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7110098008103926817-3718428817587991974?l=www.less-talk-more-example.info' alt='' /&gt;&lt;/div&gt;</description><link>http://www.less-talk-more-example.info/2010/02/tutorial-how-to-install-java-on-ubuntu.html</link><author>noreply@blogger.com (Less Talk, More Example)</author><thr:total>0</thr:total></item></channel></rss>