Freelancer's Playground! New knowledges every now and then

17Feb/102

Top 7 Gmail Labs Features I Can’t Live Without

As a Web-based email, gmail was cool. However, with the added features of gmail labs, it is now beyond awesomeness!. Lots of additional features that can be activated through google labs. Starting from 'time killer' game to feature that is greatly increases productivity.

12Feb/101

7 Samples Of Professional PHP/Programmer Resume

I was in the way of fixing my current online resume and I though a few googling would reveal some good samples. I found some and though out that someone out there might be needed this resources as well. Here it is:

  1. Stan Taylor
  2. A.J. Brown
  3. Mike Brittain
  4. Alan T. Miller
  5. A nice one page resume featuring C'thulhu.
  6. An example from Best Sample Resume
  7. Another example from Programmer Resume
10Feb/100

Yay! Got Google Buzz!

Just logged in on my gmail account and received surprise from Google! I was selected as early google buzz user! It also appeared on my google profile page.

Free Image Hosting at www.ImageShack.us
5Feb/100

Reset File Association in Linux From Nautilus

If you have ever experienced, for example, installing an application that turned out change the way how a file is opened. For example, to open a txt file in gnome, gedit is used. But, at a time, you install, geany or mousepad. When you want to open the txt file again, instead of calling gedit, system will call mousepad to open it.

4Feb/101

Add Custom Column To Media Page

How do you get full image URL in Media Library? I bet you will go through this step:

  1. Go to Media » Library
  2. On Media Library list, click file name.
  3. Form Edit Media appeared. Select File URL and use it.

For single image operation, this should be enough. But, if you did have a lot of pictures, this operation would be very annoying. For this, I have a simple solution. With a few lines of code that later summarized into a plugin. Then you will have a way to access the images directly from the Media Library.

3Feb/1010

Get Only n Words From String

Here's the code:

function trim_word( $words, $howmany = 1){
	$x = explode(" ", $words);
	if(count( $x) <=$howmany ){
		return $words;
	} else {
		return implode(" ", array_slice( $x, 0, $howmany));
	}
}

Here's the output:

$words = "this is string that is long enough that I want to trim it.";

echo trim_word($words, 10) . "\n";
//this will echo: this is string that is long enough that I want

UPDATE:

  1. 2010-02-05 15:03:25 - Fixing $howmany usage. Sorry, for the inconvenience:D
2Feb/107

Adsense under Image: Reloaded

A few month ago, my friend Jauhari contacted me, asking specific question about a wordpress plugin called Adsense Under Image. At that time, I crawl the code and though that it would be cool if it can have multiple images and or set randomly where the adsense code appeared. I try to contact the developer to submit my idea. But, the website listed is dead and the plugin itself is now aged more than 2 years. Now became dead site:(.