Skip to content

Posts tagged ‘mac’

1
Jul

Update hangs when installing Mac OS X 10.5.4

I just updated Mac OS to 10.5.4, but when Software Update installed the update, it just hung at about 30%. I pressed the power button after a while and got the offline installer to do a manual install.

So if you are having problems with the latest update, just download it from the Apple website and install it manually.

Mac OS X 10.5.4 update

25
Jun

My workflow in Things

I have previously mentioned Things, my preferred application for managing tasks and basic project planning. This post is about my workflow in Things and why it makes me more productive.

There are two tasks I do every day and every week. The daily task is to look through the projects and areas to see if there is something that I want or need to do today. The Next view is very helpful here too, since it provides a great overview of all projects and areas.

The second recurring task is done every Monday. It consists of project planning, and this is where I look through all projects and areas and plan what I will be doing that week. All projects that are on hold are moved to the Someday area, and all projects that are planned for the coming week or at any specific time in the future is moved to the Scheduled area.

Using Things this way makes it very easy to see which projects I should currently focus on, as well as keeping the inactive projects hidden to clear them from the point of distraction. One thing I rarely use is the Inbox area. I most often try to tag and place the task in the correct project right away when I add it using the quick entry dialog. This eliminates the process of interpreting randomly entered tasks and try to work out where to file them.

8
Jun

Trying out GarageBand

Being a Mac user, I of course have iLife installed, but GarageBand is one application which I haven’t tried out — until now.

[audio:http://johnny.chadda.se/wp-content/uploads/2008/06/my-song.mp3|titles=My Song]

GarageBand makes it super easy to create your own song even if you can’t play any instruments. There are hundreds of free high quality samples to choose from if there is need. There are also external Jam packs which extends the basic package to include vocals and other instruments.

GarageBand

I created this song in a matter of minutes. The samples are of course from the bundled library, but it’s very easy to record and arrange your own instruments. Yes, the vocal track is empty. I thought I’d spare your ears.

Download song

4
Jun

Squirrelfish Javascript engine in Webkit — speeds up Safari

Webkit, the rendering engine in the Safari browser just got a new Javascript engine. They are promising a dramatic increase in speed, and it seems to match up. (the bigger number the better)

Squirrelfish Webkit Graph

SquirrelFish’s bytecode engine elegantly eliminates almost all of the overhead of a tree-walking interpreter. First, a bytecode stream exactly describes the operations needed to execute a program. Compiling to bytecode implicitly strips away irrelevant grammatical structure. Second, a bytecode dispatch is a single direct memory read, followed by a single indirect branch. Therefore, executing a bytecode instruction is much faster than visiting a syntax tree node. Third, with the syntax tree gone, the interpreter no longer needs to propagate execution state between syntax tree nodes. – The webkit blog

If you are running Mac and are using Safari, you can download an updated nightly Webkit build. Now you can try the new version without having to wait for Apple to release an updated version of Safari.

6
May

Create a fixed size network storage for Time Machine

Time Machine is a backup program built into Mac OS 10.5, Leopard. It saves all files on the computer on a USB  or network drive, which can be used for restoration of individual files or the whole computer.

The normal behavior of Time Machine is to keep

  • hourly backups for the past 24 hours
  • daily backups for the past month
  • weekly backups until your backup disk is full

It is the last point that might cause some trouble for some people, since many people might share the drive with other type of data. There has to be some way to limit the size of the backup volume. This is my approach.

Preparing an image

The first step is to create an image to hold the backup filesystem. If you want this filesystem encrypted, have a look at Mounting encrypted volumes, otherwise just follow the following steps. The image will be created as /ext/timemeachine.img and it will be mounted in /ext/timemachine.mnt.

dd if=/dev/zero of=/ext/timemachine.bin bs=1G seek=250 count=1
losetup /dev/loop1 /ext/timemachine.bin
mkfs.ext3 /dev/loop1
tune2fs -c0 -i0 /dev/loop1
losetup -d /dev/loop1
mkdir /ext/timemachine.mnt

The first thing is to create an image file, and using the dd command we create an empty 250GB file, which will contain the backups. The next step is to setup the image as a loop device, which makes it possible to mount it as usual. loop1 is currently used, but if you know that it is occupied, feel free to choose another device.

The next step is to edit /etc/fstab and add a line which will automatically mount the filesystem when the computer boots.

/ext/timemachine.bin /ext/timemachine.mnt ext3 loop=/dev/loop1 0 0

Then we will mount all filesystems and verify that it has indeed been mounted.

df -h
/ext/timemachine.bin  248G  188M  235G   1% /ext/timemachine.mnt

There should be a line like the above if everything is working correctly. The last step is to set the correct permissions for the directory for your user.

chown -R joch /ext/timemachine.mnt/

Setting up the Samba share

To connect to the server, it is necessary to setup the Samba server. Create a share like the following in /etc/samba/smb.conf.

[tmbup]
comment = Time machine backups
path = /ext/timemachine.mnt
browseable = yes
read only = No
inherit permissions = no
guest ok = no
printable = no

Now just reload Samba and add a user if you have not done so before.

invoke-rc.d samba reload
smbpasswd -a joch

Setting up Time Machine

Connect to the share in Finder as usual.

Finder window

Open up the Time Machine preferences and click Change Disk. It should give you a dialog like this, and Time Machine should then be enabled.

Time Machine setupTime Machine enabled

If you get the error “Time Machine Error: The backup disk image could not be created.”, you will need to do some magic on the server.

Time Machine error

You need to start the backup once again, but this time you will have to be quick and copy the directory it creates on the server. Once Time Machine has finished, the original directory will be deleted, so just copy the saved directory back to the same place.

cp -rp Johnnys\ MacBook\ Pro_001ec2123456.sparsebundle/ ..
# Wait until Time Machine has finished
cp -rp Johnnys\ MacBook\ Pro_001ec2123456.sparsebundle/ timemachine.mnt/

Now run the backup again, and it should complete successfully!

Time Machine run

This behaviour is very strange, but the above trick always solves the problem.

23
Mar

How I get things done on the Mac

Having moved from a Linux desktop to a Mac, I have been forced to find new applications to help me read email, manage tasks and projects, take notes very easily and everything else work related. After investigating the options, I have found some applications which does their job very well. Read on to find out which applications are on the top of the game.

Email

For reading email, I now use the built-in Apple Mail client. It does its job very well indeed, but it does lack some features. It is for instance not possible to use client certificates for IMAP and SMTP yet for some strange reason, but it was a breeze setting upp stunnel to listen for unencrypted connections on localhost, and forward these to the mail server, encrypted using my client certificate.

I also have problems with my todos, especially when trying to attach them to email messages. The following message appears in the log:

WebKit discarded an uncaught exception in the webView:didFinishLoadForFrame: delegate: trying to set a non-ToDo MailboxUid for a ToDo. The MailboxUid for a ToDo must be a ToDosMailboxUid

Hopefully Apple will have a solution to this problem soon.

For some pointers on how to keep the mailbox sorted out, have a look at 43 Folder’s Inbox Zero series, or one of the many Lifehacker posts.

Taking notes

Even though it is quite possible to store notes in Apple Mail, there is definitely a use for a more powerful application such as Evernote. If you are a Lifehacker reader, you will probably have it downloaded for free. With it, it is possible to take notes on just about anything, and if there is something interesting on a website, it is just a matter of selecting the text and select “Paste to Evernote” in the menu. Brilliant!

evernote.png evernote-attributes.png evernote-menu.png

Evernote has a built-in syncing facility, which makes it possible to browse all notes directly on the web from any computer! There is also a Windows client, but I have not had the chance to try that one out.

Managing tasks

To manage tasks, the popular Things is the perfect choice. Although it is just a beta, it does what it’s supposed to do – and it does it very well! It also seems to match up well with other popular project management applications. For instance, read the iGTD2 vs Inbox vs OmniFocus vs Things comparison (Thanks Maria).

I fell head-over-heels in love with this application. Right from visiting the excellent website and then firing up the application for the first time, I knew Things was something special.

A pictures says more than a thousand words, so here is one (but with the words censored out though).

things.png

It displays the task in true GTD style, which will hopefully make it fairly easy to actually manage everything. For a more in-depth introduction, have a look at the screencast on the Things website.

Calendar

Most people would assume that using iCal would be the optimal choice. Perhaps. But most people I work with are using Google Calendar, which basically forces me to use it as well. There are some tools such as Spanning Sync for syncing iCal with Google calendar, but they all seem to have some problems. It works very well syncing to the phone using GooSync and subscribing to it in iCal.

I am quite happy with this setup, and it seems to be working really well. The only thing I can complain about is that Evernote does not save all formatting from websites, like for instance Apple Mail does with its notes feature. Not a big issue of course, since the text iself often is the important part, but still an annoyance.

23
Mar

Always open new windows as tabs in Safari

I saw this earlier, and this is the biggest thing I miss from Firefox (apart from Adblock).

defaults write com.apple.Safari TargetedClicksCreateTabs -bool true

Yes, new windows will now always open in tabs instead!

23
Oct

Firefox 2.0 released

Officially due tomorrow, Firefox 2.0 final has been pushed to the file servers and can already be downloaded. Lots of new features such as a built-in spell checker, nice looking theme, microsummaries, overall speed improvements and lots of other things.

Download it for yourself and give it a try! Windows, Mac, Linux.