Atratus

Michael R. Barrick
recent
[ livejournal userinfo for "mbarrick" ]



Useful IT Tip
[8th Feb, 2008|12:08]
[Tags|, ]

Underneath a desk were it is too dark to see WTF you are doing when plugging in a cable, a Blackberry displaying a mostly white screen makes an effective light source.
Link3 comments|Leave a comment



Go Crawl Yourself
[1st Jan, 2008|15:25]
[Tags|, , ]


First off, happy new year, blah, blah, blah, [insert navel-gazing year-in-review/big-plans-for-2008 post here]. There, that's done.

At the moment I'm working on some post-relaunch tweaks for Gothic BC and was looking at the logs. In between the people who think I get up at 6:00 a.m. after getting in from the club at 5:00 a.m. and am going to magically download and catalogue 400 photos off my camera, weed through them for the 150 or so worth posting, processes them, and have them posted on the site by 6:15 a.m. (reality: I got up about an hour ago and the camera is still in the bag) who are already scouring the site for last night's pictures, there are a gazillion hits from someone crawling the site for video content with a VEOH client.

This is uncool. First off, there is no video content on Gothic BC, nor will there be for some time to come, if ever. Secondly, as I understand it VEOH is effectively a P2P service which would mean I could potentially have dozens of these clients crawling the site effectively amounting to, given my limited bandwidth, a DDoS attack. No thanks.

Apache rewrite module to the rescue:

RewriteCond %{HTTP_USER_AGENT} veoh [NC]
RewriteRule .* http://www.veoh.com/ [F,L]


Translation for those that don't speak Apache )

Of course, the "nice" thing to do would be to issue a "503 forbidden" response and just let the request die, but what VEOH is doing isn't nice. They are using a distributed network to download video off other people's sites, thereby decontextualising it from authors, who in the case of video-bloggers may be relying on the page context to serve up their advertising or other content that represents their income stream. VEOH then presents the content on their own page, with their own advertising, and makes their own money that the authors of the video content never see one red cent of. They deserve to be hoisted on their own petard.
Link8 comments|Leave a comment



Best Mac Laser Etching Ever
[28th Dec, 2007|10:09]
[Tags|]



From Gizmodo UK... it's from  post that's a year and a half old, but I just came across it.
Link2 comments|Leave a comment



RSS from ezboard
[15th Dec, 2007|15:08]
[Tags|, , ]


I've been working on a project for the last while that has, as one aspect, an RSS aggregator to bring together news from a bunch of different related website - nothing earth-shaking there. Problem is one of the sources I want to aggregate is an ezboard forum. The fact that ezboard doesn't have RSS feeds, however, put a bit of a damper on that.

A bit of Google searching made it quite clear that I was not the first person to want to do this, and while I am all for not reinventing the wheel when possible pretty much all I could find were lots of "ZOMG!!1!! I needs RSS from ezboard. PLZ spoon feed me!" forum posts and very little of actual use. In reply to these there were a couple of links to a dead service at http://www.mikeshea.net with the requisite "is gone OHNOES!!1!" replies. Eventually I found a post where someone rather usefully posted a link to the source on Mike Shea's site and I gave it a try.

While there was some wonderful Perl-y goodness to the script, particularly it's ability to deal with a whole bunch of other bulletin board services, the RSS generated was, to put it mildly, badly formed - the worst part for my application was a lack of pubDate tags so the items wouldn't slot in chronologically with the other feeds in my aggregator. Running the script also added about 20 lines of warnings in the error log every time it was executed. The script was all at once overkill and not very useful to me. But not completely useless. I retained the caching and some of the ezboard-specific screen scraping when I rewrote it, so credit where credit is due.

My script is entirely single-purpose, unlike Mike Shea's script it only works with ezboard forums, that's the downside. The upside is what it returns
  1. is the right content type ('text/xml')
  2. includes a lastBuildDate
  3. includes a pubDate for each item
  4. includes sticky threads, yet still sorts the thread items in the correct descending order by date/time, and, of course
  5. runs without warnings or errors

How to use:

For the cache you'll need a subdirectory under the location of the script that is writable by your http server process.

The script expects three parameters:
  1. title - arbitrary text describing the feed. This is what is going to end up inside the <title> tag of the RSS feed. Don't forget to URL encode the string.
  2. url - the full URL to the forum you want to make a feed from, URL encoded, of course, and
  3. description - arbitrary text  describing the feed, this will end up inside the <description> tag.
Example:

http://yourservername/andpath/ezrss.pl?title=Arbitrary+Title+for+Feed&url=http%3A%2F%2Fpxxx.ezboard.com%2Fmyforumpath&description=Arbitrary+Description+of+the+Specific+Forum

Source code: ezrss.txt
Link6 comments|Leave a comment



Go FUD Yourself
[15th Aug, 2007|09:42]
[Tags|]


Perhaps it is because of having lost too much of my life fixing things FUBAR'd by Microsoft "fixes", but I have come to fundamentally doubt the motivation behind many Microsoft patches. As anyone who has worked in IT for any length of time knows, there are frequently other "fixes" and "features" snuck in that are not mentioned in the security bulletins. For example, it annoys the crap out of me to have file associations and default applications revert to Microsoft products after a patch, or worse, have competing non-Microsoft products outright fail after a patch.

Microsoft ceased to be a technology-driven company decades ago. Microsoft is marketing first, actual working software second (if it all). The press from the usual Microsoft-shill trade-magazines about the latest round of patches really has me wondering if the marketing weasels have completely infected the process. Acticles like this one that focus on an update that "affects a core Windows subsystem, and all versions except for Windows Vista" and Microsoft's own ominous wording that
An attacker could exploit the vulnerability by constructing a specially crafted image that could potentially allow remote code execution if a user opened a specially crafted attachment in e-mail. An attacker who successfully exploited this vulnerability could take complete control of an affected system.

This is a critical security update for all supported editions of Windows except Windows 2003 Server Service Pack 2 and Windows Vista.
makes me wonder if what the patch is really intended to "fix" is unsatisfactory Vista sales.

Could this be classic Microsoft FUD (Fear, Uncertainty, and Doubt) interestingly self-directed to scare people into upgrading to Vista switching to Ubuntu?
Link4 comments|Leave a comment



This Week's Winning Bit of Stupidity
[13th Jul, 2007|22:59]
[Tags|, , ]


I had a "lead developer" telling me that their application wouldn't work in a frame because if the address bar wasn't visible in the browser the application wouldn't work because it couldn't "see" the parameters in the URL. He meant "see" literally.

In a way I almost envy the guy. He lives in a magical world where servers have mysterious powers to visually read off URLs from the browsers address bar. That must be why MSIE shows the URL in pop-up windows even if the address bar is disabled (and you can have one guess what platform and technology this magician works with).

I asked him to explain how the GET request changes if the address bar isn't there. He said, "I don't want to argue with you."

The worst thing is the developer in question (or questionable developer, as the case may be) has lied to my client and I'm afraid he has convinced them that it was my fault and my only defence, sadly, it trying to give a technical explanation to someone is not in the least technically inclined.

I keep running into this scenario and I feel like I am defending evolution in Tennessee. It is depressing.
Link5 comments|Leave a comment



Why I Don't Work Well With Others
[9th Jul, 2007|21:36]
[Tags|, , ]


I was told this in all seriousness last Thursday:
I don't think it matters that our site doesn't look good in Firefox. I've looked at other big sites that don't look good in Firefox and we're no worse. Is it even possible to make a site that looks good in all browsers? I don't think it is.
All I could do was rub my neck and say, "No, actually it is."

*sigh*
Link7 comments|Leave a comment



Gold, Silver and the Test of Time
[17th Jun, 2007|20:52]
[Tags|, ]



Who doesn't like looking at pictures from a century ago? A lot changes in a hundred years and it is fascinating to have that glimpse back. In a hundred years what will there be to look back on? With the ubiquity of the digital camera there is more visual documentation of these early years of the 21st century than any previous period in history. But what will happen to all those billions of digital pictures? In a hundred years there will be no-one finding shoe boxes of their ancestors' holidays.

"Yeah, but they'll be finding my old CD's and DVD's" you say? Perhaps that's true, but will they be able to do anything with them? Changes in technology notwithstanding (I have, as I write this, data on 5ΒΌ" floppies and ¾" professional VHS tapes, hell, I might even still have some 8-track tapes in a box somewhere) chances are that those discs will not be readable even if the hardware and software is available. The perception is out-there that once something is on a CD or DVD it is archived forever and that is regretably false.


Left: a fairly new silver CD
Right: a tarnished silver CD that's only about 2 years old
The problem with writable CD's and DVD's is in the reflective layer. Most of the discs out there use silver because it is relatively inexpensive and highly reflective - for a while. Silver tarnishes. As the illustration to the right shows, this doesn't take long. A recordable DVD can become unreadable inside a year and a CD can "rot" in as little as two or three years. How many graduations, weddings, vacations, memories and artworks are already lost? What can you do?

For some time now I have only been buying gold-foil CD's - ever since I had a CD of photographs become unreadable. Gold does not tarnish. Certainly it is more expensive, a gold CD-R is about twice as much as an ordinary silver one, but the data is going to stay intact for two or three centuries rather than years. Twice the price is a good bargain for one hundred times the lifespan.

Lately the CD's have been proving inadequate on another level, though. Now that I am regularly using 2 GB and 4 GB cards in my cameras  I'm quite literally burning through at least one CD every time I have a shoot. It's easy enough to burn the two or three CD's necessary, and the expense isn't worth mentioning, especially in comparison to what I spend when I shoot film or I'm doing a painting. It's the storage space and retrieval that is becoming cumbersome, so getting nearly five times that capacity from a DVD in the same physical space is compelling.

Earlier this week I went looking for archival quality (i.e. gold) DVD's. I couldn't find any anywhere nearby. Outfits like Staples, London Drugs, etc. don't carry gold DVD's. I presume that is because at a cost (taxes and levy in) of about $3.50 per disc people who are not aware that what they put on a regular DVD could be gone in a year aren't buying the 100-year discs.

Shelling out $350 for a spindle of 100 gave me pause, I'll admit. However, archival DVD storage works out to only 0.072¢/MB compared to 0.139¢/MB for the archival CD's. In terms of price/MB/year the CD's are still a better deal with their 300 year lifespan compared to the century the DVD's are good for, but I'm willing to trade one fifth the physical space requirements against three times the archival longevity. I expect that when the DVD's pass to my heirs they'll likely copy them to whatever new media the late 21st century will have to offer anyway.
Link6 comments|Leave a comment



10,000 Pixels of Glory
[7th Jan, 2007|15:45]
[Tags|, ]



I made the above animation and created quite probably the geekiest icon ever from it.

Old-school geeks will understand.
Link8 comments|Leave a comment



I have two words on MSIE 7
[19th Oct, 2006|10:04]
[Tags|, ]


Microsoft Firefox.
Link1 comment|Leave a comment



Pet Peeve
[20th Sep, 2006|09:50]
[Tags|, ]


I have a little mini-aneurysm every time I hear a sales-weasel say "software program". It sometimes makes sense to say "computer program" in some contexts where there might be ambiguity with some other meaning of the word program, such as a theatre program, but there is no context where "software" is ambiguous. "Software program" is a redundancy like "ATM machine" and every time I hear it gives me the mental image that all the appliances in the sales-weasel's apartment are blinking 12:00.
LinkLeave a comment

navigation
[ viewing | most recent entries ]