mbarrick: (Default)
After Windows Update stealing my default mail client settings and setting them to Outlook against my wishes one too many times, I decided it was finally time to remove Outlook and the other assorted crap left over from requirements of old employers long gone. Much to my satisfaction the following crap has been purged from my computer:
  • Microsoft Access
  • Microsoft FrontPage
  • Microsoft Outlook
  • Microsoft PowerPoint
  • Microsoft Project
  • Microsoft Publisher
  • Microsoft Virtual PC
  • Microsoft Visual Studio
I feel like a great evil has been purged from the land. I will now rejoice.
mbarrick: (Default)
For those that scoff at television crime dramas when they create high-res images from grainy surveillance video:

http://people.csail.mit.edu/celiu/FaceHallucination/fh.html

"In this paper, we study face hallucination, or synthesizing a high-resolution face image from an input low-resolution image, with the help of a large collection of other high-resolution face images. Our theoretical contribution is a two-step statistical modelling approach that integrates both a global parametric model and a local nonparametric model. Our practical contribution is a robust warping algorithm to align the low-resolution face images to obtain good hallucination results. The effectiveness of our approach is demonstrated by extensive experiments with high-quality hallucinated face images with no manual alignment."
mbarrick: (Default)
For the purpose of this analogy I'm equating working on a corporate network with the task of plowing a field.

Windows - A tractor:
Does the job. Pretty much eveyone uses one. It breaks down from time to time, but because of it's ubiquity mechanics are easy to come by. Some tractors are better than others and every so often the manufacturer markets a real lemon. Fuel costs a fortune and the diesel you used to run your old tractor on is no good for your new gasoline-powered tractor so you are stuck with a useless tank of fuel behind the barn.

Linux - A really cool, custom-built, steampunk tractor:
Does the job. Everyone thinks you a freak for even wanting one, except for those that already have one. There is a guy on a farm in South Africa who will even give you one for free. Parts are easy to manufacture and anyone with a rudimentary knowledge of metalworking and mechanics can make their own, and if you are into it, you can add to it, tweak it, customize it for you specific needs and, make your own parts and keep it running forever. But if you can't do that sort of thing yourself, mechanics are hard to come by and cost through the nose. Fuel doesn't cost a thing - you can fire up the boiler on anything that burns.

Mac - A Porsche:
Sleek, more powerful than a tractor, expensive as hell to buy, and high octane fuel is extremely expensive. A status symbol. Other Porsche owners will fawn over the latest model and tractor owners are vaguely jealous of how cool it looks. Mecahnics are hard to find and expensive. If you need parts you can only get them from the manufacturer in Germany and they cost an arm and a leg and take forever to show up. It has a pedigree of a workhorse designed by Nazis for the common man, but is, in fact, almost completely useless for the job at hand.

ghoti

Jan. 28th, 2009 10:01 am
mbarrick: (Default)
The old adage:

Give a man a fish, feed him for a day. Teach a man to fish, feed him for a lifetime.
— Lao Tzu, founder of taoism


The old adage as it applies to IT:

Give a man a fish, he'll shut up and get out of your face. Teach a man to fish, and he'll fall out of the boat, scare away all the fish, break the fishing pole, deny any responsibility, blame you, and demand you immediately give him more fish, a better fishing pole, and a faster boat.
mbarrick: (Default)
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.
mbarrick: (Default)

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.
mbarrick: (Default)


From Gizmodo UK... it's from  post that's a year and a half old, but I just came across it.
mbarrick: (Default)

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
mbarrick: (Default)

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?
mbarrick: (Default)

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.
mbarrick: (Default)

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*
mbarrick: (Default)


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.
mbarrick: (Default)


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

Old-school geeks will understand.

Pet Peeve

Sep. 20th, 2006 09:50 am
mbarrick: (Default)

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.
mbarrick: (Default)
The freaking useless NT4.0 proxy servers are completely fucking useless today. Obviously we are getting nailed by the "Red Alert" worm. I got hit by this thing last week, it missed the mark because I don't run IIS isn't my primary web service and doesn't run on port 80, and I went ahead and applied the patch anyway. But here, they don't fix or upgrade anything until it breaks so they are susceptable to gobs of well-documented security holes. Any brain-dead script-kiddy could do more damage here than they could to the server that I run out of my studio. How fucked up is that? Whatever... as long as I get paid.

Syndicate

RSS Atom
Page generated Jan. 26th, 2026 01:34 pm
Powered by Dreamwidth Studios