Regular readers will note that I’ve been interested in how scp works and paramiko for the last couple of days. There are previous examples of how to do scp with paramiko out there, but the code isn’t all on one page, you have to read through the mail thread and work it out from there….
Category: Python
Posts relating to the python programming language.
SSL, X509, ASN.1 and certificate validity dates
I was curious about how SSL certificates store validity information (for example when a certificate expires), so I ended up reading the X509 specification (excitingly called “Internet X.509 Public Key Infrastructure Certificate and CRL Profile”), as well as the ASN.1 information for UTCTimes. This is all new to me, but I am sure lots of…
Dealing with remote HTTP servers with buggy chunking implementations
HTTP 1.1 implements chunking as a way of servers telling clients how much content is left for a given request, which enables you to send more than one piece of content in a given HTTP connection. Unfortunately for me, the site I was trying to access has a buggy chunking implementation, and that causes the…
Universal Feedparser and XML namespaces
I’ve always found python’s Universal Feedparser to be a bit hard to work with when using feeds with XML namespaces. Specifically, if you don’t care about the stuff in the namespaces then you’re fine, but if you want that data it gets a lot harder. In the past I’ve had to do some gross hacks….
Domain name lookup helper for python?
Hi. I have a list of the domain portion of URLs which looks a bit like this: Whois lookup for fycnds.digitalpoimt.com Whois lookup for wvgpzdea.digitalpoimt.com Whois lookup for zhnsht.digitalpoimt.com Whois lookup for frigo25.php5.cz Whois lookup for handrovina.php5.cz Whois lookup for blabota.php5.cz Whois lookup for pctuzing.php5.cz Whois lookup for viagraviagra.php5.cz Whois lookup for poiu.php5.cz Whois lookup…
Dear lazy web: writing to the win32 event log in Python
Dear Lazy Web, I have a need to be able to write to the MS Windows event log in Python. I must admit I don’t know a lot about Python on Windows. Does anyone have a good short sample they would like to share? Hugs and kisses, Mikal
Twisted conch
It seems to me that every time I go to write some networking code in Python, the twisted guys have got there before me. Today’s adventures are involving twisted conch, which seems very cool. The documentation is a bit patchy though.
Twisted Python and Jabber SSL
Ok, so I thought it would be cool to be able to send Google Talk messages to my MythTV box. Can’t be too hard to write a twisted python jabber client can it? Well, after an hour of surfing, I give up. I have the simple jabber client example, but it totally doesn’t work with…
Python DNS modules
My first python script involves doing some DNS lookups (for TXT records if that matters), and I am currently working through using the pydns module for this. Is this really the best DNS module to use for python though? For a start, it was last released in May 2002, and the documentation is somewhat sparse…
Example 2.1 from Dive Into Python
I’ve just started working through Dive Into Python, so I don’t really have an opinion of the book yet. I did notice that Example 2.1 produces different output on my machine than from the example… The example says I should get: server=mpilgrim;uid=sa;database=master;pwd=secret I get: pwd=secret;database=master;uid=sa;server=mpilgrim It’s interesting that this is exactly the reverse of what…