Category Archives: Mac

Mac tip of the week: More keyboard shortcuts

I have two keyboard shortcuts that I just found. Keyboard shortcuts are of course always shown in the menus of applications but I thought I’d mention these two.

Here’s the first one. If you have a folder as a stack item on your dock, command clicking it will immediately open the folder instead of doing the usual stack animations.

The second one is, if you select a file anywhere on the desktop or in a finder window and press command+shift+T you’ll add that item to the dock as a direct link to that file or as a stack if it is a folder. Command+T itself will the selected file as a sidebar item in Finder.

Railo Express using Jetty and Virtual Hosts

For some reason I decided to give Railo a try tonight. Railo is dubbed as “the fastest CFML OSS engine” available. The little bit that I’ve messed with it so far, I really can’t confirm that. What I can say however is that setting it up is fairly easy, particularly if you choose to download the express package.

One thing that hung me up though, and seems to hang up some others, is the configuration of virtual hosts when using Jetty. The OS X package is only available with Jetty and the documentation does a fine job of explaining how to setup virtual hosts. The only problem is they fail to mention that you actually need to uncomment some of the included config file to make virtual hosts work properly. Some people might see that right away, I glossed over it.

Documentation for setting up virtual hosts is provided by the Railo team at http://www.getrailo.org/index.cfm/documentation/installation/railo-express/. Note that in the virtual host definition section the documentation shows the option virtual host information already commented out, in the files distributed in Railo Express, they are not uncommented.

You can learn more about doing virtual hosts using Jetty at http://docs.codehaus.org/display/JETTY/Virtual+hosts.

Specifying the Finder icon with Avahi

One of the things that makes the Mac great is how easily it can find network resources. Apple calls this technology Bonjour but in reality it’s a combination of a number of different protocols talked about at http://www.zeroconf.org/. Avahi is in basic terms an open source implementation of Bonjour and with it you can advertise services that a Linux server provides on your local network. I use Avahi to advertise the netatalk/afp service running on my home Linux system. By doing so, my Linux system shows up immediately in the Finder Window of all of my Macs in the house.

The only “problem” I had was that my Linux system would show up with an icon that looked like an Apple display. I wanted to appear in my Finder window as a little bit closer to reality. By default OS X is aware of all of Apple’s products and can display the appropriate icon for any product it finds. In my setup I’m happy with my Linux system appearing as an older style of PowerMac. With a bit of effort you can cause OS X to show any custom made icon you want.

This blog post explains the process and this comment describes the various device types you can specify.

Mac tip of the week: Changing your laptop’s sleep type

Since about 2005, Apple laptops have had a feature that allows the laptop to sleep and wake quickly, but also be able to deal with the situation where the battery runs out of power or is removed. Basically the laptop writes out a hibernation file before going to sleep but then doesn’t actually enter hibernation. If the laptop is able to it will simply wake quickly from ram and mark the hibernation file as old. If the battery runs out of power or is remove, then the laptop will boot from the hibernation file instead. This is a fantastic feature because it nearly guarantees you won’t lose work if you’ve put your laptop to sleep.

There are times however that you might not want to use this feature. For example, I was out of town this weekend and my Macbook was spending a lot of time in sleep. Even though sleep uses very little power, it still uses more than it would if the power was completely off. In this situation I prefer that the laptop simply hibernate when I close the lid.

You can tell an Apple portable what kind of sleep mode to use using the command line tool called pmset or, better yet, you can use the very simple preference pane called SmartSleep. SmartSleep is a simple frontend to the pmset command allowing you to choose between a number of different sleep options. Best of all the utility is free and is available at http://www.jinx.de/SmartSleep.html

Mac tip of the week: Add a keyboard shortcut to virtually any menu item

It’s possible to create a keyboard shortcut to nearly any menu item for any application. For example, lets say you’d like to create a keyboard shortcut to show extensions in Google Chrome.

To do so start System Preferences from the Apple menu in the upper left. Next, click the keyboard option and then click the Keyboard Shortcuts button.

Click the plus to add a new keyboard shortcut. Search for the application, enter in the name of the menu item, the keyboard shortcut you want to assign and click Add.

The shortcut will now have been added. You may need to close and reopen the application before it appears.

Mac tip of the week: Change dock location

You can change the location of the dock by clicking the Apple icon in the upper left and choosing what orientation you want for the dock from the Dock fly out menu.

iPhone will be a niche product in five years, or how to write a sensational headline

According to Kaspersky, the iPhone will be niche player in the smartphone market by 2015.

http://www.macworld.com/article/150904/2010/04/iphone_prediction.html

I don’t think even the biggest Apple haters of the world could agree with this guy.

Mac tip of the week: Disable volume change feedback

Don’t like the audio feedback you get when adjusting the audio with the keyboard? You can hold down the shift key while adjusting the volume or disable it all together in the sound preferences.

Apple throws Adobe a bone — on the Mac

Apple throws Adobe a bone — on the Mac: “

Filed under:

Adobe’s Flash Player has never performed as well in Mac OS X as it does on Windows-running PCs. The traditionally poor performance of Adobe’s plugin on the Mac has led many iPhone and iPad users to support Apple’s decision to keep Flash off of its mobile devices. While the upcoming Flash 10.1 does boast some significant performance improvements over its predecessors, the performance is still pretty terrible compared to h.264, which has access to hardware-accelerated video decoding via the GPUs in Macs.

Adobe’s stance has long been to blame Apple for the poor performance of Flash on the Mac, citing Apple’s unwillingness to allow third-party developers access to APIs necessary for hardware-accelerated video. Adobe no longer has that excuse to fall back upon: Apple posted a technical note back in late March that removes this restriction and allows third-party developers access to hardware-acceleration APIs for h.264 decoding in compatible GPUs. The technical note describes ‘a C programming interface providing low-level access to the H.264 decoding capabilities of compatible GPUs’ — meaning only the latest Mac GPUs, the NVIDIA GeForce 9400M, GeForce 320M and GeForce GT 330M. ‘It is intended for use by advanced developers who specifically need hardware accelerated decode of video frames,’ the note continues.

So there you have it, Adobe. The one thing that’s supposedly been holding you back from getting decent Flash performance on the Mac is now gone. Now that Apple has removed this ‘stumbling block’ and you’re unfettered by Apple’s restrictions, the onus is on you to prove that you can deliver a well-crafted Flash plugin for the Mac — preferably one that doesn’t crash constantly or send my fans into a cyclone any time I try to watch full-screen Flash videos.

It will be interesting to see how Adobe responds to this. If Adobe takes advantage of the hardware-acceleration APIs, how much improvement Flash’s performance sees as a result will settle the debate once and for all over who’s been at fault for Flash’s subpar performance on the Mac. Even if Flash sees substantial performance on the Mac as a result of this move, though, there’s probably no chance that Apple will relent on its stance regarding Flash on iPhone OS.

[Via MacRumors]

TUAWApple throws Adobe a bone — on the Mac originally appeared on The Unofficial Apple Weblog (TUAW) on Thu, 22 Apr 2010 19:00:00 EST. Please see our terms for use of feeds.

Read | Permalink | Email this | Comments

(Via The Unofficial Apple Weblog (TUAW).)

Mac tip of the week: change your default browser

Like Google Chrome or Mozilla Firefox over Safari? Make sure links that you click in other apps such as Mail open up in your browser of choice by visiting Safari’s Preferences and choosing your Default web browser on the General page as shown below