User login

Complete

To be used with care. Pages are complete only when they meet the posting guidelines.

Fieldsets in Drupal forms: FAPI 5 syntax

Drupal fieldsets can also have a description.

Apache access control the Agaric way

[Note, this is outdated, now using Kerberos.]

Clients don't like their test site competing with their live, production site for Google results. Therefore, we have put our entire set of test sites behind a pop-up requiring basic Apache authentication.

For ongoing maintenance — adding new people to access the test environment behind the authorization wall — the operative command is:

I love that no matter how many times I do it

I love that no matter how many times I do it – leave off a semicolon, have more opening than closing parentheses, or have an extra curly brace – the PHP parser still finds my error unexpected.

It's that kind of unconditional confidence that a coder needs to get through the day... and the night.

With XAMPP, permission denied for MySQL user with % (all) host access but works for localhost

For reasons not known to man nor beast, on XAMPP on Mac OS X (and not XAMP but another all in one WAMP stack, but not that name either) will not work with the wildcard availability host name (%). It will work (or anyhow may work for you, it worked for Agaric!) with the @localhost for host name.

Resolution

Too-true Typo of the Week: the wanders of unit testing

The too-true typo of the week, from Kyle Mathews' Unit Testing Success Story:

The Lullabot crew had a recent podcast on the wanders of unit testing.

The wanders, indeed.

Resolution

Update or commit: See what's changed in a version-controlled file with svn diff

When you run
sudo svn status -u
and see

M 6549 www/.htaccess

you can see exactly what's up with those changes with
svn diff www/.htaccess
Showing something like:
Index: www/.htaccess

RSA host key changed, requires validation: what to do

RSA host key for example.com has changed and you have requested strict checking.
Host key verification failed.

In the line above it will actually tell you where the bad key is, with known_hosts being the file and 2 being the position of the problem key:

Offending key in /home/you/.ssh/known_hosts:2

Drupal is a Do-ocracy

In response to (and crossposted from my comment on) Drupal Community Philosophies by Angie Byron:

One matter of terminology:

Getting out of the local permissions / server login catch 22

The first step to getting out of the local permissions / server login catch-22 is to know you're in it.

Perhaps you found this page searching for "Permission denied on publickey even though I can log into the server with a public key it doesn't make any sense grrr argh how dare it deny me i created it why won't it work permissions are correct this isn't right" or something like that.

Your problem is that when you run the command without sudo, you don't have the proper permissions locally, and your computer doesn't even try to connect to the server:

Most people are fools...

Why do most people go around and say that they think Microsoft is evil and Apple is awesome?

On a daily basis, I find myself wondering why they've been fooled by the hype and the trendiness of Apple. These people in question go on diatribes about how the windows model has made people slaves to the OS, Microsoft is evil, Vista sucks, blah blah blah.

Syndicate content