Skip navigation

Author Archives:

I’m thinking about adding a new category to this blog, ‘working remotely’ or something like that.

So far this blog has become a sort of a place for me to share reviews or experiences with hardware / software. New mouse, new apple script or something along those lines. But That has become pretty in-frequent, and does not encapsulate the whole idea I had when originally getting this blog going.

I work out of my house, but I try to at least once a week work somewhere remotely to mix it up. I find it’s important to shift it up for a variety of reason.

  • Stay in touch with peeps
  • Get out of the house / fresh air
  • Break out of a daily routine

I think every time now I work out of somewhere other than my house I’ll post about it.

After running through some issues / problems with the base configuration / features of the D-Link DNS-321, I ended up working to install the fun_plug hack to gain access to the linux core of the device.

I won’t walk through the whole process… they do that at the fun_plug wiki page.

I used that page to start and dig in. All references I link to can be found there. But to sum up what I did…

  1. Install fun_plug
  2. Turn on SSH and turn off Telnet
  3. Download a bunch of packages and get used to funpkg
  4. Turn on AFP

Some tips…

fun_plug: I had issues with getting the files to run on reboot. MAKE SURE your browser / system is not tampering with the files after you download them. e.g. fun_plug file should not be renamed to fun_plug.sh… fun_plug.tgz should not be unzipped and named fun_plug.tar… that stops the process from installing during the reboot.

AFP Give yourself some time. Took me a few hours to fully sit down and configure AFP.. that was the big time sink since it’s so hands-on. (Given I’m not used to configuring this type of stuff.)

I did have trouble getting my Snow Leopard driven MacBook to be able to write to the drive over AFP. A CNID error that made me mount the AFP share read only. Look for the comment about starting /ffp/sbin/cnid_metad at the AFP install page.

I finally got a true NAS (Network Access Storage) device. A consumer level DNS-321 device. A nice sale at Tiger direct brought this in at under $100.

A while ago I bought a Wireless-N router (Linksys E3000) with USB support to host a hard drive, but it wasn’t quite what I wanted in the end. I didn’t want to put too much burden on the router so I held off.

My goals for the NAS…

  • a personal FTP server I can access from anywhere
  • host my media files on the network so internally I can stream to my DNLA TV / PS3
  • stream those same files also via an iTunes server

Since the DNS-321 is supposed to support that all out of the box, I figured it would be easy… NOT THE CASE.

1st Issue…

The setup instructions were written for Windows users, and I use a Mac. There was even a Windows setup disk utility I could have used.

Not a bit issue though, the web admin interface was fine with me.

2nd Issue…

SMB / Mac / resource forks. The quickest way to access your NAS files is to use the Network Share… eg over Samba share (SMB.)

I hate that Mac still does not play nice with SMB network shares, it leaves those phantom ._filename.ext files that are counter parts to the original file (e.g. filename.ext would have ._filename.ext extras.) Not every file gets this, just files that Mac appends extra info to (e.g. spotlight data I believe.)

Also, you can’t tell they are there when viewing the drive in Mac. HOWEVER, you do see them when other systems look at the files. For example, I setup UPnP share for music files (e.g. DNLA) and when I browsed music in my DNLA device, I saw all the ._ files ahead of the real files (since it’s all alphabetical.)

I ended up being able to solve that by using FTP to upload the files instead. Of course, I tried using NFS first instead of SMB (not sure if that would have even resolved the resource fork issue.), but I could not get my Mac to connect to the NFS for whatever reason, even after a couple days of reading up google-found forum docs. Other people could, I could not. Still not sure if it was an issue with the NFS server in the DNS-321 or not, but one thing was for sure… D-Link was not a help at all.

3rd Issue (the tipping point)…

Final straw before I started trying to hack the thing with the fonz fun_plug (aka ffp… touching on this later)… iTunes server did not serve my video files to iTunes clients.

Everything I read said it should, and after seeing an example of a configuration file here http://krook.net/archives/169 I decided it may be just a small tweak of the server configuration to resolve the issue.

… Long story short … I didn’t plan on hacking the DNS-321 at all, but I found it necessary. I want to tweak the iTunes server config and also setup AFP file access (to replace the SMB access and reduce the requirement for FTP.)

I’ll link to the article walking through the process next, but for now, I figured I’d share the problems I ran into first.

Google Chrome nailed it in my opinion with the address bar. It’s a typical address bar, but if you type something there that is not an URL, it guesses that you want to search it. Perfect! I find myself frustrated with Firefox, Safari and other browsers when I get errors after typing my search in the address bar.

In Firefox at least, it’s easy to get the search bar to work that way. I found this page offers a great walk through. It’s a quick 1 or 2 min tweak, and it uses Google as the fall back search.

After yo apply the tweak, you can totally remove the search bar from the Firefox interface in the top right.

When I develop sites I start on my local machine, and edit my /etc/hosts file to point to my local system. E.g. website.dev is the dev domain I might use to work on website.com locally. (This would be opposed to pointing all sites to localhost/folder/someotherfolder/website_dev or something. I just find it eaiser.)

It works great, but for WordPress sites the SiteURL and Home settings are in the database, so they need to be updated EVERY time you change domains (e.g. when I push code and database changes I was writing under website.dev to stage.website.com or something.)

A quick few lines you could add to your theme (or probably in a plugin too) to update the siteurl and home settings would be as follows.


// at top of functions php
update_option('siteurl', 'http://' . $_SERVER['HTTP_HOST']);
update_option('home', 'http://' . $_SERVER['HTTP_HOST']);

Placing that at the very top of your themes functions.php file would allow you deploy your site under a couple domains without going through the process of logging in or anything.

My goals

Update my router, and get a network attached hard drive setup allowing me to backup my MacBook Pro over the network via Time Machine (possibly over the internet, but that might be a long-shot?) I’ll write about the backup process later, but here’s some references to get a network setup supporting full G speeds and also support B/G (all running DD-WRT.)

How I decided on the Linksys e3000

I finally upgraded to a wireless n network. After looking at a few high performance dual band routers (Negear WNDR3700, Linksys e3000, and the Apple Airport Extreme Base Station) I decided on the Linksys e3000.

The Airport Extreme wasn’t as customizable as I wanted. And the main deciding factor between the Netgear and the Linsys was just brand loyalty really. All were close in price.

After I bought the Linsys I almost took it back for an Airport. I wanted to Time Machine from my MacBook Pro over the WiFi via an USB attached hard drive. But the Linksys e3000 didn’t offer the support for that type of hard drive sharing.

I instead decided to install DD-WRT onto the router, after all I’ve done that before with my trusty Linksys WRT54G and it was great. The only holdup… DD-WRT didn’t officially support the router yet (as of July 25 2010.) It was however supported in the forums, and I decided to try installing that.

Step 1: Setup the Linksys e3000 with DD-WRT firmware

Here’s the link to the thread on the DD-WRT forum I read through after some Googling. Note: page 14 has the version of the firmware I installed in the end.)

I wanted DD-WRT because I was used to it and didn’t want to be limited in any way with the Linksys factory firmware. As I mentioned, a USB hard drive attached to the router was not very useful for my needs using that factory firmware.

  1. First I installed a standard build (dd-wrt.v24-14567_NEWD-2_K2.6_std_usb_ftp-e3000.bin)
  2. Then I installed the “big” build with all the extra features, it fixed some bugs and why not? I ended up with this build at the time (http://www.dd-wrt.com/dd-wrtv2/downloads/others/eko/V24-K26/svn14826/dd-wrt.v24-14826_NEWD-2_K2.6_big-e3000.bin)

I configured the router with WPA2 WiFi security and the basic settings I would want in a day-to-day router setup.

Step 2: Setup my old WRT54G as the G and N WiFi hotspot

I had older B and G devices in the house, and I wanted to separate the traffic from those off the wireless of the newer e3000 router. I guess it helps with speed (keeping the N speed up to true N speeds) and I felt it may also help avoid a bit of wear and tear on the newer router, I don’t know but I did.

I already had DD-WRT installed on it, here’s the walk-through I used to setup the old router to use the internet through the new router through ethernet and keep the DNS settings the same as if there was one router.

A while back I wrote this post describing my efforts in looking for a way to rate iTunes shortcuts anytime with a quick shortcut on Mac. After upgrading to Snow Leopard, I found the steps to enable this site wide was a bit different, thus this post was created.

First, use Automator to create the Services needed. Services will be available no matter what app is in the foreground.

  1. Open Automator
  2. Create a new “Service”
  3. Under “Utilities” under the Library, add “Run AppleScript” as the first and only step in the Automation
  4. Paste the following code in place of “(* Your script goes here *)”

    tell application "iTunes"
    set the rating of current track to 20
    end tell
  5. Save under the name “Rate as 1 star”
  6. Change “20″ to “40″ then Save As “Rate as 2 stars”
  7. Change “40″ to “60″ then Save As “Rate as 3 stars”
  8. Change “60″ to “80″ then Save As “Rate as 4 stars”
  9. Change “80″ to “100″ then Save As “Rate as 5 stars”
  10. That finishes up the Automator work. Just be sure you used “Save As” and not “Save”, you don’t want to overwrite your services, but create 5 different services.

    Now, go to System Preferences, Keyboard, Keyboard Shortcuts. Select “Services” on the left window, and in the right window you should see (at the bottom) the 5 services you created.

    You can click in the white space to the right of the services (not intuitive really, but there is a little spot on the right you can double click to edit the short cuts for all the items in that list.)

    Once you add a shortcut there you should be able to use the short cut from anywhere!

    Be warned, I found it very tricky to find a short cut that worked for me in all apps, since some apps or services (mainly iTunes) had shortcuts similar to them. (Snapshot utility for example is Cmd-shift-4, which may be a shortcut you wanted to use.)

    I found that the Cmd-Option-Shift worked for me best.

    UPDATE: Add Growl Notifications to show that the song was indeed rated!

    This is a screen shot from Automator showing the Service for Rate as 1 Star

    Well, this is an easy and quick addition to the Automator services. I constently found myself switching to iTunes to see if the song was rated… kind of defeted the purpose of adding the shortcuts!

    I realized (in somewhat of a “duh” moment) that I could just use Growl to add a little note for each of the ratings. I already had Growl installed (it’s a standard install for any Mac of mine.) And best of all Growl is very Automator friendly, so it just took a few seconds to add a pop-up Growl notification for each Rate as ? Service!

Ok, this is probably something that has been known for some time now… but since when did Windows offer the ability to scroll sidewas by holding Ctrl + Alt while using the mouse scroll wheel?

I wish I knew that a while ago. Apple has been doing that for a while, and I was glad to find that you could do so while holding Shift while scrolling rather than relying on the stupid fragile Mighty Mouse side scroll.

I’m using Vista, but i wonder if It’s possible in XP or other older versions…

I asked myself the question today, is there a way to rate a song in iTunes with a keyboard shortcut? Yes, there is.

I found a walk-through on how to do this at www.macgeekery.com
describing how, but it’s a walk through that’s better suited for those looking to learn how to write more scripts.

If you just want to get it working, here’s how…

  1. Open the System Preferences, open Keyboard & Mouse, click on the Keyboard Shortcuts
  2. Create 5 new short cuts, name them Rate as 1, Rate as 2, … Rate as 5. (Remember how they are named exactly) Make each of the 5 short cuts react to the short cut you want to, e.g. I set Rate as 1 to apple-alt-1, rate as 2 to apple-alt-2 and so on
  3. Create the folders if they don’t exist, but you’ll be saving 5 files in /Library/iTunes/Scripts (or ~/Library/iTunes/Scripts in you only want the short cuts in one users iTunes)
  4. Open the application Script Editor (Applications/AppleScript/Script Editor) and enter the following into the script window…

    tell application "iTunes"
    set the rating of current track to 20
    end tell

    (thanks for the error fix Andy)

  5. Save As “Rate as 1″ exactly as the short cut that was created is named, in the folder you created in the last step. (File format should be script)
  6. Do this four more times, but before you save change the 20 from above to match the following (20 = 1 star)(40 = 2 star)(60 = 3 star)(80 = 4 star)(100 = 5 star)
  7. Almost set, now you just need to restart something called SystemUIServer. Open the Activity Monitor (Applications/Utilities/Activity Monitor), then find the Process Name (SystemUIServer) and Quit Process. Like the Finder, if you Force Quit it will just re-start almost instantly. (Alternatively, you could reboot the computer)

You should be all set now, in iTunes you can rate the selected song with the keyboard short cuts. If you don’t like apple-option-number you can use whatever you want, just tweak the keyboard short cuts menu.

Update 1: Here’s a couple links that may help. One is X-Tunes, an app that might replace what your looking at this script for.

http://www.pol-online.net/x-tunes
http://proxi.griffintechnology.com/blog/2007/09/06/trigger-chains-with-applescript/

After upgrading to Snow Leopard, there is a different process to this. Not much but enough to warrant a different post. It does result in editing the stars for the current track in from in any app. Follow this walk through for Snow Leopard

It’s becoming easier and easier to take advantage of a mobile device’s ability to pinpoint your current location. Here’s a list of starting points where you’ll find Firefox add-ons, Blackberry’s, iPhone apps or other items of location based interests.

  • fire eagle: if you have access to it (its in beta stages while i write this) fireeagle will help you manage your location based data from one place. You tell it where you are, and other sites or networks will know where you are.
  • google mobile maps: get google maps on to a handful of mobile devices, get functionality similar to the iPhone’s copy of google maps.
  • loki: tools like a firefox add-on to allow websites access to your current location using javascript. (fireeagle for example can update your location if you have this firefox addon without you manually typing it.)
  • bright kite: a social network that uses your location to narrow down who you communicate with. a great example of how to use a visitors location in a site. also offers a mobile and iphone version of the site for on-the-go use.