-
Dynamic paths in external javascript and stylesheets
Posted on April 19th, 2010 No commentsBest practices dictate that unobtrusive javascript is king these days which means that all javascript should live in external js files instead of cluttering up the html. Simple enough, however, situations arise sometimes where you need to adapt your javascript for dynamic conditions of the application, most notably, the current base directory where your application lives. If your application is small enough you can just hard code paths to images, other scripts, or internal urls however if you are anything like me, you probably shudder at the thought of hard coding any thing. Take this use case into consideration: let’s say we have an external javascript file called myscript.js which houses all of our javascript for handling click events on ajax powered links throughout the site.
Read Entire Article
-
Silk CMS Progress
Posted on April 13th, 2010 No commentsI’ve gotten some inquiries regarding the status of Silk CMS, the content management system I am developing. Since there is some interest in the project I decided to announce that the google code project page has been activated and that I have committed the project to svn. I don’t want to go too much into the design philosophy here since I am planning a large article on CMS design in general however I wanted to start posting about my progress as it gets closer to a production-ready state. Thanks everyone for being patient. I actually created the google project page some time last year when I had been able to work on it and then there was a huge stint of client projects that bombarded me at eroi so I had to move the project to the back burner for a time. Suffice to say, I never had any intention of letting this project become vaporware and I can guarantee that it will not since I can certainly leverage it pretty effectively at my job.
Read Entire Article
-
Remotely Managing WordPress with PHP
Posted on April 8th, 2010 1 commentWordpress is the ubiquitious platform these days although I hope to change this with the inevitable release of Silk CMS in the next month or so. In my line of work, I tend to have to install many, many copies of wordpress all over the place. Wordpress makes a great platform for deploying niche sets especially and comes with hundreds of plugins that make creating these sites dirt simple. Anyone who has managed niche sites can attest that it becomes quite unwieldy to manage hundreds of websites. It helps to standardize on a common infrastructure for all of them (ie, themes, plugins, etc) however each site needs to be slightly customized to a particular niche. Plugin settings need to be tweaked, headers changed, sublines updated, etc. Uploading wordpress to each host and manually unzipping it and re-uploading everything that is non-stock is one way to go about it but it’s tedious and time consuming. If you happen to host on a hosting service that offers fantastico your job is a little easier but not by much.
Read Entire Article


