Question: Joe’s code has 20 bugs. If Joe fixes 2 bugs per hour for 8 hours, how many bugs does Joe’s code have now?
Answer: 27.
Saturday, September 19, 2015
I tweeted this earlier...
I tweeted this earlier ... but it deserves to be saved for posterity. The best programmer's joke evah!
Morning (so far) in Paradise...
Morning (so far) in Paradise... We got up bright and early this morning, at 3:30 am, so that we could get Debbie back to the ER. This time it wasn't really an emergency; they asked us to go back 24 hours after the last visit, to follow up on her infection treatment. It seems to be going very well – the swelling and rash on her wrist are way down from yesterday, and almost back to normal. The doc at the ER prescribed another round of IV antibiotics, then said we should play it by ear tomorrow morning. If all looks and feels well with her wrist, we'll just keep her on the oral antibiotics; otherwise, we'll take her back into the ER again tomorrow morning. Debbie is very happy to have the IV port removed from her arm this morning. It was bugging the heck out of her all day yesterday and last night.
The photo at right above is Debbie smiling after the ER appointment, and just after the waitress delivered her chicken-fried steak and eggs breakfast at Angie's. I had a ham, mushroom, and cheese omelet. Now we're both in an Angie's coma. In fact, Debbie is taking a nap :) I'm going to work at my desk for an hour or so, then take the doggers on a walkie.
Yesterday we headed down to Ogden so that Debbie could interview a hairdresser. She's not happy with the one she located in Logan, and found this one through Yelp reviews. The interview went well, and she's made an appointment for later in the month. Afterwards we had lunch at Tona, the best sushi we've found in Utah. It's only the second time we've been there, as it's quite a ways from home, but it was a great treat.
When we got home in the afternoon, the first thing we spotted outside our house was the crocus at left. That splash of color really stands out in the fall!
The photo at right above is Debbie smiling after the ER appointment, and just after the waitress delivered her chicken-fried steak and eggs breakfast at Angie's. I had a ham, mushroom, and cheese omelet. Now we're both in an Angie's coma. In fact, Debbie is taking a nap :) I'm going to work at my desk for an hour or so, then take the doggers on a walkie.
Yesterday we headed down to Ogden so that Debbie could interview a hairdresser. She's not happy with the one she located in Logan, and found this one through Yelp reviews. The interview went well, and she's made an appointment for later in the month. Afterwards we had lunch at Tona, the best sushi we've found in Utah. It's only the second time we've been there, as it's quite a ways from home, but it was a great treat.
When we got home in the afternoon, the first thing we spotted outside our house was the crocus at left. That splash of color really stands out in the fall!
Friday, September 18, 2015
Mountains on Pluto...
Mountains on Pluto... Some of the latest in the ongoing dump from New Horizons. Click to embiggen. Via APOD, of course. Full resolution version here.
Morning in Paradise...
Morning in Paradise... We (Miki, Race, and I) took a walk this morning for the first time in a few days. Between rain and early morning physical therapy for Debbie, we haven't had a lot of chances. It was quite brisk (40°), and even with my light jacket and some marching I got a little chilled. The morning was overcast just before sunrise, as you can see below:
This morning was a bit more exciting than that walk might suggest. Debbie woke up around 3 am and saw that a red rash had developed on her left wrist (below the cat bite on her left thumb), and the wrist was still quite swollen. After reading a bit about infections after cat bites, she decided that the prudent thing to do was to head back to the ER. So into the truck we piled, and we checked her back in. This time there was nothing exciting going on in the ER, and we saw the nurse within 5 minutes of arriving. A few minutes later, the ER doctor showed up and almost immediately said the one thing we'd really not like to hear: “Interesting.” Sheesh. Turns out that the fact that her thumb and hand looked great while her wrist was obviously infected (even though it wasn't bitten) was weird, and therefore interesting. The doc decided that Debbie needs at least one course of IV antibiotics (which they promptly gave her), a wrist brace, and a return visit bright and early tomorrow morning.
It was only after we got home that the dogs and I went on a walk :)
This morning was a bit more exciting than that walk might suggest. Debbie woke up around 3 am and saw that a red rash had developed on her left wrist (below the cat bite on her left thumb), and the wrist was still quite swollen. After reading a bit about infections after cat bites, she decided that the prudent thing to do was to head back to the ER. So into the truck we piled, and we checked her back in. This time there was nothing exciting going on in the ER, and we saw the nurse within 5 minutes of arriving. A few minutes later, the ER doctor showed up and almost immediately said the one thing we'd really not like to hear: “Interesting.” Sheesh. Turns out that the fact that her thumb and hand looked great while her wrist was obviously infected (even though it wasn't bitten) was weird, and therefore interesting. The doc decided that Debbie needs at least one course of IV antibiotics (which they promptly gave her), a wrist brace, and a return visit bright and early tomorrow morning.
It was only after we got home that the dogs and I went on a walk :)
How to write unmaintainable code...
How to write unmaintainable code... This is just what the world needs: a set of instructions for how to write code that is impossible for someone else to modify or fix. It would be hilarious if it didn't sound so much like code I've actually worked on!
One example:
Sometimes I wonder if the Internet is actually a good thing...
One example:
Wherever scope rules permit, reuse existing unrelated variable names. Similarly, use the same temporary variable for two unrelated purposes (purporting to save stack slots). For a fiendish variant, morph the variable, for example, assign a value to a variable at the top of a very long method, and then somewhere in the middle, change the meaning of the variable in a subtle way, such as converting it from a 0-based coordinate to a 1-based coordinate. Be certain not to document this change in meaning.That is just plain evil. But I've seen code like that, and been burned by it.
Sometimes I wonder if the Internet is actually a good thing...
Aggiano cheese...
Aggiano cheese... We picked up a half pound of this a couple days ago from the Aggie's Creamery, without knowing anything at all about it other than the description on their web site:
After a LONG awaited return, Aggie Creamery is proud to announce that we have our famous Aggiano cheese aged to perfection and ready to sell! This parmigiano style cheese has been aging for over a year to give it a smooth, creamy texture with a pineapple-y flavor.Well, our cheese is now all gone – and we can see why they claim it's famous. It's delicious! When I bought this there were only a couple of packages in their refrigerator. I hope they have some more in storage somewhere!
Thursday, September 17, 2015
So what's the takeaway from this?
So what's the takeaway from this? Friend, reader, and mogul of Idaho Doug S. sends along this story. Bottom line: watching bad news can make you unhappy all day. So ... is the idea that we should insist on seeing only good news? If the world is going to hell in a hand-basket, we should pretend it's not and just be happy happy happy?
It seems to me that allowing good or bad news to affect your own mood is a choice that each of us gets to make. I went on a cheerful drive last night to see the fall color, and I was happy as I was doing it – even though I knew that the Republican presidential debates were about to start (bad news if ever I saw it!). I could have chosen to be grumpy about it, but I didn't. I can easily imagine that some people would choose to react otherwise. It wouldn't surprise me a bit to discover that there were fights, divorces, and maybe even suicides provoked by the mere thought of Trump actually having control over the football (the nuclear weapons trigger). But those are all choices that people made in reaction to the bad news, not something directly caused by the bad news.
I want my news straight, with full knowledge of the reporter's biases. If there's good news, like Bernie being up in the polls, I want to hear it. If there's bad news, like Iran diverting money freed under the nuke deal to Hamas, I want to hear it. And I sure as hell don't want some bozo bureaucrat “adjusting” the mix of good and bad to meet somebody's idea of the “right” balance...
It seems to me that allowing good or bad news to affect your own mood is a choice that each of us gets to make. I went on a cheerful drive last night to see the fall color, and I was happy as I was doing it – even though I knew that the Republican presidential debates were about to start (bad news if ever I saw it!). I could have chosen to be grumpy about it, but I didn't. I can easily imagine that some people would choose to react otherwise. It wouldn't surprise me a bit to discover that there were fights, divorces, and maybe even suicides provoked by the mere thought of Trump actually having control over the football (the nuclear weapons trigger). But those are all choices that people made in reaction to the bad news, not something directly caused by the bad news.
I want my news straight, with full knowledge of the reporter's biases. If there's good news, like Bernie being up in the polls, I want to hear it. If there's bad news, like Iran diverting money freed under the nuke deal to Hamas, I want to hear it. And I sure as hell don't want some bozo bureaucrat “adjusting” the mix of good and bad to meet somebody's idea of the “right” balance...
Behold the surface of Pluto!
Behold the surface of Pluto! One of the new mosaics constructed from the images of Pluto pouring back from the New Horizons robotic explorer...
An evening in Paradise...
An evening in Paradise... Our evening started off very nicely, with a trip up Blacksmith Fork canyon to Hardware Ranch, to see the fall color (some photos from that ride below). This drive was actually a lot prettier than the drive up Logan Canyon yesterday, and it is a lot easier here to drive slowly or stop in order to gawk properly. Incidentally, all of these photos are taken on my iPhone 5 in the rain – something a 35mm camera would be challenged with unless you happened to have a rain hood.
After we returned from this drive, Debbie's left hand started to get quite painful. The day before one of our cats (Koa) had bitten her left thumb. This happened when Debbie tried to retrieve (from his throat!) a piece of plastic that he'd swallowed. Last night the pain from the bite reached the point where Debbie felt like she needed to go to the emergency room. So off we went, for another late night ER experience. When we were called into a room, we noticed that the ER was very busy, with a knot of people outside one of the rooms in particular. We saw sad, worried faces at first, and much urgency. The ER staff was largely tied up dealing with this, and we waited for over two hours before Debbie was examined and treated. Meanwhile, things must have gotten better in the room that was in focus – people leaving the room started looking less worried, then unworried, and finally, smiling. We found out today that the person being treated was the woman in this story – an accidental gunshot victim. Debbie got two injections last night: tetanus and a powerful antibiotic. Now she's on a 10 day regimen of antibiotics, and hopefully that will be the end of it. Next time (if there is a next time) one of us gets bitten by a cat, we're going straight to the ER...
After we returned from this drive, Debbie's left hand started to get quite painful. The day before one of our cats (Koa) had bitten her left thumb. This happened when Debbie tried to retrieve (from his throat!) a piece of plastic that he'd swallowed. Last night the pain from the bite reached the point where Debbie felt like she needed to go to the emergency room. So off we went, for another late night ER experience. When we were called into a room, we noticed that the ER was very busy, with a knot of people outside one of the rooms in particular. We saw sad, worried faces at first, and much urgency. The ER staff was largely tied up dealing with this, and we waited for over two hours before Debbie was examined and treated. Meanwhile, things must have gotten better in the room that was in focus – people leaving the room started looking less worried, then unworried, and finally, smiling. We found out today that the person being treated was the woman in this story – an accidental gunshot victim. Debbie got two injections last night: tetanus and a powerful antibiotic. Now she's on a 10 day regimen of antibiotics, and hopefully that will be the end of it. Next time (if there is a next time) one of us gets bitten by a cat, we're going straight to the ER...
Wednesday, September 16, 2015
Functional Java...
Functional Java... In the bad old days before Java 1.8 (before lambdas, in other words), if you wanted to list the subdirectories of a given directory, you'd write something like this:
Today I wrote one like this:
I know it's a crazy simple example, and doesn't at all show off the power of lambdas or functional programming. But anything that replaces the gobbledygook of the first example with the (relative) clarity of the second is a winner in my book. Me like!
That's an anonymous class declaration, complete with all the mess of Java wordiness that goes along with it. Ugly, dense, and way too hard to understand.files = _node.listFiles( new FilenameFilter() { @Override public boolean accept( final File node, final String name ) { return new File( node, name ).isDirectory(); } } );
Today I wrote one like this:
files = _node.listFiles( (node, name) -> { return new File( node, name ).isDirectory(); } );
That's a lambda in there: short, to the point, and easy to read.I know it's a crazy simple example, and doesn't at all show off the power of lambdas or functional programming. But anything that replaces the gobbledygook of the first example with the (relative) clarity of the second is a winner in my book. Me like!
Pouring, it is...
Pouring, it is... The skies just opened up here, with buckets of water sheeting down. Up to this moment, the storm has dropped 1.8" on us – well ahead of the forecast. The screen grab at right shows the radar image (if you look carefully, you can find the little ⊕ symbol that marks where Paradise is). That red blob marks the intense rain, and the edge of it just hit us. There's more to come. North of us we see lots and lots of lightning.
At left is the scene outside our north-facing second floor windows. You can see the choke cherries in the middle, just starting to turn color. The rain isn't quite so obvious in the photo, but trust me on this: it's coming down cats and dogs. Big ones!
At left is the scene outside our north-facing second floor windows. You can see the choke cherries in the middle, just starting to turn color. The rain isn't quite so obvious in the photo, but trust me on this: it's coming down cats and dogs. Big ones!
We caught a break in the rain...
We caught a break in the rain ... late yesterday afternoon, so we piled all three dogs into the truck and headed up to “Tony Grove” Lake (in Logan Canyon) to see what we could see in the way of fall color.
Our route took us right past the Aggie's Creamery, so naturally we stopped in for an ice cream cone. Debbie had a repeat: one scoop of chocolate, one scoop of espresso chip. I tried something new: one scoop of maple walnut and one scoop of caramel cashew. I couldn't get a comment from Debbie, other than “Mmmmmmmm” :) Mine was outstanding – just the way I like it, with a subtle and not-too-sweet flavor of maple and caramel, and lots of nuts. I did have one small problem, though: my server was on his first day at work, and didn't yet understand the physics of ice cream cone preparation. It was all I could do to keep my ice cream situated on top of my cone. He hadn't stuffed enough of it down into the cone to keep it stable. I made it without dropping the ice cream, though. That would have been tragic!
I also bought a half pound of “Aggiago” cheese, which I haven't tried yet.
The drive up Logan Canyon was full of fall color, mostly visible to us on the canyon's sides (as at right). Mainly we saw the oranges and reds of maples, though there were also a few oaks, and up high, splashes of yellow from aspens (not quite in prime color yet).
As we approached Tony Grove itself, though, things changed for the worse. There are large areas of dead or half-dead aspen groves up there, and not a few dead firs. We have no idea why that's the case. Right around the lake itself we saw a bit of color, but truthfully nothing even close to the rather nice color further down in the canyon. We walked the dogs up there (excited, they were!) and headed back home just before dark. Where I walked the dogs, we saw this one lonely (and very late!) bloom on a plant I don't know. Seems pretty weird to see this just a few weeks before there will be snow here...
Our route took us right past the Aggie's Creamery, so naturally we stopped in for an ice cream cone. Debbie had a repeat: one scoop of chocolate, one scoop of espresso chip. I tried something new: one scoop of maple walnut and one scoop of caramel cashew. I couldn't get a comment from Debbie, other than “Mmmmmmmm” :) Mine was outstanding – just the way I like it, with a subtle and not-too-sweet flavor of maple and caramel, and lots of nuts. I did have one small problem, though: my server was on his first day at work, and didn't yet understand the physics of ice cream cone preparation. It was all I could do to keep my ice cream situated on top of my cone. He hadn't stuffed enough of it down into the cone to keep it stable. I made it without dropping the ice cream, though. That would have been tragic!
I also bought a half pound of “Aggiago” cheese, which I haven't tried yet.
The drive up Logan Canyon was full of fall color, mostly visible to us on the canyon's sides (as at right). Mainly we saw the oranges and reds of maples, though there were also a few oaks, and up high, splashes of yellow from aspens (not quite in prime color yet).
As we approached Tony Grove itself, though, things changed for the worse. There are large areas of dead or half-dead aspen groves up there, and not a few dead firs. We have no idea why that's the case. Right around the lake itself we saw a bit of color, but truthfully nothing even close to the rather nice color further down in the canyon. We walked the dogs up there (excited, they were!) and headed back home just before dark. Where I walked the dogs, we saw this one lonely (and very late!) bloom on a plant I don't know. Seems pretty weird to see this just a few weeks before there will be snow here...
To the readers who emailed me...
To the readers who emailed me ... about these floods. We're not in any danger here in Paradise. The floods are near the down of Hildale, Utah, which is 400 miles – a six hour drive – from Paradise. That's about as far from us as you can get and still be in Utah :)
Many of the news reports on the flood neglect to add an interesting fact: Hildale is the Utah epicenter for Warren Jeff's polygamist version of the Latter Day Saints (Mormon) church...
Many of the news reports on the flood neglect to add an interesting fact: Hildale is the Utah epicenter for Warren Jeff's polygamist version of the Latter Day Saints (Mormon) church...
Tuesday, September 15, 2015
Wow!
Wow! We got 1.3 inches of rain overnight, and there's a lot more coming. When this storm is over and the lawns dry out a little bit, I think I'll be putting away my irrigation pipes for the season...
It's raining in Paradise...
It's raining in Paradise... It started last night, got intense a couple times during the night (the noise on our steel roof woke me up!), and we're expecting the most intense part tonight and tomorrow. It's still dark here, so I can't read our rain gauge to see how much we got.
Yesterday afternoon we feasted on leftover chicken and dumpling soup, again with new dumplings. It just keeps getting better as it sits in the refrigerator! I'm looking forward to it again today – the perfect “rainy day food”...
Yesterday afternoon we feasted on leftover chicken and dumpling soup, again with new dumplings. It just keeps getting better as it sits in the refrigerator! I'm looking forward to it again today – the perfect “rainy day food”...
Plans for LEO satellite Internet network filed...
Plans for LEO satellite Internet network filed... Elon Musk's SpaceX has filed plans for a low earth orbit (LEO) network of satellites to provide broadband Internet service to the entire world. This is a key step toward bringing the plan to fruition. Funding seems to be assured, especially with Google's enormous commitment. LEO satellites are vastly superior to the geosynchronous satellites used by existing satellite-based Internet service providers, for the simple reason that they're (much) closer to Earth. This reduces the latency from awful (for the geosynchronous birds) to normal (for the LEO birds).
If Google and Musk pull this off, the world is going to suddenly get very much smaller, again...
If Google and Musk pull this off, the world is going to suddenly get very much smaller, again...
Salmon in Paradise...
I did a little research into the topic, and discovered that the salmon we have here are sockeye salmon (Oncorhynchus nerka) – the same salmon found in the northern Pacific Ocean – but part of a landlocked population that never makes it to the ocean. These are called “kokanee salmon”, but are actually the identical species to the ones found in the ocean. In our case, the population is based in Porcupine Reservoir itself, and they spawn up Cinnamon Creek (and perhaps some of the smaller feeder creeks as well, but I'm not sure about that). It turns out that Porcupine Reservoir is one of just three in Utah that were stocked with a sockeye population. How Porcupine Reservoir was selected for that is something I'd like to find out.
When we got to Cinnamon Creek (after seeing some nice fall color along the way), we discovered that the trail down to the water was too rugged for Debbie to attempt on crutches. So poor Debbie waited for me in the truck while I hiked down to see what I could see. Here are some photos of what I found:
Monday, September 14, 2015
Precipitation in Paradise...
Precipitation in Paradise... Starting today, we're due to get hammered by rain for the next four days. The forecast is estimating a total of two inches, with the bulk coming tomorrow and Wednesday.
We're starting to see some fall color around us, at altitudes just a few hundred feet above the valley floor. Our backyard choke cherries are just starting to turn, the first thing to turn on our property. Debbie and I went for a drive on the road from Avon to Liberty yesterday evening, and saw quite a bit of fall color above us, and a little along the road. Some photos:
Last night we had homemade sticky rice and mangoes. The recipe we used resulted in rice that was much less sweet (and sticky) than the same dish when we've had it in restaurants. I actually liked that better, but Debbie longs for the restaurant style. We'll try that again. We didn't have fresh mangoes to put on it, so we used canned instead. They were ok, but not nearly as good as the real deal...
We're headed off for Debbie's hydrotherapy shortly. The doggies will miss their morning walk...
We're starting to see some fall color around us, at altitudes just a few hundred feet above the valley floor. Our backyard choke cherries are just starting to turn, the first thing to turn on our property. Debbie and I went for a drive on the road from Avon to Liberty yesterday evening, and saw quite a bit of fall color above us, and a little along the road. Some photos:
Last night we had homemade sticky rice and mangoes. The recipe we used resulted in rice that was much less sweet (and sticky) than the same dish when we've had it in restaurants. I actually liked that better, but Debbie longs for the restaurant style. We'll try that again. We didn't have fresh mangoes to put on it, so we used canned instead. They were ok, but not nearly as good as the real deal...
We're headed off for Debbie's hydrotherapy shortly. The doggies will miss their morning walk...
The origins of Scrabble...
The origins of Scrabble... All new to me. My family is amongst the addicted, as are many of our friends...
Subscribe to:
Posts (Atom)


