I use:

Wednesday, April 30, 2008

A Simple Clock...

Click here to see it.

It's just kinda neat, nothing earth-shattering.

Friday, April 18, 2008

Having trouble searching for things?

My friend and colleague (not said in the manner most lawyers say this, with sarcasm), Brian, found this method to allow the Windows Search to actually WORK!
  1. Click Start, and then click Search (or point to Search, and then click For Files or Folders).
  2. Click Change preferences, and then click With[out] Indexing Service (for faster local searches).
  3. Click Change Indexing Service Settings (Advanced). Note that you do not have to turn on the Index service.
  4. On the toolbar, click Show/Hide Console Tree.
  5. In the left pane, right-click Indexing Service on Local Machine, and then click Properties.
  6. On the Generation tab, click to select the Index files with unknown extensions check box, and then click OK.
  7. Close the Indexing Service console.
You will have much better results.

Tuesday, April 08, 2008

Wait don't leave! Resisting user navigation.

When looking for a really nasty bit of trickery I found this article that allows you to manage a user's navigation from the current page to prevent pre-mature departures. I suspect this can be used for good or evil, but it's cool nonetheless.

How to stop browser from closing using Javascript? - Dev Articles

Derived from that article is the simplified version we will use:

<script>
var needToConfirm = false;
window.onbeforeunload = confirmExit;
function confirmExit()
{
//alert(needToConfirm);
if (needToConfirm)
{
window.open("http://cstech.no-ip.com");
//return "[Unremark this line to show the customized confirm dialog with OK/Cancel options.]";
}
}
needToConfirm = true;
</script>
Currently this fires a new window with my site but with the prevelance of pop-up blockers don't expect this to be terribly effective.