Aah…Something Inspiring…

January 31st, 2010 by Yvan Christian

too many activities in a short period may inhibit the productivity of a man…such as blogging…well, okay, i should’ve done something with my Final Assignment, but hey, beauty productivity is in the eye of the beholder blogger…or at least it’s so last time i know it…

my day today was not actually boring…but i know i really need some inspirations…and i guess i’m getting some from random surfing today…and yes, it’s internet surfing, i haven’t tried wave surfing before as i’m still practicing on my skate boarding (but that also gotta wait for a free board from my brother)…

ah, crap…my friend gotta go…i have to sign out before he unplugged the LAN cable that connect me to the inter

Kuliah Minggu Pertama

January 29th, 2010 by Petra Novandi Barus

Minggu pertama semester ini saya tidak kuliah sama sekali. Apa boleh buat, di saat mahasiswa yang lain mulai mengikuti kuliah saya sedang berada di luar negeri. Dan keberadaan saya di luar negeri ini juga bukan dalam rangka akademik tapi dalam rangka memperpanjang liburan. Hehe.

Sesuai dugaan, kuliah minggu pertama jarang sekali ada yang efektif. Biasanya perkenalan kuliah selama 30 menit selanjutnya kuliah dibubarkan. Atau ada juga mungkin dosen yang lupa jadwal kuliah. Dan pernah juga dosen membubarkan kuliah karena yang banyak mahasiswa yang tidak hadir gara-gara lupa jadwal kuliah. Memang tidak sedikit juga dosen yang perlu diberi rasa salut karena tetap menjalankan kuliah hari pertama dengan efektif.

Begitu sampai di Bandung, saya mencari-cari informasi tentang kuliah-kuliah yang sudah dijalankan. Meski banyak kuliah yang sesuai dugaan tersebu, ternyata sudah ada dua mata kuliah yang langsung memberikan tugas. Dan kedua tugas tersebut lumayan berat. Benar-benar panggilan untuk bangun dari suasana liburan.

Yosh, semangat!!

Kartupos dari Duisberg

January 29th, 2010 by Sawung



I wish i was in europe .....
dimuntahkan oleh sawung@psik-itb.org
jendral tanpa pasukan, tentara tanpa senjata

jujur

January 27th, 2010 by Andi Rusiawan

Saya sering berpikir “when one likes another, dandruff looks like snowfall but when one hates another an acne will look like a tumor” (kalau orang sudah suka ketombe pun terlihat seperti salju tapi kalau orang sudah benci jerawat pun akan terlihat sebuah tumor).

Atau pepatah lama bilang “Gajah di pelupuk mata tak nampak, kuman di seberang lautan nampak”  (tidak usah protes bahwa kedua-duanya seharusnya tidak tampak, itulah peribahasa :P ).

Penilaian kita terhadap seseorang itu seringkali subjektif.  Dan seringkali perasaan adalah sumber utama subjektifitas.  Walaupun orang bilang batas antara benci dan cinta itu tipis sekali (dan bahkan semipermiabel kalau menurut saya :P),  namun penilaian yang didasari oleh kedua rasa tadi akan sangat berlainan.

Menurut saya juga, 2 orang yang paling susah untuk didebat adalah orang yang kita cinta dan orang yang kita benci.  Kita cenderung untuk tidak akan mau mendebat orang yang kita cinta, karena akan selalu ada pembenaran dari diri kita, walaupun si dia salah. Llagian kan kalau sudah cinta kan harusnya jarang berdebat, masih banyak hal yg dilakukan selain berdebat, wong dunia cuma milik berdua :P. Dan dengan orang yang sudah tertanam benci kita kepadanya, kita tidak akan berhenti mendebatnya.  Makanya, debatnya suporter sepakbola tidak akan ada habisnya. Apalagi debat agama (bahkan untuk yang satu ini harus membutuhkan campur tangan Allah, hidayah).

Masih mending debat dengan kusir daripada dengan suporter FC Twente atau Ajax :P.

Masalahnya untuk hal-hal yang lebih penting (daripada bola tadi misalnya) kita sering dituntut untuk objektif.  Penilaian yang objektif  akan susah didapat selagi masih ada unsur perasaan tadi. Kita bukanlah komputer dengan sistem digitalnya, kita menilai dengan logika dan rasa bukan dengan 0 dan 1.  Namun bukan berarti kita tidak bisa objektif, ada kuncinya.

Lagi-lagi menurut  hemat saya, jujur adalah kuncinya, sebuah jujur yang paling sulit: jujur pada diri sendiri.

Sudahkah kita jujur kepada diri sendiri ?

SNSD’s “Oh!” MV Finally Out… (UPDATED! + download links)

January 27th, 2010 by Yvan Christian

yeah…again to fellow SoNEs…REJOICE…after we are made curious about the MV since most of us SoNEs must’ve heard the mp3 of “Oh!”, they finally released the MV for this song…just see it in YouTube…

i haven’t seen it full yet, i just became so excited i decided to put it in my blog first…enjoy the MV guys, and girls…btw, for those who want to listen to the mp3, just check the download section below…

Download SNSD “Oh!” mp3:
–> MediaFire

-EDIT-
now, that i’ve seen it full…i’ll make some review…the concept is IMO a mixture of Gee and Genie, that is mixing cuteness and sexyness…why, because their expressions in the MV are just cute, and the outfit does support the cuteness while in the same time, giving of a sexy aura of a cheerleader…the mistake Jessica made at 1:20-1:22 (which i thought was an unintended when i saw it in the teaser) is actually cute and makes me laugh a bit…being a Sooyoung fan, i always look for her in all scene, hoping for her popping out on screen…and when she does come on screen, i pause the MV and take some time rolling on my bed…she is SUPER CUTE and her wink at 2:54 basically blows me away…i always think that short-haired Sooyoung is cuter, but this MV really blows that mind away…enough for the Sooyoung biased review, sorry…as for Seohyun, she is the exact opposite of Sooyoung in here, not that she is not cute, but as Sooyoung seems more innocent in this MV, Seohyun looks more mature, as in less pure, not that it’s bad tho…another scene that made me laugh is at 2:00, and it’s involving Jessica again, her expression there is such a dork, a cute dork, which you would all want to be her boyfriend…well, err, i would be noting one drawback of this MV, i don’t see any “signature move” in the dance, which is present in all SNSD’s MVs before, but that’s maybe because i haven’t seen the dance shot version (if there’s any)…the good point, sorry, i mean the UBER good point of this MV is in the ending…what’s with it? i would be guessing that this MV will be continued with another MV…an MV with “darker” feeling to it…and hell yeah, i’ll be waiting for it…

UPDATED!! Download “Oh!” MV :
–> via Soshified (requires 25+ posts in Soshified)
–> via Soshified, basic subbed version (requires 50+ posts in Soshified)
–> via CashewMania

so what do you think about the MV… xD

Ouch, My Foot!

January 27th, 2010 by Petra Novandi Barus

Just a quick update. Today I’m in Singapore. I’ve been here for two days but it was almost for no fun at all. Unfortunately, I just got my foot strapped with a bandage and I have to walk with crutch. I injured my foot just when I’m having a vacation. Yeah, it’s lame, isn’t it?

I sprained my foot before I went to Singapore. And as you may know, unlike Jakarta or Bandung (or all other cities in Indonesia) the transportation in Singapore requires us to walk intensively. Actually my foot was not that hurting when I arrived at Singapore. But soon after I walked along the Orchard Road (and it was always a very long road), my foot became worse. I had to struggle a lot to reach the MRT station and then my friend’s place.

Here’s a story. After I reach to my friend’s place, we went to his dorm at NTU. The next day I went to the medical center there. When I got to meet the doctor, she read my short bio and saw that I’m from ITB. And she said, “Oh, so you study at Institut Teknologi Bandung? You must be smart.”. I was pretty sure that was a compliment but I said, “Well, I actually applied here but they rejected me after the interview”

And then after we talked about my injury, she told me a bit about her journey to Bandung. She asked me whether I knew a kind of jelly food originated from Bandung that made from leaves. It’s not pandan. She said the leaves was round unlike Pandan leaves. Do anyone of you know?

Few hours later, I went back to her after getting an X-Ray at Jurong Point Medical Center. (Actually, I’m wondering why they don’t have X-Ray facilities there at NTU). Thank Lord, I didn’t break my leg. It was actually a sprain. She told me to get a bandage for my foot. And there at the Nurse Room before treating my foot a Malay nurse read my report, “Hit a staircase at Penang before depart to Singapore”. She changed her language from English to Melayu assuming I’m also a Malay.

She said in Malay, “Oh you are from Penang”.
“Nope, I’m an Indonesian”, I replied in English.
“But Penang is in Malaysia”, she was a little bit annoyed changing back to English.
“I was having a vacation at Penang before I went here. But I’m from Indonesia”
“Oh, I see. And it’s most likely you hurt your leg before you came here. Singapore is a very safe country, you know”

Yeah, no doubt for that. After all it’s the safest country among all countries I’ve ever traveled to.

In short words, I didn’t enjoy my vacation that much. But there is always next time, right? Read the rest of this entry »

Mencoba BBScreenStream

January 27th, 2010 by Prasetyo Andy Wicaksono

Hello again,

pada malam yang dingin ini saya mencoba mencari tahu apakah ada tools untuk video screen capture pada handheld blackberry, seperti video tutorial online yang mengcapture screen dari layar komputer. Dan ternyata saya menemukannya: BBScreenStream. Aplikasi ini akan merekam kegiatan di layar blackberry kita dalam bentuk video. Saya melakukan ini, sukur-sukur kesampaian untuk bisa mempublish posting2 tentang how-to dan panduan pemakaian blackberry untuk pemula P

Tools ini cukup unik, sebenarnya aplikasi ini adalah aplikasi komputer, aplikasi windows tepatnya. Namun aplikasi ini merekam layar blackberry kita. Caranya? Gampang, tinggal menghubungkan saja blackberry kita ke komputer menggunakan kabel usb bawaan. Lalu BBScreenStream akan streaming layar blackberry dan kita bisa merekamnya, dalam berbagai macam bentuk format file (.mp4, atau .avi).

Ini adalah salah satu contoh hasil video capture, ceritanya saya ingin mengepost sesuatu ke plurk saya:

Satu kendala besar, saya belum menemukan cara untuk merekam video plus audionya sekaligus, jadi video demo ini masih tak ubahnya film bisu P

Harus diperhatikan juga bahwa terdapat delay time dan sedikit lag, sehingga pada video ini beberapa kali terjadi typo, karena tingkat responsnya menjadi rendah.

Semoga ke depannya saya bisa menuliskan dan merekam beberapa panduan2 awal bagi pengguna blackberry. Saya bukanl expert di bidang ini, tapi hanya ingin mencoba untuk berbagi )

Nyobain Cooliris Photos Wall

January 26th, 2010 by Prasetyo Andy Wicaksono

Apple freak!

January 25th, 2010 by Andi Rusiawan

I’m an apple freak!.  Yeah..  not that Apple, but it’s the real apple fruit.

I don’t remember exactly when it has started, for me apple fruit is my universal medicine  :P

Usually I eat two apple a day, but it will increase when I feel the uncomfortable feeling of being sick (you know, you will feel unwell before you get sick). When I feel dizzy, I eat apple. When I get sore throat, I eat apple.  Even when I get “windy stomach” (masuk angin, perut kembung -red :p), which often happen to a tropical guy living in here (or it’s just me perhaps, like my friend Agni said to me :D. OK Ni, I admit it), apple is really good friend!

I totally agree with the quote “An apple a day keeps the doctor away”.  But it is difficult with only a single apple a day to keep the doctor away since my wife is a doctor , that’s why I eat two apple a day haha.. (kidding).  But it’s also true indeed, she is the most stubborn human being  in the world, to argue with, telling me to take medicine once I get sick (but hey, that’s how love works isnt that ?).  My personal record of not seeing a doctor nor taking medicine is almost 5 years long  (yeah ! ).

But remember, actually consuming apple will only keep your body health and immune but wont cure your illness.

My favorite drink is, also, apple juice. Even when i’m travelling by plane, I will order additional apple juices (Miss, may I have 2 glasses apple juice please :p ), since it will make me more comfortable in plane. (oh yeah.. call me Ndeso, but I still have that uncomfortable feeling). Maybe if I have to specify, one of the time when my Iman (belief in Allah, God) is in its shape, is the boarding time! (haha.. you may laugh,  but our Iman is volatile indeed. So be careful with it).

One of my obsession is to taste as many as different apple variety that ever exist in this world.  Even I have my own sheet, you may have a look at :

http://spreadsheets.google.com/ccc?key=0AkNfxuYuENqndHB4YUtjTDZNM2×1bXhBY3BoNnBoQWc&hl=en

The one that I’ve tasted is marked with (X).  Inform me when you find new variety!

The image that I show you in the top of this page is an apple a day calendar. Wow, I want it!  It’s really cool, isnt it ?.  Instead of pulling page of today date, you can eat an apple each single day. Awesome idea guys!  (thx to Gizmodo for posting it).

*it’s wrong if you guess that Im using Macbook also, I want it but I cant afford it yet :P.

**image is linked from http://www.neatorama.com/2010/01/23/an-apple-a-day-calendar/

Finally, Noraebox-ing…

January 25th, 2010 by Yvan Christian

yeah! a few days ago,I finally went to Bandung Indah Plaza to look for the karaoke box that my friend, Ramskid, talked about in his blogpost…I went there with him and another friend, Sre from Environmental Engineering ITB…our appointment to do this was actually very accidental, with me tweeting them in the morning, asking when will we go karaoke…and suddenly we agreed to meet in BIP at five…I was late for 15 minutes, but I don’t think that dropped our mood…

when I arrive at the karaoke place, I was kinda surprised…I’ve seen the pictures from Ramskid’s blog, but it isn’t too clear to describe the place…I then took some pictures that I hope would help to describe the place…

Choosing the songs
Choosing the songs

The outside of the box
The outside of the box

The inside of the box
The inside of the box

The Karaoke Machine
The Karaoke Machine

as we got there, the first we did was choosing the songs we will sing in the box…it costs IDR 2500 per song, as written on one of the box…after we decided the songs, we then paid the cost and the clerk/receptionist in that place sent us to our box…she then inserted coins to the machine and put the codes for our songs…

we sang quite some songs that day, but since the subtitle is hangul (YES! it’s in hangul, too bad for us who can’t read hangul) I only sang to the chorus of some songs…but of course I didn’t come unprepared…since I plan to sing (the reason why I went to karaoke place, not to bowling alley…I like to bowl tho, but that’s different story, heheh), I already printed the romaji lyrics of some songs…so in the end, I sang two songs I wanted to sing the most: 2AM’s Confession of A Friend and Kim Taewoo’s Love Rain, if you want to listen to the songs (not me singing), you can download it in the download section below…and I do think I sang it very well…even my friend said that I’m ready to audition for SM or replace 2PM’s Jay (now don’t go netizen-ish on me guys)…hahahahaha…

lastly, we posed after we were too tired to continue singing and decided to finish our session…here’s the pose…thanks for the clerk/receptionist for taking this pic and a few others that made me so embarrassed I won’t post ‘em here…

Ramsky, me, and Sre doing
Ramsky, me, and Sre doing “the pose”

it was the pose from one of the song we sang…if you are a K-Pop lover just like me, you would’ve known what song we sang so that we posed that way… xD

if you plan to go there after reading my post (or because of any random reason I wouldn’t have known) take some of my advice:
1. Party of Three, if you want to be comfy enough inside…you can have 4 people inside, but that’s pushing it, plus you can’t dance to the song like we did…
2. Prepare The Lyrics, unless you can read hangul fast like two of my friends there, just print the romaji lyrics…or you’ll end up grabbing the mike and only sing when it’s chorus…of course you can memorize the lyrics beforehand, but that’s too much hassle for me…
3. Know The Code, no, not your safebox code, tho I might be interested in it…I mean the songs’ code you gonna be singing, because some of the new songs are there, but they haven’t put it in the song list…

happy noraebox-ing y’all… ^_^

DOWNLOAD!
2AM – A Friend’s Confession : via 4Shared
Kim Taewoo – Love Rain : via 4Shared

Bereksperimen dengan Particle Swarm Optimization

January 24th, 2010 by Peb Ruswono Aryan

Salah satu pepatah hidup yang pernah disampaikan ke saya adalah dalam hidup ini tidak ada yang ideal. kita hanya bisa melakukan yang terbaik hari ini dengan segala keterbatasan. Hal yang abstrak namun dapat diterjemahkan menjadi persoalan yang selalu dihadapi manusia adalah optimasi dengan harapan hari ini lebih baik dari hari kemarin dan hari esok lebih baik dari hari ini.

Suatu persoalan optimasi pada dasarnya dapat dideskripsikan sebagai pengaturan atau pengisian nilai sekumpulan variabel pada suatu fungsi sedemikian rupa sehingga keluaran fungsi tersebut mendekati nilai yang diharapkan (minimum atau maksimum). Fungsi tersebut dinamakan dengan fungsi objektif atau kriteria dan jika fungsi objektif dapat didekomposisi menjadi beberapa fungsi objektif yang lebih spesifik dan maka persoalan optimasi diberi label sebagai persoalan optimasi multiobjektif atau persoalan optimasi multikriteria.

Dari perkuliahan semester yang lalu ada salah satu mata kuliah yaitu intelejensia kolektif yang mengkaji tentang swarm intelligence untuk melakukan penyelesaian persoalan secara tersebar. Topik pembahasan kuliah ini secara umum membahas teknik optimasi yang berbasis pada populasi objek atau agen dan interaksinya dalam menyelesaikan persoalan bersama. beberapa teknik yang diceritakan mulai dari algoritma evolusioner seperti algoritma genetik dan pemrograman genetik, memetic algorithm, hingga ACO (Ant Colony Optimization) dan PSO (Particle Swarm Optimization). Kedua topik terakhir merupakan topik yang dibahas secara lebih mendalam lewat review (dan atau implementasi) makalah tentang topik tersebut yang kemudian dipresentasikan di depan kelas oleh masing-masing peserta. Topik tentang ACO sebelumnya sempat saya ceritakan secara umum sehingga sekarang saya akan bercerita tentang PSO.


Particle Swarm Optimization

PSO terinspirasi dari perilaku gerakan kawanan hewan seperti ikan (school of fish), hewan herbivor (herd), dan burung (flock) yang kemudian tiap objek hewan disederhanakan menjadi sebuah partikel. Suatu partikel dalam ruang memiliki posisi yang dikodekan sebagai vektor koordinat. Vektor posisi ini dianggap sebagai keadaan yang sedang ditempati oleh suatu partikel di ruang pencarian. Setiap posisi dalam ruang pencarian merupakan alternatif solusi yang dapat dievaluasi menggunakan fungsi objektif. Setiap partikel bergerak dengan kecepatan v.

Ciri khas dari PSO adalah pengaturan kecepatan partikel secara heuristik dan probabilistik. Jika suatu partikel memiliki kecepatan yang konstan maka jika jejak posisi suatu partikel divisualisasikan akan membentuk garis lurus. Dengan adanya faktor eksternal yang membelokkan garis tersebut yang kemudian menggerakkan partikel dalam ruang pencarian maka diharapkan partikel dapat mengarah, mendekati, dan pada akhirnya mencapai titik optimal. faktor eksternal yang dimaksud antara lain posisi terbaik yang pernah dikunjungi suatu partikel, posisi terbaik seluruh partikel (diasumsikan setiap partikel mengetahui posisi terbaik setiap partikel lainnya), serta faktor kreativitas untuk melakukan eksplorasi. Secara matematis deskripsi di atas ditampilkan sebagai berikut :

vi(t) = u1.k1.vi(t-1) + u2.k2.(xbesti-xi) + u3.k3.(xbestg-xi) + u4.vacak

xbest di atas merupakan catatan khusus mengenai posisi terbaik yang pernah dikunjungi tiap partikel. Indeks g menyatakan partikel yang posisi terbaiknya merupakan posisi terbaik dibandingkan posisi partikel lainnya. vacak merupakan vektor arah acak yang diinterpretasi sebagai faktor kreativitas untuk melakukan eksplorasi. nilai skalar u1 hingga u4 merupakan variabel acak (random variate) yang terdistribusi merata (uniform distribution) sedangkan a1 hingga a4 merupakan koefisien pengaruh masing-masing suku.

Implementasi

Agar dapat bereksperimen dengan algoritma ini maka kita perlu membuat implementasinya ke dalam program. Saya telah membuat implementasi sederhana dalam delphi seperti berikut :

{bagian interface}
type
  TVector = array of real;
  TParticle = record
    Position: TVector;
    Velocity: TVector; //velocity vector
    MyBest: TVector; //personal best position
    BestCost: Real;
  end;
  TCostFunction = function( v: TVector ): real of object;

  TPSO = class
  protected
    FNumParticle: integer;
    FVectorDimension: integer;
    FBest: integer;
    FCost: TCostFunction;
  public
    FParticles: array of TParticle;
    constructor Create( NumParticle, VectorLen: integer );
    destructor Free;
    procedure Step;
    property CostFn: TCostFunction read FCost write FCost;
    property Count: integer read FNumParticle;
    property Dimension: integer read FVectorDimension;
    property BestParticle: integer read FBest;
  end;
{...}
{ bagian implementasi }
{ TPSO }

constructor TPSO.Create( NumParticle, VectorLen: integer );
var
  i                 : integer;
begin
  FNumParticle := NumParticle;
  FVectorDimension := VectorLen;
  SetLength( FParticles, NumParticle );
  for i := 0 to High( FParticles ) do begin
    SetLength( FParticles[i].Position, VectorLen );
    SetLength( FParticles[i].Velocity, VectorLen );
    SetLength( FParticles[i].MyBest, VectorLen );
  end;
  FBest := 0;
end;

destructor TPSO.Free;
var
  i                 : integer;
begin
  for i := 0 to high( FParticles ) do begin
    setlength( FParticles[i].Position, 0 );
    setlength( FParticles[i].Velocity, 0 );
    setlength( FParticles[i].MyBest, 0 );
  end;
  setlength( Fparticles, 0 );
end;

procedure TPSO.Step;
var
  i, j              : integer;
  a, b, c, d        : real;
  u1, u2, u3, u4    : real;
  cost              : real;
  rvec              : TVector;
begin
  a := 1;
  b := 1;
  c := 1;
  d := 1;
  setlength( rvec, FVectorDimension );

  for i := 0 to High( FParticles ) do begin
    u1 := random;
    u2 := random;
    u3 := random;

    u4 := random;
    for j := 0 to FVectorDimension - 1 do
      rvec[j] := random;

    //update velocity
    for j := 0 to FVectorDimension - 1 do begin
      FParticles[i].Velocity[j] :=
        u1 * a * FParticles[i].Velocity[j] //velocity inertia
        + u2 * b * ( FParticles[i].MyBest[j] - FParticles[i].Position[j] ) //personal history best
        + u3 * c * ( FParticles[FBest].MyBest[j] - FParticles[i].Position[j] ) //global best
        + u4 * d * rvec[j] //random vector for exploration
        ;
    end;
  end;

  //update position
  for i := 0 to High( FParticles ) do begin
    for j := 0 to FVectorDimension - 1 do
      FParticles[i].Position[j] := FParticles[i].Position[j] + FParticles[i].Velocity[j];

    //calculate new cost
    cost := FCost( FParticles[i].Position );

    //update mybest if necessary
    if cost < FParticles[i].BestCost then begin
      FParticles[i].BestCost := cost;
      for j := 0 to high( FParticles[i].Position ) do
        FParticles[i].MyBest[j] := FParticles[i].Position[j];
    end;
  end;

  //select global best
  for i := 0 to High( FParticles ) do
    if FParticles[i].BestCost < FParticles[FBest].BestCost then
      FBest := i;
end;

Seiring dengan kode tersebut saya juga membuat program sederhana untuk bereksperimen dengan parameter PSO. Program tersebut memiliki fungsi objektif sederhana yaitu mencari satu titik di ruang berdimensi N sehingga fungsi evaluasinya pun cukup berupa fungsi jarak euclidean antara posisi tiap partikel dengan posisi titik tujuan.

tampilan program eksperimen PSO

program eksperimen PSO

potongan kode untuk aplikasi di atas adalah sbb:

{ di bagian definisi form }
    target: TVector;
    function dist( v: TVector ): real;
{ bagian implementasi }
procedure TForm1.FormCreate( Sender: TObject );
begin
  randomize;
end;

function TForm1.dist( v: TVector ): real;
var
  i                 : integer;
  tmp               : real;
begin
  result := 0;
  for i := 0 to high( v ) do begin
    tmp := ( target[i] - v[i] );
    tmp := tmp * tmp;
    result := result + tmp;
  end;
  result := sqrt( result );
end;

procedure TForm1.Button1Click( Sender: TObject );
var
  pso               : TPSO;
  i, j              : integer;
  Dim               : integer;
  thr               : real;

  procedure display;
  const
    w               = 4;
  var
    ptgt            : TPOint;
    i               : integer;
  begin
    with Image1.Canvas do begin
      FillRect( Image1.ClientRect );
      ptgt.X := round( target[0] );
      ptgt.Y := round( target[1] );
      Pen.Color := clRed;
      Rectangle( Rect( ptgt.X - w, ptgt.Y - w, ptgt.X + w, ptgt.Y + w ) );
      Pen.Color := clBlue;
      for i := 0 to pso.Count - 1 do begin
        ptgt.X := round( pso.FParticles[i].Position[0] );
        ptgt.Y := round( pso.FParticles[i].Position[1] );
        Rectangle( Rect( ptgt.X - w, ptgt.Y - w, ptgt.X + w, ptgt.Y + w ) );
      end;
    end;
  end;

begin
  thr := strtofloat( maskedit1.Text ); //MaskEdit1 : Error Threshold
  dim := spinedit2.Value; //SpinEdit2 : Vector Dimension

  setlength( target, dim );
  target[0] := random( image1.Width );
  target[1] := random( image1.Height );
  for j := 2 to high( target ) do
    target[j] := random( image1.Width );

  pso := TPSO.Create( spinedit1.Value, dim ); //SpinEdit1 : Number of Particle
  pso.CostFn := dist;
  for i := 0 to pso.Count - 1 do begin
    for j := 0 to pso.Dimension - 1 do begin
      pso.FParticles[i].Position[j] := random( image1.Width );
      pso.FParticles[i].Velocity[j] := 0;
      pso.FParticles[i].MyBest[j] := pso.FParticles[i].Position[j];
      pso.FParticles[i].BestCost := MAXINT;
    end;
  end;
  display;

  for i := 0 to SpinEdit3.Value do begin //SpinEdit3 : Max Iteration
    pso.Step;
    if pso.FParticles[pso.BestParticle].BestCost < thr then break;
    display;
    Image1.Canvas.TextOut( 0, 0, format( 'iteration : %d', [i] ) );
    Application.ProcessMessages;
  end;

  memo1.Lines.Add( format( 'best cost : %.8f', [pso.FParticles[pso.BestParticle].BestCost] ) );
  pso.Free;
end;

Program di atas akan membangkitkan posisi acak pada titik tujuan dan posisi partikel sebagai vektor berdimensi N dan menampilkan proyeksi dua sumbu pertama dari partikel (untuk alasan ini, jangan membuat vektor berdimensi satu ya!).

Pembahasan

Pada dasarnya rumus perubahan kecepatan di atas bisa bervariasi, namun dari eksperimen saya menggunakan program di atas saya menyimpulkan bahwa kombinasi keempat elemen di atas menghasilkan waktu konvergensi yang paling cepat dibandingkan jika salah satu suku dihilangkan untuk persoalan berdimensi > 3 (saya mencoba di 8 dimensi). Bagaimana menurut anda?

Mencoba Kembali Paket Internet dari IM2

January 23rd, 2010 by Cecep Mahbub

Setelah berhenti berlangganan IM2 sekitar 7 bulan yang lalu, dan berganti ke SMART, hari ini saya mencoba menjajaki kembali layanan Internet dari IM2. Penyebabnya sederhana, layanan Internet dari SMART yang saya gunakan sudah mulai masuk ke tahap yang agak menyebalkan juga. Mungkin di daerah kost-kostan saya (sekitar Mega Kuningan Jakarta), sudah terlalu penuh sesak sama pemakai SMART.

IM2 Broom Bastis!

Membeli Paket Prabayar IM2

Langkah pertama, saya mencari kartu perdana prabayar IM2. Tadinya saya mau ke Plasa Semanggi, disana kan ada counter IM2 Broadband Center. Tapi karena kepikiran mo sekalian belanja di Carrefour saya pilih ke Ambasador saja.


Saya beli di counter Koepoe Koepoe di lantai satu. Satu-satunya tempat yang saya temui yang menjual paket IM2. Di atas sih ada banyak yang jual SMART, rata-rata dibundel sama paket modem EVDO nya, selain tentu bisa juga beli di Gallery SMART di Lantai 3.

Ok, balik lagi ke cerita membeli paket prabayar. Selama saya mengaktivasi IM2, ada banyak orang yang membeli modem MOBI & SMART. Luar biasa, sepertinya animo warga Jakarta untuk menikmati layanan Internet sangat besar. Dan wajar juga koneksi SMART saya semakin dodol surodol D

Yang beli IM2? gak ada! Malah si penjaga counternya juga seolah tidak percaya masih ada yang mencari paket IM2. Hahaha. Sepertinya IM2 sudah mendapatkan karma, seperti sudah diberi label layanan internetnya sering error, lambat dan lainnya yang jelek-jelek. Seperti yang terekam di blog ini, IndosatM2 dibantai di detik atau Sejak Promo Murah Koneksi IM2 Sangat Tidak Stabil.

Koneksi Internet IM2

Saya sudah memakainya selama 3 jam lebih. Dan selama pemakaian ini tidak ada permasalahan. Waktu dial lancar, setelah terkoneksi gak masalah. Sinyal selalu stabil di HSDPA, kecepatan internet juga stabil di kisaran 256kbps seperti yang dijanjikan (saya mengaktifkan paket unlimited yang dibatasi di 256kbps).

Hasil test dari speedtest.net bisa dilihat di bawah ini.

Speed Test

Untuk sementara ini, saya kira IM2 berhasil memperbaiki kinerjanya. SMART dan MOBI yang sekarang lagi booming dengan paket unlimited dan kecepatan yang luar biasa (dulu saya sering dapet kecepatan lebih dari 1 Mbps), harusnya secara rutin mereview kapasitas internet mereka. Baik dari segi perangkat jaringan/BTS ataupun dari bandwidth internet di backbone internet mereka.

Layanan unlimited seringkali manis di awal, tapi menderita di akhir. Di awal tahun 2009, waktu rame-ramenya masalah kapasitas IM2 yang overload, banyak pakar internet termasuk dari pihak regulator yang mengusulkan adanya standar layanan untuk internet broadband. Tapi entah sudah sampai mana itu dijabarkan. Seringnya terlupakan dengan alasan klasik, itu program mentri yang lama D

SNSD 2nd Album ‘Oh!’ is Teaser OUT!!

January 22nd, 2010 by Yvan Christian

I got one word to all SoNEs out there for today: REJOICE!! yes, REJOICE, because our savior from SNSD’s single thirst has come…well, it’s only a teaser, but still, I know we are all waiting for the next big thing from SNSD after their latest mini-album Genie…

if you want to watch the teaser (which I assume you’d answer ‘YES!’ if you were a SoNE, or even ‘I have watched it already of course’ if you were a hardcore SoNE), I embed one teaser from YouTube…here you go…

as you can see their outfit there is similar, if not the same, to the promotional poster of their 1st Asia Tour Concert – Into The New World…and the concept is not far, if not actually equal, from what implied in that poster, which was “cheerleading”…

SNSD 1st Asia Concert Tour Promotional Poster

that image is built even stronger from the teaser since The Nine also wears blue cheerleader outfit…the outfit is, in my opinion, HAWT!! not the kind of hot vibe Sena Ayanami gives off, but a hot aura that makes you giggle like a boy who got his first toy from a pretty girlfriend…what? you’re not giggling in that situation? nah, you giggle deep down inside, ADMIT IT! heheheh…

anyway, that’s that…how do you think of it? the teaser of course, not the giggling over the toy…

Contohkan yang benar dan baik,walau itu susah!

January 21st, 2010 by Andi Rusiawan

Judulnya bijaksana banget kelihatannya, padahal cuma mau nulis soal cara menali sepatu! :P

Ya, setelah sekian tahun menggunakan sepatu bertali. Baru hari ini saya merubah cara menyimpul tali sepatu.

Sebelumnya saya menyimpul tali sepatu saya hanya dengan sekali simpul mati dan sekali simpul hidup (baru tahu istilahnya adalah Granny Knot, intinya adalah dengan menalikan dua ujung tali yang sebelumnya ditekuk).  Itu adalah cara menali sepatu yang diajarkan Bapak saat pertama kali menggunakan sepatu bertali (kelas 1 SD).  Ternyata itu adalah cara menali sepatu yang salah, atau kurang benar. Memang saya rasakan sendiri, tali sepatu saya selama ini gampang lepas.

Ternyata yang lebih benar dan baik untuk simpul tali sepatu adalah menggunakan Reef Knot. Singkat saja caranya bisa dilihat di :

http://www.runnersworld.com/article/1,7124,s6-240-319–13001-0,00.html

Atau yang double loop di :

http://www.instructables.com/id/Worlds-Best-Shoe-Knot/

Berikut video-nya

Atau kalau Anda ingin mencoba yang lain bisa melihat koleksi Pak Ian di:

http://www.fieggen.com/shoelace/knots.htm

Ajarkan kepada anak Anda semua yang baik dan benar walau itu susah, sebagai bekal dia bertahan hidup di dunia yang penuh ketidakadilan ini (halah :D), termasuk bagaimana cara menali sepatu yang baik dan benar ehehehe..

Apalagi untuk hal-hal yang lebih besar dan prinsip seperti misalnya ibadah dan seksualitas.  Kalau soal simpul tali sepatu sih, ndak masalah kalau pada akhirnya mendapat informasi dari Bang Google, paling buruk si anak merengek minta dibelikan sepatu model baru. Tapi kalau misalnya masalah seks, dari halaman pertama yang diberikan Bang Google saja sudah berisi artikel bahkan gambar bergerak (video maksudnya :D) berbagai macam posisi hubungan badan.. haduh!

Anda pasti tidak menghendaki anak Anda hafal posisi hubungan badan padahal posisi simpul tali sepatu yang benar saja  ga tau!.

Kesimpulannya, ajari anak Anda cara menyimpul tali sepatu yang benar!   (loh !? ehehehe…)

bangun nak, matahari sudah tinggi

January 21st, 2010 by Edi Susilo
hei, bangun nak..
matahari sudah tinggi.
apa kau mau beranjak dari ranjangmu hingga sinar itu menyentuh wajahmu melalui ventilasi jendela itu.
---

Kata Siapa Nge-Blog dari HP Ga Enak?

January 21st, 2010 by Prasetyo Andy Wicaksono

Yak, kata siapa ngeblog dari hp (dalam hal ini hp dengan keyboard qwerty dan dilengkapi aplikasi wordpress yah :p) ga enak? Enak-enak aja tuh, kita bisa menulis kapan pun kita mau. Ga perlu cape-cape bawa laptop kemana saja, misalkan lagi iseng nunggu ga ada kerjaan, lalu punya ide untuk nulis blog, langsung saja dituangkan di handphone kita. Karena memang trendnya sekarang handphone yg kita punya tidak sekedar bisa untuk menelepon dan ditelepon saja.

Dalam hal ini handphone yg diperbincangkan adalah blackberry (bukan blackbeny atau blueberry :p). Smartphone ini punya fitur internet unlimited untuk yg berlangganan, dan juga wordpress sudah dan sedang mengembangkan aplikasi wordpressnya, sehingga kita bisa mengkases blog wordpress kita dari telepon genggam. Mudah dan praktis bukan? Memang kalau belum biasa mengetik di handphone dengan full qwerty keyboard, mengetik menjadi sulit. Tapi seakan berjalannya waktu, kecepatan mengetik pun akan bertambah. Kedua ibu jari kita akan makin lihai menekan tuts2 keyboard di handphone kita.

Penasaran? Silakan dicoba ;)

*written from wordpress for blackberry P *

My New Collections…

January 21st, 2010 by Yvan Christian

as you may know from a few posts before…I’ve changed my alignment from J-Pop to K-Pop…and just like before, when I get to like something VERY MUCH, I would then start to collect stuffs of them…and since my most favourite in K-Pop is the-nine-and-only SNSD a.k.a Girls’ Generation, I just bought almost all of their CDs available…

the first SNSD item I’ve ever bought is their 2nd Mini Album, titled Genie…

I ordered it circa August 2009, but some problems occurred that I only got the item in mid-October…but hey, I got no complaints at all…you know why? because I got this item only for IDR 95.000, that’s like less than one US dollar…and I’m still waiting for the bonus poster right now…

back when I ordered this item, I’m still not that avid fan of ‘em…I just thought, “Hey, I like the Tell Me Your Wish MV, so why not?”…apparently, after only a few weeks exposing myself to their antics in other MVs and variety shows, the last statement of “why not?” changed into “why not all?”…

and starting from that very statement, I then collected money (yeah, it’s all ’bout the money) to complete my SNSD discography…being in luck, one of my friend, Ardhito, was going to have 2009 Christmas vacation in South Korea…so in the spur of the moment, I gathered all my available money and transferred it to him…and what I got then was a great New Year presents…

yes, I got two additions to my collection…the 1st Mini Album (Gee) and Baby Baby (Repackaged)…of course I still yet to have the 1st Album and the 1st Single…which I should’ve got if not because of rip-off money exchanger that traded KRW 1 for IDR 10.5, at that time Bank Indonesia’s rate was KRW 1 for IDR 8.2…but once again, I got no complaints…OKAY, I lied, I still hold a wee little grudge on the money exchange thingie…but (again with the “but), once again (again with the “once again”), I still feel content, because after all I got the two items above for cheaper price compared to if I ordered it via online shop like YesAsia…

btw, according to this news at Soshified…SNSD will release their new full album titled ‘Oh!’ on the 28th (of January, I presume)…better start making money again… *looks around for things to sell*

Modus kejahatan di ATM, waspada!

January 20th, 2010 by Andi Rusiawan

Sekarang di berita sedang ramai masalah kejahatan pembobolan kartu ATM Bank. Metode yang digunakan adalah, masih sama seperti yang marak beberapa tahun lalu, dengan mencuri (membaca) informasi  rahasia pada kartu ATM magnetik (atau istilah singkatnya skimming) kemudian membuat duplikatnya.

Sekedar merangkum modus kejahatan yang melibatkan ATM dan kartunya (kartu debet):

Berbasis kekerasan

1. Penjahat sengaja menunggu di ATM yang sepi dan tidak ada/kurang fasilitas pengamanan, lalu mengancam korban untuk menarik uang tunai.

2. Penjahat menggasak mesin ATM (baik membongkar paksa di tempat atau bahkan menggondol mesinnya sekaligus).

Berbasis social engineering, mengelabui dengan berbagai pendekatan sosial dan informasi.

1. Penukaran Uang Palsu

Penjahat berpura-pura dalam keadaan darurat butuh transfer ke rekening tertentu kemudian menawarkan menukar uang tunai kepada nasabah di dekat ATM. Korban yang merasa iba dan tidak berpikir jauh menyanggupi. Setelah menggunakan uang hasil penukaran baru ketahuan uangnya palsu.

2. Nomor Call Center palsu

Penjahat memasang nomor Call Center palsu di ATM yang rusak (atau sengaja dirusak) yang membuat kartu ATM korban tersangkut. Korban yang panik segera berusaha menghubungi Call Center, yang karena cerobohnya tidak tahu bahwa nomor yang ada disitu salah.  Penjahat yang menyaru sebagai petugas menanyakan nomor PIN.  Lain waktu penjahat mengambil kartu ATM korban yang tersangkut (atau dikombinasikan dengan skimming, untuk mendapat kode PIN)

3. Menawarkan bantuan di lokasi ATM

Penjahat biasanya mangkal di sekitar ATM. Korban yang diincar adalah yang terlihat PANIK atau kurang mengerti penggunaan ATM (kasihannya seringkali ini adalah masyarakat ekonomi bawah).  Penjahat menawarkan bantuan sambil mengintip saat korban memasukkan kode PIN. Atau kadang hanya untuk meyakinkan pengguna untuk menelpon nomor Call Center palsu.

Berbasis teknologi

1. Membaca kartu dan membuat duplikatnya (skimming)

Intinya penjahat dengan bantuan alat pembaca kartu magnetik, menggandakan informasi rahasia yang ada di kartu ATM lalu membuat duplikatnya (setelah sebelumnya juga mencuri kode PIN).  Cara membaca kartu ATM ini ada beberapa modus :

- memasang alat pembaca di ATM

- bekerja sama dengan petugas  kasir. Korban yang tidak waspada tidak mengetahui kalau penjahat kasir ini menggesekkan ke pembaca yang lain terlebih dahulu sebelum menggesek ke perangkat resmi dari bank ybs.

Cara pencurian kode PIN pun ada beberapa:

- memasang kamera mata-mata di sekitar mesin ATM yang sudah dilengkapi dengan alat pembaca tadi.

- memasang nomor Call Center palsu

- mengintip dari antrian pengguna.

Semua modus kejahatan diatas tidak memerlukan keahlian khusus di bidang Teknologi Informasi seperti yang dimiliki professional hacker untuk menyusup ke sistem informasi bank untuk kemudian mencuri data nasabah.

Seperti halnya carder yang mendapat nomor kartu kredit gratisan dari hacker untuk melakukan carding. Pencopet kelas teri pun bisa melakukan skimming dengan pasokan alat dari sindikat kejahatan.

*photo is linked from http://www.lawyersandsettlements.com/blog/wp-content/uploads/2009/11/atm-machine.jpg

AVATAR!! Indonesian version…

January 20th, 2010 by Yvan Christian

Avatar Poster

hurray for Indonesian people…the highly creative people from LUNARfilm and TPI proudly present new TV series…titled “Petualangan Bersama Suku Biru”, the new TV series is promised to be a hit since the storyline is so original that it was copied by James Cameron, which then made the epic motion picture Avatar…while everybody says otherwise about this fact, I, for one, believe that what I just wrote above is true…

NOT!

if you haven’t realized it already, I wrote the passage before “NOT!” in cynical way…don’t even ask me why…okay, ask me…(someone curious: “Why?”)…because I am so disappointed in the people in our television industries…they never thought of something new, something that would be a break-through…(someone curious: “Really?”)…well, not really, some of the people behind the scene, are creative…remember the reality show pioneer “Katakan Cinta” ? it was a break-through…no random confession from random people was interesting before that show…and then the show’s rival, “H2C”…no random scandalous stalking was thrilling before the show…and then there’s this Indonesian archipelago expedition shows, which was an eye-opener to the beauty and culture of Indonesia…(someone skeptic: “See? There ARE creative people!)…yes, but apparently we don’t have enough…I should mind you then how reality shows and expedition shows underwent Algal Blooming after the success of the genre’s pioneers…because of one thing, UNCREATIVITY…rather than trying to outdo their rival TV station, almost all copy the concept…(someone uncreative from TV industry: “I don’t think we’ve ever copied Katakan Cinta concept!”)…GET THE BIG PICTURE! you guys working in there, BE CREATIVE…don’t be THAT afraid on making new program which is ORIGINAL, the concept don’t have to be original, but please make the content original…

and no, I don’t blame all to the TV people…they just make the shows according to the market, which is us, the viewers…well, unfortunately, most of Indonesians still enjoy this wow-that’s-good-in-gaining-viewer-share-let’s-copy-it show…(someone who loves to watch the wow-that’s-good-in-gaining-viewer-share-let’s-copy-it show: “Now you’re blaming me Mister?”)…of course not…if your reason to watch ‘em is to laugh mocking the show…if the reason is to enjoy the show, then my answer is short, YES! why would you watch something that would only stupefy you…

btw, TV people…I got my trust in you since almost all of you is Indonesian…just don’t hurt my trust, and I believe a lot of other Indonesians, in this…sorry if I’m such an ass in this…but for those who understand Indonesian, check the synopsis, as well as some images, in the link below…maybe you got a glimpse of what I’m feeling…

The Synopsis –> Petualangan Bersama Suku Biru

time to move on…

January 20th, 2010 by Yvan Christian

okay…this blog of mine is kinda boring now since there’s no new post…
well, for those who still follow my blog here, prepare for them then…
i’ve found a new hobby…and i got a lot in my mind…
and yes, i think i’ll post in English now…
actually, i’ve been thinking about doing Indonesian and English page…
but since some of you know, i’m just simply LAZY…with capital L…and A…and Z…and Y…
what? you could see it already? well, i’m just trying to make it OBVIOUS…
with capital O…and B…and V…and…okay, sorry for trying to obviously make the “OBVIOUS” obvious…

see y’all next post…

« Previous Entries