Archive for September, 2008

Proof of God

Tuesday, September 30th, 2008

I’m getting sick and tired of people discussing religion and invoking the need to prove, or disprove, the existence of God. This is the kind of argument that makes me stop the conversation, for ever. Actually, I’ve started to take a simple approach before incurring in a largely, perhaps irrelevant, rumination about religion:

a. I am willing to change my opinion. Do you?
b. Do you agree to discuss using some kind of human logic? Or will you invoke the inability of humankind to understand the arguments you’ll point out?
c. Do you understand the difference between proof and evidence?

Three out of four people will fail the first right away. My fingers are enough to count those who passed the triage, potentially leading to a nice, though inconclusive, conversation.

N.B. Also please take into consideration that things like “God loves us all, even Atheists” are as racist as “God loves us all, even black people”. I would go nuts when I hear the later, so I definitely go nuts whenever I hear the former. There.. Now flame me…

Good old-skool h4×0r!

Monday, September 29th, 2008

As seen on slashdot, this story made me smile in pure, raw nostalgia:

The manual for Mental Blocks claims that, for both C64 and IBM, you put the diskette in label-side up.  I thought that had to be a typo, since every single mixed C64/IBM or Apple/IBM diskette I have ever seen is a “flippy” disk where one side is IBM and the other side is C64 or Apple — until I looked at the FAT12 for the disk and saw that tons of sectors in an interleaved pattern were marked as BAD — very strange usage.

Absolutely… beautiful!

PLoP paper accepted

Tuesday, September 16th, 2008

A paper I submitted this year to PLoP, “Patterns for Data and Metadata Evolution in Adaptive Object Models”, co-authored with Filipe Correia and Leon Welicki, has been accepted for publication. I’ll be attending both PLoP and OOPSLA this year in Nashville, Tennessee, USA. Meet you guys there :-)

Internet may become sentient?

Tuesday, September 16th, 2008

Another option is the idea of the net itself becoming sentient, a vast self-modifying array of connections and information storage with limited connections to the outside world (kind of like that glob of grey goo you carry around in your skull).  If that happens then Gibson help us all - remember that the net is made of about 90% spam, 9% porn, and quite a lot of whining blogs.  If that mixture ever becomes self-aware we’re not quite sure what it’ll do, but the odds are against it being anything good.

Simply Hilarious! You can find the full article here.

All this thing about LHC…

Thursday, September 11th, 2008

… made me remind something Carl Sagan said, and which I’ve previously posted:

“We are star stuff which has taken its destiny into its own hands.”

- Carl Sagan in Cosmos

All Your Pointers Are Belong to Us

Wednesday, September 10th, 2008

At the sound of I’m a Believer - Smash Mouth:

I thought memory leaks were only true in unmanaged code.
Meant for someone else but not for me.
Leaks were out to get me,
That’s the way it seems,
There are pointers haunting all my DIMs.

And then I saw Dispose(),
I’m a believer.
Not a trace,
Of leaks in my memory.
I saw Dispose(),
I’m a believer, 
I couldn’t leave it, 
If I tryed{} catch{}.

I thought GC was more or less a given thing,
The more I new’ed the less I got, Oh Yeah,
What’s the use of collecting,
All you get is lag,
Being OutOfMemory() is too bad.

And then I saw Dispose(),
I’m a believer.
Not a trace,
Of leaks in my memory.
I saw Dispose(),
I’m a believer, 
I couldn’t leave it, 
If I tryed{} catch{}.

Lyrics by me and Hugo Silva ;-) Ready yourself for an MP3…

Milhares gastos em manuais escolares?

Sunday, September 7th, 2008

Ontem no publico: Famílias gastam 80 milhões de euros em manuais “obrigatórios” no regresso às aulas.

Mas alguém me consegue explicar porque é que ainda não se fez um Wiki para manuais “obrigatórios”? Eu ofereco-me para escrever material para informática. Serei o único ou simplesmente não há interesse por parte do governo português? Até arranjo servidor gratuito se for esse o problema…

.NET Memory Leak and no solution from Microsoft…

Sunday, September 7th, 2008

You think that living in a managed world eliminates your worries with memory leaks? You think that as long as you don’t touch unmanaged resources you’re safe? Well, think again…

I’ve recently been struggling with .net because of Panels not being destroyed. Since I dynamically create these panels, which hook upon several events in the system, the application started to crawl down after a while due to some thousands/millions of events being fired to panels that should no longer exist. When we started testing the code line-by-line, what we’ve found amazed us: a particular Panel couldn’t be destroyed due to having AllowDrop set to True. WTF?

But there it was: set it to false, and the garbage collector happily destroys the object. Set it to true, and Dispose() is never called, the Panel lives, and the application stalls.

We thought: a bug in .NET? Does this happens in 3.x as well? Yes, it does. But, how is it possible? No one ever found it? After all, Drag’N'Drop is a common feature. Well, apparently, one guy did. But, either I’m misunderstanding the solution, or there is no solution at all.

Help?