Speaking at Scotch on the Rocks

Yup I’ll be speaking at Scotch on the Rocks in Edinburgh, Scotland in june. I’m very very excited, and hopefully won’t be completely boring – I’m speaking alongside a raft of the top people in our industry so a little intimidating :D Maybe I’ll just get drunk before my presentation…

If you’re going to Scotch I’ll look forward to seeing you there!

Post to Twitter Tweet This Post

Certifiable!

After 8 years or so I finally got around to taking the Coldfusion developers exam this morning. I am now an Adobe Certified Advanced Coldfusion Developer and an Adobe Certified Advanced Coldfusion Trainer! So probably in 6 months time I’ll be listed as such on the adobe websites…

Flex exam in jan then my trainer certs will all be complete.

Post to Twitter Tweet This Post

Chemists

Anyone out there have any experience with chemistry and/or chemical biology? I have some questions I’d like to ask you if so, so drop me an email, I could use your help :)

Believe it or not it *is* actually on topic too…

Post to Twitter Tweet This Post

For the love of God…

There are lots of little stupid things that irritate me. One of the highest on the list has to be people calling Lego “legos”. For God’s sake people – the plural of Lego is Lego. There is no such thing as Legos. It’s Lego. L-E-G-O dammit!

/rant

Post to Twitter Tweet This Post

Bender Revived

After a 6 month hiatus or so where I’ve been flat out working with another group and haven’t had time to look at Bender, I was speaking last night with Adam Lehman and a few others who have inspired me to dig out Bender and get back into it. I want to get it working as soon as possible so the code is releasable and allows the basic features of Transfer – Mark Mandel and I also chatted about potentially using the data services included with CF to do live syncing between Transfer and Bender although not yet sure whether that’s a good idea :)

Anyways – Bender is back and I’ll be finishing it off and looking for testers. If anyone has requests or suggestions fire away.

Toby

Post to Twitter Tweet This Post

Melbourne CFCamp Report

CFCamp in Melbourne was brilliant. It wasn’t the greatest turnout but we had a good number of high caliber people there and the talks were excellent.

I particularly liked Peter Bell’s talk about DSL’s and Software Product Lines – I’ll definitely be following up with Peter to learn more about this, as this is exactly where I’ve been heading.

After the camp a bunch of us went for drinks and I ended up having some very long (and slightly inebriated) discussions with Adam Lehman of Adobe and Peter Bell. Mark Mandel piked early ;) but I got to know Adam and Peter pretty well and had a fantastic evening. Thanks to all who turned up and especially those who spoke and organized the day – it’s well worth it, and hopefully we will see more of this sort of thing in the near future.

Post to Twitter Tweet This Post

Finally, a good skype alternative

Skype has been getting worse and worse lately, with outages and constant errors, disconnections and message failures. On top of that, the company’s business practices seem to be getting less and less friendly too – fortunately an alternative is now available for those of use who rely heavily on conferencing for business: Gizmo!

http://www.gizmoproject.com/screen-shots.php

I’ve downloaded this – works beautifully and has some nice little features that skype lacks. Gizmo doesn’t have video conferencing, but for me that’s less of a concern than a reliable voice conferencing app.

Post to Twitter Tweet This Post

Speaking at Melbourne CFCamp

It looks as though we’ll be getting a CFCamp in Melbourne after all, through the efforts of Mark Mandel. The downside is he’s conned me into speaking :D I’m giving a half hour talk on “Enterprise development for the rest of us” – basically what it really means to be an enterprise developer and how to ramp up your career and habits to get to that level. And seeing as I’ll have a captive audience I might see if I can squeeze in a magic trick or two, so if my talk totally sucks there will at least be some entertainment.

Hope to see lots of people at cfcamp melbourne!

Post to Twitter Tweet This Post

I hate dates and locales

Yes Yes Bad Blogger, I know. smack. Anyways….

I’m having a problem where i’m using a date selector in flex and selecting a date (client running on australian machines), but when its saved to the server it seems to be going in as a US date based on the current server time. How do I fix this? I’ve tried mucking about with the locale setting in the compiler arguments, I’ve tried just using CF_SQL_DATE instead of _TIMESTAMP but to no avail. If there are any readers left on this blog I’d appreciate any ideas.

I hate working with dates and regions, it’s definitely on my top 5 least enjoyable things in programming.

Post to Twitter Tweet This Post

Trac on CentOS

I have seen Trac before but until recently never really used it. In a project I’ve been working on with Codename:Tuesday we’ve been using Trac as the central source for bugs / tickets, documentation, UCTs etc. It’s a very nice tool, with SVN integration and a ticketing system that has just what you need for development.

I run a server on CentOS and had a little trouble getting my install to work, so I decided to post this guide to getting trac up and running. This setup will allow you multiple instances of trac sites to support different projects. At the time of writing, my server runs CentOS 4.5 final.

This guide assumes all trac instances will exist under /srv/trac and all subversion instances will exist under /srv/svn and assumes you have subversion, apache and python installed.

Before you start, disable SELinux.

Repositories
If you don’t have them already, add Karanbir Singh’s repositories:

cd /etc/yum.repos.d/
wget http://centos.karan.org/kbsingh-CentOS-Extras.repo
wget http://centos.karan.org/kbsingh-CentOS-Misc.repo

Add the gpg key:

rpm --import http://centos.karan.org/RPM-GPG-KEY-karan.org.txt

Install the prerequisites for Trac:

yum install mod_dav_svn mod_python clearsilver python-clearsilver python-sqlite trac

Add the following to your apache httpd.conf:

# load relevent modules
LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
LoadModule python_module modules/mod_python.so
...
### trac
Alias /trac/ "/srv/trac/"
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
# mod_python speeds things up considerably
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir "/srv/trac"
PythonOption TracUriRoot "/trac"
# authentication
AuthType Digest
AuthName "wiki-server"
AuthDigestDomain /trac
AuthDigestFile "/etc/httpd/conf/digestpw"
Require valid-user
# authorization is handled internally by trac
### subversion
DAV svn
SVNParentPath /srv/svn
Order allow,deny
Allow from all
# authentication
AuthType Digest
AuthName "wiki-server"
AuthDigestDomain /svn
AuthDigestFile "/etc/httpd/conf/digestpw"
Require valid-user
# authorization
AuthzSVNAccessFile "/etc/httpd/conf/svn-auth.ini"

Setup your svn instance:

svnadmin create /srv/svn/myproj --fs-type fsfs
chown -R apache /srv/svn/myproj
chmod -R go-rwx /srv/svn/myproj
[/code]
Run the following commands to create a trac instance (replacing "myproj" with the name of your project):
[codesyntax lang="bash"]
trac-admin /srv/trac/myproj initenv
chgrp -R apache /srv/trac/myproj
chown -R apache /srv/trac/myproj/{attachments,db,log}
chmod -R o-rwx /srv/trac/myproj
[/code]
Remove anonymous write access to Trac:
[codesyntax lang="bash"]
trac-admin /srv/trac/myproj permission remove anonymous TICKET_CREATE TICKET_MODIFY WIKI_CREATE WIKI_MODIFY

add admin user priveledges:

trac-admin /srv/trac/myproj permission add myuser TRAC_ADMIN

setup special privs for other priveledged users

trac-admin /srv/trac/myproj permission add cooluser WIKI_DELETE

tweak everyone's base priveledges:

trac-admin /srv/trac/myproj permission add authenticated \
BROWSER_VIEW CHANGESET_VIEW FILE_VIEW LOG_VIEW MILESTONE_VIEW \
REPORT_SQL_VIEW REPORT_VIEW ROADMAP_VIEW SEARCH_VIEW \
TICKET_CREATE TICKET_MODIFY TICKET_VIEW TIMELINE_VIEW \
WIKI_CREATE WIKI_MODIFY WIKI_VIEW

setup svn authorization; create the file /etc/httpd/conf/svn-auth.ini) with the following contents:

[groups]
projectadmins = adminuser1, adminuser2
othercoolfolks = projectuserA, projectuserB, projectuserC
# repository (r = read, w = write, or none)
[myproj:/]
@projectadmins = rw
@othercoolfolks = rw
* = r
[myproj:/admin-only/]
@projectadmins = rw
@othercoolfolks = r

Create the password file and add a password for the admin user:

htdigest -c /etc/httpd/conf/digestpw wiki-server adminuser

Create passwords for any other users:

htdigest /etc/httpd/conf/digestpw wiki-server user

Restart apache, and now you should be able to access your project at http://server/trac/myproj - login with the user and password you just setup and bob's yer wossname.

CAVEAT: you may find when you load the trac page you see "Error: Unsupported File Format". If you do, you need to disable the pdo_sqlite module as it's likely conflicting with the version installed by python. Edit the file /etc/php.d/pdo_sqlite.ini and comment out anything in the file by putting a # symbol at the beginning of each line.

Credits: I got a lot of this from here so many thanks to the original author - I've just modified a little and added more basic instructions.

Post to Twitter Tweet This Post