os x

Building MPlayer on OS X

Theres going to be a lot more here but first i have to say that there was an error when compiling for jpeg use:

ld: table of contents for archive: /usr/local/lib/libjpeg.a is out of date; rerun ranlib(1) (can’t load from it)

this was a bit strange until i found an article which helped me solve the problem. what this message is saying is that my table of contents is out of date. all i need to do is rerun some program called ranlib on it.

I think this happened because i had installed GImp already and so probably had an old version of libjpeg so when i built and installed a new one something out of date.

anyway i have to go now but will see if it compiles later.

Share

code
os x

Comments Off

Permalink

Sweet Search And Highlight Command

Been doing quite a bit of manipulating LaTeX files on the command line recently, and have a very sweet little command for searching for text in multiple files:

grep -r Hoffman */*.tex | less +/Hoffman

Where “Hoffman” is the search term which can of course be any regular expression.

The “less” command has a very convenient argument “+” which allows you to pass a search term in and will automatically highlight it for you.

The -r in grep recurses directories and */*.tex looks for all tex files. the | pipes the result to less.

sweet.

Share

bash
latex
linux commands
os x
regex

Comments Off

Permalink

Changing Icons OS X

Here is a great article :

http://interfacelift.com/icons-mac/articles/defaults_10-3-x.php

The disk icons are in the file :

IOStorageFamily.kext

Also you can change the icon of any normal folder simply by choosing “info” for it and then select the icon in the window and copy and paste from one to the other!

Share

os x

Comments Off

Permalink

Left handed cursors for OS X

Aha! finally i discovered a way to change my mousepointer easily….

http://www.unsanity.com/news/

they have quite a few cool things on there including completely changing the os x interface.

after trying quite a few different ones i discovered that i actually quite like the interface:) yeah v boring.

Another cool utility is window shade X which allows you to make all windows transparent so i can type this whilst watching a dvd in the background!

Share

os x

Comments Off

Permalink

Show hidden files on OS X

defaults write com.apple.finder AppleShowAllFiles TRUE

killall Finder

Share

os x

Comments Off

Permalink