Author Archive for: smanchir

Edges, Corners, and Malformed Pickles


by
28 May
May 28, 2013

Pickle

A recent blog post here mentioned the difficulty that edge cases present. While we sometimes use ‘edge case’ to mean ‘rare condition’; if you want to be technical (and I do) specifically it refers to a case that occurs at an extreme of an operating parameter (a stereo speaker that fails at maximum volume).

In Jason’s example, the ‘edge’ is on the minimum side; if there’s no record in one system, the process stopped even though the other system could possibly have records in it. By analogy a ‘corner case’ is when more than one parameter is near it’s ‘edge’; two edges meet, and make a corner. (Say, when that same speaker only fails at maximum volume AND when in an environment of high humidity.) Read more →

EBG-13 naq lbh. (ROT-13 and you.)


by
10 Oct
October 10, 2012

So recently we’ve been working on encryption issues; implementing secure encryption between Java on a mobile device and Python on the server. Nothing too difficult, though it can be tedious making sure all the proverbial t’s are dotted and i’s are crossed. During a recent stand-up meeting I joked that if we needed to meet an upcoming deadline, I could implement an implementation of ROT-13 encryption pretty quickly, which would work for appearances sake.

Rather than the round of hearty laughter I was expecting at my witty retort (they are called stand-up meetings for a reason, yes?) I was met with confusion. People didn’t know what ROT-13 was! This made me feel sad, and old. (That, or they didn’t think my joke was funny, which seems rather unlikely.) In order to rectify this situation, here’s a short rundown of ROT-13. Read more →

Easy Python SOAP with SUDS, with a few Date/Time gotchas.


by
27 Sep
September 27, 2012

suds duckIn the world of web services, SOAP is a bit like the quip about the old Holy Roman Empire. It’s neither Simple nor an Object nor a Protocol (talk amongst yourselves). Actually though, the main thing is that it’s not all that simple. It’s just a teensy bit verbose and over-engineered for most uses. So in order to consume a partner’s SOAP web service with a minimum of overhead and teeth-gnashing, we use a very lightweight SOAP client called “suds”. In addition to its too-precious name, the other benefit of suds is that it is simple. To connect to a web service, you just do the following:

from suds.client import Client
url = 'http://localhost:3000/webservices/WebServiceTestThing?wsdl'
client = Client(url)

And you have a connection to the web service. It’s just that easy™. Read more →

© Copyright 2017 Findaway. All rights reserved.