Ich bin aus Motswana

The most flawed country selection dropdown I came across for a while. Found on http://ryanair.com. Ignoring the decision using adjectives for countries (making keystrokes useless for selecting) I can find at least four semantical mistakes in the list.

Published
Categorized as Software

Using Two-factor Authentication Secured Google Services on your iPhone

Problem You sync your Calendar or Contacts on your iPhone with Google’s CalDAV and/or CardDAV. But enabling multi-factor authentication for your Google Account causes the synchronization to fail. Because you know, you cannot enter the second factor somewhere. Solution A simple fix to keep using the secure 2-factor authentication but have your data synchronized using password authentication,… Continue reading Using Two-factor Authentication Secured Google Services on your iPhone

Debug authz_core Access Decisions in Apache 2.4

Add the following config, e.g. to /etc/httpd/conf/httpd.conf: LogLevel info authz_core:debug then make sure to reload apache (service httpd reload) and you will find a detailed reason, why access to a resource is granted or not in the error log.

Initialize UIColor from RGB hex in Swift

Want to initialize a UIColor object from a hex code? Create a new Swift class named “UIColor+FromRGB.swift” with the following content: import UIKit extension UIColor { static func fromRGB(colorCode: String, alpha: Float = 1.0) -> UIColor { let scanner = NSScanner(string:colorCode) var color:UInt32 = 0; scanner.scanHexInt(&color) let mask = 0x000000FF let r = CGFloat(Float(Int(color >>… Continue reading Initialize UIColor from RGB hex in Swift