User login

Public

See what's about to be committed when using git, and remove something before committing

git diff of files that have been staged ie 'git add'ed
git diff --cached

http://www.commandlinefu.com/commands/view/1242/git-diff-of-files-that-have-been-staged-ie-git-added

$ git commit ...
$ git reset --soft HEAD^ (1)
$ edit (2)

And just commit again.

Inline Read More links for teasers when output as one of several fields in a View with a row style of field

http://drupal.org/node/287812#comment-939923

See also:

displaying read more in teaser view list
http://drupal.org/node/513168

I did this with a crazy use of calling ed_readmore functions in template.php for a views template preprocess function. Do not attempt by trial and error, i can get the code from openmedia's repository.

drupal 6 delete all nodes by anonymous user

VBO (Views Bulk Operations, a great module) does an admiral job. I could only get it to work for about 250 at a time; 500 at a time didn't time out but instead weirdly caused a validation error. Also of note: Filtering by user, the autocomplete has anonymous as Anonymous even if you've renamed as Visitor or such. And there is no "anonymous" role to filter by so if going by role, it has to be an "everything but everything else" filter.

http://drupal.org/node/839850

Agaric Design core principles and motivation

Money is always good, but the the main motivation of the team [is] making the business successful, doing things we can be proud of, showing the world we do things better and by our rules.

– Dan Hakimzadeh

what new are we bringing to Drupal?

http://sethgodin.typepad.com/seths_blog/2008/12/making-vs-takin.html

Theming update.php and install.php not possible- Drupal hardcodes them to use Minelli

Drupal hardcodes minelli to be the theme for the update.php and install.php pages. Stupid.

  • Minnelli is always used for the initial install and update operations. In
  • other cases, "settings.php" must have a "maintenance_theme" key set for the
  • $conf variable in order to change the maintenance theme.

    // Install and update pages are treated differently to prevent theming overrides.
    if (defined('MAINTENANCE_MODE') && (MAINTENANCE_MODE == 'install' || MAINTENANCE_MODE == 'update')) {
    $theme = 'minnelli';
    }

Syndicate content