Archive for the ‘Mac OS X’ Category

There are many applications built for X11 but running in Mac OS X using XQuartz. I heavily use Inkscape and it is so annoying when you have 2 or more monitors but constantly have to struggle with XQuartz windows. Inkscape disappears when moved to another monitor and there is no way to move it out unless switching to mirroring and moving the window to the outer border.

That was so annoying until I found a workaround that finally works! I’ve found it in Inkscape bugtracker, thanks to ~suv (suv-lp)! What you need to do is open Mac settings, then Mission Control section and uncheck “Displays have separate Spaces”. That’s it. After you log out and log in back your XQuartz will start displaying on other monitors.

Mac OS X Lion introduced some bug which I personally can’t understand. It resolves hosts via external DNS servers and then tries local hosts file. At least it looks so. This is annoying and makes no sense. I’ve been struggling this issue for a long time and finally I found a solution, thanks to Jeremy Dunn from Stack Overflow.
He pointed out to Lion’s bug in hosts file resolution. What you have to do is just write your local domains in the first line where is specified.
So your hosts file will look like this localhost
::1 localhost
fe80::1%lo0 localhost

This *somehow* makes Mac use it as the first option and the lag in resolution just goes away!
Here is the link to Jeremy’s answer:

I faced a problem with locales in terminal on Mac OS X Lion. Midnight Commander didn’t want to display cyrillic symbols in filenames, on remote Ubuntu I’ve been getting messages like “warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)”. The solution is fairly simple – add these two lines to ~/.bash_profile (by default is seems to be missing, so create the file):

# Setting for the new UTF-8 terminal support in Lion
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8

Thanks to Allen Bargi’s answer!

P.S.: Mountain Lion has the same issue and it gets solved in the same way.