Categories
Uncategorized

captcha this!

Some web sites use a ‘captcha’ which is a dynamically generated image with some code that must be input for you to post a comment. It’s a great idea, but oh, the accessibility of it all! What of people who can’t read that image? I mean, come on, haven’t we all dove into accessibility by now?

I have a solution, in the form of Text::Banner, and it goes something like this:

#######  #####   #####  #       
#       #     # #     # #    #  
#       #             # #    #  
#####   #  ####  #####  #    #  
#       #     #       # ####### 
#       #     # #     #      #  
#        #####   #####       #  

There! An accessible captcha ‘image’ as it were… it should even work in Lynx!

But wait, don’t like horizontal, try vertical! That’ll trip up those pesky spambots!

#######
   #  #
   #  #
   #  #
   #  #
      #
      #
      
 ##### 
#     #
#     #
#  #  #
#  #  #
#  #  #
 ### # 
 
 #   # 
#  #  #
#  #  #
#  #  #
#  #  #
#  #  #
 ## ## 
 
  #####
  #    
  #    
  #    
  #    
###### 
  #    

Urm… maybe not… I’ll work on it a bit more…

Categories
Uncategorized

On Learning PHP and the Culture of Languages

So I’ve been hacking away at PHP for a while now, and I must say it’s a fairly easly language to pick up. In fact, that seems to be the biggest strength of PHP, besides the fact that’s it’s also easy to install and every host out there seems to have done so.

Still the templating-freak in me feels a bit dirty mixing all of that presentational-html with logical-code. It’s like Perl CGIs in 1998 or something… I know, there’s Smarty and other templating systems, and of course some will tell you that PHP is (sort of) a templating system in itself… Still, that cultural thing…

Kellan, in There Has Got To Be A Better Way, has this bit titled The Impenetrable Importance of Culture:

For me the hardest part in working with languages I’m less familiar with (python, and php for example) rather then those I’m more comfortable with (perl or java) is not syntax questions, its culture. For all of Perl’s much vaunted “There is More Then One Way To Do It”, I know the proper way to do things, the proper tool to reach for, and if I don’t I have ways of finding out, largely through internal calculation based on my understanding of the Perl reputation landscape. Its that information which is opaque to me, especially in PHP where the fast number of practioners are novices.

That’s previously summed up my thoughts on PHP, though I’m still quite open to it, and might change my mind…

(I must admin, PHP is hundreds, if not thousands of times better than dealing with ASP or ColdFusion, at least in my book, and again, this is due to a large degree because of the culture surrounding each of them.)

Categories
Uncategorized

AutoValidator 0.2.5

I thought I should actually get around to releasing the AutoValidator… From the README:

This is the AutoValidator, a program that can help you make sure your web
pages are valid.

The AutoValidator takes a list of URLs from a text file, and checks them
using the W3C MarkUp Validator. You can use the W3C’s validator located at
<http://validator.w3.org/> or you can install the W3C's validator on your
own server, as the source code is available:
<http://validator.w3.org/source/>

This is what the sample output looks like, but it’s quite customizable. Don’t expect state of the art OOP code here, it’s just more of the same old Perl-hackery, but it works for me…

If you’re a validation nut, and find it useful, let me know

(Note: AutoValidator 0.2.6 fixes a very minor bug, not worth upgrading, but grab this instead if you’re a first timer.)

Categories
Uncategorized

Mac OS X, Hyatt, pbase

Let’s see:
10.2 – 10.1.5 = 0.0.5
0.0.5 = $129
If the math seems off to you, let them know

Oh, that Hyatt is funny…

PBase.com is a cool idea. Lots of interesting photos to be found…

Today’s fun involved the Text::Template perl module. Every day of fun should involve at least one perl module. Don’t you think?

Well, I went from having no boss to having two bosses. One is on the east coast, one is down south, I’m in the midwest… Things should be interesting…