Maybe Useful for you!

 

Internet Explorer 6 Shit!!!

July 28th, 2008

Shit IE6!!! I Hate and I Don’t want to waste my valuable time just for this fuck’n old and stupid browser!

Microsoft Internet Explorer 6 is yet another shit in this world. Internet Explorer 6 Shit!!!!

For you who wants to get best result and performance from a new era website, use new era browser!

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Hello eperibadeh… kali ini saya maw sharing tentang stuff-stuff drupal. Apa itu? itu adalah sebuah API dari drupal untuk semacam callback bernama hook_nodeapi() .
Lalu apa gunanya function / callback ini? hook_nodeapi() adalah sebuah function yang handling semua kegiatan Create, Read, Update, Delete ( C.R.U.D ) pada semua tipe kontent yang ada di drupal. Mulai dari tipe kontent built-in ataupun custom kontent yang buat melalui modul Content Construction Kit ( CCK ).

Ummm…apa yaaa yang bisa kita lakukan dengan callback ini? Sebagai contoh kasus, saya pakai kasus saya yang kemarin yang memanfaatkan callback ini.
Saya meng-inginkan setiap saya memasukkan content baru pada sebuah tipe konten custom yang saya buat melalui CCK, title dari konten tersebut otomatis menjadi sebuah Term dari sebuah Category. Ok, saya punya kategori bernama Kelompok Tani . Terms dari kategori Kelompok Tani adalah nama-nama kelompok tani. Jadi tipe konten custom yang saya buat itu menyimpan data-data detail dari sebuah kelompok tani, dan nama tipe konten custom saya itu kelompoktani . Dan nanti , title-nya saya jadikan term sebuah kategori. Umm..cukup jelas ?

Trus? dimana kita memanggil hook_nodeapi() supaya kita bisa menambahkan logic baru pada proses C.R.U.D yang terjadi. Untuk dapat memanfaatkan hook_nodeapi() kita harus membuat sebuah modul baru. Disini tidak saya jelaskan bagaimana membuat modul baru karena, itu ada dalam tulisan saya yang lain tentang dasar-dasar pembuatan modul baru. Mana?? hehe mangaapp yaakk blom tak tulis :D

Ok, langsung aja. Buat folder bernama nama_module, lalu file dengan nama nama_modul.info dan nama_modul.module . Kita pakai contoh kasus saya. Modul saya bernama title_goto_terms, dan dua buah file bernama title_goto_terms.info dan title_goto_terms.module .

Isi file title_goto_terms.info :
; $Id $
name = “Title go to terms”
description = “Automatically made title of a content type became term of a category”
version = VERSION

Isi file title_goto_terms.module :

  1. <?php
  2. // $Id$
  3.  
  4. function title_goto_terms_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
  5. if ($op == 'view') {
  6. if ($node->type == 'kelompoktani') {
  7. $term = array();
  8. $term['name'] = $node->title;
  9. $term['vid'] = 4;
  10. taxonomy_save_term($term);
  11. }
  12. }
  13. }

Ok… jadi dehh… tinggal masuk ke Administer –> Modules –> aktifkan module yang baru saja kita buat.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Suatu hari saat perutku lapar, gerimis lumayan berat, dan bingung maw makan dimana. Udaaahh makan di nasgor payudara aja..
Saya : “mas nasi goreng spesial, nasinya satu setengah! ”
“blabblabl abalbablaba blablablablabbla iuhedihfoiwfweoi blablablabla” <<– conversation antara aq dan pedagang nasgor
akhirnya pertanyaan ini muncul,
Pedagang nasgor : ” Kok cewenya nggak diajak kesini..? ajak laahh sekali2 kesini… ”
Saya : ” Ohh…ceweku, dia udah makan, dia males keluar hujan2.., kostnya jauuhh males juga hujan2 gini aq jemputnya. lagian juga lg pengen sendiri nih.. bosen berduaan terus ”
Pedagang nasgor : ” hehehe besok2 ajak yaa.. ”
Saya : ” Iyaaa beresss, nanti aq knalin ma tmn2nya.. di hp nya bnyk nomer cewe kyknya.. ”

— END —

Suatu hari pulsaku habis.., maw beli pulsa, tapi duit cuman tinggal 5000.. hahhh bodo beli ajaaa.. perkakas gali lubangku msh tersimpan dng rapi. Hehehehe :D
Saya : ” Mbak, pulsa XL Bebas 5 ribu ”
Pedagang pulsa : “Extra ato Reguler ”
Saya : “Reguler ”
“blablablablablablablalablablablablablabla blablablalbalbalbalbla ” <<– lg ngisi pulsa ceritanya tuh dagangnya…

Pedagang pulsa : ” Kok kmu nggak pernah aq liat gandeng cewe? tuh temen2mu.. pada lewat sini gandengin cewe semua aq liat”
Saya : ” hahahahaha cukup satu mbak :) setia gtuuu… nanti klo aq selingkuh disini trus terdeteksi sama dia, kan berabe mbak.. dia disini punya mata2 juga mbak! yaa walopun tanpa2 mata2pun aq nggak akan selingkuh kok.. hahahahah..”

Pedagang pulsa : ” hahhaha boong bangett… paling udah 5 selingkuhannya.. ”
Saya : “Yaa udah klo ndak percaya, lgan udah bosen pacaran terus ni kerjaan.. pengen sendiri ajaa asyik kyknya.. ”

trus pulang.

– END –

Suatu hari malam minggu di siang hari perutku laper lagi… tapi untungnya gak ujan lagi, gak becek, dan untungnya juga ada Ojek! jadi, nggak cape deh.. Beli makan di warung makan prasmanan favoritku.. biar bs ambil nasi segunung… trus cuman lauknya tempe satu batang. dimakan.. bodo amat … abiss.., bayar .

Saya : ” Udah mbak, tempe empat batang ( hihihi gini2 juga msh punya nurani.. :D ) , mm.. minumnya air putih ”
Pedagang : ” 2500 ”
Saya : ” nihh”
Pedagang : ” Ndak keluar ntr malam mingguan ?”
Saya : ” Nggak ahh.. males, mending belajar buat ujian besok dikosan.. , lg ada masalah ni ama dia (kbtulan udah akrab ama tu kasir ) jadi males, yaa malam minggu hari ini sekali2 ndak kencan ndak masalah.. pengen menikmati kesendirian hari ini.. ”
Pedagang : ” Cieeehhh… ”

Pulang.

– END –

Suatu hari aq pulang kampung, dan dah nyampe di rumah di kampung. Ktemu ma temen2.. dan ngobrol cerita2 lama yang memang paling bagus diceritakan klo dah lama…
” Blablablablablablablalablala blabkbalbak@#$$( blablablablablabla ” << — lg ngobrol2..

Temen : ” Waaah berarti kmu udah dapet ngrasain cewe sana donk..! ”
Saya : ” Yaaaah begtulahh udah berapa kali sampe lupa nihh… ”
Temen : ” Gilaa loee! pantesan loe jarang pulang.. udah punya mbak yu disana rupanya? cantik ga? seagama ato tidak seagama?”
Saya : “Walaaah so pasti cantik! dan so pastinya juga nggak seagama heheheheh ”

Mabok. Pulang. Tepar…

– END –

Yaahhh itu beberapa cerita2 ndak berguna yg aq tulis. Terlihat kan? Pada intinya aq tuh.., sudah jenuh dengan mantan2 pacar aq itu.., mereka pada ndak bs ngetiin aq! aq ingin sendiri.. aq perlu waktu untuk sendiri.., aq ingin menikmati. kesendirian ini.. Lebih baik punya banyak teman… lebih enak ngejomblo…

– begin the fuck –

” Woaaalaaaahhhh soknyaaaa!!! bilang aja nggak ada yang mau! kan beresss… wuuu! gtoo aja susah! jangan sok2an pengen menikmati kesendirian deh loe! jangan sok2an bilang lebih enak jomblo! Mereka yg ngomong spt itu, klo mereka mau saat menit, detik mereka putuskan utk cari pasangan, mereka bs dapet dengan cepaatt! sedangkan kmu???!! Hey! mereka itu sebenernya munafik! mereka merasa mudah mencari seorang pasangan! mereka menyepelekannya!”

– end of the fuck –

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Udah lama Agnes Monica ndak nongol lagi di tipi… kemana yaa dia..? apakah sedang sibuk kuliah atau sedang mengembangkan skills di bidang menari menyanyi? bertapa gtu… atau jangan2 aq yang jarang nonton tipi gara2 sibuk ama kerjaan di kantor+ kuliah + obsesi + planning2 + artist ( aq artist juga lohhh hahahaha, artist kan ndak selalu harus muncul di impotenmen2.. wekksss :P ) plus nyari2 yang namanya seseorang yang cocok ditanyain “udah maem blom?” , “udah mandi blom?”, “kok blom mandi? ihh bauuu”, “kok blom maem? ntar sakit lohhh”. Ha! cukup kalian tertawa sekali dan satu kata saja sebagai penghormatan kepadaku :D ( emang aq siapa yaakk? emangnya aq bendera apa? dihormatin segala…? )

Naahh…, yang terakhir itu tuhhh yg aq maksud lumayan menyitaa..ehemmm duit dan tenaga juga pikiran. Setelah aq pikir2.., kayaknya Agnes Monica cocok dehh ma aq.., kenapa aq memilih agnes monica? “ohhh agnes.. maukah kau tau mengapa aq jatuh cinta padamu…?? ” .

  1. Yaa… yg pertama dia itu pinter bhs inggrisnya..,lumayan buat aq yang ngulang matkul bhs inggris II tiga kali ( WTF?? kemaneee aja loee ?&#^#) kan ntar dia bs ngajarin… kan asyik tuh belajar sambil pacaran… bisa2 IPKq yg paling tinggi dikampus… Ha! (cukup sekali saja)
  2. Dia pinter nyanyi…! waahh yang ini nihh yang pertama dan utama.! kmaren dengerin lagunya yg “pernikahan diniiiiiiiiiiiii” hihi msh imut banget suaranya..
    truss dia tu nyanyiin lagu2 dng nada2 yg nggak biasa.. apalagi kalo lagunya dimainkan dng gitar.. kunci2nya nggak biasa juga.. malah harus pakai kunci inggris, kunci mobil, kunci motor dan kunci pesawat untuk bisa menghidupkan kendaraan2 kita..
  3. Rambutnya warna warni. Ihhh warna warni boooo! ( cute dikit gak apa2 kan? ) kayaknya dia terpengaruh Melly goeslaw deh.. , Aq suka klo dia rambutnya di cat hitam! wowwww anggun bangeeeett cantik! seperti bidadari mendarat dari khayangan.
  4. Bisa dance.., hikzz sayang ndak bs nari Bali.. hehe tapi no problem..
  5. Saat pandangan pertama, dia tu ada respon ma aq! serius! percaya deh..
  6. Cantik
  7. Ramah
  8. Pengertian
  9. Pinter masak (enyaakk enyaak lagi masakannya! nggak nyangka aq! )
  10. Dia itu pinter dalam hal akademis dan non akademis…

Saat aq pandang matanya di tipi.., dia malah senyum kepadaku! gila nggak tuh!

Mikirin dia, jadi ndak bisa tidur semalaman.. nggak enak makan, nggak enak kuliah… abisss masa sih.. tiap hari tuh Ibu masak jengkol muluu.., truss dosen matkul grafika komputerku ngasi kuissss muluu tiap pertemuan, ditambah lagee nyamuk dikamarku banyaaakk sekali.. uhhhh… semua gara2 agnes monica!

Akhirnya aku putuskan untuk membentuk diriku agar menjadi laki - laki yang bisa menjaga, memberikan rasa nyaman dan aman kepada agnes. Menjadi seseorang yang pengertian, selalu memberikannya dukungan atas semua harapan dan cita2nya…, Juga aq harap, aq bisa selalu memberikan waktuku untuknya..

Yeeaah! I”AM A AGNES MONICA BELOVED WANNABE..

Hormat saya                                                                                                              Bapak / Ibu Guru

AMBW                                                                                                                        Ibuku Galak sekali

Tembusan :

  • Agnes Monica
  • Agnes Monica
  • Agnes Monica
  • Agnes Monica
  • Agnes Monica
  • Agnes Monica
[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

LOVE BLESS YOU… ™

February 22nd, 2008

Hope someone that you loved feel your care

Hope someone that you loved give you a chance

Hope someone that you loved opened his eyes for your love

Buying your safety, Comfort, and Commitment products

Love Bless You..

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

It’s Suck!

January 30th, 2008

yeaa..i’am crazy.. i don’t know what i say.. and what must i say…

i’am not sure what i say to you!

My Bad English so Suck..!!!!!!!!!!!!!!!!!!!!!

I Want to share my brain content, state my hearth content….

I Hate to use translator program forever…. SUCK@!!!!@##%

I Don’t care your reaction if you listen to my speak!

I Hate you! If you heed me!

Fuck you alllll……….!!!!!!!!!!!!!!!!!!!!!

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

I don’t know why…
…I never told you
I don’t know why…
…I never tried

When we shed these bitter skins again

All the reasons come to life
But now it’s over..
Now it’s over
Now it’s over
Now it’s over

I don’t know why
You never asked me
And I don’t know why
You never cared

When we hide these little sins again

All the reasons
Have to die…
But now it’s over
Now it’s over
And now it’s over
And now it’s over

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Unable to open something.tmp

January 16th, 2008

Weww… i got stressfull today when i start to trying SWFUpload for
handling my files upload nicer, interactive, and informative. I just want
my files upload tasks act like a desktop application, that no need
page refresh. Yeaah now u know what is SWFUpload used for. And i will
not explain more in detail about SWFUpload because this is not thing that
i want to talking about, and i will talking about SWFUpload
in another article if i has been familiar with this great uploader. Soon!
trust me.

Umm.. what i want to talking about now is error message that
say like this : ” Hey! i unable to open or move blablab.tmp in
\yourdir\yourphp_tmp_session_dir\blabla.tmp blablabla”
wtf?! i guess you will checking out your php.ini and go to
session.save_path and make sure if its value is correct.

I got this problem when using all in one web development package. That
is xampp. And i’am not sure if you will deal with something like my problem
maybe your server is good configured. yeaah just for documentation
if someday i meet with same problem like this.

Ok what kind of things you need to configure?

1. php.ini
make sure your php.ini configuration variable below :
session.save_path is correct
upload_tmp_dir is correct

ok enough deal with that two variabel configuration

2 httpd.confg
you need to add this new rule in httpd.conf
add this lines :
<Directory “driveLetter:/path/to/your/saved/tmp/session”>
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>

what’s next? hehehe guess by yourself.. :D

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Today at 06:00 PM when i learning new version cakePHP framework, i want to implement ACL feature. After reading some tutorial, i start to doing each steps explained by the tutorial.

I run this command, in my dos console :
cake acl create aco / ROOT and got error messages like this :

Fatal error: Undefined class name ’string’ in D:\tohtdocs\MyBand\cake\libs\model
\datasources\dbo_source.php on line 1456

This error message annoying, after asking question everywhere, i’am still stuck! no solutions. After that, i decided to visiting all of my new friends in #cakephp at IRC. Hooorraayy i was very luck because i meet very great people AD7six . He ask me for checking cake trac and ask me browse the dbo_source.php in

THE BUG FIXES

The db0_source.php bug is not too serious.. just adding this line :

uses(’String’);

at the top of all classes from dbo_source.php

looks like this :

  1. <?php
  2. /* SVN FILE: $Id: dbo_source.php 6311 2008-01-02 06:33:52Z phpnut $ */
  3. /**
  4. * Short description for file.
  5. *
  6. * Long description for file
  7. *
  8. * PHP versions 4 and 5
  9. *
  10. * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
  11. * Copyright 2005-2008, Cake Software Foundation, Inc.
  12. *                1785 E. Sahara Avenue, Suite 490-204
  13. *                Las Vegas, Nevada 89104
  14. *
  15. * Licensed under The MIT License
  16. * Redistributions of files must retain the above copyright notice.
  17. *
  18. * @filesource
  19. * @copyright  Copyright 2005-2008, Cake Software Foundation, Inc.
  20. * @link        http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
  21. * @package   cake
  22. * @subpackage    cake.cake.libs.model.datasources
  23. * @since   CakePHP(tm) v 0.10.0.1076
  24. * @version   $Revision: 6311 $
  25. * @modifiedby    $LastChangedBy: phpnut $
  26. * @lastmodified  $Date: 2008-01-02 00:33:52 -0600 (Wed, 02 Jan 2008) $
  27. * @license   http://www.opensource.org/licenses/mit-license.php The MIT License
  28. */
  29. uses('set');
  30.  
  31. /**
  32. * DboSource
  33. *
  34. * Creates DBO-descendant objects from a given db connection configuration
  35. *
  36. * @package  cake
  37. * @subpackage  cake.cake.libs.model.datasources
  38. */
  39. class DboSource extends DataSource {

and the new with bug fixes look like this :

  1. <?php
  2. /* SVN FILE: $Id: dbo_source.php 6311 2008-01-02 06:33:52Z phpnut $ */
  3. /**
  4. * Short description for file.
  5. *
  6. * Long description for file
  7. *
  8. * PHP versions 4 and 5
  9. *
  10. * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
  11. * Copyright 2005-2008, Cake Software Foundation, Inc.
  12. *                1785 E. Sahara Avenue, Suite 490-204
  13. *                Las Vegas, Nevada 89104
  14. *
  15. * Licensed under The MIT License
  16. * Redistributions of files must retain the above copyright notice.
  17. *
  18. * @filesource
  19. * @copyright  Copyright 2005-2008, Cake Software Foundation, Inc.
  20. * @link        http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
  21. * @package   cake
  22. * @subpackage    cake.cake.libs.model.datasources
  23. * @since   CakePHP(tm) v 0.10.0.1076
  24. * @version   $Revision: 6311 $
  25. * @modifiedby    $LastChangedBy: phpnut $
  26. * @lastmodified  $Date: 2008-01-02 00:33:52 -0600 (Wed, 02 Jan 2008) $
  27. * @license   http://www.opensource.org/licenses/mit-license.php The MIT License
  28. */
  29. uses('set');
  30. uses('String'); // add this line
  31.  
  32. /**
  33. * DboSource
  34. *
  35. * Creates DBO-descendant objects from a given db connection configuration
  36. *
  37. * @package  cake
  38. * @subpackage  cake.cake.libs.model.datasources
  39. */
  40. class DboSource extends DataSource {

I hope this article help you.. :)

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

PHP CLI PROBLEM

January 4th, 2008

Today i’am was learning new web development technology, that is cakePHP web development framework. Yeaahh cake! web development that doesn’t hurt. And i wanna be a professional baker :D .

So what’s the relation with cakePHP ? i will not explain what is cakePHP and why use cakePHP. I just want to share my solved problem when working with cakePHP when baking MVC using its console. If your are also a baker, you absolutely know why we are using php command line interface? and you are really same with me if you are using XAMPP for all in one server for web development. Why because i not want to be headcache for doing configuring, compiling, and man other suck tasks. Just unpack the XAMPP package, and you are ready for use it! Your life happy, and you have much time for your girlfriend to get a date with you!

But, unfortunately PHP CLI for the PHP 5 in XAMPP is not compiled in order support with MySQL, and other database extensions. So..? what we must do?
Use php cli for php 4. PHP CLI for php4 is good enough executing all of php application in cakePHP console that had been using pure PHP 5 Object Oriented Programming features.
Find PHP CLI for PHP 4 in xampp\php\php4\phpcli.exe

In order you can use it without any problem happen, you must follow this steps first :

  1. Set the your windows Environment variable. find in, right click My Computer, and go to Advance tab, and click the Environment Variables butto.  Set the Path variable in the System variables group. Add the new value to the existing line with semicolon for separatinhpg new value. Add this value : drive_leter_where_u_save_xampp:\xampp\php\php4 . click Ok, and click Ok again, restart your computer, finish!
  2. You must use php cli with its important option. The options -c . For more information type phpcli -h in your console

Now you can use php cli for php cli for php 4 and free from suck error message and problem.

Example Use :

I used php cli for php 4 for my web app development with cakePHP console.
phpcli -c \xampp\php\php4\php.ini console\cake bake all

Enjoy..

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]