• Lao-tzu taught that convention was often a nad thing because it interferes with our natural ability to live in harmony with the Tao. For Taoist, the Tao is natural, rather than social.
  • The point of Tao is not to create ideal society, but to achieve oneness with the Tao, “the way”, which is understood as a natural principle.

Visual Studio 2008 : MSCVP90D.dll problem

Same problem MSCVP90D.dll not found, 
went to  “Project | Game Properties | Configuration Properties | C/C++ | Code Generation | Runtime Library”
and set Multi-threaded Debug (/MTd)
did build generated error messages…
then reset
“Project | Game Properties | Configuration Properties | C/C++ | Code Generation | Runtime Library”
Multi-threaded Debug DLL (/MDd)
what it was originally, worked.


i have the same problem and solve it the same way as yours. i set Project|| Properties||Configuration Properties||C/C++||Code Generation||Runtime Library||Multi-threaded Debug (/MTd),and rebuild , debug again ,it works.

Convert karakter ENTER windows ke Linux menggunakan vi

  1. Buka file dengan mode binary

vi test.h -b

  1. Lalu, replace karakter chr13 dengan karakter kosong:


Note: To input the ^M character, press Ctrl-v , and then press Enter or return.

dos2unix nama_file.txt
dos2unix *.*

Kalori Olahraga

Aerobic (-750 kalori /jam)
Basket (-800 kalori /jam)
Bersepeda (-400 kalori /jam)
Dancing (-300 kalori /jam)
Futsal (-800 kalori /jam)
Jogging (-750 kalori /jam)
Berenang (-700 kalori /jam)
Berjalan kaki (-300 kalori /jam

Convert between Unix dan Windows text files

How do I convert between Unix and Windows text files?
The format of Windows and Unix text files differs slightly. In Windows, lines end with both the line feed and carriage return ASCII characters, but Unix uses only a line feed. As a consequence, some Windows applications will not show the line breaks in Unix-format files. Likewise, Unix programs may display the carriage returns in Windows text files with Ctrl-m ( ^M ) characters at the end of each line.
There are many ways to solve this problem. This document provides instructions for using FTP, screen capture, unix2dos and dos2unix, tr, awk, Perl, and vi to do the conversion. To use these utilities, the files you are converting must be on a Unix computer.
Note: In the instructions below, replace unixfile.txt with the name of your Unix file, and replace winfile.txt with the Windows filename..
When using an FTP program to move a text file between Unix and Windows, be sure the file is transferred in ASCII format, so the document is transformed into a text format appropriate for the host. Some FTP programs, especially graphical applications (e.g., Hummingbird FTP), do this automatically. If you are using command line FTP, before you begin the transfer, enter:
Note: You need to use a client that supports secure FTP to transfer files to and from Indiana University’s central systems. For more, see At IU, what SSH/SFTP clients are supported and where can I get them?
dos2unix and unix2dos
On Solaris systems, the utilities dos2unix and unix2dos are available for converting files from the Unix command line.
To convert a Windows file to a Unix file, enter:
dos2unix winfile.txt unixfile.txt
To convert a Unix file to Windows, enter:
unix2dos unixfile.txt winfile.txt
Note: These utilities are available only on Solaris systems. To determine which variety of Unix is running on your computer, see In Unix, how can I display information about the operating system?
You can use tr to remove all carriage returns and Ctrl-z ( ^Z ) characters from a Windows file:
tr -d ‘\15\32‘ < winfile.txt > unixfile.txt
However, you cannot use tr to convert a document from Unix format to Windows.
To use awk to convert a Windows file to Unix, enter:
awk ‘{ sub(“\r$”, “”); print }’ winfile.txt > unixfile.txt
To convert a Unix file to Windows, enter:
awk ‘sub(“$”, “\r”)’ unixfile.txt > winfile.txt
Older versions of awk do not include the sub function. In such cases, use the same command, but replace awk with gawk or nawk.
To convert a Windows text file to a Unix text file using Perl, enter:
perl -p -e ‘s/\r$//’ < winfile.txt > unixfile.txt
To convert from a Unix text file to a Windows text file, enter:
perl -p -e ‘s/\n/\r\n/’ < unixfile.txt > winfile.txt
You must use single quotation marks in either command line. This prevents your shell from trying to evaluate anything inside.
In vi, you can remove carriage return ( ^M ) characters with the following command:
Note: To input the ^M character, press Ctrl-v , and then press Enter or return.
In vim, use :set ff=unix to convert to Unix; use :set ff=dos to convert to Windows.

Stephen Covey in Nutshell

The seven habits

Be proactive:Taking responsibility for every aspect of your life is being proactive. After this, initiative and action will follow. Covey says this separates us from animals, as we have the ability to detach and observe ourselves. We can think about our thoughts, and this attribute gives us the power not to be affected by circumstances. At the opposite end, being reactive is blaming other people and circumstances, for obstacles or problems.

• Begin with the end in mind: This is about setting long-term goals. Covey recommends formulating a ‘personal vision statement’ to document one’s perception of one’s own vision in life, with visualisation as an important tool to develop this. This is also true for, and applicable to organisational vision statements. They can be more effective if developed with the support of all members of an organisation rather than prescribed.

Put first things first: This is about developing a framework for prioritising work. Tasks that are not urgent, but are in fact, very important, should not be sacrificed for short-term goals. Delegation is an important part of time management. Successful delegation, according to Covey, focuses on results and benchmarks, agreed upon in advance, rather than prescribed as detailed work plans.

• Think win-win: This is an attitude, which results in mutually beneficial solutions that satisfy the needs of oneself, or, in the case of a conflict, both parties involved. Covey also warns of the consequences of thinking win-lose, or lose-lose.

• Seek to understand others first, and then seek to be understood by others: Giving advice, before having understood a person, and his situation, generally results in rejection of the advice. A monologue of the story of your life, will decrease the chance of establishing a working communication.

• Synergise: This is a way of working in teams by applying effective problem solving, collaborative decision making, valuing differences, building on divergent strengths, encouraging creative collaboration, and embracing innovation. When synergy is pursued as a habit, the result of the teamwork will exceed the sum of what each of the members could have achieved individually. In short, it is the principle of “The whole is greater than the sum of its parts.”

• Sharpen the saw: This focuses on expressing all four motivations – physical (exercise, nutrition, stress management), mental (reading, writing, visualising, planning), social/emotional (service, empathy, synergy and intrinsic security), and spiritual (value clarification and commitment, study and meditation).

In 1991, I bought Covey’s book, went through it, and put it on my bookshelf. I confess that I did not practice it. Now, almost 18 years later, I picked up his chapter on Renewal and read it seriously. So, what exactly is Renewal?

For Covey, it is Habit 7 or taking the time to ‘sharpen the saw’. It is preserving, and enhancing the greatest asset we have – us. It is renewing the four dimensions of our nature – physical, spiritual, mental and social/emotional. This is the single most powerful investment we can make in life – investment in ourselves, in the only instrument we have to deal with life, and to contribute. Covey calls it ‘sharpening the saw’ or expressing all four motivations, exercising all four dimensions of our nature regularly and consistently, in wise and balanced ways.

The four dimensions
I like what writer Rumer Godden says, “Everyone is a house with four rooms: Physical, mental, emotional and spiritual. Unless we go into every room every day, even if only to keep it aired, we are not a complete person.” I can relate to this.

Since I became an adult, it has been difficult for me to go to each room every day, even just to air it. I did not know, there were rooms, the precise nature, and the importance of visiting each one, even if to air it. I was in one room or another. While I enjoyed being in the room I was in at that time, I knew I was missing something. It took me a while to get to this point. While there were signs – poor physical and mental health, unhappy relationships – I could not make the connection. I attempted renewal (as I reflect back now) in small ways. About ten years ago, I realised that I needed serious and balanced intervention. How do we renew ourselves in the four dimensions?

According to Covey:

• Renewing the physical dimension involves caring effectively for our physical body, by eating the right foods, getting sufficient rest and relaxation, and exercising on a regular basis. A good exercise progamme, is one that you can do in your home, which will build your body in three areas: endurance, flexibility and strength. Endurance comes with aerobic exercise – the ability of your heart to pump blood through your body – with rapid walking, running, biking, swimming and jogging. Flexibility comes through stretching – yoga and simple exercises to stretch various muscles. Strength comes from muscle-resistant exercises – push-ups, sit-ups and simple calisthenics.

• Renewing the spiritual dimension is providing leadership to our lives. It is our core, our centre, and commitment to our value systems. People find various things useful to them – prayer, meditation, reading a good book, listening to music that elevates them, communing with nature.

• Renewing the mental dimension is learning to be a lifelong learner. Reading and writing, contribute to organising and planning – beginning with the end in mind. We need to spend one hour a day every day on this.
• Renewing the social/emotional dimension is centred on the principles of interpersonal leadership, empathetic communication, and creative cooperation. The social and emotional dimensions are tied together. Our emotional life is primarily, but not exclusively, developed out of and manifested, in our relationships with others. Success does not come easy, as it is not a product of intellect. It is primarily a matter of emotion highly related to our sense of personal security.

Intrinsic or personal security comes from within, from our principles. It comes from living a life of integrity in which our daily habits reflect our deepest values. It comes from effective interdependent living in which we authentically, creatively, cooperatively interact with people, and experience these interdependent habits. It comes from service, or helping people in a meaningful way. This could be work or anonymous service, where influence, not recognition becomes the motive.

The self-renewal process must include balanced renewal in all four dimensions of our nature: physical, spiritual, mental and emotional. Neglect of any area affects the others negatively. What was I doing wrong before I moved towards getting it right? I was eating healthy since the mid ’70s, exercising, swimming, doing yoga, had a good circle of friends, and had work that made me happy. I used to read, write, listen to music, take photographs, and commune with nature. What then, was missing from my life?

I had not made peace with unresolved issues and conflicts – parents, siblings, guilt at being away from my parents when they needed me, and people. I did everything, but not deliberately or mindfully. I tended to be more reactive than proactive. I was there, but not there. When I hurt, I pretended I did not. I smiled when I felt like crying. When I cried, it was alone. I had a hard shell around a rather soft interior, which I did not want people to see. Indeed, even I did not want myself to see it. Over a period, I learned that what I needed was balanced renewal. What is this?

Balanced renewal is optimally synergetic. Covey points out that improvement in one habit synergetically (combined effort being greater than the parts) increases our ability to live the rest. For example, the more proactive we are (Habit 1), the more effectively we can exercise personal leadership (Habit 2), and management (Habit 3) in our life. The more effectively we manage our life (Habit 3), the more renewing activities you can do (Habit 7). The more we seek first to understand (Habit 5), the more effectively we are in the synergetic Win/Win solutions (Habits 4 and 6). The more we improve in any of the habits that led to independence (Habits 1, 2, 3), the more effective we are in interdependent situations (Habits 4, 5, 6). Renewal (Habit 7) is the process of renewing all the habits.

Very often, I have felt that I cannot take time out for renewal as I have responsibilities in the economic sphere. Nevertheless, I soon learned that my economic security does not lie in my job or career; it lies in my power to produce – to think, learn, create and adapt. Over the last decade, I have made a commitment that my renewal lies in daily activities that keep me in good physical shape (the tread mill, walking and swimming). I select activities in my personal life such as writing, reading, learning a new skill (for me learning to upload photos into the computer, organise, share and use them). I write – almost daily – a blog on a site. I keep track of my family and friends, and reach out to people I do not know once or twice a week. I try to do water colouring several times a month, and take a trip to renew myself (to the hills) once in two months.

In the final analysis, renewal is the principle and process, which empowers us to move on an upward spiral of growth, change, and continuous improvement. Covey speaks of one more aspect of renewal, which is essential to this movement upwards, the conscience. I call this ‘listening to my voice’, and I have attended to all such voices, in my adult life. Training and education of the conscience requires great concentration, balanced discipline, and consistently honest living. It is about living in harmony with ‘our little voice’. 

So, are you ready to sharpen the saw, and renew yourself in the house with four rooms?

Install Ulang Delphi 7

  1. Install, delphi, seperti biasa.
  2. Jalankan delphi untuk pertama kalinya, untuk memancing creating registry.
  3. Install INDY 10 dari : G:\D\My\Source\DELPHI\DELPHI7\Indy10\ :
    • Remove package bawaan indy (indy 9):
    • Hapus semua file id*.dcu: c:\Program Files\Borland\Delphi7\Lib\
    • Hapus semua file id*.dcu : c:\Program Files\Borland\Delphi7\Lib\Debug\
    • Hapus semua file di : c:\Program Files\Borland\Delphi7\Source\Indy\
    • JANGAN HAPUS file: IndyCore70.bpl, IndyProtocols70.bpl, IndySystem70.bpl di : C:\Windows\System32
    • Install indy10 dari G:\D\My\Source\DELPHI\DELPHI7\Indy10\ :
  4. Install ABSOLUTE: D:\My\Source\DELPHI\Absolute.Database.Component.for.Delphi7.v4.88.Single-User.Edit.Incl.SourceCode\
  5. Install DEV-EXPRESS.. Semuanya….
  6. Install TNT dari : G:\D\My\Source\DELPHI\TNT\Delphi\Pkg\
  7. Install TURBO POWER LOCK: G:\D\My\Source\DELPHI\TurboPowerLockBox\packages\
  8. Install ZIPFORGE: G:\D\My\Source\DELPHI\ZipForge\install.exe
  9. Install VISPDF : G:\D\My\Source\DELPHI\VisPDFEval.zip\VISPDFEVAL.EXE
  10. Eksekusi registry file: G:\D\My\Source\DELPHI\DELPHI7\DISC1\Reg20110206.reg
  11. Copy-kan folder: D:\MY\DELPHI
  12. Copy-khan file modified: “dbxconnections.ini” dan “Dbxdrivers.ini” ke folder C:\Program Files\Common Files\Borland Shared\DBExpress.
  13. Jalankan UpdateMyLib.bat di ..DELPHI\MY-DPR\MyLibSource
  14. Agar help system delphi berjalan di windows 7, Install WinHlp32 from http://go.microsoft.com/fwlink/?LinkId=166421

Netbeans Configuration using mysql, boost & mysqlpp

netbeans configuration untuk compile dan link menggunakan library mysql, mysql++, boost:

C++ Compiler – Include Directories:

Linker – Libraries:

How To: Konversi ebook kindle ke iBooks

Format file ebook kindle adalah ‘AZW’. Sedangkan format iBooks adalah ‘EPUB’.

File format ‘AZW’ bisa dibaca oleh perangkat kindle atau aplikasi kindle (baik PC, MAC, iPhone atau iPad).
Sedangkan, format EPUB, bisa dibaca oleh aplikasi iBooks iPhone atau iPad.

Saya lebih menyukai membaca buku menggunakan iBooks iPhone dan iPad, dikarenakan applikasi iBooks mempunyai tampilan yang jauh lebih memikat daripada aplikasi kindle. Permasalahannya: buku-buku yang di jual di App Store-nya apple, selalu lebih mahal daripada harga buku-buku yang dijual di amazon. Lagi pula, koleksi buku di App Store, jauh lebih sedikit daripada yang tersedia di amazon.

Jadi, solusinya: beli buku di amazon, lalu meng-konversi-nya ke format iBooks. Berikut adalah prosedurnya:

A. Menyiapkan file kindle (AZW).

  1. Lakukan pembelian buku di amazon, seperti biasa.
  2. Di web amazon, masuk lah ke menu ‘Your Account’ – ‘Manage Your Kindle’; – ‘Action’ – ‘Deliver to ….’;
  3. Jalankan aplikasi kindle di komputer anda. Pilih menu: ‘Tools’ – ‘Check and Sync your new items’;
  4. Bukalah folder data kindle di komputer anda, misalnya: /username/Library/Applications Support/Kindle.
  5. File buku yang baru anda beli, tersimpan di folder ‘My Kindle Contents’, ber-extension azw. Copy file tersebut, simpan di tempat aman.

B. Menyiapkan aplikasi konversi.

  1. Download aplikasi ‘Calibre’ dari ‘http://calibre-ebook.com/’.
  2. Cari dan download plugins calibre untuk me-remove ‘DRM’ (kode proteksi) dari file AZW. (kata kunci: ‘Calibre Plugins DeDRM’).
  3. Install plugins. (Preferences – Plugins – Loag Plugin From File).
  4. Dari menu utama Calibre, pilih menu ‘Add books’. Pilih file ‘azw’ yang akan di-konversi.
  5. Setelah buku tersebut masuk di library Calibe: pilih buku tersebut, lalu click ‘Convert books’.
  6. Pastikan Output Format, adalah EPUB.
  7. Done. Selanjutnya: mengirim file tersebut ke device yang anda sukai, misalnya iPhone atau iPad.

Krusader : meng-aktif-kan terminal gnome di ‘current folder’

Krusader, di-develop di lingkungan KDE.

  • Jadi, bila dijalankan di ubuntu (Gnome), maka ada perubahan setting, khususnya ketika menjalankan terminal.
  • Settings – Configure Krusader – General – Terminal:
  • Ganti dengan: gnome-terminal —working-directory %d