Face ID projects 30k infrared dots in a users face and captures the resulting image with an infrared camera. This allows the device to calculate a three dimensional representation of the face. The technology is similar to Microsoft’s Kinect . Apple has an amazing demo app to visualize the capabilities of this technology. My mug… Continue reading Get a 3D point cloud from Apple’s Face ID
Category: Software
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.
Batch convert wav files to mp3 in OSX using Terminal
for file in *.wav; do lame -V2 “$file” “${file%.wav}”.mp3; done Higher values of the -V* parameter will reduce the quality and decrease the file size of the mp3 files. Make sure lame is installed.
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
Export running virtual machine to ova file
ec2-create-instance-export-task {instance id} -e vmware -f vmdk -c ova -b {bucket name} Source: Exporting Amazon EC2 Instances – Amazon Elastic Compute Cloud
Start virtual machine from ova file stored in AWS S3 as new EC2 instance
aws ec2 import-image –cli-input-json “{ \”Description\”: \”Instance Name\”, \”DiskContainers\”: [ { \”Description\”: \”First CLI task\”, \”UserBucket\”: { \”S3Bucket\”: \”S2-BUCKET-NAME\”, \”S3Key\” : \”FILENAME.ova\”}}]}”
Capture network packets using tcpdump via command line for later inspection with Wireshark
sudo tcpdump -i any -s 65535 -w somefilename.pcapng
Create self signed SSL certficate in one command
Creates a certificate which is valid for 10 years: openssl req -nodes -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 3650