Archives
Admin / Logout

Adam Merrifield

a picture of me
I am a web designer, theme designer, professional photographer and internet personality. I make many pretty things and I write a lot of content for the internet.

I am one of those guys that, because of the industry I am in, need to be connected at all times. At any given moment you'll find me posting on a forum, updating with twitter, Digging things worthy of attention, uploading pictures, or tagging cool sites.

here i am

seyDoggy Systems:
This is home base, the corporate headquarters, the hub, if you will, seyDoggy.com.

seyDesign news:
these are the RapidWeaver related posts that originally appear in the seyDesign.com blog

Uploads from seyDoggy:
these are the pictures that I upload to flickr

Merrifield Photography:
as a professional photographer I my camera ready at Merrifield-Photography.com.

delicious.com/seydoggy:
these are the websites I want to share or revisit later on. I just tag them on delicious.com.

what i am

I am the owner and operator of seyDoggy Systems, a small theme, code and design outfit based in Kitchener, Ontario, Canada. We primarily develop web based technologies but have begun to dabble in the desktop realm.

what i do

I code like a fool. I design like a fool. I am happiest when I can split my time between the two (though I tire of Photoshop faster then I do TextMate or Terminal), and somehow I have managed to etch out a living doing so.

Twitter Updates for 2009-09-30

Powered by Twitter Tools

No comments | Trackback

Scripting LittleSnapper

Scripting LittleSnapperI hate clutter in my Dock… I also hate being slowed down looking for things. You can imagine these two positions are at odds with each other quite often. I don’t use the Dock in Mac OS X as a place to launch apps so much as I use it as a visual reminder of the things I can do, but don’t on a regular basis.

Like LittleSnapper for instance. I use it maybe once a day, and for pretty much the same thing — I open it up, I snap the current web page and then proceed to tag it, rate it and upload it to my ember Pro account — but I don’t keep it open. I quit LittleSnapper when I am done and cary on with the rest of my day. This kind of usage doesn’t warrant a coveted position in my Dock, but if I have to search for the app (Spotlight, Google QSB, QuickSilver) or dig for it in Finder, the inspiration to snap that web page may well pass.

So what does a magna nerdulosa like myself do to address this situation? I automate! AppleScript to the rescue!

The first thing I want to do is launch LittleSnapper and I do that by tossing a little bash in AppleScript using the following:

tell application "LittleSnapper" to activate

And now LittleSnapper is ready to have it’s buttons pushed*:

tell application "System Events"
    tell process "LittleSnapper"
        click menu item 1 of menu "Capture" of menu bar 1
    end tell
end tell

It’s as simple as that! The full script will:

  • Luanch LittleSnapper
  • tell LittleSnapper to go into the “Capture” menu
  • click “Snap Web Address from Safari”

You can then cary on with tagging, annotating or whatever else tickles your LittleSnapper fancy.

Now what?

For me the next step is to save the script in ~/Library/Scripts/ add a hot-key combo to it using Red Sweater Software’s FastScripts.app. You could also use this in LaunchBar, QuickSilver, Butler, or any other means you may use to run AppleScripts.

Full Script

-- This script launches LittleSnapper
-- <http://realmacsoftware.com/littlesnapper/>
-- and tells it to snap the current web page

-- By Adam Merrifield <http://www.seydoggy.com>
-- r4 10-08-09 08:12 (removed delays)

tell application "LittleSnapper" to activate
tell application "System Events"
    tell process "LittleSnapper"
        click menu item 1 of menu "Capture" of menu bar 1
    end tell
end tell

Download

Get it fresh from CodeCollector.net

Notes

* this exact sequence of commands could change if Realmac Software ever changed LittleSnapper’s menu layout, but I prefer this shorthand over the verbose menu item selections.

References

EDITS

r4 10-08-09 08:12

I’ve removed the delays I once needed before each section. The modifier keys I was using (specifically ⌥) in my hot-key sequence were being passed to LittleSnapper and causing LittleSnapper to prompt me to choose a new image library. Taking ⌥ out of the sequence negated the need for the delays.

r2 09-30-09 11:42

While there is technically nothing wrong with the original script, the bash line — do shell script "open -a LittleSnapper" — throws an error in console and some part of that line looks as though it will not be supported for much longer. So I have changed this line to the slightly more verbose tell application "LittleSnapper" to activate

I have also split the 1 second delay into two 0.5 second sections, one at the front end and one before system events. It seems FastScripts.app really is fast and is getting ahead of itself when executing the script with hot-keys. That causes issues for me but may not affect you, depending on what you use to run your scripts.

Comments (1) | Trackback

Twitter Updates for 2009-09-29

Powered by Twitter Tools

No comments | Trackback

iMac G3 Web Server – Part 1

Creating an iServer from an iMac G3Recently an old iMac G3 of mine made it back home after a lengthy stint at the in-laws (introducing them to computers a few years back). My initial thoughts were to take her to the great recycling depot in the sky, but then I got to thinking. “What could a web designer/developer use a seriously underpowered G3 chip be useful for?”

And you all chant in unison… a web server!

So this is just a document of the stuff I went through to get from point a to point b. It’s not so much instructional, but if you wish to follow along, by all means, have at it.

Serve with Mac OS X… maybe not.

So I got to fiddling around with this old bubble of a machine and thought initially that I would just try to use the services provided in the Mac OS (the iMac was running 10.4 at the time). This proved to be so painfully slow that I decided to dig up an old copy of OS X 10.2 (it was called Jaguar back then, in case you forgot) and install it. While this was a tad faster, those services that were installed were sorely out of date.

Since it was clear that I was going to have to get into the command line to install MySQL and update and configure the PHP that was there, and since the the whole desktop environment was going to be redundant by the time this thing goes into service… why use the Mac OS at all?

When in Freeville, do as Linus does

That’s when I decided that Ubuntu Server was the way to go. There are a ton of worthy Linux distro’s out there but I decided to go with Ubuntu because their PowerPC ports are pretty much up to date with with the core development. I could have used Debian but trying to track down the latest stable PowerPC build was like trying to finding a hot date at a Star Trek convention.

I just so happened to have an Ubuntu Server 8.1 iso laying around, so just as a proof of concept, before tying up anymore of Ubuntu’s precious bandwidth, I tried the install out to be sure that all would work on the old PPC box. And it did.

Fast forward to the Jaunty Jackalope

So I got my hands on the latest stable build of Ubuntu Server for PowerPC, Ubuntu 9.04 (which can be downloaded here) and got to work.

The install was pretty straight forward, I just followed the steps as each prompt appeared. All in all it took about an hour on the old beast. One helpful hint: it seems the install will fail repeatedly if you don’t have the machine connected to the internet. I just ended up plugging in to the spare ethernet port of my Mac Pro, but I am assuming any connection would do.

I have a package for you

I wasn’t really sure what packages I was going to need in the end, so I installed most, if not all of them. But at the very least I knew I was going to need a LAMP stack *, ssh and possibly DNS (though unlikely that I would bother to set it up). If you plan to make your own server you might as well take the time to research the options since installing and configuring them at install will save you the hassle later.

Bong!

Once the install was done I was prompted to reboot. So I did. If your a total nerd like me you’ll get excited to hear that familiar Mac “Bong!” yet moments later get nothing but a black screen, white text and a login prompt… I can almost hear echos of Joshua (WOPR) in his computerized voice asking me, “Would you like to play a game?”

With everything done right in the install I was prompted with**:

`ubuntu login: `

I entered my username, in my case “adam”, and hit return:

`ubuntu login: adam`

Entered my password, •••••••••••, and hit return:

`password: `

Up pops a bunch of info like last login, software details, load and memory usage etc… and the all important command prompt:

`adam@ubuntu:~$ `

The root of the solution

Here is where I am about to do a no-no… if I ever planned to run this machine in the DMZ (beyond the safety of my internal network and out side my router) I would NEVER do this. However, I want to have pure, unadulterated, God-like power over this machine and I do not want to sudo (“superuser do”) it every step of the way.

Those of you familiar with Ubuntu know that they disable root login by default. But this cripples what various apps can do in various directories over ssh — namely ExpanDrive, MacFusion, various FTP clients and from what I can tell some TextMate bundles (though I probably have them configured wrong) — and I don’t want to always have my head stuck in the terminal.

So, to enable root login I had to set a root password (since the install never prompted me for a root password). This is done with:

`adam@ubuntu:~$ sudo passwd root`

I then entered my own password for adam@ubuntu, •••••••••••:

`[sudo] password for adam: `

And the the new root password twice:

`Enter new UNIX password: `
`Retype new UNIX password: `

And success:

`passwd: password updated successfully`

Now I am able to switch to root:

`adam@ubuntu:~$ sudo su root`

And after entering the password I just created I am now presented with:

`root@ubuntu:~# `

Now with that out of the way I can proceed with causing some real damage…

More to come

In following posts I will talk about my ssh setup, configuring apache and working with my in my new server environment.

Notes:

  1. * LAMP stands for Linux-Apache-MySQL-PHP/Perl/Python and is a generic acronym for a stack of applications that provide the kind of web services need to run web applications and dynamic web content.
  2. ** I set my server name up to the default “ubuntu”. Yours may read different.
Comments (1) | Trackback

MacFusion – Snow Leopard Fix

I’ve been playing around with ssh while I configure my Ubuntu Server (more details about that soon) and figured I would get my head out of the terminal for a bit. So I downloaded ExpanDrive again (used it a while back) only to discover that it’s since been upgraded… a paid upgrade… and my old serial no longer applies. I wasn’t enamoured with “mounting” remote servers as hfs volumes enough to pay for this app a second time so I decide to move on to the free alternative; MacFUSE + MacFusion.

The only hiccup I encountered was that MacFusion didn’t seem all that happy about launching an ssh connection under Mac OS X 10.6 Snow Leopard. I could connect with no issues in terminal but not in MacFusion. A quick visit to the MacFusion Google Group revealed this temporary solution, which is basically:

  1. quite MacFusion
  2. set up MacFUSE to get betas (under System Preferences)
  3. and remove this file in Terminal:
rm /Applications/Macfusion.app/Contents/PlugIns/sshfs.mfplugin/Contents/Resources/sshnodelay.so

To get the nitty-gritty, please read the full post at Racker Hacker.

No comments | Trackback

Twitter Updates for 2009-09-28

  • @jrodgers where is devhouse and who's involved? in reply to jrodgers #
  • @jrodgers called lazy tweets :P in reply to jrodgers #
  • crap, Blocks hung up on export… did I save prior to exporting? #
  • even using the xfce desktop, xubuntu is a bit much for the iMac G3 Slot Load. had to pop in another 512MB ram #
  • An interesting looking CMS that Rachel Andrew has been working onL Perch http://sh.orti.ca/i/1z #
  • My daughters… are running Linux http://sh.orti.ca/i/20 #
  • WidgetPad Announced WidgetPad for iPhone http://sh.orti.ca/i/21 #
  • ROFL RT @elixirgraphics: OK. This is pretty hilarious, and seriously may get stuck in your head for the day… http://thurly.net//5kt #
  • @jschumann I would soooo luv to put Puppy on there but there is no full PPC version yet (Power Pup in in the works) in reply to jschumann #
  • loading the girls computer up with educational linux games. #
  • if there is a God, twas He who created Caramel Pecan Crunch. #
  • R… T… F… M!!!!!!!! FUCK! RTFM! RTFM! RTFM! RTFM!!! #
  • BLOCK earned, tweet-bot @Linux_Games is stuck in am infinite loop with me-itself-itselfitself-itselfitselfitself-itselfitselfitselfitself #
  • LOL RT @timopp: I read The F$&king Manual and ended up with two kids. Bad advice: ) #
  • ok, spent long enough ssh tunneling and shell scripting and getting my head stuck in command line… time for sleep. #

Powered by Twitter Tools

No comments | Trackback

Twitter Updates for 2009-09-27

  • burning an iso of xubuntu for the kids computer #
  • ubuntu's GUI installer has come a long way in the last few years. #
  • @fowgre funny enough, I have the in-laws running linux and the kids running linux now. it fits the bill perfectly for what they do. in reply to fowgre #
  • I just bought another SitePoint book. http://sh.orti.ca/i/1y #
  • @bbyrdhouse short of php scripts that would be the simplest way to target iPhone. in reply to bbyrdhouse #
  • @lisa365 I can't go into Canada computers without making a virtual Christmas list big enough to take out a second mortgage. in reply to lisa365 #
  • I suffer the same condition RT @dwhelan: The good news is that your hearing is fine. The bad news is you have to explain that to your wife. #
  • that looks cool RT @loghound: just ordered my fitbit http://fitbit.com #

Powered by Twitter Tools

No comments | Trackback

Twitter Updates for 2009-09-26

Powered by Twitter Tools

No comments | Trackback

Twitter Updates for 2009-09-25

Powered by Twitter Tools

No comments | Trackback

Twitter Updates for 2009-09-24

Powered by Twitter Tools

No comments | Trackback
Powered by RapidWeaver, WP-Blog and WordPress 2.9.2