Thursday, May 15, 2008

Windows sluggishness, Icon variety

Today my computer came down with the icon slows. The desktop would open after boot but all the desktop icons were trash for a minute or two, and then would slowly paint one by one. Open an explorer window to view your files on disk, and again, the icons for each file painted one by one and slowly.
How does Windows paint all those icons, a different one for each program? The simple way is to put up a temporary icon, and then find the program to which the short cut points, open it, extract the icon pixels and paint them on the screen. This is slow. So, windows keeps a "shell icon cache" file, containing all the icons, so it only has to open one file, in a known place, to fetch every icon. Windows, being Windows, occasionally manages to mess up its own icon cache file. The messed up file do longer works, and so Windows reverts to the old slow "find each icon in the program file" process.
Fix. Run the CCleaner program. This is freeware/shareware which Google will find for you on the net. To fix just icons, select "Start Menu Shortcuts" and "Window size/Location Cache" and click on "Run Cleaner".
CCleaner is a general purpose cleaner upper, and can remove all sorts of un needed files. A CCleaner run can easily free up 100 megabytes of disk space. The program has two modes of operation. Analyze, which finds un wanted files and displays them to you, and "Run Cleaner" which finds unwanted files and deletes them. The cautious user will first analyze and carefully inspect the displayed files just to make sure they really are unwanted.
Some applications choose bad file name extensions which make CCleaner think the files are unwanted when they are indeed wanted. I remember ClearCase (a very expensive professional software source control system) which used the extension ".tmp" for its working files. Disk cleanup people and programs will always delete anything with "tmp" or "temp" in its name.

Tuesday, May 13, 2008

So how expensive is a nuclear power plant?

Wall St Journal reports that utility companies (electric companies) are cringing from the $5 to $12 billion dollar quotes on new nuclear plants. The article goes on to say that the existing nuclear plants built in the 60's and 70's cost about $3 billion. Hmm. There's been a bit of inflation since the '70s. In the '70's a new Caddy went for $10K. A 2008 Caddy goes for $43K. If the cost of a nuclear plant is only up from $3 to $12 billion, that's no big surprise to me, and it shouldn't be a surprise to electric companies or the WSJ.
Second, you gotta wonder how much gold plating has been done on the designs. The word "nuclear" raises the cost of things. For instance, the mess tables on nuclear aircraft carriers cost more than the mess tables on oil fired carriers. What with the current population of ambulance chasing lawyers, to say nothing of skittish insurance companies, every conceivable safety device will be incorporated whether it does any good or not. Nuclear safety people make Alice in Wonderland look rational. As you may remember Alice once met a white knight. The knight's horse had spiked steel anklets on all four legs. When Alice inquired about them, she was told that the spikes protected the horse against shark bites. Alice asked how often the knight's horse had been attacked by sharks. The knight replied the horse had never been bitten which meant the spiked anklets were doing their job. I'm sure the new nuclear designs have plenty of expensive spiked anklets protecting against shark bite.
If the plant cost $10 billion, it will take a long time to pay itself off. I pay $0.10 per kilowatt hour, of which half goes to the generating company and the other half goes to PSNH who owns the power poles, transformers and electric meters. A nuclear plant will generate 1000 megawatts. Run the plant for an hour, and you bill $0.05 times 1,000,000 kilowatt/hours, or $50,000 an hour. $10 billion divided by $50,000 an hour means 200,000 hours (about 22 years) to pay off the construction costs. That's a long time, and this back of the envelope calculation ignores operating costs, fuel costs, taxes, and interest on the debt, all of which would stretch out the repayment time. Better go for the low end $5 billion dollar plant.

Why vote Republican this year?

There is one big difference between Republican John McCain and the Democratic yet to be named candidate. The Democrats promise to recall our troops from Iraq as soon as possible (ASAP) where as McCain promises to prosecute the war until victory is achieved. Election day promises don't come much clearer than that.
Elect a Democrat and the troops pull out. Then Al Quada or Iran takes over Iraq, all the Iraqis who have worked with the Americans are murdered, the country dissolves into a Sunni Shia civil war. The entire Arab world gets an object lesson in what happens to anyone who co operates with the Americans, namely the Americans will go home and leave you twisting in the breeze. This will demoralize even the Israelis, let alone any Sunni Arab government. Iran brings their nuclear weapons program to fruition, and pressures all the middle east countries to knuckle under to them. Think oil is expensive today? Wait til Iran shows up at the next OPEC meeting, armed with nuclear weapons, the Americans totally discredited, and demands cutting production and hiking the price. The Saudi's wouldn't dare oppose Iran in those circumstances. If that isn't bad enough, think about where we go if the Iranians carry thru on their pledge to nuke Israel out of existence.
On the other hand, sticking it out in Iraq will deal Bin Ladin's Islamo Fascist movement a mortal blow. Just this last month the Iraqi government finally gained the strength to confront its enemies, the militias and gangsters still holding out. The Iraqi government is the first real democracy in the Arab world. If it survives, Iraq will become the most desirable place to live in all the Middle East. A peaceful and prosperous democratic Iraq would set a powerful example to the entire Arab world. So powerful that the Arab dictatorships (every other Arab country is a dictatorship) would be under enormous pressure to emulate Iraq's democracy.

Full Scale is the best scale for drawings

I did a 1 inch to the foot set of drawings for the coming HO train layout. Took my time, did several trial drawings, copied the best one over on a clean piece of paper. Used squared paper, compass, architect's scale and the resulting A size drawing was nice and neat.
Next step, draw the track work out full scale in the actual layout table. Bought a dozen sheets of white poster board and covered the layout with them. Tacked the poster board down to the foam with drafting tacks and started drawing the track plan out full size. Used a trammel (long piece of board with holes for pencils) to swing the 22 inch, 20 inch and 18 inch curves. The centers of most of the curves are off the bench work out in mid air. I used a yard sale photographic tripod to give me a center to swing the trammel on for the airborne centers.
Partway into all this layout work, I began to change the plan. All sorts of things that looked great on the scale drawing, began to look less than great at full scale. So, out with the powered eraser, and change things around. Lesson learned, always mockup things up full sized.

Monday, May 12, 2008

A single USAF relief plane lands in Burma

The Burmese junta really doesn't want US aid for its uncounted hurricane victims. The hurricane was a week ago, and only now, does the junta allow a single USAF relief plane to land. Reports of 27,000 dead and 41,000 missing should require a Berlin Airlift kind of response. A single C-130 (medium sized turbo prop) isn't going to do much for a disaster on this scale. The junta is clearly doesn't care much for its citizens.

Sunday, May 11, 2008

Free AntiVirus for Windows XP

Due to the porous nature of Windows all sorts of malware (virii, adware,keystroke loggers, spam senders) can slide right into your computer from the Internet, from file sharing, from thumb drives, and just plain out of the air. There must be a malware magnet deep inside Windows. If you want to call your computer your own, you have to do something the keep the bad stuff out.
New machines come with something, usually Norton Anti Virus or McAffee Antivirus pre installed and pretending to be free. After some months, the free wears off and the programs beg for money to "keep them selves up-to-date". I used to run Norton Antivirus, but when it begged for money, I took a hit to my credit card but the program still refused to update and shortly just stopped running. Unless kept up to date the program quickly becomes useless. Scumbags from all over the world are constantly writing new malware, and unless updated, the anti virus program won't recognize the new malware when it strikes.
After the Norton failure to update, I started using F-Prot, an old DOS antivirus. So, starting up son's new laptop, I put F-Prot on it and ran it. Surprise, F-Prot only scanned 300 files and declared the computer virus free. That can't be right, even a virgin Windows computer has tens of thousands of files on it. Some googling on F-Prot and "long file names" revealed that trusty old DOS programs , raised on short filenames (8 character name plus three character extension), have trouble with Windows file name that can be of any length and even contain embedded spaces. So much for trusty old DOS antivirus.
Some more googling put me intouch with AVG antivirus. It's free, it updates itself, and it is a real Windows program in which the mouse works. It's 45 Megabytes to download, but broadband makes that happen with ease and grace. It is painstaking, examining file after file.
So if you want to save the maintainance fees of the commercial antivirus programs, try AVG.

Saturday, May 10, 2008

The Future of Freedom by Fareed Zakaria

"Illiberal democracy and home and abroad" is the subtitle. Interesting book, published way back in 2003, but I just saw a copy in our modest Abbie Greenleaf public library. The author is an Indian guy, editor at Newsweek magazine, frequent contributor to Wall St Journal op-ed pages, and talking head on the TV Sunday pundits. He is reasonable guy, smart, well read.
He uses language in non standard ways. For instance to Zacharia, democracy means any regime with universal suffrage. Limited suffrage, as we had in this country in the 18th and 19th centuries doesn't count. Regimes that hold elections count, even if the voters don't get much choice, like Eygpt or Hamas controlled Gaza. In normal usage democracy is any regime with a reasonable degree of personal liberty and an elected leadership even if the suffrage is limited to men, or property holding men.