Archive for the 'Zeteo' Category

04th Jan 2009

Consolidated WordPress

This blog hasn’t gotten much love since the 52 Churches project started.  I was really tempted to just delete it.  Quite frankly, keeping track of multiple installations of Word Press gets old.  Don’t get me wrong, I love WordPress.  We’ve been pretty happy with our hosting service from BlueHost, and the blog has been a good outlet for Jen, but maintaining 4 (now 6) of these monsters was getting old.

I needed a better solutions.  A little digging on-line came across an approach at This n’ That for modifying wp-config.php to adjust the prefix. It was close, but not quite what I wanted.  Basically, Mr. Kaplan was advocating adding some PHP code to the wp-config.php file that looked like:
// table prefix, for hosting multiple installations in the same db.
$table_prefix = ereg_replace('^(www\.)', '', $_SERVER['HTTP_HOST']);
$table_prefix = ereg_replace('\.', '', $table_prefix);
$table_prefix = $table_prefix . '_';

What this does is throw away the www and any periods (full stops for those of you inclined towards the Queen’s English) in the domain name and use the rest of it as the prefix. This is fine, but it’s suboptimal when it comes to long domain names. MySQL has a limit of 64 bytes for the table name, but that would have to be shared with the stripped down FQDN and the native WordPress table names. If you have a domain name like, you start pressing into that limit pretty quickly. Nonetheless it gave me the inspiration I needed for the solutions I was looking for. My thanks to Mr. Kaplan for his insight.

My other complaint is that it ended up making a multi-line change in a WordPress source file, albeit a configuration file. I wanted something substantially more self contained. My solution was this: create a php file in the wordpress root directory that does the prefix determination and have it return the desired prefix. For example, you could create a file called prefixgen.php. That file might look something like this:

< ?php
#figure out *which* site we're hitting
if(preg_match("/subsite1/", $_SERVER['HTTP_HOST'])) {
elseif(preg_match("/subsite2/", $_SERVER['HTTP_HOST'])) {
else {
return $prefix;
? >

Note: I’ve put spaces between the ‘<‘ and the ‘?’ to keep from confusing the computers

This does a pretty sloppy match. If the domain the user hits contains subsite1, it will map the prefix to ‘ss1_’. This is useful as it lets users go to, or direct to (assuming your DNS mappings and hosting provider are set up to support both). It does the same thing for subsite2. If nothing else it falls through to the main site (prefix ‘main_’). In this way, any DNS entry that resolves to your installation and gets to the right directory, but doesn’t map to a subsite, will go to your main site.

The update to wp-config.php becomes trivial. Change the prefix line to read:

$table_prefix = include 'prefixgen.php';

Presto! Clean and self contained. I’m a very happy camper. I now have a single directory with a single set of WordPress files serving all of our different sites. The sites are all stored in one database which makes for easier server side backups.  My “installations” at my hosting provider have become symbolic links to a single WordPress directory and, best of all, instead of having to manually update multiple WordPress installations, I just update one to upgrade.  Maybe I’ll let Jen keep this blog.  Maybe I’ll just take it over instead.  I could change the tag line to “Bits, Bytes, and Querries”

Posted in Geek Stuff, Zeteo | No Comments »

25th Oct 2007

Family Culture

I don’t think that unschooling means ditching your family culture.

Some families find their adventure enhanced by staying up all night,
watching a lot of television, playing every new computer game, and
revolving meal times that run the full gamut of colourful convenience
foods, carbonated beverages, and corn syrups.

Some family cultures place greater emphasis on consistent family
connections (sitting down to dinner together, for example), work done
together, more time spent in the “adult world,” and dietary
restrictions (because of religion, health, or even simply budgetary or
sustainability reasons).

Our family culture, for example, includes very little television, but
a whole lot of interaction with the woods, with animals, and with
heavy machinery (at last count: a mule, a road grader, a D-6, a
43-horse tractor, a CNC router, and a sawmill). Alaetheia, 11,
attended strawbale school with us, has nearly finished her house
plans, and plans to break ground on her house come spring.

I’d encourage you to integrate unschooling into your family culture,
not try to integrate your family’s culture into someone else’s picture
of unschooling.


Posted in Musings, Zeteo | No Comments »

29th Aug 2007

John Taylor Gatto on Libraries

As it turns out, it’s Gatto, not Holt, who has the library analogy.

by John Taylor Gatto

“Begin with the setting and social arrangement of a library. The ones
I’ve visited all over the country invariably are comfortable and
quiet, places where you can read rather than just pretend to read. How
important this silence is. Schools are never silent. People of all
ages work side by side in libraries, not just a pack of age-segregated
kids. For some reason, libraries do not segregate by age nor do they
presume to segregate readers by questionable tests of reading ability.
Just as the people who decoded the secrets of farming or of the
forests and oceans were not segregated by age or test scores, the
library seems to have intuited that common human judgment is adequate
to most learning decisions.

The librarian doesn’t tell me what to read, doesn’t tell me the
sequence of reading I have to follow, doesn’t grade my reading.
Librarians act as if they trust their customers. The librarian lets me
ask my own questions and helps me when I need help, not when the
library decides I need it. If I feel like reading in the same place
all day long, that seems to be OK with the library. It doesn’t tell me
to stop reading at regular intervals by ringing a bell in my ear. The
library keeps its nose out of my home, too. It doesn’t send letters to
my mother reporting on my library behavior; it doesn’t make
recommendations or issue orders on how I should use my time spent
outside of the library.

The library doesn’t have a tracking system. Everyone is mixed together
there, and no private files exist detailing my past victories and
defeats as a patron. If the books I want are available, I get them by
requesting them – even if that deprives some more gifted reader, who
comes a minute later. The library doesn’t presume to determine which
of us is more qualified to read that book; it doesn’t play favorites.
It is a very class-blind, talent-blind place, appropriately reflecting
our historic political ideals in a way that puts schools to shame.

The public library isn’t into public humiliation the way schools seem
to be. It never posts ranked lists of good and bad readers for all to
see. Presumably it considers good reading its own reward, not
requiring additional accolades, and it has resisted the temptation to
hold up good reading as a moral goad to bad readers. One of the
strangest differences between libraries and schools, in New York City
at least, is that you almost never see a kid behaving badly in a
library or waving a gun there – even though bad kids have exactly the
same access to libraries as good kids do. Bad kids seem to respect
libraries, a curious phenomenon which may well be an unconscious
response to the automatic respect libraries bestow blindly on
everyone. Even people who don’t like to read like libraries from time
to time; in fact, they are such generally wonderful places I wonder
why we haven’t made them compulsory – and all alike, of course, too.

Here’s another angle to consider: the library never makes predictions
about my general future based on my past reading habits, nor does it
hint that my days will be happier if I read Shakespeare rather than
Barbara Cartland. The library tolerates eccentric reading habits
because it realizes that free men and women are often very eccentric.

And finally, the library has real books, not schoolbooks. Its volumes
are not written by collective pens or picked by politically correct
screening committees. Real books conform only to the private
curriculum of each writer, not to the invisible curriculum of some
German collective agenda. The one exception to this is children’s
books – but no sensible child ever reads those things, so the damage
from them is minimal.

Real books are deeply subversive of collectivization. They are the
best known way to escape herd behavior, because they are vehicles
transporting their reader into deep caverns of absolute solitude where
nobody else can visit: No two people ever read the same great book.
Real books disgust the totalitarian mind because they generate
uncontrollable mental growth – and it cannot be monitored!
Television has entered the classroom because it is a collective
mechanism and, as such, much superior to textbooks; similarly, slides,
audio tapes, group games, and so on meet the need to collectivize,
which is a central purpose of mass schooling. This is the famous
“socialization” that schools do so well. Schoolbooks, on the other
hand, are paper tools that reinforce school routines of close-order
drill, public mythology, endless surveillance, global ranking, and
constant intimidation.

That’s what the questions at the end of chapters are designed to do,
to bring you back to a reality in which you are subordinate. Nobody
really expects you to answer those questions, not even the teacher;
they work their harm solely by being there. That is their genius.
Schoolbooks are a crowd-control device. Only the very innocent and
well-schooled see any difference between good ones and bad ones; both
kinds do the same work. In that respect they are much like television
programming, the function of which, as a plug in narcotic, is
infinitely more powerful than any trivial differences between good
programs and bad.

Real books educate, schoolbooks school, and thus libraries and library
policies are a major clue to the reform of American schooling. When
you take the free will and solitude out of education it becomes
schooling. You can’t have it both ways.”

Posted in Musings, Zeteo | No Comments »

11th Jan 2007

Gel Bracelets for Unschoolers

New Gel Bracelets for Unschoolers: What’s your unschooling style?
* Black: Hard Core Holt devotee
* Blue: AP parent
* Green: Eclectic Unschooling Type
* Clear: TCS parent
* Orange: Eats cake for breakfast
* Yellow: Reading Llewellyn
* Red: No television in the house
* Purple: Television on 24/7
* Silver: Making the switch–deschooling
* White: Trying to incorporate Kohn
* Pink: 12 year old still not interested in reading
* Gold glitter: Have read everything by Gatto
* Brown: Minion of The Sandra
* Glow in the dark: FU member

Posted in Musings, Zeteo | No Comments »