Category: computers suck

  • AtkNoise – a corroded font

    File: AtkNoise. Probably best at as a display font.

    (The name’s from the process I used to make the font. I masked the font over greyscale noise at fairly low resolution, then applied Atkinson dithering, then fed the result through potrace. I’ve used this technique before.)

  • Handwriting font example: CrapHand

    And here’s the TrueType font of that: CrapHand.ttf. Enjoy!

  • creating a TrueType font from your handwriting with your scanner, your printer, and FontForge

    Hey, this post is super old!
    That means that installation and run instructions may not work as well, or even at all. Most of the *Ports Apple software repositories have given way to Homebrew: you may have some success on Mac (untested by me) if you brew install netpbm fontforge potrace. There’s also some font cleanup I’d recommend, like resolving overlaps, adding extrema, and rounding points to integer. One day I may update this post, but for now, I’m leaving it as is.

    This looks more than a bit like my handwriting

    because it is my handwriting! Sure, the spacing of the punctuation needs major work, and I could have fiddled with the baseline alignment, but it’s legible, which is more than can usually be said of my own chicken-scratch.

    This process is a little fiddly, but all the parts are free, and it uses free software. This all runs from the command line. I wrote and tested this on a Mac (with some packages installed from DarwinPorts), but it should run on Linux. It might need Cygwin under Windows; I don’t know.

    Software you will need:

    • a working Perl interpreter
    • NetPBM, the free graphics converter toolkit
    • FontForge, the amazing free font editor. (Yes, I said amazing. I didn’t say easy to use …)
    • autotrace or potrace so that FontForge can convert the scanned bitmaps to vectors
    • some kind of bitmap editor.

    You will need to download

    • fonttrace.pl – splits up a (very particular) bitmap grid into character cells
    • chargrid.pdf – the font grid template for printing

    Procedure:

    1. Print at least the first page of chargrid.pdf. The second page is guidelines that you can place under the page. This doesn’t work very well if you use thick paper.
    2. Draw your characters in the boxes. Keep well within the lines; there’s nothing clever about how fonttrace.pl splits the page up.
    3. Scan the page, making sure the page is as straight as possible and the scanner glass is spotless. You want to scan in greyscale or black and white.
    4. Crop/rotate/skew the page so the very corners of the character grid table are at the edges of the image, like this: I find it helpful at this stage to clean off any specks/macules. I also scale and threshold the image so I get a very dark image at 300-600dpi.
    5. Save the image as a Portable Bitmap (PBM). It has to be 1-bit black and white. You might want to put a new font in a new folder, as the next stage creates lots of files, and might overwrite your old work.
    6. Run fonttrace.pl like this:
      fonttrace.pl infile.pbm | sh
      If you miss out the call to the shell, it will just print out the commands it would have run to create the character tiles.
    7. This should result in a bunch of files called uniNNNN.png in the current folder, like these:
      W
      uni0057.png
      i
      uni0069.png
      s
      uni0073.png
      p
      uni0070.png

      y
      uni0079.png
    8. Fire up FontForge. You’ll want to create a New font. Now File→Import…, and use Image Template as the format. Point it at the first of the image tiles (uni0020.png), and Import.
    9. Select Edit→Select→All, then Element→Autotrace. You’ll see your characters appear in the main window.
    10. And that’s – almost – it. You’ll need to fiddle with (auto)spacing, set up some kerning tables, set the font name (in Element→Font Info … – and you’ll probably want to set the em scale to 1024, as TrueType fonts like powers of two), then File→Generate Fonts. Fontforge will throw you a bunch of warnings and suggestions, and I’d recommend reading the help to find out what they mean.

    There are a couple of limitations to the process:

    • Most of the above process could be written into a FontForge script to make things easier
    • Only ASCII characters are supported, to keep the number of scanned pages simple. Sorry. I’d really like to support more. You’re free to build on this.

    Lastly, a couple of extra files:

    • CrapHand2.pbm – a sample array drawn by me, gzipped for your inconvenience (and no, I don’t know why WordPress is changing the file extension to ‘pbm_’ either).
    • chargrid.ods – the OpenOffice spreadsheet used to make chargrid.pdf

    Have fun! Write nicely!

  • you know your work browser is out of date …

    … when a federally run website doesn’t work

    To be fair, it is the new Toporama Prototype site, so it does do some slightly clever things. But still, being at an IE6 shop at work is ever amusing.

    I think it has problems. Someone should tell Pine Hills Cemetery that it’s mostly underwater:

  • tiny font victory

    Yes, it’s nonsense:

    But I made these character glyphs in a semi-automatic bitmap converter for tracing in scanned letters into FontForge. It’s currently only a proof of concept, but I want to expand it up to a full ASCII font, at least.

  • Flatter: hopefully, not the Dexit of micropayments

    Micropayments are a bit like legal weed – only the users want it, and the suppliers and their opponents would rather keep the status quo. Lots of smart people have tried it (remember Peppercoin? Ron Rivest was in on that one) and not many real users have ended up using it.

    Flattr, like every other new system, claims to be different from every other system. It’s a patronage system, where users/readers/listeners can click on the Flattr link and divvy up their monthly contribution amongst everyone they liked.

    I forget how (or exactly why) I got an invitation, but I finally activated it and credited enough for 6 months’ usage this morning. Now I need to go out and find things to like … and they’re thin on the ground.

    Jag kanske inte svenska tillräckligt, but I’m not seeing much that has likeable content. Maybe my user number – in the low 1000s – is a hint, but let’s see how things go by the end of October.  I’m hoping it doesn’t end up like Dexit, the dismal downtown Toronto cashless payment system that never got the inertia (or reliable terminals) needed to survive. One can never tell with these online things; when I signed up with Twitter in early 2007, it was a pretty hopeless system …

  • Canadian Comedy Central

    I don’t know why people keep banging on about how funny Comedy Central is, because whenever they embed a video, this is what I get:

    Am I missing something? Is it the new, newer universal punchline? Something like:

    1: My dog’s got no nose.

    2: How does he smell?

    1: In Canada, Comedy Central Videos are available on The Comedy Network.

    or

    Q: What’s yellow and deadly?

    A: In Canada, Comedy Central Videos are available on The Comedy Network.

  • not available in your country

    As a minor celebration of our 8th anniversary of arriving in Canada, I give you (with explanation later) the collected transcripts of my Google Voice calls:

    • Hey, gimme a buzz me back this is Ron man, you know. Lamb oxen, this is Ron 205, buzz me when you get a chance later.
    • That probably in about a.
    • Hey from A D this is Ron man and 12 5 man If you are a I’ll buzz me, man. I’m gonna do some business man, so pick up you know of a receive, a. My, but alright with equating later.
    • Hello, this is not. He wants to join for your learn, not you, that fallen off. Bye.
    • Hey, Got this way about you could give me a call back and give me a call. Real quick, I’m outside. Thank you.
    • Hello.
    • Hello, Would you know that. Love you all River Run them.
    • Not available at the. It’s.

    In a moment of boredom while visiting the US, I must’ve signed up for Google Voice. I’m not entirely sure what my number is, and I can’t access the account inside Canada. I haven’t given the number to anyone, yet I’m getting these voicemails. What can it mean? As a wise person once said, “Lamb oxen, but alright with equating later.”

  • No Canadian weather? That sucks, Asus!

    I just got a ASUS O!Play HDP-R1. It’s one of the current crop of media player boxes, like the WDTV. I suspect they’re all the same MIPS hardware/Linux firmware inside. (Hey, you can telnet into it! Whee! Or something.)

    At first, I couldn’t get it to work with my network share, but after a firmware upgrade, all is good. The new firmware offers web content, including weather. So I hopped along, and tried to access Toronto weather:

    Err, some of us live outside Asia, Europe and the United States, y’know …

  • oh the irony

    in pdf2ps output:

     **** This file had errors that were repaired or ignored.
     **** The file was produced by: 
     **** >>>> Adobe PDF Library 7.0 <<<<
     **** Please notify the author of the software that produced this
     **** file that it does not conform to Adobe's published PDF
     **** specification.
  • trying to determine whether my side of the tracks is the right one

    My neighbourhood, Kennedy Park, is pretty much defined by the CNR tracks at the southeast and northwest corners. This is Toporama Web Map Service data overlaid on the toronto.ca | Open neighbourhood polygon:
    kennedy park is mostly defined by CNR tracks
    It’s all lit up! These are the houses in my streets, each one highlighted in QGIS:
    your lower intestine, or all the houses in my street?
    More GIS nerdry at Numpty’s Progress.

  • jukebox sampler

    Every thousandth track from my library:

    Track Title Artist Album
    1000 How the West Was Won and Where It Got Us R.E.M. New Adventures in Hi-Fi
    2000 Lesson 8 / Ex 3 David Hamburger The Acoustic Guitar Method, Book 2
    3000 Way of Woe Peter Stampfel The Jig Is Up
    4000 Exercise: Changing Chords Jack Hatfield First Lessons Banjo
    5000 The Edison Museum They Might Be Giants No!
    6000 Got The Jake Leg Too Ray Brothers
    7000 Light Is Returning Rise Up Singing: The Teaching Disc O
    8000 Birmingham Sunday Rise Up Singing: The Teaching Disc J
    9000 Bring Me A Leaf From The Sea Carolina Tar Heels Mountain Frolic (Rare Old Timey Classics 1924-37) – Disc D (1925-30)
    10000 Window to Mars Elf Power In a Cave
    11000 The Book Of Doves Alasdair Roberts Spoils
    12000 Grounded Pavement Wowee Zowee
    13000 O Holy Night Classic Carols Classic Carols (Piano-Vocal Harmonies)
    14000 Track 23 Peter Gelling Teach Yourself Harmonica
    15000 Priscilla The Soft Machine The Soft Machine
    16000 Colours Gorp Shapes And Colours Game
    17000 The Mayor Of Simpleton XTC Upsy Daisy Assortment
    18000 Jóga Björk Homogenic
    19000 Everything Merges With the Night Brian Eno Another Green World
    20000 Great Races – The Marathon Ivor Cutler, et al King Cutler, Part 6
    21000 Coal Creek March Dock Boggs His Folkways Years (1963-1968) Disc 1
    22000 The Ghost You Draw On My Back Múm Summer Make Good
    23000 Tidy (Previously Unreleased Demo) Dressy Bessy Little Music: Singles 1997-2002
    24000 Careless Soul Daniel Johnston 1990
    25000 Introduction Joyce Ochs First Lessons: Dulcimer
    26000 On A Monday Morning Rachel Unthank and the Winterset Cruel Sister
  • I have another blog

    I’ve started another blog: Numpty’s Progress. It’s more directed to what I want to do with GIS for now.

  • i suppose it looks a bit like a potato

    but it’s really a GIS layer with an exclusion buffer.

  • Micro Men

    Clive Sinclair (Alexander Armstrong) pays for drinks (from an uncredited Sophie Wilson)

    It was a cheesy time, the early 80s, but I’m stuck with it as my youth. Home computers were probably the largest part of my life for rather longer than I should admit.

    My brother recommended Micro Men, a BBC 4 (what? they have more than two?) comedy drama about the fight between Acorn and Sinclair for the BBC educational contract. I went to my usual source for quality television, and it was on my computer an hour after hearing about it.

    With a mix of vintage film and recreations, it caught the ’78-85 vibe perfectly. Whether all the anecdotes are historically correct, it doesn’t matter – the feeling of the frantic dash to develop new machines in ridiculously short times and then advertise them months before they were ready was there.

    There were a bunch of good cameos, too. Nice to see Sophie Wilson (known to me as the author of Acorn’s BBC Basic, known to you as the designer of the ARM processor almost certainly used in your mobile phone) making an appearance.

    So, though I was never a BBC B or ZX Spectrum owner, a fun programme, and one you might like.

    I came late to the BBC Basic game, but used it on my Z88 to ace an Introduction to Numerical Methods course (yay EVAL!).

  • now *that’s* a user interface

    Multi-resolution screen? Check. Sprite-based VU bars? Check. Oscilloscope channel overlays? Check. Mouse pointer as a little dude who jumps up and down in time to the music? Check.

    Only on Amiga …

  • The lost art of the ramdisk

    You don’t hear anything about ramdisks these days. What with intelligent OS file cacheing, we don’t really need them. Back in Amiga days, though, the RAM: drive was blisteringly fast. You’d put your small files there, and you could move them around really quickly.

    Third-party ram disk drivers added features like the ability to survive a reset, and be more dynamic than C-A’s offering. The ASDG Dynamic Ram Disk was written by Perry Kivolowitz, who went on to win an Oscar for digital rendering techniques.