Posts

Showing posts from October, 2016

A Simple Door Alarm Using a Clothes Peg

Image
This is a short YouTube video from DrScrew channel that shows you how you can make a simple door alarm with items lying around your house. Below is the video from their YouTube channel and if you have a slow connection, I have screenshot some of the important steps on how to make the alarm. How to make a simple door alarm by DrScrew Video Screenshots First, you will need a spare clothes peg like this one above. Then, you will need a glue gun. Using the glue gun, glue 2 AA batteries onto the peg, one on both side just like what is shown above. Drill a hole through the tip of the peg. Fix a small screw into the hole. Prepare your buzzer for soldering. You can use any buzzer you can find from your old mother board or old electronics appliances that have one. Glue the buzzer to the peg. Solder the buzzer wires to the tip and to the battery terminal. Solder a wire to connect the 2 batteries terminal. Please note the polarity of the battery. Solder the other tip with a wire and connect to t

Life Hacks

This is the table of contents for all blog posts related to daily life hack ideas. Note: This table of contents relies on Javascript.If the table of contents below does not appear, it is most likely you have disabled your browser Javascript. Please enable it back to view it.

A/B Testing Javascript

Image
This is the A/B testing javascript that was published by Google Adsense team in their blog . I find it quite useful for testing other than Adsense ad units. I saved it here for my easy access in case I need it. Who knows the post in their blog might get deleted in future. <script type="text/javascript">     var random_number = Math.random();     if (random_number < .5){         //your first ad unit code goes here     } else {         //your second ad unit code goes here     } </script> There is another example found at the Google Adsense Help page and the code looks like this: Synchronous ad code: <script type="text/javascript">     var random_number = Math.random();     google_ad_client = "ca-publisher-id";     google_ad_width = 728;     google_ad_height = 90;     if (random_number < .5){         google_ad_slot = "1234567890";     } else {         google_ad_slot = "2345678901";     } </script> <script

Janda Baik to Gunung (mount) Nuang Hiking Trail

Image
Trail Map Elevation Profile Trail Details Distance : 8.52km Max Altitude : 1496m Elevation Gain : 1136m Estimated Hiking Duration : 8 hours Download GPX file