Skip to main content

Posts

Showing posts from January, 2006

Happy Birthday to My Dad!!

Today, January 25th, is my dad's birthday. To my dad: I wish you all the very best. You're always my hero and my model. I apologize you for any wrongful things I did that make you feel worried or make you feel sad. I wish you a very wonderful birthday, and good health for the years to come. Happy birthday to you! Keywords: birthdays , family

Serendipity: Interesting Quote on Criticism

I was googling for a solution to my Java-C socket communication problem when I came across this thread on DevX.com: DevX.com Forums - Put me out of my missery.. Sockets and BufferedWriter This quote from the poster Graham really touches! Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, and if they get mad, you are a mile away and you have their shoes. Keywords: quotes , criticism

Problem: mpirun / mpiexec calls from Java Runtime.exec() Fails on Large MPI Problems

This is a follow-up to my earlier post: Question: How to Launch an MPI Parallel Program Programmatically An Iceberg Problem I've been stuck on my MPI-Java integration experiment for more than a week and so far haven't found a way out of this problem. My problem is quite similar to this posting on the comp.parallel.mpi newsgroup. Unfortunately, the thread was first posted in the year 2001 and, almost five years later, no one has answered the question. Let me explain my situation: I want to convert my parallel code, which is written in C and is based on the MPICH and PETSc parallel-computing libraries, into a Web service. From my point of view, three solutions are available: The first one is to use Apache Axis C++ Web Services library to extend the existing code into a Web service. The second one is to leave the parallel code as is and then develop a Java Web service that acts a proxy to execute the parallel code via a Java Runtime.exec() method call. The third one is to use t

Linux: Starting Emacs in Text-mode under X Window

I always wondered how to force emacs text editor to start in the non-graphical user-interface mode. I just ignored my desire in the past but I really want to do it today. Spending a few seconds Googling and guessing at Google's excerpts of the content, here is how to do it: Open a Terminal console, and, at the shell prompt: emacs -nw filename I guess the -nw option stands for "no window". Ref: Linux User Group Singapore - Using Bash shell for newbies Episode 2 Keywords: emacs , linux , text-based , interface

iPod Owners: Petition to Apple for a Thai-language Support

To support Thai language in iPod. Petition A group of iPod users in Thailand has started a petition for Apple Computer, Inc. to add Thai language to the iPods. Apple has significantly increased its marketing effort in Thailand, as can be seen by the iPod being sold in almost every shopping malls in Bangkok. Thai language support so far has been provided by a hacked version of the firmware downloadable "free-of-charge" from Pubble's website . I know Pubble personally and feel this is an unfair practice by Apple Computer and the iPod vendors. Well, if you can read Thai and want Apple to support the language, it could we worthwhile to sign the petition here . Keywords: ipod , thai-language , petitions

Ubuntu Linux: Kernel Development Package

Thru Ubuntu automatic updates notification, I upgraded the kernel of my Ubuntu Linux 5.1 VMware virtual machine this morning and, all of a sudden, my VMware shared folders disappeared from the /mnt/hgfs directory. I guessed it could be that the kernel upgrade package overwrote some essential file of VMware Tools so I went ahead reinstalling VMware Tools according to the instruction here . Things went fine until I was reported that this version of kernel (is too new and) is not supported by the installer. The installer then asked for a path of the kernel source files. I didn't install a kernel development package and didn't really have enough patience to browse thru the Ubuntu package repository to find a proper package to install. After half an hour of trial-and-error plus Google search, from this JustLinux.com posting , here is how to install the latest kernel source code: Logged on as root , apt-get install linux-headers-`uname -r` Note the grave-accent character, not an a

Ubuntu Linux: Switching between X Window Graphical Interface and Text-based Interface at Boot Time

I was using Red Hat Linux a lot back in the year 2000 and remember that if I want to switch the user interface at boot time from a GUI mode to a text mode I would edit the file /etc/inittab and change the default run-level from 5 down to 3 , as documented here . I want to do the same thing in Ubuntu Linux 5.1 but it doesn't work. Spending some time googling, here is how to do it in Ubuntu: In terminal, logged in as root : To switch from GUI interface to text-based interface: update-rc.d -f gdm remove To switch back from text-based interface to GUI interface: update-rc.d -f gdm defaults Reference: Arstechnica.com Forum Keywords: ubuntu-linux , configuration

Padonc's "Bought from Mae Hong Son" T-shirts -- Interesting Souvenir from Mae Hong Son

Padonc's "Bought from Mae Hong Son" T-shirts -- Interesting Souvenir from Mae Hong Son The "I love New York" t-shirt and the series of souvenir was one of my impressive memory from my previous trips to New York City. I got this same kind of impression when I was browsing by the shops by the Jong Kam Walking Street in the city of Mae Hong Son in the second night of the trip. I didn't look at the seller when I caught the sight of these T-shirts. The seller greeted me and, surprisingly, she was P'Kwan, my senior alumni from Chulalongkorn University, who lives in Mae Hong Son and gave me a warm welcome when my family and I went for a dinner at Fern Restaurant in Mae Hong Son town the other night. Note: Pi or P' (its abbreviation) is a Thai word to call an elder sister or brother. Here are the pictures: P'Kwan and Her Shop The T-shirts P'Kwan and the Shop P'Kay, P'Kwan's Husband, at Another Shop Keywords: trips , mae-hong-son , thai

New Year 2006 Trip to Mae Hong Son, Thailand

I was on a trip to Northern Thailand with my family during December 28 - 31, 2004. The trip was very nice and here are some of the pictures I took with my Nikon D70 digital SLR camera and the Treo 600 built-in camera. You can click on a picture to see an enlarged version. Happy New Year 2006!! Day 1: BKK-HGN Flight via PB Air Wat Prathat Doi Gong Mu Portrait at Wat Prathat Doi Gong Mu Wat Jong Klang Family Portrait at Wat Jong Klang Day 2: Portrait by the Highway Scenery at Pang-ma-pa Rest Area Mae Hong Son Sticky-rice Dessert, Jong Kam Pond Walking Street My Younger Brother and Wat Jong Klang Temple The Night Market Day 3: At Ruk Thai Village, a Chinese community at the Burmese border, Mae Hong Son Variety of Tea at Ruk Thai Village Huay Sua Thao Long-neck Karen Village Long-neck Karen by the Fire Back to the Jong Kam Pond Walking Street Day 4: Internet Kiosk, Mae Hong Son Airport Portrait at the Airport The Transit in Chiangmai Keywords: trips , mae-hong-son , thailand