2008-09-29

I will derive

Do you remeber "I will survive"?
Here is a new version ...(lyrics below)



At first I was afraid, what could the answer be?
It said given this position find velocity.
So I tried to work it out but I knew that I was wrong.
I struggled; I cried, “The problem shouldn’t take this long!”
I tried to think, control my nerve …
It’s evident that speed’s tangential to that time–position curve.
This problem would be mine
If I just knew that tangent line
But what to do? Show me a sign!

So I thought back: do calculus,
Way back to Newton and to Leibniz
And to problems just like this.
And just like that when I had given up all hope
I said nope.
There’s just one way to find that slope –
And so now I, I will derive!
Find the derivative of x’s position with respect to time.
It’s as easy as can be –
Just have to take dx/dt –
I will derive, I will derive, hey hey!

And then I went ahead to the second part
But as I looked at it I wasn’t quite sure how to start:
It was asking for the time at which velocity was at a maximum.
And I was thinking, “Woe is me!”
But then I thought, “This much I know:
I gotta find acceleration, set it equal to zero.
Now if only knew what the function was for it …
I guess I’m gonna have to solve for it some way.”

So I thought back: do calculus,
Way back to Newton and to Leibniz
And to problems just like this.
And just like that when I had given up all hope
I said nope.
There’s just one way to find that slope –
And so now I, I will derive!
Find the derivative of velocity with respect to time.
It’s as easy as can be –
Just have to take dv/dt –
I will derive, I will derive …


So I thought back: do calculus,
Way back to Newton and to Leibniz
And to problems just like this.
And just like that when I had given up all hope
I said nope.
There’s just one way to find that slope –
And so now I, I will derive!
Find the derivative of x’s position with respect to time.
It’s as easy as can be –
Just have to take dx/dt –
I will derive, I will derive, I will derive!

Os físicos fazem cenas fixes! / Physicists can make cool stuff

Rapping about CERN's LHD (Large Hadron Collider)

2008-09-14

Disabling FK constraints

Problem: You want to insert some data in a bunch via insert or import that you know that is Foreign Key (FK) coherent but do not want to upload it in the right order.

solution:
1- make sure no one will the able to connect to the database besides you (or at least modify any data)
2- disable all the FK constraints or only the needed.

For all run the output of the following script:

SELECT 'alter table '||table_name||' disable constraint '||constraint_name||' ;' FROM user_constraints where constraint_type='R'

You can also add to the script only the tables you want to upload data to adding something like:
and table_name like 'TBL%'
or
and table_name in ('TABLE1','TABLE2')

3- upload the data
4- DO NOT FORGET: enabled the constraints you have previous disabled!!!

2008-09-09

Jogos Paraolímpicos

A minha esposa é Terapeuta Ocupacional e ficou muito contente com a cobertura mediatica que este ano os jogos paraolimpicos estão a ter (ainda é pouca mas muito mais do que no passado ...que era nada!).

Hoje o número de medalas arrecadadas já igualou as medalas conseguidas nos jogos olimpicos desde ano!

Com os poucos patrocinios que conseguem (mesmo do estado) estes nossos atletas têm conseguido umas prestações muito boas!

AnoOuroPrataBronze
2004225
2000654
1996644
1992333
1988345
1984427

...

Muito parabéns aos nossos atletas e força!


actualização: 18 de Setembro
Resultado final: 1 de ouro , 4 de prata e 2 de bronze (7 no total) ...parabéns a todos os participantes!

Fórmula infalível contra insucesso escolar!

Recebi estes dias um email com esta imagem que me fez pensar num tema que muito me irrita...

-> O teste do Futuro



E o sucesso escolar fica garantido!

Falta saber se depois queremos:
- ser tratados por médicos com somentes esses conhecimentos,
- habitar uma casa dimensionada por um engenheiro com somentes esses conhecimentos
- ter politicos com somentes esses conhecimentos (bem quanto a isto não sei se já não teremos (nacionais e internacionais) )
- ...