Archives for: "March 2012"

Apache IE8 HTML entities filter

One of the pages in a web application displays text log file output in popup browser windows. If that output includes this statement: <?xml version="1.0" encoding="utf-8"?> IE8 will try to parse the content as XML, and it will show an err… more »

Image - Round corners, add a credit

#!/bin/bash if [ "$#" -lt 2 ]; then echo "usage: $0 'image file' 'credit' ['resize']" else ORIGINAL_IMAGE=$1 BASE_FILENAME=`basename $1 .jpg` echo "$2" > $BASE_FILENAME.credit convert $BASE_FILENAME.jpg \( +clone -alpha extract -draw 'fil… more »

CentOS Firefox 10 HTML5 Audio

These tags allow you to specify that audio be played through Windows Media Player Plugin if it is available, and if it isn't, use an HTML5 audio tag. <object id="wmp_p" data="audio.wav" type="application/x-ms-wmp" width="175" height="75" >… more »

dojox.grid.DataGrid - Search for item

This is one way to search a dojox DataGrid for an item. In this case, the id is used, but other attributes can be searched as well. function already_in_the_grid(id) { var bFound = false; member_store._getItemsArray().forEach(fun… more »