Congratulations on the Twins Brian Layman of North Canton, Ohio!

No, that’s not me. But I do have interaction with this fellow! See we live in the same county and have the same middle initial. We probably live within 5 miles of each other. Almost definately 10.

So, if I go to the Stark County library, I have to be very specific when I don’t have my card with me. Or if I hit the Blockbusters to the south instead of to the north, I have to watch which account is being accessed. Additionally, I’m sure others searching for me on the web have found him and visa versa.

Anyway, he and his wife just had twins in April, 2006!
“Juliet Ake-Layman and Brian Layman of Canton, twins, son and daughter.”
http://www.cantonrep.com/index.php?ID=282218&Category=births&r=2

Congratulations oh twinned named one. I wish you all the best.

This is the second (not counting me) Brian Layman I’ve met. My mother used to be babysit by a “Bryan Lehman” in Johnstown, Pennsylvania. Kind of funny that way.

Still rambling on about ColorOfChange.org

Oh, and of course there’s also Democratic Rep. William Jefferson (I have to work not to say William Jefferson Clinton), eight-term congressman for New Orleans and neighboring districts.

This morning the affidavit for his arrest warrant was disclosed. It stated how they found $90,000 of a $100,000 bribe disclosed by a former Jefferson aide. The money was wrapped in zip lock bags and placed in plastic containers in the freezer.

Gee, he’s been there for 8 terms. Do you think the governmental system in New Orleans could have already been broken before Katrina?

Do you think perhaps that newly re-elected Mayor Ray Neagan (SP?) might have know that there could have been something not right in the state of Louisiana?

That site just bugs me… If it were truely out for making a change, don’t you think that Jefferson would have at least a mention on their campaigns page? Isn’t ousting an corrupt 8 term representative an important thing? Hasn’t he been shown to have failed New Orleans? He isn’t one of ColorOfChange’s “Black folk and allies”, shouldn’t he be one of the things that change? Or maybe he is one of the”Allies”.

I’m being flooded by a MoveOn.Org Bot???

OK, this month the most common visitor to this site is Mailer.HipHopCaucus.net with almost 642 visits during the first 10 days. You’ve probably not heard of the Hip Hop Caucus, but even if you have, they seem to be totally unrelated to HipHopCaucus.net!

HipHopCaucus.org is a lobbying organization following along the lines of The Black Caucus.

It’s registered as follows:
Continue reading I’m being flooded by a MoveOn.Org Bot???

WP-Contract-Form 0.3 released

The 0.2 had some debugging left in it and a verification didn’t work. Thus version 0.3. It can be downloaded in the same place:
http://www.thecodecave.com/downloads/plugins/wp-contract-form.zip

Changes
————————–

0.3 REQUIRED RELEASE
Removed debugging messages
When Website was blank, Email was highlighted.
When Agree was blank, an error message was not displayed.
0.2 REQUIRED RELEASE
Fixed the MD5. It now uses website instead of email too. Then the same email contact can be used for multiple websites.
Removed the CSS styles that were incompatible with my theme (and probably others). They are renamed and can be put back in easily.
Added carraige returns to the email where needed.
Made the whole thing WC3 compliant
0.1 Initial version
Automatically sends the email to the destination AND the user, reversing the From and To.
Required the website to be filled in.
Added a terms field that is customizable.
Added a customizable “I agree” line
Added a checkbox and verified it is filled out in the end.
I did not bother creating a legit POT file for language localization
Generated a unique ID for the contract.

WP-Contract-Form 0.2 released

The original version had some issues that have now been corrected. It can be downloaded here:
http://www.thecodecave.com/downloads/plugins/wp-contract-form.zip

Change Log:

0.2 REQUIRED RELEASE
Fixed the MD5. It now uses website instead of email too. Then the same email contact can be used for multiple websites.
Removed the CSS styles that were incompatible with my theme (and probably others). They are renamed and can be put back in easily.
Added carraige returns to the email where needed.
Made the whole thing WC3 compliant

0.1 Initial version
Automatically sends the email to the destination AND the user, reversing the From and To.
Required the website to be filled in.
Added a terms field that is customizable.
Added a customizable “I agree” line
Added a checkbox and verified it is filled out in the end.
I did not bother creating a legit POT file for language localization
Generated a unique ID for the contract.

How to install custom PEAR modules on 1and1.com and other shared servers

1and1.com, as I said before, is a great host. Their support may not be able to tell you how to do everything you want to do, but for the most part, they give you full access. If they offer a Free server for three years deal again, snatch it up. You’ll save loads of money and may be offered an upgrade to a professional server for half price as I was.

A couple weeks ago, I told Michael (who paired with Angela has done some neat stuff – I’m gonna have to free up an hour to just browse through their site and listen to the Taiwanese Education Ministry stuff they have there and at http://metroministries.org/ ) that I would post a walk through of installing custom modules for PHP PEAR. PEAR is “custom framework for PHP Components”. In otherwords, PEAR is a HUGE common library of PHP code that will give you access to a wealth of resources you don’t have in the standard installs of PHP. If you want to do something easy or complex, there’s a good chance that there is a pear module that will help you out. Whether it is simply getting the date of a certain holiday, caching a news feed, rotating 3d objects for your visitors, streaming data to them or any of a large number of other tasks, chances are, there is a PEAR module that can give you a head start on your project. Here, take a look: http://pear.php.net/packages.php

Obviously, not all of those modules are installed under the default 1and1 PEAR account and there might be one there that you want but is not available by default. This article tells you how to get one of those modules installed. Fortunately, it’s not that complicated. Really the trick to installing custom PEAR modules at 1 and 1 is as simple as knowing how they are classifed in the PEAR documentation. See 1and1 has PEAR installed, but it is locked down so that you can’t break anything for all of the people that share your webserver. PEAR has planned for this and allows you to install a custom configuration for your particular webserver. This PEAR configuration will be the default for ALL of the server’s you host and will not affect anyone elses. PEAR calls that a “SHARED HOST” and once you have that term, you can follow the documentation here: http://pear.php.net/manual/en/installation.shared.php.

To customize all of that for 1and1, you have to put it in their directory structure. The 1and1 directory structure has two seperat number. First a two (or now maybe three) digit number which indicates the server or server farm you belong to (that’s a guess, but I think it makes sense). The second indicates your contract ID. This is not to be confused with your user ID which is the number that is shared by all of your email addresses and ftp logins. So, the directory structure looks something like this:
/kunden/homepages/10/d55555555/htdocs/ where 10 is the number I am guessing is the server farm and d55555555 is your contract ID. If you keep this in mind when reading through the document, you’ll be able to figure most of it out.

I don’t have time for the full blow by blow walk through with screenshots that I usually do, but hopefully, a quick run through will be all you need and then you can ask any questions you might have in the comments.

So your first task is to get putty.

That’s this PuTTY:

Not this putty:

Just download it from here: http://www.chiark.greenend.org.uk/~sgtatham/putty/ and install.

Setup an account to log into your site. It is straight forward, if you have difficulties. Please take a break and read the help docs on it and decided if you really want to take on custom pear modules without further reading and studying. Perhaps there is an easier way to do what you want to do.

Once you have putty installed (BTW does anyone have XWindows working through PuTTY for 1and1.com yet? I’ve wanted to try it but haven’t had the time yet…) login using your user number and main password (u35555555 or something like that not your contract ID)

Once you are logged you’ll be at a prompt that looks like this:
u35555555:~ >

Now ask pear what it’s current configuration is:
u35555555:~ > pear config-show

You’ll see that everything (Bin_dir, doc_dir and etc) is using common directory. That’s probably something like this: /usr/local/bin/php

What you need to do is create a custom config file into which you can install all of the modules you use but are not provided by default. In this case, we will be installing the HTTP_Request extension so that we can do some custom page grabbing and XSF attacks (JUST KIDDING!!!).

So, the first thing to do is create the config file in your root directory:
u35555555:~ > pear config-create /homepages/10/d55555555/htdocs/ .pearrc

Now tell the common pear module to create a copy of its directory structure for you to use…
u35555555:~ > pear install -o PEAR

Would you like to see what we’ve done?
Just type:
u35555555:~ > cat .pearrc
You’ll get something that looks like this:
#PEAR_Config 0.9
a:7:{s:7:”php_dir”;s:39:”/homepages/10/d55555555/htdocs/pear/php”;s:8:”data_dir”;s:40:”
/homepages/10/d55555555/htdocs/pear/data”;s:7:”ext_dir”;s:39:”/homepages/10/d5555555
5/htdocs/pear/ext”;s:7:”doc_dir”;s:40:”/homepages/10/d55555555/htdocs/pear/docs”;s:8:”t
est_dir”;s:41:”/homepages/10/d55555555/htdocs/pear/tests”;s:9:”cache_dir”;s:41:”/homepa
ges/10/d55555555/htdocs/pear/cache”;s:7:”bin_dir”;s:35:”/homepages/10/d55555555/htdoc
s/pear”;}

And that’s pretty much it! You’re installed. You can, if you want, see if a specific module is installed with a command like:
u35555555:~ > pear list-files HTTP
or
u35555555:~ > pear search HTTP_Request

You can try to install things:
u35555555:~ > pear install HTTP_Request

But you may find that other modules are required. So you must install them too
u35555555:~ > pear install Net_URL

However, the EASIEST thing to do is to have PEAR install all fo the modules you need automatically with the –alldependency swithc
u35555555:~ > pear install HTTP_Request –alldeps

That’s it! Your all installed.

Here is one final helpful command: config-show. If you (and I) did everything right, you should get something like the following:

u35555555:~ > pear config-show
Configuration (channel pear.php.net):
=====================================
Auto-discover new Channels auto_discover
Default Channel default_channel pear.php.net
HTTP Proxy Server Address http_proxy
PEAR server [DEPRECATED] master_server pear.php.net
Default Channel Mirror preferred_mirror pear.php.net
Remote Configuration File remote_config
PEAR executables directory bin_dir /homepages/10/d55555555/htdocs/pear
PEAR documentation directory doc_dir /homepages/10/d55555555/htdocs/pear/docs
PHP extension directory ext_dir /homepages/10/d55555555/htdocs/pear/ext
PEAR directory php_dir /homepages/10/d55555555/htdocs/pear/php
PEAR Installer cache directory cache_dir /homepages/10/d55555555/htdocs/pear/cache
PEAR data directory data_dir /homepages/10/d55555555/htdocs/pear/data
PHP CLI/CGI binary php_bin /usr/local/bin/php
PEAR test directory test_dir /homepages/10/d55555555/htdocs/pear/tests
Cache TimeToLive cache_ttl 3600
Preferred Package State preferred_state stable
Unix file mask umask 22
Debug Log Level verbose 1
PEAR password (for password
maintainers)
Signature Handling Program sig_bin /usr/bin/gpg
Signature Key Directory sig_keydir /usr/local/etc/pearkeys
Signature Key Id sig_keyid
Package Signature Type sig_type gpg
PEAR username (for username
maintainers)
User Configuration File Filename /kunden/homepages/10/d55555555/htdocs/.pearrc
System Configuration File Filename /usr/local/etc/pear.conf



(Please let me know if this post works for you or if there are mistakes I need to corred. This was all recovered from the bash log, so I could have miss read a step along the way – Thanks! Brian.)



WP-Post Contract Form

Updated to version 0.2 – Please download again.

Well, I’ve written my second WordPress Plugin. Well – Not really. This was more of a hack…

See Ryan Duff has a plugin that allows a person to dynamically insert contact forms into any post or page. And Podz needed a version of it that he was customized for a free WordPress installation project that’s being created. He’s got a prototype running but he wanted a unique key to be generated for each user.

You can see the request on the WP Hackers archive.

The download of my plug in is here: here.

Things I’ve changed:

0.2 REQUIRED UPDATE
Fixed the MD5. The website was not being included in the hash…
It now uses $wpcontract_website instead of email too. Then the same email contact can be used for multiple websites.
Removed the CSS styles that were incompatible with my theme (and probably others). The are renamed and can be put back in easily.
Added carraige returns to the email where needed.
Made the whole thing WC3 compliant:
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.thecodecave.com%2F%3Fp%3D133&charset=%28detect+automatically%29&doctype=Inline
0.1 Initial version
Automatically sends the email to the destination AND the user, reversing the From and To.
Required the website to be filled in.
Added a terms field that is customizable.
Added a customizable “I agree” line
Added a checkbox and verified it is filled out in the end.
I did not bother creating a legit POT file for language localization
Generated a unique ID for the contract.

Here’s a live demo of the result. I’ve since begun to wonder if the CSS alignment is specific to my blog as other blogs did not seem to have the alignment issues with the original plug in that I did. Well that’s easily fixed in anycase.