Wednesday, 12 October 2011

How to put the post title at the end of the breadcrumbs in Drupal

If you did just
<?php print $breadcrumb . $title; ?>
You will realise that your page title appears in a new line like so:
Home » Guys »
Shirts

To solve the problem, just add this to your css.
.breadcrumb 
{
   display: inline;
   margin-bottom: .5em;
   font-size:80%;
   font-weight:normal;
   color:#393939;
}
And replace
<?php print $breadcrumb . $title; ?>
with this
<?php
   print $breadcrumb."<span class=\"breadcrumb\"> &raquo; ".$title."</span>";
?>

Monday, 10 October 2011

Displaying Google map on Drupal

If like me you have been cracking your head trying to integrate Google Map into Drupal, watch the video below and read the guide after that. Definitely helped in my understanding.

But you need to get some stuff ready before diving in.
  1. Google Maps API - Sign up and get your Google Maps API key. You will have to input it later on in order for the map to work.
  2. GMap (Drupal Module) - This will provide an interface to the Google Maps API within Drupal.
  3. Location (Drupal Module) - It allows you to associate location information (coordinates, address, etc... ), with Drupal nodes and users.


After watching the video, have a look at this guide, Mapping with Drupal: GMap, Location & Views. You will learn how to create a view with the information you've created above.

Monday, 19 September 2011

Weekend at Marina Bay Sands

The girlfriend and I spent the weekend at MBS and I went as The Stig, motorcycle riding Stig.
Work hard, play hard.

Relax one corner.

Speed boat.

Check out my dance moves, then the gigantic bathroom. We love their bathroom. 2 sinks, bathtub and loads of free shampoo to bring home! Muahahahaha.

Watching the MotoGP with my helmet on.

Friday, 9 September 2011

My December

I have been anticipating for the arrival of December.

The end of a year. The welcoming of a new year. Christmas. Gatherings. Presents. Celebrations. Alcohol. Our anniversary. Her birthday. December is just filled with endless fun.

But most importantly, come December 15, I will be eligible to register for my Class 2A lessons. And I will try my very best to get my license as fast as possible this time. No more slacking. For we know that by attaining my Class 2A is another step closer to Class 2, which ultimately leads to my Fireblade.

Wednesday, 8 June 2011

My President Got Do Work One Ok!

Mr Nathan said all will be revealed in his memoirs, which are expected to be published in September. "When that book is published, you will know that, although I've been quiet, I've been doing work."
My boss should pay me for a report if he wants to know if I am doing work in the office.
My future employees should pay to get a copy of my resume.

This prata man really talk cock.

Friday, 3 June 2011

Saturday, 28 May 2011

The Studious Walking Dead

I used to be full of energy. Now, I am always feeling sleepy; even more so in the afternoon.

I have been out studying the whole day but I am not absorbing as much knowledge as I would like to. The numbers and theories seem like a blur to me now. Either I am really getting old and my speed of learning has gotten worse or the curriculum is getting difficult.

But I suspect that it might just be the lack of proper sleep. Even as I am typing this, my eyes are threatening to close.

Studying. Sky Garden @ The Central.
And the reason I am always feeling sleepy? The girlfriend.

First of all, the girlfriend refuses to let me sleep in peace every night. We will engage in a fight over my bolster every single time due to her refusal to let me hug my bolster to sleep; she wants me to hug her to sleep instead. And when I refuses to do so, she'll hug my bolster to sleep and I'm left with nothing. My bolster is very important to me. I even brought my bolster to ICT (in-camp training). And that shows commitment!

Secondly, my weight gain. Whenever we are out eating, my girlfriend likes ordering lots of food. And she force feeds me. Most of the time we'll have lots of leftovers, not wanting to waste food, I'll try to finish all of it. Now, I am smarter, I rather let the food go to waste than increase the size of my waist. And as you know, weight gain = lesser energy = sleepy. She blames it on my soft drinks drinking habit though.

Thursday, 26 May 2011

Pumping Petrol In Malaysia: How Much Do I Actually Save?

After finding out how much money my colleague saved over the years just by pumping petrol in Johor Bahru, I decided to start pumping petrol in JB too.

But the problem is, I've not travelled into Malaysia in a motorcycle or a car for a long time, especially not since the new custom buildings were erected. I have no idea where to pump and where to u-turn.

Undeterred, the girlfriend and I took the plunge and rode in late one night.

The first thing we realised was humps, speed humps, lots of them. You must go through at least 20 speed humps before reaching Johor Bahru. Some of the humps were not even coloured. I went through a few humps quite aggressively; I was so worried that my front rim will dent.

The next thing was not knowing where to turn back. So I devised a cleaver plan to just follow the Singaporean cars from the petrol kiosk. Unfortunately, the one that we followed was not going back to Singapore. The girlfriend and I nearly ended up on the highway to Kuala Lumpur because the roads were dark and there wasn't seem to be any legitimate u-turns around.

I decided to tag along my colleague to pump petrol last Monday evening. Now I know where's the petrol kiosks, u-turns, money changer and where to have food!

So, how much do I actually save every trip I make?

Assume:
  • RON 95 (Singapore) = RON 97 (Malaysia)
  • Price today: S$2.04/litre vs S$1.1847/litre (RM2.9/litre) (Exchage rate 0.4085)
    Source: http://www.petrolwatch.com.sg/
  • Distance (to and fro): 28Kkm (estimate)
  • Fuel Consumption: 17km/litre
I made a trip this afternoon and the bill came up to RM26.62 (S$10.87).
26.62/2.9 =  9.1793litres

The same amount of petrol would have cost me (in Singapore):
9.1793 x 2.04 = 18.725772
85% (Esso Smile + Citibank Card discount) x 18.725772 = $15.92

Price of trip: 28/17x1.1847 = $1.95

Total amount saved: $15.92 - $10.87 - $1.95 = $3.13.

I only save S$3.13 everytime I pump petrol in Johor Bahru. Either I need a bigger fuel tank or I need the currency difference to be greater.

LinkWithin

Related Posts Plugin for WordPress, Blogger...