Imgup 1.1

Yesterday, Peter made a feature request for Imgup, so I implemented it. Both of us use it most commonly to upload screenshots from our desktop. After that, the screenshots just get deleted, so why bother keeping them around in the first place?

  • Press Command + Option + Shift + 3 to take a screenshot of your full screen and upload it immediately to Imgur, bypassing the desktop.
  • Press Command + Option + Shift + 4 to interactively take a screenshot, then upload it immediately to Imgur, bypassing the desktop.

Of course, these key combinations are the standard screenshot key presses, with Option added.

This release should automatically show up for anyone currently running Imgup (thanks Sparkle.

Download


Two small terminal scripts

Gnome's terminal is cool because it opens new tabs & windows in the current directory. If I want to go somewhere else, prepending ~/ isn't a big deal and is fairly instinctive anyways (how often do you use a shell in ~?) Apple's Terminal doesn't do that, and cding gets old after a while. So I fixed it in zsh (probably works in bash too). Just two simple little functions with a lot of escaped AppleScript in them.

win() {
    osascript -e "tell application \"Terminal\" to set currentTab to do script \"cd \\\"`pwd`\\\"\"" > /dev/null
}

tab() {
    echo `osascript <<END
    tell application "Terminal"
        activate
        tell application "System Events" to tell process "Terminal" to keystroke "t" using command down
        do script "cd \"\`pwd\`\"" in selected tab of the front window
    end tell        
    END` > /dev/null
}

Note: this was written a while ago. These days, just use iTerm2.


New Imgup

Recent Uploads Menu

I've released a new version of Imgup. Imgup is a simple menubar item for Mac OS X, which uploads images dragged to it to Imgur. You can also hold down command to get a reddit submission page instead. Here's what's new:

  • Recent uploads menu.
  • All uploads window.
  • No more curl, much more "doing it right".
  • Sparkle support for future updates.
  • Animation while images are uploading.

Thanks to Michael Dippery for his contributions.

All Uploads Window

Imgup is released under the ISC License.

Download Imgup


Sigh

ie is sort of like being stabbed, but worse

WobKat is pretty ok


SDL_net framework

I wanted to use SDL_net, so I downloaded the Mac OS X binary provided, which is a Framework. Unfortunately, there were two issues:

  • Headers weren't included properly, and the #include statements assumed that all headers were in the same directory (say /usr/local/include). This doesn't work for frameworks, of course, so I've changed them all to #include <SDL/something.h>.
  • The build was very old and had PPC, but no x64. I've bumped the base SDK to 10.5 (I don't have the 10.4 one installed) and removed the PPC builds in favor of a 32/64 bit Intel build.

SDL_net.framework.zip

Modified Source