Swift Get Web Request

import Foundation func doHttpCall(st : String) -> Data { var xmlStr = Data() let url = URL(string: st)! let semaphore = DispatchSemaphore(value: 0) let task = URLSession.shared.dataTask(with: url, completionHandler: {(data, response, error) in if let error = error { print("Error: \(error)") } else if let response = response as? HTTPURLResponse, 300..<600 ~= response.statusCode { print("Error: … Continue reading Swift Get Web Request

Stand!

Seven years ago I made a video about the inability of the Apple Watch to correctly track when one was standing, even though that’s one of the three things that it claims to track. Well, it hasn’t improved. I realize that it can’t really track whether one is standing or not, but what it does … Continue reading Stand!

It Just Works

A few days ago Atrios was complaining about Apple products, in that while it was once true that they “just worked”, at least for the most part, it was no longer true. He has a point, but what he neglected to mention is that the computing environment has gotten extremely more complex in the intervening … Continue reading It Just Works