Blog

POW – Disarm A Bomb with Water

You are police officer who just showed up to a crime scene where the instructions for disarming a bomb are left.  The bomb is sitting in front of a large fountain of water.  Also, two large bottles are near the bomb.  One bottle has a capacity of 5.2 gallons while Read more…

By Chris West, ago
Blog

POW – True, False & Random

This Problem of the Week is another logic problem. It is a variation of the famous puzzle off of which the True and False POW was based. The answer to this question will not be revealed until Sunday at 12:00 AM EST can be found here. Problem of the Week You Read more…

By Chris West, ago
Blog

POW – Unnamed Function #1

This Problem of the Week involves determining the identity of a well-known mathematical function by examining the algorithm used on the input number to produce the output.  The function will only accept integers that are greater than or equal to zero. The following is the mathematical definition of the function: Function Definition Condition Read more…

By Chris West, ago
Blog

POW – Working Together

Both Don and Juan and are given a task on which they must work together to complete in a timely fashion. It takes Don 75 minutes to do the job by himself. It takes Juan 60 minutes to do the job by himself. At their speed, how long would it Read more…

By Chris West, ago
Blog

JavaScript Snippet – RegExp.prototype.clone()

There have been many times when I needed to simply modify the flags (options) for a regular expression in JavaScript. Unfortunately, the global, ignoreCase, multiline, and sticky (for FireFox) flags are immutable. In addition, when creating a new regular expression from an old one, you can’t supply a regular expression Read more…

By Chris West, ago
Blog

JavaScript Snippet – getAbsPathFor()

Mission & Code Sometimes you just need a way of determining the absolute path from a specified relative path. When you are in this situation, you may use the following code: Parameters relativePath:The relative (as a string) that you would like to retrieve the corresponding absolute path for. Example To Read more…

By Chris West, ago