Show hidden files in Finder
To display hidden files in Finder type the following commands in the Terminal:
$ defaults write com.apple.finder AppleShowAllFiles TRUE $ killall Finder
Linux, SW, networking and more!
Archive for the ‘mac’ Category.
To display hidden files in Finder type the following commands in the Terminal:
$ defaults write com.apple.finder AppleShowAllFiles TRUE $ killall Finder
To merge and/or remove PDF pages we need the sidebar so press the sidebar button (see first figure). You can switch from thumbnails to table of contents from the button located at the bottom right corner (see second figure).


Merge PDFs.
Open the first PDF and then just drag & drop the second PDF to the sidebar, between the pages where you want it to appear (see figure).

Delete a page.
Select the page you want to delete (in the sidebar) and type Command (The key with an apple) + Backspace.
Add a blank page.
Select Edit -> Insert Blank Page.
Crop an image or file.
First click the select tool. Then select an area of your document or image and hit Command + k.

Now you can save the cropped page or image with Command + s.

Today I tried to extract documentation from source code programmed in Visual Studio using doxygen. The Latex document didn’t compile correctly because of encoding problems. Googling for a solution I’ve discovered that Visual Studio may include some strange characters in the saved files.
To fix the files I’d recommend using an Hexadecimal Editor. In my case I’ve chosen hexedit. Opening the file with Hexedit shows those unwanted characters at the beginning of the file. By removing them and saving the file the problem with Latex disappeared. Hope it helps in case someone runs into the same issue.

If you need to open a file from the command line (e.g. a PDF file) you can use the open command:
open -a Preview filename.pdf
In general working from the console is fast and effective, specially if you combine it with bash scripting skills.
Generally, Mac applications come with code for architectures you don’t need (e.g. PowerPC code) and with many languages you don’t use. Xslimmer removes these unneeded features, saving a great amount of disk space. In my case I’ve recovered 3GB, impressive huh?

For scheduling periodical tasks you have Cron. But if you just want to schedule a command to run later you can use at.
# at 12:00 # at> echo “Scheduled phrase”|mail addr@provider.com # at> (type control+d) job 6 scheduled at 2009-06-16 12:00
You can see the scheduled tasks with atq and remove them with atrm
# atq 6 2009-06-16 12:00 a root # atrm 6 (where 6 is the task id)
Seen on Lifehacker. Two years ago I bought a Macbook and from that moment on, I’m pretty much in love with the Mac look & feel. Its ease of use and integration are impressive. Mac4lin brings these fancy features to the Linux Desktop. It includes skins, wallpapers and interface refinements that resemble the Mac experience. It definitely worths a try!
