Force your Mac to stay awake
Great tip from lifehacker. If you want your Mac to stay awake, no matter what, just open a terminal and type
pmset noidle
To cancel this command just press Ctrl + C and your computer will be able to sleep again.
Great tip from lifehacker. If you want your Mac to stay awake, no matter what, just open a terminal and type
pmset noidle
To cancel this command just press Ctrl + C and your computer will be able to sleep again.
I've been using TextWrangler as default text editor in Mac for some time now and today I've been confronted with a small problem, I had an xml file that wasn't formated at all and I wanted a way to easily format the file. Searched in the Text Wrangler menus and didn't found a tidy option so I googled my problem.
As I expected, I wasn't the first one to have this problem so I quickly found a solution. And after a minute of work I had my XML file indented and formated as I would.
So ... here are the steps I did:
#!/bin/sh xmllint --c14n "$*" | XMLLINT_INDENT=$'\t' xmllint --format -
And there you have it, now if you go to the #! menu, Unix Filters submenu you will see your Format XML.sh, click it and your xml file will be automatically formated.
If you like to embed the album artwork directly into the audio files with iTunes there is a little script that you can use. All you have to do is download the script from here and follow the instructions in the pdf file that comes with.