Categories
Announcements

Creative Minds, Inspiring Futures

Coded, populated and tweaked on a tight deadline of just a few hours, a new WordPress-driven sub-site, created for my 9-5 employer, University College Falmouth, was sent live yesterday.

Categories
Coding

Looping through a SubSonic collection

ArticleCollection articles = new ArticleCollection();
articles.Where("IssueID", 10);
articles.Load();

if (articles.Count > 0)
{
foreach (Article a in articles)
{
Response.Write(a.Headline + ", ");
}
}

Categories
Things of interest

Ellen’s iPhone Advertisement

I do love this video – and can’t believe that Ellen was made to apologise to Apple for it.

http://www.youtube.com/watch?v=DyLh2gtQaDo

Apple need to quickly develop a corporate sense of humour as things like this, and the response to their recently lost iPhone, can only show them in a bad light.

Categories
Coding

Mapping SQL Server integer types to .NET types

BigInt = Int64 (Long)
Int = Int32 (Integer)
SmallInt = Int16 (Short)
TinyInt = Byte

e.g. byte recurrenceType = reader.GetByte(8);

Categories
Announcements

Claire Armitage

A new portfolio site has just been launched for freelance dress and costume designer, Claire Armitage.

Categories
Announcements

New Websites Launch

Designed by Cheryl Alner, three new websites have just gone live. Cablegrips Ltd, Beaminster Flowers and Flamingo Pool were all developed using WordPress.

Categories
Coding

Detecting Mobile Devices with ASP.NET

I’ve no imediate use for this code, but I know wthat it will be useful in the future – especially as the number of user’s accessing websites via mobile phones and PDAs grow.

Taken from a post by truelove.

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not IsPostBack Then
Dim Browser_obj As System.Web.Mobile.MobileCapabilities = CType(Request.Browser, System.Web.Mobile.MobileCapabilities)
If Browser_obj.Browser = "Pocket IE" Then
Label1.Text = "the is Pocket PC"
ElseIf Browser_obj.Browser = "IE" Then
Label1.Text = "Microsoft Internet Explorer"
ElseIf Browser_obj.Browser = "Phone.com" Then
Label1.Text = "the is Openwave"
End If
End If
End Sub

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not IsPostBack Then
Dim browser As System.Web.Mobile.MobileCapabilities = CType(Request.Browser, System.Web.Mobile.MobileCapabilities)
If browser.ScreenCharactersWidth < 20 Then Label1.Text = "short text message" Else Label1.Text = "long text message" End If End If End Sub

Categories
Coding

Copying data to the clipboard using C#

Clipboard.SetText( “Hello World!”);

Short and sweet! 🙂

Categories
Announcements

GoblinMarket.co.uk

A new domain name has just been snapped up for use on a future project. There are no firm plans for GoblinMarket.co.uk yet, but I’m thinking along the lines of an ecommerce web site.

Categories
Announcements

AirCooledBugs.com still in development

Its been quite a while since I first registered the AirCooledBugs.com domain name and annouced to the world my plans for the website – over 18 months ago in fact. Shame on me! Although there is no live site yet (my in-house projects always take a backseat to client work) it is still being actively developed and I hope to be able to publish the site within the next few months.