“There is some decent documentation, but not too much because I am lazy.”
Blog
Replace iTunes icon.
iTunes recently launched its new social networking platform, Ping, and with the launch came a few interface changes. The changes include replacing the standard horizontally configured window controls with vertical ones (LifeHacker tells you how to change this back if you like - http://lifehacker.com/5629084/move-itunes-closeminimizezoom-buttons-back...), lighter colors all the way around (a dull gray that I am not really into), the removal of some dividers, and swapping out the icon.
Nodereference Fails to Print Referenced Node
I had a case where CCK nodereference wasn't populating the view field in the array, so I had to check to see if it was empty and then manually populate it.
I leave this code as a gift to posterity.
<?php if ( $speaker_view = $item['view'] ) : ?> <?php else: ?> <?php endif; ?> <?php } ?>
Tutorial: How to Group Fields in Views With a Div or Span Tag
This is a howto for wrapping a div around a few of your view fields (and not others). This is useful, for instance, for being able to group all one's content so that it floats left but does not float around an image.
EDIT: This technique is a good intro to views templates, however, an easier way exists which seems a little hackish, but would work for many use cases. Thanks to Sr. or Sra. Anonymous.
Drupal 6.x + jQuery 1.4.2 = New Possibilities
jQuery is the bread and butter of rapidly developing a highly-interactive websites, and Drupal has long made use of it, and indeed includes it as part of its core install.
Shared Multisite Sign-on the Easy Way
This weekend I discovered (quite by accident) a very simple way to enable shared sign-on across multiple Drupal sites running in a multisite configuration.
Suppose you have the following sites:
- phones.com
- htc.phones.com
- iphone.phones.com
- motorola.phones.com
The first requirement is that all the sites be running on the same domain. The examples above work — they're all subdomains of phones.com.
The second requirement is that all the sites share the same user tables.
Echo Nest Remix API: The Next Level
EchoNest has basically taken the web API to a completely new level with their new Remix API.
The API allows not just the analysis of beats and musical characteristics that their basic API offered, it additionally allows coders to modify audio and video files based on the analysis information for programatic remixing.
To get a sense of the amazing results, check out these initial exploratory vids: http://musicmachinery.com/2009/06/21/wheres-the-pow/
More info: http://code.google.com/p/echo-nest-remix/
Does anyone know of any other multimedia API's that allow for the modification of audiovisual assets via API calls?
Any on your wishlist?
Personally, I'd love some good web-based speech to text and face recognition APIs.
(via O'Reilly Radar)
Block Visibility with Context and Zen
Turns out that if you're using Context with a Zen 2.x-based subtheme, any block visibility rules you set up with Context get blown away by Zen. The reason is that both Context and Zen implement the `theme_blocks()` function, but Zen, being unaware of Context, clobbers all the work done by Context.
The solution is pretty simple: apply this patch to Zen. Note that you must be using at least Context 3.x for the patch to work; otherwise, you'll get a WSOD.
And for those who are interested, here's some background on the issue.
Dropbox CLI for CentOS 5 the easy way
Dropbox hardly needs any introduction; put files in your Dropbox and they show up everywhere else you have Dropbox installed and dropbox.com. A feature about Dropbox that is probably not as widely known is that free accounts come with 30 days of undo history and Pro accounts can get "Pack Rat" that keeps unlimited history of changes. The history of files, including reverting deleted files, was particularly interesting to me, since I could hook in my latest daily MySQL dumps from AutoMySQLBackup to Dropbox and have 30 days of backups for free available from anywhere dropbox.com is accessible.
The problem is that we use CentOS for our servers and the Dropbox Linux builds are geared for distributions like Ubuntu and Debian that have updated versions of required software like Python, libc, and others, that I did not want to upgrade by hand on my systems and risk the integrity of the system packages. But, I got it to work anyway, read on for how I got Dropbox CLI installed on CentOS without replacing any system files.
How to Configure Eclipse PDT with Zend Server Debugger on MAMP for Drupal
Anything involving Eclipse is always epic. First, you have to get your head around what distribution of it to use, as confusing as one's first introduction to Linux distributions (there are different kinds of Linux?).
Next, you have to grok the fact that the Zend Debugger must be installed on your server. In this case, MAMP.
Then, you have to make Eclipse listen to the debugging information being outputted, on the debug port.
Finally, you have to figure out how to use a debugger effectively (not in scope, but careful, debugging will blow your mind).
Upgrading Open Atrium past the beta4 boundary
Open Atrium (http://www.openatrium.com) is best described as an "Intranet in a box" that sits atop Drupal 6. With the release of Open Atrium 1.0-beta4, Development Seed made a few crucial changes to the way OA is configured and structured. Now at beta7, there are still some older OA sites out there that are still running versions prior to beta4. Those sites require a little extra work to upgrade since they need to be upgraded to beta4 first, and then can be upgraded to beta7 and beyond.







