Yet more seam carving

When last we visited the wonderful world of image "retargeting" by means of the cunning seam carving technique, I envisaged a decent free seam carving Photoshop plugin in the near-ish future.

Well, that hasn't turned up yet. But a couple of options besides rsizr.com and that GIMP plugin have.

The inventively named Content Aware Image Resizer is a simple command line utility that can only cope with BMP format images, but gets the job done (a bit slowly...), is multithreaded, and is GPL-licensed so C++ hackers can fiddle with the source.

Resizor is a standalone Windows app, which is only single-threaded but still seems a bit faster than CAIR (I think rsizr.com is faster now than it used to be, too), has a bunch of fancy resizing algorithms as well as the seam carving "Retarget" option, and has a graphical interface too.

Resizor only lets you make an image smaller by seam carving (one of the interesting features of the technique is that it can just as easily enlarge images as shrink them), but it does what most people want to do.

Seam carving comes home

The remarkable "seam carving" image resizing technique that I and everybody else posted about a month ago has now been implemented in at least two ways.

First, there's the Liquid Rescale plugin for GIMP.

[UPDATE: Picutel's "Smart Resize" is a Photoshop plugin that does the same thing. You have to buy the full version if you want to work with images bigger than 640 by 480, though.]

Rsizr

Second, and much more interestingly for casual dabblers, is rsizr.com (of course).

Rsizr lets you watch the seams being carved before your very eyes in a Web browser.

It's not the fastest process I've ever seen, since this is a rather computationally intensive technique (since it's doing it in Flash, I suspect it may be based on one of the open-source ActionScript seam carving implementations mentioned here). If you want to mess about with Rsizr, I therefore recommend you use images no bigger than 1024 by 768, even if you've got a firebreathing computer.

Note also that after you've done the seam-carving, you still have to click the image and drag its border to actually resize it. Well, I think you always have to do that; Rsizr's pretty much documentation-free at the moment.

But it definitely does work.

Original image

It allowed me to turn this 1280 by 850 pixel original...

Seam-carved version

...into this 855 by 640 pixel version. Click the images for full-sized versions.

The reduced-size version now has rather cramped composition, and the terrain looks a lot more hilly than it really was. But all of the major image elements - the sharp trees, the two buildings, the man and the boy - are preserved almost unchanged. They're just closer together than they were.

The rsizr.com server's being hammered a bit at the moment, so the "Save" function takes rather a long time to work. It's easy enough to get around that, though - once you get your image the way you want, just take a screenshot of the window and cut the image out of it.

(I presume there'll be a decent free Photoshop-plugin image carver Real Soon Now. In other news, one of the guys who came up with the idea has been hired by Adobe.)

1337 H4XX0rZ wanted!

It's great to see such impressive strides being made in the important field of protecting children from boobies.

Back in the day, there was software that confidently classified the Mona Lisa as porno. And also classified porno as being perfectly squeaky clean.

Nowadays, there's software on which my very favourite Australian Federal Government ever has apparently spent 84 million Australian dollars (about $US69 million, as I write this).

This software can, it is said, be bypassed by a kid in a matter of minutes.

(I see no reason to change my conclusion from the end of 2000: It doesn't matter, to the people who make it or the people who pay for it, whether censorware works or not.)

The news.com.au piece doesn't actually tell you how the pictured smirking 16-year-old bypassed the NetAlert suite of programs (while leaving them apparently running!). I presumed it was something rudimentary, like killing a couple of processes in Task Manager. Maybe a few seconds with regedit, too.

[UPDATE: As of 2012, that news.com.au page disappeared, in accordance with their ancient tradition; archive.org has it, but without the picture of the smirking teenager. The government Netalert site has been quietly led beghind the barn and shot in the head, too; here's how it looked when it was young and optimistic. Netalert-dot-COM-dot-au is alive and well, but it's not quite the same thing. I've had to archive.org-ify a few other pages, too.]

This ITWire piece details an inelegant way of temporarily and invisibly disbling Optenet, one of the three programs, by... killing a couple of processes in Task Manager.

This page mentions ways to prevent people from "tampering with Integard", which are hilarious enough that I'll leave them as a surprise, but which include not letting anybody boot the computer from CD.

That is, of course, well beyond the capabilities of the average parent (change boot order in BIOS setup program, set BIOS password, and then just hope your kid doesn't know how to clear the CMOS, which wipes the password and resets the boot order to default in one hit).

Just booting from BartPE or a Linux disc and nuking the nannyware isn't, of course, the sort of elegant and undetectable hack that's being advertised here. So there's probably something neater out there.

I'll be pretty surprised if you even need Process Explorer to nobble the rest of these marvellously enterprisey programs so wisely purchased from their skilled authors with my tax dollars. But who knows?

You mission, gentle readers, is to Outflank the Nanny, in as few keystrokes as possible. The software's a free download.

Our Government's dedication to quality software extends to the "Required" e-mail address and postcode on the download page. The postcode can be any four digits, and the e-mail address just needs to have an @ and a . in it, with two or three characters following the .

(The Safe Eyes download requires some kind of further account creation folderol. I also don't know whether they check to see if you've got an Australian-looking IP address.)

Motorvation

The first article I ever read on the most excellent Evil Mad Scientist Laboratories site was their one on how to build a homopolar motor.

Go there. Check it out. Build one. It's ridiculously easy, and it works remarkably well. And, unlike some other unlikely motor designs, it's unlikely to rip skin off your thumb and then become red hot.

Unsurprisingly, homopolar motors have become something of a GooTube phenomenon, and there've been some innovations.

The Evil Mad Scientist version of the motor has four parts; one battery, one screw, one magnet, one bit of wire.

This can be reduced to three parts by making the magnet static and turning the wire into the rotor:

The "roller" variant.

An elegant spiral version.

The screw type, turned upside down!

Balance this one properly and it could be quite impressive. Using hard disk components is definitely a good way to start.

This one's quite imposing, though the timidity of its operator suggests it's not very well balanced, either.

OK, now this is just showing off.

Before this newfangled fad for homopolarity, there was another "world's simplest motor" that also needed only three components, if you chose those components carefully (it's mentioned on the Evil Mad Scientist homopolar page). Kids who want to get a solid C on their science project can buy a kit to build one.

The old "World's Simplest" motor is considerably more complex than the homopolar motor, but it's also much closer in design to a standard commutated DC motor.

Here's a home-made one in action:

And here's how to make one:

SupComTweak

An enterprising Supreme Commander fan has come up with Core Maximizer, a utility for people with dual-or-more-core computers (or even hyper-threaded single cores, though you can't expect a great improvement from those) that makes the game run considerably better. It does it by more efficiently shifting the game's multiple threads onto cores other than the first.

The effect is a large increase in frame rate, at the cost of a small decrease in maximum "sim" speed - which isn't a very big deal, since I for one often find it beneficial to slow the game down a bit when complicated stuff is going on, anyway.

On my dual-core Athlon 64 PC (this one), running the standard "perftest" benchmark showed that Core Maximizer slowed sim-speed to 96% of what it had been, but accelerated render-speed by a factor of 2.4. This resulted in 23% more frames logged during the benchmark, which is pretty darn impressive for this extreme stress test. Other users have reported similar improvements.

(And yes, as an old TA player I, too, originally thought it sounded like a downloadable unit. "The Core Maximizer is a roving optimization system. It upgrades other units so that they move more smoothly.")

Wires 'n' volts

I just spent a little while perusing the Hobby Corner section of the excellent Discover Circuits site.

I reviewed a "shake flashlight" a while ago, and have since answered a letter from someone who bought a fake one.

Here's a page about how, exactly, the (genuine) lights work - or at least how the cheap knockoff versions do. It suggests a better design, but the shake-light idea is pleasing despite its inefficiency; with decent components they work well enough, and they let the light retain a normal unbroken flashlight casing, rather than requiring a crank handle or pull-string to stick out somewhere.

I've got some of the cheap-yet-functional ones as mentioned on that page; I bought them very cheaply on eBay, so I'm not too bothered that they take a lot more effort to charge and glow more weakly and for less time.

If you feel the urge, you can follow the Discover Circuits suggestions and upgrade the cheap lights with better diodes and capacitors to be much closer to the quality of the brand name versions.

Another Discover Circuits highlight: A super-simple capacitor-based constant current LED power supply to let you run long strings of LEDs from mains power (or fix these crappy LED nightlights).

It is also my considered opinion that the words DANGEROUS VOLTAGES EXIST EVERYWHERE are the mark of a truly excellent schematic.

And now, irresponsible mayhem

[UPDATE: That video's dead now. I found some more, though; they're here!]

If they didn't want you to do this, they wouldn't put those handy connectors on the batteries, would they?

(I think the experimenter bought his Science Spatula from the same place where I got my Science Nails.)

I count a total of 125 9V batteries there, for 1,125 nominal volts. And yes, as I've mentioned before, you certainly can kill yourself stone dead by doing this.

(Incidentally, people today use clicked-together 9V batteries to replace the no-longer-available B batteries for vintage valve radios.)

A while ago, I had a harebrained scheme to use 9V batteries to make a 110V-ish DC source (in this 230VAC country) to get that elusive green oxide coating on some titanium.

Grody batteries

Unfortunately, the super-cheap eBay dealer I chose sent me the nastiest batch of nine volters I've ever witnessed (and, yes, he then refunded my money), so that plan to kill myself fell by the wayside.

Now, though, I've got a Variac and a bridge rectifier. What could possibly go wrong?

Talk crap for money! It's easy!


$10 Police Flashlight Hack! - video powered by Metacafe

There's some insight and a considerable amount of confusion in the LifeHacker thread about this video, so rather than tack a wordy comment onto the end, I decided to post about it here. And then it sort of snowballed. But first, the flashlight thing.

Yes, you can relatively easily upgrade cheap flashlights with a higher voltage battery pack and a cheap bulb to match. Grab any old Maglite clone, install 12 volts worth of cordless-drill NiCds and a 50 watt halogen downlight globe (or more), and you're in business (not much run time, but feel the brightness!). CandlePowerForums is an excellent place to kick off your new obsession with flashlights (or it would be, if it weren't down at the moment).

This particular project, though, isn't a good idea.

One commenter observed that the flashlight might melt, but I wouldn't worry too much about that; I reckon running a bulb meant for six volts from three CR123s will burn it out long before it manages to make the plastic smell funny. You're pushing the bulb to something approaching twice its rated wattage - filament lamps increase in resistance as the filament heats, so you can't do a simple V=IR calculation for higher input voltage, but the difference isn't huge over normal working power ranges. Double power will absolutely murder the poor little thing.

Surefire, in contrast, rate their filament lamps for 30 hours of life, and it's hard to find anybody who's had one blow that soon, even if they drop their light, hit things with it, or screw it onto a frequently-used firearm.

(Normal flashlight bulbs do not like being shocked while they're operating, as anybody who's ever hammered on a tyre iron with their 6-D Maglite and killed both the working bulb and the foam-padded spare will know. The Radio Shack bulb is rated for 15 hours, but that doesn't include dropping the flashlight. LED lamps, in contrast, are rather more shockproof than many other components of a flashlight.)

I'd be very surprised if the bulb in this "overclocked" flashlight lasted 30 minutes. 30 seconds would not be out of the question, with fresh CR123s.

But then, as I'd reached the above point in the writing of this post, I noticed that a couple of commenters on the Lifehacker thread said they'd done the hack and it worked fine.

So I decided to give it the benefit of the doubt. Maybe that Radio Shack bulb is just unusually strong?

Then, though, I clicked through to the Metacafe page for the video in question. And discovered that it had by that point earned (according to the Metacafe money-for-popular-videos system; I believe the origin of this money involves underpants gnomes) its creator nine hundred and fifty-six American dollars.

And it's not "Kipkay"'s biggest earner, either.

Even then, I could have let it go; it's not as if the guy's stealing from orphans, and what the hey, the trick may work.

But then I looked at some of Kipkay's other videos.


DVD Player Hack! - Click here for the most popular videos

The sum total of the useful information in this one, for instance, can be boiled down to one URL. But it's still made Kip $935 to date!


Trace Any IP Address Or Website! - Click here for more free videos

More than thirteen hundred bucks, for this one.

Let's ignore "the name of the IP address", Kip's instruction to use tracert when ping will do the same job, and the fact that at first glance he appears to be cool with the idea that the White House is in Boston. The major point is that geographic IP address locating cannot ever be more than vaguely accurate.

The site Kip suggests does its best, but it still confidently puts me 94 kilometres by road from where I actually live. It places the White House's IP address somewhere near the corner of P Street and 8th in Washington DC. That's only about a kilometre off, but the effective range of my RPG-7 is quite a lot less than that, Kip! Gimme information I can use!

Kip's got plenty of videos that're perfectly genuine, plus others like this one ($665!) that're borderline enough not to matter.


Make Traffic Lights Change!! Amazing! - Click here for this week’s top video clips

And this ($765!), while a complete and unexpurgated lie and probably plagiarised, could be classed as a harmless prank since it just gives people something to do while they wait for the lights to change.

And this one...


Potatoes Power My MP3 Player! Amazing! - Free videos are just a click away

...could be taken as a lame attempt to imitate the far more stylish (and, I think, rather less profitable) Mark Erickson, who, in case you're wondering, is not the same person as Kip.

(I still, however, think Kip should suffer one disfiguring skin ailment for every child who tries to build this potato battery and is left disappointed by Kip's lies.)

If I were very charitable I could even give Kip a pass for calling this...


Cool Ball Bearing Rocket! - These bloopers are hilarious

..."a new trick with ball bearings and magnets", despite the fact that the 2002-vintage scitoys.com page for the exact same thing has for ages been the number one hit in a Google search for "gauss gun" (which, yes, should technically be a coil gun, but never mind).

(Kip also rips off a #1-hit Science Toys page for this video. Oh, and he's not above ripping off Mythbusters, either. And he copies his floppy disk Enterprise from this four-year-old page.)

But then there's this...


HyperMiling! Plus Secret Trick! - A funny movie is a click away

...which starts with sensible tips and then slides into bullshit about acetone, which will absolutely not improve your fuel economy - it's another one of those strange phenomena that seems to happen less and less the better you test to see whether it's happening at all.

But hey, who cares about the hoses and seals in the cars of suckers, when Metacafe will give you twelve hundred bucks for talking crap!

And then there's this:


Does GOD Exist? The Eye... - The best video clips are here

Oh, and I choose my words with care here, for fuck's sake. This one's only made $157 to date, but that's about a million dollars more than this Pascal's Wager of the creation-evolution "debate" is currently worth.

(What's with the "100 years of [unspecified] Cray time" part, you might be wondering? That's because Kip can't even come up with his own Creationist claptrap, so what he's reading here was originally published in Byte magazine in nineteen eighty-five, and presumably republished without permission in some pamphlet Kip's pastor gave him.)

Getting back to nerdly topics, check out this one, billed as "You've seen it all over the internet but this is the original version!":


9 Volt Battery Hack! You'll Be Suprised... - The best free videos are right here

Well, OK, when I mentioned it in 2001 I didn't actually say that this was an emergency AAA-equivalent source. But I didn't pretend to have invented the idea, either.

I realise this isn't exactly an Ebert-versus-Schneider-level put-down. All Kip's doing is taking Metacafe's money for making videos for which people vote with their clicks. And it's not as if I'm starving in a garret or something; I for one would take Kip's money with a smile on my face and a song in my heart, but I don't need it.

But it's just so dispiriting.

I know that out in the real world the people who fix their eyes on the prize and do what's necessary to get it, bugger the consequences, are always the ones who end up sleeping like babies on mattresses stuffed with money. I get that. But I thought things might be just a little fairer here in the Internet fantasyland.

There are lots of super-cool people out there in the hacking, fabricating and doing-science-at-home communities. They're seldom in it for the money, which is good, because there's seldom anything other than a large negative amount of money in it.

But if you think Kip deserves the money he's made more than, oh, Matthias Wandel, there is something wrong with you.

And don't e-mail me if you do believe Kip deserves the money more, because I already know why you think that. You read books about selling, and you think the boy's got "chutzpah", right?

Bullshit artists with selling skills are Part Of The Problem. They sell expensive credit to poor people, they sell worthless remedies to the sick, they sell wars to whole countries.

The rest of us don't need you people, and I don't care what you learned when you got your degree in marketing.

The world already has an ample supply of bullshit, Kip. Give us all a break and stop adding more.