Es mostren els missatges amb l'etiqueta de comentaris tecnic. Mostrar tots els missatges
Es mostren els missatges amb l'etiqueta de comentaris tecnic. Mostrar tots els missatges

dissabte, 18 de maig del 2013

Word Wrap #katayuno

I finally got the chance to attend a Softonic's Katayuno.

I love the Coding Dojo's in general, but those organised at Softonic are special because of their office decoration (out of the average) and because they're breakfast.

Once I got at Softonic I must say the ambient, even with an empty office, felt different from many other  companies I had visited before. The place is clean, ample and colorful you also have to consider the fact that's we were at story 9 which is over the average building height in Barcelona so the view was also quite stunning. Yes, you can see the sea from the dinner. And yes, there's a dinner.



Back to work

We got to work and after fiunchinho's introduction to TDD and red-green-refactor warmed-up on a first 30 minute pomodoro. The problem at hand was the KataWordWrap which fiunchinho selected specially for it's simplicity. It's not that he thinks we are stupid (which we are) it's that eh wanted us to complete the kata for once. SPOILER some of the pairs did complete the kata so fiunchinho just got a badge unlocked!

I paired twice in Java and after the break I paired once in scala. I'm still not very fluent in scala but I'm happy to report that we completed the kata in scala in little over a pomodoro (and I think we got further than previous pomodoros too!). Here's the final code:

This last session I paired with dvillacampa that is completely new to scala. I must say he very patiently listened to all my funoby comments about the language.

dimarts, 8 de maig del 2012

Simple Build Tool

Today I finally jumped into using sbt.

I found how to get it and how to setup my machine at it's GitHub documentation (https://github.com/harrah/xsbt/wiki/Getting-Started-Setup), and now trying to make it work with my current code (https://bitbucket.org/ignasi35/scala-eclipse).

The main reason why I chose to test sbt is the continous testing:

  • you can have sbt continually running (actually waiting for you to change something) and it will notice when something changed and compile and run it's tests. Actually, that's just a case of the actual feature: continous so you are not limited to continous testing.
So far I'm struggling to make it work with my existing FunSpecs.

dissabte, 28 d’abril del 2012

Reactor Pattern

It's been long since I last wrote in english (probably never) but I found today was a good day to take this nack (start anew).

I read lately a lot about programming languages. Being a 100% JAVA (lazy) guy I never found the right moment to start. Finally via Coding Dojo's at Run Room with the people from Agile Spain I lost fear and made the first step.

I'm currently focused on Scala. I chose an OOP+Functional to start with and discovered it's scripting too !?!?. I made that choice after I had my attempts the past with python (scripting) and found that learning paradigm and API all at once was too much for me. Having JAVA's API in Scala world is really helping.

But let's get back to the subject of the post.

Something I've been paying some attention involuntary is the reactor pattern. I read from it today at aitorciki's post on concurrency inabout python and there I learnt that it's what Node.Js is actually doing. That struck me. I had read about Twisted and also had seen Node.Js code but failed to see the pattern there. I'll now get to the theory and will start digging.

dijous, 11 d’agost del 2011

Cassandra

Fa unes setmanes que estic llegint Cassandra: The Definitive Guide [Kindle Edition]. A veure quan trobo l'excusa, el temps i els recursos per a posar en pràctica el que hi estic aprenent.

NOTA: Allí hi he descobert els Bloom Filters i he recuperat l'interès per les estructures de dades.

dijous, 7 de gener del 2010

Practicant amb OCR

Avís!!! Article molt técnic d'interés nul per a no freaks dels ordinadors.

Feia temps tenia pendent el fer algunes d'OCR (reconeixement automàtic de caràcters). Finalment avui m'hi he posat una horeta i ja tinc un parell d'opcions que funcionen força bé al meu Ubuntu 9.04.

Aquí les teniu:
#/bin/bash

INPUT=lala.tif
MID1=out.ppm
MID2=bw.ppm
OUTPUT=result
MID3=$OUTPUT.tif

rm $MID1 $MID2 $MID3 $OUTPUT.txt

## OPTION 1: tesseract
anytopnm < $INPUT > $MID1 ; pnmdepth 1 $MID1 > $MID2 ; pnmtotiff < $MID2 > $MID3 ; tesseract $MID3 $OUTPUT -l eng ; cat $OUTPUT.txt

## OPTION 2: gocr
tifftopnm $INPUT | gocr -v 0 -m 0 -e - -f UTF8 -