Archive for the ‘Toys and Gadgets’ Category

Old Glory, in Postscript

Thursday, August 19th, 2010

I needed a graphic of a flag that I could scale to whatever size I needed. About 10 minutes of Postscript hacking with the specifications in Wikipedia yielded the following results:

Sadly, the syntax highlighter that I have here doesn’t know about PostScript, so I’ll just have to add it here.

%!PS
%
%
% PostScript program for generating an image of the US Flag
% Generated by implementing the specifications which are listed on
% the wikipedia page:
%
% http://en.wikipedia.org/wiki/Flag_of_the_United_States#Specifications
%
% by Mark VandeWettering

/inch {72 mul} def

/Hoist 1.0 def
/Fly 1.9 def
/UnionHoist Hoist 7 mul 13 div def
/UnionFly Fly 2 mul 5 div def
/WidthStripe Hoist 13 div def
/F 0.054 def
/G 0.063 def

/StarDiameter 0.0616 def
/StarRadius StarDiameter 2 div def

% When a regular pentagon is inscribed in a circle with radius R, its
% edge length t is given by the expression:
% t = 2 R sin(pi / 5)
% PostScript does sin in degrees, so we need 180 instead...

/StarSide StarDiameter 36 sin mul def
/StarDiagonal StarSide 5 sqrt 1 add 2 div mul def

/white {1 1 1 setrgbcolor} def
/red {0.698 .132 .203 setrgbcolor} def
/blue {0.234 0.233 0.430 setrgbcolor} def

% draw a star at the cursor position...

/stardiagonal {
	StarDiagonal 0 lineto
	currentpoint translate
	-144 rotate
} def

/star {
	gsave
	exch StarDiagonal 2 div sub exch
	StarRadius 18 sin mul add
	moveto currentpoint translate
	4 { stardiagonal } repeat closepath
	fill
	grestore
} def

% draw the border...
/Flag {
    gsave
    0.001 setlinewidth
    Fly 2 div neg Hoist 2 div neg translate
    0 0 Fly Hoist rectstroke
    % paint in the bg, just in case
    white
    0 0 Fly Hoist rectfill
    % paint in the red stripes...
    red
    1 2 13 {
	1 sub
	WidthStripe mul 0 exch Fly WidthStripe rectfill
    } for
    % draw in the union...
    blue
    0 Hoist UnionHoist sub UnionFly UnionHoist rectfill

    % now, the stars, easiest to do in two passes.
    gsave
    0 Hoist UnionHoist sub translate
    white
    1 2 9 {
	/y exch def
	1 2 11 {
	    /x exch def
	    x G mul y F mul star
	} for
    } for
    2 2 8 {
	/y exch def
	2 2 10 {
	    /x exch def
	    x G mul y F mul star
	} for
    } for
    grestore

    grestore

} def

8.5 inch 2 div 11.0 inch 2 div translate 4 inch dup scale

Flag

showpage
quit

Enjoy.

Addendum:

Oh, incidently, you can use The Gimp to convert this from PostScript to a normal graphics format like the PNG file above. It will even do some antialiasing to make the jaggies look better. Very nice.

Making a soft-circuit input device for your computer

Friday, August 13th, 2010

I’m intrigued by various uses for embedded processors, and so are my readers. I hadn’t seen this particular microcontroller board before, the “Teensy”, which is very similar to the Arduino, except that it is uses an ATMEL AVR chip with a direct support for USB. The link also points at a nifty interface to “soft circuit” elements, which probably has some nifty controller applications.

Make: Online : Making a soft-circuit input device for your computer.

A New Podcast! With Reviews of XM Radio and the Panasonic DMC-TZ1

Thursday, May 18th, 2006

What can I say? I was bored on the way home yesterday, and decided to record a 23 minute podcast, reviewing two of my moderately recent gadget purchases:

I also gave a brief report about my trip down to the Computer History Museum to see their recently restored PDP-1 and play Spacewar!

And I shamelessly plug Pixar’s upcoming summer release of  Cars.

I still get pinged by lots of podcast aggregators, here is hoping that somebody is listening.

little tips about making rc micro_helicopter

Saturday, April 29th, 2006

It’s been a busy week for me, wading through piles of SIGGRAPH sketch reviews, so I haven’t had too much inclination to spend more time in front of a computer.   But I did find this article linked on the make blog: little tips about making rc micro_helicopter.  A very cool micro helicopter, which used a CDROM drive motor for the main drive.  Very cool.

[tags]Toys and Gadgets,RC Helicopter[/tags]

Build Your Own Nuclear Bomb Effects Computer

Monday, February 27th, 2006

What more needs to be said?

[tags]Nuclear Bomb Computer,Slide Rule[/tags]

Alcohol Breath Test Pen

Saturday, February 18th, 2006

The Only Pen a Drunk Could Ask For – Gizmodo

So you’re at your favorite sports bar watching the big game with your friends. Before heading out and driving home, perhaps it’d be a good idea to make sure you’re not legally intoxicated. At this point, it’s just a matter of whipping out the Alcohol Breath Test Pen, blowing into the top and hoping that the green LED doesn’t turn red. If it’s red, hail a taxi, buddy, because you’re in no condition to drive. Also included in the pen is a UV indicator, letting you know whether or not you should be wearing sunscreen. Yes, this $35 little pen can help save your life and prevent a nasty sunburn.

What you really need is such a pen which prevents you from writing checks, signing contracts, or most importantly, posting to your blog when drunk.

Run Linux on a JuiceBox

Thursday, February 16th, 2006
My Pear Photo Transferred to the Mattel Juicebox

Via the Make Blog, LinuxDevices tells you how to run linux on a JuiceBox.  I bought one of these a while ago, and haven’t done much with it, other than take one of my flickr pictures and copy it to a memory card and display it as show in the picture.  I’ll have to goof around with this some more.

[tags]Juicebox,Hacking,Make[/tags]

Lay Siege to Your Enemies!

Friday, February 10th, 2006

Trebuchet

Feel the need to lob tennis balls at those who oppose you? Try checking out these rather nice plans for a small trebuchet. With such a mighty seige engine, none dare oppose your military might!

Seriously though, these things are:

  • interesting mechanical devices
  • fun to play with
  • and excellent for tossing water balloons.

Unless of course, you get hurt, in which case you didn’t hear it from me.

[tags]Trebuchet[/tags]

Simplest DIY motor demo

Thursday, January 26th, 2006

Courtesy of superpositioned.com, here’s just about the simplest motor that I can imagine. Only 4 parts (battery, wire, screw, magnet). Too cool.

[tags]Science Fair[/tags]

My new PC…

Wednesday, January 25th, 2006

Over the last couple of months, I had gradually decreased the number of computers in my office to just two (well, computers that have X86 architecture anyway), and I decided that I would like to have a new amd64 based machine. I priced out the cost of just building one from components, and found that I probably couldn’t do better than the HP a1310n, so I just went out and bought one. I’ve purged the windows infestation off it, and installed Fedora Core 4 on it. I’ve got a number of projects that can benefit from its high speed, including goofing around with MythTV and Asterisk. I got the ivtv driver working on my WinTV PVR150 MCE card and even have accelerated X running on it, so progress is being made. Last night I had some difficulty with Asterisk, the ztdummy driver that provides timing information seems not to load for reasons that escape me. But the hardware seems to be quite nice, I only wish the onboard video had NTSC outs, then this machine would be ideal as a front end for MythTV.

Downgrading my Axim X50v

Wednesday, January 25th, 2006

Well, I spent $40 for the Windows Mobile 5 upgrade for my Dell, and it’s been a pain in the ass ever since.  Apparently I’m not alone, since now Dell officially lists a downgrade for the Axim: yep, it’s back to 2003 SE for the little guy.  Maybe it will stop blinking its stupid LED, draining its battery, and just being a pain in the butt.

Click here for the downgrade.

[tags]Dell Axim[/tags]

New Lego Blog

Thursday, January 12th, 2006

Another link courtesy of the make blog forums, this time for a brand spanking new [tag]Lego[/tag] blog. It’s too new to tell whether it’s going to be of lasting value, but I’m impressed so far. Subscribe to NextBrick or just surf on over and check out their cool Technic knitting machine or the P-38 and Panzer models.

You’re never to old for [tag]Legos[/tag].

Sony Thwarted Again – PSP 2.60 Hacked – First Homebrew Emerges!

Thursday, January 12th, 2006

I saw this on digg this morning:

A hacker has taken the next step and accomplished the unthinkable, hacking the 2.60 Firmware PSP! It is now possible to play homebrew games on your PSP no matter what firmware it has. Sony, give up on trying to stop us!

I haven’t tried this out yet (the new is still on my PSP, and I don’t feel like screwing it up) but it seems silly to actively pursue a strategy of trying to keep your customers from using their machines in creative new ways. I wish that a console or handheld manufacturer would someday realize that by embracing user modifications and homebrew, they could potentially add value to their products.

I know, I know, they are trying to prevent piracy. They don’t want everyone to be running Wipeout Pure when they didn’t pay for it. I get that. And I must admit, I don’t really know how to establish an iron-clad piracy protection scheme, but then, neither does Sony (obviously). I was thinking the other day that it might be interesting to have programs which are executed from the Memory Stick to simply not be able to access any of the Disk hardware. I can think of lots of ways that might fail, and hardware mods might still work to circumvent such measures, but it would go along way to keeping people from snarfing data off of UMD disks.

Of course, if anyone DOES get it off disc (say by using a logic analyzer on the data bus during execution) you are screwed.

Oh well. I imagine that we’ll see a continuation of this arms race for some time to come.

[tags]Sony PSP,Video Games,Homebrew[/tags]

read more | digg story

snowman 2006 – Google Video

Tuesday, January 10th, 2006

One of the somewhat interesting features of Google Video is now that you can put video from Google into your webpage. Here’s a Snowman video from WGBH Boston, and below you can see the player embedded in a web posting.

Deleted the video player

Something about WordPress insists on rewriting the contents of my post and breaks the formatting. I’ll figure it out later. If you figure it out, let let me know.

[tags]Google,Google Video,Multimedia[/tags]

DD-WRT

Thursday, January 5th, 2006

Last night, I upgraded my Linksys WRT-54GS router to DD-WRT, a more flexible set of firmware with greater capabilities.  It seems to work just fine, and includes many neat additions, such as the ability to adjust the router output power, new security measures, telnet and ssh access, improved QoS routing, and all sorts of other neat things.  If you’ve got one of these routers (check carefully for versions, some recent Linksys routers are incompatible) I’d recommend this distribution as easy to setup and configure.