sábado, 29 de novembro de 2014
quinta-feira, 8 de maio de 2014
English, motherfucker
Agora que estou engrenando em escrever artigos em inglês, encontrei alguns sites para auxiliar na técnica:
E de primeira, a regra é escrever direto pro inglês, em vez de traduzir no final. Cheers!
E de primeira, a regra é escrever direto pro inglês, em vez de traduzir no final. Cheers!
quinta-feira, 19 de setembro de 2013
Armadilhas no C++
Voltando a programar em C++, após uma temporada em Matlab e Java (e ambos), vendo que programa bom é programa compilado.
Na verdade passei por aqui só pra deixar o recado de duas armadilhas que vi:
A segunda armadilha resume o fato: "só use o que realmente você vai precisar." Não precisa usar TUDO que a linguagem permite.
Fora isso, considerando em se aventurar em Python...
Na verdade passei por aqui só pra deixar o recado de duas armadilhas que vi:
A segunda armadilha resume o fato: "só use o que realmente você vai precisar." Não precisa usar TUDO que a linguagem permite.
Fora isso, considerando em se aventurar em Python...
segunda-feira, 15 de abril de 2013
O nada, o void, o null
O último post do XKCD foi sobre a "música" mais fanfarrona dos últimos tempos: o silêncio,
nada mais. Ainda se atreve a dizer que a "composição" é feita pelo
ruídos em torno, bla bla bla. E o pior, tem gente que dá trela e faz aparecer
- ao vivo - na TV...
E ainda, pra piorar, lembro do bizonho vídeo que o Demetrius fixou em nossas mentes
E ainda, pra piorar, lembro do bizonho vídeo que o Demetrius fixou em nossas mentes
segunda-feira, 3 de dezembro de 2012
Screencast em Linux
Já falei de screencasting por aqui, mas agora achei uma ferramenta no Linux: Kazam, que no Ubuntu pode ser baixado pelo apt-get, Synaptic ou o que você preferir.
Em breve devo atualizar, finalmente, o CastAê.
Atualização: não tive paciência de fazer no Linux, pois os codecs disponíveis não "caíam bem" no Sony Vegas, e acabei achando um bom codec sem perda no Windows, o Lagarith. Bom, o próximo cast será voltado para programação, pela demanda dos meus alunos, então será um vídeo bem rápido, sem grandes edições. Fui
Em breve devo atualizar, finalmente, o CastAê.
Atualização: não tive paciência de fazer no Linux, pois os codecs disponíveis não "caíam bem" no Sony Vegas, e acabei achando um bom codec sem perda no Windows, o Lagarith. Bom, o próximo cast será voltado para programação, pela demanda dos meus alunos, então será um vídeo bem rápido, sem grandes edições. Fui
terça-feira, 4 de setembro de 2012
O Demônio de Maxwell
Agora que fechei o curso-relâmpago Dr. Evil, podemos voltar para as artes obscuras do cinematógrafo.
Por ora, fiquem com o Demônio de Maxwell... e aguardem pelo próximo roteiro, pois tem e ver com isso!
Ajoelhem-se perante o profeta do Eletromagnetismo! Invocador de demônios!! E nas horas do rush, incomoda os incautos motoristas passantes no Andaraí.
Por ora, fiquem com o Demônio de Maxwell... e aguardem pelo próximo roteiro, pois tem e ver com isso!
Ajoelhem-se perante o profeta do Eletromagnetismo! Invocador de demônios!! E nas horas do rush, incomoda os incautos motoristas passantes no Andaraí.
segunda-feira, 20 de fevereiro de 2012
Foguetes e água
Aproveitei o carnaval com as crianças para revitalizar os foguetes d'água. Para quem não conhece, a Dark One já realizou diversos disparos no passado:
Esse ano, Ricardo pode customizar um foguete de 3 litros, aonde montei um sistema de aletas do tipo "torpedo", muito prático de montar. O toque final foi ter encontrado uma bomba de ar MEGA, no Extra (aproveitei e calibrei todos os pneus e bolas da casa).
O esquema de construção da base de lançamento foram baseados em um site da AAFAA, falecido, mas que felizmente foi copiado por este site. O esquema completo pode ser baixado aqui.
A garrafa de 3 litros foi foda de encher, e acabou parando no vizinho. Acabou sendo mais divertido usar diversas garrafas de 300 ml, sem aerodinâmica, muito mais fáceis de encher (consegui chegar a 100 psi), fazendo um disparo bem impressionante. As crianças ficaram loucas!
O último disparo foi feito aqui no Rio de Janeiro: conseguimos encher uma garrafa de 2,75 l com 90 psi (agradecimentos ao Leitão, ele BOMBA), mas o lançamento EXPLODIU a base!
Resultado, vamos refazer a base. A idéia agora é não usar um tripé, como no projeto original, mas um "H" para não forçar a estrutura nos lançamentos de grande porte.
Atualização: alguns links para quem quiser se aprofundar:
![]() |
| Configuração final do sistema 2012 |
![]() |
| Detalhe da conexão com a bomba (válvula de pneu) e torneira de escape, para emergências. |
![]() |
| Detalhe da conexão com a garrafa/ foguete |
A garrafa de 3 litros foi foda de encher, e acabou parando no vizinho. Acabou sendo mais divertido usar diversas garrafas de 300 ml, sem aerodinâmica, muito mais fáceis de encher (consegui chegar a 100 psi), fazendo um disparo bem impressionante. As crianças ficaram loucas!
![]() |
| Meu artilheiro armando um "foguete" de 300 ml |
O último disparo foi feito aqui no Rio de Janeiro: conseguimos encher uma garrafa de 2,75 l com 90 psi (agradecimentos ao Leitão, ele BOMBA), mas o lançamento EXPLODIU a base!
![]() |
| Estado do tripé após o último disparo |
Resultado, vamos refazer a base. A idéia agora é não usar um tripé, como no projeto original, mas um "H" para não forçar a estrutura nos lançamentos de grande porte.
Atualização: alguns links para quem quiser se aprofundar:
- Artigo na American Journal of Physics
- Simulador on-line, para cálculo de apogeu, velocidade, etc
- Outro simulador, mais completo, vejam também o resto do site
- Um fabricante de peças para foguetes...
- Esquema da base de lançamento.
domingo, 1 de janeiro de 2012
Use esse ano sensatamente ou você inevitavelmente morrerá
Se é pra acabar o mundo, que seja por um Sonic Attack!
Sonic Attack (Hawkwind)
In case of Sonic Attack on your district, follow these rules:
If you are making love it is imperative to bring all bodies to orgasm simultaneously.
Do not waste time blocking your ears.
Do not waste time seeking a "sound proofed" shelter.
Try to get as far away from the sonic source as possible
Do not panic
Do not panic
Use your wheels. It is what they are for.
Small babies may be placed inside the special cocoons
and should be left, if possible, in shelters.
Do not attempt to use your own limbs.
If no wheels are available - metal - not organic -
limbs should be employed whenever practical.
Remember:
In the case of sonic attack survival means
"Every man for himself"
Statistically more people survive if they think
only of themselves
Do not attempt to rescue friends, relatives, loved ones
You have only a few seconds to escape
Use those seconds sensibly or you will inevitably die
Think only of yourself
Think only of yourself
Do not panic
Think only of yourself
Think only of yourself
These are the first signs of sonic attack:
You will notice small objects - such as ornaments - oscillating
You will notice vibrations in your diaphragm
You will hear a distand hissing in your ears
You will feel the need to vomit
You will feel dizzy
You will have difficulty focussing
You will need to breathe more rapidly
There will be bleeding from orifices
There will be an ache in the pelvic region
You may be subject to fits of hysterical shouting or even laughter
These are all sign of imminent sonic destruction
Your only protection is flight
If you are less than ten years old
Remain in your shelter and use your cocoon
Remember - you can help no one else
You can help no one else
You can help no one else
Do not panic
Think only of yourself...
Sonic Attack (Hawkwind)
In case of Sonic Attack on your district, follow these rules:
If you are making love it is imperative to bring all bodies to orgasm simultaneously.
Do not waste time blocking your ears.
Do not waste time seeking a "sound proofed" shelter.
Try to get as far away from the sonic source as possible
Do not panic
Do not panic
Use your wheels. It is what they are for.
Small babies may be placed inside the special cocoons
and should be left, if possible, in shelters.
Do not attempt to use your own limbs.
If no wheels are available - metal - not organic -
limbs should be employed whenever practical.
Remember:
In the case of sonic attack survival means
"Every man for himself"
Statistically more people survive if they think
only of themselves
Do not attempt to rescue friends, relatives, loved ones
You have only a few seconds to escape
Use those seconds sensibly or you will inevitably die
Think only of yourself
Think only of yourself
Do not panic
Think only of yourself
Think only of yourself
These are the first signs of sonic attack:
You will notice small objects - such as ornaments - oscillating
You will notice vibrations in your diaphragm
You will hear a distand hissing in your ears
You will feel the need to vomit
You will feel dizzy
You will have difficulty focussing
You will need to breathe more rapidly
There will be bleeding from orifices
There will be an ache in the pelvic region
You may be subject to fits of hysterical shouting or even laughter
These are all sign of imminent sonic destruction
Your only protection is flight
If you are less than ten years old
Remain in your shelter and use your cocoon
Remember - you can help no one else
You can help no one else
You can help no one else
Do not panic
Think only of yourself...
sábado, 31 de dezembro de 2011
Cães de Guerra
Dogs of war and men of hate
With no cause, we don't discriminate
Discovery is to be disowned
Our currency is flesh and bone
Hell opened up and put on sale
Gather 'round and haggle
For hard cash, we will lie and deceive
Even our masters don't know the webs we weave
One world, it's a battleground
One world, and we will smash it down
One world ... One world
Invisible transfers, long distance calls,
Hollow laughter in marble halls
Steps have been taken, a silent uproar
Has unleashed the dogs of war
You can't stop what has begun
Signed, sealed, they deliver oblivion
We all have a dark side, to say the least
And dealing in death is the nature of the beast
One world, it's a battleground
One world, and we will smash it down
One world ... One world
The dogs of war don't negotiate
The dogs of war won't capitulate,
They will take and you will give,
And you must die so that they may live
You can knock at any door,
But wherever you go, you know they've been there before
Well winners can lose and things can get strained
But whatever you change, you know the dogs remain.
One world, it's a battleground
One world, and we will smash it down
One world ... One world
One world ... One world
quarta-feira, 14 de dezembro de 2011
Servidores bizarros
A quem interessar, quando lidar com CentOS e VMware e um ficar travando o outro, consegui resolver por aqui.
E antes que perguntem, não recomendo a ninguém os dois sujeitos acima. :)
E antes que perguntem, não recomendo a ninguém os dois sujeitos acima. :)
Assinar:
Postagens (Atom)





