Dear Umbraco… I Can Haz Content?!

Basic mission; code not my own. Create an advert type; consisting of URL and Image. Additional requirement created setting the type of advert (using uComponents) An AdvertContainer (Doc Type) With two ‘types’ of advert (i.e. 3rdparty/mpu) ThirdParty contains JS (no image/URL) MPU contains Image/URL var nodes = GetMultiNodeSelection(1101, "adverts"); Foists off into some god awful … Read on Squire

Self Referencing Table Joins in FluentNHibernate

A common usage of the self-referencing joins is the use of 1 table for regions and subregions; its also the laziest example that comes to mind. Entity using System.Collections.Generic; using Domain.Base; public class Region : DomainObject<int, Region> { private IList<Region> _subRegion = new List<Region>(); public virtual string Name { get; set; } public virtual IList<Region> … Read on Squire

Using Umbraco Content Service outside of Umbraco context/control in Umbraco 6

In order to make user of IContentService outside of Umbraco Controllers/Views/etc you’re going to need to expose it. Much in the same way you’d setup NHibernate to create a session factory on application start we grab IContentService and make it accessible. In this case via UmbracoApplication.UmbContentService UmbracoApplication.cs namespace XXX.UI { using System.Web.Http; using System.Web.Mvc; using … Read on Squire

Faux Font and Text Rendering the future is nigh and its fuzzy

Note* This will only really be different for Windows/Linux users where font-aliasing isn’t a standard feature (like the mac); but seeing Windows is 95% of the market it’s worth it.   This is the standard font aliasing This is the faux-font aliasing using text shadow (using RGBA) text-shadow: 0px 0px 1px rgba(0,0,0,0); This is the … Read on Squire

Handling TripleDES (ECB with PKCS5Padding) in PHP

I came across an issue a few years back that I was supposed to post about there and then; what the hey no buggers bothered to fix it. Basically PHP – MCrypt is great, it handles lots of nice encryption algorithms very simply and provides just the right amount of abstraction to the user to … Read on Squire

My Pre-HTML5 & HTML5 CSS Reset

These resets were a mix of my own stuff, YUI and various others I mashed in during development Resets, the necessary evil Some people will say that you don’t really need a reset, and that it creates extra work; unfortunately this is only true in the case of tech-sites and small sites that don’t need … Read on Squire

Good Sir, Before you UnLoad – cross-browser JavaScript headaches

Sometimes when working with Booking processes and long forms you come across the need to slap that old cross-browser tart, the before-onunload event to warn the user that they appear to be trying to exit the page in a dramatic way (close tab, browse elsewhere) which contradicts the purpose or intentions of the page they’re … Read on Squire

Upgrading your Bitnami Redmine Install (Windows)

New Redmine versions come out every month or so which is great, top software, free and it saves us all from having to suffer silly corporate ideas like using Sharepoint for project management or bug tracking. Wouldn’t it be nice if you had some simple instructions… SSDD. *Note Next Week(ish) I’ll add a PDF which … Read on Squire

Setting up ASP.Net MVC 2 on IIS6 with IISRewrite

This will also work in ASP.net MVC, as in the first one.

It's a somewhat well known fact, (by somewhat I mean for amongst web devs, my mum wouldn't understand any of that), that IIS6 is the IE6 of Servers, its slow, dim-witted, annoying, crap and here to stay.

So to make life a little more bearable and to save the rest of the web-society from a life of .net 2 webform's, bloated view states and ugly urls here's a quick "how to".

CSS3 Recipes for Internet Explorer 6, 7 and 8

Recently as a quick fix to a headache I resorted to adding ‘behaviour’ css modifiers to my IE scripts to add CSS3 style behaviours for IE6/7/8; its a quick and easy thing to do simply refer to http://fetchak.com/ie-css3/ , but before you wonder off test one thing for me. Grab the file from that site … Read on Squire