Introducing Pukka. Simple. Delicious. Fast posting to del.icio.us. We've got it down cold.

SSH tunnels for the common man (and woman)

Thanks to the fine folks at TUAW, I’ve been alerted to an interesting start to a series at Apple Matters called Using SSH: Secure Tunnels for the Common Man. There’s a nice bit of explanation on the need for and the basic concepts behind SSH tunneling.

Of course I’d be remiss to not mention Meerkat, Code Sorcery Workshop’s next application, built specifically to address the need for easy and feature-rich management of SSH tunnels. Even for folks like me who know the Terminal commands for SSH and the concepts behind rather arcane uses such as dynamic forwarding as a SOCKS proxy, it’s very useful to have menu bar access, Growl integration, Bonjour capability, and other Mac-like features for a classic UNIX tool like SSH.

However, I think that even with a tool like Meerkat, it’s important to have some sort of forum or knowledge base for various uses of SSH, which is something that I hope to start when Meerkat launches. It’s tricky because part of an SSH tunnel is inherently personal (e.g., your account details), but the basic concept can be shared for other people — whether it’s tunneling to your home iTunes collection, accessing your colocated Mac server securely via screen sharing, or securely browsing the web while on guest networks.

Anyway, give the article a look. I look forward to the upcoming installments — SSH is a dark art to many and it’s good to shed some light on it!

Comments (4)

Posting issue resolved

I’m happy to report that a rather longstanding issue with posting in Pukka has been resolved — on the del.icio.us side of things. That is to say, the version of Pukka that you are using right now will now work properly with no action required on your part.

I had been getting some reports from users of periods of inability to post for a few months now, but only very occasionally. Users would get a message like this when trying to post:

This would happen many times in a row in a short period, but then eventually go away after a few minutes. It turns out that the resolution may have been due to users finally getting a different del.icio.us backend server, one without the problem, but without knowing otherwise on the frontend of things.

Unfortunately, the condition that was producing the posting problem was indistinguishable at a network level from being offline when trying to post (which would obviously fail). So it was difficult to determine if this was a sporadic networking problem on the user side or something deeper. However, in the last week or so, the frequency of folks seeing this problem went up, so I began to hand out some debugging builds of Pukka that could supply me with more information about what exactly was happening.

Once I had this info, I posted to the del.icio.us developer Yahoo! group about the problem and within a day or two, they were able to track it down to a problem in their system.

So in review, I’m happy that this is resolved, but by all means, please do let me know if you continue to see it, especially if you are using Ma.gnolia or another non-del.icio.us service as I have never had a report of a problem under those conditions.

I’d also like to extend an apology to users of Pukka who have been dealing with this for a couple months. As I’ve mentioned before, it can be difficult when core functionality of your application relies on a third-party, network-based service, so it’s important that if you are having a problem that seems to be related to the service to let the developer know so that they can get to the bottom of things as quickly as possible. More votes means more time with my eyes on the problem and hopefully a speedy resolution!

Comments

Pets for the environment!

Congratulations to Environmental Working Group for launching Pets for the Environment yesterday! From the announcement:

According to the latest research from EWG, I’m the canary in the living room, soaking up more chemicals than you or your children.

New tests confirmed that I’m full of toxic industrial chemicals, and I’m barking mad. You should be, too. I grow 7 times faster than humans, so what happens to pets like me - increased cancer rates, for one - might be happening to people soon.

Did you know that the humans’ government doesn’t make companies test our toys, furniture, or even our food for safety?

I did a little work on this site (built in Drupal, by the way), but the bulk of the credit goes to the EWG team and Mike McCaffrey.

Clearly, this is a big problem and I look forward to more of EWG’s research as this is something that is affecting our cat, too. Code Sorcery Workshop and Macy are definitely on board!

Comments (4)

The Price of Free

mbw.png

First off, I realize that I’m a little late to blog about this, but this past weekend I’ve been in the process of moving. I’ll certainly be posting more on that in the not-too-distant future, but suffice it to say that I’ve been a little busy these past couple days…

Anyway, last week, I was thrilled to hear from my friend Daniel Jalkut of Red Sweater Software that Leo Laporte singled out and mentioned Pukka on MacBreak Weekly, his weekly podcast, as a Pick of the Week. Ever since I learned that both Leo and productivity geek and frequent show guest Merlin Mann had used Pukka, I was hoping that they would mention it. A few months ago, my friend Jim alerted me to the fact that Pukka’s posting sound effect appeared in the middle of a MacBreak Weekly episode (Episode 65, about 10:20 into the show) but no mention was made of Pukka — though obviously someone was using it during the show! That’s why in this past week’s episode, when Leo and the guys spent a good chunk of time talking about Pukka, I was really excited! I found the spot in the show (Episode 82, about 1:36:18 into the show) and my wife and I sat down to listen.

On the whole, I was quite happy with the feedback — after all, Leo said “I love Pukka” and “Pukka is simple — it just does what it does.” But pretty quickly, though the feedback about the app never went negative, I heard something that made both my wife and I take pause — “They shouldn’t charge for it, but they do.”

I’m not going to rehash arguments for and against this, as Daniel wrote eloquently on this and received 87 comments on his blog post before he closed commenting. I really wanted to get my word in there, but the time for that conversation has passed (however, you should still go over there and read both Daniel’s excellent analysis as well as the many thoughtful comments if this is a topic of interest for you.) Other folks also got their say on their own blog posts: Michael McCracken, Tom Armitage, Matt Johnston, and Baron VC, for starters.

One of the commenter’s thoughts, about Pukka being no more than two hours of work, is ludicrous enough that I’m not even going to address it save mentioning a few nuggets of Pukka’s programming that could keep you busy for more than a couple hours each:

  • AppleScript support
  • Spotlight support with Core Data
  • Scalability testing on up to 25,000 bookmarks
  • Custom managed object deletion policy in Core Data (Hint: when deleting a bookmark, only delete each of its tags if it was the last bookmark for that tag, and when deleting a tag, only allow deletion if all of its bookmarks are deleted, but maintain a consistent and responsive data set during these transactions. Also, see above re: 25,000 bookmarks.)
  • Sparkle support: Cocoa code, but also a distribution and appcast feed update process.
  • Working out fun API issues like inconsistency and client throttling.
  • Trying to implement dockless mode while maintaining future compatibility with Leopard code signing. Also, taking the time to blog publicly about it as a way to help other programmers as well as to open your own thinking to analysis & criticism by others.
  • Dealing with a Leopard API instability that is core to your application. Also, taking the time to blog publicly about it for your users and for other developers.
  • Doing the above with an installed user base on Tiger and Leopard.
  • Doing the above, while providing what I feel is an above average level of support, for two years.

I’ll leave that argument as is — blame the above list on a lot of driving in the past few days while thinking about that specific comment ;-)

It’s true, at first glance, Pukka may not look sexy (it doesn’t produce smoke effects, after all) and may seem to be nothing but a simple form-like frontend to a free, public service, but as many kind commenters on the above-mentioned blogs have pointed out, and as Leo himself summarized when he said, “It doesn’t do much — I just love it!”, Pukka represents hours and hours of thought and planning and attention to the user experience — that is what is king in the Mac software business. Mac software for me is like a good relationship — the more time you invest in the software, the more richly you will be rewarded with little surprises and delights along the way. You can see the kernel of this idea in my first post here over two years ago:

I set out to write a program that does the actual posting and I had it working that night. It grew from there as I lovingly tweaked it and worked with beta testers to make it better. I hope you like it. What’s more, I hope that you’ll support my efforts so that I can keep the creative juices flowing.

I followed that up a few months later when I started charging for Pukka:

If you look at my blogroll, you’ll see over 30 Mac developers or products that I admire, nearly all of which I use and have paid for, if they charge. I’ve easily spent several hundred dollars on Mac shareware [...] The Mac has shown me what it has undoubtedly shown you — that software is art, and Mac users have deeper loyalties than price points.

On the topic of pricing, it’s true that there is some voodoo to determining the price of a piece of software that you’ve created, and I say that even though I do not make my entire living off of Mac software (though I will point out that Pukka enabled me to bootstrap my own business, including starting out on my own and enabling me to attend developer conferences and meet like-minded entrepreneurs.) I don’t typically like to quote the same blog when discussing two different points, but again Daniel Jalkut nails this topic in his post The Price is Wrong from several years ago (there’s a reason Daniel attracted a Daring Fireball link and 87 commenters on his latest post.)

I’m all on board with free software if it works for the developer — in fact, the day the MacBreak Weekly episode was published, I released a little freeware application called Snarf for icon designers. I maintain and build Drupal modules. And before that, I released a number of open source programs like Ticketsmith, spliff, and purgeimap.

But for me, it all comes down to this: what will the market support for an application that, for the right user, adds at least that amount of value to their workday? For me, right now, that’s what I’m charging for Pukka. I hope that you agree, but if not, I fully support your right to make a better application, at a price point that works for you, or to use the free services that Pukka works with yourself directly. And I’ll even help you out if I can, because others have certainly helped me along the way.

Comments (8)

Fun with Cocoa: Snarf

A friend of mine asked me today if I knew of a quick and easy way to preview an ICNS file as it would look on an application in Mac OS X’s dock. I didn’t, aside from opening an existing app’s bundle and overwriting its icon or something like that.

Late tonight I decided that I could probably whip up a tiny app to accomplish this sort of thing in far less than an hour, and I did! So I give you: Snarf (requires Tiger or Leopard). Snarf allows you to drag an ICNS file either onto its main window or onto its dock icon and will instantly update to use the dragged file as its new icon.

There’s not much more to say than that, so enjoy!

Comments (2)

SXSW is happening!

Another conference update — I’m at SXSW in Austin, Texas. If you’d like to follow my whereabouts, hear what I’m up to, and/or would like to meet me, you can follow me on Twitter. I can’t promise that it will always be coherent as time is limited and my sub-iPhone-quality SMS messaging is not the easiest, but it seems to be what all the kids are using and it’s helping me out in a big way to figure out where people are headed and what sessions are good or bad.

So again, meet me at South By Southwest — I hope to see you here!

Comments

Come say hi at Drupalcon Boston!

Though I’m headed to SXSW in Austin later this week, I’m in Boston right now for the twice-annual Drupal conference, aptly named Drupalcon. If you’re around, say hi — this is a fairly good representation of what I look like, though sadly I do not have my hat, or at least a non-winter hat. It’s kind of cold up here!

Today, the first day, was pretty engaging and inspiring. I’m excited to see the roadmap for the future of Drupal, and I’m always on the lookout for knowledge that will benefit me both in the Drupal services that I provide as well as some cross-pollination of ideas between both web services and Mac desktop software, be they data storage, user interface, industry trends, or any number of other issues. Not to mention meeting & hanging out with some great folks!

Probably the most interesting session so far for me was the last, on Drupal in China, covering issues as varied as outsourcing & off-shoring, governmental technology initiatives, software piracy, language barriers & internationalization, community involvement, and lifestyle & free-time activities — which of course, if you look at them, are all integral to China’s current standing and future trajectory in the technology scene. Really interesting and fascinating stuff!

Though it’s of course easy for me to hang out with the large DC representation up here, I do need to meet some other folks, so again, don’t be shy — come say hello. And enjoy Drupalcon!

Comments

Software swap

Just a note that like several other Mac developers, I’d like to extend the offer of a free license for Pukka (as well as one for Meerkat when it’s released) to any Apple employee. Just mail me from an apple.com or filemaker.com email address and I’ll set you up. It’s the least I can do for all the great tools that you make, free or paid, that let me do my work.

And if you’re a Mac developer yourself, feel free to contact me as well and we can setup a license trade. I love trying new software and I’m not afraid to talk about tools that I love!

Comments

Feature requests versus the “right way” to do it

One of the challenges of developing Mac software, particularly for an audience that is generally more technical than the average user, is that your users compare your application to others that are out there on the basis of how they utilize the rich set of technologies available on Mac OS X. And I’m not just talking competitors here, but any Mac application. This can be both a blessing and a curse, as it can inform you of and inspire you to add great new features, but can also cast a seemingly bad light on your own product if you are unable or unwilling to implement certain functionality. Users often don’t care why you might not want to or can’t implement features which are, in your own estimation, not the “right” way of doing something — at least not right now. Other apps are doing it, why can’t you?

I’m hoping to provide some insight into my thought process on making these judgement calls and talk about a specific issue that I’ve been working on in this department. I’ll get a bit technical, but I’ll try to explain along the way for the non-programmers in the room. And I’ll mention a couple of other apps by name that handle the same issue in different ways. I don’t mean to call out or embarrass anyone, and all the apps that I mention are ones that I use (and love) on a daily basis, but I want to show what other developers are doing. Lastly, I have an overriding goal here to be a somewhat exhaustive resource for this particular issue for other programmers to find, too.

What’s up, dock?

A big feature request that’s been hanging around for some time for Pukka is the ability to run without a dock icon. For a utility with a small footprint like Pukka, this makes a lot of sense for a number of reasons:

  • As of Pukka 1.6, a status bar menu provides omnipresence for all of the app’s “background features” — looking up bookmarks and visiting your links online.
  • Pukka is not visible when you are not using its “foreground features” — posting bookmarks — anyway. Some users would like to not have to think about it by seeing it in the dock and task switcher.
  • Pukka has long supported a “quit after posting” feature which quits the app entirely after a post is made. Since you can call Pukka via your RSS reader or the browser bookmarklet and since it’s lightweight and starts quickly, Pukka can come and go only when you need it. People who like an uncluttered dock really appreciate this, though some people would rather have Pukka running all of the time, but still not in the dock. After all, lingering invisibly in the background is faster than starting up on demand.
  • “All the other apps are doing it!” :-) Apps that I use that have a user-configurable dockless mode include Twitterrific, MenuCalendarClock, Knox, BluePhoneElite, SSHKeychain, and iShowU. There are many more that do as well.

I should make a distinction here between applications like Lighthouse, Macaroni, and Growl (which I also use) which always run dockless, since these apps have alternate interfaces — typically robust status bar menus or preference panes — that allow use of the application. I’m talking about applications that let you choose on a whim whether you’d like to run without a dock icon or not — defaulting, of course, like normal applications, to running with a dock icon.

Users who are used to dockless apps know the downsides — no application switching, the app doesn’t show up in the Force Quit menu, and sometimes there are window focus issues — and are willing to accept them as limitations in Mac OS X. But there are some issues on the developer side that make this feature more difficult than one might think at first pass.

How do you work this thing?

The only real way* to make an application run dockless is to change a setting in a file inside of its application bundle — though a variation on this exists, as I’ll describe in a little bit.

* I do know about TransformProcessType, a Carbon call, which can go from dockless mode to having a dock icon, but this has to happen too early in the launch process to read a user’s preference setting, plus it’s only a one-way transition.

A Mac application is actually a folder named <application name>.app containing a number of files and folders, one of which is called Info.plist. This property list file contains entries such as the application’s name, version, copyright info, and other info used by the system to query what the application is all about.

If you add an entry to an application’s Info.plist called LSUIElement and set its value to a string containing the number one, relaunching the application will make it go dockless. There are even applications like Dockless and Dock Dodger that will do this for you for a given application. Most of the applications that I mention above use this method to go dockless.

However, I’ve long preferred not to do this for a couple reasons:

  • It’s bad form for an application to modify itself — though I realize it’s not the end of the world.
  • If the user is not an admin or if the application is located someplace like a network-mounted share, the user will not be able to — and shouldn’t be able to — modify the app bundle that is shared by other users or even other computers.
  • Lastly — and this is the big one — Apple introduced code signing in Leopard and, according to the documentation, it’s only a matter of time before this method of altering the Info.plist will render the application unusable.

With code signing and Info.plist modification on the fly, the writing is on the wall:

A seal, which is a collection of checksums or hashes of the various parts of the program, such as the identifier, the Info.plist, the main executable, the resource files, and so on. The seal can be used to detect alterations to the code and to the program identifier. #

Various components of the application bundle (such as the Info.plist file, if there is one) are also signed. #

Your code must be immutable once signed. After signing, do not attempt to change executable code (including symbol tables), the Info.plist, or your program’s resource files. Do all that before signing. If you make modifications after signing, the signature may be invalid. #

And according to Apple, you should be signing code now. Not doing so can interfere with the keychain user experience, Parental Controls, firewall, and other integrated systems in Leopard that rely on code signing.

So, where does that leave us?

When I talked to Marko Karppinen, whose company makes the excellent Knox security application, at last summer’s C4 in Chicago, he let me in on how he accomplished a user-specified dockless setting in that application.

If you look at the application bundle, it contains another copy of the application within a subfolder of the app bundle itself — sort of a Russian Doll. But if you look closer, you’ll see that all of the components of this “inside” application are actually symbolic links to the parent application’s version, except for the Info.plist file. And — you guessed it — the internal Info.plist has the LSUIElement set. For the curious, here is a shell script that I came up with to be used as an Xcode build phase to accomplish this.

I’m actually using this method successfully with Meerkat, my next application (which is currently in private beta) and it’s working ok for now. On launch, the application checks to see if if the user’s preference setting matches the setting of the version being launched and if not, it launches the other one. Pretty sweet, right?

It is, except for one thing in Pukka’s case — Apple Event targeting. Besides being launched normally, Pukka can be launched by a number of external forces, including:

  • AppleScripts that interact with Pukka
  • Posted information from RSS readers like NetNewsWire using its author’s External Weblog Editor Interface
  • Pukka’s bookmarklet, which actually uses a custom pukka:// protocol to pass information
  • Opening http:// and https:// URLs with Pukka like you would with an alternate web browser
  • Opening a supported file, such as a .webloc on the desktop, a Pukka license file, or one of the Spotlight files that Pukka generates for easy access to your bookmarks via system searching

On launch, not only do I have to figure out if the right version is running, but if not, I have to pass whatever information actually launched the application to a new process. I’ve actually managed to accomplish this for everything but AppleScript, but it’s still non-ideal. It comes down to the fact that it’s just generally bad practice to have more than one copy of the same application on the same hard drive because Mac OS X’s Launch Services can get confused as to which one it should be targeting.

On top of that, since Pukka uses Sparkle for auto-updating, some issues needed to be resolved in order to update the outer, docked application and not the internal, dockless one, even if the internal one is the one running the update. Overwhelmed yet?

Now what?

So right now, I’m at a loss as to how to proceed. Apple doesn’t provide a tried-and-true way to let the user toggle an application’s dock mode and although many applications implement this, it seems to me that no way is fool-proof nor future-proof. The last thing I’d want is to release the feature but have to revoke it later from paying customers because it’s untenable.

Cocoa developers, anything obvious that I’m missing? Have you tackled these challenges? Are you thinking about adding the same feature to your application?

Comments (7)

C4 videos now available!

Jonathan “Wolf” Rentzsch has begun posting free videos of last August’s C4 indie Mac developer conference in Chicago. I was fortunate enough to attend this conference, as well as the first C4 in 2006, and I’m very happy to see these online, let alone available for free!

C4 was a big motivator in me striking out on my own and having these videos available free to the community is a huge boon to the Mac platform. Wolf says it best:

[O]nline videos like TED and Google Tech Talks have really driven home how great frictionless sharing of high-quality presentations can be. So spread these videos far and wide, all these are great speakers talking about subjects dear to their heart.

Hear hear! Enjoy these videos and spread the word!

Comments

« Previous entries