Jul 22nd, 2008 by Fernando Meyer
After some math work I figure out how the online-communities Troll coefficient is calculated,

- Ut = Total Users
- Ua= Active Users
- Mt = Total Messages
- Md = Daily Messages
I tried with some different online comunities and I get a close number for all of them, probably my next job is calculate the total online-bullshit coeficient 
Tags: formula, Fun, math, troll
Posted in Programming | 1 Comment »
Jul 22nd, 2008 by Fernando Meyer
When trying to restore my iPhone with iTunes and firmware 2.0, iTunes continuously shows a message that stops the restore process, it was probably related to basehand update, but I ain’t sure about this. After some headaches here is the solution.
Downgrade to 1.1.4
- Step 1) The first problem in your downgrade is that you probably are getting error 20 in restore mode and error 160x in DFU mode. This is due to iTunes 7.7. So, you now you need to uninstall iTunes 7.7 and install iTunes 7.5.
Load up Terminal and type the following:
killall iTunesHelper
sudo -s
rm -r /Applications/iTunes.app
rm -r /Library/Receipts/iTunesX.pkg
rm ~/Library/Preferences/com.apple.iTunes*
rm -r /System/Library/PrivateFrameworks/MobileDevice.framework
- Step 2) Now that you have iTunes 7.5, you will still have the DFU driver for 7.7. This is good and will allow the process to work. Put your phone into DFU mode using the DFU steps. You will not have any display on your device in DFU mode. If you see the cable and connect to iTunes, you did not get into DFU mode.
- Step 3) Restore using iTunes 7.5. and 1.1.4 firmware, it will work after all.
Now you have an unlocked 1.1.4 iphone, you can choose between upgrade to 2.0 with pwnage or unlock it with ziphone, again … up to you.
Tags: 1604, apple, error, iphone, itunes, Mac
Posted in Programming | Comments Off
Jul 18th, 2008 by Fernando Meyer
Andrii Nikitin, one of the MySQL support engineers located in Ukraine, has asked for help from MySQLers and so I’m sharing this information to the community at large. Andrii’s son Ivan, who is 2 1/2, is in need of a bone marrow transplant operation. This will require going to a clinic in Europe that will not be covered by regular insurance. So Andrii has asked to see if we could help raise funds. The cost is expected to be €150,000 - €250,000. A huge amount for an engineer from Ukraine to cover. But a small amount by many people could make a big difference.
Many have kicked in to help out thought twitter, blogs and forums, but more is needed. Ivan’s health has taken a turn for the worse recently and the issue is now quite pressing. Even a small donation could mean the difference between life and death for Ivan.
Paypal:
Paypal
Posted in Programming | Comments Off
Apr 15th, 2008 by Fernando Meyer
Posted in Programming | Comments Off
Feb 1st, 2008 by Fernando Meyer
This morning I got a sweet email from JavaOne CCT,
Dear Fernando ,
Sun Microsystems, Inc. and the JavaOne(sm) Conference Content Team are grateful for your proposal to present at the 2008 JavaOne conference. The high quality of submissions made the selection process extremely difficult. We regret to inform you that we will be unable to accept your proposal.
Just today I spoke with three friends and a team mate from RedHat, none of these were accepted, I still don’t understand why Sun keeps supporting non-sense people as speakers on his conferences.
For those who will attend JavaOne I desire you a good time watching the JSF, NetBeans advanced topics and that guy dressing the brazilian flag 
Tags: javaone 2008 sun
Posted in Programming | 1 Comment »
Feb 1st, 2008 by Fernando Meyer
Microsof has made an offer to buy yahoo, hoping they will grow as a new strong player on internet … blah blah blah, probably this deal is going to be completed, as a fail over plan I need to find another place to storage my Photos (flickr) and Bookmarks (del.icio.us)
Any suggestions?
Posted in Programming | 1 Comment »
Nov 19th, 2007 by Fernando Meyer
Are you tired to run ant scripts and wait for tests results whenever you change some source file? Yes, me too, basically I got autotest’s idea for ruby and Did it work for ant as well. Continually runs tests based on files you’ve changed improving feedback with a fancy Growl alert.
If you are a Java developer and works with ant (on mac of course) check out my bash script( and avoid cruise control for little stuf ) **see update
Change all images paths on the script, put the script in your project folder and execute it
remember you need unit tests to use this script properly.
| When it works |
When tests fail |
 |
 |
If you have some idea on how to improve it, let me know
** now hosted at github
git clone git://github.com/fmeyer/autotestmac.git
Tags: junit ant Continuous growl
Posted in Fun, Java, Mac, OSX, Programming, debug, freeware, opensource | 2 Comments »
Nov 12th, 2007 by Fernando Meyer
As I promised at CJ2007 I’m uploading my slides and demo code from my ANTLR lecture. I got really surprised about people’s interest in ANTLR, compiler theory and DSL in general.
You can import the demo in both eclipse or Intellij (or use maven to generate your own ide config). to run the code without an ide just unpack and execute the runconsole.sh you can set variable’s values ex:
x=1
y=2
And execute some expression using these predefined variables ex:
3*(x-y)*(x/y)
when you finish to input your expression just press ctrl+D on unix or ctrl+Z on windows ( EOF char ) to execute it
ps: Thanks to Danilo Sato to help me figure out a Grammar ambiguity, my approach wasn’t the optimal solution to resolve the problem.
*Update, Sami Koivu just sent me the pictures from my lecture,

Explaining the compiler theory

Hands On

The Antlr Grammar file as itself

Drools Sample DSL
Posted in Java, Programming, antlr, cj2007, computer science, language, lecture, opensource, sao paulo, university | 2 Comments »
Oct 29th, 2007 by Fernando Meyer
I just updated my MBP to the latest Apple’s OS 10 ( leopard ) the system is good, few eye-candies updates, although was a bit disappointing don’t see java6 around ( they removed the early beta version from ADC as well, so, don’t waste your time looking for it).
Apple, I don’t care about java6 for now you can delay it until you make it good. BUT… man when you delivery something with your OperatingSystem make sure that this thing works, I got really angry with a BUGGED java5 version, the exactly version is
java version “1.5.0_13″
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237)
Java HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing)
This bug looks like its deep inside Apple’s windowing toolkit implementation as you can see in the following stack trace
Exception in thread “AWT-EventQueue-0″ java.lang.NullPointerException
at apple.awt.CGraphicsEnvironment.displayChanged(CGraphicsEnvironment.java:65)
Invalid memory access of location 00000000 eip=00000000
at apple.awt.CToolkit$4.run(CToolkit.java:1259)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.j
ava:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java
A guy from GWT dev list submitted a bug report to Apple: Problem ID 5563333 - “CGraphicsEnvironment NullPointerException breaks continually on OsX 10.5″, so engineers and QA move your asses and get this thing done, because you are affecting my work and some more guys around the world.
Posted in Mac, OSX, Programming, Work, bug, crash, debug, gwt, operating systems | No Comments »
Jul 25th, 2007 by Fernando Meyer
JBoss Drools 4.0 has just been released. We are really proud of what we have done here. We believe that we now have the best and most powerful declarative rule language, bar none; commercial or open source. The Rule Flow is excellent and I really enjoyed updating the Conway’s Game of Life to Rule Flow; sub Rule Flows and milestone support will be coming in a point release soon. The BRMS has long been requested and we put a lot of effort into the ajax based design. The Eclipse improvements for the debug points and guided editor should help reduce learning curves, opening us to new audiences. Of course performance is now much better, especially for complex rules and the new Sequential Mode should be very popular with decision services.
Enjoy 
The Drools Team
Mark Proctor, Michael Neale, Edson Tirelli, Kris Verlaenen, Fernando Meyer
http://blog.athico.com
Posted in Programming, Work, brms, computer science, drools, gwt, jboss, opensource, rules | No Comments »