Sunday, July 08, 2007

Installing Ruby on Rails on Windows Vista

Ruby? Rails? Keretapi Tanah Melayu? Doesn't make sense? http://www.rubyonrails.org for explanation.

If you are new to ROR and want to find out about installing it on Windows, here it goes.

Before that, here are some other tutorials for your reference.
But the above URL uses those all-in-one installers. I hate those all-in-one installers. Where is the fun? So, this tutorial is for those developers who are looking to install each package separately.

Actually the steps are outlined at http://www.rubyonrails.org/down. Just follow them. Also, I didn't thought of screen capturing the installation. So most of the steps here are text based.

Step 1: Downloads all the necessary stuff

Step 2 : Install
  • Run ruby186-25.exe. It will do all the installation. Just sit tight. Once its done, go to your search box and type in cmd. Once the command prompt screen pops up, type this "cd c:\ruby\bin" (I assume you have installed Ruby in C drive). Then type "ruby -v". If you have installed correct, it will show the version. If not, you have to reinstall Ruby again.


  • Excellent. Now lets install RubyGem. Unzip rubygems-0.9.4.zip. Click on setup.rb. The setup will run in command window.
  • Once done, now you need to run post-install.rb. This will create the RUBYOPT environment variable to the value rubygems in Windows. More information at http://docs.rubygems.org/read/chapter/3.
  • Well, we are done with RubyGem, now Rails. Open the command prompt window. Type "c:\ruby\bin ". Now type this "gem install rails --include-dependencies". What happens now that it will fetch the latest Rails framework from http://gems.rubyforge.org/ .
  • Don't worry if its slow and looks like its hanged, its downloading. There is a standalone package, but I haven't tried installing it that way. Once done you will see the screen as below (look at the 3rd last line in the screen):-

Step 3: Create and Run!
  • To create your application, open up the command prompt. Assuming its at D drive, type "D:\", then "mkdir projects", then "cd projects", then "rails myfirstproject". (You can replace the word "myfirstproject" with any words of your choice. Rails will create all the file structure for you.
  • Then type "cd myfirstproject" if you are not in the newly created directory. Then type "ruby script/server". This will boot up WEBrick web server. Btw, don't close this windows as it will shutdown your webserver.
  • Type in http://127.0.0.1:3000. Tada! You have your Ruby application up and running. Well almost....

  • There are additional steps, however you can refer to section IV of http://allaboutruby.wordpress.com/2006/01/09/installing-rails-on-windows-step-by-step-tutorial/.
Enjoy your ROR!


Wednesday, May 09, 2007

Maxis e-billing with Mozilla

Beware, if you are using Microsoft Vista and IE7, you can't view your Maxis bill online (e-billing). However there is a workaround with Mozilla. This steps was provided by Maxis Customer Support.

1. Open your Mozilla browser (version 2 and above).
2. Type into your address bar "about:config". This will list out a list of parameters.
3. Below the address bar there is a filter bar. Type in the word "security". This will be bring you to the first parameter on security.
4. Look for security.ssl2.des_64 until security.ui.enable parameter. Mark them and all other parameters between them, double click on the value column and make sure all of them are changed to "true".
5. Restart your Mozilla browser.

Tuesday, May 01, 2007

Songkran in Thailand

What is New Year if we do not celebrate it? 2008 is to far away, so, my wife and I made a trip to Thailand. Songkran!

2nd time in Thailand but first time in Bangkok. We took the AirAsia flight to Suvarnabumi Airport, Thailand. Below are the bullet points of my entire trip:-

Airport
  • One of the most amazing airport I have ever seen. Its huge! Way bigger than KLIA.

  • The blue lights looks beautiful matching the airport exterior design.

  • Its huge!

  • Very modern and yet it blends together with the Thai culture. Alot of statues in the airport as a deco.

  • Thai immigration officers are damn rude. I seen many times how they treat tourists. They shout at them for the slightest mistake. They never smile, and you will think, this are the front liners of Thai government and they don't smile or even say Thank You.

  • Waiting for luggage is the same as KLIA. Long wait.

  • Walking from point A to B in this airport is really a task. Sometimes it feels like going thru a maze.

  • There is no standard uniform for immigration officers here, some wear uniform, others wear suit (a suit!?), normal shirt... aiya....

  • I saw a Israel airline! First time in my life. All this while I didn't know Israel had airlines, just warplanes.

Deco in the Airport

Taxi

  • We got a cab from the airport. Their standard taxis are Toyota Altis. Yup, the exact same one that is costing us RM 100K here.

  • Now, important lesson about Thai taxis. Always ask the price before you get in. Negotiate for the best price. Why? Even if you ask them to use the meter, they will use the longest route to get to your destination. Its always a lose-lose situation for us.

  • Yes, all taxi drivers in Thai are disgruntled ex-F1 drivers. So put on your crash helmet.

City

  • I was amazed with the city. Everything is huge here.

  • They have about 8 to 4 lanes highway stretching from the airport to the city and the toll is much cheaper compared to KL. Most of the roads leading into and out of the city are highways. Some are elevated highways. We went to Pattaya on an elevated highway. I think we were on the highway for about 1 hour or so. Compare to our Prolintas. You do the math.

  • BKK is very modern city compared to KL. The city is well planned, but can't say much about traffic congestion. They have digital traffic congestion signboard.

  • Bill boards are triple the size of those in KL.

  • While on the trip to Pattaya, left and rights were factories. Not just one but just factories all over until your eyes can see. Huge economy here.

  • They really have huge malls here. Sadly didn't managed to venture into one.

  • So many fitness centers here. I didn't managed to go to Fitness First here. They have FF Plus - with salt water swimming pool!


Songkran - now for the best part

  • Songkran is synonym to water festival. Basically they throw water on you and wish you Happy New Year. I guess it started with sprinkling of water as a blessing but some smart aleck decided to take it further with water guns.

  • I met with my friend and his wife (who became our host) and they took us around to celebrate Songkran. Well thinking Songkran was over, I wore my T-Shirt and Jeans. What a mistake.

  • We got onto a Tuk-Tuk (Yeah! finally), and he brought us around from our hotel. The next thing I knew, every corner there will be a group of ppl waiting with pails of water. Seriously, PAILS of WATER. They have past the water gun stage here.

  • After one round of getting splashed with water (I didn't get hit much), my friend said "Ganee, hold this water gun, hold it?". Well OK. Bad move.

  • Well, the rule of the thumb is if you hold a water gun, your gonna get it. I learn this the hard way.

  • What I saw next was, WATER, WATER and WATER. Splash! Blink open eyes, SPLASH! SPLASH! We are talking about buckets here ppl.

  • BKK was hot and didn't rain, but the roads were wet until the next day. That much water was used.

  • I was soaking wet with my socks and jeans and it was not over yet.

  • After soaking wet in Nana Road we went to Koa Sarn Road. The entire road was filled with people and each one of them looked like zombie. Apart from throwing water, they now put white powder unto your face. Escape!

  • At one corner I saw someone taking water from this filthy river and preparing it to throw. Yuck!


A scene of water splashing



Yes, they go in pickup trucks and start a water war


Shopping

  • There is this huge flea market in BKK. Its called Chatuchak. It houses hundreds of small stores selling all kindda thing from small key chain to t-shirts, shoes, fake jewellery, all kindda souvenir. I think we only finish about 20% of the area and we went around for 4 hours.

  • Earlier mentioned was the flea market that operates only in the morning. There is another flea market that operates in the night. But this one has a huge open air food court with live entertainment and a huge screen.

  • I missed going to Siam Paragon which is the biggest mall in BKK.


Pattaya beach

  • We made a day trip to Pattaya beach for some sun and sea. It was about 2 hours bus ride, but it was highway all the way.

  • We did nothing but lay around the beach, sleep and eat. In other words, being a slob.

  • I can't believe the number of beach peddler who bugs your life every 5 second. How can one enjoy the beach?

  • But the beach is too hot for comfort, on the way back, we kena baling water again. The street is not safe at all.



Pattaya Beach


Food

  • Tx to my buddy, halal food was easy to find compared to Phuket.

  • I tried an extremely hot spicy food, can't remember the name. I had to buy an ice-cream to cool down. 40 baht! Cut throat!

IMPORTANT:

Although the trip was suppose to be all fun, but I had a lot of opportunity to learn about different culture and country. I learn about people and aspiration. I learn about economy and democracy. I learn about people's passion for the King. This was a study trip for me and have open my mind to think out of the box. This trip helped my self-esteem and my outlook towards life. It was a good trip.

A shout out to my buddy for your sincere help in accommodation, paying my meals , taking us around BKK and Pattaya, shopping and host of other stuff. Thanks man!

Friday, April 13, 2007

Stolen laptop recovered!

Today I got a call from my colleague saying the Police found our laptops. My boss and I rushed to IPK (Jln Hang Tuah) to check it out. To our delights, YES! Its our laptop. Its back! They managed to retrieve 2 out 4 laptops.

All the data are intact but there is a few scratches on the surface due to the rude handling of the f**king thief. But to my dismay, we were not allowed to take back our laptop because they need it as evidence to prosecute the culprit. Aiyah... so we got ourselves an external HDD and spent the entire evening transferring files.

At least I got my data back. That is more than enough. You can keep the laptop. Anyway, my new laptop is just a week away. I saw the freaking culprit. I wish I could strangle you, but alas then I might end up sitting beside you with cuffs. Learn to earn a decent and honest living idiot!

All in all, its been a tiring but exciting day. I got my data back! I am alive!

To Koperal Zakri (very nice man), Koperal Subra (another nice chap) and team from IPK KL, D4B, thank you very much for you assistance.

Tuesday, April 10, 2007

My laptop stolen!

Stupid f*ck**ng bloody useless scumbags! During lunch time, 4 laptops was stolen in my office and one of it is mine. Gone all my precious data. That is nothing in this world that can repay it back.

Don't you useless piece of walking meat have anything better to do than to steal other ppl's belonging. I really hope, let me say this is Malay - "Harap harap kau kena langgar dgn kontena lori laptop Dell and mati tertimbun dlm ribuan laptop. Dan juga aku harap semua RAM, motherboard masuk dlm korongkong busuk kau dan perut kau terburai dgn sisa-sisa toksik batteri laptop tu. Itu pun aku rasa tak puas tgk kau mati macam tu, biar lori kontena gilis kau 5000x, sampai badan kau tinggal sisa daging dan tulang utk dilapah oleh anjing kurap yang gila." Also, I hope you get fried, baked, steamed and cooked in hell for eternity.

Really upset and disappointed. Habis baik, aku tak tangkap kau dlm ofis.

Tuesday, March 27, 2007

Fitness First Review : Island Plaza, Penang

For someone who doesn't go to gym so often, I sure write alot about gym. What the heck...

FF Island Plaza is located in Island Plaza shopping complex, Penang. I believe its on the way to Feringgi Beach. I was staying in Sg. Dua at the particular time. Travelling across the island, thru the horrible Penang traffic for 1 hour gym workout. Not worth it. But anyway...

  • Parking is paid by hour. I think its about RM 1-3.
  • Take the lift and go up to 4th floor (I think). FF its on the left turning (I think).
  • The receiptionist was friendly and helpful. Thumbs up!
  • 2 level floor. The juice bar on the upper level. (Why do they ever do this!?)
  • The whole place looks kindda small. All the machines and cardio equipments are cramped into a small place. More like a warehouse sale.
  • The free weight are is small, more or less like DU.
  • Big glass windows along the gym. You can see Penang and its wonderful condos.
  • I think this place is frequented by expats.
  • One studio and 1 small abs area.
  • Machines, more or less the same as the rest of the FF gyms.
  • Plus point, they have a sitting area just outside of the changing room. Not bad.

Ratings?

Check out for more reviews below
FF Manulife
FF IOI Mall Puchong
FF Menara Axis
FF The Curve
FF DU
FF Consplant

Saturday, January 27, 2007

Interviews

My position in the company requires me to interview and hire candidates applying for an advertised position. Throughout the years, I have interviewed no less than 50 people for various position. On the net, there is a lot of information regarding how a candidate should prepare for an interview.

Now, you guys listen to me. Direct from an employer. This is a grunt from me as an employer to all those job seekers.
  1. Only apply for a job if you are INTERESTED!
    Don't waste a person's time. I shift through hundreds of resumes looking to shortlist candidates. So don't waste my time to call you and to find out that you are not interested.

  2. Read the freaking job advert line by line!
    Study if you match the requirement stated. I got a candidate telling me on the phone, that he is only interested if the job is beneficial for him! In which planet are you in!? No one takes employees to only benefit on one side. There should be a balance on both party. If you don't match the job spec, don't apply!

  3. Be polite on the phone. You are talking to your future employer.
    Some candidates just think they are hellavu great. Be polite and courteous. You are not the only person we are calling. After shifting through hundred of people and we think you are important enough to be called for an interview, have the respect and decency to talk politely. This kind of people usually get rejected immediately from me. So remember, the first phone call is important if you are serious about the job.

  4. Make time for an interview!
    I got candidates telling me they are not free for an interview for the whole week. Why did you apply then? Negotiate politely for a best interview time. I don't care if you are busy, I am much busier than you are but yet I made time to call you. Always prepare a suitable time in case you are called for an interview.

    I used to conduct interview during the weekends to make those working candidate's life easier. Almost 60% did not show up for an interview. What!?

  5. Show up for your interview! If you can't make it, call one day in advance.
    Some candidate don't even bother to call. Remember, someone on the other end had sacrifice his weekend is waiting for you to show up.

  6. Bring all the necessary documentation, demo, source code and etc.
    Some candidates comes in for an interview with just a pen. I am not interested in your degree. Show me your project source code, demo and such. This will impress your interviewer more. And dress appropriately matching the company's attire.

  7. Don't waste my time!
    There are candidate who comes in for interview just to 'test water'. I had one guy who had the cheek to tell me that. If you seriously looking for money, go sell VCD or something.

  8. If you don't know the answer to a question, admit it!
    Don't try to wiggle your way out. It makes you look stupid. Don't try to correct your interviewer either. I would not be asking a question if I didn't know the answer earlier.

    I had candidate telling me she can't answer theoretical questions, but can perform exceptionally well if given practical work. No problem, I flip open a test paper which I have kept prepared. Do it now. Didn't do well either. Now, why do you get yourself in such a dumb situation?

  9. Once you get a job offer, show up for work!
    If you have received another job offer, please inform you employer about it, ASAP. Don't make them prepare your offer letter, get a desk and PC for you, install the necessary software, waiting in anticipation for you and only to find out later through 3rd party that you got another job.

    This are really sick people and deserve to burn in hell. Its no joke since you got the HR, Management and Technical department all working for your arrival. Not to mention the projects that you are suppose to handle.

  10. Keep your promises once you have entered your job!
    Most candidate will promises anything during the interview, but the moment they enter the workforce, things change.

    My gold fish needs a bath, I can't work late. I can't do this, can't do that. My pay is not enough, gossips, chatting on IMs, taking long lunch breaks, frequent MCs, surfing jobstreet in the office.

    You knew what you were getting into, so shut up and start working. Ask all relevant questions before signing the contract. Don't like working in the company, then leave, PLS!


In each industry, I believe its a small world. You will end up meeting the same industry people for meetings or projects. Top management tend to meet each other more often. So there is an opportunity to ask about a future candidate application. So don't screw up with any of your employers. The news will get passed around.

Take interviews seriously. "I got no time".

Sunday, January 14, 2007

Fitness First Review : Manulife

Located within the ground floor of Menara Manulife (Used to be known as John Hancock). Its located in Damansara Heights area beside Menara HP.


  • Easy access from the main road. There is parking at the basement and the surrounding area. But beware, getting a parking might be difficult.
  • First impression, there is sure alot of equipment here. All cardio and machine lumped into one area.
  • The interesting part of Manulife is you get machines which other FF centers do not equip. This must be a gym for hardcore, so I heard. Btw, this is the only FF center that I have seen which you can do DECLINE bench press. Enough said.
  • Two floor, the juice bar and changing room are on the floor above. Looks like they discourage ppl to drink.
  • I am seeing double again. There is a small free weight area, but each equipment seems to be doubled. 2 smith machine, 2 sets of complete barbells (amazing), 1 1\2 set of complete dumbbells, 2 leg extension, leg curl machine and etc. However the workbench looks like from the era of Muscle Beach. Really hardcore man.
  • There have glutes and calf machine. Finally!
  • The changing room is clean, but as you enter, the dark colored wooden lockers and flooring makes you feel that you are in some kindda dodgy spa center. They should really refurbish.
  • I met a very nice PT guy. However, can't say the same about their sales ppl.

Ratings?


Check out for more reviews below
FF IOI Mall Puchong
FF Menara Axis
FF The Curve
FF DU
FF Consplant

Saturday, January 13, 2007

New Year in Phuket

I celebrated my New Year in a foreign land - Phuket! This is the second country I am visiting after Singapore which was in the year 1997-1998.




Patong Beach


How was it? It was overall a good trip but could be better. Being in Phuket with a bunch of friends was an interesting event. For a person who didn't travel much, I can say the 10 most striking thing about Phuket from my point of view is :-

  1. 96% population in Phuket are whites (from all over the world). The rest are Indian, Nepal, Chinese, Thai and "lain-lain".

  2. Pork is served widely. Its like their national dish. You can get pork just about everywhere. Its tough for a Muslim to eat. Yes, there are Halal restaurant, but its like paying RM 20 for a meal.

  3. Dogs in Phuket are mute. They don't bark. Not even the Rottweiler.

  4. My trip was during the super peak season, so the prices of all items are triple than normal. But their imitation products are good!

  5. I can't get used to paying in Bath. Because everything you pay, you need to add a zero behind the number you pay in Msia. Imagine paying for a mineral water, "20 bath", "what!? 20 ringgit... ohh wait a minute... RM 2.. ok...."

  6. Thais can't pronounce Twenty (20). They will pronounced it as Seventy (70). I got a shock of my life while paying for my mineral bottle.

  7. There is mobile advertisement van promoting Muay Thai fights all day and night long. For the first day you are there, its fine.. but it sure gets on your nerve after the first day. "Big fight! Big fight! Tonight! Tonight!". Ganee goes = "F*$% idiot! Stupid irritating! Arghghh!"

  8. Beware while bargaining with Nepal girls (The salesgirls in the gift shop lah!). They may be small but feisty.

  9. Somehow Thailand is famous for suits. You can make your complete business suit here for RM 500. I got one!

  10. Everyone is your friend in Phuket. "My friend, come in my friend".

New Year!?


It was the best New Year ever! The entire Bangla Road (Strange.. didn't see any banglas) was in a party mood.


  • Firecrackers was bursting all night long. Those CNY firecrackers bursting one after another on the roads.

  • People were dancing, spraying you with some kindda party thingy. (don't know what is it).

  • Watch fireworks just above you, literally I was directly under the fireworks, it was amazing.

  • Watch ppl let go hundreds of lanterns by the beach. It was a beautiful sight.

  • Watch ppl get drunk and stone asleep by the beach. I hope the wave didn't bring him away.

  • People was amazingly nice. Even though they were drunk and partying. No fights broke out. Ppl were polite and respectful. You can't get that in KL. Not with the Mat Rempits around.

  • Ppl were dressed to kill. We came with shirt and jeans. Ok what?

Other interesting things?


  • Phuket this time around was full of perfect ppl. The guys were hunk and very muscular. The ladies were very pretty and overly "perfect" in certain part of their body anatomy. Kindda Utopia. Were we the outcast.

  • Yes, there were topless girls in the beach, sadly old ppl.

  • Yes, there were pretty "ladyboys". No I didn't approached them.

  • Sleazy joints? Its there if you look hard enough.
  • Bangla Road is the most happening place in Phuket. Its filled with rows of bars and pubs. Each outlet has its own trademark. Some provide pole dancers, both original and ladyboy.

  • The best pick up line I have heard... "Mister, can I love you for one hour?". Hahahh my friend and I laughed hysterically.
  • Take a tour to Phi Phi island. We went snorkeling at one spot. It looked like 100m deep. Although beautiful but not for the faint hearted.

Things that I missed and wished I have done:-


  • FantaSea show

  • Simon cabaret show

  • Firing range

  • Jet ski

  • Visiting Karon beach (Nude beach?)

  • Getting a bike/car and travel the entire island

  • Getting a spa treatment

  • Watching a Muay Thai fight

  • Getting on a Tuk Tuk.

  • Visiting the rest of the beaches. So sad....

  • Walking half naked like the whites guys. But alas, I don't have 6 packs.....

My advise, visit Phuket during the New Year once in your lifetime before you reach 35.

Sunday, December 24, 2006

Year of Weddings

I have attended countless of wedding this year. Its been a year of marriages. My cousin is getting married on Christmas day as well. I have been the "unofficial" photographer for at least 6-8 occasions and been requested personally about 4 times. I seriously gotta start making money out of this. Ohh btw, I become the PM and Emcee for one of those weddings as well. Should I venture into wedding planner business?

My friend's wedding has just concluded and he is now in Hawaii for honeymoon. Of course the unique thing about his wedding is his wedding card which I forgot to mention. How often do you get a wedding card with your name printed on it? No, not the empty dotted line to invite you but a special piece of card just to thank you. Unfortunately my friend, you spelled my name wrongly. Its OK, I forgive you. Make sure you get me something nice from Hawaii.