Posts

Fix file permissions in Mac OS X

A few days ago I copied a bunch of files/folders from an external NTFS formatted hard drive to my MacBook. The files where copied ok, but the permissions where messed up. How did I fix them? With this simple command: $ chmod -Rv u=rwx,g=rx,o=r username path_to_base_folder It recursively goes through all files and folders and fix their permissions. Source!

Atlético de Rafaela ascendió a Primera División

Image

Haskell in TextMate (Snow Leopard)

How to install the bundle: mkdir -p /Library/Application\ Support/TextMate/Bundles cd /Library/Application\ Support/TextMate/Bundles git clone https://github.com/textmate/haskell.tmbundle That's it! Excelent Source!

Sync iPhone apps with iTunes without deleting them

Warning: This is only for  apps! Music and other things will not be saved! Question I have a few apps on my iPhone, and would like to sync them with iTunes without erasing them from my phone. Is this possible without downloading them all again? Answer   secondary click the iPod/iPhone on the left  click "transfer purchases"   Afterwards, you can sync, and "everything" will be erased and rewritten to the Device. source

Read and Write NTFS partition under Snow Leopard

This is experimental, and known to be unstable, use at your own risk. You need to modify /etc/fstab file to mount NTFS partitions for read and write. First, uninstall NTFS-3G/Paragon if installed. Open Terminal run diskutil info /Volumes/volume_name and copy the Volume UUID. Backup /etc/fstab if you have it (shouldn't be there in a default install).  Run sudo vim /etc/fstab and write: UUID=paste_the_uuid_here none ntfs rw or LABEL=volume_name none ntfs rw (if you don't have UUID for the disk). Repeat for other NTFS partitions. Restart your system. Thats all! source (great web)

Resize images with Preview (Snow Leopard)

Image
Alternative 1 A Quick way to resize images in batches could be find that Preview has that functionality. Open the whole batch of images in Preview; the images will all open in the same window with thumbnails visible in the sidebar. Select all of the thumbnails in the sidebar (with Command-A, or click the first and then click the last while holding Shift). Next, from the Tools menu, choose Adjust Size. You’ll be presented with a dialog containing options to resize to all the common 4:3 and 16:9 screen sizes, as well as the option to define custom dimensions. Images are scaled proportionately and resampled by default. snow leopard preview image resize Save the resized images, and you’re done! Preview will prompt you to save any changes if you attempt to close the window. Alternative 2 You can also use sips on the command line: sips -Z 1024 *.jpg will resample to a max of 1024 px for the long edge. Note that sips rewrites images in place, so you should do this on a copy if you care. s...

Playing DVDs Ubuntu 10.04

Playing DVDs In order to play DVDs you must install some additional software. Unfortunately, DVD support cannot be provided by default in Ubuntu due to legal restrictions in some countries. Read about restricted formats before following the instructions below. There are some legal issues that you should be aware of. Install the libdvdnav4 , libdvdread4 , gstreamer0.10-plugins-bad and gstreamer0.10-plugins-ugly packages. If you would like to play encrypted DVDs, press Applications → Accessories → Terminal and type the following into the screen which appears, followed by the Enter key: sudo /usr/share/doc/libdvdread4/install-css.sh Enter your password if prompted. The libdvdcss2 package will be downloaded and installed from a website. Insert a DVD into your drive. It should open automatically in the Movie Player. from help.ubuntu.com