Blog posts page 22 of 44

Windows Mobile 6 on the HTC TyTN with a Mac

Windows Mobile 6 on the HTC TyTNIt’s been a while coming but HTC have announced Windows Mobile 6 for the TyTN (Hermes, Dopod 838Pro, iMate JASJAM , SoftBank X01HT).

Curiously the update isn’t available on their site yet despite the announcement however the enterprising folks at XDA Developers Forums have made the official HTC versions available for download.

Partial methods in .NET 3.5, overview and evolution

  • đź“…
  • đź“ť 473
  • đź•™ 3
  • 📦 .NET
  • đź’¬ 1

One of the interesting new things in .NET 3.5 is partial methods which are now being used extensively by LINQ to SQL and no-doubt will be Microsoft’s corner-post of extensibility for generated classes. Here’s a quick overview:

When inheriting from generated classed designers often provide virtual methods for you to override and extend at a cost of being forced to inherit from the generated class instead of one of your own choosing. e.g.

Importing BlogML into WordPress

I’ve been trying to get my content out of Subtext and into WordPress — a process that shouldn’t be difficult however Subtext only supports the blog-independent BlogML format and whilst WordPress supports a number of import formats BlogML isn’t one of them. For export WordPress only supports it’s own WordPress WXR format although the BlogML guys have an exporter available.

The first idea was to put together an XSL transform to convert BlogML to WXR.

Rails-style controllers for ASP.NET

  • đź“…
  • đź“ť 610
  • đź•™ 3
  • 📦 .NET
  • đź’¬ 1

Rob Conery has been putting together some great screen casts on SubSonic and his latest on generating controllers pointed out that ASP.NET doesn’t support the Rails-style http://site//controller/method style of execution.

This got me quite excited and I’ve put together a proof-of-concept web project that demonstrates mapping the path to controller methods using an IHttpHandlerIHttpHandler and reflection.

Hidden menu options on the Mac

  • đź“…
  • đź“ť 646
  • đź•™ 3
  • 📦 Apple

Apple tends to hide away unusual functionality in order to keep the user interface easy to use.

Here are a few hidden menu options that magically appear when you press the ShiftShift, AltAlt or CtrlCtrl modifier keys.

What are you doing for the next 6 months to be a better developer?

Scott Hanselman posed the open question on his Hanselminutes podcast and there have already been some good responses. My own plan includes:

My girlfriend gave me the well-regarded Code Complete, Second Editionfor my birthday. I shall read it cover to cover and adopt good practices I am not currently practicing.

Italic syntax highlighting in Visual Studio 2005

I came across a posting by Thomas Restrepo about a theme for Vim he likes called Wombat and how it wouldn’t be worth porting to Visual Studio as it doesn’t support italic syntax highlighting — as we all know.

This got me thinking and I was able to port it with italicswith italics although the process is a bit of a hack.

CodeSmith template to generate LINQ To SQL Data Context

If you are interested in what LINQ to SQL generates and don’t have Orcas installed or available right now but use CodeSmith try the following template to generate very similar code.

The primary difference is that this writes out the System types rather than the C# aliases (e.g. System.Int32 instead of int) but that could easily be changed but is binary compatible and otherwise almost identical to the source.