Sunday, October 16, 2011

Fixing Woodpecker Damage

Yesterday morning, I heard a rat-tat-tat noise while sitting in my study. I thought it might be some nearby construction, but wasn't sure, so I went upstairs to check. The noise was coming from the back of the house. "That's strange," I thought. Construction noises usually come from the front of the house. The noise was clearly coming from the back of my dining room. Now that I was closer, I knew what it was---a woodpecker. My first thought was to try to scare it off. I quietly opened a door to the deck, then walked to the back of the dining room and made a loud noise. I barely caught a glimpse of the bird as it flew away.

It was clear where the woodpecker had been---there was a 1"x3" hole in my wood siding. He had drilled all the way to the plywood. Not sure what to use to fill the hole, I went to Home Depot. They recommended Minwax High Performance Wood Filler. I brought it home and read the instructions. It recommends gloves and eye protection, so I got some latex gloves and safety goggles from high school chemistry class (somehow I've kept them over all these years...). I used a plastic bowl to hold the stuff and a plastic spoon to mix and apply the stuff (they recommend a plastic putty knife, but I don't think it would have worked any better). You definitely want to use disposable things---don't use your good putty knife. The filler looks like a grey goop and isn't that easy to remove from the container. It took me a few minutes to remove enough to my plastic bowl. Also, you'll probably want to do this outside---the wood filler *stinks*. I scooped out about half the filler, then mixed in about half of the hardener, which comes in a little plastic tube. I stirred until I couldn't see white streaks from the hardener, then climbed my ladder to apply.

The mixture was a pain to apply. It was easy in a tiny hole the woodpecker had created, but in the main 1"x3" hole, the stuff just wouldn't stay---it would gradually slither out. What's the point if it won't stay in place? I kept trying to push it back into the hole and after a few minutes, it started to hold a bit better. Then I realized that the mixture in my bowl was starting to harden. I tried to put some of the semi-hardened mixture in the hole and my patch started to harden-up. After another minute of futzing with the stuff, it finally looked like it was going to hold. Phew! I suspect that I should have mixed the goop better and waited a few minutes before trying to use it---it was just too liquid-like at first. But, it appears to have done the trick. I'll report back sometime later to let you know how it hold up. One plus is that the goop perfectly matches the color of my shingles :-)

Monday, September 19, 2011

Calibrating Sound Levels with ALSA

I'm trying to use a single headset for both listening to music and talking on the phone (via Google Voice). It's more difficult that it sounds! One big problem I found is that when talking on the phone, I have to jack-up the output volume (to close to 100%). But, at that setting, music playback is extremely loud---I prefer approximately 33%. Fortunately, there is a way to modify the volume of a particular application. Under Preferences->Sound->Applications, I found an "ALSA plug-in [ogg123]" control. I play music with ogg123. I can use this slider to control volume of music playback. By setting this slider to 33%, I can set the overall output volume to close to 100% and not have to switch volume back-and-forth when I go from listening to music to talking on the phone.

Thursday, September 15, 2011

Weather Percentiles

I just learned about weatherspark.com. It provides historical temperature information better than any other web site I've seen. The best part is the fact that it provides not just high/low means, but percentiles, so you can get a sense of how variable the temperatures are and whether-or-not the weather you're seeing is extreme. They overlay actual temperatures so you can easily compare actuals versus historical patterns.

Friday, September 9, 2011

How to Set the Font in New Emacs Windows

I frequently use C-5-2 to get a new window without creating a new emacs process. In emacs lingo, each window is called a frame. At some point, I was surprised to find that the new window had a font different than my default font. After some searching, I learned that emacs has a completely separate font specification for new frames. See the GNU Emacs Manual page on Creating Frames. At the bottom of that manual page is where you'll find the recipe:

(add-to-list 'default-frame-alist '(font . "6x13"))
I've used my favorite font name ("6x13") in this example, but that may be too small for many people. Many fonts are available. Try "10x20" for a larger size. Also see the GNU Emacs Manual page on Fonts

Tuesday, September 6, 2011

How to Take a Screenshot using a Mac

Command-Shift-3

Note that this automatically saves a file to the desktop. You will not see any prompting or indication that the operation is complete. Just go and look for a file on your desktop.

Monday, September 5, 2011

Don't Freak Out if Your Baby Eats One Lily of the Valley Berry

Yesterday, I went on a walk with my wife and two kids (4 yo daughter, 1 yo son). On our way back home, my daughter picked a reddish-orange berry off what was likely a lily of the valley plant (we have a ton of them in Natick). My daughter loves picking berries. She does it almost every time we go on a walk. So, when we got home, my wife and I didn't think to be worried about the fact that she'd probably bring it home and leave it on the table in the playroom. Normally, that wouldn't be a problem since as of one week ago, our son wouldn't be able to reach such a berry. But, beginning about a week ago, our son has started pulling himself up. And, he loves exploring new sights and chewing on anything he can get in his mouth. So, the inevitable happened. One of us heard him coughing and came to check him out. Suspiciously, he wouldn't open his mouth. Normally, he lets us see inside with little prodding. We knew something was up. Then, we remembered---the berry!

After we stuck him in a high chair to keep him still, one of us managed to get a finger in his mouth and swipe out the skin and seed of a reddish-orange berry. My wife suspected Lily of the Valley (LotV) and recalled that the berries are toxic. I confirmed online that LotV has such a berry. I called the national poison control emergency line. They recommended going to the emergency room, but recommended that I talk to my local poison control first. The Massachusetts poison control told me not to worry---the berries are technically toxic, but one berry is not a problem for (even) a one year old child. She said we only need to worry if he starts acting strange---lethargic, nauseus, vomiting. Phew! We both heaved a sigh of relief. My wife didn't completely believe poison control and called our doctor. He said we did the right thing and, yes, we should believe poison control---there is absolutely nothing to worry about.

Note: When I called the 800-222-1222 number Sunday afternoon, I was transferred to the national center. They gave me the following local numbers, one of which connected me to the local poison control: 800-682-9211, 617-232-2120, 617-355-6607.

Sunday, August 28, 2011

City of Wonder Tips

I tried out the Google+ games on Friday. Boy is it a lot easier to pop pigs in Angry Birds at 40 frames per second with fine aiming control than it was on my phone at about 3 frames per second with the precision of finger painting. I also tried out City of Wonder (CoW). It's basically a Civilization copy-cat, but with lots of bonuses for getting your friends to play with you. I was addicted to Civilization and now I'm a bit hooked on CoW. What's a bit interesting about CoW is that everything is wall-clock based. Unlike Civ, you don't have to have the game running to make progress. But, every time you produce something, you have to claim it. The rates of production are very aware of this. You can produce more money from a goods facility by choosing the 5 minute option every time. But, to make that work, you have to check-in and click on the facility every 5-10 minutes. Even if you're at the computer all day, you can't do that while you're sleeping! There are longer options, including 24 hours, but the rate of production drops off quite a bit the longer period you choose. Another trade-off in the game is space. You start with 81 squares and don't automatically get more space as your population grows. You have to pay for more space, either in coin or by accumulating allies.

Anyway, what have I learned after two days of playing? Here you go.

  • Population: you are required to have one unit of happiness for each unit of population; if your population count exceeds your happiness count, you can't increase your population. So, make sure to place enough cultural and/or decoration facilities to support your population. Since you can't be at your computer all the time, it's better to buy residential facilities with longer waiting times between generation (especially since the rates don't differ that much).
  • Density: After a few levels and a few thousand people, you'll find that your space is a bit tight, especially if you buy the cheaper facilities. It's worth to pay a bit more to get more compact production/happiness even if the benefit per coin is lower.
  • Storing/Moving: One bit of flexibility you may not be accustomed to is that saving and moving facilities is free. If you bought some cheap facilities that you don't have space for, you can save them ("Put Away"). When you expand your boundaries, you can bring them back for no charge. Also, moving facilities from one location to another is free, so don't worry to much about optimizing placement.
  • Roads: As far as I can tell, roads are useless and merely waste space. I've read that other versions of CoW give you production benefits for placing facilities adjacent to roads, but I don't see any such benefit in the Google+ version.
  • Research: Always make sure you are researching something. This is how you unlock advanced facilities. Never spend all of your coin if you will need it to research the next item. Be very aware of how long until your next research item is complete. If you are close to completing some research which will open a more advanced facility, it may be better to wait instead of investing in a less advanced facility.
  • Goods: Unlike other production facilities, you get to choose the waiting time for each production batch. When I can check the computer regularly, I've found that a waiting time around half-an-hour is best. When you're away from the computer for longer, choose the waiting time that corresponds to the amount of time you expect to be away. Why? (1) Production rates are structured to be higher for shorter waiting times, and (2) a percentage of the final payout must be paid up-front to initiate production and will be lost if the production is cancelled. So, selecting too long of a production reduces flexibility and often leads to less overall production. But, if you pick a time that's too short, the produced goods may "expire", leaving you with nothing for your investment.