Recently, I got many developments related to email sending on ABAP.
Mostly I used function module SO_NEW_DOCUMENT_SEND_API1 but now, because of the demanding
and trying to write a better coding, I use object oriented style for sending email.
Today's higlight is about class cl_bcs for writing and sending email. One advantage I get is
by using class cl_bcs, I can menipulate (modify) the sender email address, while I can't if use
function module SO_NEW_DOCUMENT_SEND_API1.
I will give some line of codes that show you how to create simple email, use html formated email,
and how to create attachment inn the email.
These codes below will give some example how to drive this class. You can check the results using
tcode SOST.
Codes:
" these three examples show how email can be sent in ABAP.
" all of the three are similar except when they are creating
" documents in "email contents" and "create documents" section
PERFORM simple_send_email.
PERFORM send_email_in_html_format.
PERFORM send_email_with_attachments.
*--------------------------------------------------------------------*
*--------------------------------------------------------------------*
FORM simple_send_email.
DATA : l_o_send_request TYPE REF TO cl_bcs, " email request object
l_o_document TYPE REF TO cl_document_bcs, " documents object
l_o_sender TYPE REF TO cl_cam_address_bcs, " sender object
l_o_recipient TYPE REF TO cl_cam_address_bcs, " recipient object
bcs_exception TYPE REF TO cx_bcs, " exceptions
l_v_ret javascript:void(0) TYPE os_boolean, " boolean return value
" document contents
l_it_contents TYPE bcsy_text,
l_wa_contents TYPE LINE OF bcsy_text.
TRY.
" create email objects
l_o_send_request = cl_bcs=>create_persistent( ).
" sender
l_o_sender = cl_cam_address_bcs=>create_internet_address( 'emailaddress@sender.com' ).
l_o_send_request->set_sender( i_sender = l_o_sender ).
" recipient TO
l_o_recipient = cl_cam_address_bcs=>create_internet_address( 'emailto@recipient.com' ).
l_o_send_request->add_recipient(
i_recipient = l_o_recipient
i_copy = '' " CC indicator
).
" recipient CC
l_o_recipient = cl_cam_address_bcs=>create_internet_address( 'emailcc@recipient.com' ).
l_o_send_request->add_recipient(
i_recipient = l_o_recipient
i_copy = 'X' " CC indicator
).
**********************************************************************
" email contents
CLEAR l_wa_contents.
l_wa_contents-line = 'Dear Recipients,'.
APPEND l_wa_contents TO l_it_contents.
CLEAR l_wa_contents.
l_wa_contents-line = 'This in the contents'.
APPEND l_wa_contents TO l_it_contents.
" create documents
l_o_document = cl_document_bcs=>create_document(
i_type = 'RAW' " RAW document format
i_text = l_it_contents
i_subject = 'This Is The Subject for Simple Email'
).
l_o_send_request->set_document( l_o_document ).
**********************************************************************
" send email
l_v_ret = l_o_send_request->send( ).
CATCH cx_bcs INTO bcs_exception.
* exceptions, do something
ENDTRY.
" never forget this one
COMMIT WORK.
ENDFORM. " FORM simple_send_email.
*--------------------------------------------------------------------*
*--------------------------------------------------------------------*
FORM send_email_in_html_format.
DATA : l_o_send_request TYPE REF TO cl_bcs, " email request object
l_o_document TYPE REF TO cl_document_bcs, " documents object
l_o_sender TYPE REF TO cl_cam_address_bcs, " sender object
l_o_recipient TYPE REF TO cl_cam_address_bcs, " recipient object
bcs_exception TYPE REF TO cx_bcs, " exceptions
l_v_ret TYPE os_boolean, " boolean return value
" document contents
l_it_contents TYPE bcsy_text,
l_wa_contents TYPE LINE OF bcsy_text.
TRY.
" create email objects
l_o_send_request = cl_bcs=>create_persistent( ).
" sender
l_o_sender = cl_cam_address_bcs=>create_internet_address( 'emailaddress@sender.com' ).
l_o_send_request->set_sender( i_sender = l_o_sender ).
" recipient TO
l_o_recipient = cl_cam_address_bcs=>create_internet_address( 'emailto@recipient.com' ).
l_o_send_request->add_recipient(
i_recipient = l_o_recipient
i_copy = '' " CC indicator
).
" recipient CC
l_o_recipient = cl_cam_address_bcs=>create_internet_address( 'emailcc@recipient.com' ).
l_o_send_request->add_recipient(
i_recipient = l_o_recipient
i_copy = 'X' " CC indicator
).
**********************************************************************
" email contents
CLEAR l_wa_contents.
l_wa_contents-line = 'Dear Recipients,
'.
APPEND l_wa_contents TO l_it_contents.
CLEAR l_wa_contents.
l_wa_contents-line = 'This is the contents in bold format
'.
APPEND l_wa_contents TO l_it_contents.
CLEAR l_wa_contents.
l_wa_contents-line = 'This is the contents in italic format'.
APPEND l_wa_contents TO l_it_contents.
" create documents
l_o_document = cl_document_bcs=>create_document(
i_type = 'HTM' " HTML document format
i_text = l_it_contents
i_subject = 'This Is The Subject for Email With HTML format'
).
l_o_send_request->set_document( l_o_document ).
**********************************************************************
" send email
l_v_ret = l_o_send_request->send( ).
CATCH cx_bcs INTO bcs_exception.
* exceptions, do something
ENDTRY.
" never forget this one
COMMIT WORK.
ENDFORM. " FORM send_email_in_html_format.
*--------------------------------------------------------------------*
*--------------------------------------------------------------------*
FORM send_email_with_attachments.
DATA : l_o_send_request TYPE REF TO cl_bcs, " email request object
l_o_document TYPE REF TO cl_document_bcs, " documents object
l_o_sender TYPE REF TO cl_cam_address_bcs, " sender object
l_o_recipient TYPE REF TO cl_cam_address_bcs, " recipient object
bcs_exception TYPE REF TO cx_bcs, " exceptions
l_v_ret TYPE os_boolean, " boolean return value
" document contents
l_it_contents TYPE bcsy_text,
l_wa_contents TYPE LINE OF bcsy_text,
" documents attachment
l_i_attachment TYPE solix_tab.
TRY.
" create email objects
l_o_send_request = cl_bcs=>create_persistent( ).
" sender
l_o_sender = cl_cam_address_bcs=>create_internet_address( 'emailaddress@sender.com' ).
l_o_send_request->set_sender( i_sender = l_o_sender ).
" recipient TO
l_o_recipient = cl_cam_address_bcs=>create_internet_address( 'emailto@recipient.com' ).
l_o_send_request->add_recipient(
i_recipient = l_o_recipient
i_copy = '' " CC indicator
).
" recipient CC
l_o_recipient = cl_cam_address_bcs=>create_internet_address( 'emailcc@recipient.com' ).
l_o_send_request->add_recipient(
i_recipient = l_o_recipient
i_copy = 'X' " CC indicator
).
**********************************************************************
" email contents
CLEAR l_wa_contents.
l_wa_contents-line = 'Dear Recipients,'.
APPEND l_wa_contents TO l_it_contents.
CLEAR l_wa_contents.
l_wa_contents-line = 'This in the contents attachments'.
APPEND l_wa_contents TO l_it_contents.
" create documents
l_o_document = cl_document_bcs=>create_document(
i_type = 'RAW' " RAW document format
i_text = l_it_contents
i_subject = 'This Is The Subject for Email With Attachment'
).
l_o_document->add_attachment(
i_attachment_type = 'PDF' " add PDF attachment
i_attachment_subject = 'PDF attachment'
i_att_content_hex = l_i_attachment
).
l_o_send_request->set_document( l_o_document ).
**********************************************************************
" send email
l_v_ret = l_o_send_request->send( ).
CATCH cx_bcs INTO bcs_exception.
* exceptions, do something
ENDTRY.
" never forget this one
COMMIT WORK.
ENDFORM. " FORM simple_send_email.
Sunday, 19 April 2009
Friday, 6 March 2009
Desktop Gadget
This is the story about my desktop gadget. One day, I feel so bored at my office and I just bought USB modem attached with Telkom Flash SIM card inside, so I just did what I always do, downloading... I found many cute softwares that will decrease the stress level of office daily activities.
#1: AutoHotKey. I've written this before how AutoHotKey a.k.a. AHK can automate your desktop with its hotkey to launch application and auto completion fitures.
#2: Deskpot. Virtual Desktop software so you can have multiple desktops just like in X Windows system in Linux. It makes you possible to do your work in one desktop while doing another thing in the other desktop. This is very useful when you are browsing or doing something else in the office hour. So, when your boss is approaching, just switch the desktop to the desktop where you store your workings.

#3: Google Desktop. It re-indexes your hardisk so you can search file much faster and puts some pretty user interface on your desktop (sidebar, deskbar, or floating bar).

There are several widgets that google desktop have.Some of them are those 4 that shown in the picture (scratch pad, todo list, analog clock, and power monitor). In scratch pad, you can type any notes (before this, usualy we use Win+R as our scratch note) that won't disapear although after rebooting the system. Easy to use TODO List helps you orginize your works. Intuitive clock just makes things easier with knowing the time. The power monitor makes you aware about your laptop battery.
#4: Winamp. Hotkey enabled Winamp is just the best multimedia software. It is the best just because I get used to this software, and the Hotkey, just perfect for me.
#5: StickyNotes. This lightweight software acts just like notes in our own paper notes. Just use the hotkey and type anything you want. The software even needs no installation. Actually this StickyNotes can act just like google's Scratch Pad with some more advantages.
#6:KeePass

This ini KeePass, the password organizer. It stores your password lists and you just need 1 master password to open the program. No need to remember all of your password, just rememter the login password, and all done. Currently, I put my email password, internet login, domain password, and more other passwords in this software. The best is by combining KeePass with Autohotkey, so we can make a hotkey to automatically open the password lists. (For me it is Win+K).

#7: TrueCrypt. One of the most useful disk encryption software. You can use this to protect your "Private Critical Data" in your Hardisk. It can create its own encrypted partition so noone can access the drive. It is also equiped by hotkey features so we can mount or dismount the encrypted drive by using user defined hotkey.

Summary : There are huge numbers of other softwares that I use for making my laptop such a cozy and fun way to work and play, or just for eye candy. Most of the softwares can be downloaded from http://softpedia.com/ and I always try to find Freeware softwares so, no need to crack them.
#1: AutoHotKey. I've written this before how AutoHotKey a.k.a. AHK can automate your desktop with its hotkey to launch application and auto completion fitures.
#2: Deskpot. Virtual Desktop software so you can have multiple desktops just like in X Windows system in Linux. It makes you possible to do your work in one desktop while doing another thing in the other desktop. This is very useful when you are browsing or doing something else in the office hour. So, when your boss is approaching, just switch the desktop to the desktop where you store your workings.

#3: Google Desktop. It re-indexes your hardisk so you can search file much faster and puts some pretty user interface on your desktop (sidebar, deskbar, or floating bar).

There are several widgets that google desktop have.Some of them are those 4 that shown in the picture (scratch pad, todo list, analog clock, and power monitor). In scratch pad, you can type any notes (before this, usualy we use Win+R as our scratch note) that won't disapear although after rebooting the system. Easy to use TODO List helps you orginize your works. Intuitive clock just makes things easier with knowing the time. The power monitor makes you aware about your laptop battery.
#4: Winamp. Hotkey enabled Winamp is just the best multimedia software. It is the best just because I get used to this software, and the Hotkey, just perfect for me.
#5: StickyNotes. This lightweight software acts just like notes in our own paper notes. Just use the hotkey and type anything you want. The software even needs no installation. Actually this StickyNotes can act just like google's Scratch Pad with some more advantages.
#6:KeePass

This ini KeePass, the password organizer. It stores your password lists and you just need 1 master password to open the program. No need to remember all of your password, just rememter the login password, and all done. Currently, I put my email password, internet login, domain password, and more other passwords in this software. The best is by combining KeePass with Autohotkey, so we can make a hotkey to automatically open the password lists. (For me it is Win+K).

#7: TrueCrypt. One of the most useful disk encryption software. You can use this to protect your "Private Critical Data" in your Hardisk. It can create its own encrypted partition so noone can access the drive. It is also equiped by hotkey features so we can mount or dismount the encrypted drive by using user defined hotkey.

Summary : There are huge numbers of other softwares that I use for making my laptop such a cozy and fun way to work and play, or just for eye candy. Most of the softwares can be downloaded from http://softpedia.com/ and I always try to find Freeware softwares so, no need to crack them.
Sunday, 1 March 2009
Buddhism brainwash… Hahaha… Not really, this is a good one.
Yesterday, I went to a seminar with Debby, she asked me to accompany her. The seminar invited a Buddhism monk named Ajahn Brahm. That was all OK with me, because she went to church with me several times, so have no big deals if I accompanied her. Ajahn Brahm , seemed like a very famous monk in Buddhism, that night, people idol him, except me of course, I didn’t even know him. From the guide book, he was born in London in 1951 –yeah a western monk-- and became a monk on his 23rd age. He graduated from Physics Theory in Cambridge University and became a teacher. It didn’t last long; then, he started becoming a monk. He was the one who wrote a book titled “Membuka Hati”, some people said it was a good book, but I haven’t read it. He already wrote another 2 books, but I don’t know what the titles are.
In this seminar, he told us how to be happy in out life. He gave reasonable examples by stories and jokes how to make our own life better. Since he was graduated from Cambridge, indeed, he seemed such a smart person, his words told me that, but I’m not too sure, anyway, I’ve never met him before. His telling didn’t only suit for Buddhism, but I think, Christian also has similar idea too. His words taught us about thankful and acceptance to what we have.
His first story was about “chasing happiness”, which story was from his own life. Ones, he was told how to get his success. His parents said if he got a very good score in school, then he could go to pass test for elementary level, and he would be happy, and he did so. After that, he still not happy because he had to get another test, then, he asked his parents again, then his parents told him to pass next level through high school, and he also did so and got a good mark. After that he wasn’t too happy either because he had to take another test in high school. And his parents told another thing, if he wanted to be happy and success, than he had to get to Cambridge, and he did that also, and what now… Now he had to work and still not happy.
Sometimes we do chasing our own happiness, but once we got that, we still don’t happy, because we will be seeking for another goal, and another, and another, and so on…. So, we will never reach our “happiness”, because we only focus on the “setting goal to get happiness” not the “happiness” it self. Because that’s what we do, we try to get much money; we always think that we could be happy with the money, no… we afraid the robber will take our money. So we get security guard, do we happy now? No… we afraid the security guard will take our money instead of the robbers.
Another story was about two women who were sisters need consultation about their problems in life. The older one said that he was going to divorce with her husband; she told that they were not matched anymore. Than Ajahn Brahm said, “Ok, what is your sister’s problem”. Than the other sister said that he depressed because she was single. “Then, why don’t you just swap? You need a husband and your elder sister doesn’t need him anymore, it’s so simple and logic.”
Some people laughed to the story, but one point we could take, it told us about sufferings. We have suffered from many suffering these days, one comes after another. When we were in university, we had college suffering, because we was suffer from assignment, then the college suffering went away because we were graduated from university. But the suffering was still there and become work unemployed suffering. We searched for jobs because we were unemployed, people need money. Then we got the job we seek. Employment suffering, the job was too hard for us, we had no time for our own life, everyday was overtime and that made us single, had no social living, another suffering, single suffering. Next, we worked really hard and while did that we finally could find a woman to share our life with. Ok… the single suffering turned into marriage suffering… she asked too much money, she even born massive numbers of children, this is the parents suffering, and still, our employed suffering was still there too. Ok… this was our worst of all… compilation of all sufferings. They all the same, same taste with different flavors.
People always forget, if they achieve happiness through changing the world, gather money, build big house, find a beautiful wife, get good score on class, have plenty of degree, buy new shoes, cars, and other things. Because when we need something, it leads to another thing, it will always be like that. What we need to do is stop asking for more, and be grateful with what we already have. Be thankful that we have a house; because that’s enough, thankful with our wife; she’s beautiful enough for me, thankful with our husband; he is rich enough for me, our car, our children, and our life; they are enough to make us still alive. It’s not about how the world makes us happy; it’s all about how we can be happy with our world.
Being thankful and grateful is just what my faith --which is Catholic-- asks me to do. I never regret went to the seminar, he just gave me a very nice reminder about what I should do. The monk said a lot about love, care, and peace, just like what I always hear in the church. Maybe it is just like my father said, Buddhist is much more like Catholic, they teach us love, care, and peace without any condition. Ok, another bonus I got from yesterday seminar, I saw some of xiao jie hanging around… Ha….ha….ha… me is just always me.
Ok those are all I want to tell, even I can’t bring this as interesting as Ajahn Brahm did, but at least I tried. But one thing to remember, “Happiness lies in you, don’t change the world for it, change yourself to get it”.
In this seminar, he told us how to be happy in out life. He gave reasonable examples by stories and jokes how to make our own life better. Since he was graduated from Cambridge, indeed, he seemed such a smart person, his words told me that, but I’m not too sure, anyway, I’ve never met him before. His telling didn’t only suit for Buddhism, but I think, Christian also has similar idea too. His words taught us about thankful and acceptance to what we have.
His first story was about “chasing happiness”, which story was from his own life. Ones, he was told how to get his success. His parents said if he got a very good score in school, then he could go to pass test for elementary level, and he would be happy, and he did so. After that, he still not happy because he had to get another test, then, he asked his parents again, then his parents told him to pass next level through high school, and he also did so and got a good mark. After that he wasn’t too happy either because he had to take another test in high school. And his parents told another thing, if he wanted to be happy and success, than he had to get to Cambridge, and he did that also, and what now… Now he had to work and still not happy.
Sometimes we do chasing our own happiness, but once we got that, we still don’t happy, because we will be seeking for another goal, and another, and another, and so on…. So, we will never reach our “happiness”, because we only focus on the “setting goal to get happiness” not the “happiness” it self. Because that’s what we do, we try to get much money; we always think that we could be happy with the money, no… we afraid the robber will take our money. So we get security guard, do we happy now? No… we afraid the security guard will take our money instead of the robbers.
Another story was about two women who were sisters need consultation about their problems in life. The older one said that he was going to divorce with her husband; she told that they were not matched anymore. Than Ajahn Brahm said, “Ok, what is your sister’s problem”. Than the other sister said that he depressed because she was single. “Then, why don’t you just swap? You need a husband and your elder sister doesn’t need him anymore, it’s so simple and logic.”
Some people laughed to the story, but one point we could take, it told us about sufferings. We have suffered from many suffering these days, one comes after another. When we were in university, we had college suffering, because we was suffer from assignment, then the college suffering went away because we were graduated from university. But the suffering was still there and become work unemployed suffering. We searched for jobs because we were unemployed, people need money. Then we got the job we seek. Employment suffering, the job was too hard for us, we had no time for our own life, everyday was overtime and that made us single, had no social living, another suffering, single suffering. Next, we worked really hard and while did that we finally could find a woman to share our life with. Ok… the single suffering turned into marriage suffering… she asked too much money, she even born massive numbers of children, this is the parents suffering, and still, our employed suffering was still there too. Ok… this was our worst of all… compilation of all sufferings. They all the same, same taste with different flavors.
People always forget, if they achieve happiness through changing the world, gather money, build big house, find a beautiful wife, get good score on class, have plenty of degree, buy new shoes, cars, and other things. Because when we need something, it leads to another thing, it will always be like that. What we need to do is stop asking for more, and be grateful with what we already have. Be thankful that we have a house; because that’s enough, thankful with our wife; she’s beautiful enough for me, thankful with our husband; he is rich enough for me, our car, our children, and our life; they are enough to make us still alive. It’s not about how the world makes us happy; it’s all about how we can be happy with our world.
Being thankful and grateful is just what my faith --which is Catholic-- asks me to do. I never regret went to the seminar, he just gave me a very nice reminder about what I should do. The monk said a lot about love, care, and peace, just like what I always hear in the church. Maybe it is just like my father said, Buddhist is much more like Catholic, they teach us love, care, and peace without any condition. Ok, another bonus I got from yesterday seminar, I saw some of xiao jie hanging around… Ha….ha….ha… me is just always me.
Ok those are all I want to tell, even I can’t bring this as interesting as Ajahn Brahm did, but at least I tried. But one thing to remember, “Happiness lies in you, don’t change the world for it, change yourself to get it”.
Friday, 27 February 2009
Model View Controller for Dummies

MVC stands for Model View Controller is a Modeling Architecture that allows easy further modification and development by isolating user interface and logic engine. MVC consists of 3 main elements, first Model, acts as data element mapping. Usually, Model represents some data type or object that connected to database or data source. View is a user-interface element. Mostly, View has events like "on click", "on change", "on this", or "on that". The last, Controller, acts as a procedure or method for any processes or actions triggered by View’s events.
Each element comunicates using concept called Context. To simplify, usually Context is formed as a reference or pointer to native data type or object, that refers to some data variables inside every element --Model element, View, or Controller element--.
For complete ref, please go to: http://en.wikipedia.org/wiki/Model–view–controller
Sometimes people get wrong with MVC and 3-tiers architecture. If we talk about comparing between those two, they are not comparable, because they stand in 2 different concepts. 3-tiers architecture has 3 levels of tiers, presentation, logic, and data source /database tier; on the other hand, MVC has no database element. In some practical perception, MVC can be used to encapsulate presentation and logic tiers while leaving the database tier behind.
My daily use of MVC is when I do SAP Webdynpro programming. SAP Webdynpro is a part of SAP’s stuff that use web based application under SAP-enhanced Java-Eclipse. It has more SAP related libraries and objects so we can use it to connect to SAP server over RFC protocol.
I don’t know if this concept is being taught in my ex-collage Unpar. Because I and Ignat have told Lucky Adhie --my late lecturer-- that this subject should be taught in Advance Information System subject instead of just bringing any conventional architecture.
Correct me if I’m wrong with what I wrote above, I’m just trying to do some very simple “MVC for dummies” based on my experience and don’t want to share my stupidity to anyone :D…..
Sunday, 22 February 2009
My Nose bleeds
Udah 4 hari berturut2 nih gua mimisan malem2... Gak tau kenapa, tiap malem, tiap bis sikat gigi ma cuci muka... langsung mimisan. Gua emang sering mimisan dari dulu. Dulu sih kalo kecapean, ato kurang tidur suka mimisan. Pa lagi kalo lagi bikin program yang rada njelimet... Nah suka tiba2 mimisan depan komputer, kadang di Lab Komputer lagi, pas banyak anak2... Dulu pernah sih, pas lagi sibuk2nya... seminggu penuh mimisan mulu... dah mo pingsan rasanya... Dulu pernah ke dokter sih... ma dokter dibilang normal semua, mpe cek darah segala, normal... Akhirnya ma dia cuman dikasih multivitamin beberapa jenis.
Tapi dah 4 hari ni... mimisan mulu... What is this, somekind of illness? Biasanya sih kalo lagi mimisan gini, gua banyak2 makan vitamin ma banyak minum... mungkin tekanan masalah tekanan darah yang gak seimbang kali... gak tau juga sih... moga2 aja bukan pertanda2 kena penyakit aneh2....
Tapi dah 4 hari ni... mimisan mulu... What is this, somekind of illness? Biasanya sih kalo lagi mimisan gini, gua banyak2 makan vitamin ma banyak minum... mungkin tekanan masalah tekanan darah yang gak seimbang kali... gak tau juga sih... moga2 aja bukan pertanda2 kena penyakit aneh2....
Thursday, 19 February 2009
Noah's Arc story in Greek Mythology
People heard about Noah's story in bible; on the other hand, Greek also have similar myth with Noah.
Deucalion, the son of Prometheus was the Greek equivalent to Noah.When Zeus sent a flood to destroy the evil
mankind (of the copper age), Prometheus told the righteous Deucalion and his wife Pyrrha, daughter of Prometheus's brother Epimetheus and Pandora, to save themselves by building an ark.
After sailing for nine days and nights, they landed on Mount Parnassus near Delphi. Deucalion made an offering to Zeus the Saviour, and the god's response was to send Hermes with a promise to make any wish come true.
Deucalion then asked for the earth to be re-populated, and he was told to throw his mother's bones behind him. The couple then took stones and threw them over their shoulders, and the stones became the new human race: Deucalion's stones the men, and Pyrrha's the women. The new race was dark and short where the previous had been tall and blond.
The couple had a son, Hellen, who in turn became the father of Aeolus, Dorus and Xythos, and grandfather of Ion and Achaios. These names all refer to the different Greek tribes, with Hellen - "Greek" - as the ancestor.
[picked from http://www.in2greece.com/english/historymyth/mythology/names/deucalion.htm]
Deucalion, the son of Prometheus was the Greek equivalent to Noah.When Zeus sent a flood to destroy the evil
mankind (of the copper age), Prometheus told the righteous Deucalion and his wife Pyrrha, daughter of Prometheus's brother Epimetheus and Pandora, to save themselves by building an ark.
After sailing for nine days and nights, they landed on Mount Parnassus near Delphi. Deucalion made an offering to Zeus the Saviour, and the god's response was to send Hermes with a promise to make any wish come true.
Deucalion then asked for the earth to be re-populated, and he was told to throw his mother's bones behind him. The couple then took stones and threw them over their shoulders, and the stones became the new human race: Deucalion's stones the men, and Pyrrha's the women. The new race was dark and short where the previous had been tall and blond.
The couple had a son, Hellen, who in turn became the father of Aeolus, Dorus and Xythos, and grandfather of Ion and Achaios. These names all refer to the different Greek tribes, with Hellen - "Greek" - as the ancestor.
[picked from http://www.in2greece.com/english/historymyth/mythology/names/deucalion.htm]
Nelayan dan Pengusaha
Mungkin semua orang tau cerita ini :
Suatu kali seorang pengusaha sedang berlibur ke sebuah kampung nelayan, ia merasa terganggu saat melihat seorang nelayan sedang bersantai dibawah pohon.
"Pak, mengapa bapak tidak melaut ?", tanya pengusaha itu seraya menghampiri.
"Saya sudah melaut semalam dan saya perlu istirahat", sambut sang nelayan dengan senyuman.
"Kalau bapak malaut lagi, bapak akan memperoleh lebih banyak ikan", saran sang pengusaha sambil menunjuk ke arah laut.
"Lalu ?", balas sang nelayan dengan tenang.
"Bapak bisa mengumpulkan uang lebih banyak untuk membeli sebuah perahu", sahut sang pengusaha.
"Lalu ?", balas sang nelayan kembali.
"Dengan perahu itu, bapak tidak perlu lagi menyetorkan sebagian keuntungan bapak kepada pemilik perahu", tukas sang pengusaha.
"Lalu ?", balas sang nelayan sembari membetulkan topi jeraminya.
"Bapak bisa mengumpulkan lebih banyak lagi uang untuk membeli perahu kedua", ucap sang pengusaha dengan bersemangat.
"Lalu ?", balas sang nelayan dengan senyuman.
"Dengan dua perahu, bapak bisa menghasilkan lebih banyak uang dan membeli perahu ketiga, perahu keempat, kelima dan seterusnya", dengan bersemangat sang pengusaha menjelaskan.
"Lalu ?", balas sang nelayan dengan senyum yang bertambah lebar.
"Jika perahu bapak sudah banyak, bapak bisa menyewakannya pada nelayan lain sehingga bapak tidak perlu lagi melaut", sang pengusaha membalas dengan sedikit tertawa.
"Lalu ?", sang nelayan kembali menyahut sembari membenahi posisi santainya.
"Bapak bisa hidup tenang dan bersantai", ujar sang pengusaha dengan keyakina bahwa idenya akan diterima oleh sang nelayan.
Dengan santai, nelayan tersebut tersenyum dan berkata, "Menurut bapak, apa yang sedang saya lakukan sekarang?"
Gua menganggap orang terlalu membesar2 kan cerita ini. Soalnya, ini sebenarnya cerita untuk orang yang malas. Ok, they have the same
goal, bersantai, tapi kualitas santai mereka jauh berbeda, "To know the pleasure we must know the pain". Nelayan, tidak akan menghargai
waktu santainya seperti sang pengusaha hargai.
Just like I do, I know how good Lembang is after I live in Jakarta. Before that, I felt Lembang was so boring. I just realized, Lembang and Bandung are so great, no wonder
Jakartanians(people live in Jakarta) go to Bandung every weekend and make traffic everywhere.
Another thing, sang pengusaha dapat berbagi kesantaian-nya dengan keluarganya. Sedang kan sang nelayan, meskipun dia santai, bagaimana keluarganya,
mereka juga dapat menikmati kemalasan seperti si nelayan itu, mereka juga memiliki kebutuhan lain. Mereka pasti punya pikiran, "Our family can do more than others".
Sebenarnya yang kedua ini tidak terlalu penting selama seluruh keluarga bisa saling menerima gaya hidup sang ayah (sang pengusaha atau si nelayan).
Apa mereka bisa? Sometimes they need cellphone (supir angkot aja punya HP), baju baru waktu lebaran, sekolah di tempat bagus (no doubt this one costs a lot), wisata bersama keluarga,
help families and relations, hobbies, buy medicines, and self actualization. "Money is not everything, but everything needs money". If you don't want this, than have no family,
don't merry anyone, and live just like the fisherman does. Jangan menyebarkan bibit kemiskinan.
Suatu kali seorang pengusaha sedang berlibur ke sebuah kampung nelayan, ia merasa terganggu saat melihat seorang nelayan sedang bersantai dibawah pohon.
"Pak, mengapa bapak tidak melaut ?", tanya pengusaha itu seraya menghampiri.
"Saya sudah melaut semalam dan saya perlu istirahat", sambut sang nelayan dengan senyuman.
"Kalau bapak malaut lagi, bapak akan memperoleh lebih banyak ikan", saran sang pengusaha sambil menunjuk ke arah laut.
"Lalu ?", balas sang nelayan dengan tenang.
"Bapak bisa mengumpulkan uang lebih banyak untuk membeli sebuah perahu", sahut sang pengusaha.
"Lalu ?", balas sang nelayan kembali.
"Dengan perahu itu, bapak tidak perlu lagi menyetorkan sebagian keuntungan bapak kepada pemilik perahu", tukas sang pengusaha.
"Lalu ?", balas sang nelayan sembari membetulkan topi jeraminya.
"Bapak bisa mengumpulkan lebih banyak lagi uang untuk membeli perahu kedua", ucap sang pengusaha dengan bersemangat.
"Lalu ?", balas sang nelayan dengan senyuman.
"Dengan dua perahu, bapak bisa menghasilkan lebih banyak uang dan membeli perahu ketiga, perahu keempat, kelima dan seterusnya", dengan bersemangat sang pengusaha menjelaskan.
"Lalu ?", balas sang nelayan dengan senyum yang bertambah lebar.
"Jika perahu bapak sudah banyak, bapak bisa menyewakannya pada nelayan lain sehingga bapak tidak perlu lagi melaut", sang pengusaha membalas dengan sedikit tertawa.
"Lalu ?", sang nelayan kembali menyahut sembari membenahi posisi santainya.
"Bapak bisa hidup tenang dan bersantai", ujar sang pengusaha dengan keyakina bahwa idenya akan diterima oleh sang nelayan.
Dengan santai, nelayan tersebut tersenyum dan berkata, "Menurut bapak, apa yang sedang saya lakukan sekarang?"
Gua menganggap orang terlalu membesar2 kan cerita ini. Soalnya, ini sebenarnya cerita untuk orang yang malas. Ok, they have the same
goal, bersantai, tapi kualitas santai mereka jauh berbeda, "To know the pleasure we must know the pain". Nelayan, tidak akan menghargai
waktu santainya seperti sang pengusaha hargai.
Just like I do, I know how good Lembang is after I live in Jakarta. Before that, I felt Lembang was so boring. I just realized, Lembang and Bandung are so great, no wonder
Jakartanians(people live in Jakarta) go to Bandung every weekend and make traffic everywhere.
Another thing, sang pengusaha dapat berbagi kesantaian-nya dengan keluarganya. Sedang kan sang nelayan, meskipun dia santai, bagaimana keluarganya,
mereka juga dapat menikmati kemalasan seperti si nelayan itu, mereka juga memiliki kebutuhan lain. Mereka pasti punya pikiran, "Our family can do more than others".
Sebenarnya yang kedua ini tidak terlalu penting selama seluruh keluarga bisa saling menerima gaya hidup sang ayah (sang pengusaha atau si nelayan).
Apa mereka bisa? Sometimes they need cellphone (supir angkot aja punya HP), baju baru waktu lebaran, sekolah di tempat bagus (no doubt this one costs a lot), wisata bersama keluarga,
help families and relations, hobbies, buy medicines, and self actualization. "Money is not everything, but everything needs money". If you don't want this, than have no family,
don't merry anyone, and live just like the fisherman does. Jangan menyebarkan bibit kemiskinan.
Tuesday, 17 February 2009
Automate things with AutoHotKey
AutoHotKey helps us automate things so we can increase our productivity. We can download AutoHotKey
at http://www.autohotkey.com/download/ and install. After installation, create a file with .ahk extension.
Edit the file using text editor and we can start our new AutoHotKey script. We can run the script by doulble
click the files on explorer.
With AutoHotKey we can remap any keys, write down this line:
a:: z
Save and execute the file. After you execute this, everytime you type 'a' it will be recognized as 'z'.
So if you attempt to type 'zaaap' it will become 'zzzzp'.
Another simple example, we can remap keys become shortcut.
^n:: Run Notepad
With this script, we can automatically run notepad by pressing Ctrl+n. '^' symbol represent Ctrl key. This is
the complete list:
^ = Ctrl
+ = Shift
# = Win
! = Alt
* = [wildcards, any above key]
The statement 'Run Notepad' simulates 'Run menu', type 'Notepad', then click 'Ok'.
Another usefull feature of AutoHotKey is as typing tool.
::wtf::What the f**k
This will replace any typing 'wtf' into 'What the f**k' just like autocorrect.
There are still plenty of usefull features that AutoHotKey can do, like moving your mouse cursor using your keyboard,
block some keyboard key, create hotkeys, and others.
These examples can automate your work :
; ----start of code-----
; line in semicolon will be considered as comments
; Shortcut : Win+hotkeys
#g:: Run http://www.google.com
#i:: Run "C:\Program Files\Internet Explorer\iexplore.exe"
#n:: Run "C:\Program Files\Notepad++\notepad++.exe"
#o:: Run "C:\Program Files\Opera\opera.exe"
#v:: Run "C:\Program Files\VideoLAN\VLC\vlc.exe"
#w:: Run "C:\Program Files\Winamp\winamp.exe"
#y:: Run http://www.yahoo.com
; disable some key
; modify CapsLock so you must press Shift+CapsLock to trigger the key it
+CapsLock:: CapsLock
*CapsLock::
; do nothing
Return
; modify ScrollLock so you must press Shift+ScrollLock to trigger the key
+ScrollLock:: ScrollLock
*ScrollLock::
; do nothing
Return
; for autocomplete
::btw::by the way
::wtf::what the f**k
::omg::oh my God!!!!
; ----end of code-----
at http://www.autohotkey.com/download/ and install. After installation, create a file with .ahk extension.
Edit the file using text editor and we can start our new AutoHotKey script. We can run the script by doulble
click the files on explorer.
With AutoHotKey we can remap any keys, write down this line:
a:: z
Save and execute the file. After you execute this, everytime you type 'a' it will be recognized as 'z'.
So if you attempt to type 'zaaap' it will become 'zzzzp'.
Another simple example, we can remap keys become shortcut.
^n:: Run Notepad
With this script, we can automatically run notepad by pressing Ctrl+n. '^' symbol represent Ctrl key. This is
the complete list:
^ = Ctrl
+ = Shift
# = Win
! = Alt
* = [wildcards, any above key]
The statement 'Run Notepad' simulates 'Run menu', type 'Notepad', then click 'Ok'.
Another usefull feature of AutoHotKey is as typing tool.
::wtf::What the f**k
This will replace any typing 'wtf' into 'What the f**k' just like autocorrect.
There are still plenty of usefull features that AutoHotKey can do, like moving your mouse cursor using your keyboard,
block some keyboard key, create hotkeys, and others.
These examples can automate your work :
; ----start of code-----
; line in semicolon will be considered as comments
; Shortcut : Win+hotkeys
#g:: Run http://www.google.com
#i:: Run "C:\Program Files\Internet Explorer\iexplore.exe"
#n:: Run "C:\Program Files\Notepad++\notepad++.exe"
#o:: Run "C:\Program Files\Opera\opera.exe"
#v:: Run "C:\Program Files\VideoLAN\VLC\vlc.exe"
#w:: Run "C:\Program Files\Winamp\winamp.exe"
#y:: Run http://www.yahoo.com
; disable some key
; modify CapsLock so you must press Shift+CapsLock to trigger the key it
+CapsLock:: CapsLock
*CapsLock::
; do nothing
Return
; modify ScrollLock so you must press Shift+ScrollLock to trigger the key
+ScrollLock:: ScrollLock
*ScrollLock::
; do nothing
Return
; for autocomplete
::btw::by the way
::wtf::what the f**k
::omg::oh my God!!!!
; ----end of code-----
Wednesday, 11 February 2009
My name has been taken away....
Nickname gua biasanya monoceros. In any game, or any internet account. Tapi pas buat blog ini lho... kok dah dipake yah... akhirnya ganti deh jadi monoceros85. Because I was born in 1985... T_T so sad....
Why monoceros? monoceros means unicorn in constellation. When I was child, I seek for a nickname. Some names came out like 'Viper', 'Spica', 'Gemini', 'Serpent', or 'Pegasus'. Most of the names taken from name of stars or constellations, because I was so obsessed by Greek ancient legend about gods and any kind of that.
Sometimes people get wrong with 'rhinoceros', because both have similar pronunciation. But 'monoceros' sounds cooler than 'rhinoceros', so please don't take them as the same object, get used to it.
Why monoceros? monoceros means unicorn in constellation. When I was child, I seek for a nickname. Some names came out like 'Viper', 'Spica', 'Gemini', 'Serpent', or 'Pegasus'. Most of the names taken from name of stars or constellations, because I was so obsessed by Greek ancient legend about gods and any kind of that.
Sometimes people get wrong with 'rhinoceros', because both have similar pronunciation. But 'monoceros' sounds cooler than 'rhinoceros', so please don't take them as the same object, get used to it.
Subscribe to:
Posts (Atom)