Creating URL Slugs / Permalinks in C# (csharp)
Bit of a code dump but what the hey it will have to do.
In wordpress we have a wonderful set of functions that takes your title and converts it to a URL friendly version in the slug or permalink area. This also handles foreign characters converting them to their standard ascii equivalent.
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
Fix Magento 1.4.1 @domain.biz Checkout issue
Magento as of 1.4.1 will not allow a customer to move on in the shopping journey if theyre using a .biz domain name.
This is a simple bug to fix and simply anĀ omissionĀ in the original code and someone forgetting to test it...
Validating UK Credit & Debit Cards With LUHN to Type
Credit Card validation is a Pain in the Arse *Updated April 2010 But its not going anywhere fast. So I’ve combined two of the scripts I’ve found to meet my needs, added UK credit card data (Maestro/VisaDebit etal) and a bit of optimization and here it is. Algorithm Sources: * http://www.codeproject.com/KB/aspnet/UltimateCreditCardUtility.aspx * http://orb-of-knowledge.blogspot.com/2009/08/extremely-fast-luhn-function-for-c.html * Extra … Read on Squire
