* It’s Alive!

Posted on May 16th, 2008 by Phil. Filed under Drupal, PHP, Television, Testing.


This week brought good news and bad news. Actually, more like very good news and pretty annoying news. First, the very good news:

We have officially posted some pages for internal testing! Behold…

TV Programs A-Z (click to enlarge)

Programs A-Z

Nothing too fancy here. On our current site the A-Z list is a popup. But now it’s a full grown page! One note: the Search TV Programs form does not yet work, on this page or any other.

TV Schedule Grid (click to enlarge)

Schedule Grid

Now we’re talking! The grid is the big magilla of this project. It finally allows us to display schedule information for all of our channels at once. Basically, we’re finally catching up to the rest of the world.

As you can see, the grid displays schedule information in three hour blocks. The user can navigate forward or backward or jump to a specific block of time using the Pick a Time form at the top. There is also the calendar selector, which lets users view the schedules for a given day. Note how the calendar highlights the current day (or the day of the schedule that you’re looking at), as well as the schedule data window, the period of time for which we display schedule data which, as of now, is one week week back, two weeks forward (almost).

We still need to play around with limiting the number of characters in the program or episode title that we display on the grid. There’s always something…

Full Day TV Schedules by Channel (click to enlarge)

Full Day Schedule by Channel

As you can see, the full day schedule shares the calendar selector with the grid, and replaces the Pick a Time selector with a Pick a Channel form. Nice!

Now we can proceed with some preliminary testing, while Pete and I get to work on the program/series, episode, search and other pages.

Ok, on to the pretty annoying news. This… (click to enlarge)

Out of Memory

…is still happening.

Under a couple of different scenarios, the underlying PHP process uses up its allotted memory and then - like one of my kids - holds its breath and refuses to continue until is gets what it wants (more memory!). The above error was generated simply by trying to enable the theme developer. It can also happen during our nightly schedule data ingest, though our current allocation of 512MB is enough to prevent this, thank goodness.

So far all I’ve been able to confirm is that it’s not a server configuration issue. It seems to be a code leak and there may be more than one culprit out there. It’s starting to give me real headaches and needs to be resolved in the not too distant future.

However, for now, I refuse to let it ruin my weekend!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Pownce
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • TwitThis



3 Responses to “It’s Alive!”

  1. moshe weitzman Says:

    Hi Phil. I met Bob Lyons at Berkman conference yesterday and he pointed me to your fine blog. Your writing is entertaining and I am enjoying following the site’s rebirth. I adore some of the WGBH shows, and want to see WGBH educating millions of people. American Experience makes me happy. NOVA makes me happy (most recently for me, this Intelligent Design debunker.

    So, about your drupal issues.
    - i committed a workaround for that devel memory leak and issued a new release (6.1.8).
    - for cron timeout, i suggest writing your own script that has the same two lines as index.php at the top. then you call that script from cron and run it through command line php so it doesn’t time out. if you start running a lot of these scripts, or are a command line guy, check out drush module. it is the CLI for drupal.

    I’m happy to answer questions via email about your project. Don’t bang your head against the wall too much - just email me. I can come by GHB offices from time to time as I live in Arlington, MA.

  2. Pete Says:

    Moshe, you are too awesome. First off, a big thanks for all of your good work on Drupal, most recently and impressively with Devel and Theme Developer. And second, another round of applause for coming to the rescue on this issue that’s been driving us a bit nuts. We’ll give this a shot on Monday and drop you a line to let you know how it turns out.

  3. The WGBH.org Development Blog » How Do You Spell Relief? M-O-S-H-E! Says:

    [...] But, as they say, it’s always darkest before the dawn for the other day what to my wondering eyes should appear but a comment on this blog from Moshe Weitzman. Moshe is one of the original Drupal developers and remains one the key core and contributed module maintainers to this day. Apparently, he is also a local resident and WGBH fan. [...]

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.

    www.flickr.com
    This is a Flickr badge showing public photos and videos from WGBH.org Development Blog. Make your own badge here.

Archives:

Categories:

  • Disclaimer

  • The opinions expressed in here are those of the writers/contributors and do not necessarily represent the views or opinions of the WGBH Educational Foundation.