Thursday, January 03, 2008
Python Quick Reference
If I end up doing more simple programming, my choices are likely to be AppleScript (ugh) and Python (yay).
Wednesday, January 02, 2008
AppleScript - summarize email is useful
Well, whatever its past status it's still with us, and Apple has even fixed up their once decrepit AppleScript: AppleScript Examples page. Automator and AppleScript have been revised in 10.5, the documentation finally left the 20th century, and Python hasn't taken over completely ... yet (alas).
Even in 10.4 I'm rediscovering useful things. Take, for example, the little known "Summarize Message" script buried away in the Mail Scripts folder. Here's what it does:
... This script demonstrates how to write a script that can be executedMy mother's vision is failing. This is something she could use, though I've already programme done key to active the built-in generic reading engine. Too bad Mail.app doesn't let me attach a script to a nice fat icon, but I might create a rule that would routinely read each message she opens. (Rules are hidden away in mail preferences -- which is not a logical place for that function.)
directly from the Scripts menu in Mail. It acts on the selected messages,
which are passed in to the 'perform mail action with messages' handler.
This script will take the selected message, create a summary using the
summarize command built into the Standard Additions, then speak the
summary using the say command, also built into Standard Additions...
By the way, my favorite 10.4 voice is "Vicki". I hear 10.5 has even better voices.
Update: After a bit of experimenting I created an Application from Summarize Email. I then gave it a nice icon from the Icon Factory and put it in the Dock. So it's easy to click on whenever my mother is reviewing her email.
Merging PDFs with OS X Automator
So I stick with OS X Preview and built in OS X PDF tools. The main thing I miss is the ability to merge and split PDFs.
There are a few OS X utilities to do merges (and more), but it turns out Automator will do the trick (macosxhints.com).
See the macosxhints writeup for the full story. I saved my script as a Finder Plug-In (stored in \Library\Workflows\Applications\Finder), so now I can select any set of PDFs, choose Merge PDF, and they're assembled into a single (oddly named) file on my desktop. The script appends in alphabetic order, so I use a numeric prefix if I want a particular order.
This is the first Automator script I've tried that's really useful!
This is what my script looks like:
!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">Ok, so that's not very useful. Here's the outline:
AMApplicationBuild
88.2
AMApplicationVersion
1.0.5
AMDocumentVersion
1
Owning Application
/System/Library/CoreServices/Finder.app
- Get Specified Finder Items (don't have any values there when you save the script)
- Sort Finder Items
- Combine PDF pages
- Move Finder Items
- Open Finder Items
Removing embedded carriage returns from Microsoft Access
Speaking of archaic, applications like Microsoft Access have trouble with carriage returns. They can't easily be inserted into a text field, but ODBC imports from more sophisticated applications, such as FileMaker Pro, can insert carriage returns into Access fields.
Problem is, there's no easy way to remove them. Fields with embedded CRs behave oddly when edited, and exports and queries break. Search and replace won't work.
I found a method that works.
Export the key column and the troublesome field as XML (no XSD). Then use a text editor to replace every carriage return with a space. The result is a single line, but this doesn't affect XML import. Reimport the XML and the carriage returns are gone.
There are probably better methods.
Update 1/2/07: I ran into another issue where an Access field appeared empty, but it was not NULL. I used 'not null' and 'len=0' to identify these fields, then set them to NULL. Probably another character set problem. I have finally liked all the problems with creating a database that works with Outlook 2003, the PalmOS, sync to Palm, and FileMaker (via ODBC). More on that after I get some sleep.
Monday, December 31, 2007
Yet another identity of mine: MyOpenID
I posted a month or so ago about the identity sources I've committed to. Now I can add MyOpenID: John Faughnan , per Jon Udell's implicit recommendation.
A few comments on MyOpenID (and OpenID services in general):
- MyOpenID is a provider of OpenID services. If you have the time, geekiness and a domain/website you control you can roll your own. Blogger now supports OpenID authentication for comments, Microsoft is baking OpenID into .NET Windows CardSpace, and Firefox 3 is supposed to have some OpenID management functionality.
- The "blurb" function of the primary page is broken today.
- Each account can have multiple personae, any of which can be exposed publicly.
- There's a easy-to-find function to delete an account
I'd add my GrandCentral number as yet another identity, but I presume that will be bound my "113" Google persona. I also have Yahoo and Microsoft Live identities, but I try not to think of them.
I particularly like the personae management capabilities. Anonymity needs to shrink considerably on the web, but in its place we need the ability to manage multiple personae (aka avatars), each with their own managed reputation -- and the ability to create and destroy personae as needed.
I'm thinking these identity management skills will be second nature to our children, but I'm not confident I know how this will all develop.
JanRain runs MyOpenID, I assume they're aiming to be acquired by Google.
Update 3/4/2008: ClaimID.com provides similar services, also recommended by Udell.GrandCentral: child accounts, features explained and annoyances
At first the number will route to our home, but in time it will route to their personal phones. When they're old enough they get the password and route calls as they will.
So as I set this up I'm exploring GrandCentral features. I liked the explanation one blogger provided for "CallSwitch" (click the link for a description of all GC features):
Web Application Developer: Grand Central - All The Phone Services You WantedI've noticed two annoyances so far with GrandCentral:
... CallSwitch: That name is really deceiving. It really should be called 'phone switch', because it lets you re-ring your phones in the middle of a call. So - someone calls. It rings the house. The problem is that I'm getting ready to get out the door. I could call them back on the cell, or I could hit a button on my phone, and the call will ring my phones again so I can pick up the cell. Again on the cell-minute-saver, if I'm outside mowing the lawn, and get a call on the cell, I can take it, walk into the house, hit a button, switch the call to the house phone, and save the minutes...
- I'd like to be able to send all calls from my own cell to voice mail, so I can use my phone to capture thoughts and ideas as I drive. This works with MaxEmail, but GrandCentral handles all calls from my cell number as a request to check my voice mail.
- Given #1 I think it won't work to add my home number as a GC number, if I do that then nobody using my home phone will be able to reach me. I suspect the GC team were too young to have children.
- I wish they supported RSS for notification instead of email. I can work around this though because Bloglines supports creating an email address that generates a feed. So I use this as my GrandCentral notification email.
- They don't support fax-in, I'd be glad to pay for this service.
- There's no integration with the Gmail contact service and the Gmail import is very old fashioned (doesn't use the Gmail API at all).
GrandCentral introduces visual voice mail for any cell phone
Why hasn't anyone improved Blogger's BlogThis! tool?
So I'm surprised that we're still using the same crummy bookmarklet that we used before Google owned Blogger:
What is BlogThis! ?The Google Firefox toolbar includes a similar function (SendTo Blogger) that may actually be inferior to the original Blogger bookmarklet.
....BlogThis! is an easy way to make a blog post without visiting blogger.com. Once you add the BlogThis! link to your browser's toolbar, blogging will be a snap. Or rather, a click. Clicking BlogThis! creates a mini-interface to Blogger prepopulated with a link to the web page you are visiting, as well as any text you have highlighted on that page. Add additional text if you wish and then publish or post from within BlogThis!...
I've used these two solutions for years. They're crummy. Let me name a few of the problems:
- No access to tags (labels) from the SendTo Blogger UI or the bookmarklet.
- Variable bugs -- lately the SendTo Blogger window has aquired its own redundant scrollbars when used in the latest version of Firefox.
- Limited toolbar (no bullets, no image, video, upload)
- Using Blockquote tags in RTF when the start of string includes a link creates an empty href tag preceding quoted text.
- Many bugs with copying highlighted text into the post, lately truncates text.
- No 'edit this post' button on the post-submit dialog. Instead need to right click on edit posts, choose open in new window, then find the draft post in list then click on draft post.
So why hasn't some Googler devoted a portion of their 20% time to fixing this functionality? Why hasn't any hacker created a Firefox extension to replace the bookmarklet/toolbar function?
I think if we knew the answers to these two questions we'd understand something about a lot other modern software frustrations.
HD Photo (JPEG XR) file format: an update
Microsoft's stated goal is to make HD Photo into JPEG XR -- a standard they won't control. Microsoft promises a royalty free grant to patents they hold.
I'm not exactly a Microsoft fan, but I'm hoping this one works out. JPEG is really inadequate (though if you shoot raw, edit the raw, and save as JPEG you can get around some of JPEG's worst limitations), but JPEG 2000 seems to be stillborn.
I was really hoping JPEG 2000 would work, but I've read that it probably contains lethal patent bombs. (Patent holders will stay silent until JPEG 2000 is well used, then attack.)
Crow's posts also include a dense discussion of color spaces and gamma. I've read this stuff before (see also: one, two, three), and discussions come in two flavors: wrong and impenetrable. That is, most of the discussions are misleading, but the reliable ones are very dense. I'm convinced not a few famous manufacturers and programmers have messed up their color profile support because the topic was too complex for them to understand. (Trust me, very large companies can have a lot of trouble with complex topics.)
I'm disappointed though that Crow doesn't discuss metadata and HD Photo. Exif headers in JPEG have been extremely valuable -- even though there's no real standard. A wikipedia article on JPEG XR has more information:
HD Photo metadata, optional XMP metadata stored as RDF/XML, and optional Exif metadata, in IFD tagsIt would be amazing if Adobe's XMP metadata standards were to make it into JPEG XR. (See also: PNG, metadata and archival formats).
If Microsoft pulls this one off as an honest broker (the devil will be the details of those patent grants) I'll have to say something nice about the Devil.
Sunday, December 30, 2007
Jing: free screen video capture for Windows and Mac
Free for now, which is a bit odd since TechSmith sells Camtasia -- which is very much not free.
Update 12/31/07: Jon Udell mentions Microsoft's SharedView.
Update 1/7/08: Udell also mentions Windows Media Encoder will do screen cast recording. Also I see the business plan for Jing -- it's tied to a media sharing service. That makes more sense! It won't work for corporate use then, and TechSmith sells Camtasia to corporations. SharedView is similarly tied to Microsoft Live. Windows Media Encoder screencasting looks like it's SilverLight based though I'm still following up.
No breakthroughs so far!
Bruce Eckel likes CrossLoop for XP screen sharing
Pairing Over the Web: "My brother recently turned me on to CrossLoop, which is the simplest and most responsive one we've tried, and allows both users to easily type into the document. Kudos to the CrossLoop creators; this really is a big improvement."The first thing I'll do after buying 10.5.3 is describe what I think of Leopard's screen sharing. The lack of discussion on OS X blogs is probably meaningful.
CH likes the Consolas programming font - and Inconsolata for OS X
Lookout CAN run on Outlook 2007
Alas, Microsoft bought the company and killed the product. Windows Live Search (aka Windows Desktop Search) is what I use now, though I fear it has deep bugs that might be killing XP. Of course I have a completely plausible paranoid fear that every new Microsoft product and patch is designed to covertly degrade Windows XP (the noble Windows Live Writer team doesn't know about the changes being made to their code after check-in).
Microsoft wrote the encyclopedia on killing rival products by creating subtle and gross incompatibilities, and Microsoft's most hated enemy these days is Windows XP. The Dark Arts are never truly forgotten.
But I digress.
Joel Spolsky tells us that the original developer is finding ways to extend Lookout's lifespan:
Getting Lookout to run on Outlook 2007 again - Joel on Software: "...the original author of Lookout, Mike Belshe, had just posted instructions for getting Lookout to work on Outlook 2007."Incidentally, Belshe has a blog. Today's post has him praising Windows Live Writer and cursing Microsoft's web sites. I love reading people who agree with me, so I'll add his blog to my feedlist.
Saturday, December 29, 2007
Creating a backdoor for your vulnerable Google account
All tied to a userid and a password.
A few crummy bytes.
One day our mad vulnerability will seem quite loony, like the days kids used to rattle around the backs of station wagons.
So what happens if you lose control of your Google account?
Well, you're in deep trouble. For the few who will take advance action, Google Operating System has some tips:
Creating a Backup for Your Google AccountThis is all stopgap stuff. Google needs to put a biometric infrastructure in place bloody soon now.
...For Blogger, add the backup account in the blog authors section ... The account should have admin privileges so that you can create, edit and delete posts...
Novatel combo USB modem and flash drive
The Pogies: Envelope, Please - New York Times:Nice.
...For $60 a month, you can enjoy the ultimate geek luxury: high-speed wireless Internet. Not just in hot spots, where your laptop is tethered to a 150-foot wireless bubble — but anywhere you can make a phone call.
You just need a cellular modem. You can get one either as a card for your laptop’s card slot, or a U.S.B. stick that resembles a flash drive.
Novatel’s idea: make a cellular U.S.B. antenna that actually is a U.S.B. flash drive. The new Ovation U727 ($80 from Sprint, $150 from Verizon, with two-year contract) lets you install a MicroSD memory card (up to 4 gigabytes) — yet it’s even smaller than its predecessors...