Contoh Foto

This was taken with my new SLR camera. I haven't got to go anywhere.. so I shot a lot around my house, everything that I thought might be useful for me to get trained.

Alone


Alone
Originally uploaded by XtNdr
This is my first Blog's photo, taken at my friend's house. Not really a master piece just to show you how far I've learn taking picture.

Hobi Baru

Sekarang gw ada hobi baru .. Foto-foto ..

Sebetulnya gw ga gitu suka di foto, maklum kalo gw difoto pasti hasilnya mengecewakan, hehehe .. tapi pernah sekali gw moto sodara gw, dulu banget, masih pake kamera film, gw foto dia di Bali dengan latar belakang 'Matahari' pas di belakang kepalanya .. hasilnya bagus banget .. kepala dia seperti bercahaya ..

Nah, sekarang-sekarang ini gw pengen ngembangin bakat baru, ga baru-baru amat sih, maksudnya gini, tadinya gw sering main game untuk ngisi waktu luang dan gw anggap sebagai hobby. Tapi ternyata hobi yang satu itu sedikit banyak mirip dengan kerjaan gw di kantor yang setiap harinya mesti adu melotot dengan monitor komputer. Ada saat-saat gw jenuh sama pekerjaan kantor, sampai-sampai gw bisa mual-mual kalo liat monitor komputer nyala..

Setelah berpikir agak lama, kira-kira 30 menit, akhirnya gw ambil kesimpulan, gw musti punya hobi lain yang ga berhubungan dengan monitor komputer. Setelah menimbang dan berpikir keras, akhirnya gw mutusin untuk ngembangin bakat gw di bidang seni. Dan dengan sedikit terpengaruh engkong Mushashi, gw mutusin untuk ngegambar dengan pensil. Gw berpikir ke arah seni bukan dengan tanpa alasan. Gw inget banget waktu SMP, pernah ada pelajaran prakarya, gw buat selipan barang dengan karton yang gw lukis-lukis sendiri. Gw ga pernah ngelukis, jadilah gw coret-coret tuh karton dengan spidol. Pas waktunya untuk dikumpulin, guru gw kaget!!! 'Ini kamu lukis sendiri?', tanyanya [gaya bahasanya jadul banget ya]. 'Iya bu'. Kebetulan prakarya itu dikerjain di rumah, jadi sepertinya si ibu ga percaya kalo gw yang ngelukis itu sendiri, eh tepatnya corat-coret itu sendiri. Jadi .. kesimpulannya .. sepertinya gw ada bakat di bidang seni visual. Jadilah beberapa lukisan gw yang sama sekali ga bisa dibilang bagus, tapi anehnya, dengan ngelukis itu gw bisa ngelupain penat gw di kantor ..

Sampai akhirnya gw ngeliat foto-foto yang 'dibuat' temen gw .. gw ngeliatnya di Flickr .. foto-fotonya bagus, menurut gw. Sebetulnya gw sendiri masih bingung dengan definisi bagus .. masing-masing orang bisa menilai suatu foto itu bagus atau tidak kan dengan sensenya dia sendiri, jadi bagus buat gw, belom tentu bagus buat orang laen .. gitu kan?
Setelah lihat-lihat foto-foto temen gw, gw keranjingan deh browsing lihat-lihat foto-foto di flickr. Setealah keranjingan lihat-lihat, elo tahu donk akhirnya apa yang ada di kepala gw. Jadi sekarang gw berganti hobi jadi foto-foto!!! Tapi ga berarti maen game ga diterusin, ini aja lagi seru main 'Devil May Cry 4' ..

Selanjutnya gw bakalan banyak naro foto-foto hasil 'buatan' gw di flickr dan sebisa mungkin gw ceritain di sini.

Enjoy! [kata-kata ini buat gw sendiri lho]

PHP Framework - Catatan

Belom selesai buat komponen di Joomla 1.5.x nya sudah diselipin kerjaan untuk buat sendiri Framework dengan PHP. Berhubung sudah cukup lama pakai Joomla!, ya sudah, jadilah Frameworknya berbau Joomla!.

Framework untuk pemakaian kalangan sendiri, dengan gabungan keluwesan Joomla! 1.0.x dan kerapihan Joomla! 1.5.x.

Ditargetkan dalam 3 bulan Framework sudah harus matang.

Ayo kerja !!!

Howto: Image Output From Joomla 1.5

Now I know how to output image or any other type from Joomla 1.5. Before this I've already made my extension to output image from Joomla in the hard way, I simply use die(); to cancel all others html ouput from Joomla. Since I can't find any tutorial on how to done this things in internet.

So, first thing I looked up to is how to make Joomla print out RAW data. In the older version, we may use 'no_html=1' in our request, for example append this after your server url ( http://joomlaserver/ ):

index.php?option=com_extension&no_html=1

index.php?option=com_extension&format=raw

First line above will tell Joomla 1.0 not to output any HTML but the component's output. Use one of those two lines above to tell Joomla 1.5 to output anything the component wants to print out as is without any Joomla's header or footer.

After I've figured it out how to do raw print out, my second task is to make my component print out its own header. So I add this line of code ( in my case, it'll output jpeg image on the fly ):

header("Content-type: image/jpeg");
header('Content-Disposition: inline; filename=image.jpg');
header("Pragma: no-cache");
header("Expires: 0");
echo $myImageBinarySource;

And I'll get my image output from Joomla 1.5 framework in clean and clear code.

Joomla's Non-standard Output Header

Technorati Tags: ,,,

As we all know, all joomla's output mainly grouped into 4: HTML, PDF, Feed, RAW. What about if I'd like to output anything else directly from Joomla? You just have to die();

Every output in Joomla will have extra HTML elements, for now I use this trick: Output all header that you need, print out your content and finally before Joomla get in the way, execute die(). This solves my problem.

For example, try to do this in model. Since in model is where you put your data[base] management:

header("Content-type: application/x-msdownload");
header("Content-Disposition: attachment; filename=MyFile.xls");
header("Pragma: no-cache");
header("Expires: 0");
die();

I still think this is not the right way, untill then, enjoy this..

Starting Joomla 1.5 - FTP System

As of today I start to study Joomla 1.5. It's predecessor already amaze me, with only PHP language it can act like an Operating System. It has an installation / uninstallation system !!! But with a major drawback for web programmer like me. Everything installed by it's system is owned by user id that runs the web server, usually httpd or wwwrun.

So, if at some point I need to manually edit its code, I can't. I had to edit it locally, make sure everything is fine, create new installation package, uninstall my package from the server and finally re-install my package. It's fine if I had a big revision of my extension, but what if I only need to change an "A" into an "a"?

In 1.5 this drawback is erased.. cheers.. now it has a FTP layer, as the developer said, you won't have an ownership problem just like the previous version has. If in 1.x version all files were uploaded thru web server's post method, in this version files are uploaded thru FTP with your user id and password.

I don't have to re-install and install my extension again just to change that "A" into "a", I could just edited right away and than update my local copy.

You can get Joomla at here

2018: Tahun Baru Motivasi Baru

Tahun Baru 2017 sudah lewat, sekarang sudah 2018. Tahun berganti seperti yang sudah-sudah, setahun lagi juga akan berganti menjadi 2019. ...