Changing coding practices

As part of my voyage into Perl, I’ve been working my way through Perl Best Practices, by Damian Conway. Much of what he suggests works no matter what language you’re in.

There’s one thing I ran into that really messes with my head, because very few people writing Fox sample code do it this way although it makes complete sense. Conway says that instead of writing:

MyTotal = MyFirst + ;
    MySecond + ;
    MyThird + ;
    MyFourth

you should write:

MyTotal = MyFirst ;
    + MySecond ;
    + MyThird ;
    + MyFourth

Since you tend to read down the left side of the page, having the operators there tells you immediately what’s going on. I’ve always done this with Booleans, I think, but never concatenation…

Opinions, anybody?

Posted by Garrett on August 31st, 2006 in Code Sample, Programming, VFP, perl | 3 Comments

Really stupid sysadmins

I just bounced a phishing email I received to abuse@yahoo-inc.com, since they are hosting the site. The response:

The original message was received at Thu, 31 Aug 2006 11:14:53 -0600
from nyx.nyx.net [206.124.29.1]

   ----- The following addresses had permanent fatal errors -----
<abuse@yahoo-inc.com>
    (reason: 554 5.7.1 virus HTML.Phishing.Bank-652 detected by ClamAV - http://www.clamav.net)

   ----- Transcript of session follows -----
... while talking to mrin1.yahoo.com.:
>>> DATA
<<< 554 5.7.1 virus HTML.Phishing.Bank-652 detected by ClamAV - http://www.clamav.net
554 5.0.0 Service unavailable

*headdesk*

Posted by Garrett on August 31st, 2006 in Computing, Technology | No Comments

Utilities galore!

Scott Hanselman recently updated his tool list. He has a metric buttload of all the Windows tools you could possibly want to use listed there, including Paint.NET, ProcExp, Fiddler, ActiveWords,… well, you get the idea. Check it out, and start downloading!

Posted by Garrett on August 31st, 2006 in Computing, Microsoft, Programming | No Comments

Flash Satay

My recent Twango post broke my XHTML compliance, because of the <EMBED> tag that showed the Flash ticker. After a bit of research, I came up with this wordy set of tags that validates as XHTML 1.0 Transitional and works in both IE6 and Firefox 1.5.

<object type=”application/x-shockwave-flash” data=”http://www.twango.com/tools/twidgets/ticker.swf?feed=SarekOfVulcan.3GradePoolParty” width=”500″ height=”100″><param name=”movie” value=”http://www.twango.com/tools/twidgets/ticker.swf?feed=SarekOfVulcan.3GradePoolParty” /></object>

I’ve let the Twango folks know: now we just have to see if the wordiness makes it unworkable.

Posted by Garrett on August 31st, 2006 in Code Sample, Computing, Photo sharing, Web | No Comments

FISHIE! WHY ARE YOU SLEEPING?????

Otherwise known as, why can’t Blogger FTP into my site when I can do it just fine from here?

Posted by Garrett on August 30th, 2006 in Meta, Web | No Comments

Keith Olbermann responds to Donald Rumsfeld

I’ll just let Keith speak for himself.

Dissent and disagreement with government is the life’s blood of human freedom; and not merely because it is the first roadblock against the kind of tyranny the men Mr. Rumsfeld likes to think of as “his” troops still fight, this very evening, in Iraq.

It is also essential. Because just every once in awhile it is right and the power to which it speaks, is wrong….

That, about which Mr. Rumsfeld is confused is simply this: This is a Democracy. Still. Sometimes just barely.

And, as such, all voices count — not just his.

Had he or his president perhaps proven any of their prior claims of omniscience — about Osama Bin Laden’s plans five years ago, about Saddam Hussein’s weapons four years ago, about Hurricane Katrina’s impact one year ago — we all might be able to swallow hard, and accept their “omniscience” as a bearable, even useful recipe, of fact, plus ego.

But, to date, this government has proved little besides its own arrogance, and its own hubris….

In what country was Mr. Rumsfeld raised? As a child, of whose heroism did he read? On what side of the battle for freedom did he dream one day to fight? With what country has he confused the United States of America?…

The confusion is about whether this Secretary of Defense, and this administration, are in fact now accomplishing what they claim the terrorists seek: The destruction of our freedoms, the very ones for which the same veterans Mr. Rumsfeld addressed yesterday in Salt Lake City, so valiantly fought.

And about Mr. Rumsfeld’s other main assertion, that this country faces a “new type of fascism.”

As he was correct to remind us how a government that knew everything could get everything wrong, so too was he right when he said that — though probably not in the way he thought he meant it.

This country faces a new type of fascism — indeed.

Crooks and Liars has the video up, if you missed it.

Good night, and good luck.

And God help us all.

Posted by Garrett on August 30th, 2006 in Olbermann, Politics | 11 Comments

<Gandalf>You! Shall Not! LINK!</Gandalf>

I just signed up with the Royal Mail to check on a postcode. Under the Terms and Conditions I had to agree to was the following gem:

Links to this website

You may not create a link to any page of this website without Royal Mail’s prior written consent. If you do create a link to a page of this website you do so at your own risk and the exclusions and limitations set out above will apply to your use of this website by linking to it.

You get the feeling they’re kind of missing the point of it being a “web”?

Posted by Garrett on August 30th, 2006 in Web | No Comments

flickr adds geotagging

Thanks to Wired and Google Desktop, I caught the news that flickr has hooked into Yahoo! Maps to assist in geotagging your photos. I wasted quite a bit of time with Google Earth and Picasa earlier this month doing the same thing for my local copies: now I got to do it for the public ones too. :-)

Sorry about the distinct lack of links here, it’s too gorram late to be coherent. Ah, that’s better. :-)

Posted by Garrett on August 29th, 2006 in Geotagging, Google, Photo sharing, Web | No Comments

Teddy bear, or alien facehugger?

You be the judge.

Posted by Garrett on August 28th, 2006 in Family, Original, Photo sharing | 1 Comment

The Taming of the Erin

I don’t know what it is, but Erin can watch the Burton-Taylor The Taming of the Shrew over and over again and not get tired of it.

I’ll have to toss Kiss Me, Kate at her sometime and see how long it takes her to realize it’s the same story…

Posted by Garrett on August 27th, 2006 in Family, Movies | No Comments

« Previous Entries