MGBlog
A log of issues faced by a .Net contractor, and the resolutions used. There
is a mixture of C# and VB.Net. Also included are items seen by the author as
interesting to .Net developers.
View last
items
Thursday, 09 April 2009
Thu, 09 Apr 2009 - 10:20am (GMT+1)
I have been working with Parallels Plesk 9.0 control panel software to enable one of my customers to administer their web server more effectively. As part of this I set up the Plesk backup to run every night. At the end of each backup Plesk sends an email giving the status of the backup. This status email was giving the status as "Task status is: warnings". This email also has a "migration.result" file attached which gives a bit more detail in XML format. Against each of the domains on the server there was this entry:
<message code="InformationalException" severity="error">Cannot dump domain hosting settings</message>
After Googleing and searching the Parallels web site and not finding anything much I decided to contact Parallels support. It turns out that this is caused by an issue with the way Plesk interfaces with SmarterStats. If you are experiencing the same issue there is a hot fix at http://kb.parallels.com/en/6144 and this will be included in a future Plesk patch.
Friday, 16 November 2007
Saturday, 10 November 2007
Sat, 10 Nov 2007 - 07:14pm (GMT+0)
I thought for a change it was about time I learnt something that was not Microsoft related. I seem to be getting endless calls by people wanting me to help them with their PHP sites, so I thought it would be a good idea to learn it. After about ten minutes I remembered why I don't normally venture away from the Microsoft world. It is not that the rest of the software world is bad, but I definitely seem to be jinxed when I go there.
The first thing that does my head is the first line on the PHP Manual. You see, apparently PHP stands for "Hypertext PreProcessor", but in my world that should make it HPP. Anyway, I won't hold that against them so I head off and download the installer for version 5.2.5. It downloads fine and the number of bytes downloaded match what the site says they should be only when I run the thing I get this error message just after the step where you specify the install directory:
"The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2878."
It turns out, I'm not the only one to have this issue. There are six more on the bug report. I'm not sure what causes this, but you would have thought that some testing would have occurred on the worlds most used operating system wouldn't you. As there is no sign of the msi for the previous version, I'm left to do the multi-step manual install. Maybe I might get to writing my "Hello PHP World" application sometime before Christmas. I'll let you know how it goes when I do.
Monday, 11 September 2006
Mon, 11 Sep 2006 - 05:28pm (GMT+1)
I am a bit late getting onto the whole Technorati thing. But I thought it was about time I gave it a go.
Here is a link to my profile: Technorati Profile
Monday, 14 August 2006
Mon, 14 Aug 2006 - 09:00am (GMT+1)
It really bugs me that C# does not have an equivalent of VB’s Left function. I know I could be using text.Substring(0,length) but this has the rather annoying feature of throwing an exception if the string is shorter than the length parameter. In 99.999999% of cases what I actually want it to do is return as much as it can instead.
Anyway here is my equivalent:
public static string Left(string text, int length)
{
if (length < 0)
throw new ArgumentOutOfRangeException("length", length, "length must be > 0");
else if (length == 0 || text.Length == 0)
return "";
else if (text.Length <= length)
return text;
else
return text.Substring(0, length);
}
Subscribe to my RSS 2.0 feed
which I've
Validated.
GeoURL