wesley tanaka

Using celery with SQS

()

Some notes about using celery with SQS:

  • acks_late does not seem to work
  • sending a task that's larger than the SQS message size limit fails with <?xml version="1.0"?><Error><Type>Sender</Type><Code>InvalidParameterValue</Code><Message>Value for parameter MessageBody is invalid. Reason: Message body must be shorter than 262144 bytes.</Message><Detail/></Error>

MessagePack vs JSON vs BSON

()

Here is a benchmark of MessagePack vs JSON vs BSON in Python 2.7.3 in Ubuntu 12.04.4 LTS on a 2.5 GHz Intel Core2 Quad Q8300. The software used was:

Too much hug

()

Ryan: Daaaddy, come out here, I'm lonely.

Wesley: Do you want a hug?

Ryan: Yeah

(hug)

Ryan: (starts squirming) Daddy, I’m not lonely anymore.

A little bit too late

()

Ryan: Daaaaaaddy, I want to save the animal cookie for later.

Wesley: Oh, okay, where is it?

Ryan: In my mouth.

The things you can do when you're twenty-one

()

Ryan: I'm going to be 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21

Wesley: Oh wow!

Ryan: . . . and then I can drink coffee!

Generation Gap

()

A little snippet of conversation from today:

(Wesley turns the radio on in the car)

Ryan: (from the backseat) It's a . . .  it's a podcast!

Install python packages without root access using easy_install or pip

()

You can run easy_install to install python packages in your home directory even without root access:

mkdir -p $HOME/lib/python2.7/site-packages

PYTHONPATH=$HOME/lib/python2.7/site-packages
export PYTHONPATH

easy_install --prefix=$HOME boto

Alternatively, you can use pip:

pip install --install-option="--prefix=$HOME" boto

There Is a Bird On Your Head!

()

My son loves There Is a Bird On Your Head!. He knows the book well, and used to read it in fairly orthodox fashion.

Recently though, he's started intentionally reading it incorrectly.

Create MySQL hashed password for Puppet password_hash setting

()

To generate a password_hash for a MySQL user in the puppetlabs-mysql Puppet Forge module, run the mysql command line program and run the query SELECT PASSWORD('opensaysme'); where opensaysme is the password you want to use for the MySQL user. For example:

Switching from GoDaddy.com to Namecheap.com

()

Years ago, I registered a few domain names with GoDaddy under their cheap promotional pricing. Every year since, I've wanted to transfer my domains away from GoDaddy to avoid their jacked up renewal fees, but every year I'd procrastinate until the expiration date and, out of fear that the transfer would fail and I'd lose the domain names entirely, I'd end up searching online for a coupon, biting the bullet, and renewing with them.  Last year, I tried to switch to 1&1 but they did not support wildcard domain names, so I gave up.

Syndicate content
by Wesley Tanaka