This website is composed of information connected through taxonomy. It is simultaneously a proof-of-concept and a means to allow Agaric to share and store information both within the collective and the world as part of our open documentation philosophy.

User login

This website is composed of information connected through taxonomy. It is simultaneously a proof-of-concept and a means to allow Agaric to share and store information both within the collective and the world as part of our open documentation philosophy.

GNU rocks the internet

It takes great Google gymnastics to get past the millions of GNU's Not Unix references to the actual animal (gnu is another name for wildebeast), for instance:

gnu -unix -computer -compiler -project -software -make -emacs -coding -mailing -wget -autoconf -objective-c -utilities -printf +mammal

We want searching for Agaric to be something of the same ;-)

Prepopulating CMT's additions to the edit vocabulary form

The below is quite moot, but an interesting addition to "Ben's brain loses to itself in 14 rounds" series. I decided to keep community management information for each vocabulary separate, called with cmt_get_vocabulary(), and turn both it and the results of taxonomy_get_vocabulary() into arrays and array_merge() them.

Because the form gets all its information by calling taxonomy_get_vocabulary($vid), when editing an existing vocabulary the form would forget all about the Community Managed Taxonomy option. Very sad.

The below is quite moot, but an interesting addition to "Ben's brain loses to itself in 14 rounds" series. I decided to keep community management information for each vocabulary separate, called with cmt_get_vocabulary(), and turn both it and the results of taxonomy_get_vocabulary() into arrays and array_merge() them.

Crazy talk. Parsing a form based on what button is pressed

For the community managed taxonomy node form user interface, I need either multiple forms one after another (probably best) or a crazy way to parse one form with multiple buttons that, by virtue of what button is pressed alone, do different things.

This test:

$form['randomness'] = array(
'#type' => 'submit',
'#value' => t('Save'),
'#name' => 'detail on the randomness',
);

For the community managed taxonomy node form user interface, I need either multiple forms one after another (probably best) or a crazy way to parse one form with multiple buttons that, by virtue of what button is pressed alone, do different things.

This test:

<

blockquote>
$form['randomness'] = array(
'#type' => 'submit',
'#value' => t('Save'),
'#name' => 'detail on the randomness',
);

$text = "inthechaos";
$form['order'] = array(
'#type' => 'submit',
'#value' => t('Submit'),
'#name' => $text,
);

$form['nid'] = array(
'#type' => 'value',
'#value' => $edit['nid'],

Display PHP errors on screen for debugging

apache print php errors to screen
apache log errors to screen
apache print php errors to screen
apache display errors

This is not an option for Apache as far as I can tell. You'll have to look in the log file for Apache server errors. However, to output PHP errors to the screen, make sure to have this line:

display_errors = On
; PHP tells us about errors rather that just sit there with a blank screen!

Note that you only want to do this in your dev or test environment, and not on your live server.

apache print php errors to screen
apache log errors to screen
apache print php errors to screen
apache display errors

This is not an option for Apache as far as I can tell. You'll have to look in the log file for Apache server errors. However, to output PHP errors to the screen, make sure to have this line:

display_errors = On
; PHP tells us about errors rather that just sit there with a blank screen!

Note that you only want to do this in your dev or test environment, and not on your live server.

thanks to:
http://istos.ws/index.php?option=com_content&task=view&id=162

Unbelievable

Poor conspiracy theorists... how can they ever hope to keep up with conspiracy reality?

SeeingYellow.com

ben

From:

Planned enhancement: submodule that presets pathauto

Assuming community-managed taxonomy goes the route of providing its own taxonomy_term_path() function, say cmt/term/# here's a nice enhancement, along the lines of the "partial install profile" idea.

This sub-module would require cmt, of course, and also pathauto. It would warn you that if you have already set up automatic url aliases, enabling this module will overwrite them, but if you haven't, it will create default prettier paths for you. (Probably vocabulary-name/term-name/subterm-name).

Assuming community-managed taxonomy goes the route of providing its own taxonomy_term_path() function, say cmt/term/# here's a nice enhancement, along the lines of the "partial install profile" idea.

This sub-module would require cmt, of course, and also pathauto. It would warn you that if you have already set up automatic url aliases, enabling this module will overwrite them, but if you haven't, it will create default prettier paths for you. (Probably vocabulary-name/term-name/subterm-name).

Of course maybe we'd have to do some work to even expose the paths to pathauto.

OpenMoko free software mobile phones

Forget the iPhone. Are you absolutely fed up with cell phones that don't let you freely export your contacts to your computer and to other phones? Synchronize, even? (Well, I do hope iPhone uses Address Book, which uses an open format.)

Enter OpenMoko, open source free software for cellular telephones:

OpenMoko.com, the product site,

and

OpenMoko.org, the development community site.

Boolean comparison operator without an if statement

So it turns out you can use boolean comparison operators without an if statement:

So it turns out you can use boolean comparison operators without an if statement:

<

blockquote>

Anyone know what's happening with this line? the "==" in that spot is

completely new to me, and I can't find it in any PHP documentation... I
can't imagine it succeeds in doing anything (it doesn't affect the value of
$node->community_tags_form when I print it), but as I steal from
community_tags I want to be sure I don't remove anything somehow essential...

$node->community_tags_form = variable_get('community_tags_display_' .
$node->type, COMMUNITY_TAGS_MODE_TAB) == COMMUNITY_TAGS_MODE_INLINE;

Women and the Power To Drupal

The lack of female representation in open source free software, Drupal included, is a scandal.

And this is coming from a Collective member (Benjamin) with a class focus and his Dad's prejudice against the affirmative action no one attacks, Title IX (more accurately Dad's problem was all the rich white women and daughters benefiting while not saying a word or lifting a finger to protect).

So I think Drupal training and introducing and outreach could be a great thing for disadvantaged groups, those with no

The lack of female representation in open source free software, Drupal included, is a scandal.

And this is coming from a Collective member (Benjamin) with a class focus and his Dad's prejudice against the affirmative action no one attacks, Title IX (more accurately Dad's problem was all the rich white women and daughters benefiting while not saying a word or lifting a finger to protect).

So I think Drupal training and introducing and outreach could be a great thing for disadvantaged groups, those with no

But I also think we need a focus on involving women too, because a tiny percentage (Google Summer of Code was glad to get two percent) is simply wrong.