fernando blat

Programador, valenciano emigrado a Madrid. Trabajo en BeBanjo y parte del tiempo libre lo dedico a Toldo. ¿Quieres saber más? →

May 20, 2013 at 10:23am
0 notes

Thoughtbot best practices guide →

A guide for programming well.

May 18, 2013 at 7:22pm
23 notes
Reblogged from thoughtbot

Sandi Metz’ rules for developers →

thoughtbot:

Back in January, Sandi Metz introduced her rules for developers in a Ruby Rogues podcast episode episode. Around the time Sandi’s rules were published, the team I am on was starting a new project. This post details the experience of that team applying Sandi’s rules to the new application.

The…

May 17, 2013 at 4:58pm
0 notes

Cupón de 10% descuento para cualquier Kindle

Hace un par de días me enviaron de Amazon un cupón de 10% de descuento para cualquier Kindle. Como yo ya tengo uno he hecho una pequeña landing para el primero que lo pille:

http://cupon-kindle.blat.es/

Si me quieres devolver el favor abajo hay unos enlaces de afiliación a los Kindle que puedes comprar. Los puedes usar para comprar el Kindle en Amazon.

May 15, 2013 at 11:58am
0 notes

Magic Tricks of Testing (RailsConf) // Speaker Deck →

May 14, 2013 at 9:16am
0 notes

Enrique Comba Riepenhausen • How do you cook when you have never eaten? →

May 8, 2013 at 9:23am
35 notes
Reblogged from onethingwell
Stringer:


A [work-in-progress] self-hosted, anti-social RSS reader.
Stringer has no external dependencies, no social recommendations/sharing, and no fancy machine learning algorithms.
But it does have keyboard shortcuts and was made with love!

Stringer:

A [work-in-progress] self-hosted, anti-social RSS reader.

Stringer has no external dependencies, no social recommendations/sharing, and no fancy machine learning algorithms.

But it does have keyboard shortcuts and was made with love!

8:07am
0 notes

Millions (2004) Official Trailer (by boylemovietrailers)

★★★★☆

May 6, 2013 at 5:30pm
0 notes
(via xkcd: Is It Worth the Time?)

(via xkcd: Is It Worth the Time?)

May 1, 2013 at 7:45am
2 notes

Pulso: España en 2012 →

April 26, 2013 at 10:15am
0 notes

Alternativa d´esperança - Levante-EMV →

April 25, 2013 at 2:51pm
3 notes

La Liga de los Pragmáticos Optimistas

Ocho principios nucleares:

  • Un optimismo sin complejos sobre el futuro
  • Los miembros se involucran en proyectos que superan sus propias capacidades
  • Tus historias y opiniones están bien, pero tus hechos están mejor
  • Cometer errores está bien; no intentarlo es irresponsable
  • Eres lo que haces, no lo que te propones hacer
  • Las ideas están para ser compartidas, no protegidas
  • Los miembros se ocupan de gestionar su cinismo, y de tenerlo bajo control
  • LOPO es apolítica. Todas las tendencias son bienvenidas, pero no vengas a promover la tuya

+ info

April 20, 2013 at 12:27pm
2 notes

How we started to measure page rendering time in Toldo

In the last week we have been measuring the mean response time in the server of the public pages of Toldo shops, it is, how long takes Rails to render those public pages.

What we did is, by far, the simplest solution: each day we process the previous day logs using a simple bash script, which filters the requests from the shops and extracts the column with the response time.


values=`cat $1 | grep "Completed 200" | grep -v '\[tol\.do\]' | awk '{print $8}' | ruby mean.rb`

Also, a simple Ruby script helps calculating the mean:


# mean.rb
#!/usr/bin/env ruby

total = 0
sum = 0.0

STDIN.read.split("\n").each do |a|
  total += 1
  sum += a.to_f
end

puts "#{sum} #{total} #{"%.3f" % (sum/total)}"

Finally, we have been using the awesome dashboard service Ducksboard to generate some nice graphs. And this is the result (the time is in miliseconds):

image

In fact, we took profit of this measuring to introduce a nice improvement in the rendering time and check the impact (as you can see in the decrease of the rendering time of about the 40%).

The improvement was introducing fragment caching implemented with the gem cache_digests. We are still amazed by the fact that we hadn’t have to write any single line to expire the fragments. Take a look to this railscast if you want to learn how it works.

We are still considering new improvements, such as a better dealing of browser cache and finding a way to serve faster the fonts from Typekit.

But back to the post main topic, keep in mind that:

  • you don’t need any big implementation to start to measure stuff in your application
  • but measuring is necessary to learn the impact of your changes
  • Ducksboard is great, they have a nice API and they are Developer friendly
  • cache_digests FTW!

April 15, 2013 at 9:14pm
0 notes
Terracismo  (en Blatcueva)

Terracismo (en Blatcueva)

April 14, 2013 at 6:15pm
0 notes

Linode NextGen

Linode anunció el pasado día nueva la última de sus tres actualizaciones en su infraestructura con las que pretenden competir con servicios como Digital Ocean y sus discos SSD a 5 dólares.

Primero, fue una actualización en la red, luego doblaron el número de cores, y por último han doblado la RAM de todos los planes. Si entras en tu panel y ves esta imagen, estás de enhorabuena:

Yo siempre he sido bastante fan de Linode, por la calidad de sus VPS, su servicio técnico y sus precios económicos. De hecho, en Toldo tenemos el servidor principal funcionando en Linode desde hace más de un año sin ningún problema. En breve reiniciaremos el servidor para volver con el doble de RAM por la cara.

April 12, 2013 at 10:04am
0 notes

Embracing slow time by Jason Z. of 37signals →

People who struggle to work remotely often bemoan the lack of in-person collaboration jumping from this tool to that tech in an effort to recreate the magic that only happens when we’re all in the same room. There are definitely advantages to face time, but too often it seems like facial expressions and waving arms are substituted for clear thought and courtesy.

The next time you have a question for a coworker, try writing it out as if they were 1000 miles and 3 time zones away – even if they’re sitting right next to you. You might surprise yourself with the answer.