lamp

September 2006 - Posts

1 5 6 7 = 21 !?
26 September 06 11:04 PM | Frederick.Chapleau | with no comments

After earing on the radio a problem that was challenging a listener, I found a solution on the internet from the newsgroup sci.math.recreational.

But, a bubble passed in my head and I developped a little software that uses permutation and variations to handle this kind of problem, that uses numbers and basic operations (+,-,* and /).

The result is done in C#, using .NET 1.1 and can be found at CombinaisonFinder.exe.

A command line tool that handle two parameters :

the first, a series of numbers without space or comma, default: 1567

the second, the operations, default: +-*/

Like almost all developper, I am now in the programmer's golden platting  phase. So, I will post a second software, that try to findout the hardest equations... ;)

-f.

Outlook blocking attachment
22 September 06 02:37 PM | Frederick.Chapleau | with no comments

Check out this Microsoft KB article...

http://support.microsoft.com/kb/829982

-f.

Openning a file with french content in C#
15 September 06 08:57 AM | Frederick.Chapleau | with no comments

Many persons fix this problem by openning the file with binary content. My solutions in simplier, instead of openning the file with

StreamReader rdr = File.OpenRead(filname)

use

StreamReader rdr = New StreamReader(filename, System.Text.Encoding.Default)

-f.