sábado, 7 de junho de 2008

To Debug or To Debug, there is no question

As soon as we started programming, we found to our surprise that it wasn't
as easy to get programs right as we had thought. Debugging had to be
discovered. I can remember the exact instant when I realized that a large
part of my life from then on was going to be spent in finding mistakes in
my own programs.
-- Maurice Wilkes, designer of EDSAC, on programming, 1949


Em português (tradução livre):

Assim que começamos a programar, nós descobrimos para a nossa supresa que não era fácil fazer programas exatamente como tínhamos pensado. O Debug tinha que ser descoberto. Eu me lembro o instante exato em que me dei conta que uma grande parte da minha vida dali em diante ia ser gasta achando enganos em meus próprios programas.
-- Maurice Wilkes, designer do EDSAC, sobre programação, 1949

Isso é o que eu chamo de homem de visão.

ps: Sim, o genial título é de minha autoria. Obrigado.

quarta-feira, 28 de maio de 2008

Tributo

Tributo

This is the greatest and best plan in the world... learn.do.

Long time ago me and my usoSim partners here,
we was hitchhikin' down a long and lonesome road.
All of a sudden, there shined a shiny demon... in the middle... of the road.
And he said:

"Make the best plan in the world, or I'll eat your soul."

Well me and my partners, we looked at each others,
and we each said... "Okay."

And we wrote the first thing that came to our heads,
Just so happened to be,
The Best Plan in the World, it was The Best Plan in the World.

Look into my eyes and it's easy to see
One and one make two, two and one make three,
It was destiny.
Once every hundred-thousand years or so,
When the sun doth shine and the moon doth glow
And the grass doth grow...

Needless to say, the beast was stunned.
Whip-crack went his Whoopy tail,
And the beast was done.
He asked us: "(snort) Be you entrepreneurs?"
And we said, "Nay. We are but geeks."
Rock!
Ahhh, ahhh, ahhh-ah-ah,
Ohhh, whoah, ah-whoah-oh!

This is not The Greatest Plan in the World, no.
This is just a tribute.
Couldn't remember The Greatest Plan in the World, no, no.
This is a tribute, oh, to The Greatest Plan in the World,
All right! It was The Greatest Plan in the World,
All right! It was the best muthafuckin' plan the greatest plan in the world.


And the peculiar thing is this my friends:
the plan we wrote on that fateful days it didn't actually sound
anything like this song.

This is just a tribute! You gotta believe it!
And I wish you were there! Just a matter of opinion.
Ah, fuck! Good God, God lovin',
So surprised to find you can't stop it.

All right! All right!

terça-feira, 15 de abril de 2008

Winetricks

Sabe quando você precisa instalar aquela coisa idiota do windows pra rodar um programa por wine? E sempre dá pau na instalação, não é? Então, ontem precisei instalar o .NET Framework 1.1 pra tentar emular uma aplicação que precisava dessa desgraça. E não fiquei surpreso quando vi que não deu muito certo.

Procurando no google a maneira correta de instalar o framework, encontrei uma página falando do winetricks, um script que faz o trabalho sujo de instalar as bibliotecas, runtimes, e todos os nomes feios de dependências pra aplicativos windows.

É só pegar o script, rodar (ele tem interface gráfica mas funciona no shell também), selecionar em uma lista o que você precisa, e relaxar enquanto ele faz o download e instala tudo.

Depois de instalado com o winetricks, o framework funcionou como deveria - tão bem quando um framework .net pode funcionar :P

ps: Esqueci de dizer, alguns pacotes precisam do cabextract para instalar. No site deles tem pacote para todas as distros mais usadas, bem como o fonte.

quinta-feira, 10 de abril de 2008

And he's got to protect... ME!

Começando um blog de novo, com o mínimo de pretensão possível.

Pretendo escrever sobre minhas áreas de interesse (web, marketing, usabilidade...) e bobeiras aleatórias às vezes, quando bate aquela vontade maluca de escrever.

Pra começar bem vou falar da minha mudança do Ubuntu pro Slack 12.

Sinceramente eu já estava cansado do Ubuntu. Ele é rápido de instalar, fácil de usar, mas quando você quer ter muito controle, as coisas não funcionam como deveriam. Então, por pressão do Bode de do Dizus - fãs incondicionais do Slack - instalei no meu pc; e devo dizer que fiquei positivamente surpreso já na instalação, que foi mais simples do que o esperado. Três cd's depois, estava lá, o slackão rodando lindamente no meu pc, mas sem o servidor X iniciado.

Loguei como root e mandei um # kdm, loguei no meu usário recém criado e comecei a saga de configuração da distro. Como o Bode foi um dos culpados por eu ter instalado o Slack, usei-o como um guia nessa empreitada, que também não foi nada difícil. Tá certo que uso linux há alguns anos, mas slack não é sistema pra iniciante mesmo!

Depois de configurar tudo e botar minha rede pra funcionar (tive que arranjar outra placa, o driver atl2 ainda está uma porcaria) até arrisquei compilar meu kernel, mas como esperado ele não bootou.

Por fim, devo dizer que estou completamente satisfeito com a distro e também que estou reaprendendo a usar linux, algo que tinha fico pra trás ultimamente.

Com certeza ainda vou postar algumas cositas de linux por aqui, conforme for aprendendo e apanhando. Espero que sirva de ajuda pra alguém.