Pinocchio

Something else to add to my ever-growing reading list, thanks to Cory Doctorow: a beautiful new edition of the original Pinocchio fairy tale. Here’s what Cory had to say about it…

Pinnochio is one of my favorite children’s books. Like many of the great children’s stories that have survived history, it is a lot darker than most people realize. In fact, it’s a vicious little bastard of a book, and screamingly funny in places. […] Now, Tor Books has brought out a beautiful new edition of the public-domain text of the novel, deisgned by Chesley-Award-winning art director Irene Gallo (who is astonishingly good at her job, and who has a special fondness for this book, I’m told), and lavishly (and I do mean lavishly) illustrated by Gris Grimly, in sepia-toned macabre ink drawings that are as angular and jocularly grim as the text itself.

Namedropper ;)

Some people. I mean, come on

My first exposure to the Pixies was when i was in Europe with the also now reuinited Skinny Puppy on their Mind TPI tour. Must have been 1987….

The Skinny Puppy guys were driving me crazy. Cevin was fight with the tour manager on a daily basis. It was just not an environment that i was particularly enjoying. I was helping to set up the stage and sell merchandise for Puppy. It meant i had a fair amount of down time during the day. So i wrote long notes to the Throwing Muses and the Pixies begging them to get me off the Skinny Puppy tour. I would write them on the back of the posters for our shows and then leave them a kind soul from the club to hand off to someone from the Pixies and the Throwing Muses the next night.

And if that weren’t enough…

Did i mention that i once had dinner with Michael Stipe? But by now, who hasn’t? He liked my shirt. I was tour managing the left wing of the socialist wing of the Democratic Party, Consolidated, when we were playing in Athens. The drummer for Consolidated (Phil) was putting together a compilation album for In Defense of Animals and Michael was contributing a song. He came and joined us for dinner.

As someone who, having listened to the Pixies, the Throwing Muses, Skinny Puppy, R.E.M., and Consolidated for more years than I can think of, but because of living in Anchorage — who nobody cool goes to when they’re touring — never having had even the chance of seeing these artists in concert, let alone having dinner with them, I want you to know that I say this from the deepest, darkest depths of my heart:

You lucky bastard.

;)

Sorry. Just had to get that out of my system.

(And yeah, R.E.M. does still rock — their Bumbershoot show was excellent.)

Persistance of Mouse

Dalí, whose previous film experience included two short films with the Spanish master Luis Buñuel, approached Disney at a dinner party at the house of Warner Brothers head Jack Warner. Dalí, then working on Alfred Hitchcock’s Spellbound, believed he and Disney could create what he called “the first motion picture of the Never Seen Before.”

>

Disney agreed, and assigned director John Hench to help Dalí turn the Mexican ballad “Destino,” by Armando Dominguez, into a kind of prototypical music video. (Hench, now 95, continues to come to work every day at the Disney lot, and consulted on the new Destino.)

>

Dalí spent his time at the Disney studio painting, drawing and discussing with Hench the challenges of adding motion to what he described as his “hand-colored photographs.” The project continued for eight months, and was abandoned in 1947 when the Disney studio ran into financial problems. Dalí died in 1989.

Thanks to some of today’s Disney animators, Destino has been completed, and will likely be shown in theaters next year before a Disney film, and eventually end up on DVD. I’m really looking forward to seeing this.

Abbott and Costello in Computerland

Okay, one last thing before I head off to work. Dad sent me this today, and I damn near fell off my chair laughing at it…

Abbott and Costello in Computerland

[ring…ring…click]

ABBOTT: Ultimate Super Duper Computer Store. Can I help you?

COSTELLO: Thanks. I’m setting up a home office in the den, and I’m thinking of buying a computer.

ABBOTT: Mac?

COSTELLO: No, the name is Lou.

ABBOTT: Your computer?

COSTELLO: I don’t own a computer. I want to buy one.

ABBOTT: Mac?

COSTELLO: I told you, my name is Lou.

ABBOTT: What about Windows?

COSTELLO: Why? Does it get stuffy?

ABBOTT: Do you want a computer with Windows?

COSTELLO: I don’t know. What do I see when I look out the windows?

ABBOTT: Wallpaper.

COSTELLO: Never mind the windows. I need a computer and software.

ABBOTT: Software that runs on Windows?

COSTELLO: No, on the computer! I need something I can use to write proposals, track expenses. You know, run a business. What have you got?

ABBOTT: Office.

COSTELLO: Yeah, for my office. Can you recommend anything?

ABBOTT: I just did.

COSTELLO: You just did what?

ABBOTT: Recommended something.

COSTELLO: You recommended something?

ABBOTT: Yes.

COSTELLO: For my office?

ABBOTT: Yes.

COSTELLO: Okay, what did you recommend for my office?

ABBOTT: Office.

COSTELLO: Yes, for my office.

ABBOTT: Office for Windows.

COSTELLO: I already have an office and it already has windows! Let’s say I’m sitting at my computer, and I want to type a proposal. What do I need?

ABBOTT: Word.

COSTELLO: If I’m writing a proposal, I’m going to need lots of words. But what program do I load?

ABBOTT: Word.

COSTELLO: What word?

ABBOTT: The Word in Office.

COSTELLO: The only word in office is office.

ABBOTT: The Word in Office for Windows.

COSTELLO: Which word in “office for windows?”

ABBOTT: The Word you get when you click the blue W.

COSTELLO: I’m going to click your big W if you don’t give me a straight answer. Let’s forget about words for a minute. What do I need if I want to watch a movie over the Internet?

ABBOTT: RealOne.

COSTELLO: Maybe a real movie, maybe a cartoon. What I watch is none of your business. But what do I need to watch it?

ABBOTT: RealOne.

COSTELLO: If it’s a long movie I’ll also want to watch reels two, three and four. Can I watch reel four?

ABBOTT: Of course.

COSTELLO: Great! With what?

ABBOTT: RealOne.

COSTELLO: Okay, so I’m sitting at my computer and I want to watch a movie. What do I do?

ABBOTT: You click the blue 1.

COSTELLO: I click the blue one what?

ABBOTT: The blue 1.

COSTELLO: Is that different from the blue W?

ABBOTT: Of course it is. The blue 1 is RealOne. The blue W is Word.

COSTELLO: What word?

ABBOTT: The Word in Office for Windows.

COSTELLO: But there’s three words in “office for windows!”

ABBOTT: No, just one. But it’s the most popular Word in the world.

COSTELLO: It is?

ABBOTT: Yes, although to be fair there aren’t many other Words left. It pretty much wiped out all the other Words.

COSTELLO: And that word is the real one?

ABBOTT: No. RealOne has nothing to do with Word. RealOne isn’t even part of Office.

COSTELLO: Never mind; I don’t want to get started with that again. But I also need something for bank accounts, loans, and so on. What do you have to help me track my money?

ABBOTT: Money.

COSTELLO: That’s right. What do you have?

ABBOTT: Money.

COSTELLO: I need money to track my money?

ABBOTT: No, not really. It comes bundled with your computer.

COSTELLO: What comes bundled with my computer?

ABBOTT: Money.

COSTELLO: Money comes bundled with my computer?

ABBOTT: Exactly. No extra charge.

COSTELLO: I get a bundle of money with my computer at no extra charge? How much money do I get?

ABBOTT: Just one copy.

COSTELLO: I get a copy of money. Isn’t that illegal?

ABBOTT: No. We have a license from Microsoft to make copies of Money.

COSTELLO: Microsoft can license you to make money?

ABBOTT: Why not? They own it.

COSTELLO: Well, it’s great that I’m going to get free money, but I’ll still need to track it. Do you have anything for managing your money?

ABBOTT: Managing Your Money? That program disappeared years ago.

COSTELLO: Well, what do you sell in its place?

ABBOTT: Money.

COSTELLO: You sell money?

ABBOTT: Of course. But if you buy a computer from us, you get it for free.

COSTELLO: That’s all very wonderful, but I’ll be running a business. Do you have any software for, you know, accounting?

ABBOTT: Simply Accounting.

COSTELLO: Probably, but it might get a little complicated.

ABBOTT: If you don’t want Simply Accounting, you might try M.Y.O.B.

COSTELLO: M.Y.O.B.? What does that stand for?

ABBOTT: Mind Your Own Business.

COSTELLO: I beg your pardon?

ABBOTT: No, that would be I.B.Y.P. I said M.Y.O.B.

COSTELLO: Look, I just need to do some accounting for my home business. You know–accounting? You do it with money.

ABBOTT: Of course you can do accounting with Money. But you may need more.

COSTELLO: More money?

ABBOTT: More than Money. Money can’t do everything.

COSTELLO: I don’t need a sermon! Okay, let’s forget about money for the moment. I’m worried that my computer might…what’s the word? Crash. And if my computer crashes, what can I use to restore my data?

ABBOTT: GoBack.

COSTELLO: Okay. I’m worried about my computer smashing and I need something to restore my data. What do you recommend?

ABBOTT: Go Back.

COSTELLO: How many times do I have to repeat myself?

ABBOTT: I’ve never asked you to repeat yourself. All I said was GoBack.

COSTELLO: How can I go back if I haven’t even been anywhere? Okay, I’ll go back. What do I need to write a proposal?

ABBOTT: Word.

COSTELLO: But I’ll need lots of words to write a proposal.

ABBOTT: No, you only need one Word–the Word in Office for Windows.

COSTELLO: But there’s three words in…Oh, never mind.

[click]

ABBOTT: Hello? Hello? Customers! Why do they always hang up on me? Oh, well. Ultimate SuperDuper Computer Store. Can I help you?

Thanks dad!

Print-friendly pages with CSS

Printing often seems to be the bane of web publishing doesn’t it? All this information scattered across the ‘net, and so many times, trying to get a decent hardcopy printout just results in frustration. Sites that are beautiful in a browser may fail when printed — text disappears into background colors if you’re printing black and white, ads take up tons of unnecessary space on the printed page, and if the site uses tables or a fixed-width CSS layout that’s wider than the page, you may end up with having text cut off along one side of the page. Many commercial sites create special ‘print friendly’ pages, but that’s something of a kludge in itself — it’s an extra click, sometimes the link to the ‘print-friendly’ page is difficult to see, and it means having to deal with that many extra pages (and extra bandwidth) to maintain and serve.

Thankfully, CSS allows a remarkably simple way to avoid having to deal with all these frustrations. With a little bit of coding time, you can create a special “print stylesheet” that will determine exactly how your page looks when it’s printed out, without ever having to deal with the problems outlined above. Here at TypePad, you’ll need to be a “Pro” user to take advantage of this (as you’ll need access to the code of your templates), but the same technique will also work for MovableType powered sites, or any other website where you have full access to your code.

Need a quick example? Just try printing this post out, then compare what your printer gives you to the screen version (Netscape, Mozilla, Firebird, and Safari users will get an extra bonus trick that IE doesn’t support). For all the gory details (which really aren’t all that gory), just read on…

This site without print CSS

For a quick example, I’ll hold myself up to the spotlight (hey, if I’ve going to point out the problems, might as well humiliate myself instead of someone else, right?). The image to the right shows the result of printing this site after my redesign — those nice big white borders that work so well on screen cause definite issues on the printed page, squishing all the actual content into a single really tiny column in the middle of the page. This obviously was not acceptable! So, I got to work.

The first step was to design the print stylesheet itself. The basics of that are essentially the same as designing an on-screen stylesheet, and you can even use a browser to work it all out. I started by copying my stylesheet into a blank text document on my computer and tweaking it piece by piece to adjust it for the printed page. I won’t go through all the changes I made (though you’re welcome to compare the two to see for yourself — feel free to look at the code for either my screen stylesheet or my print stylesheet), but I do want to call attention to a few of the methods I used.

First off, the borders — an easy fix there, all I had to do was adjust the margins for the #content div from 150 pixels to 5%. By using a percentage instead of a fixed value, it ensures that the content area of the printed page will always be 90 percent of the available width, no matter if the person printing the page is in the US or in Europe (as there are different standard paper sizes).

Now for a handier trick. One of the major differences between on-screen display and the printed page are that navigation elements, such as the navigation sidebar across the top of each page on my site, are essentially useless when printed. Obviously, they can’t be clicked, so all they really end up doing is taking up space on the printed page. If that’s the case, then why bother printing them at all?

In my original stylesheet, my navigation bar is contained within a div of its own, like so:

#navigation {
   text-align: center;
   margin-top: 2px;
   padding: 4px;
   background-color: #eee;
   }

So, for the print stylesheet, I simply changed all of that to this simple argument:

#navigation {
   display: none;
   }

And voila! When printed, that entire div just disappears from the page. That little display: none; argument comes in very handy for deciding just what appears and doesn’t appear on your printed page and on screen. I added a class called “screenonly” to my print stylesheet that uses the display: none; argument, and then wrapped the comment entry form on my individual entry pages in a div class="screenonly" tag — bingo, no printed comment entry form. With a little experimentation, it’s very easy to determine exactly what elements on your pages will and won’t print.

The same technique can be used on screen, of course. I added another class to my screen stylesheet called “printonly” that also uses the display: none; property, then added a copyright declaration to the bottom of every page that is wrapped in a div class="printonly". Now that won’t display onscreen, but will appear when printed. Pretty nifty, isn’t it?

There’s one last trick I want to call attention to before I close out, though — while it will only work in browsers that have good CSS support (in other words, almost every browser except Internet Explorer), it’s incredibly useful.

Links are somewhat of a quandry on the printed page — in fact, by default, they’re nearly useless. A slight color change in the text, but nothing else. However, CSS includes ways to work around this, as well. I added the following lines to my print stylesheet:

.postbody a:link:after, .postbody a:visited:after {
   content: " (" attr(href) ") ";
   }

This looks a little complex, but it’s really not all that scary. The first line says simply that within any element that has the class postbody (I’ve wrapped the text of my posts, trackback excerpts, and comments in divs with that class), any a element that is either a link or a link that has been visited is going to have some information added after that element.

The second line is the content that we’re adding: first we add a space and an opening parenthesis, then we add the href attribute (in other words, the URL that the link points to), then we add a closing parenthesis and another space. That’s it — the last line is simply closing the CSS argument.

So what does all that mean? Simply this — when the page is printed, every link will be followed with the target URL of that link in parenthesis. Nifty!

Okay, so those are some of the tricks I’ve used. Now, supposing you’ve done some poking, prodding, and experimentation on your own and you’ve got a print stylesheet all set up and ready to go — how do you get it working? Easy enough! First off, create a new Index Template for your site, name it something like “Stylesheet-print”, and have it output to “print.css”. Now, you’ll need to do a slight edit to each of your templates.

The default line in TypePad templates that calls the stylesheet is in the header information at the top, and looks like this:

<link rel="stylesheet" href="<$MTBlogURL$>styles.css" type="text/css" />

We’ll be adding one argument to that line, and then adding a second, very similar line –here’s what you should end up with:

<link rel="stylesheet" media="screen" href="<$MTBlogURL$>styles.css type="text/css" />
<link rel="stylesheet" media="print" href="<$MTBlogURL$>print.css" type="text/css" />

What we’ve just done is tell the browser that the “styles.css” file should only apply to on-screen display, while the “print.css” file should apply to content that is sent to the printer. That’s it — rebuild, and you’re done!

My site with the print stylesheet

And here we have the final result — the image to the left is how my site prints out with the print stylesheet added. The useless navigation bar has disappeared, borders have been set to values that are far more manageable and readable for the printed page, I’ve brought the font size down a touch, and all links now display their target after the link itself. All in all, a far more readable printed page than what I started with, and all accomplished with a little bit of playing with CSS.

So that’s it! Hopefully this all made sense and is useful for you. As always, feel free to leave any comments or questions below, and I’ll do my best to clarify any places where I may have been unclear. Enjoy!

(Post-link URL display code was found at A List Apart.)

www.michaelhanscom.com

One of the features of the TypePadPro” level that I’ve been looking forward to is domain mapping — the ability to assign a domain name I own with my TypePad weblog. Last night I noticed that domain mapping beta testing was in progress, so I sent a note to let them know that I was interested. Lo and behold, I got my response this morning, made a few clicks to my domain configurations…

…and it worked! Eclecticism is now residing at www.michaelhanscom.com! Even better, the old address of djwudi.typepad.com will still work as a backup, so any links out there pointing my way will still work, without any issues whatsoever.

So, feel free to update your bookmarks to point to www.michaelhanscom.com (or don’t, whatever suits your fancy). I know I’ve been bouncing everyone around in the past few months — from djwudi.com’s ‘The Long Letter’ to djwudi.typepad.com and now to michaelhanscom.com — but this should be the last move for the foreseeable future.

What of djwudi.com, then? Well, I’ll likely leave my DJ Wüdi propaganda over there, as well as having it available for whatever other little projects I want to play with when I’m in the mood to geek out, so it won’t be disappearing. Just in case you were worried. ;)

20 Tips for new G5 owners

This one’s mostly just for me — originally from Ken Tidwell and posted on MacInTouch, but as their archives can be difficult to search, I wanted to keep this around. If all goes well, it might come in handy in a couple weeks. ;)

  1. RAM must be added in pairs only…all models. Opinions vary, but 1gb \~ 2gb RAM seems to be a general minimum before these units really shine. […]

  2. Clean the cast aluminum exterior with iKlear from Apple, or a mild dishwashing detergent.

  3. PCI-X (1.8GHz and 2.0GHz G5s only) supports both PCI-X and PCI… but 3.3 volts only… not 5 V.

  4. The case latch can be used as a locking point for a security cable.

  5. Carbon Copy Cloner is a great tool for moving data from another Mac.

  6. Virtual PC (current version…6?) will not yet run on a G5.

  7. The OS shipping with the G5s at this time is an interim OS, and does not yet support the 64-bit capability of this machine. Give it another 2 to 4 months.

  8. FireWire 800 uses a different connector from FireWire 400 (and Sony’s 4-pin connector).

  9. The Sony DVD writer is not capable of handling DVD+R.

  10. The aluminum case inhibits Bluetooth and Airport signals…don’t forget to mount the external antenna(s).

  11. The G5 will automatically reduce processor speed in response to having the side cover(s) removed. There is also a system preference for selective control. From the G5 Developer Note:

    Fan speed control: The speeds of the fans are thermally controlled and are automatically set as low as possible to minimize noise. System performance can be specified by a “high/reduced/automatic” pulldown option provided in the Energy Saver Control pane in System Preferences.

  12. The rear video connector labeled DVI supports both DVI-I and DVI-D.

  13. The rear digital audio connection is a TOSLINK connector…be sure to buy optical cables that use the square (indexed) connector (not round) on at least one end.

  14. The four screws on the interior bulkhead near the drives are spares that are used when installing a second hard disk. [photo]

  15. The analog audio input on the rear can be used for directly connecting a microphone, which must be self-powered. [Apple’s G5 Developer Note, however, says:

    “The audio inputs are designed to accept high-level audio signals: 2.2 Vrms or +8 dbu, which is the standard output level from CD and DVD players. The output level of some consumer audio devices is lower, often 0.316 Vrms or -10 dbV. Sound recordings made on the Power Mac G5 with such low-level devices have more noise than those made with high-level devices.”

    -MacInTouch]

  16. The power supply is auto-ranging, meaning it will switch between two choices of voltages: 100-125V AC or 200-240V AC.

  17. The USB ports on the computer itself are USB 2.0, while the USB ports on the keyboard are USB 1.1.

  18. G5 owners interested or working with ‘High Throughput Computing’ are advised to check out Condor.

  19. G5’ers curious about 64-bit computing can start here: [Ars Technica 64-bit introduction]

  20. A good demo for friends and family is always a movie…stop by the Apple Quicktime site for latest trailers.

Apples for Alaskans

Looks like high schoolers in Alaska’s Denali Borough School District will be getting Apple PowerBook G4 computers for their school year!

When school begins Sept. 15, the Denali Borough School District will become the first in Alaska to provide a laptop computer for every student in grades 9 through 12. A total of 129 laptop computers are being prepared to hand over to high schoolers at Tri-Valley, Anderson and Cantwell schools.

This “one-on-one initiative” is the result of a partnership between the Denali Borough School District and Apple Computer, and is based on programs in other states, particularly in Virginia and in Maine.

(via MacBytes)

Updated iPods and iMacs

Oh, and just in case you’ve been considering upgrading or switching, Apple announced bigger iPods and faster iMacs this morning. The iMac base models are now \$1299 for a 1Ghz G4, and \$1799 for a 1.25Ghz G4. Not bad at all.

Meanwhile, I’m still waiting for my new G5 to show up — which is okay, since I’m also still scraping together the last little bit of cash I need to finish paying for the fool thing!