User login

Fragment

Debian and Postfix e-mail setup, Internet Service Provider style

In short Agaric needs a robust e-mail solution for ourselves and our clients.

Debian Administration :: Handling mail for multiple virtual ...
http://www.debian-administration.org/articles/243

The immediately needed fix:

Drupal losing database connection to images in 4.7 to 5 migration

The pictures are still in the file system, but Drupal no longer knows the images are there.

Resolution

Stunningly incoherent WSF2008 conversation (voice over internet) notes

Sign in.

Should that be right away?

You see a page where the whole country

The first impact is the map.

And then you can have some lists.

and then a space where people

The complexity here is to have space for information where

Apart

Functionally, the local page and the activity forum-- which are in the same place.

The local page comprends many activities (probably we will have to call them actions)

The de

and the organizers
- i need to insist

they can

access it in one click, that's fine

Imagecache not showing images

Oh my god that was SOOOOOOOO annoying. We spent a simply silly amount of time trying to figure out why imagecache images would not display at all.

Resolution

Even though Agaric Design's site is now on Drupal 5, we hadn't changed the .htaccess file in the Drupal files directory since it was a tender young 4.7.

And therein lay the problem.

To quote from the imagecache modules page itself (a moral of this story is to always go there first-- in this case the answer was right on the front page before we could even look in the issue queue)

if ($variable) not always the same as if ($variable == 0)

Agaric school of coding mistakes lesson of the day

This, when $node->price equaled zero (actually, and significantly, 0.00), did not give the proper result:

        if ($node->price) {
          $default_value = $node->price;
        }

While this did work as expected:

Agaric school of coding mistakes lesson of the day

This, when $node->price equaled zero (actually, and significantly, 0.00), did not give the proper result:

        if ($node->price) {
          $default_value = $node->price;
        }

While this did work as expected:

        if ($node->price > 0) {
          $default_value = $node->price;
        }

Moral of the story: don't be lazy.

Major change in CMT's internals: cmt_term_*_set functions become one cmt_term_attribute_set function

Old way:

/******************************************************************************
* The following _set functions save information to the cmt_term tables and
* subsequently to votingapi if appropriate.  These function names are based
* on the table names.
*
* They are currently written for clarity over efficiency.
*/

Old way:


/******************************************************************************
* The following _set functions save information to the cmt_term tables and
* subsequently to votingapi if appropriate. These function names are based
* on the table names.
*
* They are currently written for clarity over efficiency.
*/

/**
* Saves a community-managed term's description and updates votingAPI.
*
* First it checks to make sure the description doesn't already exist for
* this term (as unlikely as that might be), and if it does, uses that

Untar a file in GNU-Linux. Or Unix. Using shell. Or other stuff.

tar -zxvf files.tar.gz

Note to self: Don't forget again.

And to tar and zip a directory file 'files' in the first place:

tar -zcvf files.tgz files

And extra bonus, to move the files directory onto a server:

scp files.tgz ben@server.agariclabs.org:~

tar -zxvf files.tar.gz

Note to self: Don't forget again.

And to tar and zip a directory file 'files' in the first place:

tar -zcvf files.tgz files

And extra bonus, to move the files directory onto a server:

scp files.tgz ben@server.agariclabs.org:~

Windows (putty) getting rejected by server with refused key message

all the answers:

http://www.andremolnar.com/how_to_set_up_ssh_keys_with_putty_and_not_get_server_refused_our_key

in our case, it was the permissions on the .ssh folder and authorized_keys file.

Theming the search bar the Agaric way

Hardcoding the Drupal search box form into the theme can result in this:

Validation error, please try again. If this error persists, please contact the site administrator.

So customize your bar the Drupal way:

From (and we do mean stolen directly from the Drupal handbook) http://drupal.org/node/45295

Add to template.php (create if necessary)

Hardcoding the Drupal search box form into the theme can result in this:

Validation error, please try again. If this error persists, please contact the site administrator.

So customize your bar the Drupal way:

From (and we do mean stolen directly from the Drupal handbook) http://drupal.org/node/45295

Add to template.php (create if necessary)

<?php
function phptemplate_search_theme_form($form) {
/**
* This snippet catches the default searchbox and looks for
* search-theme-form.tpl.php file in the same folder

Syndicate content