End of 2008 post: the summary

What happen to the whole year:

  1. My first experience in job interview, 
  2. The second interview ends up getting the job
  3. Which expose me to mainframe, and cobol, a interesting but painful experience
  4. So is the job experience, as the tester. 
  5. Before that I graduated from uni, finally.
  6. Also have a chance to participate as the volunteer of barcamp in malaysia, and foss.my, a big community events
  7. And several mess around me, let’s be merry instead
  8. And learn more and more.

Fun With Linux: bootchart

It is another day where I have a little adventure with my new toy, my eeepc 1000h. What I don’t satisfied is the boot time, I got around 40 second on ubuntu on ubuntu using the adam’s kernel.

So before to optimize, we need to investigate.

Bootchart is a way to show the boot process, in the end of the boot, you will get a chart, that shows the process.

To install on ubuntu

sudo apt-get install bootchart

The chart generated from the boot process, is stored in /var/log/bootchart. It is a png image.

So the result that I get, from my setup

It is one thing to know, now, how to optimise it?

Adventure with eeePc 1000h, using ubuntu 8.10 intrepid.

Got myself a laptop finally, it is a eeepc 1000h, comes with windows xp, the fun part is, I got it slightly cheaper than most, and 2 gig of ram, which added extra, also 2 year warranty, for RM1845. At lowyat.

It is a machine, that comes with windows xp, which I format it. And I install ubuntu on it.

Step 1:
Download ubuntu, then copy to a pendrive, using unetbootin. The instruction is on the page.

Step 2:
Plug in the pendrive, press  ESC key, when you turn on the computer, then select the pendrive, you should be able to boot into ubuntu.

Step 3:
Setup ubuntu, that is straight forward.

Step 4:
Now install the custom kernel. Using array.org kernel. After this, the wireless should be working. And other hardware too, to be honest, didn’t test the camera.

Step 5:
Install the acpi script. Just to make it work nicer.

Step 6:
Now one more thing didn’t work well, the sound is not loud. Download the alsa upgrade script

Step 7:
Install netbook remix.

As you see, I didn’t use anything that is special, just use instruction from the web. And it works well.

Shopping for laptops(FINALLY)

I know, it is late for Christmas, but finally I afford to get a notebook finally.
Now choice, choice, choice and choice.

Requirement for my lappy involve.

  1. Can run linux very well, or rather linux runs on it well. 
  2. Screen must be big enough
  3. Hard disk space big enough for external libraries.
  4. And around RM2000. 
What I have in mind, is eeepc 1000. Considering other option like aspire one, etc. 
Think, Think, Think

My first REXX script


This is my first program written in REXX, it is a scripting language used first on mainframe, now have port for major platform from linux to windows and more. This is basically a Julian to Gregorian date converter. At least or form used in the bank. It took me a day to finish it, by then i spent a lot of time Procrastinating. Don’t just copy it, the formating is wrong


/* REXX */
START:
  /* SAY IS TO PRINT ON SCREEN */
  SAY “PLEASE ENTER THE JULIAN DATE WITH THE SLASH”
  SAY “(DDD/YYYY)”
  /* PULL IS TO GET INPUT */
  PULL PARM
  /* PARSE IS TO GET THE VARIABLE FROM A STRING */
  /* PARM IS THE INPUT OR THE STRING. THE NEW VARIABLE IS DY AND YR */
  /* SPLIT THE PARM INTO DY AND YR, DELIMITED BY “/” */
  PARSE UPPER VAR PARM DY “/” YR
  /* CALL A FUNCTION */
  YR = CHECK_YEAR(YR)
  /* NOT EQUAL IS /= OR \= OR <> */
  IF YERR /= 1 THEN
     IF CHECK_YDAY(DY,YR) /= 1 THEN
      DO
        /* ANOTHER WAY TO CALL A SUBROUTINE */
       CALL CONVERT DY,YR
       /* || IS THE APPEND OPERATOR, APPEND STRING */ 
       SAY CDY||”/”||CMT||”/”||YR||” (DD/MM/YYYY)”
      END
     ELSE
      DO
       SAY “WRONG DAY!!!!”
      END
  ELSE
    SAY “WRONG YEAR!!!!!”
  EXIT
/* THIS IS THE BEGINNING OF THE FUNCTION */
CHECK_LEAP: PROCEDURE
  /* MEANS THE ARGUMENT IS PYR*/
  ARG PYR
  LYR = 0
  /* // IS THE MODULUS OPERATION */
  IF (PYR // 100) = 0 THEN
   DO
    IF (PYR // 400) = 0 THEN
      LYR = 1
    END
  ELSE
   DO
    IF (PYR // 4) = 0 THEN
      LYR = 1
    END
  RETURN LYR
/* ANOTHER FUNCTION */
/* EXPOSE MEANS EXPOSE A VARIABLE IN THIS CASE, YERR */ 
CHECK_YEAR: PROCEDURE EXPOSE YERR
  ARG PYR
  YERR = 1
  IF LENGTH(PYR) = 2 THEN
   DO
    IF PYR > 50 THEN
      PYR = 19||PYR
    ELSE
      PYR = 20||PYR
   YERR = 0
   END
  ELSE
   DO
    IF LENGTH(PYR) = 4 THEN
      YERR = 0
   END
  RETURN PYR
CHECK_YDAY: PROCEDURE
  ARG PDY,PYR
  VDY = 1
  IF PDY > 0 & PDY < (366 + CHECK_LEAP(PYR)) THEN
    VDY = 0
  RETURN VDY
CONVERT: PROCEDURE EXPOSE CDY CMT
  /* THE ARGUMENTS OR PARAMETER IS POSITION ORIENTED */
  ARG PDY,PYR
  /* THIS IS A COMPOUND VARIABLE, ACCESS IS BY STEM.TAIL */
  /* DATE IS STEM, TAIL IS THE NUMBER */
  DATE.1=31;DATE.2=28;DATE.3=31;DATE.4=30
  DATE.5=31;DATE.6=30;DATE.7=31;DATE.8=31
  DATE.9=30;DATE.10=31;DATE.11=30;DATE.12=31
  DATE.2=28+CHECK_LEAP(PYR)
  MONTH = 1
  TDY = PDY
  /* THE LOOP */
  /* BY THE WAY INFINITE LOOP IS “DO FOREVER” */
  DO WHILE DATE.MONTH < TDY
    /* NOTICE THE COMPOUND VARIABLE, AND HOW I USE MONTH AS A TAIL */
    TDY = TDY – DATE.MONTH
    MONTH = MONTH + 1
  END
  CDY=TDY
  CMT=MONTH
  RETURN



My Quest of (web service) Convergence

So my quest of web service. Goes a step further. Somebody among my circle using ping.fm. Which is interesting. Because it finally do something I really need. It have

  1. Post statuses to several of my social network, aka facebook, friendster(which I rarely use), etc(Blame on my friends) and not to mention identi.ca and twitter
  2. Actually update my old blog
  3. Not to mention my links to delicious, and announce it to the world
  4. of course photo from flickr.
  5. and let me do it from a chat client too.

But there is a problem, Not all service is covered, because now i use picasa web too. But it is ok, it covers almost all that I use. Also it is a updates service, so it is pretty much limited to that. But I can save a lot of time, updating the services that I use.

Was in PC Fair

Today is the time of the year again. Where many shops/company setup booth in KL Convention Center. Where some techie went for bargain. Others, something else. Yup it is PC Fair. And every year I go down. And every year, I bought nothing, and no pictures.

Basically PC Fair is always like the same old stuff. But occasionally we might have some interesting stuff there.
In today case, it is touch screen computer and netbooks. It seems most major laptop vendor in Malaysia produce some form of netbook. HP have one, dell have one, now even Fujitsu produce one.

Most of netbooks is around RM1500 range. But of course there is some touch screen version. That is around, RM2000-RM3000. Fujitsu Shows off their U2010(or was it a U1010), which is RM3600(I think). Either way, it comes with touch screen, which is interesting. And Gigabyte have their m704, which is also RM3000.

What i really like, it is small, and the best part is that, it is touch screen, but one thing is, I am wondering whether these guys works with linux. Seems that the Fujitsu machine is working(from forum anyway). The gigabyte machine not much, mostly because of their VX700 graphics unit. But it is also a tad expensive. So I probably stick with eeepc for now.

Other interesting offering is, software, and GPS. Kingsoft have their office suites, which I am wondering whether people actually bought it. And it seems that there is many people selling Kapersky. Which is interesting, and finally GPS got cheaper, and more mainstream.

Otherwise, it is the same old same old. I still think it is crazy to host PC fair at this time, people don’t have their salary in yet.

Was watching The Day The Earth Stood Still

Today lets do something not tech related. 

My company actually a movie night for all the staff. Yes, probably I should stay for one more year too(OK, that is really because of the economy). Oh yeah, sponsored dinner and pop corn too.

By the way, it is “The Day The Earth Stood Still”. The movie is OK, not bad, but not good either. A bit mediocre. Generally the story describe about human in general. From our ability to be aggressive to our ability to love and our ability to be humble(actually more like give in).

The thing is the story seems to be disconnected. While the big idea is shown on screen well. But connection between character is not good, other than Helen and Jacob. I mean the character is there, so?  The emphasize of a invasion part take more precedence over the human story.

But the reason behind the whole movies is not clear, or maybe they do. It have too much emphasize of the disaster but not much of the reason.

What really nice about the movies is the special effect. It is nice, not creative, but nice. Gort the robot, definitely have the geek appeal, at least for me anyway. So is the military equipment. The cause for the disaster in the movies, is also very cool.  I keep it for someone that watch it to see.

But sadly the story is not as good. While the effect is nice, the act is ok. The story is very wide, but lack the depth.But it is not a bad story.