Jun 27

I just got this nice tip in my email and posted it on my personal blog aswell as to macblogger.
As people adjust to Safari 3, I wanted to share a little addition that’s helped me work more quickly: a cursor change depending upon a link’s target. If the link will open as is in a new tab, the cursor doesn’t change. If it will open in a new window, however, the cursor will change to a crosshair.

Open ~/Library » Application Support » Safari » userContent.css and add the following, then save:

/* Change cursor for links that open in new window */

:link[target="_blank"],

:visited[target="_blank"],

:link[target="_new"],

:visited[target="_new"] {cursor: crosshair; }

This works for Safari 2 as well — just create a file named mystyle.css (or whatever you like, ending in .css) somewhere on your hard drive, then visit the Advanced tab in Safari’s Preferences, click the Style Sheet pop-up menu, and point it to the .css file you just created. It should also work for any other browser that supports the cursor property and custom style sheets.

Jun 20

If you are a recent migrant from Windows to Mac you have probably spent some time staring at your keyboard in search of the ‘Print Screen’ button, I know I did. :)

Screenshot Plus is a free dashboard widget which allows you to effortlessly take screenshots of:

  • your entire desktop
  • a highlighted window/finder
  • it allows you to cut out a selection of the screen aswell

Screenshot Plus Interfact

Screenshot plus can export in png, tiff, jpg, jp2, pdf, gif, bmp, or pict file types.Mac OS X does come with built in screenshot capabilities but the system isn’t as intuitive as you would expect. It’s quite ridiculous actually. You have the following keyboard button powered methods available to you when taking a screenshot in Mac OS X:

  • Command-Shift-3: Take a screenshot of the screen, and save it as a file on the desktop
  • Command-Shift-4, then select an area: Take a screenshot of an area and save it as a file on the desktop
  • Command-Shift-4, then space, then click a window: Take a screenshot of a window and save it as a file on the desktop
  • Command-Control-Shift-3: Take a screenshot of the screen, and save it to the clipboard
  • Command-Control-Shift-4, then select an area: Take a screenshot of an area and save it to the clipboard
  • Command-Control-Shift-4, then space, then click a window: Take a screenshot of a window and save it to the clipboard

I copied the above commands from the excellent Mac Rumors website. I’m sure you’ll agree that installing the screenshot plus widget is far easier than running the above commands.

Jun 19

After a couple of weeks of getting to know Mac OS X I finally decided to install the ruby on rails development environment. I found some of the guides out there a bit flakey so I have compiled this guide for dummies. I wont go as far as to install MySQL on this occasion but may do so if anyone would like to see that in the future. Another topic that I might cover will be the installation of Apache and Mongrel as a replacement for the default webrick server which ships as a development application server with the rails framework. For now your getting how to install ruby on rails!

The first step is to take a visit to the Apple developer’s website where with a small search you will find a download for ‘XCode‘ This is a pretty hefty download (around 200 MB) so if you’re on a dialup connection, forget it.

The next step in this fairly painless process is to setup your system paths. This is is also pretty straight forward. Open up a terminal window and type in the following commands.

touch .bash_profile
sudo open .bash_profile - at this point you might be asked to enter in your admin password.

You will now be presented with your profiles file. This is where you can setup your sytem’s paths. Add the following line into this file.

export PATH=”/usr/local/bin:/usr/local/mysql/bin:/usr/local/sbin:$PATH”

Easy stuff so far eh? Save this file and then close it down. The next step is to download a few packages which are going to allow us to turn your Mac into a Ruby on rails environment.

Download Readline , Ruby and finally ruby gems. Save them all to your desktop and extract them there.

We will now copy these files into a more appropriate directory. Follow these commands to do so:

sudo mkdir -p /usr/local/src
sudo chgrp admin /usr/local/src
sudo chmod -R 775 /usr/local/src

Now copy the files into the directory you have just created(your file names may be different depending on the versions you download):

mv ~/Desktop/readline-5.2 /usr/local/src/readline-5.2
mv ~/Desktop/ruby-1.8.6 /usr/local/src/ruby-1.8.6
mv ~/Desktop/rubygems-0.9.2 /usr/local/src/rubygems-0.9.2

The next phase of our mission is to install Readline. The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are typed in. Both Emacs and vi editing modes are available. The Readline library includes additional functions to maintain a list of previously-entered command lines, to recall and perhaps reedit those lines, and perform csh-like history expansion on previous commands.

Use the following commands to install it:

cd /usr/local/src/readline-5.2
./configure –prefix=/usr/local
make
sudo make install

Now we need to install ruby. I dont think I need to go into any detail on the ruby language. If you’re installing it, Im going to assume that you have some knowledge of it already. All I’ll say is that it is superb :)

Assuming you have been able to take care of the above commands then fire off the following commands in your terminal to install it:

cd /usr/local/src/ruby-1.8.6
./configure –prefix=/usr/local –enable-pthread –with-readline-dir=/usr/local
make
sudo make install
sudo make install-doc

The next stage is to install ruby gems:

cd /usr/local/src/rubygems-0.9.2
sudo /usr/local/bin/ruby setup.rb
sudo gem update –system

Almost there. The last step is to install the rails framework on top of what we have so easily done so far:

sudo gem install rails –include-dependencies

That’s it!!!! All thats left to do is check that we have install them properly and that they work.

type:

ruby -v

If you get a response with the version of ruby installed then you have installed ruby.

type:

rails -v

As above, if you get a response then you have come a long way in your quest of developing your first rails application.


Jun 17

You have bought this beautiful new MacBook, but you are not sure you dare put your confidential documents on it.

Maybe you are afraid the machine gets stolen, maybe you don’t want your colleagues to have access to your financial data and private correspondation or maybe it’s stuff your children need not see and talk about. Or you have some large documents which you wish to put on CD, but should remain confidential.

If you have such a need for secured data then Mac OSX is your friend. OSX has the built-in capability to create encrypted disk image (dmg) which are just files but can mount like a CD. They are familiar since most software comes in the form of a dmg, usually a non-encrypted image of course.

In this article I’ll show you how to create such an encrypted image. I have included some screenshots of my Dutch version of OS X, but I have tried to use the english terms in my description.

You start with opening Disk Utility in Programs->Utilities.

Disk Utility Icon

Disk Utility Window

Select the “New Disk Image” icon, as accentuated in blue on the screenshot. You will see a “Save As” dialog in which you can specify the name of the dmg file, the size, and the encryption to use. As the default is no encryption you should select AES-128. The size is entirely up to you, default sizes range from 2.5 MB to 8 GB, and there is an option for custom sizes.

Disk Utility Save As Dialog

Press OK and you will be prompted for the password with which to protect your disk image.

Enter Password

Press OK again and you’ll have to wait a bit until the image is finished. The image is then immediately visible in both Disk Utility and the Finder.

New dmg in disk utility and finder

If you don’t need to image to be accessible anymore, “eject” it in the finder. If you wish to mount it again, click on the dmg image and you will be prompted for the password.

As with most OS X technologies it’s easy to use if you know it’s there. There are just so many usefull features. So if you know some other gems for OS X, don’t hesitate to leave a comment.

Jun 13

 iTunesBebo!

Duncan Riley of Techcrunch is after writing about Apple’s intention to intergrate iTunes into Bebo.

From Wednesday, Bebo’s 8.8m users in the UK and Ireland will be able to buy music directly from the profile of any musician who has a Bebo profile and whose music is available on iTunes.

It will be the first time Apple has linked iTunes to a social networking site.

More information available from FT.com .

Nice move by Apple to tap into Bebo’s popularity which includes an archive of more than half a million bands.

Jun 13

Since i always forget when they’re needed… here’s some of the os x boot keys that do stuff

Command-S Boot into Single User Mode
Command-V Boot using “Verbose” mode (shows all kernel and startup console messages)
X Reset startup disk selection and boot into Mac OS X Server
Shift Boot into “Safe Boot” mode, which runs Disk First Aid. A reboot will be required afterward.
Option Boot into Open Firmware to select a boot device
Command-Option-Shift-Delete Bypass internal harddrive on boot
T Boot into Firewire target disk mode
C Boot from the internal optical drive
N Start from the Network (NetBoot)
Command-Option-P-R Reset Parameter RAM (PRAM) and non-volatile RAM (NVRAM)
(mouse button) Eject (internal) removable media

ALSO: if you use open firmware password… you’ll need this:
Startup Manager -accessed by pressing the Option key during startup
Enter commands after starting up in Open Firmware -press Command-Option-O-F key combination during startup.

http://docs.info.apple.com/article.html?artnum=106482

How to troubleshoot a computer with Open Firmware Password enabled
If you cannot access the Open Firmware Password application and need to troubleshoot your computer by:

Resetting the PRAM
Starting up in Single-user mode
Starting up in Verbose mode
Starting from CD-ROM

Then follow these steps:

Start up into Open Firmware by pressing and holding the Command-Option-O-F key combination during startup.
At the Open Firmware prompt, type: reset-nvram
Press Return.
When prompted for your password, enter it and press the Return key. It responds OK.
At the Open Firmware prompt, type: reset-all
Press Return.

The computer restarts and you are now be able to reset the PRAM and startup in Single-user mode, Verbose mode, or from CD-ROM.

Jun 12

OS X Leopard

To coincide with the recent WWDC conference and Steve Job’s keynote speech, the Leopard website has been updated. The site features a run down of some of the forthcoming features, which include:

  • A more 3D based Dock.
  • A new Finder, it is pretty much based on the iTunes layout.
  • Stacks - This feature stacks multiple folders on top of each other when in the Dock.
  • Quick Look - Provides a live preview of the document.
  • Spaces - Allows you to switch between workspaces.
  • Boot Camp - Installed as default.
  • Dynamic Widget Creation - Allows you to create on the fly widgets based on a website’s content.
  • Spotlight - Will have the ability to search Macs and PCs on your local network.
  • .Mac - The spotlight search is going to extend to Macs outside of your local network.
  • iChat - Is set to get a massive facelift on Leopard.
  • Time Machine - Back up and recovery software which uses Spotlight and Quick Look.

The keynote speech is available to stream (quicktime of course), it is quite long but worth the watch. I have watched the first hour of the speech which touched on EA Sports and ID Games coming to Mac and of course demonstrated Leopard to the 5000+ audience.
Below is a shorter promtional video which demonstrates some of the above features of Leopard

One thing I didn’t like about the Keynote speech was Apple’s snobbery at Windows again. The opening video footage featured ‘PC’ from the ‘I’m a PC, I’m a Mac’ advert trying to pass himself off as Steve Jobs. PC stated that he is quiting Apple and shutting down the whole company. While the footage was fairly funny it wasn’t really required to be shown to the audience. Below is a cam recording of the footage.

Okay, back to Leopard. It looks amazing. Roll on October. :)

The stand out features for me include, the dynamic widget creation, workspace and stacks. The Widget feature allows you to highlight any area in a webpage and then ‘grab’ the contents of that area and turns that area into a widget. It’s basically like dynamic RSS. It’s a really imaginative addition. The upgrade to Leopard from Tiger will cost approx <€150. Roll on October. :)

Other discussions of WDMC 2007

Jun 11

Safari beta 3 is available for public beta from the Safari download page. It is also making an appearance on Windows for the first time. I have just downloaded it and I have to say it’s the fastest rendering browser I have ever used. I actually can’t believe how fast it is.

I’m not too familiar with Safrai’s features as Camino is my browser of choice but I will explore this beta release a bit further. From my early experience there seems to be no major additional features but the speed is very very noticeable.

The download comes as package which includes an uninstaller which will revert to the previous version of Safari when run.

I’m very surprised this has been released before both the iPhone and Leopard. I wonder what features will make it into the final release…? What features would you like to see?

Jun 11

 Jojimbo

Yojimbo is an application to help you organise all those little but important scraps of information you wish to remember at some point, like passwords, serial numbers and order confirmations.

It stores URLs, web archives, passwords, notes, PDF documents and serial numbers and can encrypt that content. You can enter information by hand, but you can also copy to clipboard what you want to store (say, an URL or serial number) in your e-mail client or browser and press F8.

Yojimbo figures out what you have copied and shows you an entry box where you can change the title and add tags if you want to. It can also store PDF documents. When I receive an order confirmation by mail, or in my browser, I just print it as PDF to Yojimbo. That’s a new option in the standard print dialog.

What I like about Yojimbo is the ease of use, and the integration with Mac OSX. It has a nice interface, it groups by type (Password, Serial Number, …) and you can have “smart folders” based on your tags.

Security also seems pretty good. You can encrypt almost all content, and there is an option which makes it forget the password after a single decryption, or encryption. Though this sounds inconvenient, it allows you to walk away from your Mac for a few minutes without anyone peeking at your passwords.

Yojimbo adds an item to the standard Print dialog, Save PDF to Yojimbo, which immediately adds the item (as pdf) to Yojimbo. Very convenient for purchase confirmation mails or web pages. Web pages can be stored as web archives which don’t change when the website does.

Yojimbo is a commercial application made by BareBones software. They have a nice demo movie accessible via the Help menu, and a 30 day fully functional trial. It’s $39 which I never thought I would pay for such a “simple” application, but I haven’t regretted it yet.

Have a try, and tell me your experiences!

Jun 09

Hi, if you’re reading this post then you are probably new to Apple Macs having migrated from Windows or another rival operating system. Welcome and I hope you enjoy your time at Macblogger :)

Installing and uninstalling applications on OS X is a very different process from doing so on a Windows system. The first difference is that you can’t install a .exe or a .msi on Mac. Software is installed on Macs using a .dmg file. DMG is an abbreviation for disk image. Macs also use tiny applications called Widgets as well. These guys use the .wdgt file extension. All installations on Mac OS X require the administrative password to be typed into a prompt box before continuing with the installation.

How to Install a Program on your Apple Mac

For the purpose of this post I’m going to install Cabos. an open source file sharing application. I have downloaded the file to my desktop. Simply double click on the cabos.dmg file. A new finder window should pop up, see image below. You might be thinking ‘oh, that was easy and quick’, but the installation is not actually complete. The Cabos MacOSX folder is simply mounted on your hard drive. You should notice a Cabos folder on your desktop. To complete the installation drag and drop the Cabos.app file into the Applications folder. You should hear a soft ‘ding’ noise, this indicates and confirms the completion of the installation. And that is that. Finished.

Mounted Files

Not every program installs in the same manner as Cabos has done. Some applications, such as Firefox, pop-up a prompt which is similar to a Finder window. Instructions generally appear which tell you to drag and drop the .app file into the Application folder.

How to set a Program to Automatically Launch at Startup

If you want to have the program load at startup you simply go to

  1. System Preference.
  2. Accounts.
  3. Login Items.
  4. From this screen you can add applications by clicking on the ‘+’ symbol.
  5. You can set the application to open in full view or to hide it the background.

Cabos might not be the most practical of applications to have started at startup. I have Adium, Skype, Gmail Notifier and Thunderbird all set to startup at this moment.

How to Uninstall a Program on your Apple Mac

This is pretty simple as well. Open up the Applications Folder in Finder and drag and drop the application’s folder or the .app file into the recycle bin located on the Dock. If you accidentally dumped an application then open up the receycle bin and recover the file(s).

Mac OS X doesn’t have the best uninstall procedure in place. It is not certain that files associated with the installed application will be deleted by simply dropping the .app file into the recycle bin. It’s best to use a third party application such as Clean App or App Delete or to remove all the files associated with the installation from your Mac’s hard drive.