Archive

Archive for the ‘From The Labs’ Category

Channeling Douglas Adams

December 9th, 2011 10 comments

In Last Chance To See Douglas Adams talks about writing a program that is very sexy and has pull down menus and everything, and it’s entire purpose is to figure out the volume of the nests made by a certain kind of bird. In an article called “Frank The Vandal” he writes about a desire to be able to take just the parts of programs you want and paste them into a workflow so that you can do whatever it is you want to do without using six different programs. This is a mindset that resonates with me. If I can spend a few happy minutes1 writing pointless software to solve a problem now instead of seconds taking care of it manually once a week I will definitely go for the pointless software. It was in this vein that I tackled the following

Extremely Small Problem:

I do a lot of what Natalie Goldberg calls “practice writing”. which is where you just block out some time and keep writing for that entire time. This writing can be directed, or not, but the goal is to keep moving forward, to keep putting words on the page, or, in my case, into the text document. This isn’t “real” writing that you plan to put in front of other people some day, this is just exercise, to keep those writing muscles in shape.

When you exercise your muscles, you aren’t left with an artifact of your exercise. But when you do writing exercise, you have this document that you created, and have to do something with it. It’s possible that some part of it might be worth something to you in some context, so it seems wasteful to just delete it. Once again referring to Natalie Goldberg, these are like compost; they’re not really valuable by themselves, but if you keep piling them up there’s a chance that someday something good will grow out of them. Being the nerd that I am, I decided that I would keep all these useless little documents, and I would keep them all in one folder, so they would stay out the way.

So, on my home Mac I set up Hazel to just take those documents, rename them to today’s date (which gives me a good record of which days I did my writing practice and which days I didn’t) and shove them in a folder. All of this happens without me thinking about it, because Hazel is awesome. So, here comes the extremely small problem:

Sometimes I do my writing practice on my laptop, which is a PC.

Because I’m insane and picky and whatnot I use FocusWriter on the PC2 and FocusWriter, by default, produces Rich Text files (rtf files). BUT I have WriteRoom set to produce plain text files (txt files). It’s possible that I could just set FocusWriter to save things as txt files by default, but that’s crazy talk. Simple solutions need not apply, thank you very much. And I still have the problem of getting my little documents3 from my PC to my mac, and in the right folder.

Now, I grant you, I could move these files myself, but part of being who I am is having a rock-solid conviction that I shouldn’t be thinking about things if I can make a computer think about them for me. My ultimate goal is to be able to write something mindlessly and forget about it, secure in the knowledge that when I look for it4 it’ll be where I expect it to be.

After a little bit of thinking and a little more tinkering, I came up with the following

Gloriously Baroque Solution:

The moving parts involved here are (in order):

  1. Dropbox
  2. Hazel
  3. Automator
  4. Word 2011 for Mac
  5. Hazel again

Here’s how it goes:

I write my useless document, and save it to a particular folder in my Dropbox. It’s instantly beamed to all the other computers that are connected to my Dropbox account.Otto: the Automator icon

On my mac, Hazel is monitoring that folder, and sees a new rtf file show up. It starts a rule5 that renames the file and moves it into my “compost” folder. But the file is still an rtf instead of a txt file! Not to worry, this is where it calls Automator.

I’ve created an Automator workflow that takes the file, loads it into Word, converts it into a txt file and saves it.6  It then hands control back to Hazel. The Hazel rule completes, and colors the label of the original rtf file gray. This triggers a second Hazel rule that is watching the compost folder. This rule does one thing: if it finds an rtf file with a gray label it puts it in the trash. Since these files are only turned gray after the txt version is created I’m no longer worried about keeping the rtf file around.

This all works perfectly, much to my surprise, and (even more surprisingly) usually takes less than five seconds to run, even with all the Word opening and closing stuff. And since it’s happening while I’m not at my mac it’s effectively happening instantly.

Conclusion

Well, there isn’t one, really. All in all this took me about 20 minutes to set up, and will save me a few seconds of work a few times a week. But it’s work that I’m unlikely to do by myself, which would compromise the integrity of my compost folder. So, here’s to creative solutions to minuscule problems!

Note: This article was cross-posted here and at Coals[2]Newcastle.
  1. or hours []
  2. it most closely matches the functionality of WriteRoom, which is what I use on my mac []
  3. which, you’ll remember, are pretty much worthless []
  4. which may nor may not ever happen, but that’s beside the point []
  5. Hazel’s name for a set of actions that happen when a certain condition is met []
  6. and then closes Word. I don’t know why this is a separate step, but it is. []

From The Labs: Mystery of Snow Leopard’s Shrinking Font Book Solved

July 2nd, 2008 5 comments

Our lab tests today have conclusively revealed the reason that Snow Leopard’s Font Book application is so small.

One of the main “features” of Apple’s nascent operating system is the reduced size of all the core OSX components.  Graphs have been bandied about showing size decreases of 80%.  Font Book, the ubiquitous “no-you-can’t-see-the-font-unless-you-click-on-it” program that allows nearly all Mac programs to slightly annoy consumers is one of those massively reduced programs, and we have disovered, in this case at any rate, how Apple did it.

The only font in Snow Leopard’s Font Book is Helvetica Neue.

“It was a tough decision,” remarked Jim Baxter, Apple’s SVP of fonts, while cleaning out his desk. “We had literally hundreds of fonts that have been clogging up OSX’s hard drives for nearly a decade, even though no one ever uses them.  I mean, when was the last time you used Bank Gothic? Or how about Bernard MT Condensed?  And those are just two choices from the “b” section!  Really, we feel that Helvetica Neue is the only choice needed in the future.  It’s light, professional, bright, and serious all at once.  Also Steve told me it was going to be what we go with.”

According to our lab tests, users will be able to install other fonts, but they are no longer included by default.  This mistakenly leads Adobe to believe that they will now be making thousands of sales of their professional fonts.  We didn’t have the heart to tell them about free font web sites.

Apple was unlikely to comment, all things considered.

Categories: From The Labs Tags:

From The Labs: Parallels “28% Better” At Containing Stench of Evil than Fusion

May 20th, 2008 2 comments

Super-scientific graph of evilThe CANS labs have reached a shocking conclusion that may affect the outcome of the virtualization wars on the Mac.  

According to our research, Parallels is 28% more effective than VMWare Fusion at keeping the stench of Windows evil out of your Mac OS.  

“It’s well known that Windows exudes a certain amount of evil whenever it’s running,” said our lead testing ninja, “and you have to expect a certain amount of seepage. I mean, your Mac is sharing screen space, memory, audio channels, and everything else, so the Windows evil is soaking into your dock, your desktop picture, everything.”

Overall, we found that, after 100 hours of use, Fusion poured 250 units of evil into our test iMac, while only 180 units had spilled over from Parallels.  VirtualBox was tested, but we really didn’t care about the outcome.

“We think it has something to do with the way each system handles its desktop integration,” our ninjas report.  ”Parallels tries to contain elements in a simple ‘cohesion’, whereas Fusion seeks for real ‘unity’.”

Fortunately, there are ways that you can mitigate the effect of Windows evil when using virtualization technology.  The first, of course, is to always run Windows in “single window” mode, so that the virtualizer will wrap a protective Cocoa frame around Windows.  This also mitigates the evil spread by using a single mouse pointer between two operating systems.

“Never share cursors,” said Leo Laporte.  ”A contaminated cursor can carry corrupted drivers, dirty files, anything.  Be sure your cursor is free of Windows before use, every time.”

Other strong pollutants include Windows Media Player, Microsoft Office, and, of course, Internet Explorer.  

“Basically, running Microsoft products that have perfectly acceptable Mac counterparts degrades the moral shield inherent in OSX and allows a greater flow of evil.”

“Internet Explorer is evil,” said Douglas Adams, who came back from the dead to contribute to this article.

When asked about the effects of running Linux in virtual machines, our lab ninjas simply stared. “Linux. In a virtual machine. On a Mac.  Why?  Why would we do that?”

Apple declined to comment, but was seen buying some E-Z Cleen™ Evil Remover after seeing the test results.