Showing posts with label useful tricks. Show all posts
Showing posts with label useful tricks. Show all posts

Sunday, 19 June 2016

Get your Free rides to the Airport

imageThere are 3 simple steps in getting the Free Ride to Airport.

1. Goto this Official Uber site and sign up using the code 'tcepkp5due'. Link here: https://www.uber.com/invite/tcepkp5due

2. After sign up with a registered credit card in the account, install the Uber apps from Play Store, or Apple store.
imageimage

3. Launch the app and click on your selection where you want to go and call the car to your location.

It is as easy as 1-2-3. Of course, do note that if your 1st trip is free up to RM10. If it is lower than RM10, then there is no refund or second use to deduct the balance. If it is more than RM10, then your credit card will be charge for the extra.

For trip to Penang International Airport, it is probably free for you. However, if you are in KL center and heading to KLIA, KLIA2 or Subang Airport, it'll cost you more than RM10. Good news is it will be RM10 off for your trip.

Have a Safe trip to your Airport!!!
Remember to click through this link https://www.uber.com/invite/tcepkp5due to get the Free ride!!!

Easiest 2 ways to get Free Lounge access @ KLIA2, KLIA and more


1st Way:
Apply for a RHB World Mastercard Credit card
image
It comes with 5x Free Access to lounges in Malaysia. This includes KLIA, KLIA2, LCCT, Kota Kinabalu International Airport, Kuching Domestic Airport, Senai Airport, Langkawi International Airport and Penang International Airport.
Also, you can gain up to 6% cash back (RM220 per month) for using this card with Petrol, Travel, Dining and Oversea spending.
Furthermore, live like the rich by getting free green fee when you play gold at the participating Golf clubs.
Location of each qualified Lounge can be find here:
  • KLIA - Kuala Lumpur International Airport Malaysia
    Mezzanine Floor Satelite Building, Kuala Lumpur International Airport,
    KLIA, Sepang, Selangor
    Tel: (603) 8787 2323
  • KLIA 2 - Kuala Lumpur International Airport 2 Malaysia
    S3-2-A07, Level 2, International Departure,
    KLIA2 Airport Terminal, 64000 KLIA,
    Sepang, Selangor Darul Ehsan
    Tel: (603) 4065 0161
  • KLIA 2 - Kuala Lumpur International Airport 2 Malaysia
    L2M-2, 3, 4&5, Level 2M, Gateway@klia2, klia2 Airport Terminal, 64000 KLIA,
    Sepang, Selangor Darul Ehsan.
    Tel: (603) 4065 0156
  • KLIA 2 - Kuala Lumpur International Airport 2 Malaysia
    S6-3-A03, Level 3, International Departure, klia2 Airport Terminal, 64000 KLIA,
    Sepang, Selangor Darul Ehsan.
    Tel: (603) 4065 0165
  • LCCT - Low Cost Carrier Terminal
    Public Concourse, Low Cost Carrier Terminal, Kuala Lumpur International Airport,
    KLIA, Sepang, Selangor
    Tel: (603) 8787 1766
    Note:
    LCCT Airside Lounge Closed effective from 2/5/2014.
    LCCT Landside Lounge Closed effective from 9/5/2014.
  • Kota Kinabalu International Airport
    International Departure, Kota Kinabalu International Airport, 88740, Kota Kinabalu, Sabah
    Tel: (608) 841 3190
  • Kota Kinabalu International Airport
    Domestic Departure, Level 2, Kota Kinabalu International Airport,
    88740, Kota Kinabalu, Sabah
    Tel: (608) 841 3190
  • Kuching Domestic Airport
    Domestic Departure Level, Level 2,
    Kuching International Airport,
    93722, Kuching, Sarawak
    Tel: (608) 245 1678
  • Senai Airport - Sultan Ismail International Airport, Johor
    Lot FA9A, First Floor, Passenger Terminal Building, Johor Bahru, Johor
    Tel: (607) 598 7437
  • Langkawi International Airport, Langkawi
    AD2, Departure Hall (Airside), Langkawi International Airport, 07000, Langkawi,
    Kedah Darul Aman
    Tel: (604) 953 3112
  • Langkawi International Airport, Langkawi
    A3, Public Concourse (Landside), Langkawi International Airport, 07000, Langkawi,
    Kedah Darul Aman
    Tel: (604) 953 3113
  • Penang International Airport, Penang
    Domestic Departure Hall, Penang International Airport, Penang.
    Tel: (604) 643 7340
  • Penang International Airport, Penang
    International Departure Level, Level 3, Penang International Airport, Penang
    Tel: (604) 643 4020
Participating Golf Clubs
For more details, go to RHB website.

2nd Way:
Apply for a Public Bank Visa Signature Credit card
image
This card give you 3x Free Access to Plaza Premium Lounge in Malaysia. Although it is less than the RHB World card, this credit card only require RM100,000 annual income to apply.
Other goodies include 6% cash back on Grocery, Dining and Online Transaction!!!
What’s best about this is there is no minimum spending before you start earning 6% cash back.
For more info, go visit Public Bank website.

So, what are you waiting for? Go apply now and get your free entry to Plaza Premium Lounge and start enjoy the free showers, food and more..
Have a Safe flight and enjoy your lounge access before and after your flights!!

Save 10% on your next purchase at Delivereat.my!!!

image

Nowadays the Delivereat.my website carries lots of restaurants in Penang. From Bayan Lepas, Tanjung Bungah and all the way to Seberang Perai area.
image
This 10% offer only valid for limited time. It is valid from June 5th till July 5th (Ramadhan month). There are terms and condition, but the website does not list it out. I tested with Credit card payment and it is working.
So what’s the secret Voucher code?
It is Ramadhan. Key in at the last page before payment and click blue button “Apply Voucher code”. Make sure the Promo RAMADHAN is shown up on the right side and your Total is deducted 10%
.
That’s it. Is that simple!!
image
What’s the link to order? –> Delivereat.my

Save 50% money or save time? KLIA Transit’s Price hike!!! Here are Ways to get to KLIA2 / KLIA Faster / Cheaper? KLIA Ekspress /KLIA Transit?

Gone when the days we can choose KLIA Transit for a cheap (Below RM30 cost with ~35mins ride to KLIA airport.

Previously KLIA transit is the fastest and the cheapest way to travel between KL Sentral, Bandar Tasik Selatan and KLIA Airport.

Now a ride from Bandar Tasik Selatan costs RM35 vs previously RM15. That is a 233% increase in fare!!!  Sometimes, it is even more expensive than my Airasia flight tickets!!!
 
Alright, so now, we can either bite the bullet and pay the 233% increase in price or find some way to workaround the system.
 
I have found a way around this. However you’ll need to sacrifice time to save money. It is down to the old talk about time vs money.
If you are not in a hurry and willing to spend some extra time waiting at the platform of the KLIA transit, then there is a solution for you!!!
 
KLIA Transit Fares
image
I’m going to walk through how to calculate the cost of your travel by breaking down the table above.
For example, Scenario A, if you are going from Bandar Tasik Selatan to KLIA2.
 
Option A:
Take the direct route from Bandar Tasik Selatan to KLIA2 (3rd Column from Left and 6th row from Sector as circled by the picture below, it will cost you outrageous price of RM38.40.
image
 
Option B:
If you have the time, then you get on at Bandar Tasik Selatan station and then you can stop at any station you want prior to KLIA, either “Putrajaya & Cyberjaya” or “Salak Tinggi”. Then exit and buy another ticket from that station to KLIA.
 
Example below circled the price you as a passenger will pay total only RM17.30.
1st Trip: Bandar Tasik Selatan to Salak Tinggi  = RM12.40
2nd Trip: Salak Tinggi to KLIA2 = RM4.90
Total = RM12.40 + RM4.90 = RM17.30
image
 
Option A: RM38.40 – fastest – reach there within 35mins
Option B: RM17.30 – cheapest – reach there within 1 hour
 
*** No matter which option you choose, remember to use the Kiosk to buy (Credit card accepted) and get additional 10% discount.
 
In case you don’t realize this is their KLIA transit/Ekspress Kiosk, here is a picture. It is quite hard to notice with their very plain color.
 
Final Discount:
Option A: RM38.40 * 90% = RM 34.56
Option B: RM17.30 * 90% = RM 15.57
 
Now, if you choose to go to the Airport a bit earlier than usual to save more than 50% of your fare. You might ask, what are you going to do there? That’s an excellent question. There is KLIA lounge that you can go in for FREE!!!
In the next post, I’ll share exactly how you can do so.
 
Till then. Happy Holiday / Travel!!!

 

Saturday, 11 June 2016

Top 7 ways to utilize the Honda's Civic/City/Accord 7" displays

If we can't fully utilized the gadgets or cars we bought then we are literary wasting it. Just like if we don't live up to our full potential then we are wasting our life away.

Quote "Every Human Life Contains a Potential, If that potential is not fulfilled, then that life was wasted" - Carl Jung

Now, let's explore the Top 7 different ways to fully utilize your new Honda's car.

First Hack to utilize your 7 inch display:
1. HDMI out from Apple iPhone

If you did not purchase the full DVD video player with GPS Navigation Feature then your screen will not display any video or mirroring when the Hand break is release while you are driving. Thus, you’ll need to hack the screen. Search for Park break “bypass cable” and install them in your Car.

To do the same thing without buying the expensive DVD or GPS navigation, here is the Hack #1.
If you have iPhone 4 then you can only do mirroring in some of the Apps, e.g. Waze. For iPhone 4S and newer phone, you can mirror the whole Phone interface.
Here is an Example of IPhone 4 With Waze:

Requirement:
Phone – Iphone 4 or later
Cable -  1. Bypass cable, 2. Iphone plug to HDMI & USB
Apps - Waze

Example: 





Second Method to utilize your 7 inch display

2. Display Wallpaper of your loves one or whatever is your liking

The dimension I found to be most optimized would be using the following dimension.
Dimension : 1024x576
a. Edit the photo of your choice and save it into any USB pendrive.
Third Hack to utilize your 7 inch display
3. Samsung and other - Mirroring display
Samsung and other phone company that joined the MHL technology. To find out if your devices support MHL. Click here and find out if your devices are listed. If it is listed, go ahead and buy a MHL HDMI cable online or at your favorite shops. Some will come with USB cable as well for charging and Display via HDMI cable at the same time. Very similar usage as 1st Method using iOS devices.

Unfortunately, I don’t have a sample video here.
However, here is an example of the MHL cable. Click here to see the example.

Fourth Hack to utilize your 7 inch display
4. Reverse Camera
7” display makes a nice rear view or reverse camera. Honda have already install all the necessary items to display the reverse camera. All you need to buy is the Camera itself. The accessories shop will state that any cutting of wire in Honda will void warranty, however, if it does not (using plug-in), you can install 3rd party Reverse camera for 1/3 of the price.

Requirement:
Reverse Camera

Example:


Fifth Method to utilize your 7 inch display
5. Fuel economy check
This is a built in feature to Honda. To select this, first go to the Home screen. Then click on the info button (Top Right) and it’ll show you all your fuel economy data. It has data for each trip that you start your engine. There is a overall fuel economy data as well from day 1 using your Trip A meter.
Example:
Picture coming soon.

Sixth Method to utilize your 7 inch display
6. Use Apple Apps - See this article. Click here.

Seventh Method to utilize your 7 inch display

7. Using Intel Compute Stick and run a Full Window 8 or 10 in your Car.
With the USB power from Honda, it is good enough to power up a Full Window Operating System. After plugging in the USB Power and HDMI (Female to Male adapter) to the Honda’s HDMI port, the setup is ready. Power up the Compute Stick like normal (Press Button on the side) and just wait for it to power up.
Do note you’ll still need to use a Wireless or Bluetooth Mouse to control the screen.
If you have configure the Compute Stick to start up media player such as Kodi, then you can control with your handphone.

Requirement:1. HDMI adapter (Female to Male)
2. Intel Compute Stick
3. USB Cable (Power supply)
4. Mouse / Handphone
5. WIFI router / WIFI from phone

Example:




Thursday, 3 September 2015

Guess what? Mi Band Upgrade to interact with all your Apps on Android OS

With the latest Firmware 1.0.10.11 upgrade, all apps can be interact with the Mi Band..

1. If you open up your Mi Fit and click on the top right and select Setting.

2. Then you'll see a new screen as below. Just click the icon to continue.



















3. There is a new row which is "App notification".
Click on that will bring you the next screen.


4. Now you have 2 options. Click on the First selection "Turn on app notifications"

5. Now select the Mi Fit and give access to Mi Fit to all your notification.
 6. Of source, the message warns that this will give Mi Fit for getting info on all your message and info then it can also perform tasks on your message. This could be quite dangerous if Mi Fit is not trustable. So you have to base on your own judgement on it. Once you decide to trust it, click Ok.


Tuesday, 7 July 2015

Going to Subang Airport? Must read this...

This is an Update from the previous post of 4 ways to go to Subang Airport.

After taking the the trip from Terminal Bersepadu Station to Skypark/Subang Airport/SZB, would like to post an update on the notes.

1st of all, there is no bus shuttle services from Kelana Jaya to Subang Airport. They have discontinued it. So only other option is to take Taxi, which cost RM25 without meter. IT wook around 12 mins of Taxi ride (going thru Ara Damansara)

Secondly, the KL Sentral to Kelana Jaya LRT ride is pretty fast and smooth. Average one stop is around 2 minutes + and it is only 9 stops instead of 11 stops mentioned in the previous post. I took the train from KL Sentral around 10.30am and reach at Kelana Jaya 10.50am.


















Finally, the total cost update as follow.

Table comparison update





Sunday, 5 July 2015

Comparison of 4 Ways to go to Subang Skypark Airport from Terminal Bersepadu Selatan (TBS)



Sultan Abdul Aziz Shah Airport / Subang SkyPark / SZB  means the same Airport. 



It is located in Subang, Selangor as shown in Google map above.

Terminal Bersepadu Selatan (TBS) is located right next to Bandar Tasik Selatan's Train station which connects to many different type of rail. (LRT/ KTM/ KL transit)

This is one the best place you can connect to your next destination, no matter you are going to KLIA, KLIA2, city center, Ampang, Kelana Jaya, and more.

In this article, we are going to explore 4 ways to go from TBS to Subang Airport. You might ask why would people be interested in doing so? Well, for one, Subang Airport currently is having Malindo Airline and also Firefly Airline (MAS low cost wing) flying in/out from the Airport. This airport can connect travelers to many great destinations e.g. Melaka, Penang, Langkawi, Johor, Singapore, East Malaysia, and nearby Asia Pacific Countries.

We'll be exploring 4 ways to travel in terms of Cost, Time, Convenience and Distance.

Let's get started!!!

1st Option:
It is the most direct but also the most expensive option.
It is to take a taxi from TBS to Subang Airport.

Distance and cost
Google map estimate the distance to be 30km. In terms of cost, that would put us at around MYR 14.25 per 10km according to the cheapest taxi rate shown in SPAD taxi fare information. Total would be MYR14.25 x 3 = MYR 42.75 (Source)

Time of the travel estimated by the Google map is around 35mins around mid day time.
Of course, by doing this, it is the very convenient and no worry of getting lost in KL. However, you do have to take caution of Traffic Jam in KL as huge Traffic Jam could cause you to miss your flight.

2nd Option:
This is to take Bus from TBS to Subang Airport. Since TBS is a bus station, it might make sense to take a Bus from TBS to Subang Airport.
Well, according to google map, if you would take KTM and bus from TBS to Subang Airpot, it would take you 3 hours to reach your destination.


This probably will be the cheapest solution, although someone would need to go and check the bus fare from RapidKL website.

3rd Option:
Overview: TBS - LRT at Bandar Tasik Selatan - Transit at Masjid Jamek to another line - Kelana Jaya - Shuttle/Taxi to Subang Airport.

Starting at TBS, walk over to the Bandar Tasik Selatan LRT station.
According to the Journey planner at the website, it will cost you MYR 4.00 for the Journey to Kelana Jaya LRT station.

If you check the number of LRT stations, it would be 8 stations on Ampang Line towards Sentul Timur then change your line at Masjid Jamek LRT station. Walk over the road and then take the Kelana Jaya line for another 11 stations. Total of 19 station. Unsure how long that would take but that is a lot of stations to sit through.

Journey Planner direction and Cost

LRT map from TBS to Kelana Jaya station









Frequency of LRT train on Ampang Line






After you have arrive at Kelana Jaya LRT station, you can then have a choice of a Taxi or the KL transfer to Subang Terminal. The Transfer which is servicing as per the image below to all those stations. I have not gotten the price or the detail schedule from the company. The only info is that it would be running from 9am to 11.20pm daily and the frequency would be half an hour during the peak time (Morning and also right after work hour during the evening), and non-peak time would be every 1 hour.

KL transfer to Subang Terminal Airport





4th Option:
Overview: TBS - KLIA Transit at Bandar Tasik Selatan - Transit at KL Sentral to Kelana Jaya line - Kelana Jaya - Shuttle/Taxi to Subang Airport.

4th Option would be similar with option 3 except for the fact that from Bandar Tasik Selatan, we would take the KLIA transit to KL Sentral straight instead of taking the LRT.

This would be much faster and at the cost of MYR4.20. Then from KL Sentral to Kelana Jaya station would be 11 stations at MYR2.10. Total MYR 6.30 not including the last stretch of Kelana Jaya station to Subang Terminal Airport.

Option 4 - Journey Planner from KL Sentral to Kelana Jaya



 One thing to note, although KLIA Transit is fast, it also have less frequency; it's frequency is every 20 mins during peak hours and every 30mins during off-peak hours. For the very detail schedule, you can find it at this link.
KLIA Transit Train Time table
 Below is showing the Kelana Jaya Line, it's interval is much faster compare to Ampang Line, so it notes that taking Ampang line in Option 3 might be very time consuming.
Option 4 Kelana Jaya Line Train Frequency




For more info on the bus shuttle / transfer to Subang Terminal Airport, click this link.
KL transfer to Subang Terminal Airport








Table Comparison:
Finally, let's have a short comparison in a table format for us to digest all the above's information.
Table of Comparison between various options for Travel from TBS to SZB Airport





Conclusion:
As a conclusion, if you can afford it and you willing to take the risk of on the road (Traffic condition), I would recommend you to take Option 1 Taxi.
Otherwise, I would recommend to take the Option 4 which is KLIA transit + LRT. It is the balance between all the factors (Duration, costs, convenient and Distance). For the exact duration required for the journey, it is very subjective as it depends on time of the day, but I'll try to get a real life duration for this article as soon as I can.

Happy Traveling and Safe Flying.

*Latest update - click here

Sunday, 21 June 2015

Hondalink: New In-vehicle-infotainment connection for your Honda City/Accord to your iPhone or Is It?

Screenshot #1 Country selection
If you have an iPhone that is 4S and newer then you are in luck. You can pair your iPhone to your newly bought Honda City central console.

I can't find any site talking about Hondalink thus I'm gonna share what I know.

If you are in Malaysia and owned a new 2014, 2015 Model of Honda City, then do continue to read on.

First, on your iPhone, download an app call Hondalink.

After you have downloaded, select the country that you reside at. "Malaysia" (As seen on Screenshot #1)



Screenshot #2 Hondalink Main
After that, you can see that on your iPhone screen, it shows only 1 Application that can be connected. "Navigation" (Screenshot #2)

If you click on it, then it would bring you to your App Store and the following screen would show up giving you information that this app is not available in Malaysia App Store.  (Screenshot #3)

That's basically what you can do if you are connecting a iPhone to your car in Malaysia.

If you do manage to find more useful things to do with Hondalink, do let all of us know in the comments. I'm eager to know if there is other apps that can be launch in Malaysia's Honda City.




Screenshot #3 App Store msg



Wednesday, 5 March 2014

How to compile EFITOOLS to 32bits instead of 64bits?

What is EFITOOLS?
This is an UEFI tool that able to help you to load your PK, KEK, DB keys into the Firmware and enabled Secure Boot on your Computer.
It is also able to help you create the Private and Public Keys of PK, KEK and DB.

Why Compile 32bits Version instead of 64bits?
When you want to boot 32bit OS, you'll need 32bit UEFI BIOS. Since you are running 32bit UEFI BIOS, you can only execute EFI or binaries that are compile for 32bit.

Steps to compile 32bit version of EFITools:

1) Requirement:
32bit OS(32bit version) 64bit OS (64bit version) Fedora /Ubuntu / Linux based OS
In our example we will use Fedora 32bit. You can use 64bit OS to compile for 32bit version, however, my guide does not include that.

2) Download required dependancy and libraries needed:

a) Get the GNU-EFI library:: CMD ::
           Method 1: sudo yum install gnu-efi
           Method 2: git clone https://github.com/vathpela/gnu-efi
                            cd into the directory
                            make
                            sudo make install
                         
b) Get the sbsigntool ::CMD ::
          Method 1: git clone https://github.com/wmarone/sbsigntool
                           cd into the directory
                           ./autogen.sh
                           ./configure          //Notice, they might be some dependency missing, need installation
                           make
                           sudo make install

c) Get some libraries needed
           sudo yum install pkgconfig
           sudo yum install perl-CPAN
           sudo yum install perl-File-Slurp
           sudo yum install help2man

3) Above are similar across 32bits version and 64bits version, however, below will be 32bit focus only.
     There will be an error in the lib/security_policy.c as there are asm code in the security policy and so far I can't find a workaround for it.
        vim lib/Makefile
        Delete the security_policy.o from the FILES = line
        Add the bolded two lines
        clean:
        rm -f lib.a
        rm -f $(LIBFILES)
        rm -f lib-efi.a
        rm -f $(EFILIBFILES)

         vim Makefile
         Delete the PreLoader.efi from the EFIFILES = line, as this file required the security_policy.c library

4) Compile all the necessary files by doing make
         make clean && make 
         //It should complete with no error and undefine symbols

5) Now create a USB drive image:
        ./mkusb * * usb_drive_image.img

6) Open the System in Fedora application and plug in a USB pendrive
    Click Restore Image on the drive and select the usb_drive_image.img

Congratulation, you have successfully created your own signed application with PK, KEK, DB keys.

Wednesday, 26 February 2014

Missing gnu-efi

Error when include -lgnu-efi library?

To do any EFI compilation, you'll need the gnu-efi library installed.

1. git clone https://github.com/vathpela/gnu-efi
2. cd into the directory
3. make
4. sudo make install

or better if you using Fedora
1. sudo yum install gnu-efi


After all that, check in the directory /usr/local/lib, ensure the libefi.a and libgnuefi.a is there.
If not, when you compile using the string -lgnu-efi and -lefi, it'll complain library not found.


Signing with own keys on EFI files using sbsigntool


  1. git clone https://github.com/wmarone/sbsigntool
  2. ./autogen.sh      (this will work provided you are not behind firewall that filter out git:// access
      1. After unzip at linux host (tar -xvf sbsigntools-0.6-debian.tar.gz)
      2. Run ./autogen.sh
        • Error regarding git can be ignore as you already have those files (ccan)
  3. ./configure
    • At this stage, there will be lots of dependencies. Be patience as you add and install those.
        • There are lots of dependencies on the CPAN Perl script
          • Do this first: ( to get most of the dependencies fixed)                        
            • sudo yum install perl-CPAN
          • (1/5): perl-ExtUtils-
            (2/5): perl-Test-Harness-
            (3/5): perl-CPAN-1.9205-
            (4/5): perl-ExtUtils-MakeMaker-
            (5/5): perl-devel-
            
          • The above fixes error such as 
            • Can't locate /xxxx.pm in @INC (@INC contains
          • Some of the issues encountered:

          •  File-Slurp (It is needed for use File::Slurp qw( ))
            • Download: Link
            • untar and cd into directory
            • perl Makefile.PL
            • make
            • make test
            • sudo make install
          • uuid package missing
            • sudo yum install libuuid-devel pkgconfig
          • libcrypto package missing
            • use command to verify if it is installed and detected by the package
              • pkg-config --libs libcrypto
              • If correctly configure: return result is -lcrypto
            • Fixes: 
            • sudo yum install openssl-devel
            • sudo yum install openssl
  4. Once it passes all the checkings 
    1. Do command:
      • make 
      • sudo make install
Congratulation, your sbsigntool should be installed and operation now.


How to install and git openssl?


Need to generate Public and Private key?
Do some encryption?


First you need to install Openssl!!


  1. git clone https://github.com/openssl/openssl
  2. cd to the new directory created
    • view (vi) INSTALL (For instruction how to install)
  3. Basically command needed is:
    • ./config
    • make
    • make test
    • make install

If you encounter issue when installing sbsigntool in the next step that:
Probably you need to do the following as well:
  • sudo yum install openssl-devel-1.0.0i-1.fc17.i686
If got error on libcrypto not found:
Check using: pkg-config --libs libcrypto

  • Good Result: -lcrypto
  • Bad Result -
    Package libcrypto was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libcrypto.pc' to the PKG_CONFIG_PATH environment variable
    No package 'libcrypto' found
Solution:
  • Try CMD: locate libcrypto
  • Need to have: 
    • /usr/local/ssl/lib/libcrypto.a
    • /usr/local/ssl/lib/pkgconfig/libcrypto.pc
    • /usr/lib64/pkgconfig/libcrypto.pc
    • /usr/lib64/libcrypto.so
    • /usr/lib/libcrypto.so
     

How to compile your own Grub


How to get and build/compile your own GRUB?

First, get the GRUB from the GNU site:
ftp://ftp.gnu.org/gnu/grub/grub-2.00.tar.gz

Then copy to your linux machine and unzip it:

  1. zcat grub-2.00.tar.gz | tar -xvf -cd grub-2.00/
  2. cd grub-2.00/
  3. ./configure
    • Here will require to install those missing package
    • FEDORA: sudo yum install <pkg> 
      • i.e. bison, flex and more
  4. After configure passes all criteria
  5. make install

How to get a GRUB.efi for UEFI Shell launch

  1. sudo yum install grub-efi
  2. Copy grub file from: /boot/efi/EFI/redhat/grub.efi


Monday, 24 February 2014

ART vs Dalvik: One feature that worth to upgrade to Android KitKat

What is ART?
Since the beginning of Android OS, it has been that Android is using Dalvik machine. It is used to compile apps stored in the Android device. It compile at the moment you want to launch the app. It uses JIT (Just In Time) compiler to compile the Android app as you click the app.

Benefit of course is storage size is less for the device. It is storing in a more compact format.
Major draw back for this is, it'll takes a bit to compile and also, it consumes more battery power.

Since now, storage has become much cheaper, Google is working a new runtime program that will compile the code once you install. (One time only ART compare to previous Dalvik Virtual machine (VM) where every time you launch the app.

After two long years, it has been implemented on Android Kit Kat 4.4 OS. However, this is classify as experimental. It is still work in progress. Now it is giving for early developer and partner feedback.

How to do it?

Requirement: Kit Kat device (Android 4.4 or higher)

1. Enable Developer Options

  1. Pull down notification shade by sliding down from the top of the device
  2. Tap the Quick Setting icon at Top Right
  3. Tap the Gear icon to go to Setting
  4. Tap "About Phone"
  5. Continuously tap Build number over and over until it says you are a Developer
  6. Hit Back
  7. Tap on Developer option that just appeared above "About Phone" and turn them on
2. Enable ART Runtime
  1. Tap on Select Runtime in Developer Options
  2. Select "Use ART"
  3. Tap "OK"
  4. Wait for the device to reboot (this may take a while the first time)
  5. Enjoy faster and much more battery life's device.
Google claim battery saving using ART as well as faster execution. 
Note: Storage takes up 10 to 20 percent more space on your on-board storage, but allow them to open faster


Take a break with Kit Kat Device :)

Friday, 14 February 2014

How to use dos2unix, with example for the whole folder

If you always copy files from Window OS to Linux Based OS, and do compilation, you will always hit into this issue.
Where some weird error would occur, and it might complaint some weird symbol or text.

This is because when you copy from Window to Linux, the file format might not changed, depends on which tools you used to do the transfer.

Best way to ensure not to encounter any strange or weird issue due to Window file's format. Do the following command after you have FTP or copied the files over.

find . -type f -exec dos2unix {} \;
This will do recursive conversion of everything in the current folder and all its sub-folders.

If you just want to convert specific folders only. Replace the <folder> with your folder's name. Example below:
find <folder> -type f -exec dos2unix {} \;
i.e.  find myfolder -type f -exec dos2unix {} \;
That's it. Happy Coding.

Sunday, 9 February 2014

How to encrypt and zip in Mac OS

Neat trick without installing any software on Mac OS

Whenever you send files over email you are recommended to zip and encrypt your files.
This is giving a basic layer of protection for your privacy and also, you don't want your product's info get stolen and used by your competitors right?

Here's how to zip and encrypt:
1. Cmd + Space = Type "Terminal" and press enter
2. cd <path>     //to the path your file is at.
3. zip -e [archive file name] [files to zip]

To encrypt multiple files in a whole directory or folder:
zip -er [archive file name] [files to zip]

Example:
zip -e zippedfile.zip filetozip.txt
zip -er zippedfile.zip ~/Desktop/MyWork/

Enter password of your choice twice and you are done.
Attach the file to your email or store it in your upmost secure drive.



To unzip:
Can be done in Window or Mac.
In Mac OS X or other version, type unzip filename.zip

Finalized your baby's name? Time to register at JPN

These information I can't find online. I only managed to know all these at the counter at JPN. Jabatan Pendaftaran Negara, in Malaysia. The officer was kind enough to let me know however I had to run around and spent unnecessary money photo stating at the nearby shop which charges outrages fees for a piece of photostats.

REQUIRED DOCUMENTS (ORIGINALS AND COPIES)

Confirmation of birth form from the hospital or certification of home birth from the midwife/doctor (original); 
Birth registration form JPN.LM01 that is completed; (ORI) (hospital provide and Fill it up while waiting for delivery)
Blue book - page 8 and cover (ORI and photostate)
Hospital book - page 7 (ORI and photostate)
IC (identification card) - father and mother (ORI and photostate)
Marriage cert (ORI and photostate)
Appointment card - day 1 till birth -  ORI and photostate (front and back)

FORGET TO photostate, 1 copy is RM0.20 nearby photostate copier.
I suggest you photostats all the require documents from home and bring along in your delivery if possible.

Breakdown to child's and parents documents


CHILD’S DOCUMENTS (ORIGINALS AND COPIES)
 1.    Birth registration form JPN.LM01 that is completed;
 2.    Confirmation of birth form from the hospital or certification of home birth from the midwife/doctor (original);
 3.    Prenatal card (maternity examination book) (original and copy); and
 4.    Child’s health and immunisation card (original and copy)  

PARENTS’ DOCUMENTS (ORIGINALS AND COPIES)
  1. Identity cards or entry permits or passports of the parents and the person reporting the birth (originals and copies);
  2. Marriage or divorce document or death certificates of the parents (originals and copies)
INFORMANT’S DOCUMENT (ORIGINAL AND COPY)
  1. Identity card or entry permit or passport (original and copy)

In Penang, there are a few branches. This is the headquarter. (opposite KDU college)
Jabatan Pendaftaran Negara 
Aras 3, Bangunan Persekutuan
Jalan Anson
10400 Pulau Pinang
Tel: 04-2265161/2558
Fax: 04-2269320
Office hour/ Operating Hour
Monday-Friday 7.30am - 5.30pm
Saturday and Sunday 8am - 1pm

Yes, they open Saturday and Sunday too!!!






Baby due, but what should a Dad be prepare to do?

Baby due after 9 months plus...
Time seems to be very slow the first few months... After mid point, time start to pick up speed and before you know it, due date is just around the corner.

As a Dad or husband, you will be asking what should I be preparing? Most guide online tell you about what a mom or pregnant lady going through but they fail to tell you what a dad/husband should be prepare for. Well, from experience, here it is:



1. Transport director

Be prepare with your car, or transport to the hospital. Check your petrol/gas to ensure it is at least half full.
Check backup car or driver, just in case, for a small chance that your vehicle is not operating at that very crucial moments. This is where your neighbor are your best bet.
Do note also, route to hospital is crucial. Must have at least three routes to the hospital. If you are even paranoid, you can even have a backup hospital in case it is really really too late.
Recently, my wife EDD expected due date came and it was very close to the famous Thaipusam festival. If you are in Penang, you will know when this happen, the roads nearby the Botanical Garden will be closed down. And mine hospital is Penang Adventist. With the road close, we had to use alternative route. And my GPS is on standby as well. Lucky, my little one came out after the festival.

2. Banker

When your baby is due and you arrived at the hospital. Wife will go to examine in delivery room or emergency room or at your prenatal check's doctor to ensure it is real contraction and you however will be rush to the cashier / admission counter. You will be require to pay the full payment of 3 days 2 night stay package before you even see the delivery suite. If you visiting your OG GY/ prenatal doctor, make sure you tell nurse, you need to see doctor as you suspect real contraction is happening. You'll get priority first.
Things to prepare:

  • Your identification card  (IC or passport for foreigner)
  • Wife identification card  (IC or passport for foreigner)
  • 2 credit cards ( in case one is over the limit)
  • O&G prenatal checkup Appointment card 
Image courtesy of hin255/ FreeDigitalPhotos.net

3. Massager ( Masseur)

During labor, while your wife having contraction pain, for some reason, when baby is been squeeze by contraction, it is pushing against your wife's back. Her back will be in extreme pain. Your job? Your job is to massage her back the whole time she is having contraction.  This is extremely reliving for your wife. 
This is your almost only contribution as a loving husband.

4. Motivator 
Focus on her breathing 
This is really crucial during the 1st and 2nd phase of labor. Once she feel pain, she will naturally tense up her whole body. This does not help but causes more pain for her. What you can do is breath long deep breath with her. Ask her to focus on her breath. This relieve the pain better than the laughing gas.

Reassure her
Confirm her confidence. "you can do it" "you can handle it" and last stage is always the famous "I can see the baby's hair, continue pushing"
On this item, I must confess, the mid-wife did a wonderful job here. She keeps reassure her that she can do it, It's almost done. I believe a mid-wife attitude and support is very important for a delivery. Mid-wife was there from 10am till 7pm, but doctor only comes in for the last 30mins.
Doctor for skill in completing it, and mid-wife for motivator and the friend you need during the long hours of labor. I must compliment that Penang Adventist Hospital's mid-wife for being very supportive, very helpful throughout the labor. Thanks, you all have made our life much better. :)

Last but not least, relax and enjoy the process. Be cool and calm. Go to hospital around 10mins apart contraction if your hospital is within half an hour away. Even then, there are plenty of time. Even if your wife's water bursted, you still have 24 hours to deliver the baby. So no rush, take slow and steady drive. Safe for baby, your wife and everyone else on the road. Also, always consult your doctor as your doctor know your wife best.

Happy delivery! 
Leave comment if anything is unclear.
Hope this have been helpful for you.