8. September 2018

How to disable autocorrection in Outlook on macOS

Outlook on macOS sometimes performs autocorrection when user types the text.

For an example when user write “Traban the best”. Then the text is corrected to “Trabant he best”.

The problem is caused by two features working together: Automatic detection of language and Check spelling as you type.

When Outlook encountered an email written in English which contained special characters (e.g. names in Recipient field) it decides to switch the language of the document to other language even though user writes in English.

There are two ways how to get rid of this annoying behavior. The first will work for just one email, the second will work for any email.

1. How to turn off autocorrection in one email.

When composing message switch the Options tab, click Language icon.

Check the first checkbox “Do not check spelling or grammar” and click Ok.

This will affect currently opened email.

2. How to turn off autocorrection in all emails.

Select menu Outlook, click Preferences.

Click Spelling & Grammar.

Uncheck checkbox “Check spelling as you type

Quit Outlook and start it again.

25. August 2018

How to switch between keyboard layouts on macOS by using keyboard shortcut

When you have two or more keyboard layouts on macOS (e.g. US, Dvorak) then the only way how to switch between them is to click the menu in the upper right corner. It’s not very convenient. On Windows you can use Alt + Shift to switch the layout.

The keyboard shortcut to switch between layouts is by default disabled. You have to enable it.

Go to System Preferences, click Keyboard, click tab Shortcuts, click item Input Sources, check Select next source in Input menu.

Now you can switch keyboard layout by Control + Option + Space

You can also edit the shortcut and use your own.

22. June 2018

How to display build log in Xcode

Xcode has a very minimalistic design when working with build errors. Sometimes it’s necessary to get more information about a failed build and it might not be obvious how to do it.

The answer is simple and it’s one click away.

Click on the last icon (text bubble) in the top left panel.

Now select the build and you’ll see all build information.

12. February 2018

Incompatible library version: requires version 19.0.0 or later, but .dylib provides version 18.0.0

I was trying to compile simple test application with FreeType2 on macOS just by a command line. Application compiled without problem.

The application was not able to start and displayed following error:

Compilation of FreeType
dyld: Library not loaded: /usr/local/lib/libfreetype.6.dylib
  Referenced from: /Users/georgik/projects/freetype-2.6.5/./fttest
  Reason: Incompatible library version: fttest requires version 19.0.0 or later, but libfreetype.6.dylib provides version 18.0.0

There is one handy tool on macOS which helps in cases like this one: otool.

otool -L ./ft-test
./fttest:
  /usr/local/lib/libfreetype.6.dylib (compatibility version 19.0.0, current version 19.5.0)
  /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.0.0)
  /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 495.0.0

The problem was caused by two versions of libfreetype on the macOS. One library was stored in /usr/local/lib and the other was stored in my project directory.

How to fix the issue? There are two options:

  • Remove unwanted library which is causing ambiguity
  • Set proper paths to DYLD_LIBRARY_PATH before starting the application

26. November 2012

There is more to C and C++. Slides from talk at FI MUNI 2012

This year I had opportunity to speak at two courses at FI MUNI. Check out slides 🙂

There is more to C (PDF)

Libraries ant tools for C++ (PDF)

Source code of examples is at GitHub: github.com/georgik/fimuni-c-cpp-examples

  • Quick search

  • Links

  • Twitter

    Follow @jurajmichalek on twitter.

  • Comments

  • Tags

  • Topics