Categories
Computers Lua Programming

Lua Packages

I’m starting to look into how to add pipelined or asynchronous support to my luaimap4 project. It had been awhile since I’d looked at the code so I started the task of refreshing my understanding of the code. In the course of doing so, I opted to take the original source file and break out some of the functionality into separate support modules. After doing so, I didn’t like that I now had multiple source files directly in my install directory, so I opted to create an imap4 subdirectory and put all the related modules under that directory.

And that’s when the fun began.

Categories
Family

Take Me Out to the Ball Game

Ahhh, Opening Day for Little League. Both the lass and the boy will likely have double-headers today. They don’t play against other towns so there are not a lot of teams in their respective leagues. That just means lots of reps I suppose. I’m not sure what to expect for the boy’s coach pitch games- we’ll be pushing the envelope there. But I’ve having done T-ball already, we know what to expect for the lass’s games.

Looks to be a long day.

Categories
Family

Tavern Puzzles

We visited a science center recently and one of the interactive exhibits had one of the old tavern puzzles. The Old Shackles variety to be specific. Both of the kids were instantly smitten with them and that’s when the Wife informed them that we had a whole bunch of them at home.

I’d totally forgotten about them until she had mentioned it. We not only had the same one as at the science center, but a number of others. I recall first coming across them in high school. They were fun to work out even if they were all twists on the same basic principles. The lone exception was the Patience Puzzle– a very appropriately named challenge. It literally took years of on and off work on it before I finally solved it.

Anyway, I pulled all of them out for the kids and they had a blast with them for about 5 minutes. When they realized that they couldn’t figure them out, the puzzles lost their luster. The boy, particularly, got very frustrated with my old version of Old Shackles. He had been able to solve the one at the science center, but couldn’t solve mine. Naturally, something had to be wrong with mine.

It’s a familiar pattern with him now. Any kind of new challenge turns into a tremendous exercise in frustration. He thinks he should be a master of whatever he chooses to do and when reality bites, well, he doesn’t like it.

As for me, I’ve managed to solve them all again, including the Patience Puzzle. If that means that I’ve learned patience, then there’s still hope for the boy.

Categories
Computers Lua Programming

An Awesome Mail Widget

The name really does lend itself to abuse. Regardless, I leveraged some previous lua code to create a nice little email widget that checks my email account for new mail and, if so, creates a menu of the mailboxes which have new mail that I can select and launches mutt with that folder open.

Code and explanation after the jump.

Categories
Family

Adopted Behavior

When the lass heard the magic word yesterday, she started to get choked up and wanted to know if the cat would be alright. She was close to tears and we told her that the cat would be fine because he was already inside. This revelation settled her down some, but concern was still visible on her little face. She gets that way nowadays when thunderstorms are in the air.

The boy, for his part, claims to not be afraid of thunderstorms. I’ll believe it when I see it. He claimed the same thing last year, but still came downstairs at night if he awoke because of a thunderstorm.

What makes the situation interesting is that it wasn’t always this way. The boy has always been afraid of thunderstorms. Not so the lass, whom started manifesting the phenomena a couple of years ago. I find it interesting because I think the lass has actually made herself afraid of thunderstorms.

Categories
Misc

Vet Trip

Why am I always the one the cat fixes his eyes on when they stick the thermometer up his rear? It’s always a look communicating “I hold you responsible for my predicament and I will have my VENGEANCE!”

I think the Wife can take the cat next time.

Categories
Politics

Do Americans really NOT want to cut Entitlements?

The refrain is familiar from pundits: the public at large are a bunch of fools and rubes because we want to reduce the debt and deficit but don’t want tax increases or cuts to entitlements. Two recent posts at Instapundit have me wondering just how true this professional opinion is.

First, we have a post from this morning which leads us to a study showing that given the raw data, most Americans can cut the deficit dramatically with a combination of spending cuts and tax increases.

Second, there was another post over the weekend where, prompted by an emailed, he speculates why totalitarian regimes tend to collapse so quickly. In a nutshell, he theorizes that in such regimes the people are all secretly against the government because it serves their short-term interest of not getting killed, beaten, thrown in jail, or some miserable combination of the three. The regime spends an enormous amount of energy convincing everyone that everyone else loves the regime. In other words, the regime remains in power because of a brutal con game. Once the people start to realize that everyone else really doesn’t like the people in power, the effect is overwhelming and such regimes seem to collapse overnight.

I wonder if a similar effect might not be brewing regarding the public and our spending. We’ve been told for years that none of us really want to cut entitlements. The support for this always comes in the form of a poll about what the public wants to cut, and it always shows that no one really wants to cut anything, except foreign aid.

But what if the polls aren’t really asking the right questions? I think it raises the distinct possibility that the prevailing professional opinion is incorrect. That, in fact, the only reason it exists is because of an unintended consequence of the constant polling data and the professional interpretation thereof. It’s a feedback loop: everyone hears that no one else is serious therefore, because most of us are busy with the business of our lives rather than politics and polls, no one does take it seriously.

In my scenario, the prevailing, but secret, attitude is one where people do want to make the necessary changes to solve the problem, but no realizes everyone else is onboard. So what’s necessary is a “piercing of the veil,” raising the simple question: “How?” There, I don’t have much to offer. Broadly speaking, we all have to become aware of everyone else’s willingness to work it out. Perhaps through more studies or polls structured like the one in the above link. Perhaps through more politicians putting forward serious proposals that allow us to see that certain things are favored.

If I’m correct, then I’d expect opinion to coalesce around a solution rather quickly and dramatically. If I’m incorrect then, well, no big deal. It was just a thought.

Categories
Family

T-Ball Time

With opening day coming up this weekend, the lass finally had her first t-ball practice today. Having watched her brother go through t-ball last year, and then persevering through his coach pitch practice this year, she was very excited to finally have “her turn.” How long the loving feeling will last is anyone’s guess.

The situation actually brings to mind one particular parental trap we’ve found ourselves in with the boy and the lass. The boy is, effectively, 2 years older than her. So in absolute terms, the lass has started her extra-curricular stuff a year sooner than the boy did. For instance, last year the boy was in t-ball as a kindergartner. The lass, by contrast, is starting out while in pre-K. While we would prefer to let her wait another year, practically speaking it’s not happening- she’s been tailing the boy for the entirety of her short life and she’s not interested in being left behind any further than absolutely necessary. Her patience stretches about as far as a dry-rotted rubber band.

Swinging back to t-ball, she’s not the only girl on the team. All three of them seemed to know one another, so she’s got that going for her. She was excited to see some of her class mates on the team as well. She even knew how to run the bases and did so with great gusto (hey, with the 5 year-old crew, nothing can be taken for granted).

The only thing she doesn’t like is her team’s name- “The Bees.” She preferred her brother’s team name from last year, “The Raptors.” I tried to point out that this will be her team and she should be excited that she doesn’t have to follow in her brother’s foot steps. She gets to have her own path; her own teammates; her own coaches(excepting myself). But she wasn’t having any of it.

Hopefully, she’ll be able to comes to turn with that heavy burden.

Categories
Computers

How To Setup Printing to a Remote CUPS Server

UPDATE 5/10/2012: A further server side configuration detail is to make sure the printer in question is shared. This setting can be accessed during the printer modification dialog.

I’ll spare the blow-by-blow and just get right to the requirements. Suffice it to say that I spent way too much time figuring this stuff out. However, throwing it out there may spare someone else the frustration of banging their head against this stuff. As I’ve observed before- Linux printing sucks.

Categories
Definitions

The Smile Reflex

Here’s the situation. One of the kids has done something wrong and we’ve got them dead to rights. We know exactly what to say, how to say it and how it to finish it with a flourish for maximum effect. They’ll never make that mistake again after this little speech.

And now the speech is well underway and hitting it’s stride where maximum corrective benefit is about to be attained.

Wait wait wait. What’s that? What’s the kid doing?

Are they … smiling?

This is the Smiling Reflex. It seems to appear sometime around the 5 year mark. The characteristics are as simple as described above. In the middle of some kind of behavior correcting dialog, the child gets a big grin on their face. This then leads to all kinds of facial contortions as the try to stifle the smile. Usually, they’ll immediately look away or down and kind of pull their lips in to try and get it under control. This attempted control typically fails and makes matters worse.

Which, depending on the disposition of the parent at the time, is only half the problem. I’ve come to the determination that they don’t, in fact, find the situation funny. So don’t make that mistake. Further, whatever you do, don’t ask them if they think something is funny. It only makes them smile more. Rather, the best approach really is to just ignore it as best you can.

Unfortunately, that can be hard to do. The Smiling Reflex really crosses the communication wires because it seems like such a blatant act of disrespect. Right in the middle of scolding them to boot! The nerve! But, as I said, I really don’t think it has anything to do with that. I think it’s more like one of those moments we get where a screw comes loose and we can’t help but laugh. Like a newscaster who loses it on the air, all the while fighting desperately to not lose it.

The Smiling Reflex appears without warning and its occurrence is unpredictable. The best defense is to be aware of it’s possibility. Like hiccups, there is no known way to stop the Smiling Reflex.

Categories
Movies

Despicable Me

What can I say, it’s been a movie kind of weekend. While I’m at it, I’ll also say this one was the better of the two. In fact, it was downright hilarious.

I can’t really detail much of a plot because there really wasn’t one. It was one comedy sequence followed by another, with a bunch of common characters tying it all together. The comedy was all over the place: sight gags, puns, physical humor, farting and well-timed potty mouth language. The kids loved it. They were laughing almost as hard as I was.

Gru is the main character. A self-made super thief who wants to steal the moon. The only problem is the moon is really big, so he needs a shrink ray gun, but his arch-nemesis Vector gets there first. In order to get the gun back, Gru adopts 3 girls whom Vector let in to buy cookies from as part of a ploy to get into Vector’s compound and steal back the shrink-ray gun. Along the way, he trips over every possible parent-trap and is endlessly manipulated by the girls. Luckily he has his little yellow-minion dudes to kick around.

The comedy does slow down as the predicable affections for the girls unfold, at which point Vector becomes the punchline for much of the physical humor. Regardless, I’d enthusiastically recommend it for anyone with kids 5+. There’s plenty in this one for eerybody.

Categories
Family Movies

Rio

Took the kids to see Rio today. It’s a nice little movie, easily suitable for ages 5 and up. The lass loved it; the boy not so much. He liked the humor portion, but the relationship stuff bored him. I guess that makes him a typical 7 year old boy. The lass liked it so much she wanted to get the video already.

The gist of the movie is Rio is the last male “blue macaw” and he is taken from his cozy little existence in Minnesota to Rio to meet Jewel, the last female “blue macaw” in the hopes of fixing their species predicament. The problems arise in the form of a culture clash since Rio has never really known life without a caring human, while Jewel has never known captivity. Right about the time the two of them agree to disagree, some smugglers chain them together. From there on, it’s a typical love bird story.

The plot is spiced up with some help from a Tucan, some other plucky little birds, a Salsa loving bulldog and a rather nasty Cockatoo. Oh, and monkeys. A bunch of monkeys. And I’m not referring to the humans in the story.

While the relationship humor is somewhat over the kids’ heads, the physical humor certainly wasn’t, judging by the frequent laughter coming from them. There’s just enough there for adults and the story is well executed enough to make it an enojoyable 90 minutes. The 3-D aspect of the movie isn’t really important, though it does provide for some remarkable flying sequences. Of course, for just shy of $50 to see the movie, I’d say it’s perfectly understandable to wait for it to come out on DVD or BR.

Categories
Family

Dealing with Friends

One thing I noted very quickly about kids is that they constantly test you. Not in the sense of “Here’s a pop-quiz, you’ve got 10-minutes to finish it” but in the sense of constantly probing for the boundaries of the rules that are laid out. If you tell them ‘Thou shalt not hit’ they will pontificate for a few minutes and then seek to clarify. What if I tap the other person? What if I’m just running around flailing my arms and I don’t really mean to but I accidentally knock my sister unconscious? What about …? If a parent isn’t careful, a child can tie them up in knots and render a fairly straight forward rule meaningless.

As I’ve said before, kids aren’t stupid.

Categories
Family

The Boy and His Friend

This is how the day ended yesterday:

The boy and his friend taped this up to the boy’s bedroom door. I’m have to confess, I’m confused as to what should concern me more, the level of spelling or that I’m apparently viewed as a girl. Sigh. At least I get some kind of exemptions status, for whatever that’s worth.

The lass isn’t one to take such matters lying down. After this sign was crafted, she came down the stairs and asked my how to spell “No boys allowed. Only Dads.” At least I was a boy again- and still retained my exemption status.

These amusing hijinks followed pretty much an entire day of the three of them getting along. They started the day off with the Wii. But I limited their time on it and they came to regret starting the day off on the Wii because I didn’t allow them to play it anymore after they were done. It wasn’t a great day, weather-wise, but it wasn’t raining and there was no reason they couldn’t go outside.

By the end of the day they’d played a couple of games of checkers, hide-and-seek, tag, a brief round of trying to get behind me so they could slap my rear (they didn’t- even when they tried the obvious head fake that the game was “over” while quickly walking around me for another shot), played in the sandbox and some kind of game where the object was to get the kid on the floor to roll over onto their bellies from their back. So it ended up being a pretty full day for them. Along the way the lass helped me prepare some dinner. That gave the boys a chance to hang together without the “third wheel.”

But the highlight of the day was definitely the sign. Good to know that the eternal struggle between boyz and girlz will continued to be waged by the next generation.

Categories
Politics

How to Eliminate the Deficit

Just follow these simple steps:

  1. Determine current fiscal year tax revenue. We’ll call it $Our_Money.
  2. Subtract 5% to allow for variance in revenue for next fiscal year. We’ll call this $Adjusted_Our_Money
  3. Make sure that expenditures don’t go above $Adjusted_Our_Money.

Simple. Now, for Social Security and Medicare.

  1. Forget about the SS “Trust Fund.” It doesn’t exist other than as accounting fiction.
  2. Determine total yearly Medicare revenue and SS revenue. We’ll call these $AMA_Vote_Money and $OldPerson_Vote_Money, respectively.
  3. Limit monthly outlays to ($AMA_Vote_Money/12) and ($OldPerson_Vote_Money/12).

Note that with this plan, we can likely pay down the debt a bit per year.

Now, really, was that so hard?

Categories
Family

Vacation- Day 2

The kids have been enjoying a favorite from my younger days, Ultraman. I’m fairly certain part of their enojyment is knowing that Dad used to watch it. But, for whatever reason, it’s certainly captured their attention. They’ve now watched half of the episodes from the DVD.

I have to say, watching it now, it’s beyond cheesy. The “special effects” consist of people in rubber costumes, scale models of cities, and models of ships. That’s to say nothing of the general plotline- that apparently Japan has tons of ugly monsters hanging around just waiting to wreak havoc. While the US would deploy Jerry Bruckheimer, Japan deploys the Science Patrol to save the day. At least they have Ultraman.

Categories
Family

The Sandbox

The kids have had a smallish sandbox for several years now. It’s a Step2 product with a lid and has served it’s purpose well. They’ve played with it consistently over the years, but they’re just too big for it anymore.

So when I floated the idea of having them help make a new bigger sandbox, they jumped at the opportunity. Not having taken part in such a large project as this, they had some trouble understanding how, exactly, one set about making a sandbox. The understood the sand part, it was the box part that had them befuddled. If it wasn’t a big plastic container, then how the hell did it work?

When we setup a jungle-gym a few years back, we setup a nice little area to put it in which was framed with landscape timbers. I explained that we’d just use a corner of this area to make a box to but the sand in. They still weren’t convinced. So I told them to wait an watch.

We came home with 2 landscape timbers and 8 bags of sand. The boy was very confused because you can’t make a “box” with only 2 sides. So I set about placing one of the timbers in the corner of the play area and then it finally clicked.

From there, they helped move the mulch out of that area; lay weed-cloth down and pin it with sand; and then helped backfill the mulch against the new timbers. They even single handedly moved all the sand from the old sandbox into the new sandbox. Cleverly, they shoveled portions of it into the lid and then dumped it into its new home. For their finale, they teamed up to pick up and dump the remaining sand in the old sandbox into the lid, then picked up the lid and dumped the final load. I’ll leave it as an exercise to the reader to figure out how they could have improved their efficiency.

Even after all the sand was in place, the coup-de-grace materialized when I reinstalled the slide from their play gym. For now, it ended right in the new sandbox. They were more excited about landing in the sand from the slide than anything else.

They move their sand toys over into the new sand box and then proceeded to spend the rest of the afternoon playing in it.

I love it when a plan comes together.

Categories
Family

Vacation

Well, for the kids anyway. It seems like only a few weeks ago they were having Winter vacation. Now they get another week off. Well, what the hell. After all the school days they missed due to weather, why not a few more. They’ll be in class until the end of June anyway.

The Wife takes off for a few days for work, so I’ll spend the first part of the week keeping them occupied. What that means I’m not exactly sure yet. We haven’t been to the park yet, so that’s a likely candidate. We may make a trip to the zoo later this week as well. With the warmer temps, we’ll definitely be getting them outside.

Without school this week, the two of them will be pushing for later bed times. That won’t happen though. They’re grumpy enough in the morning after a normal night’s sleep. I’m sure reduced sleep would do wonders for that.

Categories
Computers

1015PN Status

Progress continues. I’ve yet to configure Samba or a new window manager, but I’ve continued to bring it along.

More info after the jump.

Categories
Computers

Debianization of EEE 1015PN

Last night I completed the first step in “fixing” my new 1015PN: I removed Windows Starter from it. Before doing so, I’d been playing with Debian Live to see how well it would run. The answer is pretty simple: very well. I was even able to use the Live image and install it to the 1015’s hard drive as an initial install. The nice thing here is the minimal nature of the Live image to begin with made the initial install lean and mean.

The other nicety is I was able to workout some of the configuration stuff ahead of time, rather than having to guess during th install process or figure it all out post install. For instance, I was able to bring my mutt and ssh configuration over and verify the functionality before committing anything to disk. The only gotcha was the wired setup which was lost for some reason during setup. That ended up being straightforward to fix and I was up and running shortly thereafter.

I’ll be playing with it more. I’ve got a debian/testing setup running here and performance is much improved over my old 900. One thing I’ll be doing is ditching LXDE. It’s nice, but I’m too used to awesome or dwm as a window manager. Resorting to the trackpad to get around the desktop is a hassle. I’ve come to prefer a keyboard driven approach.

I’ll have more later- it’s too nice out to spend the whole day banging away at this.