Popular recipes by andy mckay http://code.activestate.com/recipes/users/92886/2001-12-06T18:47:01-08:00ActiveState Code RecipesCheck web page exists (Python)
2001-12-06T18:47:01-08:00andy mckayhttp://code.activestate.com/recipes/users/92886/http://code.activestate.com/recipes/101276-check-web-page-exists/
<p style="color: grey">
Python
recipe 101276
by <a href="/recipes/users/92886/">andy mckay</a>
(<a href="/recipes/tags/cgi/">cgi</a>).
Revision 4.
</p>
<p>For when you need to check a web page is still working.</p>
Looping through multiple lists (Python)
2001-06-29T16:53:42-07:00andy mckayhttp://code.activestate.com/recipes/users/92886/http://code.activestate.com/recipes/65285-looping-through-multiple-lists/
<p style="color: grey">
Python
recipe 65285
by <a href="/recipes/users/92886/">andy mckay</a>
(<a href="/recipes/tags/shortcuts/">shortcuts</a>).
Revision 2.
</p>
<p>Often you need to loop through every item of multiple lists and compare them. This can be done without a using a counter.</p>
Find IE Cookie (Python)
2001-10-12T15:16:05-07:00andy mckayhttp://code.activestate.com/recipes/users/92886/http://code.activestate.com/recipes/80443-find-ie-cookie/
<p style="color: grey">
Python
recipe 80443
by <a href="/recipes/users/92886/">andy mckay</a>
(<a href="/recipes/tags/web/">web</a>).
Revision 5.
</p>
<p>This script looks through your IE Cookies and returns a value of the chosen cookie</p>
Manipulating Windows Services (Python)
2001-05-30T18:01:14-07:00andy mckayhttp://code.activestate.com/recipes/users/92886/http://code.activestate.com/recipes/59872-manipulating-windows-services/
<p style="color: grey">
Python
recipe 59872
by <a href="/recipes/users/92886/">andy mckay</a>
(<a href="/recipes/tags/sysadmin/">sysadmin</a>).
</p>
<p>Its easy to mess with Windows Service using Python.</p>
Finding the intersection of two dicts (Python)
2001-06-19T16:28:37-07:00andy mckayhttp://code.activestate.com/recipes/users/92886/http://code.activestate.com/recipes/59875-finding-the-intersection-of-two-dicts/
<p style="color: grey">
Python
recipe 59875
by <a href="/recipes/users/92886/">andy mckay</a>
(<a href="/recipes/tags/shortcuts/">shortcuts</a>).
Revision 2.
</p>
<p>A simple little task, how to find the intersection of two hashes. There's probably many ways to do this but there is one way to avoid...</p>
Get the Windows service name from the long name (Python)
2001-09-20T22:03:15-07:00andy mckayhttp://code.activestate.com/recipes/users/92886/http://code.activestate.com/recipes/66311-get-the-windows-service-name-from-the-long-name/
<p style="color: grey">
Python
recipe 66311
by <a href="/recipes/users/92886/">andy mckay</a>
(<a href="/recipes/tags/sysadmin/">sysadmin</a>).
Revision 3.
</p>
<p>Many programs only show the long service description such as 'Windows Time', but this recipe finds you the actual service name.</p>
Getting a value from a dictionary (Python)
2001-05-29T09:51:54-07:00andy mckayhttp://code.activestate.com/recipes/users/92886/http://code.activestate.com/recipes/59866-getting-a-value-from-a-dictionary/
<p style="color: grey">
Python
recipe 59866
by <a href="/recipes/users/92886/">andy mckay</a>
(<a href="/recipes/tags/shortcuts/">shortcuts</a>).
</p>
<p>Want to get a value from a dictionary but want to make sure that the value exists in the dictionary? Then use the incredibly useful get method.</p>
Using xml-rpc (Python)
2001-08-17T00:13:10-07:00andy mckayhttp://code.activestate.com/recipes/users/92886/http://code.activestate.com/recipes/56034-using-xml-rpc/
<p style="color: grey">
Python
recipe 56034
by <a href="/recipes/users/92886/">andy mckay</a>
(<a href="/recipes/tags/xml/">xml</a>).
Revision 4.
</p>
<p>This simple recipe shows how you can pull recipes from O'Reilly's meerkat service using xml-rpc.</p>