Extending Wi-Fi networks (with AirPort Express)

I recently bought an Apple AirPort Express Base Station so that I can hear music without powering up my computer. And since the AirPort Express is a full-fledged Wi-Fi access point, I thought it’d be nice to use it to extend the range of my existing Wi-Fi network.

With Apple’s AirPort Utility, configuring an AirPort Express Base Station is quite easy. There are, however, some pitfalls when trying to extend an existing Wi-Fi network. So I’m going to shed some light on this topic in this blog post. I’ll be using my AirPort Express Base Station to illustrate these pitfalls but the information should apply to any other Wi-Fi access point as well.

Read more →

File Path in Spotlight on OS X

When you click a search result in Spotlight, the item will open with its default program.

But what if you want to know the file’s path instead of opening it? Here’s how:

  • Hold down ⌘ + ⌥ to reveal the file’s path below the preview box appearing to the left of the search result list.
  • ⌘ + click, or ⌘ + ⏎, to reveal the file in the Finder.

How To Fix Multiple Items In The ‘Open With’ Menu in OS X

Did you ever get that annoying problem that in your “Open With” menu the same app shows multiple times?

Multiple items for the same app showing in OS X's "Open With" menu.

Fortunately, this is easy to fix. Just open up Terminal and paste in the following lines (all at once) to fix the problem!

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user && pkill Finder

Cause of the problem: When you delete an application, its entry in the “Open With” menu is not deleted. This also applies to app updates, where the old version of the app is deleted and replaced by a new one (which gets its own menu entry). The problem probably only occurs for non-Mac App Store apps.

Sort posts by modification date in WordPress

By default, WordPress sorts blog posts by creation date. However, if you update your blog posts from time to time, you may want to sort them by modification date rather than creation date.

To achieve this, use this snippet:

function order_posts_by_mod_date($orderby) {
  if  (is_home() || is_archive() || is_feed()) {
    $orderby = "post_modified_gmt DESC";
  }

  return $orderby;
}

add_filter('posts_orderby', 'order_posts_by_mod_date', 999);

In your theme, just dump this snippet into functions.php. (You may need to create this file in your theme’s directory.)

Special search characters in Firefox

In Firefox, I use the InstantFox add-on to combine address bar and search bar into one item – like in Google Chrome.

But even without this add-on, Firefox allows you to restrict your search by adding a character in front of the search terms, like so:

firefox-search.jpg

Notice the * in front of the search term bugs. This restricts the search to bookmarks.

Here’s a list of the most important restrictions:

Character Restriction
* Bookmarks
^ History
% Open Tabs
+ Tags (in bookmarks)
# Search in titles only
@ Search in URLs only

All these shortcuts can be edited in about:config under browser.urlbar.