msgbartop
msgbarbottom

31 Dec 08 Another Rails vs Django?

I just want to start by saying this is not going to a be a “bash” series on Rails vs Django but rather real examples of how applications can be built with both frameworks.  With each application I will do a write up on design concepts, story boarding, development and then deployment.  I do all my development with the NetBeans 6.5 IDE with plugins that are currently available for both Ruby and Python development.

Along with developing the applications in the standard HTML, CSS, and JavaScript (with Ajax) technologies I will also be developing interfaces with Adobe Flex 3/AS3.  The purpose?  To show how Flex interfaces can spice up some of the more mundane interaces and make the user experience a little more exciting.  Plus if the user interface is built completely with Flex then it can be also be deployed as a desktop application using Adobe AIR.

So lets first dive in with an application we have all grown to love with the 15 to 20 min examples, a web blog.  But lets take a little different approach to this by doing some reverse engineering on an existing blog application called Wordpress.  Why you might ask?  Because in my opinion Wordpress is one of the better engineered applications which is readily available for anyone to download and deploy on their own personal web server instance.  Wordpress is very solid and what I would like to do is just review the basics of the application and explain some of the purposes behind some of the architecture of the app.  Then once we are done we can move forward with developing our own version of the application using both Python and Ruby with the Administrator being built in Adobe Flex.  Sound fun?  Well it does to me.

In my next article I will be doing a review of Wordpress and some of the principles behind the data structure (models) as well as services that will need to be provided in creating our own version of Wordpress.

See you next time!

Tags: , , , , ,

03 Jun 08 Quick Fix for wp-codebox for Worpress

Found a little bug in the wp-codebox plugin for WordPress for the display of CFML code. The fix was for the end greater-than bracket for the <cfformgroup> tag showing up as ‘&gt;’ instead of the bracket in the code display. I have included the file name and fix below:

/wordpress/wp-content/plugins/wp-codebox/geshi/cfm.php

47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
	'KEYWORDS' => array(
		/* CFM Tags */
		1 => array(
			'&lt;cfabort', '&lt;cfapplet', '&lt;cfapplication', '&lt;cfargument', '&lt;cfassociate', '&lt;&lt;cfbreak&gt;',
			'&lt;cfcache', '&lt;cfcase', '&lt;cfcatch', '&lt;/cfcatch&gt;', '&lt;cfchart', '&lt;/cfchart&gt;', '&lt;cfchartdata',
			'&lt;cfchartseries', '&lt;/cfchartseries&gt;', '&lt;cfcol', '&lt;cfcollection', '&lt;cfcomponent', '&lt;/cfcomponent&gt;',
			'&lt;cfcontent', '&lt;cfcookie', '&lt;/cfdefaultcase&gt;', '&lt;cfdirectory', '&lt;cfdocument', '&lt;/cfdocument&gt;',
			'&lt;cfdocumentitem', '&lt;/cfdocumentitem&gt;', '&lt;cfdocumentsection', '&lt;/cfdocumentsection&gt;', '&lt;cfdump',
			'&lt;cfelse', '&lt;cfelseif', '&lt;cferror', '&lt;cfexecute', '&lt;/cfexecute&gt;', '&lt;cfexit', '&lt;cffile',
			'&lt;cfflush', '&lt;cfform', '&lt;/cfform&gt;', '&lt;cfformgroup', '&lt;/cfformgroup&gt;', '&lt;cfformitem',
			'&lt;/cfformitem&gt;', '&lt;cfftp', '&lt;cffunction', '&lt;/cffunction&gt;', '&lt;cfgrid', '&lt;/cfgrid&gt;',
			'&lt;cfgridcolumn', '&lt;cfgridrow', '&lt;cfgridupdate', '&lt;cfheader', '&lt;cfhtmlhead', '&lt;cfhttp',
			'&lt;/cfhttp&gt;', '&lt;cfhttpparam', '&lt;cfif', '&lt;/cfif&gt;', '&lt;cfimport', '&lt;cfinclude', '&lt;cfindex',
			'&lt;cfinput', '&lt;cfinsert', '&lt;cfinvoke', '&lt;cfinvokeargument', '&lt;cfldap', '&lt;cflocation', '&lt;cflock',
			'&lt;/cflock&gt;', '&lt;cflog', '&lt;cflogin', '&lt;/cflogin&gt;', '&lt;cfloginuser', '&lt;cflogout', '&lt;cfloop',
			'&lt;/cfloop&gt;', '&lt;cfmail', '&lt;/cfmail&gt;', '&lt;cfmailparam', '&lt;cfmailpart', '&lt;/cfmailpart&gt;',
			'&lt;cfmodule', '&lt;cfNTauthenticate', '&lt;cfobject', '&lt;cfobjectcache', '&lt;cfoutput&gt;', '&lt;cfoutput', '&lt;/cfoutput&gt;',
			'&lt;cfparam', '&lt;cfpop', '&lt;cfprocessingdirective', '&lt;/cfprocessingdirective&gt;', '&lt;cfprocparam',
			'&lt;cfprocresult', '&lt;cfproperty', '&lt;cfquery', '&lt;/cfquery&gt;', '&lt;cfqueryparam', '&lt;cfregistry',
			'&lt;/cfregistry&gt;', '&lt;cfreport', '&lt;/cfreport&gt;', '&lt;cfreportparam', '&lt;/cfreportparam&gt;',
			'&lt;cfrethrow', '&lt;cfreturn', '&lt;cfsavecontent', '&lt;/cfsavecontent&gt;', '&lt;cfschedule', '&lt;cfscript', '&lt;cfscript&gt;',
			'&lt;/cfscript&gt;', '&lt;cfsearch', '&lt;cfselect', '&lt;/cfselect&gt;', '&lt;cfset', '&lt;cfsetting', '&lt;cfsilent',
			'&lt;/cfsilent&gt;', '&lt;cfstoredproc', '&lt;/cfstoredproc&gt;', '&lt;cfswitch', '&lt;/cfswitch&gt;', '&lt;cftable',
			'&lt;/cftable&gt;', '&lt;cftextarea', '&lt;/cftextarea&gt;', '&lt;cfthrow', '&lt;cftimer', '&lt;/cftimer&gt;',
			'&lt;cftrace', '&lt;/cftrace&gt;', '&lt;cftransaction', '&lt;/cftransaction&gt;', '&lt;cftree', '&lt;/cftree&gt;',
			'&lt;cftreeitem', '&lt;cftry', '&lt;/cftry&gt;', '&lt;cfupdate', '&lt;cfwddx','&lt;','&gt;'
			),

There might be other bugs in the geshi files, as I find them I will post the code on this blog.

My version of WordPress that I am using is 2.5.1