Beutelevision

by Thomas Beutel

Month: August, 2009

Using jQuery and Prototype together while avoiding the dreaded element.dispatchEvent error

Here is what I do to avoid the dreaded “element.dispatchEvent is not a function” error. I load jQuery first, Prototype second, and then I use jQuery( ) instead of $( ) for all my jQuery calls.
<!– Set up jQuery and prototype together –>
<script src=”http://www.google.com/jsapi”></script>
<script>
google.load(”jquery”, “1.3.2″);
google.load(”prototype”, “1.6.0.3″);
google.setOnLoadCallback(function() {
[...]

Using Skype to control a model train

Small wireless spy cameras are widely available, and there are even a few available specifically for HO-scale trains.
This got me to thinking about letting my cousin in Germany run a train on my train layout, using Skype. Why not? Connecting the camera receiver to my laptop is easy and Skype allows you to select [...]

A short blurb on using sfGuardPlugin credentials

(Here are a few notes I made to myself about the credential system.)
Credentials are part of the sfGuardPlugin security system for Symfony. For some reason, Symfony also refers to credentials as permissions. As far as I can tell, the two terms are used interchangeably.
sfGuardUser records are stored in the sf_guard_user table.
The tables in [...]

Meta refresh in Symfony – use view.yml

The easiest way I’ve found to add meta refresh to a specific action in Symfony is to use the view.yml file. Note that I use http_metas, not regular metas.
indexSuccess:
http_metas:
refresh: 300
which results in adding the following, as you would expect:
<meta http-equiv=”Refresh” content=”300″ />