Masks of Psychosocial

Have you heard or even watch the new single of Slipknot called Psychosocial? It’s freakin’ cool! I’ve been waiting long enough Slipknot release their new album. Well talk about new album, some of them are wearing new mask too. This is why I like this band, what a genius psycho theatrical music act.

psychosocial

And fuck, Joey Jordison going for a Jesus look! Surf here Slipknot1.com and YouTube for more information.

Last Sunday, I watched The Dark Knight. Joker took my attention. I think it would be better if Slipknot get involved on the soundtrack :D

Why so serious?

Belakang Layar 15june.com

Hi dab! Berhubung banyak yang bertanya bagaimana cara saya ngoprek Wordpress hingga bisa seperti 15june.com sekarang, saya akan bocorkan bagaimana cara mengkombinasi Twitter, Flickr, Journal, Delicious dan Last.fm dalam sebuah blog berbasis Wordpress.

Inilah bahan-bahan yang saya gunakan:

Skenario Awal, Custom Flickr Post

Awalnya saya kebingungan bagaimana caranya mengambil gambar-gambar saya di Flickr via RSS, pasalnya default RSS yang disediakan oleh Flickr hanya menampilkan gambar berukuran ’small’ / kecil. Kemudian saya memutuskan menggunakan FlickrAPI. Setelah tanya sana-sini akhirnya saya berhasil membuat sebuah file RSS yang di-generate dari script PHP, tentu saja dengan menampilkan ukuran ‘medium’.

Ternyata, tidak semua gambar di Flickr yang mau saya tampilkan. Jadi, cara diatas tidak berhasil dan akhirnya saya menggunakan fasilitas Blog This dari Flickr sendiri. Fasilitas ini memungkinkan saya untuk memposting gambar berukuran medium dan tentunya saya bebas memilih gambar yang mana dan dengan custom HTML pula.

Format post saya begini:
<a href="{photo_url}" style="background: transparent url('{photo_src}') no-repeat center center;" title="{photo_title}"><img src="{photo_src}" alt="{photo_title}"></a>
<div class="flickr-desc">{photo_desc}</div>

Kenapa saya pilih format seperti ini? Jawabannya berhubungan dengan CSS yang akan saya jelaskan dibawah. This is what I want.

Narsisme Twitter

Saya jarang ngeblog, sudah menjadi stereotype di otak saya bahwa blog itu mulai membosankan dan wasting time. Kalaupun saya ada waktu, malah lebih banyak main di Flickr :D Micro Blogging adalah yang cocok buat orang pemalas seperti saya. Apalagi Twitter mendukung blogging via SMS, that is another fun.

Saya memakai plugin keren dari Alex King, Twitter Tools dan memasukkan kedalam body post, dirangkum per hari. Jadi kamu kadang melihat post berjudul “Twitter for 2008-05-13″. Plugin ini punya option untuk diset demikian.

Goodbye Ma.gnolia, Welcome Del.icio.us

Sebelumnya saya memakai service social-bookmarking dari ma.gnolia, I don’t have problem with that tapi karena satu hal dan lainnya, saya bermigrasi ke del.icio.us. Plugin yang saya pakai adalah del.icio.us for Wordpress, plugin ini tidak masuk dalam body post tapi independen di bagian sidebar. Saya hanya integrasikan link del.icio.us dalam general RSS dengan menggunakan Feedburner.

Personality Last.fm

Saya tidak berharap pengunjung melihat 10 last music tracks yang saya dengarkan, tapi ini saya gunakan agar saya sendiri tahu track list saya selama seminggu apa saja. Mulan Jameela dan Parish Hilton juga oke, Kangen Band masuk black list, Cradle of Filth jadi nina-bobo, seru!

Journal, Long Post Blogging

Saya tidak mau membebani pengunjung menyedot semua aktifitas internet saya begitu saja. Mungkin untuk beberapa orang akan merasa terganggu dan useless. Maka dari itu saya install 2 Wordpress! Kenapa dua? Konyol memang, saya mengalami kesulitan untuk membagi RSS untuk setiap kategori karena plugin FeedBurner FeedSmith me-redirect semua RSS menjadi satu. Contohnya untuk RSS dalam kategori Flickr: 15june.com/flickr/feed/ akan otomatis ke feeds.feedburner.com/15june. That is sucks.

Maka dari itu saya install Wordpress di dalam folder /archive/ demi mendapatkan RSS tersendiri agar bisa di-subscribe tanpa embel flickr, twitter dll. Kemudian RSS dari Wordpress dalam folder /archives/ ini saya sedot dengan FeedWordPress di Wordpress dalam /root/ .

Eh, did I said about categories? Ah ya! Setelah konsep dan plugin bekerja sesuai keinginan, saya mulai berpikir tentang CSS. Bagaimana caranya dengan CSS memisahkan style antara postingan Flickr, Twitter dan Journal dalam body post. This is the best part.

Dancing With CSS

Konsep ini terpikir setelah saya berhasil meng-convert semua web berbasis Joomla 1.5 di kantor, yaitu penambahan custom sufix class dan di-generate otomatis. Maksudnyeeeee????

Begini, body post yang berasal dari Twitter, Flickr dan Journal dibagi dalam kategori berbeda sesuai dengan namanya, jadi kalau post berasal dari Flickr otomatis masuk ke kategori flickr (ini bisa diset kok, tinggal cari ubek-ubek di dalam admin).

Maka dari itu sodara-sodariku sekalian, kode looping saya modifikasi dan menambahkan tag khusus menjadi seperti ini:
<?php foreach((get_the_category()) as $category) { echo $category->cat_name . '-entry';}?>

Paham adik-adik? Tidak??? bagoooosss…
Lengkapnya jadi begini:

--------------------------
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>

<div class="<?php foreach((get_the_category()) as $category) { echo $category->cat_name . '-post';}?>" id="post-<?php the_ID(); ?>">

<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Posted: <?php the_time('F jS, Y') ?>" class="<?php foreach((get_the_category()) as $category) { echo $category->cat_name . '-title';}?>"><?php the_title(); ?></a></h2>

<div class="<?php foreach((get_the_category()) as $category) { echo $category->cat_name . '-entry';}?>" id="post-<?php the_ID(); ?>">
<?php the_content('Read the rest of this entry &raquo;'); ?>
</div>

</div>

<?php endwhile; ?><?php else : ?><?php endif; ?>
--------------------------

Dengan demikian, Wordpress akan menghasilkan div class tersendiri di setiap postnya:
<div class="flickr-entry" id="post-527">

Aha! CSSpun siap di buat karena classnya sudah ada untuk masing-masing post, jadilah warna-warna dan icon-icon kecil seperti “burung”, “kamera” dan “buku” sebagai simbol untuk membedakan setiap post yang ada di 15june.com

Bisa saja sih dengan memakai teknik Custom Fields dengan hasil yang sama, tapi tetap saja kamu harus manual memilih field setiap post. Repot, capek, males dsb.

Tuh kan, Sebenernya Doyan Ngeblog Gak Sih?

Hehehehe, NGGAK! Sibuk! :D

Call Me Genius, I Don’t Mind

I was thinking about how to gather all my online activities in one place. So here they are, Twitter, Flickr, Del.icio.us, Last.fm and Journal (blog), combined in one colorful skinned blog. They are automatically grabbed and posted here with particular timeline.

Wordpress can do this, but I couldn’t save my previous permalink because of .htaccess conflict, then default permalink format should be fine for me.

There are some RSS feed you can subscribe here. Probably if you mind to follow my online life, go ahead to subscribe the general feed, buy one - get all. Or just my Journal feed? yes you can do that too.

Behind The Scene of Template Monster

I’ve found this video about 2 months ago in Youtube (before blocked from Indonesia). This is video advertising of Template Monster. Interesting and very cool!

I think it’s nice to share it here….

Update

Since the video streaming from google shown error message:

We’re sorry, but this video may not be available.
If this video was recently uploaded, it may still be processing.
If this video is yours, you can check its status.
To see more videos visit our home page.

Now I stream it from Vimeo.com

68% Sick

  1. What on earth a country blocking access to YouTube
  2. Youtube is not the only web who publish that movie
  3. Massive blocking will gain sympathy (really?) and stupid reaction from public
  4. Why don’t you just shutdown your own computer, cut your internet connection so can not access evils on internet
  5. Porn? Eh? Prawn? What?
  6. Shame… yeah what a shame. What next, blocking Google? Flickr? Wordpress?
  7. Somebody please tell me the definition of hacker, blogger, cracker and wanker
  8. This “porn” thingy just getting sick
  9. Internet is just like a knife, a matter of how people use it, bad or good
  10. My tank is empty, and no fucking gasoline in my fucking city

Think I need a new citizenship. 68% more fun, funky, and fancy.