Export vCards from Filemaker Pro

Here is an example file with a script to export a vCard from a record with related contact details (phone, email, addresses). It can handle custom labels for phone and email, but this feature only works with Apple Address Book.

It works as it is using Mac OS X, but requires a Filemaker plugin to export the text in the correct format for Windows.

Contacts_Sample.zip (45kb)

Posted in Blog | Leave a comment

Kyocera print driver on 10.6

There is a permissions problem with Kyocera printer drivers after upgrading to Mac OS X 10.6 Snow Leopard.. The following command will fix it..

sudo chown root:wheel /usr/libexec/cups/filter/kyofilter

Posted in Blog | Leave a comment

D-Link Gigabit Switch problem

I recently replaced a faulty D-Link 8 port Gigabit ethernet switch and was about to trash it, then I starting wondering what the actual problem was.. The switch was a DGS-1008D

The symptoms were: power LED on, complete bottom row of green LEDs flashing about once every second, and obviously it just didn’t work.

I assumed that, the power supply was OK (since the power LED was on) but after checking it out with an oscilloscope I realised that I was wrong.. There was a heap of ripple on the power supply line. If I bridged another 220uF capacitor in parallel with one of the existing ones in the power supply section it worked fine, it also worked with another power supply.

My conclusion is that the DC plug pack power supply which is transformer based (not switch mode), must have a filter capacitor that has died..

Posted in Blog | Leave a comment

Print Settings on older HP Laserjets

Today I needed to change the print density setting on an old HP Laserjet 2200.. I thought it should be an easy job, but it wasn’t..

From Mac OS X there is no GUI way to do this. No way of doing it from a browser either.

Ended up using telnet to send a PJL command to the printer via port 9100.

I used: telnet printer_ip 9100

then pressed esc, and entered: %-12345X@PJL DEFAULT DENSITY=5

I found this command here: http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=bpl07282&locale=en_US&printver=true

Posted in Blog | Leave a comment

Mac OS Volume UUID from Filemaker

This can be done using an Applescript to call the command line diskutil.

Here is the script I used:

Set Variable [ $DiskPath; Value:Let ( [
fullpath = Substitute ( Get ( FilePath ) ; "file:" ; "" );
delim = Position ( fullpath ; "/" ; 0 ; 2 );
path = Left ( fullpath ; delim )];
"'/Volumes" & path & "'"
) ]

Perform AppleScript [ Calculated AppleScript: "set cell \"DiskUUID\" of current record to do shell script \"diskutil info " & $DiskPath
& " | grep -h UUID:\"" ]

“DiskUUID” is the field name for the result..

Posted in Filemaker, Mac Stuff | Leave a comment

VPN not working after 10.6.5 update

Last night I updated a Mac OS X Server to 10.6.5, I was connected remotely via a PPTP VPN (running on the server), and could not reconnect after the update, it wouldn’t authenticate.. I drove in there this morning to check it out, the server was running fine, except the VPN. Looking through the logs didn’t tell me a great deal, but for some reason I thought I’d try turning off “Allow 40-bit encryption keys in addition to 128-bit”.. Bingo! It worked fine after this : )

Posted in Blog | Leave a comment

Applescript to check image size

I was recently asked to provide an easy way to check a photos printable size at a given resolution on Mac OS. Here is the applescript I came up with.. Simply drag an image file (jpg, tiff, png, psd etc..) on to the icon, and it will tell you the maximum printable size at 300 dpi.

Posted in Blog | Leave a comment

More AEG oven problems

Funny how you can miss something as simple as a clock.. Yesterday the LED clock on our AEG B3100 Competence oven stopped working, the display was totally dead.

After the previous problems we had with this oven, I decided to have a go at fixing it myself.

Once I had removed the clock module I had a look at the top circuit board.
As the thing was totally dead, my first suspicion was the power supply section, which is a very basic bridge rectifier and filter, all of which checked out ok including the 1000uF 10V capacitor. There was another smaller capacitor near the main filter cap, a 47uF 25V 105 deg C, and it looked a little bit discoloured. I replaced both capacitors with the closest values that I had, which was 1000uF 16V and 47uF 50V, both 105 deg C.

Plugged it all back in, and gave it the smoke test.. The clock was alive again!

Kind of makes sense that these caps (or at least one of them) was the cause, as this top section of the oven can get quite hot, especially when the cooling fan isn’t working.

Posted in Blog | Leave a comment

CDC Telephone Betting Terminal

I purchased these two Control Data telephone betting terminals in about 1985.  They had been used by QIT (now QUT) for some kind of computer science course.  Included with the two terminals was complete documentation including full circuit diagrams, and an S100 bus board with a Z80 card, memory board, and disk controller.

Posted in Blog | Leave a comment

G5 water pump cover

After installing my new water pump connected to a rainwater tank, I started looking around for a suitable piece of sheet metal or aluminium to make a cover. I couldn’t find anything big enough around the house or in the neighbourhood, but kept looking at the spare Power Mac G5 case sitting in the garage.

The G5 had a dead logic board, and the power supply had been used to repair another G5. I had considered putting a PC motherboard and ATX power supply in it, but I really don’t need another PC.

I measured the G5 case and it was a perfect fit for the pump, it also had great ventilation, but I still couldn’t bring myself to cut it up.  After another week of looking around I finally decided to hack the G5 case.

Only took about half an hour to strip and cut the three slots required to fit over the pipes. I mounted a short piece of sheetmetal angle to the concrete wall (bent up slightly) which the top lip of the case (where the cover used to go) hangs neatly on it. It’s mounted on a slight angle to allow the water to drain off the top.

Posted in Blog | Leave a comment