Showing posts with label efficiency. Show all posts
Showing posts with label efficiency. Show all posts

Tuesday, June 16, 2026

Add Chopsticks to Your Toolbox

Have you ever tried to retrieve a small part from deep within a chassis? You might've wished you had a long slender pair of tongs, pliers or tweezers to reach down and grab it with. You do. That tool is a pair of chopsticks.

It helps if you know how to use chopsticks, but don't worry if don't. It's easy to fashion them into a pair of "tweezer-sticks" as shown in Figure 1, below. All you need is an elastic band (aka rubberband) and a make-shift fulcrum, such as the wrapper the chopsticks came in (rolled up into a compact wad).

Tweezers made from chopsticks, a rubberband and a wad of paper

I've used this tool to...

  • get a pebble from out of a garbage disposal
  • pick spent blossoms, a Maple tree seed or a hungry beetle from potted plants when the growth is too dense to get my fingers through
  • remove part of a Pop-Tart from a toaster (Figure 2)

Half of a mangled poptart plus a sign that requests help to rescue the other half from the toaster both in front of a toaster

I have, in fact, used a pair of twigs for a crude application of this idea, such as when I picked up a dead mouse that was in a flower bed.

But if you need to remove a wedding ring from the glowing coals of a charcoal grill, be sure to soak them in water beforehand.

Monday, April 20, 2026

Small Wins -- What Can You Do In Five Minutes?

During a networking presentation, the speaker spoke about Small Wins. I liked the idea of filling in spare time by engaging in partial tasks that can lead to a big goal. The idea is to make a list of tasks you can do in five minutes. That way you can be ready for those spare moments that popup.

While the tasks are “supposed to be” in support of a goal, I prefer to figure out what I can do in five or fifteen minutes. For real. I might think I can shave my face in fifteen minutes. But in reality I can achieve that only if I don’t bother to:

  • wait for the water to heat up
  • foam up the shaving soap with the brush
  • thoroughly clean up after myself

I need 20 minutes for my complete shaving process.

I‘ve included below my list of five-minute “wins.” In some cases I’ll need to have materials or supplies nearby to achieve them. For example, in order to water plants, I keep bottles of water near a few of my thirstier plants.

Items at the bottom of the list in square brackets are for 15 minute gaps.

  • Water a plant
  • Drink a glass of water
  • Splash cold water on my face
  • Make tea
  • Do a breathing exercise
  • Do pushups
  • Chill out
  • Compare my online calendar with my weekly planner
  • Play Wordle or Connections [occasionally I’ll need 15 minutes for this]
  • Wipe down a counter top or table top
  • [Load / unload dishwasher]
  • [Make coffee]
  • [Brush the cat]
  • [Do crunches]
  • [Take a quick walk around the yard]
  • [Weed the garden]

Here are some links to review:

Friday, March 06, 2026

The Perpetual Calendar -- All You Really Need, Perhaps

The first day of the year can fall on only one of the seven days of the week. This year, 2026, started on a Thursday. Last year, 2025, started on a Wednesday; 2027 will start on a Friday. 2025, Wednesday; 2026, Thursday; 2027 Friday. So why bother buying a new calendar every year? Some people don’t; they use a Perpetual Calendar 1 instead.

If there were only 364 days in a year, we could keep using the same calendar each year. The number 364 is evenly divisible by 7; there are exactly 52 weeks in that hypothetical year. But that one extra day in our year forces us to have a calendar for each day of the week.

What about leap years? They occur once every four years and have 366 days. We have to “skip over” a calendar every four years. For example, the calendar for 2028 (a leap year) will start on a Saturday. The following year will start not on Sunday but on a Monday.

Thus we need fourteen unique calendars; seven have 365 days; seven have 366, owing to the addition of February 29. This is what some refer to as “The Perpetual Calendar.”

Unfortunately, if you want to keep track of religious holidays, you’ll have to pencil in all those holidays whose schedules follow the lunar calendar 2. And this involves more than figuring out the date of the Lunar New Year (aka Chinese New Year). Dates of holidays in the Abrahamic religions 3 (sometimes referred to as Judeo-Christian religions 4) also are based on the lunar calendar. This includes Christianity 5.

So is the Perpetual Calendar the only calendar you’ll ever need? That’s for you to decide.


1 https://en.wikipedia.org/wiki/Perpetual_calendar
2 https://en.wikipedia.org/wiki/Lunar_calendar
3 https://en.wikipedia.org/wiki/Abrahamic_religions
4 The term “Judeo-Christian” ignores Islam, so I looked for a more appropriate term. See https://www.draslamabdullah.com/post/the-judeo-christian-tradition-history-paradox-and-political-construction
5 Yes even Easter requires reference to the lunar calendar. It falls on the date of the first full moon after the Vernal Equinox, roughly speaking. See: https://en.wikipedia.org/wiki/Date_of_Easter

Saturday, February 07, 2026

Solid, Liquid, Gas

Liquid meals serve a pseudo-medical purpose: to provide nourishment to people who cannot tolerate solid food.  Energy drinks and gels (aka Nutrient Goo) fill a need for endurance athletes.  But in 2013, Soylent was introduced and marketed to people who are simply too busy to prepare and chew food.

As we transition from consumption of solids to liquids, I wonder how long it will be before a "Nutrient Gas " will allow people to breath in their meals. Being already in a gaseous state, will these "meals" facilitate our body's need to fart?


Soylent on Wikipedia
Review of Soylent

Wednesday, August 06, 2025

Cold in Summer; Hot in Winter

Why do most folks set their thermostats lower in Summer than in Winter?

I’ve seen summer settings at 68°F (20°C), while winter settings are at 75°F (24°C).  What do they expect the HVAC system to do when it senses an indoor air temperature of 72°F (22°C)?  Should it heat the room?  Cool it?  It’s a paradox.

Engineers who design thermostats have a simple solution for this paradox – they let the user figure it out.  They provide a Cool/Warm setting, which tells the device which setpoint is active.

This doesn't make sense to me.  Not only is it a paradox, but it defies the way people perceive air temperature.

For example, if it’s 18°F (10°C) cooler inside than outside, you should feel much cooler when you step inside. So if the outside air is 91°F (35°C), you should feel much cooler with a summer setting of 77°F (25°C).  And if the humidity is even slightly elevated, it will feel even hotter outside and cooler inside.

Similarly, if it’s 36°F (20°C) warmer inside than outside, you should feel much warmer when you step inside. So if it’s freezing cold (32°F or 0°C) outside, you should feel much warmer with a winter setting of 68°F (20°C).

But it seems that people no longer trust themselves to acclimate.  Heat has been a standard offering in automobiles for over 50 years – it’s free, a by-product of the combustion engine.  The default setting in wintertime is maximum heating, even though the riders wear coats.  And nowadays, nearly every automobile has air conditioning, and the default summertime setting for it is maximum cooling.  Climate control in automobiles mostly is “open loop,” meaning that the system does not monitor the air to see whether the setpoint has been reached.  It just keeps heating or cooling.1  This is in opposition to indoor heating systems, which are closed loop.

The other drawback to the “low setpoint in summer, high in winter” method is that it’s more wasteful.  It’s like biking uphill into a headwind.

Here’s where I brag about the setpoints I use – feel free to roll your eyes.

In summer, I’m fine with the window units set to 77°F (25°C).  However on cool humid days, I might switch the units to dry mode, even though it doesn’t work as well as a dehumidifier.  In Winter, I use a setpoint of about 64°F (18°C).  Plus it drops an additional 2°C (or 3.6°F) at night in “setback” mode.2  Usually I get up before the furnace turns itself back on, so I experience a warming as I prepare tea / coffee, feed the cat, etc.  That slight warming helps me acclimate to Winter.

Would you like to save money and reduce your ecological footprint?5  Then try this:

If you live alone, try a higher setpoint at home in summer.  Wear a light sweater at work or while shopping.  Limit the use of A/C in the car.  And in winter, do the opposite.  Try setting a lower setpoint at home, dress lightly in layers.  When in the car, remove outerwear and limit the use of heat.


1 Some luxury cars provide closed loop climate control.  Indeed, I drove an old Audi whose heat and air conditioning seemed to stop working after about twenty minutes.  I don’t really know whether they were closed loop or was just broken.  Either way, it was difficult to get used to the effect.

2 It’s a German-made boiler, which means the fundamental temperature units are Celsius.  It provides a Fahrenheit display for most things, but not for the setpoint, which is “programmed” by setting DIP switches 3 on the thermostat’s circuit board.

3 A DIP switch 4 or Dual In-Line switch is really a set of switches packaged into the standard outline of an IC. And while ICs have gotten 60% smaller over the past three decades, DIP-switches have retained the same bulky outline of the chip packages they were modeled after.

4 https://en.wikipedia.org/wiki/DIP_switch

5 What is Ecological Footprint?  Click here: https://en.wikipedia.org/wiki/Ecological_footprint

6 Try the footprint calculator at https://www.footprintcalculator.org/

Saturday, February 03, 2024

Excel VBA -- Named Range Automation

A few weeks ago, I was working with an Excel workbook that had 18 sheets that were similar in structure. Half the sheets had names L1_1, L1_2, … L1_9; the other half, R1_1, R1_2, … R1_9. They contained dimensions of structures on the left and right of a substrate.

I wanted to display a summary of a few averages from each sheet on a new sheet. I knew this would involve the tedious process of selecting a range of cells for each average, so I decided I would write VBA code to create a named range for each group of cells that I wanted averaged.

I turned on the Macro Recorder and then manually created the range so I could get some idea of what object and property to set. It recorded this:

    ActiveWorkbook.Names.Add "PGC_1”, "=L1_1!$D$3:$D$84"

This told me that the Add method of the Names collection would require the Name and the Address of the desired named range.  And so I wrote this subroutine:

Sub CreateNamedRanges()
Dim objN As Name
Dim i As Integer, s As String

For i = 1 To 9
s = CStr(i)
ActiveWorkbook.Names.Add "PGC_" & s, "=L1_" & s & "!$D$3:$D$84"
ActiveWorkbook.Names.Add "PGL_" & s, "=L1_" & s & "!$D$190:$D$376"
ActiveWorkbook.Names.Add "PTL_" & s, "=L1_" & s & "!$D$101:$D$173"
ActiveWorkbook.Names.Add "PGR_" & s, "=R1_" & s & "!$D$190:$D$376"
ActiveWorkbook.Names.Add "PTR_" & s, "=R1_" & s & "!$D$101:$D$173"
Next i

For Each objN In ActiveWorkbook.Names
Debug.Print objN.Name, objN.RefersTo
Next

End Sub


But the code crashed on the fourth Add method; it complained about an invalid address.

It didn’t make sense. I looked carefully at the fourth Add method. There were no illegal characters or trailing whitespace or other pitfalls. I found references to the error online, but none of the content pertained to what I was working on.

Eventually it dawned on me that perhaps Excel was confusing the “=R1_” & s as an R1C1 style address. Perhaps I needed to make sure it knew that “=R1_” & s was a sheet name. And so I placed two single quotes in each address: one right after the equal sign, and one right before the exclamation mark, like this: "=’R1_" & s & "’!$D$190:$D$376"

After this correction, the code ran quickly.

Monday, December 25, 2023

Results From the Cold Water Experiment

Soon after COVID-19 arrived in USA, infectious disease experts were motivating us to wash our hands. I’d hear (paraphrased) “It doesn’t make a difference if you use warm water or cold, just wash them.” 1

Then oil prices rose, and it cost more to run the furnace for heat and hot water.

And the pièce de résistance was from a mental health webinar that said cold showers produce a rise in dopamine (among other feel-good neurotransmitters). 2, 3

This trifecta of accolades for cold water motivated me to cut back on hot water use. Besides, I’ve always looked for ways to reduce my Carbon Footprint. 4

So I used only cold water to wash my glasses, hands and face and to brush my teeth. I still used warm water for showering and shaving, though.

One immediate benefit was that I spent less time at the sink – I didn’t have to wait for the warm water to reach the faucet.

Then, when the oil was delivered, I was amazed to see that we needed about 40% less to fill the tank.

As for my mood, I feel pretty good considering it’s the bleakest time of the year in New England.

However, one side effect was pointed out to me during a recent screening for skin cancer. I mentioned that my fingertips were “taking a beating” in the cold weather. The dermatologist diagnosed me with Raynaud’s Syndrome. She suggested that I see a cardiologist or vascular specialist who might prescribe a vasodialator. “In the mean time, keep your hands warm. You can get thin silk gloves to fit under your regular gloves.” I decided not to mention that:

  • I do not wear gloves;

  • I keep the house at 66 F (19 C);

  • I wash my hands with cold water.

All of the above results in vasoconstriction.

I’ve had cold hands for as long as I can remember; my mother taught me to wash my hands with cold water. I believe she was trying prevent me from getting scalded if I accidentally turned on the hot water too much.

As a young adult I read about how Vitamin E is good for blood circulation; 5 I figured it would improve blood flow to my hands, so I started taking it when I was a young adult. It did help. As a less young adult, I switched my breakfast from cereal and milk to almond butter and blueberries on rice cakes. Almonds are naturally high in Vitamin E, so my hands continued to feel well. But I heard that almond trees require a great deal of water, and truckloads of bees were needed in order pollinate them. And then I jumped on the “supper is the new breakfast” bandwagon.

I just started taking Vitamin E again last week; already I feel some improvement in my hands. I wonder if it will keep my blood pressure down, too.

1 https://www.cdc.gov/handwashing/faqs.html

2 https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9953392/

3 https://www.bbc.co.uk/programmes/articles/4Q1s9Tyb9ZZmyqZhQk489FS/why-we-should-all-be-taking-cold-showers

4 https://www.nationalgeographic.com/environment/article/what-is-a-carbon-footprint-how-to-measure-yours

5 https://www.faim.org/the-great-antioxidant-vitamin-e


Saturday, March 25, 2023

Nearly Wasted Lotion

Here's what I found at the bottom of a bottle of lotion -- the pump tube ends about an inch from the bottom!  I have enough to last for another two weeks!

Friday, December 23, 2022

CLCL Customization for Emacs

Way back in 2017 I wrote an introduction to CLCL1, the clipboard manager that I prefer.  That post described how to add the supplementary Edit tool.  Today I’ll describe how to make CLCL work with Emacs.

By default, CLCL is set up to “listen” to the keystrokes Ctrl-x and Ctrl-c for pushing a selection to its stack of clipboard items, and Ctrl-v for popping the latest item into the focused application.  But Emacs’ standard keystrokes are Ctrl-w for “cutting,” Alt-w for “copying,” and Ctrl-y for “pasting.”  The terms “cutting,” “copying,” and “pasting” are in quotations because Emacs uses “killing” for “cutting” and “yanking” for “pasting.”2   And the keystrokes are described in Emacs-speak as C-w and C-y respectively.  The Emacs function “kill-ring-save” is like copy; it’s bound to M-w on my system.3

Anyway, to get a CLCL item yanked into the Emacs buffer, I add the Ctrl-y keystroke to CLCL.  You can do this on the Key tab of the Options dialog while Emacs is open.  Here's how.

Click the Add... button and scroll the Present Window List until you find a row whose title matches the text in the title bar of your Emacs application.  For me, that’s “GNU Emacs 25.2.1: *scratch*”, which is shown highlighted below.  Select that line and then click the down arrow button (or just double-click the line) to transfer the settings into the edit portion of the dialog box.


The Emacs title bar may include the name of the buffer.  In my example, that’s “*scratch*.”  But since the buffer name will vary, we need to replace it with the asterisk wildcard.

Click in the textbox below Copy and press Ctrl-w.4  Likewise, click in the textbox below Paste and click Ctrl-y.  The dialog should look similar to the one below.  Note that CLCL shows uppercase versions of W and Y in the Copy and Paste boxes; if you had pressed Ctrl-Shift-W it would display Ctrl + Shift + W instead.  OK your way out.


Now when you choose an item from CLCL while visiting a buffer in Emacs, it will be yanked into the buffer as expected.

Do you have a CLCL tip that you’d like to share?  Please let me know.  Add a comment below or email me.


1 https://ludditegeek.blogspot.com/2017/11/introduction-to-clcl-tools.html

2 And to further confuse the issue, Emacs maintains it own “clipboard” which is called the “kill ring.”  Somehow, Emacs on Windows will yank from the Windows clipboard or yank from its kill ring depending on which was modified last.

3 Please see https://www.emacswiki.org/emacs/CopyAndPaste for more details.

4 Actually, configuring Copy not not be necessary.  Emacs on Windows seems to kill to the Windows clipboard, and CLCL adds each new clipboard item to its stack.

Tuesday, October 04, 2022

Born to Social Distance

Long before the COVID-19 pandemic, I was getting ready to practice social isolation. I’ve always had an aversion to crowded spaces, and I became practiced in how avoid touching door knobs and handles. This guided me in my prescient preparations.

1. Haircuts. I’ve been cutting my own hair for a few years. I’ve always disliked anyone pampering me, so visiting a barbershop or hair salon every month was uncomfortable. Besides, you’re also expected to make small talk with the groomer. And you either have to call to make an appointment, or you have to sit and wait – both of which are intolerable. Buying the electric shaver and trim kit was a great decision. And it paid for itself within eight months.

2. Paper products. Besides being socially awkward (some might say autistic) I am a cheapskate. I refuse to pay more for something than I need to. So when I buy toilet paper, I wait for the 9- or 12-pack of mega rolls to go on sale and then I buy one. It just so happened that right before all the toilet paper disappeared from the stores in my neighborhood, I bought a “12 pack = 48 rolls”. My wife and I had to conserve TP, but this bulk supply lasted more than eight weeks, and we never actually ran out. Nevertheless, I decided to see what it would be like to have no toilet paper. I found that paper towels felt just fine “down there.” Of course I was careful to not flush the wipe. The other paper product Armageddon that I survived was the other TP shortage: Tissue Paper. No tissues? No matter – I had decided to go cold turkey months ago. I switched to using cotton handkerchiefs. I did this more to lower my footprint than anything else. And napkins? Don’t make me laugh – they’re for slobs and sissies.

3. Shopping. I never go shopping. I go “buying.” I decide that I need something, so I go and buy it. I shop online whenever I can because I can convert credit card rewards into gift certificates that can be redeemed online. The only Brick and Mortar stores I bother with are the supermarket, drug store and Walmart. Occasionally I go to a local hardware store if I’m not sure what I need. Fortunately, all four of these types of stores were designated essential, so I almost didn’t have to change my routine of running errands. The one change I did have to make was to eliminate the weekly trips to the library.

4. Masks. Last year my breathing got progressively more difficult. So I decided that I would use the best possible mask while scooping the dusty litterboxes. In late November (or early December) I bought a two-pack of 3M N95 particulate filter masks. This N95 mask is fantastic. It’s also effective protection against airborne viruses like coronavirus. Cheap surgical masks and homemade masks that the CDC mandates only cut down on the amount of virus you emit; they don’t protect you well from others. Masks are tricky, though, and there’s a special protocol for donning them and removing them. And they’re not meant to be reused. So I use my N95 mask only at home during dusty projects. If I were to wear it out in public, I’d be afraid of getting it contaminated with the virus. So when I go out in public, I wear a cheap surgical mask, which I don’t mind throwing away if I need to.

5. Dentists, etc. All those routine checkups we’re supposed to get have been put on hold indefinitely. That includes the semi-annual dental checkup. I haven’t been to the dentist in a few years, and even when I went annually, there was no need for any work except for a cleaning. Colonoscopies, apparently, are another sham. Eye exams, on the other hand, I would try to maintain.

Monday, July 04, 2022

Simple Washing Machine Improvement

A medium load of laundry had been taking over an hour to finish.  When I watched the tub fill with cold water, it looked like effluence from a down spout during a gentle summer rain shower.

I knew the machine had filters for the water, and I suspected they needed to be cleaned, but I wasn't sure where they were.  It turns out that the filters were easily accessible; all I had to do was shut off the water and unscrew the hoses at the machine.  Then just pull out the filters with a pair of needle nosed pliers.

When I did this, I saw that the cold water filter was extremely clogged with metal bits.  I get a lot of this kind of debris from my well water; it gets trapped in the faucet aerators, too.

I submerged the filter in a small cup of vinegar, shaking it vigorously, until it looked mostly clear.

The next load of laundry went so much more quickly.  An added benefit was that the solid dark clothes no longer were left mottled with a sludge of gray lint.

Have you ever cleaned your washing machine's water intake filters?  Do an Internet search to see just how easy it is!


Saturday, April 25, 2020

Measure Your Laundry Detergent

The cap on a bottle of liquid laundry detergent doubles as a measuring cup.

Most brands instruct the consumer to "fill to line 1 for medium loads." Line 1 on this cap is about 1cm from the bottom, as shown in the photo below.

As well, when you put the cap back on the bottle, the cap and bottle are designed so that any residual detergent that remains in the cup drains back into the bottle.

I thought everyone knew that until the day I saw my wife pouring the detergent directly into the washing machine. Not only do you waste money using more detergent than you need to, the excess detergent produces lots of suds that muck up your drain pipe.

If you want to reduce your ecological footprint, this is one way to do it.

Friday, April 13, 2018

Too Much Soap – Too Much Trouble

The effect of using too much laundry detergent makes for a funny, suds-filled scene in the movies.  But the real problem occurs the next time someone does laundry.  All those suds fill the drain line causing turbulence during the rinse cycle, which leads to an overflowing filler tube and a flooded laundry room.

I’d been trying to get my wife to measure the detergent with the cap according to the label.  But she always felt the need to do it her way.  And her way has been to pour the detergent directly into the washer tub, as if adding creamer into coffee.  We’d usually get some overflow in the drain line, and suds would emerge in the adjacent shower.

It’s for this reason I would always buy the cheapest (most watered-down) detergent.  Unfortunately, one day she decided to buy some ultra-concentrated product.  The flood from repeated washings was significant.

I cleaned it up and then set up an electric heater to dry out what I couldn’t remove.  In order to plug in the heater, I unplugged the washer.  So my wife was prevented from running the washer for a few weeks.  That gave me time to snake the drain line (just in case) and run several wash loads with the correct amount of soap.  After a couple of loads, the machine drained better than it ever had before.  I left it this way for a couple of weeks.  In fact, she got mad about that – she wanted to do laundry herself.  Imagine, someone offers to do the laundry for you and you get mad because you can’t do it yourself!

Eventually she settled down enough that she was willing to show her the proper way to:
1. Read the label.
2. Pour the correct amount into the measuring cup.
3. Pour the measured amount from the cup into the tub.
4. Not rinse the cap under the running water.
5. Load the tub right away with clothes.

The last two points are also important.  If you place the cap under the gushing water, suds will form.  Also, if you don’t put the clothes in right away suds will form.  I actually add the detergent after loading all the clothes, making sure to pour it into the water farthest from the water source.

It was amazing that my wife watched and listened to me patiently while I demonstrated the correct way to do laundry.  I didn’t think it was possible.  But it happened, and it felt like my birthday, Christmas and Father’s Day all lumped into one!  Even more amazing is that she’s been doing a lot of laundry over the past couple of weeks, and we’ve had no overflowing water or subs in the shower.  Still, I’m keeping the ultra-concentrated detergent out of sight indefinitely.

Wednesday, November 01, 2017

Introduction to CLCL Tools

CLCL is the clipboard manager that I prefer.  But it’s lacking in extensive documentation, at least for those who don’t know Japanese.  I figured out how to configure the Tools that it comes with, so I thought I’d share that with you.

This procedure assumes that you already know how to download, install and run the main program.

Download the Tools from http://www.nakka.com/soft/clcl/index_eng.html .  There are two ZIP files (tltxt002_eng.zip and tlutl002_eng.zip, as of this writing) that provide DLLs with the functions that serve as tools.  Copy the DLLs from those ZIP files into the directory in which the CLCL executable resides.  While you’re at the Nakka website, you might as well download the other ZIP files that provide ability to manage as wider range of file formats.  Copy their DLLs, too.  As of this writing, there are two: fmtrtf002_eng.zip; fmtmeta002_eng.zip .

Invoke Tools from the Viewer menu, then choose Tool Setup…


Click the Add… button.

In the DLL textbox, enter the path and filename of one of the tool DLLs, for example, C:\Program Files (x86)\CLCL\tool_text.dll .  If you click the Browse button, you can use a File Dialog box to navigate to and select the DLL.

Now choose one of the Tools to add.  I find &Edit to be useful, so choose that.  OK your way back out.

Now when you press your hot key to call up the clipboard list, you can right-click on a text entry, then click on Edit to open a simple editor to modify the text.  When you’re done, you can click OK to put the edited content onto the clipboard, replacing the original entry.





Use the same procedure to try out the other tools.

Monday, April 27, 2015

Reverse the Order of Worksheets in an Excel Workbook

Today I found myself wanting to reverse the order of sheet tabs in an Excel file.  The VBA code snippet below does just that.

Sub Worksheet_Reverse_Order()
Dim MySheet As Worksheet
Dim i As Integer

For Each MySheet In Worksheets
Debug.Print MySheet.Index, MySheet.Name
Next

For i = 2 To Worksheets.Count
Set MySheet = Worksheets(i)
MySheet.Move before:=Worksheets(1)
Next i

For Each MySheet In Worksheets
Debug.Print MySheet.Index, MySheet.Name
Next

End Sub


Background...
I had been maintaining weekly status updates as Excel spreadsheets, all grouped into one XLS document.  Each week I'd add a new sheet to the right of the previous week's worksheet tab.

But due to a change in workflow, I now have to copy the new sheet into that workbook rather than create it in the workbook.  In order to keep placing the new sheet after all the others, it's necessary to scroll to the end of the list of sheets and select "(move to end)".

"It would be so much easier if the sheets were in reverse order," I sighed to myself.  The thought of dragging them into reverse order manually was, well, unthinkable.  And thus this VBA macro was born.

Sunday, July 06, 2014

Creative Door Repair

The back door of our home never quite opened and closed smoothly. It was necessary to lift the doorknob while closing it in order to prevent the bottom from scraping the threshold.

Very recently the upper hinge pulled completely away from the door frame.  My wife and daughter couldn't finesse the door closed any more.  I re-tightened the screws, but the holes for the screws had widened, so the screw threads no longer had enough wood to bite into.  The hinge wouldn't stay secure for long.

My first impulse was to replace the screws with longer ones of the same diameter.  But not finding any in my collection, I realized I would have to visit the hardware store.

I really enjoy going to the hardware store.  Not the big, nation-wide chain stores like Home Depot or Lowes, though.  I prefer the small, neighborhood shops that seem to carry the odd-ball bits of fixture parts that were used in our neighborhood over fifty years ago when our homes were built.  Our stores are usually staffed by a retired handyman or engineer.  Or maybe the guy just likes hanging out there, giving out free advice without even getting paid for it.

Alas I was too busy to make the trip.  So I busied my mind, thinking of alternative repair options while carrying out the many tedious chores I had to deal with.

My next idea was to plug the screw holes with wooden dowels.  In fact I had many ¼ inch dowel pins left over from an old wood-working project.  I could use those.  But because they were much larger than the screws and the holes, I'd have to drill out the holes first before inserting the pins.  And then I'd have to drill pilot holes into the dowels themselves so that I could get the screws into the pins.  And I'd probably have to use carpenter's glue to hold the dowel pin in place before drilling.

If I had much smaller dowels, I could simply stick them into the holes and jam the screws in.  This would certainly be enough to keep the screws fastened tightly.  But because I didn't have the smaller dowels, I'd have to go to the hardware anyway.

Finally the solution came to me.  I had all the dowels I needed right outside my door!  All I had to do was stroll through the wooded area of our yard to find the right size twig.  Which I did.  It took about 30 seconds.

One oak twig about four inches long was enough to fill all four screw holes.  I broke the twig into four pieces and inserted them into the holes and tightened the screws.

And now the door opens and closes easily, without needing to be lifted, and without scraping the bottom.

This to me is what makes home repair an art form.

Tuesday, July 17, 2012

Putting Water Adhesion and Cohesion to Work

I lost the grommet that allows me to attach a drain hose to my air conditioner.  So I decided to see whether water's properties of adhesion and cohesion would come to my rescue.

I suspended the drain hose below the air condition drain opening.  Then I placed one end of a wet, rolled up paper towel in the air conditioner, touching the drain pan.  I placed the other end into the hose.  The set up is shown below.

Normally, you'd just let the water drip out onto the ground.  But this A/C is installed between a kitchen and a carpeted enclosed porch, and we wanted to keep the carpet dry.

The rig works like a charm.  No spillage.  All the condensate ends up in the bottle, which I then empty into the washing machine or the garden.  In fact it works better than if I'd used a grommet to connect the hose.  With the grommet, the water level had to rise high enough to breach the rim of the grommet.  In fact, I used to put a piece of cotton string in the grommet to help lift the water up over the grommet ledge and into the hose.  Otherwise, the water would leak out all four corners of the pan.

There is some rust forming around the edge of that unfinished knockout.  I'll need to paint that at the end of the season if I don't want the rust to spread.



Friday, July 13, 2012

How I Became Paging System Monitor

One of my unofficial volunteer work responsibilities is that of Paging System Monitor.  This is someone who listens to a page over the public address system and then verifies that the pager hung up properly.  Because if the person does not hang up the phone, no one else can issue a page.

Generally this doesn't happen often.  But when it does, it's inconvenient.  It can be embarrassing, too, if the pager continues speaking, thinking that the conversation is not getting broadcast to all the bosses.

Usually it's an easy job to find the off-hook phone, if the person included the (correct) phone extension number in the page.  When you hear, "Joe Smith please call 73," for example, you can assume that the pager used the phone at extension 73.  Then if the phone was not hung up properly, you (or Joe) can just call it, and that phone should ring on the second line.

But if it's one of those generic announcements, such as, "It's starting to rain.  If you left your car windows open, now's a good time to close them;" or "I'll be rebooting the file server in five minutes.  Please close all open files;" or "Would the janitor please come to the men's room -- it's an emergency.  Please bring a mop," then the process turns into a fun game of deduction.

Well, in the case of the call for the janitor, you can assume that the phone is near one of the men's rooms."  So you can walk over to any nearby office and check the phones.  But if a location isn't implied, then you have to revert to recognizing the sound of the voice and then figure out whom it belongs to.  This is easier than you might think.  In fact, I had a good lesson in grade school in how easy "voice recognition" really is.

We were reading a story out loud, and the plot hinged on a character figuring out who someone was just by the sound of his voice.  I asked the teacher how that could happen, and I expressed doubt that you can know who was speaking to you without actually seeing the person.  So the teacher decided to really convince me.  She invited me to close my eyes.  Then one by one, each of my classmates spoke, and I had to guess who it was.  There were only two out of about 30 voices that I couldn't figure out (and one of them belonged to someone named Joe, in fact).  Yes, the teacher was pretty cool.  But it was Open House Day, and our parents were also in the room.  So I suspect she might not have done this if she weren't showing off for them.

Anyway, once you know who the person is, you can usually resolve the problem by calling his or her extension.  Or you might have to walk around and find the person and then ask which phone was used.  I had to do this recently for an announcement the janitor made about locking up the building.  Usually he locks the building because he's the last to leave.  But since he was leaving earlier than usual, he wanted to let us know that one of us had to lock up.  It's a good thing I found him because he used a phone deep in purchasing that I wouldn't have guessed right away.

All this rigamarole wouldn't be necessary if the phone system's PA mode were designed to "time-out" after 30 seconds.  But again, technology fails us yet again, and we resort to wasteful effort to compensate.

Monday, July 02, 2012

Recalculating

I bought the GPS about one month before driving my family to Washington DC.  In order to get used to it, I would use it on my work commute.  I quickly discovered that it had an undesirable habit of choosing congested roads with many traffic lights.

It didn't seem to matter whether I choose Shortest Route, or Quickest Route.  It was oblivious to the Avoid Highways setting.  Even the intriguing Econo-Route setting made no difference.  It was stuck on an undocumented mode I call "Maximize Encounters with Red Traffic Lights."  And where I drive, at least every 1 of 4 traffic lights will be red on any given commute.  If you know how many traffic lights (L) are on the route, you can get a realistic arrival time (if you obey the speed limit) by adding this many minutes to the arrival time the GPS claims: T = 0.5 * L.  My meager 10-mile commute to work features an amazing 21 traffic lights and is ten minutes shorter at 3am when most lights are either green or disabled.

And unlike Monty Python's Flying Circus, I hate traffic lights, even when they're green.  Because a green light is one that is bound to turn red just as you get to it.  Of course anyone who has read my rant on traffic lights (and the follow up post) knows where I stand.

Saturday, August 09, 2008

How New Blinds and Windows Can Keep You Cool


I've had the new window shades since November, but I didn't start to appreciate them until the warm weather arrived.

The neat thing about these shades is that they open at the top and the bottom. So do the windows. (The picture is of Bali's DiamondCell - Solitaire 3/8" Double Cell Shade, which is the style of shade I bought and installed.)

So that means I can keep the top of the windows and blinds open even at night without compromising privacy. And the hot air that collects near the ceilings can leak out more easily.

It also helps that the window panes are coated to reflect the heat of the sun.

It's simple things like this that prevents us from wasting energy.