menu

Alumni blogs

Lots of our people have lots of opinions. Here are just a few of them

ThoughtWorks embraces the individuality of the people in the organization and hence the opinions expressed in the blogs may contradict each other and also may not represent the opinions of ThoughtWorks.

Sete perguntas para organizar ações – O 5W2H!

#VivaSeuTempoQuando alguém começa a pensar em uma ação, uma meta, um objetivo, e tenho a chance de ajudar, começo a querer questionar algumas coisas. O objetivo é para ajudar a pessoa a conhecer mais daquela ação e entender quais são as restrições. Eu adoro restrições. Entendo que elas nos ajudam a ter mais visibilidade e nos ajudam a perceber melhor os riscos envolvidos. Aqui vou mostrar como faço uso do 5W2H, uma série de perguntas que são muito úteis. Acompanhe!

Quem? (Who)

Eu começo perguntando quem vai fazer a atividade? Quero entender aqui quem está no controle. Não adianta termos um objetivo que dependa totalmente…

Blog post by Daniel Wildt
17 April 2014

Original Link

Blog post by Trisha Gee
17 April 2014

Original Link

How to specify controller and action in rails form

Here’s a simple example of how to create a form specifying the controller action method in the form request.

rails-form

routes.rb

  match '/load',      to: 'load#new',           via: 'get'
  match '/load',      to: 'load#create',        via: 'post'

load/new.html.erb


load_controller.rb

class LoadController 

Here I am just purposely raising an exception to see if I hit the create method.

Running it looks like this

rails-parameters

You can see and pull the request params at the bottom like this:

  def create
    ...
    query = params[:q]
  end

Filed under: rails Tagged: action, controller, forms, rails

Blog post by Jonathan Rasmusson
16 April 2014

Original Link

Blog post by Trisha Gee
16 April 2014

Original Link

Blog post by Trisha Gee
15 April 2014

Original Link

Neo4j 2.0.0: Query not prepared correctly / Type mismatch: expected Map

I was playing around with Neo4j’s Cypher last weekend and found myself accidentally running some queries against an earlier version of the Neo4j 2.0 series (2.0.0).

My first query started with a map and I wanted to create a person from an identifier inside the map:

WITH {person: {id: 1}} AS params
MERGE (p:Person {id: params.person.id})
RETURN p

When I ran the query I got this error:

==> SyntaxException: Type mismatch: expected Map but was Boolean, Number, String or Collection (line 1, column 62)
==> "WITH {person: {id: 1}} AS params MERGE (p:Person {id: params.person.id}) RETURN p"

If we try…

Blog post by Mark Needham
13 April 2014

Original Link

When is POF a Good Idea?

POF is a pretty cool thing. Like Protocol Buffers, which they are largely identical to, POF provides an space-efficient, byte-packed wire / storage format which is navigable in its binary form. This makes it far better than simple Java serialisation. Being a bit-packed format it’s important to understand the performance implications of extracting different parts of the POF stream. This being different to the performance characteristics of other storage formats, particuarly fixed width ones, such as those used in most databases.

This post looks a little more closely at POF as well as examining when it is best to…

Blog post by Ben Stopford
12 April 2014

Original Link

POF Primer

This is a brief primer on POF (Portable Object Format) used in Coherence to serialise data. POF is much like Google’s Protocol Buffers so if you’re familiar with those you probably don’t need to read this.

POF a variable length, bit-packed serialisation format used to represent object graphs as byte arrays in as few bytes as possible, without the use of compression. Pof’s key property is that it is navigable. That is to say you can pull a value (object or primitive) out of the stream without having to deserilalise the whole thing. A feature that is very useful if…

Blog post by Ben Stopford
12 April 2014

Original Link

Thank you. Gutted.

I went for a short run last night, the last before the big race. After ten minutes I pulled up in agony. My ankle, which I’d previously strained but thought I could run through, (it’s had physio and was strapped up), got the better of me.  This morning when I woke up it was inflamed, swollen, still painful and tender.

I’m stubbon. The thought of not running the London Marathon fills me with loathing. I’ve trained so hard for it. To be taken away from me, the day before is hard to take. Even more so given how much people…

Blog post by Marc McNeill
12 April 2014

Original Link

How to cut a circle in half with illustrator

Say you want a semi-circle and you want to split it in half.

half-circle-illustrator

Here’s how you do it.

Draw your circle

cirlce-illustrator

Select the knife tool

knife-tool-illustrator

Holding down the ‘Option’ key on your Mac, with your shape selected, drag the knife across the circle in a straight line.

cut-circle-illustartor

Now you should be able to drag one shape away from the other. Except this doesn’t always work for me (sometimes the whole shape wants to move).

In that case bring up the ‘Path Finder’ Window and with your newly cut shape highlighted select the ‘Minus Front’ option. That should cut away the…

Blog post by Jonathan Rasmusson
10 April 2014

Original Link