Category Archives: Uncategorized

(MySQL) Age in Years for Given Birthdate

Given a birthdate in @dob, here are two simple formulae for age in years : (the second formulae is for age in years to two decimal places, ignoring day of month)

Posted in Uncategorized | Tagged , , , , , | Leave a comment

(XSLT) How to embed javascript and html inside xslt

Place the following inside a “ block

Posted in Uncategorized | Tagged , , , , , | Leave a comment

(CSS) WordPress Code Highlighter CSS

This needs to be used with the code that gets output using the quick highlighter. Follow these steps to use with WordPress: First copy your php code Go to http://quickhighlighter.com/ Paste your code into the textarea Click Highlight! When the code pops up, click the “Toggle Code View” link Copy the Code (not the css, [...]

Posted in Uncategorized | Tagged , , , , | Leave a comment

Using Bootstrap to fasten the development of webapps and sites

Twitter has just released a toolkit called Bootstrap. Bootstrap includes CSS for Grids, Layouts, Typography, Tables, Forms, Navigation, Alerts and Popovers. Use the following snippet to include Bootstrap in your project. <link type=”text/css” rel=”stylesheet” href=”http://twitter.github.com/bootstrap/assets/css/bootstrap-1.0.0.min.css”>

Posted in Uncategorized | Tagged , , , , , , | 1 Comment

(SQL) Rename Microsoft SQL Server Database Schema

Generates a set of queries to run which will change the schema for all items within a specified schema and change them to another.

Posted in Uncategorized | Tagged , , , , | Leave a comment

(CSS) Pure CSS3 Buttons

Pure CSS3 buttons with 9 pre-defined colours and 3 styles

Posted in Uncategorized | Tagged , , , , , | Leave a comment

(Apache) Setting PHP Memory Limit in .htaccess

php_value memory_limit 64M

Posted in Uncategorized | Tagged , , , , , , | Leave a comment

Custom fonts with the Google Fonts API

You can read more about the Google Fonts API here. @import url(fonts.googleapis.com/css?family=Terminal+Dosis+Light|Lato); @import url(fonts.googleapis.com/css?family=Terminal+Dosis+Light); @import url(fonts.googleapis.com/css?family=Lato);

Posted in Uncategorized | Tagged , , , , , , , , | Leave a comment

base CSS for flash 100%

// base css for flash 100% width min size that works in ff3+, safari3+, google chrome 1+ Remember to use a reset.css: the margin / padding of html and body must be zero.

Posted in Uncategorized | Tagged , , , , , , , , | Leave a comment

(CSS) CSS3 Link Colour Transition

Use CSS3 to animate the colour of links.

Posted in Uncategorized | Tagged , , , , , , , | Leave a comment