Displaying the most recent of 41 posts written by

Russell Shilling

One more Javascript function

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 […]

Perfect Hard-boiled Eggs

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 […]

Javascript functions for numeric input and output

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 […]

Building a Large Curved Trestle on a Grade – Part 6

Assembling a Trestle Section Construction Jig To accurately position the bents I created a construction jig. I created a full-size CAD drawing that I had printed at Staples as shown in Figure 1. The bottom view is the one I will use to position the bents properly, as I am building this “upside-down,” much like […]