Programming
- Examining Product Correlation in Customer Purchase Baskets
My self-assigned task was to look at all of the purchasing our customers have done and see whether there are any strong correlations between any purchased items. If we can find some strong correlation
- Using a Python Program to Post to an SFTP Server
We have a client that requested that we deliver a daily file with some data to their SFTP site. They planned to import the data into their systems in order to do some internal reporting. We are a Pyth
- Parsing Variable Numbers of Command Line Arguments in a Python Program
As part of the day job, I end up writing a lot of command utility-type scripts (programs). These are often scripts that are used very occasionally, like once per quarter. By the time a script is going
- 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. T
- Creating a Variety of Dummy Order Ids in Python
I have a work task to give our sales reps a tool where they can add dummy customer requests into our system. Since we ingest data from a variety of vendors, we have “order ids” that are in a variety o
- 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 file
- Capturing Video of Your iPad or iPhone App in Action
If you’re developing iOS apps there will come a time when you want to capture some video of your app in action. It may be for the marketing team. Or it may be for you to use to publish your app in App
- 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: You can create Swift structs th
- Using Python to Read Windows Event Logs from Multiple Servers
Reading Windows Event Logs In our shop, we have to monitor a whole bunch of Windows servers to try to keep aware of any issues. We have monitoring systems that let us know if computers or services fai
- How to send a message to Slack from your Python program
We use and love Slack for team messaging. We’re all in and out Slack throughout the day (and night). We depend on it for communication of our geographically distributed team. We also have lots of auto
- How to list Active Directory groups with Python
Getting a listing of the user groups from Active Directory (AD) is very similar to getting the list of users. We are making use of the ldap3 module. Giovanni Cannata provided us a pretty sweet tool. S
- Listing Active Directory Users Using Python
Sometimes it’s nice to be able to take a quick look at your Active Directory (AD) users and see what’s there and who is actually active. Here’s a quick little Python program to list out your current u
- Finding uptime of computers in Python
