Archive for April, 2008
Posted on April 27th, 2008 in English, Technology with 11 comments
Imperative in python
Functional on a object oriented flavor in ruby
Note: You can do the opposite, ruby in imperative and python in functional (I’m guessing on the python part, but it’s probably true)
# choose all values from a list that are not in a matrix
[sourcecode language="python"]# imperative in python
res = []
for value in list:
present [...]
Posted on April 27th, 2008 in Entertainment, Português, Uncategorized with 2 comments
Vieram-me perguntar de onde tinha tirado a foto do meu perfil do last-fm.
A resposta é simples. De um dos mais brilhantes filmes que já vi. Se gostas de cinema e ainda não viste, este é para ti. (Para ver e rever)
[youtube=http://youtube.com/watch?v=UKJpWfSHEs4]
Posted on April 27th, 2008 in Music, Português with 6 comments
Cartaz do enterro da gata 2008
Posted on April 26th, 2008 in Português, Technology with 6 comments
Acabadinho de vir da garantia, onde passou um mês para trocarem a board sem que tenham conseguido resolver nenhum dos outros problemas que indiquei.
Olhem para a bateria e digam-me se isto é normal:
[youtube=http://youtube.com/watch?v=P_AGJUIgkQA]
Posted on April 24th, 2008 in Português, Technology, Uncategorized with no comments
Está mesmo a sair o novo Ubuntu.
Enquanto não sai – e antecipando os habituais problemas de uma estreia, ou seja, servidores atulhados – deixo uma palavra amiga a apontar para o mirror de Software Livre do Centro ao Apoio ao Open-Source que vai ter os CD’s disponiveis para download em:
http://cesium.di.uminho.pt/pub/ubuntu/
PS. Já lá esta o release [...]
Posted on April 22nd, 2008 in del.icio.us with no comments
superwick.com » Generating ZIP file archives via Ruby on Rails
(tags: zip rails ruby howto development)
rubyzip documentation
(tags: ruby zip rubyzip api library documentation development)
erratic bearing – joy of rubyzip
(tags: zip ruby rubyzip development)
Posted on April 17th, 2008 in English, Entertainment, Technology with 1 comment
Simple sorting.
First comes a demonstration of the most common error
Then a simple sort
After that comes a first sort_by
And then a complete sort_by (sorted first by fname and then by lname).
[sourcecode language="ruby"]>> h = [{'fname' => 'Nuno', 'lname' => 'Job'},
{'fname' => 'Nuno', 'lname' => 'Fonseca'},
{'fname' => 'Catarina', 'lname' => 'Pinto'},
[...]
Posted on April 16th, 2008 in Music, Português with no comments
E eu na Dinamarca.
[youtube=http://www.youtube.com/watch?v=igMaEw3SJuk]
Posted on April 14th, 2008 in Education, Português with 2 comments
Resumo: A preservação da privacidade entre várias bases de dados apresenta-se como um dos mais intrigantes desafios na criptografia actual. Várias técnicas têm sido desenvolvidas no sentido de tentar resolver este problema. Este artigo surge então como uma revisão bibliográfica sobre o tema com especial foco na Anonymization, Private Information Retrieval e Secure Multi-Party Computation. [...]
Posted on April 14th, 2008 in English, Insomnia, Technology with no comments
Ramblings about the Haskell function $ illustrated in Ruby and Haskell