<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>Accadius</title><link>https://www.accadius.com/</link><description>Accadius blog</description><lastBuildDate>Thu, 19 Nov 2026 22:19:57 +0000</lastBuildDate><item><title>Examining Product Correlation in Customer Purchase Baskets</title><link>https://www.accadius.com/examining-product-correlation-in-customer-purchase-baskets/</link><guid>https://www.accadius.com/examining-product-correlation-in-customer-purchase-baskets/</guid><pubDate>Thu, 06 Jun 2019 17:02:02 +0000</pubDate><description>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 correlations then we can make some suggestions to customers about other products they may find interesting. It </description></item><item><title>Using a Python Program to Post to an SFTP Server</title><link>https://www.accadius.com/using-a-python-program-to-post-to-an-sftp-server/</link><guid>https://www.accadius.com/using-a-python-program-to-post-to-an-sftp-server/</guid><pubDate>Thu, 06 Jun 2019 15:43:39 +0000</pubDate><description>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 Python shop so we needed to come up with an appropriate solution. Using pysftp seemed like our […]</description></item><item><title>Parsing Variable Numbers of Command Line Arguments in a Python Program</title><link>https://www.accadius.com/parsing-command-line-arguments-in-a-python-program/</link><guid>https://www.accadius.com/parsing-command-line-arguments-in-a-python-program/</guid><pubDate>Sun, 24 Mar 2019 13:56:37 +0000</pubDate><description>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 to be reused, I have often forgotten what the script does and what input elements it needs. (Like [</description></item><item><title>Concatenating Lists in Python</title><link>https://www.accadius.com/concatenating-lists-in-python/</link><guid>https://www.accadius.com/concatenating-lists-in-python/</guid><pubDate>Sat, 23 Mar 2019 11:57:55 +0000</pubDate><description>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 look at the options. Let’s assum</description></item><item><title>Creating a Variety of Dummy Order Ids in Python</title><link>https://www.accadius.com/creating-a-variety-of-dummy-order-ids-in-python/</link><guid>https://www.accadius.com/creating-a-variety-of-dummy-order-ids-in-python/</guid><pubDate>Thu, 21 Mar 2019 13:41:26 +0000</pubDate><description>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 of formats. And our sales reps wanted to see the dummy data represent the variety […]</description></item><item><title>Using Python to Select and Load a Random File</title><link>https://www.accadius.com/using-python-to-select-and-load-a-random-file/</link><guid>https://www.accadius.com/using-python-to-select-and-load-a-random-file/</guid><pubDate>Sun, 17 Mar 2019 05:19:12 +0000</pubDate><description>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 of the […]</description></item><item><title>Capturing Video of Your iPad or iPhone App in Action</title><link>https://www.accadius.com/capturing-video-of-your-ipad-or-iphone-app-in-action/</link><guid>https://www.accadius.com/capturing-video-of-your-ipad-or-iphone-app-in-action/</guid><pubDate>Sat, 16 Mar 2019 05:35:28 +0000</pubDate><description>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 Store. But it will happen. There are a few options and, of […]</description></item><item><title>Parsing JSON into Swift Objects</title><link>https://www.accadius.com/parsing-json-into-swift-objects/</link><guid>https://www.accadius.com/parsing-json-into-swift-objects/</guid><pubDate>Sat, 12 Jan 2019 06:03:42 +0000</pubDate><description>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 that mirror the JSON and then decode (with data type validations/translations) easily. Here’s the corr</description></item><item><title>How I accessed a top tier networking company’s own internal network (using Server Side Request Forgery)</title><link>https://www.accadius.com/how-i-accessed-a-top-tier-networking-companys-own-internal-network-using-server-side-request-forgery/</link><guid>https://www.accadius.com/how-i-accessed-a-top-tier-networking-companys-own-internal-network-using-server-side-request-forgery/</guid><pubDate>Fri, 25 May 2018 21:04:13 +0000</pubDate><description>I have used DNSstuff and its great online tools for many years to help test the various DNS setups. As a matter of fact, the company I work for was a paying client for some of its advanced professional tools for many years. It provides an independent view of our web-based connection to the outside [</description></item><item><title>Using Python to Read Windows Event Logs from Multiple Servers</title><link>https://www.accadius.com/using-python-read-windows-event-logs-multiple-servers/</link><guid>https://www.accadius.com/using-python-read-windows-event-logs-multiple-servers/</guid><pubDate>Tue, 18 Jul 2017 04:10:40 +0000</pubDate><description>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 fail as a whole. But we have some of our own applications that write to the Windows Event logs […]</description></item><item><title>How to post a file to an AWS S3 from a Windows Python 3 program</title><link>https://www.accadius.com/post-file-aws-s3-windows-python-3-program/</link><guid>https://www.accadius.com/post-file-aws-s3-windows-python-3-program/</guid><pubDate>Mon, 22 May 2017 16:32:09 +0000</pubDate><description>Amazon Simple Storage Service (Amazon S3) gives you an easy way to make files available on the internet. They host the files for you and your customers, friends, parents, and siblings can all download the documents. You gotta figure they’re going to do a better job of hosting them than you would eve</description></item><item><title>Starting and Stopping an Amazon AWS Instance from a Windows Python Program</title><link>https://www.accadius.com/starting-and-stopping-an-amazon-aws-instance-from-a-windows-python-program/</link><guid>https://www.accadius.com/starting-and-stopping-an-amazon-aws-instance-from-a-windows-python-program/</guid><pubDate>Thu, 18 May 2017 16:03:33 +0000</pubDate><description>Sometimes you end up with a situation where you want to start (or stop) an Amazon AWS instance from your own program instead of using the AWS interface. It’s those occasions where something weird is going on in your systems when you want to handle a problem magically rather than having to go to the </description></item><item><title>How to send a message to Slack from your Python program</title><link>https://www.accadius.com/send-message-slack-python-program/</link><guid>https://www.accadius.com/send-message-slack-python-program/</guid><pubDate>Tue, 16 May 2017 23:28:01 +0000</pubDate><description>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 automated processes/jobs/programs running. Sometimes those things need to communicate with us and let us</description></item><item><title>Reading the SSH Output</title><link>https://www.accadius.com/reading-the-ssh-output/</link><guid>https://www.accadius.com/reading-the-ssh-output/</guid><pubDate>Thu, 04 May 2017 19:29:21 +0000</pubDate><description>Reading the SSH Output – about 20 minutes Our next step is conceptually pretty straightforward, but the details are a bit complicated. We’re using Paramiko to pretend programmatically like we are a human being using an SSH connection. We send commands to the host. The host executes the command and t</description></item><item><title>Getting started</title><link>https://www.accadius.com/getting-started/</link><guid>https://www.accadius.com/getting-started/</guid><pubDate>Thu, 04 May 2017 19:29:20 +0000</pubDate><description>Getting started – about 10 minutes We’ll start by writing a little program to that can test out whether we can successfully connect to an SSH host device. This will be a short program but it will lay the foundation upon which we will build more useful tools. So, let’s take a look at our […]</description></item><item><title>Merging SSH connectivity and database access</title><link>https://www.accadius.com/merging-ssh-connectivity-and-database-access/</link><guid>https://www.accadius.com/merging-ssh-connectivity-and-database-access/</guid><pubDate>Thu, 04 May 2017 19:29:20 +0000</pubDate><description>Merging SSH connectivity and database access – about 10 minutes We already have some amazingly useful functionality. Now we can start to tie things together. We have the code to connect to an SSH host and execute a simple command. We also have the code to save and retrieve our device information wit</description></item><item><title>Saving the SSH command results</title><link>https://www.accadius.com/saving-the-ssh-command-results/</link><guid>https://www.accadius.com/saving-the-ssh-command-results/</guid><pubDate>Thu, 04 May 2017 19:29:20 +0000</pubDate><description>Saving the SSH command results – about 10 minutes Way back in the beginning we talked about this project being able to save config info locally. And then we talked a bunch about databases, SSH connections, functions, and variables, but we haven’t actually saved anything locally yet. You probably did</description></item><item><title>Moving from low class to high class</title><link>https://www.accadius.com/moving-from-low-class-to-high-class/</link><guid>https://www.accadius.com/moving-from-low-class-to-high-class/</guid><pubDate>Thu, 04 May 2017 19:29:20 +0000</pubDate><description>Moving from low class to high class – about 15 minutes Our class has done a reasonable job of wrapping up our concept of a host. We can make some improvements to the class that make it a little easier and safer to use from the outside. The class has some parameters that are required, […]</description></item><item><title>Base class</title><link>https://www.accadius.com/base-class/</link><guid>https://www.accadius.com/base-class/</guid><pubDate>Thu, 04 May 2017 19:29:20 +0000</pubDate><description>Base class – 30-40 minutes This can be a confusing topic if you don’t already have experience with object-oriented programming. It takes some reading, some thinking, maybe some re-reading, and the concepts will come to you. It’s not easy, but it’s definitely worth it. We’re going to create a base cl</description></item><item><title>Speaking more languages</title><link>https://www.accadius.com/speaking-more-languages/</link><guid>https://www.accadius.com/speaking-more-languages/</guid><pubDate>Thu, 04 May 2017 19:29:20 +0000</pubDate><description>Speaking more languages – 15 minutes Since we have refactored some code into a base class and have now implemented the SSH class, we’re ready to add a new protocol. Let’s get this bad boy talking over Telnet. It’s actually a relatively small implementation to create the TelnetHost class. But first w</description></item><item><title>Speaking telnet better</title><link>https://www.accadius.com/speaking-telnet-better/</link><guid>https://www.accadius.com/speaking-telnet-better/</guid><pubDate>Thu, 04 May 2017 19:29:20 +0000</pubDate><description>Speaking telnet better – 10 minutes In our last iteration of the program we introduced the TelnetHost class. However, the class didn’t really fully implement Telnet communications. It just executed a quick command to make sure that things work. Let’s make that bad boy do some real work now. We add a</description></item><item><title>Refactoring</title><link>https://www.accadius.com/refactoring/</link><guid>https://www.accadius.com/refactoring/</guid><pubDate>Thu, 04 May 2017 19:29:20 +0000</pubDate><description>Refactoring – 5 minutes When we consider what’s going on in these classes there are some subtle improvements we can make. For example, our TelnetHost and our SSHHost classes each have their own send_command_and_get_response() method. And they do the same thing. We try not to repeat ourselves (DRY) i</description></item><item><title>Efficiency</title><link>https://www.accadius.com/efficiency/</link><guid>https://www.accadius.com/efficiency/</guid><pubDate>Thu, 04 May 2017 19:29:20 +0000</pubDate><description>Efficiency – 5 minutes There’s no need to recreate the database every time we run our program. So let’s check whether the database exists and only create a database if it doesn’t exists. We can start by renaming our setup_database() where it’s defined and where it’s called. ## from: ## def setup_dat</description></item><item><title>Adding a little class to our project</title><link>https://www.accadius.com/adding-a-little-class-to-our-project/</link><guid>https://www.accadius.com/adding-a-little-class-to-our-project/</guid><pubDate>Thu, 04 May 2017 18:11:38 +0000</pubDate><description>Adding a little class to our project – about 30 minutes We actually have a pretty useful little utility at this point. It can keep a list of devices, connect to all of those devices, and save the output to your local disk. That’s a pretty good feature set. You could wrap it up here […]</description></item><item><title>Adding a little database</title><link>https://www.accadius.com/adding-little-database/</link><guid>https://www.accadius.com/adding-little-database/</guid><pubDate>Wed, 03 May 2017 20:18:13 +0000</pubDate><description>Adding a little database – about 15 minutes We want to be able to have our application back up information from the host devices on our network. Devices, plural. And I think that if I had to list out those devices every time I needed to back them up I’d probably give up or forget […]</description></item><item><title>Setting Up Your Environment</title><link>https://www.accadius.com/setting-up-your-environment/</link><guid>https://www.accadius.com/setting-up-your-environment/</guid><pubDate>Wed, 03 May 2017 20:16:46 +0000</pubDate><description>Setting Up Your Environment – about 20 minutes Python Itself We’ll presume you’re using a civilized operating system and that you already have Python installed. If you’re not in this situation then you can install Python pretty easily. Once you have Python running you can verify that your version is</description></item><item><title>Using Python to Automate Network Administration Task</title><link>https://www.accadius.com/using-python-automate-network-administration-task/</link><guid>https://www.accadius.com/using-python-automate-network-administration-task/</guid><pubDate>Wed, 03 May 2017 20:14:33 +0000</pubDate><description>Using Python to Automate Network Administration Task So I rolled into work, grabbed my second cup of coffee for the day and sat down at my desk. I had to make some network config changes, but I had put off applying the changes. I knew I was going to be updating a few devices and […]</description></item><item><title>How to list Active Directory groups with Python</title><link>https://www.accadius.com/list-active-directory-groups-python/</link><guid>https://www.accadius.com/list-active-directory-groups-python/</guid><pubDate>Wed, 26 Apr 2017 04:24:24 +0000</pubDate><description>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. Send the brother some love. The key difference between the User listing and the Group listing is the </description></item><item><title>Listing Active Directory Users Using Python</title><link>https://www.accadius.com/listing-active-directory-users-using-python/</link><guid>https://www.accadius.com/listing-active-directory-users-using-python/</guid><pubDate>Wed, 26 Apr 2017 04:23:19 +0000</pubDate><description>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 users. It’s not a very heavy duty program thanks to the ldap3 module. You can install the module […]</description></item><item><title>Finding uptime of computers in Python</title><link>https://www.accadius.com/finding-uptime-of-computers-in-python/</link><guid>https://www.accadius.com/finding-uptime-of-computers-in-python/</guid><pubDate>Tue, 25 Apr 2017 22:28:06 +0000</pubDate><description></description></item></channel></rss>
