Friday, February 27, 2009
Republican Lies!
I know, "Republican Lies!" is like "Rain In Seattle!" But this one is so flagrant.Those high-earner tax increases that the Republicans keep whining about? They don't take effect till 2011. That's twenty months from now.We can debate the dubious assertion that a modest tax increase turns entrepreneurs into slackers. We shouldn't have to debate how a calendar works.
Tuesday, February 24, 2009
Make An Effort(s)
I wrote some simple code today: a batch job that counts the number of items in a queue, then emails the count to a couple of people. My first version sent a message like this:
There are 3 item(s) in the queue.
Then I smacked myself and dove back into the code. Now the message looks like:
There are 3 items in the queue.
or:
There is 1 item in the queue.
Maybe ten minutes to code and test, and I feel better. The item(s)
dodge is lazy, and looks so cheesy.
Friday, February 20, 2009
Lotus Domino - Sometimes Store And Forward Wins
In my day job, I babysit a fairly large Lotus Domino web application – call it ELF – at a very large financial services company. I do all the development and most of the production support.Some parts of ELF work like this:
- A customer request comes in through the web front end. (ELF handles about a dozen different kinds of requests);
- The web server stuffs the request into a Domino database;
- A batch job moves the request to a relational database.
- Web server running on one machine;
- Application server, a separate piece of software, running as a separate process on the same machine, or on another machine;
- Database server, a separate piece of software, almost certainly running on another machine.
Sunday, February 1, 2009
Clojure and MySQL, continued
I've been working through the Data Access section of the Clojure in the Wild chapter in Stuart Halloway's Programming Clojure. Here's a MySQL version of the last-created-id form:
(defn last-created-id "Extract the last created id. Must be called in a transaction that performed an insert. MySQL version." [] (:last_created_id (first (sql-query "select LAST_INSERT_ID() as last_created_id"))))
Subscribe to:
Posts (Atom)