Spiga

Linkin Park Given Up Lyrics

Since being in my western song collections for two week, the song from Minute to Midnight album finally listed as new comer in my top 20 list. I think this is another great song from Linkin Park. Chester Bennington proves himself as one of outstanding vocalist today. You can find this album review at Amazon.com. Rate from 1 to 5, this song gets 3.5 from me. Check the lyric below.

Given Up

~ Linkin Park ~


Wake in a sweat again
Another day's been laid to waste
In my disgrace
Stuck in my head again
Feels like I'll never leave this place
There's no escape

I'm my own worst enemy

Chorus:
I've given up...
I'm sick of feeling
Is there nothing you can say?
Take this all away
I'm suffocating!
Tell me what the f**k is wrong with me!

I don't know what to take
Thought I was focused but I'm scared
I'm not prepared
I hyperventilate
Looking for help somehow somewhere
And no one cares

I'm my own worst enemy

[Chorus]


GOD!

Put me out of my misery
Put me out of my misery
Put me out of my...
Put me out of my f**king misery!

[Chorus]

What is The Java Platform?

I believe many of you already know and able to explain about the java platform in detail from theory to technique. I also believe some of you mastering the technical aspect but forget the basic knowledge. Here I write what I read as remainder for myself and perhaps also for you.

The Java programming language is designed to maximize portability. Many details are specifically defined for all implementations. For example, a double is a 64-bit IEEE 754 floating-point number. Many languages leave precise definitions to particular implementations, making only general guarantees such as minimum range, or they provide a way to ask the system what the range is on the current platform.

These portable definitions for the Java programming language are specific all the way down to the machine language into which code is translated. Source code is compiled into Java byte codes, which are designed to be run on a Java virtual machine. Byte codes are a machine language for an abstract machine, executed by the virtual machine on each system that supports the Java programming language.

The virtual machine provides a runtime system, which provides access to the virtual machine itself (for example, a way to start the garbage collector) and to the outside world (such as the output stream System.out). The runtime system checks security-sensitive operations with a security manager or access controller. The security manager could, for example, forbid the application to read or write the local disk, or could allow network connections only to particular machines. Exactly what an application is allowed to do is determined by the security policy in force when the application runs.

When classes are loaded into a virtual machine, they will first be checked by a verifier that ensures the byte codes are properly formed and meet security and safety guarantees (for example, that the byte codes never attempt to use an integer as a reference to gain access to parts of memory).

These features combined give platform independence to provide a security model suitable for executing code downloaded across the network at varying levels of trust. Source code compiled into Java byte codes can be run on any machine that has a Java virtual machine. The code can be executed with an appropriate level of protection to prevent careless or malicious class writers from harming the system. The level of trust can be adjusted depending on the source of the byte codes on the local disk or protected network can be trusted more than byte codes fetched from arbitrary machines elsewhere in the world.


Find more about java at http://java.sun.com

Google AdSense Between My Posts

While I re-make up gegem'studio, one blogspot setup has caught my attention. This setup make blogspot blogger can show ads between posts. May be I miss this setup before or it’s a hot thing..? Never mind… I will never ever put search about it on blogsphere in my TTD List. But I am sure google must have documentation about this setup. Below is a documentation I got from Google Help > Blogger Help > Advanced Use > Add-Ons > AdSense

How to do I show ads between my posts?


To show ads between your posts first go to your Template | Page Elements tab. Then, in the "Blog Posts" section, click on "Edit".

A pop-up window will appear with options to configure your blog posts. Check the box next to "Show Ads Between Posts". (Note: You must be signed up for AdSense before you can check this box.)

Once you check this box you'll see the configuration options for your ads. You can then select how often you would like ads to be shown after your posts.

For example, if you want ads to be displayed after every post, select "1" from the drop-down menu. (Please note that AdSense policies limit you to a total of 3 ad units per page and Blogger will automatically prevent you from going over this limit.) You can then select your ad format and colors. Once you have finished configuring your ads, click on the orange "Save Changes" button in the bottom right corner.

After activate this setup for 7 days, I found my AdSense income increase well. I wonder how much money I miss before.

Generasi Kerdil

Sebuah abad yang besar telah lahir/tetapi ia menemukan generasi yang kerdil. (Bung Hatta, mengutip puisi Schiller)

Indonesia luas tanahnya, besar daerahnya dan tersebar letaknya. Pemerintahan Negara yang semacam itu hanya dapat diselenggarakan oleh mereka yang mempunyai tanggung jawab yang sebesar-besarnya, dan mempunyai pandangan yang amat luas. Rasa tanggung jawab itu akan hidup dalam dada kita jika kita sanggup hidup dengan memikirkan lebih dahulu kepentingan masyarakat, keselamatan nusa, dan kehormatan bangsa. Untuk mendapatkan rasa tanggung jawab yang sebesar-besarnya, kita harus mendidik diri kita sendiri dengan rasa cinta akan kebenaran dan keadilan yang abadi. Hati kita harus penuh dengan cita-cita besar, lebih besar dan lebih lama umurnya dari kita sendiri. (Pidato Radio Bung Hatta, 8 November 1944, dikutip dari Membesarkan Jiwa Bangsa oleh Yudi Latif di rubrik Opini Harian Kompas 16 Agustus 2007)


Dua kutipan kegundahan salah satu pendiri Negara Kesatuan Republik Indonesia di atas menampar wajah indonesia sekarang yang telah berumur 62 tahun. Manusia Indonesia sekarang adalah generasi yang kerdil. Tidak bertanggung jawab dan memiliki pandangan yang sempit. Hanya mementingkan kepentingan orang per orang atau kelompok tertentu saja, tidak lebih dahulu memikirkan kepentingan masyarakat keseluruhan, keselamatan nusa, dan kehormatan bangsa. Kebenaran dan keadilan cuma cerita lama.

Sangat tercermin dari banyaknya konflik antar kelompok baik itu konflik horizontal maupun konflik vertical. Paket-paket kebijakan memiliki kecendrungan mengesampingkan Keadilan Sosial Bagi Seluruh Rakyat Indonesia (tidak heran ide separatis semakin populer). Pengrusakan bumi ibu pertiwi (penambangan mineral dan penebangan hutan, dll) yang sudah keterlaluan dan mengabaikan kesejahteraan rakyat serta tidak memikirkan generasi yang akan datang. Dan semakin berkurangnya kendali pemerintah terhadap hal-hal yang menyangkut hidup orang banyak. Serta diperparah oleh ketidak-jujuran aparatur Negara dan lemahnya keadilan para penegak hukum di Negara ini.

Mengingat semakin banyaknya kejadian-kejadian tidak pantas yang menimpa tenaga kerja Indonesia di luar negri. Politik luar negri yang nyaris sudah tidak lagi Bebas Aktif, dan tergantikan oleh kecendrungan berpihak terhadap Negara adidaya. Tuntutan demi tuntutan dari luar negri di iya-kan saja. Sampai-sampai demi 87 milliar dolar AS wilayah NKRI pun di lego. Masih adakah kehormatan Indonesia sebagai bangsa yang merdeka dan berdaulat
?

Tidak ada suatu bangsa dapat berhebat, jikalau batinnya tidak terbuat dari nur iman yang sekuat-kuatnya. Jikalau kita bangsa Indonesia ingin kekal, kuat, nomor satu jiwa kita harus selalu jiwa yang ingin Mi’raj-kenaikan keatas-agar kebudayaan kita naik keatas, supaya Negara kita naik keatas. Bangsa yang tidak mempunyai adreng, adreng untuk naik keatas, bangsa yang demikian itu, dengan sendirinya akan gugur pelan-pelan dari muka bumi. (Bung Karno, 7 Februari 1959, dikutip dari Membesarkan Jiwa Bangsa oleh Yudi Latif di rubrik Opini Harian Kompas 16 Agustus 2007)

First Time Reader Audit (Result)

Bad English, it doesn't mean a rock band. That is a comment from my first time reader about my blog (gegem'studio) :) Like Darren say in his 31 day to built a better blog, I do a First Time Reader Audit to gegem'studio. I ask my friends to open gegem'studio in front of me and watch their activity in this blog and make some evaluation. I ask their review, comment and suggest. Darren was right; I got much valuable review from them. Here is evaluation conclusion:

1. Bad English.

Like I say at Hello world, my English is terrible. I don't deny it. One of my motivations to blogging is to practice and improve my English.

2. Improve my communication skill.

I am an introvert person; it’s hard for me to communicate with other. I just get the point in my mind, but I didn’t know how to communicate it. That way they have to read at least twice to get what I want to say. Ok, I’ll try to make it easier for the reader to understand. And as I can I’ll make it straight to the point.

3. Change blog template and re-organize blog elements.

I search on web for free themes/templates (because I don't understand HTML, XML, DHTML, PHP, AJAX or other web programming). And I have got a nice template from finalsense.com and I use it since August 10, 2007.

4. Give downloaded files.

This to make them easy to understand my visual basic post "Say good bye to ILTP" and other post which is need a sample files (for who love an instant).

5. Improve the quality.

My Post just gets an Acceptable Quality :( from them. "Make it better and valuable event this is your life logs".

6. KISS.

This hurt me :( they say my post a little too long in front and not scannabel. Ok, I have to make it more scannabel. Their idea, make it short and as simple as possible and don't make full post in front page. If it has to be long post, just give half and make "read more...” personally I don't agree, because when I come to other site, I hate when I have to click “read more…” or “continue reading” and wait more second (sometime minutes) to read full article. Keep it simple is my priority.


The result by doing a first time reader audit to gegem'studio is Thing to Do List above. I’ve done with some point above since August 10, 2007. After next 30 day, I’ll ask their review again and do another first time reader audit. For a better blog :)

New face of gegem’studio

Why I need a fresh template for gegem'studio?

Reason #1

The Snapshot template by Dave Shea I used before come from blogger standard template. I love the style but it has a little problem with loading time and to many color.

Reason #2

The Snapshot template is not wide enough (this is main reason). Some ads sizes format cannot fix with template width on top or bottom or sidebar.

Reason #3

My decision to change blog template is an impact of a first time reader audit result. I do one of 31 day to build a better blog tips. This tip gave me valuable feedback from my reader.

Template Hunting

So, where I can find a free new blogger template (XML Format) for gegem'studio? Like usual I ask uncle google. And this nice uncle listed finalsense.com in search result. Actually I come to this site after other 4 similar sites on list. Finalsense.com offers me many nice templates they have. They offer 2 column and 3-column new blogger template (XML Format). I choose Dream template (2 column template). I think this one is simple and nice template.

Go Live

I implement Dream Template from Finalsense.com to this blog today on August 10, 2007. I have done re-setup all widget, third-party codes and ads. And I also remove some page elements. And the result is what you see now.

4 Bad In My Last Months On Campus

I have some Bad Thing in my last months on campus. It is all about my thesis.

Bad #1 Mission (almost) Impossible

As I know other university student in Indonesia has 2 semesters to make a thesis. But at my campus, we just have 2 month to make a good thesis. It is a bad thing. For me, it sounds like a mission (almost) impossible.

Bad #2 No Progress

I just realize that I have spent 9 of 60 days I have to finish my thesis with no progress. Till days 9 I can’t decide what my thesis will be.

Bad #3 Throw away to Rubbish bin

I Just Put My Ideas for thesis into rubbish bin. I had done a searching about the ideas on libraries, Internet and also ask my friend who mastering Visual Basic. But I still didn’t know how to make the ideas come true.

Bad #4 No Approval

My best friend Erik gave me his idea. I know I can make it. I still doing a little searching about this idea, to make sure I can finish it. The Idea that I got from my best friend Erik didn’t get an approval yet. Perhaps in next 2 days I can tell the idea to my thesis mentor to get his approval.

How to customize drive background

I re-use an old trick for Windows XP to customize my flash disk background. I know this trick from my college senior in the middle of 2002. I ever forgot it when I move to Jakarta June 2004. In April 28, 2007, I find it again in jasakom website. This is what I mean.


Various responses I got from my friends. Some of them say “Old Trick”, “useless”, “newbie stuff”, other say “how to make it”, “I want my flash drive like yours”, “share me”, “post it to your blog, so I can show it to my friends”, bla…bla….

This is only for you who didn’t know this before or who forgot it.

#1 Find and copy an image to your flash disk root. (In this case I copy spidy3.jpg to G:/)

#2 Open your favorite text editor (i.e: Notepad) and type or copy paste script below and save as: destop.ini in your flash disk root (i.e.: G:/)

[ExtShellFolderViews]
{BE098140-A513-11D0-A3A4-00C04FD706EC} = {BE098140-A513-11D0-A3A4-00C04FD706EC}
[{BE098140-A513-11D0-A3A4-00C04FD706EC}]
Attributes=1
IconArea_Image=spidy3.jpg
IconArea_Text=0xFFFFFF
[.ShellClassInfo]
ConfirmFileOp=0

#3 Refresh your flash disk


What The Script About?

-----------------------

Honestly, I only understand the function of IconArea_Image and IconArea_Text.


#) IconArea_Image use to set an image file name you use for your drive background.

The script format:

IconArea_Image=FILE_NAME

If your image in a folder you have to include folder name before image file name, script format should be like this:

IconArea_Image=\FOLDER_NAME\FILE_NAME

#) IconArea_Text use to set text color. It uses hexadecimal number for Red-Green-Blue color combination. It has range from 000000 to FFFFFF.

Format:

0x FF FF FF = 0x Blue Green Red

Some Hexadecimal number and the color result:

Hexadecimal Color
------------------------------
0x000000 Black
0x0000FF Red
0x00FF00 Green
0xFF0000 Blue
0x00FFFF Yellow
0xFF00FF Magenta
0xFFFF00 Cyan
0xFFFFFF White
0x808080 Gray
0x00AAFF Orange
0x00FFAA Soft green
0x004080 Brown

My question for master out there, How to make it works for each folder? I’ve tried and fail.

Accio Harry Potter Novel...!

Since the last novel of JK Rowling’s wizard son Harry Potter and The Deathly Hallows release, it broke the book sales record (8.3 millions copies sold in first 24 hours base on trusted Indonesia local daily newspaper report). And that number comes from an English version only. What about if Harry Potter and the deathly hallows has been translate to other language (as I know Last 6 Year Harry Potter (Books 1-6) translated to 64 difference language and 325 millions copies spread around the world). I wonder why it can’t be added to world record book for the most popular book ever (as I know).

For Harry’s fans (sorry I don’t write JK Rowling Fans) who cannot read an English version because of they don’t understand English or limited English. They have to be waiting till it translates to their mother language. I am one of them. In Indonesia, I have to wait till at least for 3-6 month to go.

But I can’t help my self to stop hear and read about Harry Potter and The Deathly Hallows witchcraft spread around the world. I have to read it too event with my limited English. Indonesia Local books store is my target. I found the book, but when I saw the price… to expensive for me. I didn’t stop there, I try to find it in online books store. When I saw the price it’s 50% cheaper then on local book store. For comparison, in My Amazon affiliate online books store the price is $17.99 and in local books store is around IDR 325000 or in USD its $35.32 (with a rate of exchange $1 = IDR 9200).

High Quality = High Price. Not enough money for both local store and online store. I just start thinking I’ll wait till Indonesian version release. Like what I did before for last 6 Harry’s novel. But wait….! I don’t think so. I remember one web site that has given me lot of free e-books. Why I don’t try to search there. Come to the site. Type Harry potter in search text box, click search. And Bingo! There were lots of Harry potter. I pick Harry_Potter_Book_Set_All_7 and download it. It sounds like contain all Harry potter book. After several minutes waiting for download progress complete. I open the file and…. I got all full versions Harry potter novel from the first year to the last year. I got to start reading Harry potter and the deathly hallows immediately. Don’t give up, a formula above can be set to: High Quality = No Price

A little bit illegal I think. I have to say sorry to JK Rowling. That’s why I don’t write the site name or address where I got it. Event I have got Harry Potter and The Deathly Hallows novel, I’ll keep waiting for the Indonesian version and buy it to complete my collection.

FYI, Till I publish this I’ve reach chapter fifteen since 4 night reading. Slowly isn’t it. While reading I have open my English dictionary to translate unfamiliar words.

Say Good Bye to ILTP

I ever made an application for a company when I work at migent computer an accounting software house in Jakarta, Indonesia. A part of that application need to save or load a picture. I don’t have any idea at time how to save/load a picture from a database. Thanks God, my senior there has the code. But, the code I got from my senior has a problem with loading time. At time I guess that Image Loading Time Problem (ILTP) cause of the code set data source and data field for images control. But I ignore it at time because of deadline. And then when I am a freelance programmer I found the same case again. I need to solve time loading. Then I try to find it at the home millions of lines of source code. Thanks God I find what I’m looking for. A class from Khalid Mahmod does help me.

‘----------- begin class (clsPicture.cls) ---------

‘ Class source code came from Planet-source-code

‘ Original Author: Khalid Mahmood, Lahore, Pakistan (k_mahmod@hotmail.com)

Private Declare Function GetTempFileName Lib "kernel32" Alias "GetTempFileNameA" (ByVal lpszPath As String, ByVal lpPrefixString As String, ByVal wUnique As Long, ByVal lpTempFileName As String) As Long

Private Declare Function GetTempPath Lib "kernel32" Alias "GetTempPathA" (ByVal nBufferLength As Long, ByVal lpBuffer As String) As Long

Public Sub LoadPhoto(rstMain As Recordset, PFName As String, SizeField As String, picEmp As Image)

On Error GoTo Handler

Dim bytes() As Byte

Dim file_name As String

Dim file_num As Integer

Dim file_length As Long

Dim num_blocks As Long

Dim left_over As Long

Dim block_num As Long

Dim hgt As Single

Screen.MousePointer = vbHourglass

DoEvents

file_name = TemporaryFileName()

file_num = FreeFile

Open file_name For Binary As #file_num

file_length = rstMain(SizeField)

num_blocks = file_length / BLOCK_SIZE

left_over = file_length Mod BLOCK_SIZE

For block_num = 1 To num_blocks

bytes() = rstMain(PFName).GetChunk(BLOCK_SIZE)

Put #file_num, , bytes()

Next block_num

If left_over > 0 Then

bytes() = rstMain(PFName).GetChunk(left_over)

Put #file_num, , bytes()

End If

Close #file_num

picEmp.Picture = LoadPicture(file_name)

Screen.MousePointer = vbDefault

Exit Sub

Handler:

Resume Next

End Sub

Public Sub SavePhoto(filename As String, rstMain As Recordset, FieldName As String, SizeField As String)

On Error GoTo Handler

Dim file_num As String

Dim file_length As Long

Dim bytes() As Byte

Dim num_blocks As Long

Dim left_over As Long

Dim block_num As Long

file_num = FreeFile

Open filename For Binary Access Read As #file_num

file_length = LOF(file_num)

If file_length > 0 Then

num_blocks = file_length / BLOCK_SIZE

left_over = file_length Mod BLOCK_SIZE

rstMain(SizeField) = file_length

ReDim bytes(BLOCK_SIZE)

For block_num = 1 To num_blocks

Get #file_num, , bytes()

rstMain(FieldName).AppendChunk bytes()

Next block_num

If left_over > 0 Then

ReDim bytes(left_over)

Get #file_num, , bytes()

rstMain(FieldName).AppendChunk bytes()

End If

'rstEmployee.Update

Close #file_num

End If

Exit Sub

Handler:

MsgBox Err.Description

End Sub

Public Function TemporaryFileName() As String

Dim temp_path As String

Dim temp_file As String

Dim length As Long

' Get the temporary file path.

temp_path = VBA.Space$(MAX_PATH)

length = GetTempPath(MAX_PATH, temp_path)

temp_path = Left$(temp_path, length)

' Get the file name.

temp_file = VBA.Space$(MAX_PATH)

GetTempFileName temp_path, "per", 0, temp_file

TemporaryFileName = Left$(temp_file, InStr(temp_file, VBA.Chr$(0)) - 1)

End Function

‘----------- end of class (clsPicture.cls) --------

I add codes below in Form Where i want to Load/Save a Picture. In this case i had one Image control named Foto. And i’ll add or remove picture by right click at image control, so i make menu from menu editor:

mnuFoto -> visible False

--- mnuAddFoto

--- mnuRemoveFoto

And to fill blank picture I give an image put in Vb Resource with who-am-I as Id. If you don’t want to just remark all code contain LoadResPicture

‘------------------------------------------------------------------------

Dim FullPathFoto As String, RemoveFoto As Boolean

Private Sub Foto_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)

If Button = 2 Then PopupMenu mnuFoto

End Sub

Private Sub mnuAddFoto_Click()

FullPathFoto = ""

FullPathFoto = ShowOpenPictures(Me.hwnd, False, Func.CekPath(App.Path) & "Foto")

If FullPathFoto <> "" Then Me.Foto.Picture = LoadPicture(FullPathFoto) Else Foto.Picture = LoadResPicture("who-am-i", vbResBitmap)

End Sub

Private Sub mnuRemoveFoto_Click()

FullPathFoto = "": RemoveFoto = True

Foto.Picture = LoadResPicture("who-am-i", vbResBitmap)

End Sub

‘--------------------------------------------

‘ add this code in your save (add new) procedure

‘-------------------------------------------

Dim PIC As New clsPicture

If FullPathFoto <> "" Then

PIC.SavePhoto FullPathFoto, Rst, "Foto", "FotoSize"

Else

Rst!Foto = Null

Rst!FotoSize = Null

End If

Set PIC = Nothing

‘----------------------------------------------

‘ add this code in your edit procedure

‘-----------------------------------------------

Dim PIC As New clsPicture

If FullPathFoto <> "" Then

PIC.SavePhoto FullPathFoto, Rst, "Foto", "FotoSize"

Else

If RemoveFoto Then

Rst!Foto = Null

Rst!FotoSize = Null

End If

End If

Set PIC = Nothing

‘--------------------------------------------------

‘ add this code into your recordset loading

‘--------------------------------------------------

If Not IsNull(Rst!Foto) Then

Dim PIC As New clsPicture

PIC.LoadPhoto Rst, "Foto", "FotoSize", Foto

Set PIC = Nothing

Else

Foto.Picture = LoadResPicture("who-am-i", vbResBitmap)

End If

‘For MIGENT Only

‘Delete code below at FillForm() procedure and add codes above:

Set Foto.DataSource = record_set

Foto.DataField = field_name

‘-----------------------------------------

‘ Special for MIGENT Computer J add this in your xEdit() or ClearForm() Procedure

‘------------------------------------------

FullPathFoto = "": RemoveFoto = False

Foto.Picture = LoadResPicture("who-am-i", vbResBitmap)

'------- end of code ----------

By implement code above, I can say good bye to ILTP.