Saturday, August 18, 2007

counting rows in ResultSet

hey you,

if you find difficulty to count number of rows in ResultSet, hope my experience I write below helps.

The problem usually comes up because you try these lines of code:

rs.last();
int i = rs.getRow();
rs.first();

*rs = ResultSet

rs.first() trigger SQLException that caused by a database access error occurs OR the result set type is TYPE_FORWARD_ONLY

the easiest way I figured out is by changing the type of ResultSet like this:

Statement st = conn.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);


the 2 parameters of createStatement() method are resultSetType & resultSetConcurrency.
type of ResultSet are:
1. ResultSet.TYPE_FORWARD_ONLY
2. ResultSet.TYPE_SCROLL_INSENSITIVE
3. ResultSet.TYPE_SCROLL_SENSITIVE

type of Concurrency are:
1. ResultSet.CONCUR_READ_ONLY
2. ResultSet.CONCUR_UPDATABLE


That's all from now. Please indicate whether this information useful or not OR maybe you have better solution than this one. I am a leaner as well ^_^

Sunday, July 08, 2007

Buat yang bingung milih jurusan kuliah...

(dedicated to: anak2 SMA yang mungkin bingung mau milih jurusan apa)

I've got some tips for you!
Hope it helps :)

Make sure (!), kamu tau pelajaran apa yang bakal dipelajari di jurusan itu.
jadi jangan sotoy, keren2an aja, ikut2an temen/pacar/ortu (hehehe.... yang ngejalanin kan kamu, bukan temen/pacar/ortu, so you should pick it right, okay?!!!).

Misalnya,
"Ah, gw kedokteran aja deh, walopun skolahnya lama, tapi keren jadi dokter, masa depan terjamin." Mungkin kamu ngebayangin dengan masuk kedokteran, kamu akan terlihat seperti 'anak yang pintar'. Ga juga kali...

These are the tips:
1. Kalo kamu milih jurusan, kamu harus wajib kudu mesti tau pelajaran/mata kuliah apa yang ada di jurusan tsb.
Jangan cuma tau judul mata kuliahnya aja, isi2nya juga harus tau. Dalam hal ini, kamu bisa cari info ke Tata Usaha fakultas tsb, brosur, atau tanya kakak kelas yang lagi belajar di jurusan tsb. Cari info seakurat mungkin. WARNING! Jangan tanya orang2 yang berpotensi memberikan informasi yang sifatnya SOTOY.


2. Setelah kamu tau, trus tanya diri kamu sendiri: "ini jurusan yang gw mau ga ya?", cocok ga sama yang kamu minatin/pengen.
That's actually not an easy question, you have to REALLY ask yourself setelah kamu tau: "Bener ga ini jurusan yg aku mau?" Kalo kamu punya banyak pilihan jurusan, jangan langsung bingung duluan, keep relax, take a deep breath, minta petunjuk sama Tuhan, & then decide WHICH ONE.

That's all the tips from me.
Pemahaman akan jurusan yang bakal diambil itu penting; just to make sure klo jurusan yang kamu ambil IS THE RIGHT ONE buat kamu.

Mudah2an tips-nya membantu! and all the best for your life ^_^

based on: pengalaman pribadi

Girl Hacker

buka2 detikinet,
seneng banget tau ada National Hacking Competition 2007 di 4 kota besar di Indonesia: Padang, Medan, Bandung, Semarang (source: detikinet)
kompetisi kayak gitu bisa nambah semangat hacker2 Indonesia buat jadi hacker handal,
kayak di negara2 Eropa Timur. denger2, frekuensi kompetisi hacking mereka tinggi banget jadi ga heran banyak hacker handal dari sana.

balik ke National Hacking Competition 2007,
walopun masi sedikit ceweknya, tapi that's a good news! Indonesia punya potensi hacker cewek juga tnyata.

kenapa hacker cewek itu dikit?
menurut gw, hacking things seem less attractive to womens.
menurut loe?

(pic. source)

Saturday, June 23, 2007

Pesta Rakyat 2007


WATCH OUT!!! Somethin HOT is coming...

Pesta Rakyat 2007 adalah event perayaan Hari Kemerdekaan Republik Indonesia untuk masyarakat Indonesia yang ada di Brisbane, Australia.

BE PART OF IT!
LET's CELEBRATE OUR INDEPENDENCE DAY!

LET's ENJOY INDONESIA!

RIP Pak Chusnul

Telah berpulang ke Rahmatullah, guru Matematika SMA gw, Pak Chusnul.
Sediiiiiiiiiiiiiiiiihhhhhhhhhhh.................... banget rasanya!!!
He's one of my favorite teachers in my high school.

Kalo ngebayangin Pak Chusnul, gw selalu inget kalo dia punya peran signifikan dalam development skill Matematika gw. He always show me his confidence that I am good at Math, and simple thing that I can't ever forget: I turned him down when he asked me to participate in Math Olympic selection when I was in High School *wanna cryyyyyyyyyy*

Pak Chusnul,
Semua ilmu yang sudah Bapak ajarkan, saya percaya akan berpulang kepada Bapak dan akan SANGAT memperberat timbangan kebaikan Bapak di Hari Perhitungan nanti....

Friday, May 11, 2007

Globalization Effects in Indonesia

Let US make Indonesia a better place :)
why not?

Video 1/7:


Video 2/7:


Video 3/7:


Video 4/7:


Video 5/7:


Video 6/7:


Video 7/7:


I'm interested in hearing what you think after watch these videos :)
Please post your thoughts through comment.

Monday, May 07, 2007

fun videos

(must see mode: ON)

for people with tons of assignments (actually the number assignments is only 4, but feels like tons, hahaha),
for people who want to laugh,
for people who want to have a short break (instead of having Kit Kat: "ada break, ada Kit Kat"),

See this video:
1. No Pork :


2. Comedy football


3. Two crazy Chinese Boys


Enjoy!
Three of them successfully made me laugh , A LOT!
the 2 Chinese Boys have many funny videos beside this one...

Friday, March 30, 2007

how cute is this......

I want this SO BAD!!!

for everyone who want to give me present for my next birthday, this is IT!

HAHAHHAHAHAA>>>>>>>>>>>>

ps: This handbag is the creation of Joao Sabino, an artist from Portugal. He has made a lot of artistique & uniques stuff. If you're interested to see them, visit his blog.

Tuesday, March 27, 2007

meet Masruri, pecatur cilik berbakat Indonesia

cited from liputan6.com:

"Indonesia ternyata memiliki pecatur cilik andal kelas dunia. Pecatur cilik itu bernama Masruri Rahmat. Anak seorang sopir bajaj ini berhasil menyabet juara pertama kejuaraan di tingkat ASEAN dan masuk 10 besar pecatur dunia untuk kelas anak. April mendatang, Masruri akan mengikuti kejuaraan catur dunia untuk kategori anak di Yunani.

Bagi Masruri, keadaan ekonomi ayahnya, Mudhakir Rahmat tidak menghalagi niat untuk maju. Mudhakir ingin nasib anaknya lebih maju. Karena itulah Mudhakir mengajari Masruri mengatur bidak sejak duduk di kelas satu sekolah dasar. Siswa kelas lima Sekolah Dasar Negeri Cempaka Baru, Jakarta ini, menghabiskan waktu tiga jam sehari untuk mengasah kecakapan bermain catur. Tak jarang ia bertarung dengan pecatur-pecatur senior di Jakarta.(KEN/Satya Pandia)"


pesen dari-ku: Hebat kamu, Mas! semangat terus ya..... Jangan takut naek pesawat terbang ya... hehehhe ^_^ doaku menyertai-mu lah!

my top keyword analysis: Kwon Sang-woo

this is the fact,
of all my blog's visitors, mostly they came across my blog because they're looking for Kwon Sang-woo, I may say, an icon of Korea.
34.56% is the number, dominating other keywords, even my own name keyword *huh*
more shocking fact, some of the visitors came from northern and southern part of America continent.
but anyway, seems he's done great job out there...

i missed his visit to Jakarta, Indonesia on last September coz I was in Brisbane, Aussie. so sad....
i'm always hoping he has chance to visit Brisbane within 2007 coz I'm graduating this December and going back to Indonesia then... :p
maybe just to promote TheFaceShop product coz no TheFaceShop store here OR maybe just to meet & greet the fans *including me* OR just to meet Korean people coz I reckon many Korean people here

*mika in a never-ending-assignments phase*