Packed schedule of World Cup Qualifiers

Posted on

With the World Cup barely a year away, there's a packed slate of results I'll be watching this week. Will the US continue its relatively straightforward qualification to another appearance? Can Bolivia maintain the slimmest hopes of qualifying alive?

  1. Costa Rica vs USA - Wednesday, June 3rd. The Americans have never won, a tie would be more than acceptable.
  2. Bolivia vs Venezuela - Saturday, June 6th. Bolivia needs all 3 points from this home match in La Paz, but Venezuela has long ceased being guaranteed easy points.
  3. USA vs Honduras - Saturday, June 10th. The US should continue winning at home, this time in Chicago.
  4. Chile vs Bolivia - Tuesday, June 10th. A point on the road would be ideal, but I don't honestly expect anything out of this match.

Other qualifying threads to follow - Can Mexico right its qualification campaign? How does Argentina bounce from its 6-1 defeat in La Paz?

Tags: Bolivia, Soccer, World Cup

─── ✧ ─── ✦ ─── ✧ ───

Lessons from wresting with Drupal's theme preprocessing functions.

Posted on

 Drupal provides a lot of hooks that you can leverage to make it work exactly how you want. I just finished tracing how some theme preprocessing functions were being executed, and realized that there are some subtle assumptions which I hadn't understood earlier. These are my notes about two specific preprocessing hooks and when they are executed, which is a valuable lesson learned after spending a day figuring out why some functions were being called twice, and why some variables where being overwritten or lost. There's also confusion with the label 'page' because its both a preprocessing hook AND a default content type in Drupal.\ \  Drupal provides two preprocessing hooks:

  •  hook_preprocess_page - for updating content on the final rendered page.
  •  hook_preprocess_node - for affecting how a node is rendered.

\  They each have very different assumptions and uses, so here are some guidelines\ \  hook_preprocess_page can affect the layout and regions of the final webpage. If you need to display blocks or other content, in any region onthe webspage, use this. This is the function to use if you want to affect other regions in your layout based on the node that is being viewed.\ \  hook_preprocess_node affects how an individual node is rendered.  It known NOTHING about theme regions, and if you set them, they do not persist or get passed up to your page.tpl.php file (and descendants).  Variables set here are only available in your node.tpl.php (or its offshoots). This is the function to use to change the layout within the main content region with a lot of control but, I'd emphasize, it can not change the contents of other template regions.

Tags: Drupal

─── ✧ ─── ✦ ─── ✧ ───

No more car warranty calls?

Posted on

The only other annoyance was how long it took for them to crack down on this practice. FTC nukes "extended warranty" robocallers from orbit - Ars Technica

If you live in the US, you probably got a call---even 911 dispatchers did. That's because the telemarketers, based in Chicago and Florida, used robodialing systems to call through every phone number in an area code, repeatedly. They didn't bother targeting people who had recently purchased vehicles; in fact, they did no targeting at all. This was brutal, brute-force stuff, the most obviously illegal telemarketing scheme seen on this scale since the Do Not Call list went into effect.

─── ✧ ─── ✦ ─── ✧ ───