Home
entries friends calendar user info North North West Previous Previous
North North West
When the wind is southerly I know a hawk from a handsaw
Add to Memories
Tell a Friend

So, I'm trying to get my X-Box Live subscription renewed (well, it's actually Games For Windows Live, but you know), however I have a slight issue:

  1. It won't let me redeem a code to renew my subscription because I have a payment method in decline.
  2. The payment method is in decline because the card it's trying to use no longer exists.
  3. It won't let me remove the card because it's configured to use it to auto-renew.
  4. It won't let me change auto-renew to redeem a code because the payment method is in decline...

Oh and I can't e-mail them to bitch about this because it would be an account query and I have to phone them. People who know me will know how well I get along with phoning people.

Microsoft, you excel at fucking up.

Tags:
Current Location: Maldon, Essex, UK
Current Mood: pissed off
Current Music: Me First and the Gimme Gimmes - My Boyfriend's Back

Add to Memories
Tell a Friend

OK, the inability of Visual Studio's form designer to deal with abstract base forms is a known thing and there is a work around involving TypeDescriptionProvider. However what I currently want to do is have an abstract base form that is also generic; there doesn't seem to be a work around for this.

This is highly annoying because it makes designing child forms really awkward and right now would involve more effort than I can actually be bothered to make. I mean I could make the problem go away by doing it wrong and using "object", instead of using generics to make it all lovely and verifiable at compile/development time, but damn it, using generics is the right way to do it.

The main reason this fucking annoys me so much is Microsoft actually know about the damn problem. It's been there since at least Visual Studio 2003 .NET (in the abstract form, the generic problem is obviously not in 2003), as far as I know and it's still there in Visual Studio 2010. The bug is, if you report it, just closed as "won't fix" with fluff about concentrating on security related bugs. Well fuck that, I want the designer to work properly with perfectly valid fucking code.

The code produced, if you do go to the trouble of manually writing the code to populate the derived form with your controls, works fine. It's just the form designer can't handle it because of the way it uses reflection to create an instance of the base class and then calls the InitializeComponent() method to actually fill it. That, I suspect, is why Microsoft won't fix it. It would involve a complete change in the way that the form designer functions. At least that's my supposition.

Tags: , ,
Current Location: Maldon, Essex, UK
Current Mood: annoyed
Current Music: Wendy Carlos - Brandenburg Concerto #4 in G Major: I-Allegro

Add to Memories
Tell a Friend

From the MSDN docs on the "DefaultValuesNeeded" event in DataGridView:

In data bound mode [...] When the user enters the row for new records, a new row is created in the data source before the DefaultValuesNeeded event occurs. When you populate the DataGridViewRowEventArgs.Row property in your event handler, the values are added directly to the data source.

If you're me this means you assume that DataGridViewRowEventArgs.Row.DataBoundItem would be set to the newly instantiated object created for the data source. Apparently it's not. Which is annoying.

Tags: ,
Current Location: Ealing, London, UK
Current Mood: annoyed

Add to Memories
Tell a Friend

Working from home today and Thursday, instead of Thursday and Friday, because of the industrial action on the tube. Part of me wishes they could make it a 72 hour strike, just so my Friday routine isn't getting screwed up.

Or I would be if I could actually VPN in to the office; the DSL line the VPN is forwarded on seems to be foobar again. Although I can use GoToMyPC to get in to my workstation, it can't open any connections outbound. Don't seem to be able to get in to the router's web interface either, which isn't helpful. I need a body in the office to reset it.

Tags:
Current Location: Maldon, Essex, UK
Current Mood: tired
Current Music: Placebo - Johnny and Mary

Add to Memories
Tell a Friend

I wrote this method to get round having to do app.Run(scriptName, Type.Empty, Type.Empty, Type.Empty, Type.Empty, Type.Empty, Type.Empty, Type.Empty...) with "Type.Empty" in upto 30 times.

Reflection Voodoo )

And I have since fixed some of the edge case issues (like what happens if you pass more than 30 optional parameters).

Tags: , , ,
Current Location: Ealing, London, UK
Current Mood: tired

Add to Memories
Tell a Friend
Candidate Political Party Votes Received % Elected? Majority
Channer, Penny Conservative 2359 41.63 Yes 1179
Mead, Brian Harold Independent 1180 20.83 No N/A
Crowther, Christopher John Liberal Democrat 621 10.96 No N/A
Carden, Janet Marilyn Green Party 600 10.59 No N/A
Bentley, Michael John Charles Labour 515 9.09 No N/A
Blain, Len British National Party 391 6.9 No N/A

I'm quite happy with that result. And for those of you who don't know, that's me in third place.

Tags: , ,
Current Location: Maldon, Essex, UK
Current Mood: content
Current Music: Harry Christophers, The Sixteen & The Symphony of Harmony and Invention - The Complete Funeral Music

Add to Memories
Tell a Friend
Method 'get_DbConnection' in type 'RHD.Database.DatabaseObjects.PackageBound.Course' from assembly 'RHD.Database.DatabaseObjects, Version=2.0.1.1, Culture=neutral, PublicKeyToken=null' does not have an implementation.

The main reason this exception is unhelpful is because there is an implementation for get_DbConnection (as you might have guessed from the name, it's actually the magic property method for the getter) in the ActiveRecord class, but for some reason it can't see this.

I suspect this might be something to do with Course being derived from BaseCourse, which is an abstract class derived from ActiveRecord, itself an abstract. BaseCourse also implements ICourse.

ActiveRecord is doing a partial implementation of IActiveRecord; it's implementing the dirty flag and db connection properties. The commit and delete methods are implemented as abstract and left for child classes to implement.

Solved: OK, apparently it was to do with platforms. For some reason my soltuion had reverted to building for "Any CPU" rather than "x86" (I'm on a 64-bit system, so often building for "Any CPU" won't work, becuase of assembly foobar).

Tags: ,
Current Location: Maldon, Essex, UK
Current Mood: frustrated

Add to Memories
Tell a Friend

I've uploaded some photos from the Royal Gunpowder Mills at Waltham Abbey to my flickr account.

Tags: , , ,
Current Location: Maldon, Essex, UK
Current Mood: tired
Current Music: Japan-A-Radio - Japan's best music mix!

Add to Memories
Tell a Friend

Although I should probably do something besides watch Star Wars all day...

Tags:
Current Location: Maldon, Essex, UK
Current Mood: tired
Current Music: Mike Oldfield - Five Miles Out

Add to Memories
Tell a Friend

I wish I knew what this actually meant. Google isn't terrible helpful.

Faulting application windows test service.exe, version 1.0.0.0, stamp 49fac422, faulting module kernel32.dll, version 5.2.3790.4062, stamp 46264680, debug? 0, fault address 0x0000bee7.

What's annoying is this is just a simple Windows Service I threw together so we could test something. All it does is do a directory listing on a remote server ushing SFTP every 30 seconds until you shut it down. I've tested it on my workstation and it works. It just won't run on the server.

I have this sneaking feeling it's either to do with registered assemblies or .NET code permissions...

Tags:
Current Location: Maldon, Essex, UK
Current Mood: drained
Current Music: The Darkness - Black Shuck

profile
光
Name:
calendar
Back November 2009
1234567
891011121314
15161718192021
22232425262728
2930
page summary
tags