Markdown to Microsoft Word Service

Markdown to Word is a ginchy little service that will take Markdown-formatted text, and put it into Microsoft Word, making use of Word’s style sheets to do so.

This is in all ways identical in function to my previous TextMate script which does the same thing, except that this also auto-formats once in Word.

You may notice some funniness in the conversion. Lists, in particular, sometimes don’t convert perfectly. This is part of Apple’s textutil program, which is very handy, but sometimes a little… er… special in how it handles things. I take neither blame nor credit for its output.

IMPORTANT! This service relies on the setfile utility, included with Apple’s free “XCode” developer tools. You’ll need to have those installed (at least the developer applications).

And, of course, this program wouldn’t exist were it not for John Gruber’s “Markdown.” Mr. Gruber retains all copyright, etc., to said code. Disclaimers can be read below and are included with the Zip archive.

http://www.daringfireball.net/markdown

I am eternally grateful to Mr. Gruber for giving me Markdown. Without it, I’d probably be writing in LaTEX or something. Ugh.

Written on November 9, 2009

Why You're All Wrong About the Insurance Debate!

I’ve always kept this blog as something of a geek-only site, but the current situation with the insurance overhaul is driving me nuts. The government is being accused of death panels, care rationing, raising our taxes, and more – even though these are EXACTLY the same things our private insurers are ALREADY DOING! So I’m taking my own little stand and sharing my thoughts with both of my readers.

First, the basics:

Insurance companies are funded by member premiums and investments that increase the value of the banked premium fees. (And private investment, but let’s leave that out for now) The insurance company is profitable provided that it earns more money from these two revenue streams than it has to pay out to pay back medical providers, and cover its overhead costs.

There are three major points of risk here:

Medical cost increases: If the cost of health care rises too much, the insurance company’s profit will decline accordingly.

Unexpectedly high pay-outs: If the overall payout for member medical bills is higher than expected, it will eat into the insurance company’s cash pool, and force them to cash out longer term investments, which can get expensive fast.

Investment Losses: Insurance companies rely HEAVILY on the revenue they earn from their various investments. If those investments sour, it’s a short ride to bankruptcy.

Are we good on the basics, here? Okay, now let’s look at how an insurance company manages those risks, and how those would affect the proposed public insurance plan, and see which has the most advantages:

Aggregated risk: By taking on lots of subscribers, insurance companies aggregate risk and create a hedge against extraordinary payouts. While a few subscribers may have large medical bills that exceed what they’ve paid in, other subscribers subsidize this care through their own premiums, since they pay in more than the insurer has to pay out. The public option would work in the same way, with members paying the premiums. (And, it’s worthwhile to note that this is the same way taxes, social security, medicare, medicaid, pension plans and many other public and private institutions are run – there’s nothing new here).

WINNER: To-be-determined. Whichever insurerer has the most members will have the greatest degree of risk aggregation. If the Republicans are right, and the public plan ends up taking over the insurance business, then the public plan will be the big winner.

Negotiated Pricing: Insurance companies negotiate fixed rates for various medical procedures. This is why your “out of network” coverage is costlier than “in network” coverage among physicians that have agreed to these pricing agreements. The government already does this in its medicare and medicaid programs, and would continue to do so with a public plan. Doctors, as always, will be free to not join a given insurance network, probably including the public plan (they can not join medicaid/care if they wish), so there’s no real strong-arm tactics there.

WINNER: Tie.

Rationing care: Insurance companies often place restrictions on what care is covered for any particular subscriber. Some plans, for example, don’t cover maternity care, others require physicians to only use certain procedures, even if there are comparable treatments available, and many (most?) plans restrict subscribers to generic drugs. These restrictions sometimes conflict with the physicians’ recommendations, and we may infer from this that it conflicts with the patients’ best interests. There is no reason to believe that the public option will be any different in this regard.

WINNER: Tie.

Death panels: Okay, it’s an absurd term, but I couldn’t resist. Insurance companies avoid paying out excessive amounts by dropping subscribers with or without cause, and/or refusing to cover new subscribers who have pre-existing conditions. And, as above, they may also refuse necessary treatments to extend or save the lives of gravely ill/injured subscribers. The public plan would not be permitted to drop a subscriber nor deny coverage due to pre-existing conditions or long-term care needs.

WINNER: Public option, as it will provide care indiscriminately.

Higher premiums: Charge more at the door, and you have more money for paying out, investing, and giving bonuses to the CEO. (Cheap shot, sorry) Since the public plan won’t have the option of denying care to really sick people, it may actually end up costing MORE than an equivalent private plan. On the other hand, since it’s not-for-profit and won’t be paying equivalent salaries or shareholder dividends, it will have a higher share of the premiums to cover costs. Of course, the more you pay, the better coverage you get, so we really need to know the structure of all the involved plans before we can judge.

WINNER: To be determined. Quite possibly a tie.

Higher taxes: Two things, here: First, higher premiums may as well be higher taxes, it’s money out of your pocket either way. You’re already paying higher premiums because your insurance company has to pay the physician’s higher prices since the physician is providing service to uninsured people who will never pay their bills. (See how many people at the ER have less-than-emergency conditions, but are still get $100 tubes of Neosporin). The same will be true of the public plan.

Taxes come in directly if the public plan can’t cover its tab, then we might have to shore it up with tax money – which may be drawn from other programs, rather than a direct hit at your pocketbook.

Of course, we ALREADY subsidize our private insurance through taxes, so what does it matter? Not only do we pay interest (funded with taxes – yay!) on the treasury bonds insurers invest in, but you may have noticed that we recently paid out a pretty hefty sum of money to the banks holding these investments and a huge portion of that money went directly to insurance companies. AIG got nearly $200 BILLION from us taxpayers!!! As for the public plan, well, it’s supposed to be self-funding, but it will also invest money (by lending government bonds, among other things) to fund itself, so it will be victim to the same market forces.

WINNER: Let’s call it a tie. What’s a few hundred billion dollars between friends?

Consumer choice: Yep, insurance companies benefit GREATLY from consumer choice! How? Well, if you have employer-paid insurance, you get to choose WHATEVER PLAN YOUR EMPLOYER OFFERS! Hooray! Want to pick a physician? You get to pick WHICHEVER PHYSICIAN YOUR INSURANCE COMPANY PICKS FOR YOU! Hooray! Looking for private insurance as an individual? Congratulations, you can ONLY receive highly restricted, minimal coverage plans, unless you shit solid gold bricks and eat platinum covered Wheaties for breakfast every morning. That’s right, REGULAR MARKET FORCES DO NOT APPLY IN THE INSURANCE INDUSTRY! Well, at least not in the sense of consumer choice. Consumers have, effectively, NO CHOICE WHATSOEVER.

The public plan, on the other hand, will publicize everything it does and be answerable directly to The People and their government representatives. It may be just as restrictive and shitty as any other plan, and it might only be a plan of last resort for people who can’t get anything better. So I wouldn’t be too worried that it’ll create anything approaching a free and competitive market.

WINNER: I’d say the public plan is the winner, but there’s no reason to believe that it will be a good plan, or that it won’t screw its subscribers just as much as the private plans.

In conclusion, as consumers, we’re fucked.

Insurance is a very high stakes game of roulette for the companies involved, and even higher stakes for individuals. Everybody’s hoping that they pay out less than they get in return.

Insurance companies have the advantage in these games, with multiple sources of income and the ability to aggregate risk and reward across a huge scale. You, on the other hand, have your own health and money to gamble with. The odds are that you’re better off paying out of pocket, because MOST insurance subscribers pay more than they get in return – that’s how the insurance companies stay in business, after all. But then, statistics only apply to the population, not to the individual. You wouldn’t dare aggregate your risk by letting your daughter die of lukemia so that you can afford to pay for your wife’s heart surgery.

When I got laid off many months ago, I investigated private insurance, and learned that it was out of the question to cover me, due to pre-existing conditions, and my family’s plans to have another child would need to be put on hold, because I couldn’t get maternity coverage at ANY price. I’m, thankfully, employed and covered by my employer’s insurance plan. But those premiums just went up by more than $500/month, and I have no control over whether they’ll go higher.

Did I mention that I’m also paying to cover the losses our various insurance companies took? Yeah, they did get into the pick-who-gets-to-live question, and our lovely government has a public option to insure the insurers and the companies that hold their investments. Apparently they’re Too Big to Fail, even if I’m Too Little to Insure on my own dime. So I’m really looking forward to paying taxes on all that bailout money and watching inflation soar over the rest of my lifetime.

Is the public plan a panacea? Not hardly. Fully socialized insurance would provide some benefit in greater risk aggregation, and the removal of the profit motive. But, then, it may also just go bankrupt, as Canada’s public health system nearly did, or provide terrible coverage. At least in a competitive market I have a choice, right?

No, I don’t. Neither do you.

I probably got a lot of this wrong, so please sound off in the comments and let me know why I’m misguided, stupid, or a communist.

Written on October 12, 2009

Evernote Services

Updated October 2, 2009!

Just a note: These work great in Lion and Mountain Lion. It’s not just for Snow Leopard.

With Snow Leopards new services support, I’ve updated the old “Send to Evernote” service to include three services:

  • Clip Text to Evernote: This is the original “Send to Evernote” service, with the improvements provided by Snow Leopard. This service takes selected text and turns it into an Evernote note. It will also grab the name of the frontmost window for the title of the note so that you’ll remember where you clipped it from.

  • Clip URLs to Evernote: This takes any selected URLs, and downloads the contents of those URLs into Evernote. Very handy if you have a reading list of URLs and want to save them for later.

  • Clip Files to Evernote: This will accept files and folders and attempt to clip them to Evernote. In some cases this will fail if the file isn’t supported by Evernote (although premium users can attach anything they want). If it is a supported file type, the document’s contents will become the note, rather than just attaching as a file.

Installation’s easy. Just unzip the archive, and put the services you wantin your ~/Library/Services/ folder (make one if it doesn’t already exist).

This will also let you get rid of the little elephant in your menu bar if you like.

Written on October 2, 2009

Nik's Picks: iSSH

iSSH is a wonderful SSH client that goes beyond a simple terminal client, to nearly the remote access Swiss army knife of SSH on the desktop.

SSH is commonly used as both a remote terminal and also as a sort of VPN to access remote systems graphically. Apple has limited the iPhone in such a way that this is impossible. A SSH connection can only be maintained in a single app, and when that app is closed, so is the SSH connection – no other apps can access it.

iSSH gets around this by bundling in the two most common remote management systems: VNC and remote X11 applications. It also permits multiple simultaneous connections, so you can manage tasks between more than one server. (very useful in disaster recovery and server migrations)

As a terminal, iSSH is quite good. It supports custom fonts, different keymaps, copy and paste, and is in all ways a good solid terminal. Unlike other SSH apps, it also supports the legacy Telnet protocol and ANSI terminal emulation, in case you need to get your Tradewars on.

It also has a pretty easy way to get at non standard keys, such as arrows and modifier keys. A row of small buttons line the top of the screen, and you can scroll left and right to reveal more commands. This works all right, but I sometimes clicked the wrong key, even when scrolling, since the buttons are so small. This can be quite frustrating, and it made me miss TouchTerm’s floating key palettes.

iSSH also has the option of a “key pie” menu. This brings up a floating round control that reminds me of a remote control for a TV. It can contain multiple sets of fully custom buttons that can be used as modifiers, macros, or arrow keys. I wouldn’t mind seeing this concept completely replace the modifier keys at the top of the window.

VNC is well thought out and very flexible, thanks to the underlying SSH system for secure connections. You can connect in the clear, or using SSH tunneling, as well as tunneling to one server and then connecting openly to a second. Once connected, you have the normal sort of control, including window scaling, keyboard and mouse, and all the modifier keys you’d expect.

The winning feature here is the tunnel support. Performance over 3G is worse than some other VNC clients. Jaadu VNC can do the same SSH tricks and is generally a better VNC client, but it’s also much more expensive. For lighter or infrequent remote management, iSSH is great, especially for the price. (note that VNC is perfect for remote control of presentations – one more use for iSSH!)

X11 forwarding is very impressive, and quite a bit faster than SSH over slower connections (especially if you use something lighter weight than KDE or Gnome) But it’s limited to pure Unix systems, and more complex to set up than VNC, so it’s only a real benefit to the most die hard *nixers. That said, it works great, up until you run out of memory. (Which, on my 3G, was after just a couple of KDE apps – a 3GS would fare better)

The one limit on remote management is that only one graphical (VNC or X11) session can be active at once, although any number of terminals can run at once. (until you run out of memory, at least)

To wrap up, iSSH is fantastic. It gives you all the tools you need to remotely manage Unixish servers from your phone. (Windows, too, if you install the right open source tools) It might be just the thing to let a IT professional take a vacation without needing to drag along a laptop and stay near wifi in case disaster strikes at the datacenter. Or, for $5, it’s also just a handy tool for any *nix hobbyist.

Written on September 26, 2009

iPhone Users Aren't Cheapskates

I keep hearing developers complain that “iPhone users are cheapskates who won’t pay for a quality application.”


Most iPhone users have spent over $200 and around $100/month for a telephone. Why can’t you sell a high tech piece of software to someone with a $1,500/year gadget habit?

My guess: They’re too distracted by all the cheap/free gadgets they can get. If what they want is the gadget, and not productivity, that may be very hard to break through.

At the same time, there are app users like me who are more than willing to shell out for a quality piece of software. I use Jaadu VNC almost every day, and was happy to pay $25 for trouble free VNC, even though there were cheap remote control and free VNC clients available. Likewise, I paid plenty for OmniFocus on the iPhone, and for the desktop as well. I get more than $100 worth of productivity from it.

In both cases, I had a recommendation from a trusted source. OmniFocus was built by one of my favorite software houses, and was recommended by many people I’d met while exploring Kinkless GTD. Jaadu was recommended by my geek-buddy, Aaron.

Again, it’s marketing outside of the app store. What does it take for your app to get that precious recommendation?
Written on August 3, 2009

Mailhandler

I just started working with the Drupal Mailhandler module. I got jealous of Posterous, but I like geeking in Drupal so much that I couldn’t bear switching over. (And yes, I know Posterous can handle cross-posting to Drupal – I like this better) Very cool stuff. I can attach images and do all kinds of neat things.
Drupal continues to impress me with what it can do. I just think about something, like “can I post by email?” and a short search later, I find out that I can. It’s wonderful.
This couldn’t be more of a test post, so please don’t worry yourself about all the images and files. I’m just working on themeing things. Or maybe not. :)

Written on July 31, 2009

Your iPhone App is a 99¢ Lawnmower

Vlasic, one of the world’s top pickle producers, delivered a top selling item to Walmart – a gallon of pickles for about $3. It was huge, Walmart shoppers went pickle crazy, and bought them by, well, the gallon. The only problem was that the gallon jugs of brine were only minimally profitable – picklers make their real money on cut and prepared pickles. But Walmart and Vlasic were caught up in the pickle-fever, and Vlasic ignored the shrinking margins as their business shifted from premium gherkins to dime-a-dozen salted cucumbers. Finally, Walmart’s continued pressure to lower the cost of a gallon of pickles, and the total loss of more profitable business, forced Vlasic into bankruptcy.

Simplicity Manufacturing, a premium lawnmower manufacturer, was offered the opportunity to become Walmart’s house brand of lawnmowers, guaranteeing millions of sales. But that would have watered down Simplicity, forced them to lower their standards, and to reduce their profit margins. Ultimately, they said “no,” and continue selling high priced and high quality lawnmowers today. They haven’t filed for Chapter 11.

Your iPhone application is a shiny red lawnmower, and you’re selling it for 99¢ a gallon.

It would be flattering to call the App Store Walmart on Black Friday. Sure, it generates a ton of traffic, but that traffic is a bunch of sweaty bargain hunters digging through endless shelves of games and applications, guided by $1 flashlight applications, haphazard search and vague and untrustworthy reviews. It’s a great place to sell if you’re willing to sell your app at the absolute lowest possible price (quality be damned!), and be in cutthroat competition with the next guy who can give the Walton family some pickles for half a cent less per gallon. Unless you’re as good at the low price game as Walmart, you’ll be in a race to the bottom.

Remember Simplicity and their shiny red lawnmowers? Not only are they unavailable at Walmart, they’re also nowhere to be found on Amazon, or at Sears, or most anywhere else. They’re sold exclusively through certified dealers, each of which is equipped to be a full service support shop for the mower. There are two such dealers within 100 miles of my house. But that’s all right, because if I’m going to spend over three grand on a lawnmower, I’m happy to make the trip.

You’ve got this great application that’s well worth a premium price. Why are you trying to draw people in who are window shopping at Walmart’s app store? It's time to to quit bitching and build your dealer network.

Start with your own storefront – make it a killer website with the sort of depth and trustworthiness that makes people happy to shell out a thousand bucks to upgrade their copy ofAdobe Creative Suite. Heck, make ten killer websites, each targeted at a specific market segment or use for your app. Or give away a thousand copies of your app as coupons in MacHeist-like promotions to get the word out. Put a quarter of your money into advertising and search marketing. Get endorsements from the people in your very particular market niche telling other enthusiasts and professionals how critical your app is to their lives. And keep investing in quality, design, and support, the last thing you can afford is customers who feel cheated. 

Yes, this costs money, and time, and has huge risks. Welcome to the world of business. And seriously, what’s the alternative…?

Pickles, that’s what.
Written on July 30, 2009