Print protected PDF files on OSX – using the terminal

The newer versions of Preview (at least OS X 10.5, and maybe earlier) respect the “do not print without a password” setting in PDF files. However, it is possible to create a completely unprotected version of any PDF file using ghostscript. A command like this should work:

gs -sOutputFile=MyNewFile.pdf -sDEVICE=pdfwrite -dNOPAUSE -dbatch -q MyProtectedFile.pdf

You may need to type “quit” at the command prompt after gs finishes processing the file. Then open the newly created PDF file and voilà, printable!

(Sony) XDCAM Transfer for OS X

So as I now and then have to fix up a OS X + FCP install with XDCAM PDW-U01 import functionality, here is a short howto:
1) PDZK-P1 XDCAM Transfer, now 2.12
2) Mac i.Link FAM driver
3) XDCAM Browser, currently 1.2

The links might break, so here is the official Sony XDCAM site.

I am not affiliated with Sony, nor do they pay me for this. It’s just a braindump for myself and hopefully others will find this helpful!

The Windows multiple program installer thingie…

I keep forgetting this GREAT tool. After a nice clean Windoze install, all it takes is one visit to http://ninite.com/ and a few clicks, and your all set as far as software goes. Download the bundled installer click on it, and go for coffee… 🙂 Joy!

Before throwing rotten tomatoes, yes this is Windows only… my bad! No I don’t have shares or anything. I’m just lazy!

[solved] OS X 10.7 Lion and mail search not working…

I was stunned to find out that the search function on the Mail.app wasn’t working anymore since I’ve upgraded my Mac from Snow Leopard 10.6.8 to (the very cool) Lion 10.7. Thought it could be Spotlight not working, or something else.

Well, as it turns out, it’s a combination of 2 problems:

1) turn Spotlight indexing on: sudo mdutil -i on /
2) when using IMAP, configure your account to Keep a message for viewing offline

That’s it! Where Snow Leopard was able to search thru already downloaded mail (although the above option was enabled), Lion can’t.

Now the search is working great!

Hyves account opzeggen / verwijderen / deleten

Zelf doe ik al helemaal niets meer op Hyves dus werd het tijd om mijn account op te heffen. Grappig genoeg kan je op de site van Hyves.nl hier GEEN informatie over vinden en op honderden sites kom je steeds een niet werkende link tegen.

Wel nu, hier is ie dan; een werkende ‘Verwijder mijn account’-link:

http://hyves.nl/?module=Layout&action=showDel

Klik op ‘Ik neem afscheid’.

Vul je wachtwoord in en klik op ‘Verwijderen’,

Als het goed is ontvang je een bevestigings email.
Klik op de link in die mail, bevestig het verwijderen:

…en klaar is Kees!

Poste Italiane: International shipments price list 2011

Seems to be it’s impossibile to find out how much the Italian Postal service is charging for a simple shipment of a box outside Italy. In fact, on their site they ONLY show you the more expensive ways (PaccoCelere Internazionale, QuickPak Europe, EMS) but these services have a starting price of € 28 ! There’s NO direct link on their site towards this page: http://www.poste.it/postali/ordinario/estero.shtml

So, if you’re in Italy and you need to ship something, ask for “pacco ordinario per l’estero’. They won’t have any documentation about it and the price will depend on weight, country and if you’ll be using air or ground services.

But how to know what it’ll cost… Well, see the attached image of an internal document of the Poste Italiane! Should be valid from 2011 but your mileage may vary: prices are always subject to change (mostly without notice).

OSX: Screen Sharing over the internet

Here’s a quick write-up describing how to connect to your Mac at home from your Mac at work (or any other Mac…).

Prerequisites

1) User access with administrator’s rights on your remote OS X computer.

2) An Secure Shell (SSH) client on your local computer. On Windows, Puttyis a common and free version. Linux and MAC OS X, by default, come with SSH.

3) A VNC viewer client on your local computer.  In our case, we’ll using Screen Sharing. You won’t find it in the finder; it’s hidden here:

/System/Library/CoreServices/Screen\ Sharing.app

4) Network access to the SSH service on your remote machine.  This requires

a)  You know your remote machine’s hostname or IP address.
b)  Being behind the firewall, having VPN access, or being accessible to the public Internet (i.e. no firewall).

How to Remotely Turn On (and off) OS X Screen Sharing

This procedure keeps security in mind.  The idea is to turn on screen sharing while you need it, and then turn it off when you’re done.

1)  SSH into your remote OS X machine with an administrator’s log in and password.

2) Enable Remote Desktop (a.k.a. Screen Sharing, a.k.a. VNC) with this command:

sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw password -restart -agent -privs -all

3) Login using a VNC client. You can use Screen Sharing or Chicken of the VNC (see tip below).
Your password is “password” (see the -vncpw flag in the above command;  you can — and should — change this).

4) When you are done, turn of screen sharing using your SSH session:

sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off


Problems connecting with your VNC client, like Chicken of the VNC?

Set your remote display settings to greyscale (to speed up things) or ‘Let server decide). Anything lower than ‘thousands’ won’t work.

defaults write com.apple.ScreenSharing controlObserveQuality 2

 

Recursively batch rename files in Linux

If you’re using Kerio Mail Server (Kerio Connect) under Linux and you’ve moved around (using rsync or such) some mail folders, sometimes you’ll need to recreate the folder index, otherwise some email might not show up in your email program (Outlook, Mail.app, Webmail).
The only thing you’ll need to do is to rename the index.fld files inside each (!) folder into index.bad.

Yeah, nasty. So: fire up your Vi editor and put this little script inside your store folder:

badindex.sh
#!/bin/bash
find . -name "index.fld" -exec sh -c 'mv -v "$0" "${0%.fld}.bad"' {} \;