Test Lighting in a Room

When deciding on lighting for a particular room, it helps to see how light from different types of light bulbs placed at different locations will look, e.g. do you want a bunch of spot lights or a few flood lights? Below is a simple setup showing how you can attach lights to your ceiling for testing purposes.

Buy these long pendant lights. They’re available on Amazon for $13 for a pack of two.

Continue reading Test Lighting in a Room

CSS Transitions / Animations with Different Easing Functions

Animating elements can be done simply with linear speed. However, you can achieve some very interesting effects using different bezier curves. Many popular easing functions and how to use them can be found at Eastings.net. If that’s not enough, you can play around with creating custom easing functions at Cubic-Bezier.com.

Continue reading CSS Transitions / Animations with Different Easing Functions

Fasting to Cure Diabetes, Hypertension, Cancer, Arthritis and Other Diseases

Apparently, fasting for 2 to 3 weeks while only drinking water can oftentimes permanently cure diseases like diabetes, hypertension and rheumatoid arthritis. It can also expedite the curing of cancer and other diseases. You basically starve the cells causing the disease. This extreme type of fasting must be done in a supervised environment with doctors checking your health periodically.

Some water fasting clinics include

Watch the full 1-hour documentary at https://www.amazon.com/Science-Fasting-Sylvie-Gilman/dp/B075848T5T.

The first 3 days of water fasting are the worse but afterwards, people don’t feel hungry anymore and they begin to actually feel good. The body then adapts and gets detoxed. Headaches may occur.

Continue reading Fasting to Cure Diabetes, Hypertension, Cancer, Arthritis and Other Diseases

Native JavaScript: Event Handling of Dynamic HTML Elements

In jQuery, if you dynamically add an element to the DOM and want to attach an event handler to it, that’s very easy with the following line of code.

However, if you try to do that with native Javascript, you have to do with by checking for all clicks on the page and only acting on clicks where the click occurred on the element you want to act on.

Obviously that’s no good. One workaround is to put the HTML element in the page somewhere(if that’s possible in your case), then detach and attach it to where you want to dynamically put it, then add an event listener specifically for that element, e.g.

Blend Two Audio Clips Seamlessly Using Audacity – Cross Fade

Let’s say you want to mix two songs together with a seamless transition from one song to the other. Or, let’s say you want to strip out sections of a song and create a seamless transition between the sections you like. This can easily be done using the Crossfade Tracks effect in Audacity.

  1. Add a new stereo track
  2. Paste the second audio song or clip into the new stereo track so you end up with song / audio clip 1 on track 1 and song / audio clip 2 on track 2.
  3. Select the sections of both tracks where they overlap and choose Effect > Crossfade Tracks.
Continue reading Blend Two Audio Clips Seamlessly Using Audacity – Cross Fade

Home Sound System Setup Using Bose

I recently experimented with sounds for my living room and came up with the following setup. Here’s my setup and the reasons for it.


  • Bose SoundTouch 300 Sound Bar: $700
  • Bose Acoustimass 300 Subwoofer (Bass Module): $700
  • 1 Pair of Bose SoundTouch 10 Speakers: $330 (at Costco)
  • 1 Pair of SoundXtra Wall Mounts For Bose SoundTouch 10 Speaker: $70 (on Amazon)

Sub-Total: $1800
Tax: 10% ($180)
Total: ~ $2000

Note: I haven’t bought the Acoustimass yet because it’s pretty expensive. However, I have tested it and it sounds great when your sound source contains bass.

Continue reading Home Sound System Setup Using Bose