lego big morl – Ray

Maret 31, 2009 at 8:42 AM (Music Clip)

Subete no imi ga anata ni
I’ll take everything you mean to me

Naru youni uta ni shiyo
And turn it into a song

Kopno kanshoku mo kono kodomo
This feeling, this chord

Kono amami mo iro mo nioi wo
This sweetness, this color and this fragrance

Gokaide wa anata no subete wa
The five senses can’t understand

Rikai dekinai ara wa se nai
All that you are, nor even express it

Boku no arittake de, sou, arittake de
So all there is of me, yes, all there is

Tsumru mo ii youni uketeru
Must be in good condition so I can understand

Tokidoki anata wa tsumetaku
From time to time you can be cold

Sona toki kimatte sekai wa kireide
At times like those the world is beautiful

Boku bakari ga sono yasashita no
All I can do is drink in

Nomi hoshite shimatta youna
That gentleness

Kago wo hisisuru boku wa
While I dwell on the past

Mirai shiga minai anata wo
You see anly the future

Hikyouna te de kusari ni tsunaide wa
While I cowardly try to chain you

Anata no jyuu wo ubatteru kana?
Are you fighting for your freedom?

Yowai boku wa anata no inai sekai mo ikiru
If you weren’t in this world I’d be weak

Jishin wa nai no dakara semete saki ni shin nazete
And without confidence, so at least let me die before you

Tsuyoi anata wa iu desho? “Sonna koko iun jyanai no?”
You said be strong, didn’t you? “Don’t say such things”

Tsumari anata wa boku no ikiru hikari
In other words, you are the light of my life

Ray…
Ray…

Lyric Credit to Timelessub

Permalink Tinggalkan sebuah Komentar

dam-mit-i’m-mad-dam-mit-i’m-mad

Maret 22, 2009 at 12:57 AM (art-poem-design)

Dammit, how could be possibly somebody write something like this. Look at this poem, the whole poem… It’s a palindrome dude!! Look at that carefully. How could be somebody make a poem like this. It’s crazy, make me laugh out loud. I can’t stop laughing wondering the writer was a crazy guy with a brainiac brain in his cell brain.

Prepare not to explode to watch this. Enjoy the palindrome requiem…

Note: for those who doesn’t know about palindrome: Palindrome is a word or phrase(in this case a poem) or other sequence of units that can be read the same way in either direction (the adjustment of punctuation and spaces between words is generally permitted).

e.g: simple sample:

  • rewarder / redrawer
  • departer / retraped
  • kasur / rusak
  • wow kk wow
  • makam

Dammit I’m Mad – a poem by Demetri Martin

Dammit I’m mad.
Evil is a deed as I live.
God, am I reviled? I rise, my bed on a sun, I melt.
To be not one man emanating is sad. I piss.
Alas, it is so late. Who stops to help?
Man, it is hot. I’m in it. I tell.
I am not a devil. I level “Mad Dog”.
Ah, say burning is, as a deified gulp,
In my halo of a mired rum tin.
I erase many men. Oh, to be man, a sin.
Is evil in a clam? In a trap?
No. It is open. On it I was stuck.
Rats peed on hope. Elsewhere dips a web.
Be still if I fill its ebb.
Ew, a spider… eh?
We sleep. Oh no!
Deep, stark cuts saw it in one position.
Part animal, can I live? Sin is a name.
Both, one… my names are in it.
Murder? I’m a fool.
A hymn I plug, deified as a sign in ruby ash.
A Goddam level I lived at.
On mail let it in. I’m it.
Oh, sit in ample hot spots. Oh wet!
A loss it is alas (sip). I’d assign it a name.N
ame not one bottle minus an ode by me:
“Sir, I deliver. I’m a dog”
Evil is a deed as I live.
Dammit I’m mad.

How is it? Is it enaff??!! Do you wanna more? Check this out!! (world’s longest palindrome strange story, 10 pages)

I have enough already. I don’t wanna read it more. I wanna live long…

I knew from him and her

Permalink Tinggalkan sebuah Komentar

Hackintosh, wanna?

Maret 21, 2009 at 8:27 AM (mac)


some of my friends have transformed their desktop or their notebook to hackintosh. What’s that? of course you will thinks that you’ve heard of it.  That’s right. It’s a macintos OS like and run (well?) on your un”mac” desktop or notebook. wow, it’d be great to have your OS looks like macintosh.

When somebody ask like, “what’s your computer?”

You can proudly answer, “hackintosh…”

“Hackintosh? is that macintosh things? wow they’re great!!”

“So.. So…” hihihi.. I think most of your friend will be deceived actually.

Besides the visual looks on hack and the brand of mac, there’s a damn difficult thing to look after the drivers. Bcoz It’s not installed on the appropriate computer. It will be difficult to search all over the maya world the driver match with hackintosh. Er.. Most of them have desperately looked after the drivers. They usually miss vga and souncaard drivers. Hm.. that would be a great loss.

But there’s one thing I can sure about it. If you will finally make over your desktop or notebook into Hack. You’ll have a super pleasure in the end. The effort you have wasted to search the driver will be paid back!!

Permalink & Komentar

memory leak(c++)

Maret 19, 2009 at 4:54 AM (C/C++)

Honestly, it’s about my college home works. In an attempt to maniplate your computer memory with pointer, you have to prevent it happen(memory leak). It happen when a memory is being useless. Let’s make this simple: You have an allocated memory but nobody(I mean pointer(s)) access that address.

Look at this sample:

int *P;
//allocating an amount of memory space and save that address in pointer P
P = new int;
*P = 13;

P = new int;
*P = 25;

Look at this sample. At first you allocate some memory space and you give that memory a value. Until that time, It has no memory leak. But, after you allocate new memory space and save it in same pointer,  the previous address you have allocated isn’t accessed by any pointers. Nobody(again.. it’s pointer) Access that address, and it become a waste.

You can polish that memory leak with deallocate command after if you don’t need that address anymore.

int *P;
//allocate an amount of memory space and save that address in pointer P
P = new int;
*P = 13;

//deallocate address saved in its pointer
delete P;

P = new int;
*P = 25;

Happy to code!!

Permalink Tinggalkan sebuah Komentar

Belajar web

Maret 15, 2009 at 5:17 PM (internet, programming)

Untuk beberapa orang yang otodidak dalam membangun webnya tidak perlu khawatir. Jika Anda ingin mudah, gunakan CMS(content management system) yang sudah banyak pilihannya. Namun jika ingin membangunnya dari nol mulailah mempelajari semua yang dibutuhkan dari sekarang. Cicil saja, take your time wisely. Jangan terburu-buru juga.

Ada baiknya jika ingin mempelajari semua dasar-dasar pembuatan web belajarlah dengan suatu proyek. Misalkan canangkan proyek membuat web untuk organisasi Anda, untuk unit sosial Anda. Sehingga Anda merasa punya tuntutan untuk menyelesaikan tugas tersebut.

Misal, Anda diminta membuat web yang memiliki banyak feature : login, signup, guest book, article, upload-download file system. Dengan sendirinya Anda akan mempelajari banyak hal. Dalam kasus di atas Anda tak perlu bingung, mulai saja :

  1. Install php+mysql+apache karena web tersebut membutuhkan web yang dinamis. Web anda membutuhkan server, dan bahasa server-side. XAMPP bisa menjadi salah satu solusi dari ketiganya, install xampp ~ install phpmyadmin, mysql, apache, serta filezilla.
  2. Pelajari dasar-dasar tag HTML, seperlunya saja dulu: tag html, head, title, body, penggunaan form, ol, ul, li, table, td, tr, br, dll.
  3. Pelajari juga CSS untuk memisahkan style HTML Anda. HTML sebagai template, CSS sebagai style template.
  4. Pelajari script PHP seperlunya, terutama masalah penanganan form, variabel global(session, post, get, cookies). PHP sebagai bahasa server-side, HTML sebagai bahasa client-side.
  5. Kuasai beberapa bagian web seperti : teknik paginasi, form, login, email, upload-download file.

Jika semua sudah Anda kuasai, Anda bisa melangkah ke level berikutnya, optimasi web dinamis Anda dengan AJAX. Dari sumber yang saya baca, pelajari ajax ketika Anda telah menguasai:

  • HTML (dasar)
  • CSS (style)
  • Javascript
  • XML (data store dan data transfer)

Dari Kelima langkah di atas, Anda seharusnya udah memahami konsep dari HTML, CSS, dan PHP+MySQL. Brati sebelum mempelajari Ajax, kita harus pelajari Javascript dan XML terlebih dahulu. Selamat bekerja!!

Permalink & Komentar

what’s this?

Maret 15, 2009 at 8:00 AM (self)

ini gambar apa?
1

Nah kalau yang ini gambar apa?
2

Sebenernya dalam hidup kita tuh harus fokus dalam memilih prioritas tujuan. Lihat saja apa yang kalian bayangkan pada kertas pertama? Mata kalian pasti akan berkeliling menyusuri tiap bagian kertas tanpa tahu apa yang dikerjakan. Coba lihat gambar kedua, kalian baru mulai terfokus pada bagian itu kan?

Apapun interpretasi dari misi yang Anda ambil, asalkan sudah memenuhi target achievement tak masalah entah itu berhasil atau gagal. Yang jelas kita sudah menumpahkan semua kemampuan dan concern kita pada satu tujuan. Saya yakin dengan hal tersebut apapun hasilnya akan memberi manfaat pada diri kita. Minimal kepuasan untuk memuaskan diri Anda.

Selamat menikmati!!

Permalink Tinggalkan sebuah Komentar

catatan singkat(php)

Maret 10, 2009 at 11:39 PM (dokumentasi, php+mysql)

wew, ini dokumentasi segala kesalahan bodoh gue dalam nyekrip php+mysql sehingga menyita jutaan miliar detik beberapa hari ini. Okey here we go:

<?php
//Oleh Ykzir

//NO.1
//dalam variabel global get, post dan request
//BOLEH PAKE boleh juga nggak pake PETIK DUA ( " )
//atau juga PETIK SATU..
//wew semuanya boleh deh..
$_GET["id"];
$_POST['id'];
$_REQUEST[id];
//dalam variabel global session juga
$_SESSION['login'];

//NO.2
//parameter dari variabel global tuh KURUNG KOTAK []
//bukan () atau
isset($_SESSION['views']);

//NO.3
//dalam script sql di PHP tiap value mesti dikasih
//APOSTROP atau PETIK SATU (')
//gue gak tau ini cuma berlaku di input yang isinya string
//soalnya pernah nyoba buat yang valuenya angka bisa tanpa apostrop
// e.g. dalam kasus sql update yang formatnya:
/*UPDATE table_name
SET column1='value', column2='value2',...
WHERE some_column=some_value*/
$query = "UPDATE pembimbing
SET nama='$_POST[id]', email='$mail'
WHERE id= '1' ";

//NO.4
//format include
include("config.php");

//NO.5
//di dalam lingkup dua buah PETIK DUA
//boleh masukkin variabel php(yang bertanda DOLLAR)
echo "Hallo $nama. Selamat datang";

//jadinya gak perlu di concatenasi,
//tapi ini gue kasih aja referensi kalo pake teknik konkatenasi
echo "Halo ".$nama.". Selamat datang";

//NO.6
//Bahasa sql harus dimasukkin kedalam fungsi PHP mysql_query
mysql_query("UPDATE pembimbing
SET nama='$_POST[id]', email='$mail'
WHERE id= '1' ");

//NO.7
//ketika lo meng-POST ato meng-GET kan sebuah form
//yang terjadi adalah sama dengan melink
//page?name=value&name2=value2
//e.g :
?>
<form action="welcome.php" method="get">
Name: <input type="text" name="name" />
Age: <input type="text" name="age" />
<input type="submit" />
</form>
<?php
// form itu kalau dikirim setara kaya kalo ngirim :
// http://namawebserver.apa/welcome.php?name=Peter&age=37
?>

Permalink Tinggalkan sebuah Komentar

ajax

Maret 10, 2009 at 4:50 AM (aktual, internet, programming, self)

ayaya… everybody left me behind.. why there’s so much website which faster, faster, faster, and faster lately ? Looks like everybody make a change, make a maintenance. Look at Yahoo!Mail now, do you think it’s faster now and have some new feature even for classic view?  Look at Plurk, how fast does the comment be transfered? And finally, hola facebook!!!

ayaya.. it seems those site start to think a new way to become faster. Because people like a reliable, fast and furious information!! The idea was to make the transfer data being minimilized. If you’ve known OSI layer, there’s a long way for your computer client to send a request packages or for server to send back your requested packages. So why don’t we stop ask the server to send any unnecessary data, bcoz it consumes much time?

Then, just ask the necessary data as much as you need. Your computer save it on your cache memmory. The important things is the update information. The site is designed to be updated partially. So your computer have only to send the wanted information. For example, you ask someone a car, e.g  Old Honda Civic. Then the server people send you each package simultaneously : the body, the tires, the machine, the accesories, etc. Several years later you ask the new version of civic. Then the server people don’t need to send it back the whole part of the car. They just send the body part which the sender need.

ayaya.. ajax..ajax..ajax.. everybody talk about it. What’s wrong with this ajax? Ajax : asynchronous Java Script and XML. Whoa that’s look familiar and the google agree with me. Actually you don’t have to fear the unknown AJax because you will understand easily( :lol: it’s what w3schools.com said though…huh..).

Ajax use the stanndard language of:

  • HTML
  • CSS
  • XML
  • Javascript

See?  it’s look simple. Yeah, I’ve tried to learn it a bit. And of course…!!! I’m not fully understand :D . I don’t know why it’s called Asynchronous, but I hope there’s no relationship with “SISTEM DIGITAL” which I have phobia with!!

Because I’ve stuck learn it along the nite, So there’s impossible if you’re not fully understand XML, so I started learn XML.

XML is not a substitution of HTML, remember that! XML is about how to transfer and to store data, while HTML is about how to displey the data. The concept of using XML is the partitioning the template and the data. All the data is packaged into XML. So HTML can fully concern about the looks of the site.

Hey, WWW Consorsium really recommend you to use this XML things, you have to know that!

But because it’s about transfering and storing data, it need something to show those datas in web. Javascript!! Crap, I’m not also fully understand how javascript works.Whew, it seems I have a long way to go to “learn AJAX” phase.

Ayaya.. I want to learn these, I wanna learn those, I wanna learn everything.. networking, database, security, web programming.. mmhhh…. come on baby!!

Permalink Tinggalkan sebuah Komentar

Teknik paginasi dengan PHP

Maret 8, 2009 at 7:13 PM (php+mysql, tricks)

wew kk wew…

gak salah gue beli buku ini.. keren abis bro.. teknik2 php keren ada disini, salah satu tekniknya mungkin mo gue jabarin disini, itung-itung bagi ilmu.

Paging, page, halaman. Teknik membuat tampilan data menjadi halaman-halaman. Bayangkan jika tanpa  teknik ini, seandainya input yang dimasukkan ratusan bakalan pusing lihatnya. Atau kalau mau lebih jelas wordpress gue pun memakai teknik paging juga. Lihat aja, gak semua postingan gue dari pertama nulis sampai postingan terbaru ditampilkan dalam satu layar, tetapi cuma 10 postingan tiap halaman. Jika mau lihat halaman selanjutnya tinggal klik “halaman selanjutnya” di bagian bawah. Itu maksudnya paginasi.

<?php
//by. ykzir
//ini cuma bagian phpnya saja
//Kondisinya sebagai berikut:
//kita akan memanggil mysql database dengan user = root dan pass = root
//database tempat data berada bernama = kantor
//dalam database tersebut terdapat tabel = pegawai dengan field 'id' dan 'nama' 

//BAGIAN 1: PAGINASI SETTING
  $batas = 5;
  $halaman = $_GET['halaman'];
  if(empty ($halaman)){
        $posisi = 0;
        $halaman = 1;
  }else{
	$posisi = ($halaman-1)* $batas;
  }

//Menampilkan data di MySql menyesuaikan dengan posisi dan batas yang telah ditentukan
        $connect= mysql_connect("localhost, "root", "root");
	mysql_select_db("kantor",$connect);

        //query untuk "menyelect tabel pegawai"
        //dengan "urutan berdasar id secara descend(mundur)".
        //LIMIT menunjukkan posisi Select dan Batas yang berakibat
        //misalkan: batas= 5 posisi=0
        // di hal pertama : akan muncul nama pegawai dari ID 0-4
        // di hal kedua   : akan muncul nama pegawai dari ID 5-9
        // tergantung batas dan posisi pada settingan paginasi di atas
        $tampil = "SELECT * FROM pegawai ORDER BY id DESC LIMIT $posisi,$batas ";
	$result = mysql_query($tampil, "kantor") or die(mysql_error());

        //Menampilkan data ke layar sejumlah batas halaman yang telah ditentukan
	$no = $posisi+1;
	while ($data = mysql_fetch_array($result))
	{
		if(($no % 2 ) == 0)
		{
			$col1="grey";
			$col2="white";
		}
		else
		{
			$col1="white";
			$col2="black";
		}
		echo "
<table border=\"1\" align=\"center\">
<tr bgcolor=$col1>
<td>$data[id]</td>
<td>$data[nama]</td>
</tr>
</table>
";
		$nom++;
        }

//menampilkan link-link halaman data yang telah dipaginasi
	echo "
<div align=\"center\">";
		echo "Page: ";
		$tampil2 = "SELECT * FROM pegawai";
		$result2 = mysql_query($tampil2, "kantor") or die(mysql_error());
		$jmldata = mysql_num_rows($result2);
		$jmlhalaman = ceil($jmldata/$batas);

		for($i=1; $i <= $jmlhalaman;$i++)
		{
			if($i != $halaman)
 		        {
				echo "<u><a href=$_SERVER[PHP_SELF]?halaman=$i>$i</a></u> | ";
			}else{
				echo "<b>$i</b> |";
			}
		}
        echo "</div>
";

}
?>

Permalink & Komentar

memata-matai mata-mata

Maret 6, 2009 at 3:00 PM (Uncategorized)

Belakangan ini karena seringnya ngeliat Donna di sunken court jadi kepikiran buat memata-matai dia. Siapa sebenernya dia, kenapa dia bisa begini kenapa bisa begitu semuanya serba mencurigakan. Itu bisa menjadi satu rubrik khusus yang menjadi sorotan majalah-majalah ITB.

  • Ataukah dia benar seorang mata-mata seperti yang sering digosipkan oleh khalayak ramai.?
  • Mengapa dia tiba-tiba punya baju-baju yang keren( e.g pas pak JK dateng dia pake baju batik, trus pas d’cinammon dateng pake blouse + clana jeans)?
  • Atau Bagaimana dia hidup sehari-hari?
  • Benarkah dia lulusan S2 ITB?
  • Apakah dia memang seperti “itu” ?
  • Lalu mengapa pihak dari ITB gak bergeming seolah tidak mau tahu? atau emang gak tahu?

menarik, bukan? :D

Permalink & Komentar

Dua sejoli…

Maret 5, 2009 at 9:00 PM (Uncategorized)

Waduh tumben-tumbenan, si Kuncoro akrab dengan Donna.. :D :D :D

donna:" yang ini tombol ENTER, yang ini tombol SPASI..."
(baca majalah luar negri pake bahasa indonesia ngajarin keyboard ke kuncoro)
kunz: "mana? orang itu tulisannya bahasa Indonesia kok !!"
donna: "Indonesia!! liat dong..hahaha.."(si donna ketawa2 sendiri)

Dona adalah satu-satunya intelejen ITB yang punya divisi sunken court. Tugasnya mengawasi kegiatan unit mahasiswa apakah masih sesuai dengan fungsi yang diinginkan ITB. Walaupun tampak menyamar menjadi orang yang kurang “*****”, namun terlihat sangat mencurigakan. Diduga ia mendapat dana dari agen intelejensi luar negeri. Terbukti ia pernah menyanyikan lagu band-nya Queen. Kosakata yang digunakanpun tinggi. Hm… bahayanya dia senang sekali main ke sekre gue… whoa….

dona dan kuncoro

pic description: Dona(kanan), Kuncoro (kiri)

warning: gak semua yang lo denger itu bener

Permalink & Komentar

CMS dan nasib kita(kita?)

Maret 4, 2009 at 10:09 PM (aktual, internet)

Wow CMS, siapa yang gak pernah mencoba CMS, baik sebagai admin ato menikmati sebagai guest. Kata kunci: Simpel, Keren, Dinamis. Tiga kata kunci itu rasanya cukup menjelaskan bagaimana wah-nya CMS. Sebenernya CMS tuh kenapa sih ngetrend? Apa sih contohnya CMS?

CMS singkatan dari Content Management System. Susah sih menjelaskannya, namun dengan pendekatan seperti ini mungkin kalian bisa mengerti.

Pernah membuat website? iseng-iseng ato yang gampang-gampang aja pakai notepad? ato buat dengan tekun ampe begadang malam-malam? Nah ada 2 jenis web:

  1. Web Statis: dalam web jenis ini, konten dari web akan statis. Statis disini dapat berarti isi dari web tersebut akan sulit diperbaharui. e.g Artikel nggak up to date. Web statis hanyalah web yang menggunakan HTML bahasa-bahasa lain yang user-side. Mungkin kalian bisa saja membuat web seperti ini dengan dalam hitungan detik. Buat tag HTML, tag head, body, dll, selesai. Memang gampang sekali membuatnya, hanya persoalan syntax saja. Sayang data gak bisa masuk up-to date dengan praktis. Kata kunci: statis, monoton, simpel.
  2. Web Dinamis: menggunakan bahasa server side yang akan berdampak pada web yang dinamis. Dinamis berarti up todate. Bahasa server side yang digunakan ada banyak, e.g PHP, bahasa servernya microsoft IIS, dll. Kedinamisan ini menyebabkan web akan tampil secara interaktif. Namun karena strukturnya, web jenis ini sedikit rumit untuk dibuat karena sedikit berhubungan dengan server dan database. Kata kunci: dinamis, up to date, rumit.

Sini gw beri contoh site yang seolah-olah udah jadi:

statis: web anda namanya home.php. Lalu untuk membuat artikel Anda harus mengambil artikel.html dari web hosting, membuka artikel.html melalui editor dan menulisnya dengan beragam tag-tag HTML, dan menyimpannya lagi ke web hosting. Tiba-tiba anda ingin menambahnya. Anda harus ambil lagi file tersebut dari web hosting, buka lagi artikel.html melalui editor, dan begitu seterusnya…

dinamis: misalkan web anda index.php. kita andaikan saja artikel dapat di update melalui artikel.php. Anda gak perlu ngambil filenya dari web hosting. Langsung saja di artikel.php melalui browser artikel barunya ditulis seperti menulis sebuah form atau menulis sebuah blog.

Web statis mudah membuatnya, hanya dengan tag-tag saja tapi tampilan biasa aja. Sedangkan web dinamis bagus tampilannya tapi rumit membuatnya. Nah, posisi CMS berada di tengah-tengah:

Mudah membuatnya, bagus tampilannya.

Apa hubungannya dengan nasib kita, kaum IT programmer? Dengan keberadaan CMS, jelaslah bahwa keberadaan web developer akan terancam. Dengan sedikit pembelajaran, tiap orang mungkin bisa saja membuat web keren sendiri.

Lalu bagaimana dengan kita?  Apakah pekerjaan menjadi web developer tak lagi menjadi lapangan kerja yang luas bagi kita para programmer?

Permalink & Komentar

Next page »