I was walking across a bridge one day, and I saw a man standing on the edge, about to jump off. So I ran over and said, “Stop! Don’t do it!”
“I can’t help it,” he cried. “I’ve lost my will to live.”
“What do you do for a living?” I asked.
He said, “I create web services specifications.”
“Me too!” I said. “Do you use REST web services or SOAP web services?”
He said, “REST web services.”
“Me too!” I said. “Do you use text-based XML or binary XML?”
He said, “Text-based XML.”
“Me too!” I said. “Do you use XML 1.0 or XML 1.1?”
He said, “XML 1.0.”
“Me too!” I said. “Do you use UTF-8 or UTF-16?”
He said, “UTF-8.”
“Me too!” I said. “Do you use Unicode Normalization Form C or Unicode Normalization Form KC?”
He said, “Unicode Normalization Form KC.”
“Die, heretic scum!” I shouted, and I pushed him over the edge.
(with apologies to Emo Philips)
(resurrected from a dead Dive Into Mark posting from 2004)
If you’re using mysql and are trying to store UTC datetime values, and elsewhere are sane enough to use datetime values that are timezone aware, here’s a little type for stripping out the timezone data on store and replacing it on load:
from sqlalchemy.types import TypeDecorator, DateTime
from dateutil.tz import tzutc
from datetime import datetime
impl = DateTime
def process_bind_param(self, value, engine):
if value is not None:
def process_result_value(self, value, engine):
if value is not None:
Aand there goes another year. One day I’ll get back to blogging. At the moment I am coaching a seminar on game-making at nuvu studio!
I made a plugin for jquery that lets you intelligently check your server for changes in a web page.
See the project page or the canhas post for more details.
So, as I’d mentioned before, PayPal can really mess you over. Especially if you’re a small business, you should avoid them.
Sorry for the downtime, I forgot to change a config setting. I just wanted to let my loyal reader know that I am blogging more of my techie stuff at canhas.biz – the little company thing that I do.
I’ll try to say some more personal stuff soon too.
Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!