Archive for December, 2007

Dec 20 2007

python. (not ruby)

Published by jfrank under python

I finally got shared folders up and running on my virtual fedora box. This required a little kernel/kernel headers upgrading, and compiling the vmware tools for my box, but it works like a charm. It even gives me cut and paste to the win xp desktop, which is… cool i guess.

I decided to go with python, which has a plethora of tools. Pylons is a piecemeal web framework that is closest to my liking, migrate is a library for schema migration, which works nicely with sqlalchemy, a monster orm.

sqlalchemy is cool because you can use parts of it totally independently. Coming from a CF background I am used to having nice named/pooled connections that I don’t have to think about. The base layer of sqlalchemy is that, a database type abstraction and pooling. Then you are free to go crazy with ORMish things or not, its up to you.

It is so reusable many people have written layers on top of it for even more magical coding… but its nice to have all the options.

Migrate, a RoR knockoff is the real find though, it looks young (as far as a project goes) but I watched a demo of it used in another python framework and it was exactly as I expected, like something we use at work for CF.  It has a schema version table, that holds app state version, and version files with ‘up/down’ methods. My main issue with many of these ’scafolmagic’ things is that no one bothered to mention how you get from one version to the next… or back again. You can’t build the model right the first time, and iterative programming is a fact of life. This library addresses that.

No responses yet

Dec 19 2007

cf admin api

Published by jfrank under coldfusion

Cookie name “CFAUTHORIZATION_SPLAT SPLAT” is a reserved token
The error occurred in administrator.cfc: line 116

Today I ran into a weird bug in the cf admin api, if you attempt to perform a login such as this:

<cfscript>
loggedin = createObject(“component”,”cfide.adminapi.administrator”).login(‘dsafdsafsad’);
</cfscript>

It will bomb with the above error if your application name contains a space, the error is slightly different whether you use Application.cfc or <cfapplication> style.

The fix, thanks to Barney is to remove the space.

2 responses so far

Dec 15 2007

virtualization

Published by jfrank under setup

I am using a virtual linux server via free vmware player on my development box, which is winxp. I found several groups who produce free stock distributions packaged in virtual machine format, which means I can run on literally the same stack as my real server locally.

I haven’t got there quite yet, but I intend to use a windows eclipse ide mapped into the virtual box via shared folders.

The subversion usage up to this point has left me with simple tasks to sync the two server’s configurations.

next up…. python or ruby

No responses yet

Dec 07 2007

WordPress is easy.

Published by jfrank under setup

Hi everyone who isn’t there.

I have really enjoyed setting up my new server, and my first project was to get a blog up and running under my domain name. I have had this domain for years but haven’t gotten around to developing anything on it. So here it is. It didn’t take me long to get it set up, and I version controlled the whole thing as I was doing it. So if someone were to wipe out my server right now, I would still be able to regenerate this ..

er i take it back.

I haven’t set up backups yet… and although what I said was true because I have a blog working copy, I would lose this post because I don’t have mysql backing up yet. What I was saying was, I could regenerate this blog in a couple commands.

Anyway so the first few posts are going to be about server setup, and me learning linux.

One response so far