Mac OS X is beating your hard drives to death. Here’s the fix.

You read that right.

Quick link to the fix before I get to my usual rambling: hdapm. Install it and it will automatically set itself to auto-start on each boot and disable the auto park feature for all your drives.

Under Linux you can also use the hdparm command. Please note that you still need to fix your Mac OS X system with hdapm though as it will by default reset the power management on each boot!!
hdparm -B 255 [device]
or, if that throws an error
hdparm -B 254 [device]

device is usually /dev/sda.

My usual rambling as to the background on this problem follows…. 🙂
Continue reading »

Bye now Florida.

Scottdemort won. After mostly destroying the state and its economy in his first term, he now has four more years to finish the job.


Funny how accurate this is for being over half a century old — South America does pretty much own at least most of South Florida.

See also


Interesting patterns in Miami-Dade County election results

As the Miami-Dade County election results trickle in, I noticed an interesting feature to the software used to display them on the website: if you click on Precincts Reporting, it will neatly give you a color map of which precincts voted towards that particular issue.

On a side note, Miami-Dade County is known for having really weird cultural boundaries for no particularly good reason. For an idea of just how strong this effect is, check out Culture Mapped and the Racial Dot Map (kinda coarser data, but you can see the sharp differences between black/white/Hispanic).

Here’s the result of just overlaying two of them: the race for state governor, and Amendment 2 on allowing medical use of marijuana.

Note how closely they correlate.

Also note that I did not observe the logical fourth condition shown ANYWHERE – a precinct preferring Charlie Crist but not medical use of marijuana.

The few bright green precincts left appear to be the results of missing data (I did this based mostly on the early voting+absentee ballot data!) and the tan areas are where the medical marijuana issue tied.

Oh yeah, as for why I call him Scottdemort, well, it was better than my other name for him: Dicksnot.


Replacement for the L603C

Cockus Blockus. :(

At left: The very common ULN2803; picture borrowed from Adafruit Industries, who sell them for $1.95 a pop.

The Harris Z16HD+ transmitter at work has a bunch of these STMicro L603C Darlington arrays all over in weird places where Harris decided to run things unnecessarily off the +50-60V PA power supplies.

Original part datasheet: L603C
he L603C’s max voltage is 90V.

The only replacement I have found so far that has a suitably high voltage rating: SG2823J. SG2800 series (SG2823)

It’s $65 a piece at Digi-Key!

At this point the question can be raised of “how much is that piece of equipment REALLY worth to you?”. If you need to replace an L603C that is used in a lower voltage application (voltages below 50V), the common, inexpensive ULN2803 is your chip! (See link above.) If you need that high voltage, though, prepare to open your wallet a bit wider than usual…

Why it all sucks

Microsoft Windows: it’s fragile and its innards are buried in obscurity and Mandelbugs. The networking stack likes to die for no reason.
Mac OS X: oh dear eris, Apple, what the ever living fuck?! You broke EVERYTHING on Mavericks. SMB defaults to a  protocol that’s known to run at dialup speeds for no good reason. System will not even touch a disk with a guid partition table with data corruption. (Linux is all like “hey, I see a checksum error. I’m reading your disk anyway, because this isn’t harmful. Here’s how to fix it. Would you like some coffee while you do this?”)
Linux: there’s no simple *click*, this folder is now shared. Configuration files have to be hand edited. Why?!
Marketron, Citrix MetaFrame: well no duh we’re having severe compatibility problems, marketron is running a citrix virtualization service (MetaFrame XP) which went end of life/support IN 2007!!! Well no shit new versions of the client won’t work right. OSaaS: obsolete software as a service.

Sorry, it’s been a long, tough week. Doesn’t help that I turn on the DMR radio and hear everyone but me up at the excellent Melbourne Hamfest and I’m just surrounded by broken computers and annoyance.


The new SunPass

FDOT ran a program a while back providing free replacements of the old battery powered SunPass transponders


with new units with no battery. Unfortunately they sent me a dud (in the sense that the serial number cannot be registered) with the only recourse being for me to buy a new one for $25.

I pried the useless brick apart to see what’s inside.


The unit is very difficult to open but is not weatherproof. This should be noted by anyone planning to use one on a motorcycle.


Here’s the board inside. Not much to it. What are the extra pins? No circuit traces are attached to them. The two between the two that are in use are not even soldered down. It’s reasonably possible that only two of the ic pins are used – this is not uncommon at all on passive RFID devices. Antenna, antenna ground.

Aluminum cookware

For years I’ve been hearing of the potential health risks of using aluminum based products due to the human body having trouble getting rid of aluminum that gets in there. I still use some aluminum cookware on occasion, and an aluminum based antiperspirant because, well, Florida (and I sincerely doubt the aluminum compound gets absorbed through the skin much).

The station’s coffee pot, however… I just put that into early retirement because dear eris what the hell is all of this


Massive corrosion, I’m a little afraid of it just blowing up!


Sludge melded with corrosion, it won’t come off.

Plonk. Time for a stainless moka pot.

Box Store Hell – from the people who brought you YAFULC.

Yeah, so I don’t like ‘urban lifestyle centers’ or Yet Another Fucking Urban Lifestyle Center – YAFULC – but it’s actually one step up from what is far more common out in the suburban sprawl… Box Store HELL!!!

Above: Tropicaire Shopping Center, a Box Store Hell constructed on the grounds of the former Tropicaire flea market and drive-in cinema, and nearly cutting off a block of apartments from the outside world.

Box Store Hell is yet another example of complete and total failure in urban planning, coupled with a myopic belief that everyone drives a car and never goes anywhere without it.

I guess you could really say the same thing about the box store in general. Typically, it’s the equivalent of a poorly laid out department store, surrounded by parking lot. Usually a MASSIVE expanse of parking lot separates it from the road.

Back in the early 1990s, the mini-mall or strip mall began to disappear as box stores took over where other things had been. The original phrase for a strip mall filled with box stores was “power strip”. It was a number of box stores that had a common walkway in front, sometimes covered. The box store hell, though, is a new kind of awful.

Owing to an obsession in the retail industry for strictly planogrammed stores, many retail chains now insist upon making the very building their store is built into a part of the strict planogram. You may have already noticed this with Walgreens, CVS, Target, and Wal-Mart stores. They all have to be built exactly the same, right down to how the entrances and exits are positioned. Unfortunately, this doesn’t really fit well when all the stores are located together in a ‘power strip’, so the buildings are now just separately dribbled across a vast parking lot. Thus, the Box Store Hell was born and glommed up every bit of commercial zoned landscape it could get its hands on.

Your typical Box Store Hell has a massive parking lot which usually floods in seconds when it rains. Sometimes the parking lot is large enough (especially in the case of Walmart stores) that it required its own stormwater treatment system and underground detention pond be installed. The urban heat island effect is so strong on some of these parking lots that a plastic shopping bag cast into the wind will rise endlessly out of sight, finally disappearing several hundred feet into the air from the thermal updraft.

The parking lot will be a sea of randomly strewn shopping carts, people peeling in and out of parking spaces in sport utility vehicles and minivans without looking first, and a baroque arrangement of nonsensical reserved parking and tow-away zones. There are usually a few spotters for towing companies nearby lurking, watching for you to park in the wrong zone, sometimes even “helpfully” directing you to do so.

Each store has its own shopping carts. You will not be allowed to use the same shopping cart between more than one store, of course; you are expected to pull up to Box Store Hell in your car, visit exactly ONE store, then leave. What, you thought this was supposed to be CONVENIENT?

A second generation of Box Store Hell appeared in some urban centers; it’s basically vertical Box Store Hell. A parking garage is attached and allows access easily(?) to the stores via massive elevators sized to accomodate shopping carts.
These are the goofiest pieces of shit you will ever encounter. Some of them have free parking, but will hold you hostage in a massive line when you’re trying to exit. The line is actually the tail end of a line for valet parking. Others have a pay garage that offers free or discounted parking with validation from one of the box stores in the stack, but if you stay too long you’ll probably be paying a hell of a lot to get out of there. At Midtown Miami, for instance, it’s $30 the moment you hit three hours. Most of these do have pedestrian access though, as opposed to forcing pedestrians to walk through a quarter mile of blindly launched SUVs to get to the stores.

The really curious thing about Box Store Hell happens when a retailer decides to close one of their locations that’s set in one. The entire building will usually be left to rot for a few years, then eventually demolished, because it doesn’t fit the new potential tenant’s planogram. Sometimes it’ll just be knocked down and turned into more parking lot area. There’s just almost no market for a lot and building that big; it’s a total waste.

The most recent Box Store Hell project planned down here in Miami-Dade County is actually seeking to destroy an area of tropical hardwood hammock containing endangered plant species. What’s really more important, yet another Walmart, or one of the last areas of undisturbed tropical hardwood hammock? Seriously? Bueller?

The awful tale of the spiral CFL

Ladies and gentlemen, here is an awful story about light bulbs and why they now SUCK.

In the early 1900s, we had incandescent bulbs with carbon filaments, then tungsten filaments. The earliest bulbs were very low brightness and could only be pushed to burn a sort of orange color at very low efficiency. As time and technology advanced, incandescent bulbs became more and more efficient. In general, the hotter you burn the filament, the more efficient the bulb. Since the bulb is emitting light as a black-body radiator, the visual quality of the light increases with higher filament temperatures as well. Larger wattage bulbs produce more lumens per watt than smaller ones.

The halogen bulb, which dates all the way back to the earliest efforts to prevent the glass from becoming darkened from evaporated filament material on the earliest bulbs, was found to work really well if pushed to super high temperatures using quartz as an envelope material instead of typical sodalime glass. Iodine is used inside the bulb as a cleaning agent; once the quartz envelope and filament reach typical operating temperature, the iodine scavenges the evaporated tungsten back off of the quartz. Pretty cool, really. Of course since these bulbs run so hot, it’s easier to squeeze better efficiency ratings out of them!

So we have those two coiled filament brothers… They’re simple resistive loads, easy to manufacture using no hazardous materials, and they just work. Well, ’till they don’t… then you just change it out, inexpensively.

The problem with them is that they generate a LOT of waste heat, and result in very high energy consumption. As energy shortages become problematic in modern urban areas, and the pollution and other effects from generating this energy using fossil fuels or old nasty-ass nuclear power technologies from the 1970s (I’ll yell about this in another post!) become troublesome, the desire became strong for much higher efficiencies.

Enter the discharge lamp.

The first very high intensity discharge lamps were carbon arc. These predated even the incandescent bulb. They operated in open air using two carbon rods which were slowly consumed as the lamp operated, requiring a regulating mechanism to keep feeding fresh carbon. Some of these lamp regulators are truly beautiful and clever clockwork! They were practical for street lighting and lighting large building spaces, but never made it into the home. Fire hazards? Oh, you betcha. 😉

The carbon arc lamp may still be found in some applications including spotlights that are aimed into the sky. It provides a very harsh, bright light.

Later, in the early 1900s, there were efforts made to use discharge across a low pressure gas inside a glass tube for lighting. Different gases or mixes of gases were used. They all required some pretty scary voltages to strike the arc (3-15 kilovolts depending on gas type and arc length). Daniel McFarlan Moore invented an early practical lamp using carbon dioxide for a nice daylight color, which was used for photographic and color matching applications for some time.

The mercury vapor lamp had been around since the early 1900s as well, but it produced a nasty blue-green light and was not really pleasant for indoor lighting use. In the 1930s, General Electric started lining mercury vapor tubes with phosphor to correct the color and provide enhanced light production, and the modern fluorescent lamp was born.

It flickered, of course. The magnetic ballast transformers needed to regulate the current to the lamp all just feed it 60 cycle AC current.

The fluorescent lamp was introduced to the public at the World’s Fair and Golden Gate Exposition, and it wound up in millions of homes and businesses. The classic fluorescent lamp is a linear tube, and requires fixtures shaped to hold it. Probably the most common form is a 48 inch long form factor that’s available as a 30 or 40 watt lamp. Higher efficiencies are possible in thinner bulbs.

Color rendering was, and still is, fairly awful. There are bands of color simply missing from the lamp’s output. Ott-Lite has some tubes that are reasonably better, through the addition of more exotic and expensive phosphors, but for some reason nobody else ever caught onto the idea that people actually see in color.

Efforts to get away from the long straight tubes have included the “Circline” lamp which is an almost closed C shape with a plastic bracket/connecting plug occupying the space between the ends, and the U-bend tube.

Lights of America used to produce screw in adaptors that worked well in a lot of table and ceiling lamps. They contained a small ballast inside a bracket that screwed into the socket, and had a T-shaped holder that clipped to a Circline bulb and held it in place. To install it in a table lamp, you would remove the shade, unclip the harp (for some reason knowledge of what this is called is uncommon!) from its bracket near the socket, screw in the adaptor, reinstall the harp, put the tube on the arms, and put the shade back on.

This could have been, technically, the first compact flourescent to gain widespread market in the US.

Old_compact_fluorescent_lampPhillips and some other companies also had screw in self-ballasted CFLs. They usually used a magnetic ballast – a very heavy transformer, and would knock over your table lamp. In addition, the magnetic ballast fed the lamp 60 cycle AC current which made it prone to visible flicker.

The electronic ballast eventually showed up, resolving the flicker problem, but also adding a bonus side order of radio/tv interference problems in some designs.

In the late 1990s, Enron put California’s balls in a vise. Through creative accounting and generating more artificial energy shortages than actual energy, they got people used to rolling blackouts and the need for extreme conservation measures. We looked at the incandescent lamp again and realized it was time to ditch it for the higher efficiency of flourescent. LED lighting was out there, but it wasn’t ready for prime time; the first practical white LEDs were just barely enough for a flashlight.

The PL type flourescent lamp, basically a super compact version of the U-bend bulb, finally got paired to a miniaturized screw in miniature electronic ballast and produced as the first modern style CFL in the late 1990s. They were kind of an expensive curiosity at the time and faced with lots of technical difficulties. First off, this represented the first time in US history that manufacture of light bulbs jumped completely offshore to China.

American electronics manufacturing had been so heavily offshored at this point that nobody was ready to manufacture the electronic ballasts stateside. A small but growing number of brands of Chinese imported CFLs became available, and they were all… okay. They had build quality problems, were prone to detonating and filling a room with smoke and/or causing fires, and NONE could be run in a totally enclosed fixture because the ballasts got too hot.

Interestingly, the worst CFLs I have ever seen came out around this time: the GE Biax. The GE name wound up being associated with these either because GE bought production runs from a Chinese manufacturer to have them custom branded for them, or simply because they licensed their brand name and trade dress to an importer or retailers to place on Chinese bulbs themselves. The Biax, however, managed to be prone to downright malevolent failure. The bulbs would be unusually dim and difficult to start from day one, which would indicate either a bad tube or problems with the ballast. By day four or five, the bulb would be flickering or dead, and when they died they tended to fail catastrophically with the ballast area catching fire and breaking open.

If you look at these early CFLs they all had the same sort of appearance. They had a series of U-bend tubes coming out of the base, usually with thin pips connecting them together. They were made in the same molds and machines that were used for “PL” size fluorescent tubes. This form factor was chosen as a compromise between good performance and compact size. Some light is lost in a PL bulb where the light from one tube simply gets absorbed into the phosphor on an adjacent tube, but it really wasn’t half bad. Some of these tubes were even made with really good “daylight” color.


The spiral fluorescent lamp was experimented with by General Electric in the 1970s. At the time, they shelved it because they could not figure out how to adapt it to mechanized manufacturing. It did not look like the modern spiral CFL; it was a much more widely spaced tube to avoid the occlusion problem wherein the turns of the spiral block light output.

The Chinese took a look at this design and figured it’d work right into their marketing strategy. See, the way I’ve analyzed it, and feel free to laugh at me if I’m wrong, is that the Chinese really love to make themselves spaces to sell on the American market by using technologies adapted or outright stolen from elsewhere, then mass producing a product that may be of inferior quality, but has a lot of flashy features added to entice the consumer to buy theirs through simple comparison shopping. “But does the American made washing machine have Bluetooth and a bunch of LEDs all over it and play a song when it’s finished? No? Okay, let’s buy the Chinese one that does.”

In China, labor standards and employee compensation are NOT what they are over here, so cheap human labor is often sought over safer but more expensive production methods.

Remember how I said the spiral bulb didn’t lend itself well to mechanical production?

Well, Shanghai Xiangshan saw the spiral lamp and decided to enter mass production… employing dozens of glassblowers to manufacture the bulbs. Very soon afterwards, the glassblowers began to fall horribly ill from exposure to the mercury used in the bulbs.

Problem? Your glassblowers are all dying of mercury exposure.

Solution? Sweep it under the rug with a big iron broom. CAPITALISM!!!!!

Pissbulb shortly after powering on.

Now, remember how I said the Chinese really like to get consumers drunk on flashy but useless features? The spiral bulbs, looking like soft-serve ice cream dispensed into a cup, did indeed have a “wow” factor about them…. Followed soon afterwards by a “yuck!” factor because the quality of light from these bulbs

The cheapest, nastiest phosphors were used shortly into the production runs, owing to the wonderful Chinese business core ‘value’ of quality fade. They look like someone took a piss on the bulb. Additionally, the quality of phosphor coating inside the handblown glass tube is extremely variable, and it’s not uncommon to have large dark spots where the phosphor is too thin or too thick. Just eyeballing one on my desk here, I’d say that about 50% of the light, if not more, gets fired into a useless space inside the spiral where it doesn’t escape, or into adjacent turns of the tube.

Then the clever, evil marketing showed up. The spiral bulbs were foisted upon the public as being the best new thing, just because they were new and looked cool and unique! Nevermind that a U-bend type CFL of the same wattage, placed alongside the spiral, would show just how pathetic the light output and performance of the spiral is.

Flash forward to today… you cannot find the U-bend CFLs anymore. They have reached near industrial extinction in favor of the “ice cream whip” spiral bulb. Only a few special application high wattage CFLs still maintain the old, more efficient, mechanically produced tubes that didn’t require a glassblower to slowly poison themselves to manufacture it.

It’s the horrible end of a vicious cycle that will be very difficult for the industry to ever pull itself out of.

Fortunately, the LED bulb has become practical and is now technically superior. The CFL’s only remaining advantage is that it can be cranked out cheap as hell.

Do the entire world a favor and buy LED instead.

1 72 73 74 75 76 87