Garmin, Science, Triathlon

Fitbit (and other optical/LED-based devices’) HR Accuracy

Reposted here from Facebook for reference: Not sure how many out there are Fitbiters but I believe this applies equally to all wrist/LED-based HR monitors (e.g. Apple Watch, Garmin devices, and other trackers). My own anecdotal testing corroborates this study as does DC Rainmaker’s review of the Garmin 235, i.e. they are good at low […]

iOS, Programming

Setting a UIButton’s Image in Swift

yourButton.ImageView?.image is a READ-ONLY property!!! yourButton.ImageView?.image is a READ-ONLY property!!! yourButton.ImageView?.image is a READ-ONLY property!!! yourButton.ImageView?.image is a READ-ONLY property!!! yourButton.ImageView?.image is a READ-ONLY property!!! yourButton.setImage(UIImage(named: “name_of_image”), forState: UIControlState.Normal)

Mac OS X, Programming

OpenMP Clang in Xcode

I’ve been playing around with prime numbers recently, which (naturally?) extended into an investigation into parallel programming. I installed the latest version of GCC 5 (v5.3.0 at the time of writing) using these instructions and got OpenMP running (support is built-in). I’m fine with using Terminal but I thought it would be interesting to try

General

NBA Playoff Bracket 2016

I just realized I forgot to post this. It’s not pretty, in that it doesn’t look nice. It was done through OfficePoolManager. I couldn’t find an online tool that allowed you to pick your teams like they have for March Madness and the NHL playoffs.

iOS, Programming

UITextView Padding

If you align a UITextView with another element, particularly a UILabel, using Auto Layout you will notice the text in the UITextView is slightly indented. The UITextView is actually implemented inside an NSTextContainer which has some padding around it. To remove this (left/right) padding, set the following property of the UITextView to zero: textView.textContainer.lineFragmentPadding = 0

iOS, Programming

Embedded Content Contains Swift Code

Ran into this error today: dyld: Library not loaded: @rpath/libswiftCore.dylib It was solved by changing the Build Option: Embedded Content Contains Swift Code to Yes The project in question was Objective-C based but had an embedded project (Charts) written in Swift.

iOS

Malware on the (Chinese) App Store

Here is a comment I wrote regarding the recent discover of apps containing malware on the Chinese App Store. 1. This is the first such event in over 7 years (and Billions of downloads) of the App Store’s existence, unlike the almost daily occurrence on other platforms. 2. You correctly didn’t echo the false and

Scroll to Top