Archive for the 'Programming' Category

February 9, 2010

Use VS 2010 to create SharePoint WSS/MOSS 2007 Webparts

Creating webparts in Visual Studio 2008 for SharePoint 2007 can be messy and the effort required is not indicative of the ease you would expect from a product like SharePoint. There are tools to help such as VseWSS and developers at Codeplex have created several solutions such as wspbuilder.  But have you checked out recent [...]

December 9, 2009

Abridged C# Coding Standards

Internal Coding Guidelines
An abridged version of Brad Abrams coding guidelines courtesy of Nigel Belham with minor layout modifications for increased clarity.
Introduction
First, read the .NET Framework Design Guidelines. Almost all naming conventions, casing rules, etc., are spelled out in this document. Unlike the Design Guidelines document, you should treat this document as a set of suggested [...]

January 2, 2009

PHP to redirect IP addresses to different page

If you would like to redirect browsers based on their IP the following method can be used to handle multiple IP’s.  You can choose to redirect entire networks or a single ip.

<?php
//array of ip’s you wish to block. Note that you can block an
//entire class by replacing it with 0, so to block [...]

August 25, 2008

Blocking by country and high connection counts hosting servers

Most of our hosting servers run Centos Linux but we have Windows servers too and a problem common to both is the occasional high volume of traffic generated by non organic growth.  I don’t mean that someones blog hits the front page of digg, rather a malicious or DDOS attack against a website.  On shared [...]

July 24, 2008

Three little characters  designed to make your life hell

On more than one occasion these characters  have turned up just when everything else seems fine.  Known as a “BOM” or Byte Order Mark they can be extremely annoying.
What is  ???
 is often seen at the top left corner of a web page.  When you open the source file and compare that to [...]