I got permission from the boss to build a garden railway in our backyard largely because I am going to put it in the previously uncivilized portion of the yard. So, step one is to civilize the wild parts. A couple of years ago, I began an ivy eradication project. There must have been 1,000 […]
This function will format a value expressed as feet (with decimals) into feet and inches. // Convert feet (decimal) into feet and inches function toString(value) { var abs = Math.abs(value); // Round to nearest 0.1 inch var rounded = Math.round(120 * abs) / 120; var feet = Math.floor(rounded); var inches = 12*(rounded – feet); return […]
Place eggs into salted water that covers them by at least 1/2 inch. Bring to a good boil, remove from heat and cover them. Let sit for 15 minutes. One of the eggs developed a tiny crack, and lost some white. No problemo! After they have cooked, drain the hot water and use ice and […]
As a part of a calculator for model railroad stub switches, I developed a couple of javascript routines for input and output that allow more flexibility than the standard implementation. This function converts to text for display from a numeric value, with a variable number of decimals, removing extra trailing zeroes. It also converts the (default […]
