Furious Angel

Pom down under

Lazy Boy

clock February 22, 2006 02:23 by author Dave

I'm so lazy. I haven't been to the gym in over a week and the guilt is culminating. It feels like I'm back at school and haven't done my homework. I will not become one of those people who goes for two months and then stops. No sir. I won't be going tonight though...err.. I have stuff to do. Really I do.

Sarah will be coming up to stay for 4 or 5 nights and the flat needs tidied. I should really just keep it tidy rather than tidying it when somebody is going to come round but can never find the time. Where does all the time go? Get up at 07:15 for work and then arrive back home about 18:30. That's about 4 hours a day during the week (okay so I don't really go to bed at 22:30). I want more time.

Yellowcard are playing in Glasgow in a couple of weeks and the tickets were only 11 quid and I have nobody to go with. I could go by myself of course but it would be a whole lot better if the experience was shared. Their new album is amazing and seeing them live would be incredible :(

On a geekier note I was looking around Wikipedia earlier in the software design patterns category. Many of the patterns there are things lots of us already seem to know but just didn't know it had a name. Having said that even though I have ideas which are similar to the design patterns it's still a great help to see it written down and to have examples!



ASP.NET directory creation

clock February 3, 2006 06:23 by author Dave

I've just very recently managed to fix a problem with my site that wouldn't let me create directories using System.IO.Directory.CreateDirectory() and System.IO.DirectoryInfo.CreateSubDirectory(). The exception thrown is DirectoryNotFoundException - Could not find a part of the path "D:\"..

Now this only happens on my host, not my local machine and I couldn't work out what the problem was. It turns out that it's a “feature” of .NET and both those methods need ReadOnly access to the root drive, which of course no host is going to give you. I eventually found some sort of a solution to the problem (I can't remember where). Adding the following code (c#) will sort the problem out:

[DllImport("msvcrt.dll", SetLastError=true)]
static extern int _mkdir(string path);

Using the _mkdir() method will create the directory for you. This is unmanaged code and so isn't ideal. But it seems to be the only way unless it has been sorted in .NET 2.

[Update] - Found the source of the solution I found.



Back In Action

clock February 2, 2006 21:21 by author Dave

Okay the site is back up and running now after the change of hosts. The new ones will even be rolling out .NET 2 soon I think (or they already have done) - this makes them good hosts (get it?).

I need to change some code here and there before I can post properly again. But I should hopefully get that fixed very soon.