Tuesday, September 18, 2012

This parser does not support specification "null" version "null"




If you start Tomcat 7 and got the error:

java.lang.UnsupportedOperationException: This parser does not support specification "null" version "null"

Just put the parameter below and restart Tomcat:
-Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl




This happens because you have two parsers in your classpath, and the Tomcat is getting a error loading the wrong version.


*This happened to me when I use Paypal SDK in Tomcat 7 and MyFaces.


Sunday, May 20, 2012

Installing Android 4.0.3 Ice Cream Sandwich on Samsung Galaxy SII GT-i9100 under Mac OS X (tested in Snow Leopard)

If you lost your phone or your data is totally your responsibility. We do not recommend to upgrade if you feel unexperienced, because you have high risk to lost all your data and the Samsung warranty.

Android Robo - Android is always with you - #4





If you concerned about that:
  • First backup all your important files you have on your phone.
  • Download the file in this link.
  • Format (wipe out) your phone.
  • Unpack it to the folder Android in your pc
  • Install Heimdall.
  • Turn on USB debugging mode on your phone: Settings -> Applications -> Development -> USB debugging.
  • Reboot turning on download mode by  pressing and holding VolumeDown + Home + Power simultaneously.
  • Connect the device to your computer using USB.
  • Kies is useless at this point, if you have installed it, run this commands:


sudo kextunload -b com.devguru.driver.SamsungACMData
sudo kextunload -b com.devguru.driver.SamsungComposite
sudo kextunload -b com.devguru.driver.SamsungACMControl



  • Go to the I9100VJLP7_I9100UHLPF_I9100ZTOLP4_HOME folder you have extracted and run the command:

heimdall flash --primary-boot boot.bin --cache cache.img --factoryfs factoryfs.img --hidden hidden.img --param param.lfs --secondary-boot Sbl.bin  --modem modem.bin --kernel zImage

  • Wait the progress bar finish and the end of the reboot.

Now your phone now have Android 4.0.3

Notes
* Singapore version of android doesn't worked.
* Hemdall 1.3.2 doesn't work. Use 1.3.1 version.


References:

  • https://github.com/Benjamin-Dobell/Heimdall/issues/21
  • http://wiki.cyanogenmod.com/wiki/Samsung_Galaxy_S_II
  • http://www.guanabara.info/2012/03/galaxy-sii-android-atualizado-para-a-versao-4-0-3-launcher-ics/
  • http://www.smartzone.com.br/2012/03/samsung-galaxy-s2-atualizacao-android-4-0-ice-cream-sandwich.html



Saturday, April 14, 2012

Tests is part of engineering

Like in software engineering, the auto industry needs to automate the tests. This Brazilian video shows all the Ford Corcel components being tested. Note that the tests don't finish on the labs. They put the car on the different streets putting the lab tests in pratice and, like in software engineering, the tests ends only in the customer environment. The video shows integrated tests and unit tests, in the labs and in the different real environments (even in the water).

To test a product you need to stress the parts, trying to broke the product, simulating the worst conditions. If you do it, and the product pass it, you had a good job.


Tuesday, March 13, 2012

InfoQ: Volte ao Trabalho! (portuguese)

Agustin Villena tem problema em convencer a gerência aceitar os limites do Kanban. Ele diz:
Eu estou atualmente atuando como um consultor, e eu estou preso ao gestores que apesar do fato dos quadros de kanban mostrarem claramente a sobrecarga de trabalho extrema de seus funcionários, eles não percebem o fator negativo no rendimento e o stress causado...
He também escreve:
O problema agora é limitar a grande quantidade de projetos atribuídos ao time. Mas os gerentes são quem nós não conseguimos convencer a filtrar os projetos que estão entrando.
E também existe o paradigma que folga é desperdício...
Por que não deveríamos considerar folga como desperdício? De acordo com Tom DeMarco, folga é "o grau de liberdade necessário para efetuar a mudança." Quando colocamos desta maneira, calmaria pode ser vista como um lubrificante dentro da organização que evita que as partes móveis fiquem presas. De acordo com Mary e Tom Poppendieck no livro Lean Software Development: An Agile Toolkit, folga serve a um propósito ainda mais fundamental quando vista da perspectiva da Teoria das Filas: "Assim como uma auto-estrada não pode fornecer um serviço aceitável sem algumas folgas na sua capacidade, você provavelmente não está fornecendo aos seus clientes o mais alto nível de serviço, se você não tem nenhuma folga na sua empresa." Amir Kolsky propõe esta respota à acusação de que a folga é desperdício:
Folga não significa que as pessoas ao seu redor estão ociosas.
Folga significa que as pessoas não estão trabalhando em coisas do principal gargalo.
Elas podem estar ocupadas fazendo outras coisas importantes.
Então, qual pode ser a causa dos problemas em relação aos limites do Kanban? Nader Talai sugere que possivelmente os gerentes resistentes podem ser parcialmente motivados pela maneira como a performance de seus times está sendo medida:
Você sabe o que é que os gerentes valorizam ou estão medindo? O quadro mostra para os valores que eles querem?
[...] Por exemplo um gerente pode medir a velocidade de seu time pelo "Desenvolvimento Completo" em vez de "Liberado sem defeitos". Eu trabalhei em uma empresa onde o time de TI era medido pela entrega dos projetos em um tempo baseado em datas que eram estimadas em 12 meses. Nesta empresa o foco era entregar no tempo independentemente do que era entregue ou da qualidade.
De acordo com Tomo Lennox, mais educação pode ser necessária:
Quando os gerentes tem o simples conceito que você produz mais quanto mais trabalha, eles não vão mudar até que você possa ensinar-lhes algo.
Mas nunca subestime o poder de uma piada para expor seus pontos: "Pessoas ouvem melhor depois de uma piada" escreve Lennox:
Um policial vê um garoto correndo ao lado de sua bicicleta, então ele encosta para oferecer ajuda. "Você tem um pneu furado?", pergunta o policial. "Não", responde o garoto e ele continua correndo com a bicicleta. O policial dirige até o garoto e tenta novamente. "Então o que está errado com sua bicicleta?" "Nada", diz o garoto e saí correndo. O policial dirige novamente até o garoto e tenta mais uma vez. "Então por que você não está pedalando na sua bicicleta?". "Eu estou muito atrasado para o colégio, por isso eu não tenho tempo para subir na bicicleta." ... e ele saí correndo.


Fonte: InfoQ: Volte ao Trabalho!

Sunday, January 15, 2012

Making Eclipse Fly on Mac

As David Salter posted:

On a Mac, the following procedure allows the JVM settings to be changed:


  • Find Eclipse in the Finder. Right click on Eclipse and choose "Show Package Contents"
  • Browse to the Contents | MacOS directory and edit the eclipse.ini file
  • In this file add JVM options, one per line.


The JVM options that make the biggest difference are the ones that specify how much memory Eclipse can use.

1
2
3
4
-Xms512m
-Xmx512m
-XX:PermSize=256m
-XX:MaxPermSize=256m

I also tell the JVM not to verify bytecode using the -Xverify switch

1
-Xverify:none


According to the NetBeans performance tuning tips, changing the garbage collection policies can also make a difference. I’m not sure that these make much of a difference, but I’m running with them at the moment to see if there is any difference.

1
2
3
-XX:+UseConcMarkSweepGC
-XX:+CMSClassUnloadingEnabled
-XX:+CMSPermGenSweepingEnabled

See the entire post.