Monthly Archives: February 2006
No javascript detection
Have you ever wondered what you can do if someone doesn't have javascript turned on and it is needed on the page they are sitting at? Well here is the answer:
<html>
<head>
<noscript><meta http-equiv="refresh" content="0; URL=nojscript.html"/></noscript>
</head>
<body>
A javascript test.
</body>
</html>
If the user doesn't have javascript turned on they will be redirected [...]
Fun with Oracle Strings
Today I needed to find a way to count the number of unique email domains in a table. I figured there was a way of getting the index of a string in another string and sure enough there is. This did the trick in Oracle:
SELECT count(1), SUBSTR(email, INSTR(email, '@', 1, 1)+1) FROM SOMETABLE GROUP BY [...]
JDBC + Batch updates + Non-Standard == Oracle
I recently ran into an issue where doing a large number of inserts and updates in an Oracle 8i database was taking forever. I was already using a prepared statement and commiting only after a certain number of rows. After some digging I found out that there is a special Oracle way of doing batch [...]
Posted in java Leave a comment
Smooth scrolling image list