He creado una presentación para contar a unos amigos lo más básico sobre OpenID y OAuth.
Salud y rocanrol
¿Quién tiró la piedra? ¿Quién escondió la mano?
¡Quién le puso el pie al gordo del "Gran Hermano"?
Quien sabe lo que sabe, sabe que no sabe nada.
El que nada no se ahoga o le dan por la almorrana
¡O le dan por la almorrana!
Y si tiene almorranas es que sufre en silencio.
El silencio pa' los muertos, yo me quedo con un tercio.
Tres tercios son un litro o cinco botellines.
Con cinco botellines hay que echarse un cigarrito.
¡Hay que echarse un cigarrito!
miércoles, 28 de octubre de 2009
domingo, 25 de octubre de 2009
La absurdez hecha duda
Hoy me ha surgido la duda de cómo hacer una validación de unicidad sobre dos atributos de un modelo. Nunca había tenido que hacer algo similar en Rails.
La mejor opción que he encontrado ha sido
validates_uniqueness_of :family_id, :scope => :user_id
Esto validará que para cada valor de user_id el valor de family_id es único. Seguro que hay una solución mejor y más estándar, pero yo no me la sé.
Weno, pues nada. Ha sido breve pero intenso. Salud y rocanrol.
We all came out to Montereax
On the Lake Geneva shoreline
To make records with a mobile
We didn't have much time
Frank Zappa and the Mothers
Were at the best place around
But some stupid with a flare gun
Burned the place to the ground
Smoke on the water, fire in the sky
Smoke on the water...
La mejor opción que he encontrado ha sido
validates_uniqueness_of :family_id, :scope => :user_id
Esto validará que para cada valor de user_id el valor de family_id es único. Seguro que hay una solución mejor y más estándar, pero yo no me la sé.
Weno, pues nada. Ha sido breve pero intenso. Salud y rocanrol.
We all came out to Montereax
On the Lake Geneva shoreline
To make records with a mobile
We didn't have much time
Frank Zappa and the Mothers
Were at the best place around
But some stupid with a flare gun
Burned the place to the ground
Smoke on the water, fire in the sky
Smoke on the water...
lunes, 5 de octubre de 2009
Git en Windows Vista
Por fin he puesto a funcionar un proyecto que tira de un repositorio git. Para ello he tenido que hacer tres cosas:
Un par de links interesantes por si encontráis otros problemas: un manual http://kylecordes.com/2008/04/30/git-windows-go/ y una lista de posibles errores con su solución http://github.com/guides/addressing-authentication-problems-with-ssh
Salud y rocanrol!
She was a fast machine
She kept her motor clean
She was the best damn woman that I'd ever seen
She had the sightless eyes
Telling me no lies
Knocking me out with those American thighs
Taking more than her share
Had me fighting for air
She told me to come but I was already there
Cause the walls started shaking
The earth was quaking
My mind was aching
And we were making it and you
Shook me all night long
Yeah you
Shook me all night long
- instalar git para windows desde aquí
- confgurar la variable de entorno GIT_SSH para que apunte al ejecutable ssh que viene con el instalador de git, típicamente en C:\Program Files\Git\bin\ssh.exe
- clonar el repositorio y empezar a trabajar
Un par de links interesantes por si encontráis otros problemas: un manual http://kylecordes.com/2008/04/30/git-windows-go/ y una lista de posibles errores con su solución http://github.com/guides/addressing-authentication-problems-with-ssh
Salud y rocanrol!
She was a fast machine
She kept her motor clean
She was the best damn woman that I'd ever seen
She had the sightless eyes
Telling me no lies
Knocking me out with those American thighs
Taking more than her share
Had me fighting for air
She told me to come but I was already there
Cause the walls started shaking
The earth was quaking
My mind was aching
And we were making it and you
Shook me all night long
Yeah you
Shook me all night long
Suscribirse a:
Entradas (Atom)