Fork me on GitHub
buset mendungnya tebel banget nih pagi2

Jakarta.rb December 2009

Posted: December 10th, 2009 | Author: gozali | Filed under: Programming, Ruby | Tags: , , , | No Comments »

The last meeting Jakarta.rb in 2009 is going to be:

When:
Saturday, December 12nd at 10 AM

Where:
detikcom office
Gedung Aldevco Octagon Lt. 2,
Jl. Warung Jati Barat Raya No. 75
Jakarta Selatan
Google Map Link

Call me: 0818-0308-1790 if you get lost.

The building is across the street from the Pizza Hut Warung Buncit and Buncit Indah Busway Shelter. The entrance to the building is in back by the parking lot.

Topics:
We will have 2 presentations no longer then 30 minutes each:
BDD with Cucumber – by Kunto Aji (http://www.railsmine.net)
W2tags Live – by Widi Harsojo of Koprol (http://wharsojo.wordpress.com)

We are opening open submission, we welcome all your resources (codes, videos, documentations, slides, presentation) for our next meetup


Snippet Mendapatkan Tweet Terakhir di Wordpress

Posted: December 7th, 2009 | Author: gozali | Filed under: Life, Programming, Technology | Tags: | 3 Comments »

Beberapa hari yang lalu plugin Twitter Widget Pro mendapat serangan dari spammer, isinya kurang lebih mengajak hampir semua tweeps yang mem-follow saya untuk mengikuti test IQ, memang isinya test IQ tapi ternyata halaman tersebut mencuri cookies, sehingga beberapa teman ada yang mengirim tweets test IQ tersebut ke account twitter yang lain.

Dan parahnya lagi, status terakhir yang muncul di blog ini selalu tweet tersebut, padahal saya sudah mengubah password dan memasang beberapa status.

Akhirnya saya menonaktifkan plugin tersebut dan menggunakan snippet sederhana seperti di sini :

1
2
3
4
5
function wp_echoTwitter($username){
     include_once(ABSPATH.WPINC.'/rss.php');
     $tweet = fetch_rss("http://search.twitter.com/search.atom?q=from:" . $username . "&rpp=1");
     echo $tweet->items[0]['atom_content'];
}

Copy paste snippet di atas di file functions.php themes anda, jangan lupa filenya disimpan. Lalu tambahkan code seperti ini di themes anda.

1
<?php wp_echoTwitter('gozali'); ?>

simpan dan selesai, insyaAllah aman dari scam :p


W2Tags Live

Posted: November 17th, 2009 | Author: gozali | Filed under: Programming, Ruby, Technology | Tags: , | No Comments »

Widi Harsojo, a fellow Ruby enthusiast here in Indonesia have released a fancy tools called W2Tags Live. W2Tags itself is a fast-prototyping machine-code gem for ERB. It’s an open source projects available on github and gemcutter. You can find valid introduction to w2tags on his presentations at Jakarta.rb November 2008 here :

With the tools you can try w2tags online, you don’t need to install the gem on your machine, just type your code on the textarea available then it will render the results, as simple as that.

w2tags