« December 2007 | Main | June 2008 »

February 2008 Archives

February 2, 2008

Dear Jerry - please don't sell Yahoo to Microsoft

I like Yahoo, and have been a member forever. I like it's character, it's brand, it's a friendly place on the web and it's home for me whereas Google is just a tool and Microsoft seems like a bad match.

aftyde@yahoo.com has been dependable for years, and I am a subscriber to the pay for play mail, I use Yahoo finance, I have found love and frustration on Yahoo Personals, it's my home page and instant messenger of choice. Yahoo has allowed me to enrich my life and I have been happy to pay along the way seeing myself as one member of a large satisfied customer community. Google is a great search engine, and I do prefer it to Yahoo - but it's not my home page. Yahoo is where I look to see what's new in the world at the beginning of every day.

There are lots of reasons why Microsoft is unable to be these things for me. First, MSN seems like CNN - a generic source of feel good (or feel bad) somewhat bland press. I have negative personal associations with the brand. Mostly due to experience over the years that in lots of cases (from software upgrades, to pricing, to market attitude and arrogance, to even higher levels of arrogance) just rubbed me the wrong way. I suppose I just get enough Microsoft stuff served to me on my desktop and through the office applications and I don't find myself wanting third or fourth helpings. Don't get me wrong - there are lots of great things about the company and it's products despite the love / no-love feelings I harbor. I just don't want them to take something I like away.

Google on the other hand just seems like trouble - it's future seems Orwellian to me and while I really like the idea of a major competitor to them in the search space Microsoft should not be that entity.

So Jerry, I say this - please double the fees I pay for mail and the other services I have come to value. I would happily pay twice as much for what you are delivering to me every day and I suspect many others would too. Besides, you're already a rich guy with a great job and so are your board members - how much more money do they really need?

February 25, 2008

A REXX bigots answer to office automation

Every now and then a situation presents itself where I can again prove myself to be a poor, but effective coder. This months electric bill was a whopping $675.00 USD for a large two bedroom condo here in the tropics. It's winter, and I run the air conditioner for my home office 24 hours a day. Why? It keeps two servers, a workstation, three notebooks, four displays, lights and a raid array from turning the room into an oven.

All of my lights have been converted to compact flourescent, hot water heaters have been turned down, lots of steps have already been taken in terms of lifestyle to reduce my energy footprint but yet that $675.00 bill has me wondering if there isn't more I can do in the office. So I start rummaging around in the junk box and pull out a Radio Shack X-10 Heavy Duty Appliance Module (220V), a X-10 Firecracker interface, and a Radio Shack Plug & Power wireless receiver.

The Firecracker is a small dongle that plugs into the serial port of a computer, it broadcasts a signal that will command a X-10 receiver (such as the radio base of the Plug and Power remote) to switch things on and off. I connect the firecracker to the RS-232 port on the back of my Cobalt Qube (running Debian Etch), plug the receiver into the 110V side of my rack, and the air conditioner into the 220V Module. I enter the command "BR A1 OFF" and the air conditioner switches off. Excellent!

The next problem was a little more complicated. How do I tell what the temperature is when the server is a MIPS based Cobalt Qube. The motherboard and CPU don't report temperature, there are no sensors, there is no local hardware monitoring at all in this little box. However, it does have a 200 GB Maxtor hard disk in it. After looking around, I found a utility called HDDTEMP that will return the drive temperature via. the S.M.A.R.T. interface. The command "hddtemp /dev/hda" returned "/dev/hda: Maxtor 6Y200P0: 45 C". If I turn off the air conditioner that number goes up, and when it turn it back on the number goes down. Excellent!

To make this all work, I wrote the following software. It polls the drive temperature every 20 minutes and determines if it should turn the air conditioner on or off based on the temperature reported by the servers hard disk. The sweet spot appears to be 47C (on the hard disk) which means the room stays at about 74F (interestingly) give or take 3F. The script outputs this to the terminal every 20 minutes.

--> Target temp: 47.
Temp: 50, powering on aircon.
Total time on: 20, time off: 40.
Sleeping 20 minutes...

Anyone with knowledge of thermodynamics, fuzzy logic and the like is already making a face and cringing. Even so, next month it'll be interesting to see if this makes a dent in my power bill. I'd love any suggestions on the software as I am sure that could be better as well, so here it is...

#!/usr/bin/rexx
/*
Simple server temp based aircon control program
*/

parse value "0 hda 0 48 /tmp/hddtemp.tmp" with ontime source current target workfile
parse value "0 20 a5" with offtime interval aircon

call evaluate
exit 0

evaluate:
do forever
say "--> Target temp:" target"."
parse value check_temp(source) with stemp
if stemp>=target then do
ontime=ontime+interval
say " Temp:" stemp", powering on aircon."
say " Total time on:" ontime", time off:" offtime"."
"/usr/bin/br" aircon "on"
end
else do
offtime=offtime+interval
say " Temp:" stemp", turning aircon off."
say " Total time on:" ontime", time off:" offtime"."
"/usr/bin/br" aircon "off"
end
say " Sleeping" interval "minutes..."
say
"/bin/sleep" interval"m"
end
return

check_temp:
parse arg device
"/usr/sbin/hddtemp /dev/"device ">"workfile
call stream workfile,"C","CLOSE"
parse value linein(workfile) with . . . current .
call stream workfile,"C","CLOSE"
return current

About February 2008

This page contains all entries posted to Arthur Francis Tyde III in February 2008. They are listed from oldest to newest.

December 2007 is the previous archive.

June 2008 is the next archive.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.
Powered by
Movable Type 3.31