Monday, September 24, 2007
The Moon
This is the moon.

Camera: Cannon ESO 300D
ISO: ISO 100
Exppsore: 1/500 sec
Lens: 8 inch newtonian (Celeston C8-NGT)

Camera: Cannon ESO 300D
ISO: ISO 100
Exppsore: 1/500 sec
Lens: 8 inch newtonian (Celeston C8-NGT)
Thursday, September 13, 2007
JAAS
Hard lesson learnt, playing with JAAS & Tomcat.
When using basic authentication:
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
it is NOT possible to log out programatically. You have to close the browser.
session.invalidate() will do NOTHING!!
I'm not missing anything. It's just not possible. The browser keeps the credentials in memory, and keeps re-submitting it. So calling invalidate serves no purpose, as the very next thing you try, will just end up with you being logged in again.
When using basic authentication:
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
it is NOT possible to log out programatically. You have to close the browser.
session.invalidate() will do NOTHING!!
I'm not missing anything. It's just not possible. The browser keeps the credentials in memory, and keeps re-submitting it. So calling invalidate serves no purpose, as the very next thing you try, will just end up with you being logged in again.
Monday, September 03, 2007
Oracle - TOP N Queries
If I forget how to do Oracle TopN queries ONE more time - I swear - pig will pay!
"SELECT *
FROM (SELECT * FROM my_table ORDER BY col_name_1 DESC)
WHERE ROWNUM < N - http://orafaq.com/faq/how_does_one_select_the_top_n_rows_from_a_table
Sunday, September 02, 2007
Pig parts.

So it came to pass. Pig would part from the group. Hedgehog, leopard and monkey had a beer, whilst Pig drank OJ.
Baboon. Was silent.
Monkey: "I say pig! What will become of you?"
Pig: "It is decided. I will head North"
Hedgehog: "I have TB"
Leopard: "North you say? But Pig! North of here lies your death!"
Pig: "For too long, my kind Leopard... for too long have I denied the inevitable rot that must take my fleshy pinkness"
a silence descended upon the group.... broken by a sudden profound insight...
Baboon: "Hedgehog. The TB you speak of has already claimed your life. Leopard, your body has long since rotted away. Monkey, you are stupid... and Pig... my dear friend Pig.... it is I who urinated in your apple juice, giving it the appearance of OJ."