bdunagan
fill the void

Server Tip: Better SSH Timeouts

I recently had an issue with my SSH connections timing out quickly. At Starbucks, I had no issues, but at home, the connection timed out faster than usual.

First, I wanted to see how fast, so I wrote a short bash script that sleeps for increasing periods of time. I found that the connection timed out after five minutes.

let time=0
while true; do
  let time=time+10
  echo timeout is $time seconds
  sleep $time
done

I tried creating a ~/.ssh/config file and telling the connection to stay alive: TCPKeepAlive yes. No luck, because the default time period is two hours.

Instead, I ignored the TCP connection’s state and told the SSH client to send a null packet every twenty seconds to keep the connection alive. The SSH client times out if it doesn’t receive a server response after ten packets.

# ~/.ssh/config
TCPKeepAlive no
ServerAliveInterval 20
ServerAliveCountMax 10

Thanks to Andy Skelton for making this tidbit googleable.


Remind Me Later 1.4.1

Remind Me Later 1.4.1 is now live on the Mac App Store and this blog! This version includes time zone support, such as “Meeting 7pm EST”, along with a number of fixes for user-reported issues. Thanks to everyone who has contacted me about problems they’re seeing. Please continue to do so.

Download this new release from the Mac App Store or this blog!


Dollar Clock 4.2

Dollar Clock 4.2 is now available on Apple’s App Store! Included in this release:

  • More motivational messages and pretty pictures
  • Even a picture of your meeting from space. Yes, we have the technology.

Download the latest release of Dollar Clock now!


Design Iterations for Dollar Clock

I shipped Dollar Clock 1.0 more than a year ago as an experiment. I wanted to submit an app to the App Store, and my friend and I came up with tracking how much money meetings waste. To date, the free app has had several thousand downloads on iPhone and iPad, a moderate success for a mediocre side project with no marketing.

1.0: Simple and Lame

The first iteration of the app was simple. That was my design goal: really simple. There were only two views: the money counting and the settings. I limited input to two pickers for people and average salary. I designed the input this way to force the user to estimate the numbers, rather than be exact. I wanted people to use the app to estimate meeting waste.

The app was simple but lame. It lacked personality. Just look at it. I’m bored already. I even shipped 2.0 and 3.0, and both were such lackluster releases that I don’t remember what they included. Something about iPad support and VGA support, I think. And that’s my point. Even the developer didn’t care about the app.

4.0: Snarky and Deeper

Recently, I decided Dollar Clock needed some love. The app needed a personality. What goes with a depressing clock counting monetary waste? Interesting images and uplifting messages.

I gave the app a voice. It iterates through a set of Flickr photos, each with a number of messages associated. Here are a couple examples:

  • You’re not special. Neither is this meeting.
  • Does someone have the notes from the pre-meeting?
  • More people make meetings less effective. Leave. It’ll help.

Furthermore, I was wrong about input. The most common request for the app is more customization for salary input. My original problem with this was complexity. I didn’t want to make the salary input hard, for people to use or for me to code. But I like this new version. People click the “Add Salary” row. They can type in number for people and a salary and save it. It’s just another salary row. Simple but flexible.

Dollar Clock is available on Apple’s App Store, free for iPhone and iPad. Try it out! Let me know what you think.


Dollar Clock 4.1

Dollar Clock 4.1 is now available on Apple’s App Store! Included in this release:

  • More pictures!
  • More messages!
  • More random!
  • Also, you can tap a message to move on.

Download the latest release of Dollar Clock now!