A long time user of Python and Twisted, I have used Python and Twisted to developed some production systems that processed 60 – 80 million messages a day. It wasn’t pretty but the code base was fairly small and it worked, but not simply. Our deployment machines were Sun T1000 Niagara based machines. We were [...]
Here is some Python code I have found useful when working with selecting files in the filesystem to operate on. This FileSet object works very much like the Java Ant task of the same name. class Action: """ Actions are things that can be executed. """ def execute(self): pass class PatternSet: """ Pattern set provides [...]
If you think you are writing RESTful applications and your URLs look like this: http://mydomain.com/myapp/rest/controller?method=updatePerson&fname=Jarrod&lname=Roberson&bunchmorefreeform=data Then you are NOT doing rest, you are doing Remote Procedure Calls (RPC) over HTTP/GET. Which is about as opposite of the entire REST manifesto as you can get. I have worked on countless projects that I have joined mid-development [...]
Here are a couple of aliases I create on a fresh OSX machine. alias dir=’ls -AlGh’ alias spot=’mdfind -onlyin . $1′ The dir alias is all the most useful ls options all at once. mdfind is the command line interface to the Spotlight service on OSX. You can use the option -name to restrict the [...]
Filed in OSX, Unix / Linux
|
Tagged alias, bash, linux, mdfind, osx, prompt, ps1, shell, spotlight, unix
|
Groovy has some wrappers around the apache.commons.cli via their CLIBuilder class. This is a pretty old and crusty library that has some significant limitations. I prefer to use the Java Simple Argument Parser (JSAP) library. Especially since they have added the ability to declare argument definitions in a declarative XML file. This reduces the code [...]