June 2010 Articles by f3 Internet
This article was originally published on 03/10/2008 by Stephan over at Brighternet. Migrated with permission.
Typo is a blogging platform built on Ruby on Rails. It supports theming to change the look and feel of the site. Many themes are available to download from typogarden, or you could write your own.
This article will explain how to create a theme for Typo 5.1.3. It will help if you have a basic understanding of how Rails serves web pages, via its ActionPack framework.
Read more…
Posted by Stephan on 18 Jun 2010. Tagged typo, rails, design.
This article was originally published on 03/10/2008 by Stephan over at Brighternet. Migrated with permission.
Both Markdown and Textile are similar when it comes to generating most basic formatting, like headers, paragraphs, blockquotes and lists. However, when writing technical articles about web development, Textile wins for two simple reasons.
Read more…
Posted by Stephan on 18 Jun 2010. Tagged markdown, textile.
This article was originally published on 11/10/2008 by Stephan over at Brighternet. Migrated with permission.
If you’re writing an application that takes user input, you must sanitise the data before you use it. If not, you leave your application open to abuse.
A good example, which I’ll use to illustrate this article, is SQL injection. This is a well known exploit whereby lazy programming allows an attacker to manipulate database queries for their own means.
The article focuses on PHP with MySQL, though the issues are relevant whatever language and database are used.
Read more…
Posted by Stephan on 18 Jun 2010. Tagged security, php, sql.
This article was originally published on 12/11/2008 by Stephan over at Brighternet. Migrated with permission.
Capistrano is a tool for automating tasks on remote servers via SSH. It simplifies the process of application deployment and maintenance by allowing you to wrap up a number of repetitive tasks into succinct Capistrano commands (called tasks).
Because Capistrano sprung from the Ruby on Rails community its default operation is designed for Rails applications. However, with a few small changes it can be used to deploy anything.
This article describes how to use Capistrano 2.5.1 to deploy non-Rails web sites, such as static HTML or PHP sites.
Read more…
Posted by Stephan on 18 Jun 2010. Tagged rails, php, capistrano.
This article was originally published on 11/09/2009 by Stephan over at Brighternet. Migrated with permission.
This article presents a method for enhancing a user interface built with Ruby on Rails to show a link to a RESTful operation if Javascript is available or a form button if not.
Read more…
Posted by Stephan on 18 Jun 2010. Tagged rails, usability, accessibility.
This article presents a simple method of creating an hCard directory in the MODx content management system. Each hCard will have an associated vCard available for download.
MODx is a lightweight PHP-based content management system. It has the concept of “snippets”, “chunks” and “template variables” that come together to create a flexible system that’s perfectly suited for developing custom behaviour. This article assumes that the reader is already familiar with these concepts. Please refer to the MODx learning resources if not.
vCards are a basic file format used for storing information about people and organisations, such as their name, telephone number, email address, etc. Generally, they can be easily and automatically imported into applications that have an address book, like a personal organiser or email client, which as a web site owner gives your visitors a one-click import of your details into their address book.
hCard is a Microformat based on vCards. Microformats are a basic method of augmenting the normal markup of a web page with open data for the Semantic Web. As the semantic web becomes more relevant, with the big search engines looking for an increasing amount of open data and a variety of interesting applications emerging, the small effort involved in putting Microformats on your site is well worth it for a presence on the next generation of the web.
Read more…
Posted by Stephan on 22 Jun 2010. Tagged microformats, semantic web, modx.