Uncategorized

Fun Tricks with Media Mover 2.x

Media Mover 2.x has been slowly creeping along for the last bunch of months and is starting to approach an alpha state. One of the cool things about Media Mover 2 is that the architecture has been rewritten from the ground up. Now there are three main concepts - files that Media Move knows about, configurations which are a collection of steps, and steps which are settings for some kind of action or process that is done to a file. However, they all have lives of their own which means you can do some neat things with them.

Let's imagine that you have a module that needs to do some kind of file processing that Media Mover already supports. You can define a step- that is, a set of settings - much like a view - in code in your module. You can then invoke it simply:

Montpelier

This webcam looks up the north branch of the Winiooski river from my window. Some times I forget to relaunch the process that updates the images, but it generally refreshes every 15 seconds or so. And some times it is just dark.

Server Melt Down

An extremely unfortunate series of events has left me with a significant loss of data- hence at the moment all the posts here date from February of this year- I'm hoping that I can pull out more data, but things at the moment are not looking so hot. I'm hopping that I'll be able to recreate much of the information that was here on Media Mover and related media issues in Drupal.

update: recovery process has started.... I've lost all the comments, but at least I'm finding some of the content

Leopard Annoyances

1) Having to redo Apache php configuration. Need to turn on the module and re-enable any directory overrides you have
2) MySQL is unhappy. Here are some notes:

#sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop
#sudo mkdir /var/mysql/
#sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
#sudo /Library/StartupItems/MySQLCOM/MySQLCOM start

Permissions on CCK node fields

I put together a quick module to allow admins to restrict some CCK fields based on user roles. You can check it out here:

http://cvs.drupal.org/viewcvs/drupal/contributions/modules/cck_field_perms/cck_field_perms.module?rev=1.2&view=markup

update: This is a real module now, see: http://drupal.org/project/cck_field_perms

update Note that this has been incorporated into CCK and is no longer needed.

Sorry, you need to install flash to see this content.

One more go on the media mover hook

Here's the cleaned up version of the media mover hook. Changes are: renamed "new_config" to "new config", added "edit config", created support for editing and deleting individual configurations. There's quite a bit of clean up on the main media_mover module in this round, but obviously there is a fair bit to go, particularly in the admin side of things.

Sorry, you need to install flash to see this content.

Formalize the Media Mover hook

I've been working over the weekend to finish up the media mover hook system. I think I've finally finished out the final form of the hook and the different options that are available. Here's a commented version of what I'm using in the media_mover.inc file

/**
 * Implementation of media_mover hook
 */
function media_mover_media_mover($op, $action = null, $config = null, &$file = array() ) {

  switch ($op) {

    // give your driver a name
    case 'name':
      return "Media Mover module";
    break;

    // create a new configuration option set
Sorry, you need to install flash to see this content.

Wolfengitmo

Checkout Wolfengitmo. Whether parody is the correct term for this I'm not sure, however as a statement on detention centers it looks to be rather interesting. One wonders if Abu Ghraib is soon to follow?

http://a.parsons.edu/~evan/school/?q=node/29

Content themeing

If you want to wrap comments in a single template, but still theme individual comments separately, you can use this patch:

http://drupal.org/node/60589

to support comment_wrapper.tpl.php

Oh the ironies of auto linking

So Jason is posting goats on flickr: IMG_0625.JPG and the add that pops up: "Meat Slicers, Home and Commercial
Chef's Choice German-made meat slicers and made-in-U.S. knife sharpeners..." sausagemaker.com how can you go wrong?

Sorry, you need to install flash to see this content.
Syndicate content