jr3 (63K)

One Useful Infinite Loop

Posted by Jessica Tue, 29 Jan 2008 02:49:00 GMT

If you are ever are in need of a page that would keep a url connection open for an extended period of time, as opposed to simply returned a 404 or 500 error, then you might consider simulating an unresponsive page by creating a page with an infinite loop on it.

<html>
<script>
   function infiniteLoop() {
   var i = 0;

   while (i<=0)
   {
     i = i-1;
   }
}
</script>
<body onload="infiniteLoop()">
</body>
</html>

Ok, so javascript won’t work (that is, you should get a 200 from this page) because it is on the client side, but do the same thing with a jsp or embedded ruby.

<html>
<body>
<% int i = 0;
while (i<=0) {
  i--;
}
%>
</body>
</html>

This is nice for testing timeout parameters on an http connection that you have opened up. For instance, using the java library HttpClient, you can set the connection timeout on a connection. Instead of attempting to connect with the availabe resource, try to connection to this infinite loop page.

Naming 1

Posted by Jessica Mon, 21 Jan 2008 02:01:00 GMT

I’m getting a new doll! She is an Angelica Eve. I haven’t decided on a name yet. The baptisimal moment, both necessary and a priori according to Kripke, is almost as exciting as getting the doll itself. Some programmers say that they can’t start work on a project until they give it an agreeable name. There’s something about naming that I enjoy. Naming, in and of itself, isn’t about discovery, like Kripke’s intuitions show, rather naming is like putting a hook or a piece of Velcro on an object, so that the object can be referenced. I guess naming satisfies my need to organize and tiddy things, albeit word things. Anyways, enough about naming… I want to name her something with two names and more than 4 syllables.

I went to Inman Perk this weekend with Linda. We got a ton of great advice from Christy Petterson of ICE regarding putting on a large event. Maybe one day we will get to return the favor or pay the favor forward.

Here are our girls chillin’ literally outside in the snow.

Linda took the following beautiful photo. I am holding the top of Blanches head like a place kicker – that’s what Linda says. So, if you haven’t tried this method for photographing your doll, make sure to try Linda’s place kicker method! Ah, yet another name is given. :-)


designed by jowensbysandifer