PHP and Web Technologies Freak
Scott Jehl has released jQuery Visualize, the plugin that groks HTML tables and generates lovely charts from it, all from a simple $(‘table’).visualize(); (lot’s of options for you to twiddle too if you want).
First, you create a bog standard table like:
<table border="0"> <caption>2009 Individual Sales by Category</caption> <thead> <tr> <td></td> <th>food</th> <th>auto</th> <th>household</th> <th>furniture</th> <th>kitchen</th> <th>bath</th> </tr> </thead> <tbody> <tr> <th>Mary</th> <td>150</td> <td>160</td> <td>40</td> <td>120</td> <td>30</td> <td>70</td> </tr> <tr> <th>Tom</th> <td>3</td> <td>40</td> <td>30</td> <td>45</td> <td>35</td> <td>49</td> </tr> ...repetitive rows removed for brevity.</tbody></table>
Then you visualize it. You end up with pretty graphs like these:

Jonathan Snook posted good CSS stuff on Text Rotation with CSS that takes a nice bit of markup like this:
<div class="example-date"> <span class="day">31</span> <span class="month">July</span> <span class="year">2009</span> </div>
and converts it to:

all via the CSS:
-webkit-transform: rotate(-90deg); -moz-transform: rotate(-90deg); filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
yeah as you can see it’s working on IE too. Not bad ha?
I found this website about 2 or years ago. it’s freaking funny xD Here are some picture from the site;
Read the rest of this entry »
I can’t blog much cuz of my works. I’m pretty busy in these days. When i check php.net, i saw PHP 5.3 released post in 30 Jun -.- nevermind. After a long string of delays, PHP 5.3 is finally out. On the course of last 2 years, I was pretty sure a number of times that it will happen next month the latest, but there always were good reasons to postpone it. Now finally it’s officially out. I think it’s a huge step for PHP. Download it and try it!
Some major new features in 5.3:
Read the rest of this entry »
Every time I connect to my home server through my ssh client, I receive the same message and I’m getting bored of seeing it, so I decided to change the message to something else.
Here’s the message that I get every time:
Read the rest of this entry »
If you have problem with installation on compaq DL or ML servers (i have a ML370) with CompaqSmartArray Raid card, You can’t install ubuntu with normal way; you must use highway ![]()
Ok here we go;
Read the rest of this entry »
This article explains 2 simple commands that most people want to know when they are using Linux. You can find the size of a directory and find the amount of free space, which is on your computer. The command you use to specify the directory size is “du”. And, to the free space you can “df.”
All information in this article can be found in the man pages for du and df. In case you get bored reading the man pages, and you want your work quickly, then this article is for you.
Read the rest of this entry »
Another simple trick;
$timestamp="1243949621"; echo date("d-m-Y", $timestamp); //02-06-2009
Here’s an easy to use function to copy entire directories
function dir_copy($src,$dst) { $dir = opendir($src); @mkdir($dst); while(false !== ( $file = readdir($dir)) ) { if (( $file != '.' ) && ( $file != '..' )) { if ( is_dir($src . '/' . $file) ) { dir_copy($src . '/' . $file,$dst . '/' . $file); } else { copy($src . '/' . $file,$dst . '/' . $file); } } } closedir($dir); }