Joe Maller.com

Even though I’m still quite a PHP novice, I’m fairly sure having “echo” and “print” statements in functions is a bad idea. A better idea is to use a return variable containing all the text which would be output by the echo/print statements. This allows for much more flexibility in working with the results of the function. Now if only more of the PHP books I bought had mentioned that…


Wow, I just got an email from Dave, he’s in Ulan Bataar, in Mongolia.


Earlier this evening: Cleaning the dishes, I put a pot in the sink and started filling it with hot water. In the meantime I clean the counter with the kitchen sponge. Then I run the sponge under the extremely hot water. The sponge absorbs the water for a second or two, then it hits my hand. “Yeow!” Hand removed from water stream, water turned off. Then, I squeeze the sponge out… “Yeow! $@^%!” The sponge, of course, was full of the extremely hot water. Ok, that was dumb, back to the dishes, the pot specifically which was just filled with excruciatingly hot water. Yep. Three strikes, I’m a moron.


“The pages were very prankish and immature. They were very poorly written, obviously phony news reports,” said USA Today spokesman Steve Anderson.

Sure, criticize their writing. They still made a mockery out of your web site’s security. But then what is he supposed to say?

It shouldn’t be too long before someone posts screenshots.


The Fifty Words of Green Eggs and Ham

Green Eggs & Ham
Green Eggs and Ham

alphabetically:
  a 59
  am 15
  and 25
  anywhere 8
  are 2
  be 4
  boat 3
  box 7
  car 7
  could 14
  dark 7
  do 36
  eat 26
  eggs 11
  fox 7
  goat 4
  good 2
  green 11
  ham 11
  here 11
  house 8
  I 84
  if 1
  in 40
  let 4
  like 43
  may 4
  me 4
  mouse 8
  not 84
  on 7
  or 8
  rain 4
  sam 18
  say 5
  see 4
  so 5
  thank 2
  that 3
  the 11
  them 61
  there 9
  they 2
  train 9
  tree 6
  try 4
  will 22
  with 19
  would 26
  you 34
by usage:
  I 84
  not 84
  them 61
  a 59
  like 43
  in 40
  do 36
  you 34
  eat 26
  would 26
  and 25
  will 22
  with 19
  sam 18
  am 15
  could 14
  the 11
  eggs 11
  green 11
  ham 11
  here 11
  train 9
  there 9
  house 8
  mouse 8
  or 8
  anywhere 8
  car 7
  box 7
  dark 7
  fox 7
  on 7
  tree 6
  so 5
  say 5
  let 4
  rain 4
  goat 4
  see 4
  try 4
  me 4
  may 4
  be 4
  boat 3
  that 3
  are 2
  good 2
  thank 2
  they 2
  if 1

Numbers indicate how many times each word appears in the text.

This comes from a posting I originally made to Everything2, two years ago next week.


Lila was completely entralled by the Ultrasaucer (and another just like it) while visiting friends; hers should be here next week. Considering how long it kept her entertained, my productivity will likely benefit as well. I would feel guilty about that, but there isn’t really any place in my office to put her and she was really, really happy playing in it. And we’ve still gotta pay for it somehow…


After reading this page about Secure Programming in PHP, I realized that my automated PHP archive solution had something of a security hole. It’s been fixed and the original posting was updated.



« Previous PageNext Page »