July 2011
3 posts
“I think in general engineers tend to not care as long as people stay out of...”
– Robert Accettura - How do engineers at tech companies feel about their non-engineer colleagues?
Jul 28th
PostgreSQL trigger to update a tsvector column
One method of implementing full-text search in PostgreSQL is by storing your searchable content in a tsvector column. You can add a GIN index on this column for super fast full-text search, but its not required. The idea is that you have, for example, a title column that you want searchable. So you make a tsvector column and then store the search index for the title column in the tsvector...
Jul 23rd
Processing Resque jobs in Ruby that are queued by...
I am using the awesome Jesque package to process jobs from Resque. We have a mixture of Ruby and Java workers. All our workers accept a Hash of arguments. In one case I needed to create a job from Java to be consumed by a Ruby worker. To generate the appropriate argument structure I ended up making a dummy worker class like: and I materialize the Job like so: Using this technique I can properly...
Jul 8th