Just a little picture

May 24, 2009

Time is the cure

The rash on my arm is now a week old. Fortunately it is not very itchy, and it is somewhat less gross looking. But it is still quite prominent, prompting me to wear long sleeves at a time when I might not otherwise. Our doctor in Tennessee when we were kids said, Poison ivy takes about three weeks to cure if you treat it, and twenty-one days if you don't.

Posted by Charles at 04:49 AM

May 20, 2009

Urushiol

Turns out the Smoketree or Smoke bush (Cotinus coggygria
and Cotinus obovatus) is closely related to the sumacs (Rhus). It's in the family Anacardiaceae (the cashew family or the sumac family), and apparently produces urushiol, the toxin in poison ivy, oak, sumac, etc. Which is to say, if you are growing one, and you prune it, you may end up with a rash on your arm.

Posted by Charles at 12:10 PM

May 19, 2009

PHP getimagesize()

Calling getimagesize() returns an array:

Array
(
    [0] => 300
    [1] => 200
    [2] => 2
    [3] => width="300" height="200"
    [bits] => 8
    [channels] => 3
    [mime] => image/jpeg
)

The value in index 3 is a text string that expresses the image's width and height.

So:

<img src="image.jpg" alt="Descriptive text" <?php $dimensions = getimagesize("image.jpg"); echo "$dimensions[3]"; ?> />

Posted by Charles at 04:57 PM

May 15, 2009

Joining tables fails in ArcGIS

Null or empty values after what appears to be a successful join? Field names can't start with a number, as is hidden here. Thanks, as always, ESRI, for all the helpful error messages to keep me from WASTING TWO HOURS chasing this problem around.

Posted by Charles at 03:33 PM






Content licensed under
Creative Commons License