Select Page

Tech Blog

Tech thoughts on various subjects

Parsing JSON into Swift Objects

One of the kind of neat, newer features in Swift is that you can create classes that are Codable. In the app, I get some JSON from the server. Here’s the abridged JSON: [crayon-5c44d54fe2b22556373311/] You can create Swift structs that mirror the JSON and then decode...

Finding uptime of computers in Python

get_uptime program source codeAt work, I deal with a Windows environment.  Rebooting is a fact of life.  I try not to get too upset.  I try not to resist.  Like I said, it's a fact of life. We have a collection of worker computers that we use to run jobs.  Pretty...