Posts filed under Tips'n Tricks

Screen Capture Can't Be Saved

After upgrading my iMac to OS X Lion (10.7) everything works (or at least seems to work), until I tried to do a screen capture with the built-in tools.

Things that worked:

  • Capturing the entire desktop to file
  • Capturing a selection (using the cross-hair) to file
  • Capturing the entire desktop to the clipboard
  • Capturing a selection (using the cross-hair) to the clipboard

Things that didn't work:

  • Capturing entire windows to file or the clipboard (SHIFT-COMMAND-4 + SPACE / SHIFT-COMMAND-3 + SPACE)

All I got was a weird notification box with the message:

Screen capture can't be saved

The console application also showed an error message:

12/16/11 1:40:08.762  com.apple.SystemUIServer.agent: screencapture could not capture window 3c

Lurking around the Interwebs, I found this seem to occur after an upgrade of the OS, but real solutions are hard to come by.

This is what I did to solve my problem:

  • Remove the screencapture PLIST (preferences) file (~/Library/Preferences/com.apple.screencapture.plist)
  • Copy a com.apple.screencapture.plist file from a working OS X Lion environment and place it in the correct location on the troubled OS X installation.

That seemed to result in two com.apple.screencapture.plist files (one with an additional extension of .locked). I removed the .locked file, rebooted the iMac, and screen capture worked again.

I must mention that I didn't see the .locked file initially. Could be that it existed before. In which case I probably did more than was required to get things fixed....

Posted on December 16, 2011 and filed under Annoying, Apple, Operating Systems, Tips'n Tricks.

Unofficial iOS5 upgrade

After reading the iOS5 upgrade on the Lifehacker website, I decided to upgrade my iPad2 to iOS5. It's unofficial, because iOS5 hasn't been released yet. The version mentioned on the Lifehacker websites is considered to be the Gold-Master version. Meaning that it's the final version, waiting to be released somewhere this month.

First I installed the iTunes beta version as mentioned and downloaded the appropriate iOS versions for my iPad and iPhone. The upgrade went extremely well. Just remember to backup your device before the 'upgrade' proceding.
After the iPad upgrade, I decided to upgrade my iPhone3gs. This went as smooth as the iPad upgrade.

The biggest new feature for me so far is the possibility to use custom text/notification tones. The iPhone3gs also feels more responsive.

There was one annoyance with the initial configuration of the iPad;
My Apple ID was a basic username, and not an e-mail address. This is NOT accepted by the initial iOS5 configuration wizard. Your Apple account NEEDS TO BE an e-mail address. It took me a while to set that up properly in my online account settings.

Posted on October 9, 2011 and filed under Apple, Operating Systems, Software, Tips'n Tricks, iPhone.

Configuring Syslog-ng on Ubuntu

Syslog-ng is a replacement for the default syslog daemons you get with most Linux distributions. The advantage of syslog-ng is that the configuration is easier to understand, and it gives the sys-admin numerous advantages. Especially in complex environments.

Let's say we have a RADIUS environment which is able to send authentication and accounting information through syslog to external devices. And let's assume that a relevant part of this syslog information is needed by a department within a large cooperation.

Installing syslog-ng (on Ubuntu) is done by the following command:

# sudo apt-get install syslog-ng

Through the use of syslog-ng we can store, and/or forward syslog information based on the following (but not limited to):

  • source IP address
  • destination IP address
  • syslog level
  • content in the original syslog message by using regular expressions.

All this can be configured in the /etc/syslog-ng/syslog-ng.conf file.

Posted on August 26, 2011 and filed under Linux, Tips'n Tricks.

Unable to Upgrade Firefox on OS X

Today I tried to upgrade Firefox 5.0.1 on my iMac to version Firefox 6, but it failed with some 'weird' error;

The operation can't be completed because the item libsmime3.dylib" is in use.

Weird because I didn't have FireFox running at the time. Removing Firefox didn't work either, since I couldn't remove it from the Trash (same error).

Turned out that I had the Cisco AnyConnect VPN installed on my system (process name: vpnagentd). To 'unload' this process enter the following in Terminal:

sudo launchctl unload /Library/LaunchDaemons/com.cisco.anyconnect.vpnagentd.plist

Install Firefox, and enable the vpnagent again by entering the following in Terminal:

sudo launchctl load /Library/LaunchDaemons/com.cisco.anyconnect.vpnagentd.plist

And all should be well.

Posted on August 15, 2011 and filed under Annoying, Browsers, Software, Tips'n Tricks.

Burn OS X Lion Installation Package to DVD

The moment you download OS X Lion, you'd better have a copy of OS X Snow Leopard, because by default the new Apple OS can only be installed on a previous installed Operating System (upgrade). So if you need to reinstall your Mac in the future, you need to install OS X Snow Leopard first, and then upgrade to OS X Lion. Also, there's no way of ordering an OS X Lion copy on DVD..... Well, that sucks.

Fortunately, there's a way of creating the installation DVD by extracting the actual disk image from the downloaded OS X Lion installation package.

Posted on July 20, 2011 and filed under Apple, Operating Systems, Software, Tips'n Tricks.

Manipulating EXIF Info

The Leica M9 has no means of determining foreign or old lenses. The newer Leica lenses have a 6-bit (visual) coding mechanism for determining the lens. Problem is that this is only for (relatively new) Leica lenses. There is the possibility to manually select the lens in the menu of the M9, but that's only limited to the Leica brand lenses. No option for Carl Zeiss lenses.

For certain characteristics, and in-camera processing of the RAW image it's handy to manually select a Leica lens even though you've attached a Zeiss lens. This can be automated by coding the lenses yourself (or have Zeiss do it for €100 a lens).

All this is nice, but it still generates photos with faulty EXIF information, because you shot the photo with a CZ C-Sonnar 1.5/50mm and not with a Leica 1.4/50mm Summilux ASPH....

Posted on July 10, 2011 and filed under Photography, Software, Tips'n Tricks.

Hostname and (Apple) Mail Server Dependencies

My Mac Mini with OSX Server had this thing that the hostname (as displayed in the Terminal app) would change after a reboot. Something that annoyed me tremendously. Thankfully there are several (Terminal) commands to change the hostname (back) to its 'original name'.

Since I wanted to change my hostname PERMANENTLY, I used the following command:

sudo scutil –set HostName new_hostname

This worked perfectly. Or so I thought.

Posted on June 29, 2011 and filed under Apple, Internet, Tips'n Tricks.

Where can I find the iTunesHelper App?

The iTunesHelper application is used to automatically detect iPod's/iPad's and iPhones, when you connect these to your Mac. The application launches iTunes, and (if configured) synchronizes stuff. Very handy, but it can be quite annoying.

E.g. I have an iMac (main 'PC' around the house), and a MacBook. All the synchronization stuff is done on my iMac, and I don't sync anything on my MacBook. But when I attach my iPhone to my MacBook for Internet access (tethering), it launches iTunes and wants to synchronize with an empty iTunes. Something I definitelly don't want.

This feature can be turned off by removing the iTunesHelper application entry from the Login Items in your account settings, but turning it back on is something completely different. I accidentally removed it from my iMac, which wasn't supposed to happen....

Posted on June 4, 2011 and filed under Apple, Personal, Software, Tips'n Tricks.

Torrents and Usenet Downloading with an iPhone

No idea if this is a new feature introduced with a newer version of Dropbox, but it is possible to download nzb and torrent files through the Mobile Safari app.

What you need is the following (for a complete downloading system):

  • A Dropbox account (the 2GB version is free!!!!)
  • A torrent application with the possibility of using a so-called watch-folder (e.g. Vuze)
  • An usenet application with a watch-folder capability (e.g. SabNZBd+)
  • An iPhone with the Dropbox app.

First you need to setup Dropbox. This is the easiest part. Just create two folders called 'NZB' and 'Torrent'. These folders will contain the downloaded torrent and nzb files.

After that you need to configure the Vuze and/or NZB download application to use a watch-folder.
I use these apps on my Mac Mini server. So it's operational 24/7.

Posted on May 19, 2011 and filed under Apple, Internet, Software, Tips'n Tricks, iPhone.