Go to Date WordPress Widget

This is the widget code to have a Go to Date widget in WordPress. It requires the correct permalink structure, but it is easy to paste into a text widget and it works nicely.

<script type="text/javascript">

function gotodate() {
  var baseurl = "http://example.com/index.php/"
  
  var y = document.getElementById("year").value;
  var m = document.getElementById("month").value;
  var d = document.getElementById("day").value;
  //debug alert(y + m + d);
  
  var newloc = baseurl + y + "/" + m + "/" + d
  window.location = newloc
}



<form>
  <table>
    <tr>
      <td>Year:</td>
      <td>Month:</td>
      <td>Day:</td>
      <td> </td>
    </tr>
    <tr>
      <td><input type="text" id="year" size="4" maxlength="4" /></td>
      <td><input type="text" id="month" size="2" maxlength="2" /></td>
      <td><input type="text" id="day" size="2" maxlength="2" /></td>
      <td><input type="button" value="Go" onclick="javascript:gotodate();" /></td>
    </tr>
</table>
</form>

Not dead, just parenting…

I’ve been meaning to write here for a while, but between a crazed toddler and a new job and very, very occasional sleep, I haven’t gotten around to it. However, this post suggests that that might be changing :-) We will have to see.

Brain Dumping

I am taking a leave from work starting today, but for the last month I have been dumping everything I know into other people so that they can approximate my job while I’m off. The problem is that much of my job is about fighting fires and doing tiny, technical things, and I have no idea how efficiently I have dumped my brain, or how much I have totally failed to relate.

There is no good way to know what you know – there is no feasible method to list your mind’s contents, and, knowing even obliquely the nature of the mind, it could easily spool off infinitely. The best you can do is to hope that others are able to figure out the easy drudgery of your job and be hopelessly in your debt for the interesting things that you do, so you are appreciated without having to be buried in minutia when you return.