Freelancer's Playground! New knowledges every now and then

17Nov/111

Menampilkan Daftar Referral Dari Google Analytics

Siapa yang setiap membuka panel wordpress, selalu melihat daftar Incoming Link? atau, bagi yang menggunakan google analytics, melihat daftar referral? Saya termasuk diantara kedua tipe ini. Hal yang menyenangkan, melihat website / tulisan kita dimention di tempat lagi.

Free Image Hosting at www.ImageShack.us
25Nov/100

Mencari Email Melalui IMAP+PHP

Setelah beberapa tulisan mengenai cara akses IMAP Gmail menggunakan PHP, serta cara memperoleh daftar label di Gmail (melalui IMAP juga), tulisan kali ini akan membahas cara mencari email di Gmail. Masih tetap menggunakan IMAP dan PHP kok.

8Nov/100

Menampilkan Daftar Folder Yang Tersedia di GMail Melalui IMAP

Pada tulisan terdahulu, kita sudah lihat bagaimana cara melakukan koneksi IMAP ke gmail menggunakan PHP. Kali ini kita akan melihat bagaimana cara menampilkan daftar folder / label yang ada di GMail.

5Nov/102

Akses Gmail Menggunakan PHP+IMAP

Untuk beberapa tulisan kedepan, saya akan membuat tulisan berseri tentang PHP+IMAP. Untuk tulisan kali ini, kita fokus pada bagaimana cara membaca Gmail dari PHP.

2Nov/100

Cara Membersihkan Input Tags

Saat develop website yang menggunakan tagging, lalu kena kasus seperti ini?

User input: baju, , sarung, celana, kaos
Hasil yang diharapkan: baju, sarung, celana, kaos

Lalu bingung membersihkan data tag yang kosong itu?

Tagged as: , Continue reading
20Oct/1013

Cara Membuat Koneksi Ke Twitter Menggunakan OAuth dan PHP

Sejak dimatikannya akses ke API twitter dengan menggunakan username dan password, banyak aplikasi yang menggunakan platfowm twitter menjadi tewas. Beberapa ada yang langsung dioperasi dengan menggunakan akses OAuth, beberapa lainnya ditinggal mati. Tutorial kali ini akan mengajarkan bagaimana caranya menggunakan akses koneksi OAuth untuk aplikasi kita.

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
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
26Oct/090

PHPSH: Test PHP Snippet, The Python Way!

If you know python, maybe you know the interactive python shell, too. If you don't know both, well, let me explain it. Python has it's built in interactive shell. When you install python and you execute the command, python, you will be introduced to a shell like interface where you could type python statements and have it evaluated and shown the result, right away. This is really convenience for learning purpose, or some simple snippet testing.

28Apr/092

PHP Simple File Browser

While browsing my google analytics logs, I stumble upon certain keyword search that looking for file browsers script. I don't have one here, so I created it, so that next time people searching for PHP file browser and landed on this blog, they will get what they want (hopefully).