Monthly Archives: April 2008

Enabling WML on Apache by htaccess or config

If you’re uploading a WML file to a web server to test its validity, etc., there’s a few ways to test. The WMLBrowser for Mozilla based browsers does the job, for testing on a PC/Mac. If you wish to use the server live to see that WML file and how it treats the whole ‘card’ thing for sure, you can do one of two things:

You can alter your apache httpd config file (/etc/httpd/httpd.conf)
# MIME Types for WAP
AddType text/vnd.wap.wml .wml
AddType image/vnd.wap.wbmp .wbmp
AddType application/vnd.wap.wmlc .wmlc
AddType text/vnd.wap.wmlscript .wmls
AddType application/vnd.wap.wmlscriptc .wmlsc
AddType application/vnd.wap.xhtml+xml .xhtml

Alternatively create or edit the .htaccess file in the directory to include this:
DirectoryIndex index.wml
addtype text/vnd.wap.wml wml
addtype application/vnd.wap.wmlc wmlc
addtype text/vnd.wap.wmlscript wmls
addtype application/vnd.wap.wmlscriptc wmlsc
addtype image/vnd.wap.wbmp wbmp
AddType application/vnd.wap.xhtml+xml .xhtml

Note in both cases the entire list is *not* required, you can see some are for Scripting/Indexing and so on, but you can test it out.
Bits and pieces resourced from here

Ruby Uninitialized Constant Error (Mental Note)

The reason I always get initialized constant errors occurring in Ruby is accidentally naming models the plural form of the database table name and not letting Rails automatically create the pluralisations.

script/generate scaffold contact_skill contact_id:integer skill_id:integer description:string
not
script/generate scaffold contact_skills ...

(This reason is one I constantly forget, and Google never helps me. Now I will not forget)

—–

edit: I’ve had a LOAD of google hits from this search query in the last few days, if this helps you or doesn’t please leave a comment to make this article more complete.

Songs for Sao Paulo

My buddies Pete and Andy and their bands will be playing a gig in aid of the COI centre’s mission team to Brazil this summer. It’s being held in the Oasis CafĂ© on Elmwood Avenue, Belfast (behind where I used to live) on Monday 21st April at 9 PM (After CU).

The music’ll be a mix of acoustic styling and profiling (from Nathan Jess), rock covers and original songs by Pete and Paul (formerly of Midnight Noise Conspiracy) and headlining is Andy Good’s band “Maguire and I” who have recently cut a demo which will be handed out free to the first [arbitrary number of] people through the door. You can grab some mp3s of the demo from Lurgan Parish Youth’s site (click on the Amplify logo)

Facebook Group is here. And here’s a map to the Oasis.

Hope to see you there (I’m doing sound.) Dave.

Giants v Vipers Playoff Game

Unfortunately not a glorious win to celebrate, but said I’d do it, so here’s game review video from Saturday 29 March 2008 in Dundalk.

Game detail here: http://ih-update.co.uk/game_details.php?id=976
Giants Website: http://www.belfastgiants.com/

FWIW: This is the main camera feed from the live webcast we do from Giants games. The season’s over for 2007/2008, check it out in August/September.