lamp

July 2008 - Posts

Installing Fedora on Microsoft Virtual PC
31 July 08 06:36 PM | Frederick.Chapleau | with no comments

Some switch, and you're done...

http://blogs.technet.com/seanearp/archive/2008/05/19/installing-fedora-9-sulphur-in-virtual-pc-2007.aspx

-f.

Filed under:
How to resize a Transparent GIF using C# / ASP.NET
30 July 08 05:23 PM | Frederick.Chapleau | 2 comment(s)

After a couple of hours searching and tweaking some solutions, I want to share what I found, that is able to resize a transparent GIF.

The solution was found by John Kim at

http://frontendframework.com/dot-net/dynamic-image-size-converter-c/

The basic idea is to write the transparent image on an other image that is already the size that you want with the background that you want.

Thanks John.

-f.

Filed under:
The basics of Asynchronous call in .nET
29 July 08 12:06 PM | Frederick.Chapleau | 1 comment(s)

That is what I call a really nice overview of async programming in .NET.

From the most basic way to the most complex way to do asynchronous processing.

http://www.codeproject.com/KB/cs/AsyncMethodInvocation.aspx

-f.

Filed under:
Delete files older than X hours
25 July 08 12:56 PM | Frederick.Chapleau | with no comments

This simple utility is good to do that, the parameters are great, and do not try the hour parameter, it's not configured in the Demo Project...

http://www.codeproject.com/KB/files/deleteold.aspx

-f.

Filed under:
ASP.Net CS0433 Error Code Solved
25 July 08 10:54 AM | Frederick.Chapleau | with no comments

When using an ASP.Net application (so, with a compiled source assembly) you may encounter this error.

This can occur in many circumstances, but in my case when the ASP.NET page has a src tag and not a code behind tag. This produce an other assembly for the page that is concurencing the actual generated application assembly, so ASP.NET can't choose the good one. By changing the src attribute by the CodeBehind attribute, this is solved.

Ex:

<%@ Control Language="C#" src="test.ascx.cs" Inherits="Assembly.namespace.test" AutoEventWireUp="false" %>

by

<%@ Control Language="C#" codebehind="test.ascx.cs" Inherits="Assembly.namespace.test" AutoEventWireUp="false" %>

-f.

Filed under:
Project Build and Publish Location
15 July 08 03:11 PM | Frederick.Chapleau | with no comments

Error 2 Unable to copy file   to . The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

Why this limitation exists. I don't know, but the only way I've found to correct that is to change the build location.

-f.

Filed under: