OS X: Reinstall OS stuck at "2 minutes left"

Posted on Sat 21 March 2015 in tech • Tagged with osx

You probably have used homebrew. Haven't you? In the last step of the reinstallation the installer moves / checks files in /usr/local. If you have a lot of files over there (for example because you used homebrew), this takes forever.

Do not abort the installation. Press cmd+L to see …


Continue reading

x86 assembly on OSX

Posted on Sat 21 March 2015 in tech • Tagged with osx, code, assembly

During last terms compiler design course I learned x86 assembly "the hard way"... Here's some stuff that I "found out" while developing x86 assembly on OSX 10.10.

Read this first

I'm writing this post a couple of months after the course. I did not lookup the instructions and I'm …


Continue reading

Run IntelliJ IDEA 14 on OSX with Java 8

Posted on Sat 21 February 2015 in tech • Tagged with osx, intellij, java

Starting with Yosemite Apple finally stopped shipping Java 6 with OSX. It's recommended to install the latest Java version directly from Oracle. Unfortunately IntelliJ IDEA needs Java 6 (!) to start. Here is the recommended way to run IntelliJ IDEA with Java 8.

# first, install IntelliJ to /Applications
mkdir ~/Library/Preferences …

Continue reading

Move/Copy mails between different IMAP accounts

Posted on Sat 15 November 2014 in tech • Tagged with osx, linux, imap, gmail

I decided to switch back to Gmail/Inbox by Gmail. Copying thousands of mails in Thunderbird is a pain and after a couple of unsuccessful tries I started to search a better working alternative. mutt to the rescue!

# login to your old imap account:
mutt -f imaps://username@oldmailserver/INBOX …

Continue reading

Manually installing Boost 1.55 on OSX

Posted on Sun 19 October 2014 in tech • Tagged with osx, homebrew, boost, c++

Boost 1.56.0 which is currently installed by homebrew is broken. Just try to compile the following C++ program. It will fail.

#include <boost/graph/adjacency_matrix.hpp>

int main() {
}

Here are the steps to manually install Boost 1.55:

  • Download Boost 1.55 here
  • Extract the source and cd …

Continue reading

Enable homebrew for non admin users

Posted on Sat 18 October 2014 in tech • Tagged with osx, homebrew

Even on OSX you should not be working with an admin account. Here are the steps to make homebrew usable for non admin users.

Assumptions

I assume brew has already been installed by an administrator and it's login is admin. Change admin below to the name of your admin account …


Continue reading

OSX 10.10 (yosemite): configure: error: C compiler cannot create executables

Posted on Sat 18 October 2014 in tech • Tagged with osx, homebrew

Problem: brew fails with "configure: error: C compiler cannot create executables"

==> Upgrading 1 outdated package, with result:
python3 3.4.2_1
==> Upgrading python3
==> Downloading https://www.python.org/ftp/python/3.4.2/Python-3.4.2.tar.xz
Already downloaded: /Library/Caches/Homebrew/python3-3.4.2.tar.xz
==> ./configure --prefix …

Continue reading