Author Archive for garee

We’re back!

So, die Zeit in Kalifornien ist vorbei — seit gestern sind wir wieder in der Schweiz!

Neben vier randvollen Koffern — mit etwas Übergewicht, haben wir aus dem sonnigen Kalifornien viele tolle Erinnerungen mitgebracht: Wir haben schöne Ausflüge gemacht, aber auch eine wunderbare Zeit in Stanford und Palo Alto verbracht. Hier haben wir gute Leute kennengelernt, die zu Freunde wurden, welche wir vermissen werden. Und wahrscheinlich haben wir uns auch ein klein wenig an den Amercian Way of Life gewöhnt. Aber keine Angst, das folgende Bild ist also nicht echt.

Am Besten macht ihr euch selbst ein Bild davon, inwiefern wir uns verändert haben. Wir freuen uns auf euch!

Print from an IOS-Device to a PDF on a Mac

The following article describes how to set up pdf-printing via airprint from an IOS5-device to a PDF-printer on a mac running OSX 10.7.2

I started reading a couple of blogs — They basically cover steps 1 to 3. But then I run into a problem I didn’t find a solution on the web. So my solution to this problem is described in steps 4 and 6.

Step 1: Install CUPS-PDF

  1. Get the cups-pdf-installer from codepoet.
  2. Doubleclick CUPS-PDF.mpkg to install “CUPS-PDF” and the “Generic Color Postscript PPD”-File.

Step 2: Install the PDF-Printer

  1. Go to “System Preferences” -> “Print & Scan”
  2. Add a new printer and choose “CUPS-PDF”.
  3. Give the printer a name and I you’d like fill in the location.
  4. Under “Print Using” select “Select Printer Software…” and choose “Postscript Generic postscript color printer, rev3a” from the list.

Now your CUPS-PDF-printer is installed and you should be able to use it to print to PDF-files from your computer. The files are automatically saved to /Users/Shared/CUPS-PDF in a folder with your user account’s name.

Step 3: Get airprint-activator

  1. Download the newest version of “Airprint Activator v2″ from netputing. (v2.1b2 works for me)
  2. Install “Airprint Activator v2″ (unzip and copy to “Applications”).
  3. If your system is running the OSX-firewall, follow the additional configuration-steps on netputing to configure the firewall.

You can now start “Airprint Activator” and turn on sharing. On the right you should see all shared printers. Note that only printers that are shared on the network, show up here. (see next step)

Step 4: Set up and configure printer-sharing

  1. Go to “System Preferences” -> “Sharing”
  2. Activate “Printer Sharing” for your CUPS-PDF-printer.
  3. Add yourself to the access-controls for CUPS-PDF-printer. (If you leave the access-settings to “Everyone can print”, you won’t have access to the pdf-files! See step 6)

Step 5: Print to PDF from IOS-Device

  1. Now take your IPhone-Touch/IPod/IPad and open any App that supports printing.
  2. Open a document and print to your CUPS-PDF-printer. You should have to enter your user account’s name and the password as set in step 4.

Note: The IOS-Device and the Mac must be connected to the same wifi-network!

Step 6: Get your PDF-files

  1. Go to /Users/Shared/CUPS-PDF. There should be a subfolder with your user account’s name. Inside you’ll find the PDF-files.
  2. If you’d like, you can make an alias to this folder on your desktop. Do so by Command-Option-dragging the folder.

Note: If you see a guest-folder in /Users/Shared/CUPS-PDF: That’s where the CUPS-PDF-printer stores PDF-files that are printed without authentication. If you set the access-settings in step 4 to “Everyone can print”, you don’t need a password while printing from your IOS-device. But then you have to change the folder permissions of the guest-folder to see its content and the file-permissions of the PDF-files inside the folder too. Besides you don’t want that other people sharing your network fill your hard disk with PDFs.

Remote control for Squeezebox Touch’s TinySC

With the built-in TinySC, Logitech’s Squeezebox Touch offers the possibility to stream music from an external USB-Harddisk to itself or any other Squeezebox. The only downside is: TinySC doesn’t have a webinterface. But there are other ways to control TinySC (besides the Touch’s screen or the bundled IR-remote):

  1. From your conputer with Squeezeplay
  2. From a Logitech Squeezebox Controller
  3. From an IPhone/IPod touch with IPeng

1. Squeezeplay

Logitech offers the free program Squeezeplay that basically turns your computer into a Squeezebox. That means: you can stream music from any Squeezecenter to your computer, but you don’t have to: you can use Squeezeplay to control any Squeezebox in your network, without actually streaming music to your computer. That’s how I use Squeezeplay: as a replacement for Squeezecenter’s webinterface, to control my TinySC from my Mac and PC. How to set-up Squeezeplay

  1. Download Squeezeplay from Slimdevices Nightly Builds
  2. Start it and select your language
  3. Go to Settings and choose Choose Player
  4. Then you can go to My Music and connect to the TinySC

Screenshot 1 Screenshot 2 Screenshot 3

2. Squeezebox Controller

Actually my first Squeezebox-product was a Squeezebox Duet. In this bundle you get a Squeezbox Receiver (Black box with Wifi and audio-connectors) along with the remote called Squeezebox Controller. With the controller you can control any Squeezecenter via Wifi.

3. IPeng

I’ve bought the IPeng-app a while ago for my IPhone and still think it’s a very convenient way of controlling your music on any Squeezecenter, including the TinySC. The user interface looks great and scrolling through your library is smooth and even better than with the previously mentioned Squeezebox Controller.

Show location of geotagged picture in IPhoto

The following short applescript opens Google Earth and sets the viewpoint to the coordinates of the currently selected picture in IPhoto:

tell application "iPhoto"
	activate
	try
		copy (my selected_images()) to these_images
		if these_images is false or (the count of these_images) is not 1 then
			error "Please select one image."
		end if
		repeat with i from 1 to the count of these_images
			set this_photo to item i of these_images
			tell this_photo
				set the image_file to the image path
			end tell
			set exifCommand to "exiftool -s -s -s -n -GPSposition '" & image_file & "'"
			set output to do shell script exifCommand
			if output is not "" then
				tell application "Google Earth"
					activate
					--display dialog output
					set myArray to my theSplit(output, " ")
					SetViewInfo {latitude:item 1 in myArray, longitude:item 2 in myArray, distance:30000, tilt:0, azimuth:1}
				end tell
			end if
		end repeat

	on error error_message number error_number
		if the error_number is not -128 then
			display dialog error_message buttons {"Cancel"} default button 1
		end if
	end try
end tell

on selected_images()
	tell application "iPhoto"
		try
			-- get selection
			set these_items to the selection
			-- check for single album selected
			if the class of item 1 of these_items is album then error
			-- return the list of selected photos
			return these_items
		on error
			return false
		end try
	end tell
end selected_images

on theSplit(theString, theDelimiter)
	-- save delimiters to restore old settings
	set oldDelimiters to AppleScript's text item delimiters
	-- set delimiters to delimiter to be used
	set AppleScript's text item delimiters to theDelimiter
	-- create the array
	set theArray to every text item of theString
	-- restore the old setting
	set AppleScript's text item delimiters to oldDelimiters
	-- return the result
	return theArray
end theSplit

You’ll need ExifTool by Phil Harvey to be installed for this script to work properly.

Internet Sharing with USB-Modem (Compass 885)

Sierra Wireless Compass 885Before spending a few days over Christmas in the Swiss Alps, I purchased a Sierra Wireless Compass 885. Today, after returning from the slope, I plugged it in and it worked flawlessly. The included utility Sierra Wireless Watcher works fine and is easily configured. Then I tried to configure Internet Sharing, so that my friends might use the connection as well. But in the Internet Sharing Preferences I could only select the following devices:

  • Firewire
  • Bluetooth
  • AirPort
  • Ethernet

My USB-Modem didn’t turn up in the list. After trying several settings I found out why:

The included utiliy Sierra Wireless Watcher automatically installs and configures a new device on connection. This device shows up besides the other network devices in the System Preferences, but without a name. All you have to do is rename the new device. I renamed mine to “USB-Modem”. With the device having a name you can select it in the Internet Sharing Preferences. It’s working!

network-preferences-thumbnail internet-sharing-preferences-thumbnail

Flickr