OS X: How to change an alias icon?

alias-iconI recently did some backup/restores and I noticed that the restored aliases, although fully functional, did not preserve the original icons.

Continue reading “OS X: How to change an alias icon?” »

OS X: How to change the main screen

DisplayIn multi-screen setups, for example a laptop with an external monitor, OS X prefers the laptop screen, which makes things a bit weird when using mainly the big screen, especially when having to confirm message boxes in the other screen.

Continue reading “OS X: How to change the main screen” »

OS X: Time Machine backup after hardware repairs

TimeMachineCourtesy of Apple, my laptop suffered a brain surgery, and the main board was replaced. Now it is almost as good as new, but since it still has a history, I would like to preserve it.

Continue reading “OS X: Time Machine backup after hardware repairs” »

pkg-config search path: PKG_CONFIG_PATH vs. PKG_CONFIG_LIBDIR

pkg-config is a very convenient tool for auto-configuring builds. The documentation includes a manual page and a guide.

Continue reading “pkg-config search path: PKG_CONFIG_PATH vs. PKG_CONFIG_LIBDIR” »

Java: Illegal UTF8 string in constant pool in class file

java-128While working on my GNU ARM Eclipse plug-ins, I ran into a nasty problem, out of the blue the Eclipse used for tests started to behave strangely, refusing to load a class responsible for depicting some debug views.

Continue reading “Java: Illegal UTF8 string in constant pool in class file” »

OS X: How to get the books out of iBooks

iBooks-Icon-128pxOne of the first questions I had when evaluating iBooks, was “How do I get my PDFs back from iBooks, if needed?”. The answer is pretty simple, and very Apple like: “You just drag them from iBooks to your folder of choice”.

Continue reading “OS X: How to get the books out of iBooks” »

OS X: Time Machine preventive maintenance

TMDiskIt was one of those moment when many things went wrong and the only way out was to restore the entire Mac from the Time Machine backup. But, before starting the process, I ran a file system check and… surprise, the file system was broken and repairs were needed. Several hours later the file system was repaired, the install performed and the machine was up and running without any (visible) problems. But the lesson was learned: Time Machine is great, but disks need some attention.
Continue reading “OS X: Time Machine preventive maintenance” »

C++: Meyers – Move Semantics

scottmeyersphoto Although a bit old, this presentation by Scott Meyers at ACCU 2011 can probably be considered one of the references on this subject. Continue reading “C++: Meyers – Move Semantics” »

C++: Stroustrup – C++11 Style – A Touch of Class

Bjarne StroustrupWith my increasing interest on C++11, this keynote that Bjarne Stroustrup gave at Going Native 2012, was an interesting lecture (fully available on YouTube)
Continue reading “C++: Stroustrup – C++11 Style – A Touch of Class” »

OS X: How to disable Acrobat as the Safari PDF viewer

Soon after switching to Mac I discovered that one of the myths that I lived with for many years, i.e. that Adobe Acrobat Reader is mandatory in order to view PDF documents, is no longer true.
Continue reading “OS X: How to disable Acrobat as the Safari PDF viewer” »