Saturday, June 28, 2008

Birthday Gifts

This year's birthday, although I was away, but I still received quite a lot of well wishes through friendster, or sms's. I believe if I were online during that period, I would have received even more (you see then only you remember?)

Nevertheless I also received some very nice gifts from friends. One from Mr. Snail, one from my Filipino friend EM, and another one from my Burmese friend Myo.


The ultra good looking Cooler-Master laptop cooler from Mr. Snail, cute nodding monkey decoration from Myo, and a steel parker ball-point pen from EM

Here I would like to thank all those who remember my birthday. :D

Friday, June 27, 2008

Remote Desktop and VNC in OpenSolaris

After gone for holiday for sometime, I am back to OpenSolaris.

OpenSolaris has Remote Desktop (RD) pre-installed, however RD has its constraints: someone at the local console can see exactly what the remote user is doing, and vice versa. This is sometimes not desirable. For example I have my Solaris box sitting in lab while my cubicle is somewhere else, I don't wish to let everyone in the lab to see what I am doing at my box remotely. Even though I can shut-off or even remove the local console, RD still is not a good solution for remote access. Luckily, Virtual Network Connection (VNC) fits my purposes, though there are some work involved which I shall discuss below.

My set up is as follows: in lab the OpenSolaris box has a hostname of 'Solaris', while in cubicle a Linux box named 'Ubuntu'.

  1. First of all, enable the default Remote Desktop at Solaris. Enabling RD serves two purposes: test the box's network connectivity, and RD is useful for subsequent troubleshooting of the VNC setup. I shall skip RD setup in this post.
  2. Once RD is up and running, goto Solaris and invoke System->Administration->Package Manager. Type 'vnc' in the search box and you should see two packages: One is vncviewer, another is vncserver. Install both.
  3. At command line, run vncserver as follows:

  4. vncserver

    If this is your first time running vncserver, vncserver will ask you to supply a password, this is the password to access your VNC session only, therefore for security purpose, it is recommended not to use the same password as your current login account. The following is the output from a session running at my Ubuntu machine. Output from OpenSolaris will be similar. Observe the output is in the form of [hostname]:[number]. The number identifies your session number, and yes, you can have more than one sessions running at the same time.

    You will require a password to access your desktops.

    Password:
    Verify:

    New 'ubuntu:1 (chai)' desktop is ubuntu:1

    Creating default startup script /home/chai/.vnc/xstartup
    Starting applications specified in /home/chai/.vnc/xstartup
    Log file is /home/chai/.vnc/ubuntu:1.log


  5. To access the VNC sessions at Solaris, from Ubuntu, I use Vinagre, a VNC viewer for GNOME.

  6. The last piece of hurdle we need to clear is on running Gnome desktop under VNC. By default the VNC is configured to run TWM, a fine desktop manager, albeit not as pretty as Gnome. To accomplish this mission, we will edit xstartup under /.vnc (note the period in front of 'v')
  7. Comment out the following line by adding a hash sign (#) in front

    twm &


    The commented out line will look like:

    #twm &


  8. Add the following lines in the xstartup

    unset SESSION_MANAGER
    gnome-session &


    Whenever Gnome (or other session managers like KDE) runs, it will set the variable SESSION_MANAGER, and by default Gnome will not run when another session manager is active. We unset this variable to circumvent the check.
  9. Finally, to end a VNC session:

    vncserver -kill :[session number]

    In our case, the correct command will be

    vncserver -kill :1

Monday, June 23, 2008

Back into Action

I know something has changed, but I don't know what it is.

After my Europe trip, I can feel my perspectives on the world have changed, but though as clear as they seem, I fail to pin-point them.

These two weeks could have been spent like usual in office and doing things repetitively and hence, gaining zero information. I am glad I made the decision to poke my head out to see the world and feel the entropy, with added benefit of spending time with my parents.

You may be curious on what exactly I mean. Allow me to give you some details I observed in this trip. Here I can't give you a whole lot of earth-breaking observations, but I am confident those pieces of information are integral parts of a bigger picture, which I strive to decipher.

On Dealing with People:
People in different parts of world tend to interact in a specific way. I found that in front of Americans, you better don't smile or laugh for no reason, or they will think they have screwed up some how and you are laughing at them. However British people are similar to Chinese, using smiles to signify friendliness, and 'that-is-okay'ness.

Minor technicalities aside, everybody likes to be treated with dignity and fairness. A little bit of consideration and politeness do help a lot no matter where you go (but make sure your gestures are being interpreted correctly!!) If in doubt, lay low and observe how others behave. Although sometimes what everybody does may not be the correct thing, it is a very good first step. Once you have started, let your intuition and common sense guide you.

Behaviors in Subways:
I will compare and contrast three places: Paris, London, and Singapore

Parisians: they like to read and therefore the train tends to be more quiet. They dress in the most presentable way also. This is subjective, of course.

Londoners: A lot of them dress in a more casual way and some of them border on shabbiness. A lot of people read newspaper (because a lot of those papers are free anyway). The trains are dirty with a lot of trashes which shows they are not the most civic-minded. Some people just talk loudly or/and let their children to be nuisances.

Singaporeans: The trains are clean, which most probably due to the stiff fine in place. People tend to read, but not a lot, and I suspect most of them not Singaporeans. Inside the trains usually it is relatively quiet and Singapore train is the place I see a lot of PSPs (Playstation Portable).

Just some random thoughts so far :)

Sunday, June 08, 2008

In search of ubiquitous computing devices

i said i am away to travel. this statement was almost true, except i just discovered my p1i indeed can go online as well.

there i am, sitting in changi airport and blog with a phone.

i guess i will miss you all. but fear not, thanks to modern technology, cuppa is most probably to blog on the go. only if i can live with the small screen, and the carpal tunnel syndrome inducing small keyboard.

Saturday, June 07, 2008

Leaving on a Jet Plane and Fooled by Randomness

I confess, the title is misleading, because it consists of (kind of) unrelated items.

First Cuppa is having his holiday with his parents for 2 weeks and will be back in late June. I have deferred this holiday for years and until early this year, I made up my mind and gave a go to the plan, ignoring all other issues on hand. It seems a Just Do It approach is mostly correct, and I will take this break to ponder upon if I should Just-Do-It on other areas of my life as well.

I know you gonna miss Cuppa, so I will leave you with a top ten list by Nassim Taleb for your reading pleasure. Although I don't agree on all the list items, I do think they are interesting and serve as good stuff to think about.

Taleb is pretty well-known in the quantitative finance analysis and derivative trading circles. From my limited knowledge, he has been an avid advocate of the concept that randomness cannot be predicted, neither randomness can be modeled and thus managed. His theory has obviously irked people who do risk management and risk modeling for a living. If Taleb was right, then those people will lose their jobs and go wash dishes or toilets.

Taleb attains celebrity status after his book "The Black Swan: The Impact of the Highly Improbable" was introduced just slightly earlier than the string of events which more or less match what he describes in the book.

Events like sub-prime crisis, delinquent trader, sky-rocketing fuel prices, natural disasters in various countries had literally shook the whole world. They all share similar traits of being highly-improbable, highly unpredictable, but darn high impact. Some people may say since fossil fuel is non-renewable, and therefore its price hike should be of no surprise. Well I do agree in principle this argument, but look at the world now, how many companies, or even countries are well-prepared??

Some info about him is here.

Taleb's top life tips

1 Scepticism is effortful and costly. It is better to be sceptical about matters of large consequences, and be imperfect, foolish and human in the small and the aesthetic.

2 Go to parties. You can’t even start to know what you may find on the envelope of serendipity. If you suffer from agoraphobia, send colleagues.

3 It’s not a good idea to take a forecast from someone wearing a tie. If possible, tease people who take themselves and their knowledge too seriously.

4 Wear your best for your execution and stand dignified. Your last recourse against randomness is how you act — if you can’t control outcomes, you can control the elegance of your behaviour. You will always have the last word.

5 Don’t disturb complicated systems that have been around for a very long time. We don’t understand their logic. Don’t pollute the planet. Leave it the way we found it, regardless of scientific ‘evidence’.

6 Learn to fail with pride — and do so fast and cleanly. Maximise trial and error — by mastering the error part.

7 Avoid losers. If you hear someone use the words ‘impossible’, ‘never’, ‘too difficult’ too often, drop him or her from your social network. Never take ‘no’ for an answer (conversely, take most ‘yeses’ as ‘most probably’).

8 Don’t read newspapers for the news (just for the gossip and, of course, profiles of authors). The best filter to know if the news matters is if you hear it in cafes, restaurants... or (again) parties.

9 Hard work will get you a professorship or a BMW. You need both work and luck for a Booker, a Nobel or a private jet.

10 Answer e-mails from junior people before more senior ones. Junior people have further to go and tend to remember who slighted them.

Wednesday, June 04, 2008

Why Sun Has Potential

Sun Microsystems (Nasdaq: Java) should be quite a familiar name to techies, at least to those who are around my age.

Long long time ago when Linux was immature and M$ was shitty, Sun computer's Unix heritage and the Ultra-Sparc architecture at one time was synonymous to high computing power and solid performance.

Unfortunately, the past years Sun was not paranoid enough to sense how the market landscape has been changing: Moore's Law charges forward, and some OSes have advanced enough to be suitable for public consumption (what get in my mind are, in no particular order, Linux, BSD series of Unix including OS X, and Windows XP. Though I am no big fan of M$, but honestly I must admit Windows XP, up until SP2, is a pretty decent and usable OS now)

Sun got back to my radar when it introduced its open-source Niagara 2 processor. At that time I thought it was a publicity gimmick, because come on, how many people will and can manufacture processor in this world? Hacking processor source code for fun anyone? Not me.

Then Sun introduced the OpenSolaris with the ultra sexy ZFS. The development is getting more and more interesting when Sun acquires MySQL. Now Sun has in hand an impressive system portfolio which consists of processors, OS with fail-safe file system, and a database.

With the patents it currently holds, it is not likely those technologies will be implemented in competing products. To me, it seems Sun has the potential to be the Apple in the high margin, lucrative server market. The potential lies in a total solution for customers. Right until now, there is no single company that provides an integrated solution from chips to database.

There sits a huge market for servers. The tricky question is how Sun is gonna to monetize the products?

I must point out there is still a long way before Sun can build an eco-system that brings in profit. Cuppa's few pointers for Sun:
  • Make an impeccable system with all hardware and software components play well with each other. Apple is a good example
  • Maximize the adoption of its platforms so that there is a critical mass of people who are comfortable in using Solaris
  • Price the product competitively, especially in the early years where not many people have used Sun products before
Finally, will I buy its share now? I will say no, because I foresee there will be turbulences ahead. It will need sometime to digest the MySQL acquisition. However if I were to start a company, I will get a Sun server/workstation if its price is sane enough.

With the current price of $12.41 and PE ratio of 16.90, I think there will be more downward movement. I feel a PE ratio of 12 is more reasonable, which translates to a price of $8.81.

Recommendation: Wait and See if you wanna buy its shares