Archive for January, 2008

Health Care: WTF is this?

Tuesday, January 29th, 2008

The wife-to-be picked up a skin infection a few weeks ago that I have experience with. Ring worm. I spent years wrestling and got it myself once. I’ve seen it 50 or 60 times at least.

It’s a fungal infection, not an actual worm. The people most likely to get it, in my experience, are cat owners and we’ve got four of them. Cat’s carry the stupid fungus in their fecal matter and all it takes is for them to plop their butt on your neck while you sleep or for them to lick their own arse and then lick your neck to pass it on.

Anyway, I’ve got some experience with it. You can usually cure it with athlete’s foot cream. Unfortunately that didn’t work this go around. I’m just thankful she trusted me enough to treat it myself.

So, she went to the doc to get a prescription to finally kill the damned thing. Doc ID’ed it properly, checked her insurance, wrote a prescription and she went off to have it filled.

The pharmacy wanted $142 to fill it. Insurance only covered $18. She called bullshit on the matter, refused to pay for it, called me, and went home to research it.

Turns out the pill she was prescribed is only 5 years old. Patents are granted for 17 years. Anybody care to guess why this shit costs so much?

So, she gets on the web and looks up the Mayo clinic’s list of stuff that’s acceptable for ring worm. There’s a shit load of generic stuff out there. Duh. Ring worm isn’t exactly a new thing.

She calls the doc’s office and they tell her that the ’script she’s got is the only thing that will cure it. She calls bullshit on that one, pointing out that ring worm has been curable for years. They play dumb.

Somehow she managed to get a new ’script. This time insurance pays $48 of the cost and the total cost to her is a grand whopping $10.

A $58 cure vs. a $160 dollar cure. On top of that the cheap stuff is one pill a day for 14 days. The expensive stuff is 3 pills a day for 30 days.

WTF?

Now, why in the world would a doctor insist on a ’script for a common ailment that was under patent control, three times more expensive, required more frequent medication, and a longer medication period?

We have two choices:

1) The doctor is a moron that was never educated in pre-2002 solutions to ring worm.

or:

2) They’re getting kickbacks from the drug makers for prescribing new stuff.

I’m going to go with #2.

Gettin’ Hitched

Saturday, January 26th, 2008

Wedding is scheduled for late September.

Getting Shit Done v. Obtaining Advancement

Thursday, January 24th, 2008

GeekWithA45 has a piece worth reading which is kinda sorta about Fred Thompson dropping out of the race, but no so much.

My response to his final question: Ayup.

Give it a read. This is the kind of stuff I think about with my idle time, and my thoughts are very much the same as Geek’s.

That Kinda Hurt

Tuesday, January 22nd, 2008

So, I mentioned earlier that I hit the gym after work the other day. It’s not really a gym, it’s my parent’s basement. About a year ago they built a new house, allocated an entire room for a gym, and have been stocking it up. My middle brother has been lifting for a year now, my dad and mother have been at it for a few months, and I’ve been going for a month now.

It’s nice. It gives me a clean break from my working hours, an excuse to get out of the house, an hour or so with my family 4 days a week, and a chance to try building back some of the muscle I’ve lost over the years.

There are some exercises that we just use a Bow-Flex for. One of them are flys. I hate it. It doesn’t work the pectoral muscle properly at all on that machine. The silly flexi-rods thing don’t provide any resistance when you’re starting out which is exactly where you need that weight to be when doing a fly. Doing them on the Bow-Flex results in an exercise that’s barely any different than a bench press. Bleh.

So, I’ve been trying to do them with free weights lately. We don’t have a complete set of dumbells yet, so I just grabbed a 25lb and 10lb weight in each hand, laid on the bench, and went at it. After a couple reps I let my arms dip a bit too low, my left shoulder popped out of joint, I dropped the weights in that hand, and promptly fell off the bench when the weight in my right hand pulled me off.

That kinda hurt.

Ugly Gun

Tuesday, January 22nd, 2008

Xavier’s Ugly Gun Sunday this week was a good one.

Some yahoo decided to “trick out” a 1911 by removing the “extra” metal from the slide, installing a clip-draw on it, and… well, just click the link. It’s horrible.

And the owner is trying to sell it for $2500.

New Software For FFLs

Monday, January 21st, 2008

Ryan Horsley brings attention to some new software intended to help FFLs out. The EZ 4473 software he mentions is interesting to me.

The first thing I thought of when I saw it was: Why didn’t I think of that?!

The second thing was: Good luck keeping up with 4473 changes. In the 7 years that I’ve been buying guns I’ve dealt with 3 different versions of the 4473 if my memory serves me correctly. The older “yellow form” 4473’s wouldn’t have fit well in a typical PC printer. I’d wager that’s a big reason something like this didn’t come out earlier. The ATF moved the 4473 onto standard 8.5″x11″ paper sometime late in 2005. If they ever to back to something different customers of EZ 4473 might have a few issues.

Now, the reason software such as this is needed is because you want to ensure that the customer fills in the form properly. A clerk can sometimes miss the obvious mistakes, like the customer writing “Y” into a field instead of “Yes.” While a monkey could be trained to understand that they’re functionally identical, the BATFE won’t stand for such violations.

STI Enters the Polymer Market

Monday, January 21st, 2008

STI, largely known for their high-end 1911’s, are going to introduce the GP6, a polymer framed 9mm pistol, reports Michael Bane.

You may or may not remember that STI gave California the finger when they passed their microstamping bill which is a good thing.

Do The Math

Friday, January 18th, 2008

Today my aunt and 2nd cousin were at my parent’s place when I stopped by after work. They had my 2nd cousin’s infant with them. Cute baby. My cousin (the infant’s grand mother) is 34. The 2nd cousin that just had the baby is 17.

I’m seeing a pattern here.

Nerdy Goodness

Friday, January 18th, 2008

Work has been pretty fun the last two days.

I’ve been fiddling with a piece of software since mid December that collects data from various input devices in 100 milisecond intervals, charts it live, records it, etc. While it’s doing that it’s also driving output devices. So, the client hooks up a motor (as an example) to the system, instructs the software to run it from 0 to 500 rpm over 5 minutes, keep it there for a half an hour, then let it drop back down all the while taking the temperature every 100msec. It’s kinda neat.

Problem: It tends to “lose” time when run for long periods. I did some optimization on it last month, sent it back, and a 67 hour test took 9 minutes longer than it should have to complete. Believe it or not, that was a sigificant improvement. I did a little more digging, made a couple other changes, and ran a 16 hour test last night that was 33 seconds too long. If you extrapolate that out it means I should be 2 minutes too slow on a 67 hour test. However, they’re looking to be accurate within 3 minutes on a 1,000 hour test.

So, more work is needed.

Now, here’s the funny thing: If I do a 10-20 minute test I come in right on the dot plus or minus a tenth of a second. Obviously the pattern isn’t totally linear.

Alright, so I’m gonna need a better idea of what’s going on inside the software while it’s running. I figure the best place to start is getting an idea of when the software starts missing it’s 100ms performance goal. If I get that then maybe I can figure out if the problem is external to the software and perhaps an issue with other software being installed on the PC. Maybe it’s a virus scanner kicking on in the middle of the night, I don’t know.

So far what I’ve done with the application itself is pretty simple: It keeps track of how many tasks its completed, how many msec that’s taken, and if it falls below an average of 100msec per task the Sleep() steps are skipped (along with a few other tricks) and we run balls-out until we come back to a 100msec average. Crude, but it’s working better than before. Previously if it wasn’t able to start on one of the 100msec intervals it just skipped that round and waited even longer. Not cool.

So, the client sees this, sees that it’s working substantially better, and asks about finding a “hook” into the main application for his I/O code that he’s responsible for. Basically just looking for a signal that the I/O layer needs to kick it up a notch because we’re behind schedule. Sure, I can do that.

The first thing that comes to mind is using a shared memory segment like the Unix SysV IPC stuff, but whatever the Win32 equivalant is. So I start coding that up Wednesday afternoon. I got my learning cap on and figured it all out… but I just know I’m going to have to provide some sample code for the internal developer so he knows how to hook into that shared memory segment. He might know how to do it, and I’m 100% certain he could learn it on his own, but I really should verify that I can read this shared data in case he has any trouble with this.

Then the light bulb goes off in my head Wednesday night as I’m driving to the gym: Why not just make a 2nd application that monitors that shared memory data? I can use that to get instant feed back on the internal status of the main application without having to make it do something as ugly as log them out to a console or file. So, that’s what I did Thursday. The shared memory segment was expanded to include a few more data points that I’d like to continually monitor. I then created a new dialog based application that polls that segment once a second and displays it on screen and logs it out to a text file.

So, now I’ve got the sample code I wanted to provide, I’ve got an application that’ll help me diagnose my specific timing issue, and the client will have an application that they can use to do the same thing in the future!

Yay!

I had so much fun doing this (seriously) that I figured I’d share it with y’all. This is the most fun I’ve had coding in a LOOONG time.

Frickin’ Awesome

Friday, January 18th, 2008

Gunner found this one.

A girl that can’t be more than 12 or maybe 14 years old field stripping and reassembling an AR-15 in 53 seconds:

Nice!

With around 23-24 seconds left in the video she does a little trick to get the bolt into the forward position only using one hand. I think I’m going to have to adopt that one.

For what it’s worth, with a little practice I can do an AK in 45 seconds. With my eyes closed.