Actual Work

Have done some nice things in JujuEdit lately, adding font style selection to syntax hilighting capabilities. Here is a sample, with script elements hilighted and italicized:

<TITLE>Jujusoft - Captain's Log</TITLE>
<link rel="stylesheet" type="text/css"
href="http://www.jujusoft.com/style.css"/>
<script language="JavaScript"
src="http://www.jujusoft.com/script.js"></script>
</HEAD>
<BODY class="jjbody" onload="OnLoad();"
   field.mod="1041428164"
   field.src="http://www.jujusoft.com/jujutemplate-web.html"
   field="include">
   <script
   language="JavaScript">PreOnLoad();</script>
   <table class="jjlayout">
<tr>

Note the erky hilighting on "field" attributes… this is because they are not standard HTML so they are flagged like this to help you spot potential errors. Nifty, eh?

Once again this sample is exported as HTML with styles added. I’m having a little problem here with indents and line wraps, basically it seems that using the <PRE> element gives me leading whitespace for reproducing tabbed text (essential in reading source code) but will not do line wrapping, so if you copy’n'paste a 120 character long line into HTML then suddenly the page gets forced to 120 characters wide. Every sample here has been pre-wrapped with hard returns to avoid this. Most annoying! I’m thinking about using nested <DIV> elements instead.

Do U Doubt?

Have spent an inordinate amount of time these last few days in an online discussion about astrology. Wasn’t going to post a link here, but then again:

  1. This is supposed to be a record of what I’m spending all my time on.
  2. Very few people read this log anyway. Hopefully more people read the discussion I was posting to, otherwise that’s a lot of wordage that might otherwise have been better spent.
  3. The discussion is now over, and no one has been deeply scarred.

So if you like seeing me with a bug up my ass, why not mosey on over and have a look? You can decide for yourself whether my criticisms are fair [the correct answer is, of course, yes ;) ]

Hmmm… if only someone would start an online magazine, concentrating on the value of critical thought but always doing so with a healthy sense of irony. Perhaps a weekly comic strip lampooning John Edward? A column written [automatically] by disgruntled spririts? And then, it would need to have a catchy title…

The Magic Square!

The image on the right is a great example of how things are not always as they would seem. It has been around for a while, and this is my rendition of it. I confess I got the idea to post it here while browsing James Randi’s site.

The 2 figures are both drawn with only straight lines, and both appear to be made from the same component shapes (count the units on each side to check), and yet, the 2 figures have a different area overall!

  • The square is 8 x 8 units which gives it an area of 64 square units.
  • The rectangle is 13 x 5 units, which gives it an area of 65 square units.

Where did that extra unit come from? Can the whole sometimes be more than the sum of its parts?