Intel's Ronler Acres Plant

Silicon Forest
If the type is too small, Ctrl+ is your friend

Sunday, March 8, 2009

Surya Bonaly

I was thinking about those stunts in Reebok Fantasy NFL videos. The stunts look real, but are they? Then I remembered Surya Bonaly, the black French Olympic figure skater, did a backflip at the Olympics. It caused quite a stir with the crowd and with the announcers. The first 45 seconds of this video are damaged, but after that it clears up.

My wife and I had been watching the figure skating competitions for a while, and we had never seen anyone do a backflip on the ice, so when we saw this we were amazed. Later on there was demonstration program where skaters should show off for the crowd, no judging involved, and one of the male competitors did a backflip. I thought it was Brian Boitano, but he wasn't even there, so I don't know who it was. Anyway, this made me think that any skater competing at this level is probably capable of such a move. You don't see backflips in competition because they are against the rules. I think the deal with Surya was that she had fallen once and figured she had already lost the competition, so she did it for the crowd, and for the in-your-face effect to the judges. Who knows?

My point is there are layers of talent behind what we see in public performances. Professional entertainers (which includes professional athletes) can spend inordinate amounts of time perfecting their craft, which is what makes me think those Reebok fantasy videos could possibly be real. Then again, the videos were made by a company called Blue Room. Blue Room? Would that name have anything to do with Blue Screen? Maybe it is all just a fantasy.

Saturday, March 7, 2009

Pentaminx

Some people can follow through on hare-brained ideas.

This is a one off (so far). You can read all about it here. Via Syaffolee.

Colossus

Colossus
Update: Stu pointed out that I had made a couple of errors in this post. I have attempted to correct them. I hope he's happy with the result.

Colossus has been restored! Colossus, in case you forgot, was the granddaddy of all electronic computing machinery. It was installed in Bletchley Park (where did they get that awful name?) during WWII and was used to decrypt code used by the German staff. It was like the 2nd generation of machinery developed for this purpose. The first generation was used for decrypting messages Germany was sending to their U-boats. I found the link on Andy's Retro Computers. Here is the picture of the eclectic mansion that stands in for what was really going on,

Bletchley Park
which was this:

Map of Bletchley Park
Update: the aerial photo I had here has disappeared from the web. Looking for a replacement I found this map.

Here is a Google map. At this scale you can see all the buildings involved in the wartime project. The placemark is centered on the lawn in front of the mansion. If you zoom in you can tell it's the mansion because of the blue-green color of the roof at one end. The housing development along the left hand side is not part of the park.


View Larger Map
This whole thing is about 45 miles NW of London. There was a movie "Enigma", parts of which were set in Bletchley Park.

Update September 2016 replaced missing pictures, except for the aerial view.

The Curse Of UNIX

Regular Expressions are the work of the devil, nevermind what some Perl apologists say:
WARNING: This article contains more punctuation that many non-programmers like. That's because regexps and finite automata are concise ways of expressing powerful concepts. They are not for the faint of heart. Don't blame Perl if you don't like regular expressions. And don't blame Thompson or anyone else. If you don't like them, don't use them. But don't despise those of us who do.
Perl is it's own language, and unlike other human languages cannot be translated into anything mere humans can read. I suspect it originated with aliens who are trying to subvert our civilization to prepare for their conquest of our planet:
How can I convert my perl scripts directly to C or compile them into binary form?

The short answer is: ``No, you can't compile perl into C. Period.''

However, having said that, it is believed that it would be possible to write a perl to C translator, although it is a PhD thesis waiting to happen. Anyone need a good challenging thesis?

According to some people (alien lackeys, no doubt), Perl is a programming language. Perhaps if you are born and bred to it, you might think so. If you didn't grow up in the UNIX (or Linux) environment, you (and me) are more likely to describe it as gibberish.

So why am I making a fuss about this anyway? Perhaps I like beating me head against a wall. Or maybe I have an NSA complex and think I can crack anything, however inscrutable it appears.

I went to a PLUG meeting the other night down at PSU. Later on I was looking on their web site for a forum where I could post a message. I did not find a forum, but I did find something called IRC, which is what elite programmers used to communicate before there was the internet. You need a special program to use this communications channel. So I downloaded it and took a look at what we've got, and half the program is writen in Perl. So I set about trying to understand what one small file does. It took me a while, but I finally was able to translate it to C. I don't know that it is 100% accurate, there are still a bunch of environmental issues to consider, but I think I captured the essence. So, yes, you could earn yourself a doctorate if you could come up with a program that would translate this stuff to English or C or any other reasonable language.

Here is the Perl program findsyntax.pl:

#!/usr/bin/perl -w

while(<>) {
if(m!/\*.SYNTAX\:! || $tt) {
s/^\s+/ /;
if (/^ [A-Z]+/) {
print "\n";
s/^ //;
}
if (m!\*/!) {
$tt=0;
} else {
$tt=1;
chomp;
}
print;
}
}

And here is my translation to C:

void chomp(char* p1)
{
// Remove all trailing end-of-line characters from a string.

char* p2;

p2 = &p1[strlen(p1) - 1];
while ((p2 > p1) && (*p2=='\n'))
*p2-- = 0;
}

#define isblank(cx) ((cx==' ') || (cx=='\t'))

void findsyntax(void) // uses global variables s & tt
{
while (strlen(s))
{
if (strstr(s, "/*.SYNTAX:") || tt)
{
if (isspace(*s)) // Condense leading white space
{ // to one space.
while (isblank(*s++));
s--; // Point to last blank
s[0] = ' '; // Ensure that it is a space
if (isupper(*s[1]) // Is first non-blank character
{ // a letter?
putEOL();
s++; // move past space to letter
}
tt = !strstr(s, "/*");
if (tt)
chomp(s);
}
printf(s);
}
}
}

I suppose my translation is not much more intelligable, at least to the non-programmer.

NFL

These are some pretty amazing stunts. In these days digital imagery, you never know if this stuff is faked or not. These stunts are right on the edge of believable. I would like to think they are real. I looked around on the web, but couldn't find anything to confirm it either way, but maybe I just didn't hold my mouth right.

Stolen from Marty North and Greenfield Park.

Thursday, March 5, 2009

Executive functioning (Part Deux) & Home Warrantee (8 days & $200 vs. 1 day & $100)

Letter from Iowa:
Hi,

Ok I just spent 1.5 hours gathering information, initiating claims, calling repair people to get "home warrantee" work done on the house. Nothing has actually been fixed just executive functioning, to arrange for further need of more executive functioning.

The warrantee people make this sound like a fun carefree way to have your problems taken care of.

Maybe for people who have high level executive functions. I consider it torture.

5 items to fix:
  1. Clothes washer - only dribbles hot water - gentle cycle; sticks though this cannot be replicated
  2. Garage doors - old and working intermittently
  3. Oven - self cleaning feature & latch broke
  4. Ceiling fan - hummm loud and wall switch broke
  5. Swinging kitchen door, mechanism for holding door open broke
Home Warrantee process:

1) Itemize problems & model numbers & serial numbers

2) review contract to see if problem qualifies (akin to reading a home mortgage policy)
a) Clause states that garage door levers, rollers not covered
b) Kitchen Door - doesn't seem to be covered

3) Login to website and key in all claim information
a) The site responds to your claim with either
1) contact information for you contact a preapproved vendor
2) Ask you to contact a local vendor and arrange for a diagnosis and then send in estimate for approval

4) Call pre-approved repair people
a) they ask for all the same claim information that was asked for by warrantee company
b) they will arrange a time for a diagnostic visit. They ask for a 8 hour window on choice of two days over the next two weeks
1) The oven and washer use same repair company but they require two visits on two different days for which they ask a 8 hour window.

5) Find and call repair people for a diagnosis of out of-system-repairmen
a) Their estimate needs to be approved by the warrantee people before work done.

6) Arrange to wait for all the repair guys to come by and provide estimates, appears to be up to four days of waiting.

7) Provide warrantee company with estimate and wait for their approval

8) Arrange for repairs, up to 4 more days.

9) each repair has a $50 deductible

10) so using the warrantee system there are 2 hours of phone work, 8 days of waiting for repairmen & $200 of deductible fees, if everything is approved. Plus you need to keep track of 5 companies, contacts, schedules.

11) My guestimate of doing it myself would be 1 day of labor and $100 in parts, albeit with more technical functioning and much less executive functioning.

12) Funny how this executive functioning may not necessarily be the best way to do something. (this begs for further study)

Andy

Wednesday, March 4, 2009

Random Joke

Yesterday, I was buying 2 large bags of Purina dog chow at Walmart for my dogs; Winston, Chief, Gus, and Maximus. I was about to check out when a woman behind me asked if I had a dog. What did she think, that I had an elephant?

Since I had little else to do, on impulse, I told her that no, I didn’t have a dog and that I was starting the Purina Diet again, although I probably shouldn’t because I ended up in the hospital the last time.

On the bright side though, I’d lost 50 pounds before I awakened in an intensive care ward with tubes coming out of every hole in my body and IV’s in both arms. I told her that it was essentially a perfect diet and that the way it works is to load your pockets with Purina nuggets and simply eat one or two every time you feel hungry and that the food is nutritionally complete so I was going to try it again. (I have to mention here that practically everyone in the line was enthralled with my story by now.)

Horrified, she asked if I ended up in intensive care because the dog food had poisoned me. I told her no; I had stopped in the middle of the parking lot to lick my butt and a car hit me.

I thought the guy behind her was going to have a heart attack, he was laughing so hard!

Wal-Mart won’t let me shop there anymore.
Stolen from Dutty's Blog. Via Dustbury.