Tag: Ruby

Post to Wordpress from Ulysses update 5/20

I’ve made a significant update to my app Post to Wordpress for Ulysses today. I’ve improved it so that there’s no need to edit the Automator app or need two parts (app & code file) for everything to work. The blog information (user name, password, URL, and SSL preference) is now stored in a separate file. Also, all the posting code is now inside the app, and the user doesn’t need to create a ~/bin folder to keep the Ruby code file in.

Post to WordPress from Ulysses, update 4/9

Note: there is now a GitHub repository for this project. Get the latest code there, including a downloadable Automator app  After sleeping on this I decided there were a few things I could do better. Having to put raw source in the document was annoying. I looked into several ways to do this, but found Ulysses had the answer. If a line of text is “marked” in Ulysses (that’s the :: notation) it gets exported as its own paragraph, but no other HTML tags are applied.

Post to WordPress from Ulysses

Note: I’ve updated this app, and you can find out more info in the updated article. Plus it’s even easier to install and set up. Or go directly to the GitHub repository for this project. Ulysses does a lot of things right as a writing tool. But it’s not designed to be a HTML or Markdown editor. It’s also not able to post directly to a blog. But its export friendly nature makes it easy to build helper apps.

The Scalzi Generator

In an wonderful post, the author John Scalzi produced twelve standard responses to online stupidity. The list seems complete and covers most cases. The list: I don’t care what you think. I didn’t ask you. No doubt you thought that was terribly clever. You’ve attempted logic. Not all attempts succeed. One should not have that many errors in that few characters. Either your educators have failed you, or you have failed them.

PogoPlug, OpenVPN and ArchLinux

In my continuing adventures with the PogoPlug V4, I decided to get OpenVPN working. The install was easy enough, but getting the configuration correct turned into a literal project—it has it’s own GitHub repository. My VPN provider of choice is TunnelBear1. I started with them about a year ago because of their free service. The free accounts get 500 MB of data transfer per month. That’s not a lot, but it’s enough to get me out of a data emergency.

Sample Chapter of My Ruby Book

(This is a sample chapter I put together to see how I felt about writing a programming book.) The Simple Script Before starting to build a more complicated program, let’s start with something simple. We’re going to hack together a short script that works. It will upload a single cat picture to a S3 bucket. We’ll learn the basics of both a ruby script and how cloud storage works. Lesson setup In your working directory create a new branch for this chapter.

Learning to Code with Ruby

Last week I got sucked into a small coding project. I wanted a quick way to upload files to AWS S3. S3 acts like a FTP file server. But traditional upload methods like SFTP aren’t allowed. This makes the service tricky to use from the command line. I wanted a simple tool that I could use in three different ways: Directly from the command line. Inside of an Automator workflow “run shell scrip” action.

A worthless week

This has been one of those weeks where I’ve done lots of stuff. I’ve also failed to accomplish anything worthwhile. The highlight of the week was on Wednesday when the city decided to turn off the water to install new meters in the building. We got warning letters stuffed in the doorframe on Monday. So it wasn’t a surprise. I thought about toughing it out. But then I decided that having a working toilet for those six hours would be a good thing.