<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Python on Andrew Walsh</title><link>https://www.awalsh128.com/tags/python/</link><description>Recent content in Python on Andrew Walsh</description><generator>Hugo -- gohugo.io</generator><language>en-US</language><copyright>© 2026 Andrew Walsh</copyright><lastBuildDate>Tue, 26 Mar 2013 21:21:59 -0700</lastBuildDate><atom:link href="https://www.awalsh128.com/tags/python/feed.xml" rel="self" type="application/rss+xml"/><item><title>Automated combinatorial and spot testing of web service operations.</title><link>https://www.awalsh128.com/automated-combinatorial-and-spot/</link><pubDate>Tue, 26 Mar 2013 00:00:00 -0700</pubDate><guid>https://www.awalsh128.com/automated-combinatorial-and-spot/</guid><description>&lt;h3 class="relative group"&gt;Introduction &amp;amp; Scope&#10; &lt;div id="introduction--scope" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#introduction--scope" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h3&gt;&#10;&lt;p&gt;When developing a new web service, you may need to do an initial spot test walk through the operations or try&#10;to break the service based on the permissible data type values. You could hand craft all the operations, with&#10;their respective arguments, into a handful of URLs but that would seem pretty inefficient. I found myself in a&#10;similar situation and wanted a programmatic way to walk through the service operations with a specific input&#10;data set. To be clear, I am not attempting to recreate a&#10;&lt;a href="http://www.soapui.org/" target="_blank" rel="noreferrer"&gt;full web service testing application&lt;/a&gt; but rather a simple script to spot check&#10;responses and catch any bugs in a web service endpoint's handler.&lt;/p&gt;</description></item><item><title>Text generation using Markov chains.</title><link>https://www.awalsh128.com/text-generation-using-markov-chains/</link><pubDate>Fri, 04 Jan 2013 00:00:00 -0800</pubDate><guid>https://www.awalsh128.com/text-generation-using-markov-chains/</guid><description>&lt;h3 class="relative group"&gt;Introduction&#10; &lt;div id="introduction" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#introduction" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h3&gt;&#10;&lt;p&gt;If you are already familiar with &lt;a href="http://en.wikipedia.org/wiki/Finite-state_machine" target="_blank" rel="noreferrer"&gt;finite automata&lt;/a&gt;, then&#10;understanding a &lt;a href="http://en.wikipedia.org/wiki/Markov_chain" target="_blank" rel="noreferrer"&gt;Markov chain&lt;/a&gt; will not be as hard. If you are not&#10;familiar with one, you can think of finite automata as a &lt;a href="http://en.wikipedia.org/wiki/Flowchart" target="_blank" rel="noreferrer"&gt;flowchart&lt;/a&gt;,&#10;with states and paths leading from one state to another&#10;&lt;a href="http://xkcd.com/627/" target="_blank" rel="noreferrer"&gt;based on some decision being made&lt;/a&gt;. An example could be a room with a light switch;&#10;there are the two states of having the light on or off. Using the light switch will transition you between the&#10;two states.&lt;/p&gt;</description></item><item><title>Detecting cycles in decimal digits and lists.</title><link>https://www.awalsh128.com/detecting-cycles-in-decimal-digits-and/</link><pubDate>Sun, 16 Oct 2011 00:00:00 -0700</pubDate><guid>https://www.awalsh128.com/detecting-cycles-in-decimal-digits-and/</guid><description>&lt;p&gt;I was recently working on solving &lt;a href="http://projecteuler.net/problem=64" target="_blank" rel="noreferrer"&gt;problem 64 for project Euler&lt;/a&gt; and one&#10;of the needed algorithms was a detection of cycles in a list. This routine works for detecting cycles in lists&#10;of cardinality greater than 2.&lt;br&gt;&#10;\&lt;/p&gt;</description></item></channel></rss>