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.

Tyn Church Prague

Tyn Church, or The Church of Our Lady Before Tyn, dominates one side of the Old Town Square.

Merge a Bunch of PDF Files into one File in OSX using the Command Line

Do you have a bunch of PDFs you need to merge into one file? Don’t want to use Preview to tediously drag-and-drop them together? In the Terminal, navigate the the folder where the PDFs are, and run: “/System/Library/Automator/Combine PDF Pages.action/Contents/Resources/join.py” -o merged.pdf  *  

Published
Categorized as OSX Tagged

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

My favourite club in Sofia

If you are looking for a club with decent music in the heart of Sofia, go for / Bar Brilliantine (БРИЛЯНТИН). That is my best pick so far.

Published
Categorized as Travelling