Select Page

Tech Blog

Tech thoughts on various subjects

Concatenating Lists in Python

We frequently come across situations where we need to add together two Python lists. We do have a couple of syntax options available to us as developers and they do, of course, have their tradeoffs. There isn't necessarily one "right" answer for all situations. Let's...

Using Python to Select and Load a Random File

I had a task to create a mechanism to load sample data so that we could do some demonstrations. Our incoming data is in JSON format so I took a bunch of requests and put them into individual text files. The next task was to create a little Python program to choose one...

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-5c9a9645f0ecf549906045/] 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...