webdu 2012: web developer conference

Mere Mortals; Object Oriented ColdFusion and Web Development

Show all feed information | Ping Blog Update

Preventing Hotlinking with Nginx and NodeJS 3 months ago

If you are running a NodeJS site via Nginx then you may be using proxy_pass to route requests from Nginx to Node. If you’d like to also prevent hot linking then you might like to first have a read of Marcel Eichner’s post on preventing hot linking which this post is based. Then you …

Another 10 Interesting JavaScript Features 7 months ago

I previously posted about 10 Interesting JavaScript Features. Here’s ten more JavaScript features that I’ve recently found interesting. 1. Dynamically call object methods Javascript objects can contain functions as object members. Object members can be referenced using square bracket …

Should you use semicolons in JavaScript? 7 months ago

There has been a quite a bit of chatter recently on whether or not you should use semicolons in your JavaScript code. JavaScript provides a feature called Automatic Semicolon Insertion (ASI). For the most part there are rarely problems in omitting semicolons, but there are a few cases where …

Creating namespaces in JavaScript 7 months ago

In the past it was very common to see global variables in snippets of JavaScript code across the web, such as: name = "Spock"; function greeting() { return "Hello " + name; } A better approach is to place all of your code within a namespace; an object that …

How to use sessions on Google App Engine with Python and … 7 months ago

Google App Engine with Python does not provide built in session capabilities. This step by step walkthrough sets up a Google App Engine app using the lightweight gae-sessions utility. 1. Download gae-sessions Download the gae-sessions code from https://github.com/dound/gae-sessions/ 2. Create …

10 Interesting JavaScript Features 7 months ago

I’ve been doing some more reading on JavaScript recently and decided to note down some of what were interesting features for me. If you’ve been doing JavaScript for a while then please let me know if anything looks a bit off, otherwise I hope you find the list an interesting read! 1. …

Creating a form with labels inside text fields using jQuery 7 months ago

It’s common to see forms that have a label displayed inside text fields which then disappear when you click into the field. Let’s go through an example for a login form that demonstrates a method for doing this. First, start with a simple HTML form: <form action="" …

Installing Django with Apache and mod_wsgi on Ubuntu 10.04 7 months ago

Step by step instructions for installing Django with Apache and mod_wsgi on Ubuntu 10.04. PART 1 – Prepare the server Update the server > sudo apt-get update > sudo apt-get upgrade Install Apache and mod_wsgi > sudo apt-get install apache2 libapache2-mod-wsgi Install setup tools …

Setting up Open Source Flex SDK with debugging on Ubuntu 7 months ago

Step by step instructions for setting up Open Source Flex SDK with debugging on Ubuntu. Download the Flex SDK http://opensource.adobe.com/wiki/display/flexsdk/Flex+SDK I downloaded the file flex_sdk_4.1.0.16076.zip Unzip and install Flex Unzip, move to /opt/ and create a link named flex to it …

HTML Checked, Disabled and Selected attributes 7 months ago

Checked, Disabled and Selected are common HTML Boolean attributes. So what’s the correct way to specify these (and any other similar Boolean attributes) in your HTML markup? From the HTML 5 specs we get the following. DO THIS To add the attributes, you can do this: <input …