Erro na instalação de uma Ruby Gem: no such file to load — mkmf
by Luiz Picanço on May.06, 2009, under Ruby
Se ao instalar uma gem você se deparou com esse erro:
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.
ruby extconf.rb install mechanize
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1
O problema é que o mkmf não foi encontrado. Ele se encontra no pacote ruby-dev. Para instalá-lo baixa executar o seguinte comando:
sudo apt-get install ruby-dev
Guia rápido do Grails
by Luiz Picanço on Apr.26, 2009, under Grails, Groovy, Java
É bom ver a comunidade Grails crescendo no Brasil.
O Henrique Weissmann produziu esse ótimo guia sobre o Grails.
O guia está divido da seguinte forma:
1 – Introdução
2 – Como instalar o Grails
3 – Groovy – O básico para quem for aprender Grails
4 – Grails
Acesse aqui: Grails: um guia rápido e indireto « /dev/Kico

Batalha de RAP de geeks
by Luiz Picanço on Apr.17, 2009, under Ruby on Rails
Veja como os geeks fazem uma batalha de RAP:
djahandarie: we ain’t here to do e-c-e
djahandarie: we’re here to do c-s-e on the w-e-b
djahandarie: listen to me spit these rhymes
djahandarie: while i program lines
djahandarie: and commit web accessibility crimes
djahandarie: word, son
http402: You talk like your big on these I-Net kicks,
http402: But your shit flows slower than a two-eighty-six.
http402: I’m tracking down hosts and nmap scans,
http402: While Code Igniter’s got you wringing your hands.
http402: Cut the crap rap,
http402: Or I’ll run ettercap,
http402: Grab your AIM chat,
http402: N’ send a PC bitch-slap!
http402: peace
djahandarie: you’re talkin bout down hosts and nmap scans
djahandarie: while i got other plans
djahandarie: you’re at your new job, but you can’t even do it right
djahandarie: you just create a plight with your http rewrites
djahandarie: i’ve been on the web since the age of three
djahandarie: you just got on directly off the bus from mississippi
djahandarie: respect yo’ elders, bitch
http402: You’ve been webbin’ since three, but still ain’t grown up,
http402: Gotta update your config and send the brain a SIGHUP.
http402: You say you’re that old? No wonder you’re slow!
http402: You’re knocking at the door while I run this show!
http402: Elders my ass, you’re shit’s still in school,
http402: Hunt and pecking at the keyboard like a spaghetti-damned fool,
http402: Rim-riffing your hard drive like a tool,
http402: Face it. I rule.
djahandarie: i erase my harddrives with magnets (bitch)
djahandarie: all you can do is troll on the fagnets
djahandarie: and son, my brain’s wrapped in a nohup
djahandarie: it wont be hurt by the words you throwup
djahandarie: dont mind me while i emerge my ownage
djahandarie: while you’re still over there apt-getting your porridge
djahandarie: you say i’m still in school
djahandarie: but the fact is that i know the rule
djahandarie: cuz you need to go back to grade three
djahandarie: and you better plea, that they take sucky graduates from c-s-e
http402: Time to bend over and apply a patch,
http402: Your brain’s throwing static like a CD with a scratch.
http402: Your connection got nuked and you’ve met your match.
http402: You run a single process like a VAX with a batch.
http402: I’d pass the torch to a real winner
http402: But it’d just scorch a while-loop spinner
http402: Caught in a loop that you cant escape,
http402: I run clock cycles around your words and flows,
http402: Cuz your rhyme is like a PS fan: it’ blows,
http402: Your water-cooled lyrics leak and it shows,
http402: Take your ass back to alt.paid.for.windows.
djahandarie: Good god, I can’t even respond to that. ![]()
djahandarie: You win haha
Fonte: http://www.bash.org/?870063
Client para twitter em .Net
by Luiz Picanço on Mar.25, 2009, under .Net, Projetos
Criei um client para twitter utilizando a plataforma .Net.
Funcionalidades:
- Lista as mensagens dos seus amigos
- Lista os seus replies
- Lista as suas mensagens
- Adiciona novas mensagens
A aplicação está funcional mas precisa de aprimoramentos no layout. Com o tempo vou atualizando.
Screenshot da tela principal:
Faça o download:
Twitter.Net
O código pode ser acessado aqui:
twitterclient – Google Code

Banco de dados key-value simples em Java
by Luiz Picanço on Mar.24, 2009, under Java, Projetos
Em mais uma dessas noites sem ter muito o que fazer, resolvi criar um banco de dados do tipo key-value (kvdb) em Java.
O código do projeto está no Google Code com uma classe de testes.
Technorati Tags: kvdb, database, java, simplekvdb


Comentários Recentes