Archive for the 'OSX' Category

SVN and Mac OSX hidden .DS_Store ._ .AppleDouble files

If you work on a mac (as i do) your directories get poluted with .DS_Store, ._ and .AppleDoubel files. Apple (this is THE missing Finder feature!) has no option to turn this crap off.
Now when you use svn, you will also import all these useless files.

Thank god there is a option in svn to globally ignore specific files.
Just edit the file:

~/subversion/config

Find the line global-ignores, uncomment it and make it something like this:

global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store .AppleDouble ._*

Whoot!

No Comments »

Create new file option in OSX

In my opinion this is THE missing finder option... The ability to create a new file.
This finder plugin has exaclty this functionality: NuFile

No Comments »

Screenshot howto on MacOS X

Keep forgetting this commands. Copy/pasted this from daantje.nl.

* Command-Shift-3:
Take a screenshot of the screen, and save it as a file on the desktop
* Command-Shift-4, then select an area:
Take a screenshot of an area and save it as a file on the desktop
* Command-Shift-4, then space, then click a window:
Take a screenshot of a window and save it as a file on the desktop
* Command-Control-Shift-3:
Take a screenshot of the screen, and save it to the clipboard
* Command-Control-Shift-4, then select an area:
Take a screenshot of an area and save it to the clipboard
* Command-Control-Shift-4, then space, then click a window:
Take a screenshot of a window and save it to the clipboard

No Comments »

How to make a shortcut in OSX

Because i keep forgetting this crap:

Press Shift-Alt-Apple then drag the folder to somewhere to create a shortcut.
This only works on the SAME disk/partition.

No Comments »

Stop OSX from creating irritating dot files on network drives

To stop Max OSX from creating .DS_Store files on network drives (and prevent pissing of your co-workers) just type in this on a terminal and reboot:

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

3 Comments »

Mount a remote filesystem via SSH on OSX

When you use TextMate (or any other editor) for editing you cannot remote edit files when you use cyberduck. It even does not work when you connect to the FTP server using the Finder.

The ultimate solution to get this working is this: http://code.google.com/p/macfuse/

First install the MacFuse core, and the sshfs.
Now run sshfs, connect to your server, and drag the files from the mounted server to your project in TextMate.

No Comments »

Display date in OSX clock

I wanted to display the date in my OSX toolbar clock without any additional software. This link will help you do this: click here

No Comments »

Display date in OSX clock

I wanted to display the date in my OSX toolbar clock without any additional software. This link will help you do this: click here

No Comments »

TextMate OSX dubble click variables and selecting the complete variable with dollar sign

Frustrating... When you double click a variable $blah in your script most editors do not select the $ sign.
After testing dozens of editors i came to the conclusion i had to live with it.
For some stupid reason i suddenly see the option "Word characters".
Filling in _$ did the trick! Now TextMate selects variables the way it should.

picture-1.png

No Comments »

Disable Mac OSX dashboard

Want to get rid of the useless dahsboard and lower your memory usage?
Run these commands from a terminal:

defaults write com.apple.dashboard mcx-disabled -boolean YES
killall Dock

Want to enable the dashboard again? Run this:

defaults write com.apple.dashboard mcx-disabled -boolean NO
killall Dock

No Comments »