Posted: December 7th, 2009 | Author: gozali | Filed under: Life, Programming, Technology | Tags: wordpress snippet twitter | 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
Posted: November 17th, 2009 | Author: gozali | Filed under: Programming, Ruby, Technology | Tags: ruby, w2tags | 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.

Posted: August 1st, 2009 | Author: gozali | Filed under: Programming, Ruby, Technology | Tags: apidock, ruby, tips | No Comments »
There are a lot of web app that provides a rich and usable interface for searching Ruby and Ruby on Rails documentation out there. But my favourite is Apidock. One feature that makes Apidock become my favorite is it’s Search Engine Integration on Mozilla Firefox.
How to add Apidock Search Engine to your Firefox?
Click this url http://apidock.com/ruby/search?query=Open and you will find Add Ruby quicksearch to your browser link.

Click the link and voila! You will get Ruby Search Engine on your browser

Happy searching