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 *
Category: OSX
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
Shredding data on your Mac
You need to get rid of data in form of files, directories or drives? May be you know the ‘shred’ command on linux. On OS X, there is srm (stands for ‘secure rm‘): The following command will apply the secure remove to -directory in a -recursive way using all -force needed in a -medium (though… Continue reading Shredding data on your Mac
Need Internet Explorer in OSX?
Great article: http://osxdaily.com/2011/09/04/internet-explorer-for-mac-ie7-ie8-ie-9-free/