For Fun and Profit

Configuração de teclado BR ABNT2 no Evev

October 25th, 2009 angusyoung

Dica de última hora para quem ficou muito tempo afastado :) e nunca mexeu com o evdev: para configurar o suporte a BR ABTN2 no Evev você pode fazer o seguinte:

cp /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi /etc/hal/fdi/policy/

Editar as linhas de configuração do teclado. Ficará mais ou menos assim:

<merge key="input.xkb.layout" type="string">br</merge>
 <merge key="input.xkb.variant" type="string" />

Reinicie o daemon do hal e pronto.

Postado em Dica, Gentoo, Sistemas Operacionais | 0 comentários »

The Rime of The Acient Programmer

July 17th, 2009 angusyoung

Uma paródia da The Rime Of the Ancient Mariner que eu escrevi:

—
Hear the rime of the Ancient Programmer
See his eye as he compiles one of three
Mesmerises one of the testing guys
Stay here and listen to the nightmares
of the IT

And the test goes on, as the manager passes by
Caught by his spell and
the Programmer tells his tale.

Driven south to the land of the comments and code
To a place where programmer’s been
Through the code flies on the albatross
Hailed in Murphys’s name,
hoping good luck it brings.

And the test goes on, back to the North
Through the requirements and comments and
the albatross follows on

The Programmer kills the bird of good omen
His teammates cry against what he’s done
But when code compiles, they justify him
And make themselves a part of the crime.

Coding on and on and North across IT
Coding on and on and North ’till all is done

The albatross begins with its vengeance
A terrible curse a crash has begun
His teammates blame bad luck on the Programmer
On his back, the manager stands

And the bugs goes on and on and on at IT
And the crash goes on and on for the users and for me

“Day after day, day after day,
we stuck nor fix nor promotion
As idle as a painted ship upon a painted ocean
Bugs, bugs everywhere
more than debugger can find
crashes, chrashes everywhere and no dump to find”

There, calls the programmer
there comes a strange message in the logs
But how can he debug with no memory dump
in the core and no files?

See… onward she comes
Onwards she nears, out of the SUN
See… she has no team
He has no life, wait but there’s two

Analyst and she the Analyst
she designed a new classes for the team
She shows the Programmer and he coded it now.
Then … the team one by one
They starting fixing, two hundred men
She… She, the IT Analyst
She shows them the bugs, design ones

“One after one by the star dogged moon,
too quick for groan or sigh
The manager turned his face with a ghastly pang
and cursed me with his eye
Four times fifty living men
(they had no life nor weekend),
had to code the fixes for a SUN,
and they fixed the bugs one by one.”

The bugs it lives on in their eyes
The Programmer he wished he’d die
Along with the application bugs
But they lived on, so did he.

And by the light of the moon
He prays for his code not doom
With comments he blesses them
Murphy’s creatures all of them too.

Then the app starts to run
The manager gets out from his back
Thanks for effort and goes back to IT
Then down in falls comes the release.

Hear the groans of the lifeless team men
See them stir and they start to rise
Bodies lifted with lots of coffee
None of them speak
and they’re lifeless in their eyes

And revenge is still sought, penance starts again
Crashes in the users face and the nightmare carries on.

Now the curse is finally lifted
And the Programmer drives home
Spirits go from the long dead bugs
Form their own failures and
the Programmer’s left alone

And then a support guy came running towards him
It was a joy he could not believe
The support guy, the client and the team lead
Penance of life will fall onto Him.

And the code it ships like product from the IT
And the Manager forgives the Programmer of his sins

The Programmer’s bound to tell of his story
To tell his tale wherever he works
To teach Murphys’s word by his own example
That we must code all requirements she had made.

And the release fest’s a sad and wiser man
And the tale goes on and on and on.

Postado em Desenvolvimento, Tecnologia | 2 comentários »

Twitter

June 11th, 2009 angusyoung

Razão pela qual eu não tenho atualizado o site: eu estou postando muito mais no Twitter, via http://twitter.com/otavio021. Microblogging tem se adaptado melhor a minha louca rotina diária.

Postado em Geral | 0 comentários »

Thanks for the memory

June 1st, 2009 angusyoung

Excelente texto da IBM Developer Works sobre gerenciamento de memória no OS e gerenciamento de memória de uma JVM.

Postado em Desenvolvimento, Tecnologia | 0 comentários »

Testando wordpress via iPhone

March 7th, 2009 angusyoung

Este é um post inútil, só pra testar a aplicação Wordpress da iTunes store.

Como eu não tenho muito o que falar, a não ser a respeito da péssima qualidade do sinal da TIM em campinas, vou deixar uma foto do meu macbook (já aproveitando para testar o recurso do envio de fotos).

Postado em iPhone | 0 comentários »

Benchmarks do Firefox

February 27th, 2009 angusyoung

Com toda essa discussão sobre benchmarks do Firefox, GCC, ICC, etc. Hoje resolvi fazer uns testes de desempenho do Firefox no Arch Linux versus Firefox no Windows.  No Arch, por não saber ao certo qual seria mais adequado, escolhi dois pacotes da AUR: firefox-optimized e firefox-pgo. Ambos foram compilados com -march=x86_64 -mtune=generic -O2 -fomit-frame-pointer -pipe (todas essas flags estavam por PADRÃO no arquivo makepkg.conf do Arch).

Continue lendo »

Postado em Arch Linux, Desenvolvimento, Linux, Tecnologia, Windows | 0 comentários »

Gosta de Xbox 360?

February 11th, 2009 angusyoung

Essa dica é pra você que gosta do videogame Xbox 360 da Microsoft e está interessado em compartilhar dicas, reviews, opiniões, conhecer novas formas de adquirir Microsoft Points ou assinaturas Gold, Xbox Live, etc. Eu e alguns amigos criamos a lista de discussão Xbox 360 Brasil no Google Groups.

Para assinar o grupo envie um email para x360brasil-subscribe(arroba)googlegroups.com ou visite a página do nosso grupo. Todos os assuntos são bem vindos: mods, integração com Linux e Mac OS X, etc.

Postado em Tecnologia | 0 comentários »

Frase do mês

February 10th, 2009 angusyoung

Hoje, lendo o Code Complete 2 topei com essa frase do Dijkstra:

“The competent programmer is fully aware of the limited size of his own skull. He therefore approaches his task with full humility, and avoids clever tricks like the plague.”

Traduzindo:

“O programador compentente está ciente do tamanho limitado do seu próprio crânio. Ele, então, aborda sua tarefa com total humildade e evita truques espertos como (evita) a peste”

Postado em Desenvolvimento, Tecnologia | 0 comentários »

Windows 7 unmasked

February 3rd, 2009 angusyoung

Como eu disse anteriormente, o Windows 7 é o primeiro de muitos windows que eu acho que vale a pena acompanhar. Acredito que, talvez, ele resolva os problemas que transformaram o Windows Vista em um fiasco. Acompanhando as aventuras do B. Piropo com os betas do Seven, topei com o artigo Windows Seven unmasked que aborda os aspectos mais técnicos do sistema. Vale a pena conferir se você está interessado em saber como está o desempenho, kernel, etc.

Postado em Sistemas Operacionais, Windows | 0 comentários »

Sobre benchmarks de linguagens

January 27th, 2009 angusyoung

Hoje, não sei como, topei com mais uma comparação de desempenho entre Java em e C++ que, como de costume, gerou uma discussão sem fim. Não que eu ache essas discussões totalmente inúteis: na verdade, você sempre acaba aprendendo/conhecendo alguma coisa nova. O ponto principal e que todo mundo ignora – para meu espanto – é que, quando um programa qualquer em Java é mais rápido que o seu equivalente em C/C++ isso só prova uma coisa: que um programa C/C++ bem escrito consegue processar qualquer coisa bem rápido, inclusive os bytecodes do Java ;)

Em tempo, dêem uma olhada nesse interessantíssimo conjunto de benchmarks.

Postado em C & C++, Desenvolvimento, Tecnologia | 3 comentários »

Excelente desfragmentador para Windows

January 22nd, 2009 angusyoung

De vez em quando eu acabo eu acabo encontrando alguns programas para Windows realmente muito bons. Hoje foi o caso, enquanto procurava uma ferramenta pra melhorar o desempenho do micro da minha mãe acabei encontrando o Ultimate Defrag, da Disk Trix. A boa notícia sobre o programa é que ele é completamente grátis, inclusive para uso pessoal comercial. Basta preencher o formulário de cadastro e você pode baixa-lo aqui.

Postado em Dica | 0 comentários »

Dicas: diminuindo o uso da CPU no dd-wrt

January 22nd, 2009 angusyoung

Depois de ter instalado o DD-WRT, eu tive alguns probleminhas devido ao uso excessivo da CPU. Aqui vão duas dicas rápidas para quem quiser diminuir o uso da CPU noLinkSys WRT54G v6 rodando a DD-WRT v24:

  1. Desabilite o suporte q QoS
  2. Use WEP ao invés de WPA2*

No meu caso, o roteador que estava com um load average em torno de 3 a 4, caiu para menos de 1.5, como é possível ver no “copy/paste” abaixo, copiado de um momento em que meus micros estão fazendo vários downloads, aumentando o uso da CPU do roteador.

Firmware:
DD-WRT v24-sp1 (07/27/08) micro
Time:   22:41:05 up 31 min, load average: 0.34, 0.76, 0.74
WAN IP: 192.168.1.64

Como vocês podem ver, o uso da CPU caiu consideravelmente.

*Obs.: Não posso confirmar com 100% de que essa configuração realmente diminuiu o uso da CPU – e também não recomendo pois é mais inseguro que o WPA2 – mas listo aqui como sugestão e registro histórico de algo que eu fiz e aparentemente ajudou a resolver o problema.

Postado em Dica | 0 comentários »

MQ Series

January 20th, 2009 angusyoung

O Vinny, do Use Strict.net está fazendo uma série de posts documentando suas aventuras integrando o Perl com o Websphere MQ, uma das tecnlogias que eu gosto de trabalhar. Ele já começou em grande estilo, documentando em detalhes como instalar o módulo CPAN do MQ no Windows.

O Websphere MQ, para quem não conhece, é um produto desenvolvido pela IBM que, entre outras coisas, oferece transmissão de mensagens com alto grau de disponibilidade. Esse tipo de tecnlogia é comumente utilizado em grandes arquiteturas orientadas a serviço, com sistemas específicos atuando cada um na sua área de negócio.

Postado em Desenvolvimento, Tecnologia | 0 comentários »

« Anterior
  • Páginas

    • GDB: comandos básicos
    • Sobre
    • Meu Mundo de TI
      • Artigos
      • Filesystem Hierarchy Standard
      • Pacotes RPM (RPM Packages)
      • Screenshots
    • Variedades
      • Fotos
      • Mapas
      • Museu do IRC RioMafrense
      • Receitas
  • Arquivos

    • October 2009
    • July 2009
    • June 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • February 2008
    • January 2008
    • November 2007
    • October 2007
    • September 2007
    • June 2007
    • April 2007
    • March 2007
    • February 2007
    • January 2007
    • December 2006
    • November 2006
    • October 2006
    • September 2006
    • August 2006
    • July 2006
    • June 2006
    • May 2006
    • April 2006
    • March 2006
    • February 2006
    • January 2006
  • Categorias

    • Ciência (4)
    • Dica (24)
    • Geral (70)
      • Curiosidades (6)
    • iPhone (1)
    • Mentes Brilhantes (1)
    • Sistemas Operacionais (42)
      • FreeBSD (1)
      • Linux (21)
        • Arch Linux (3)
        • Gentoo (14)
      • Mac OS X (12)
      • Outros Sistemas (1)
      • Unix (4)
      • Windows (5)
    • Tecnologia (91)
      • Banco de Dados (6)
      • Desenvolvimento (68)
        • Análise (1)
        • C & C++ (6)
        • POG (2)
  • Blogroll

    • 1Bit: Rodrigo Strauss
    • Chronosbox.org
    • Codare
    • Cueca Suja
    • LornLab
    • Meio Bit
    • Use Strict
  • Desenvolvimento

    • C Programming.com
    • C++ Annotations
    • C/C++ Reference
    • Comunidade C/C++ Brasil
    • Gamenux
    • Standard Template Library Programmer’s Guide
  • Linux

    • BR-Linux.org
    • Gentoo Brasil
    • KernelTrap
    • Projeto Gentoo
  • Pessoal

    • Eu no Orkut
    • Eu no Twitter
    • Profile @ I Use This
  • Planetarium

    • Planet C e C++ Brasil
    • Planet GentooBR
  • Software

    • FacilTrans
    • Nemesis Project
  • Meta

    • Log in
    • Valid XHTML
    • XFN
    • WordPress
    • Bob

For Fun and Profit is proudly powered by WordPress | Bob