Browse by Tags

All Tags » C# (RSS)

Cloning objects in .NET

In an interesting project where I'm giving a hand, we need to clone objects of a number of different types, perhaps surprisingly the CLR doesn't offer a general cloning method, of course you could use MemberwiseClone() but this is a protected method,...
Posted by Edgar Sánchez | 2 comment(s)
Filed under: ,

A cool way to find out whether a number is palindromic

In this blog entry I proposed a solution to Problem 4 at Project Euler , a crucial element of the problem is to find out whether a number is a palindrome (909 is, 809 isn't), a bit out of laziness and a bit in order to reuse existing methods, I decided...

Which is the ten thousand first prime?

Prime numbers have a good deal of practical applications (for example in cryptography) but let's face it, even if they would have none, they would still be the favorite toy of mathematicians . In Problem 7 of Project Euler , we are asked to find the 10001st...

The square of the sum vs. the sum of the squares

The sixth Project Euler problem poses an exercise that, to me, offers no major hurdles: What is the difference between the sum of the squares and the square of the sums [of a sequence of natural numbers]? The functional C# solution is fairly easy to write...

Recursive lambdas and sequence aggregations

The fifth problem at Project Euler proposes this nostalgic primary school exercise: find the smallest quantity that is evenly divisible by some numbers, the least common multiple of 1, 2, 3, ..., 20 to be precise. To begin with, let's remember the old...

Nested sequences and palindrome numbers

Problem 4 of Project Euler poses and impractical albeit intriguing problem: given all three digit numbers (100, 101, 102, ..., 998, 999), find the largest product of 2 of those numbers, where the product is a palindrome . For example, 580.085 is the product...

Oracle 10g for Windows Vista released

Oracle has just released a version of its database server specific for Windows Vista, you can download Oracle Database 10g Release 2 (10.2.0.3) Enterprise/Standard Edition for Microsoft Windows Vista (slightly long name). Now, if what you want is to ...

Mono 1.1.16: Python, Windows Forms, ASP.NET 2.0

This is actually Beta 3 of Mono 1.2, some highlights (according to the official announcement ): IronPython 1.0 Beta 8 works with this release out of the box. Majorly improved Windows.Forms and System.Drawing as our beta program for Windows.Forms continues...

From the Peculiar Ideas Departament: Compilr

Say you're away from home and just have to compile some lines of code to prove a theory, how do you do? Easy: browse to http://www.caller.me.uk/Compilr/ , type or paste your lines and the code is compiled in a far and away server. It sounds like a strange...

ADO.NET provider for Postgresql

This is not really news as the driver has been available since April: Npgsql is an ADO.NET data provider written in C# that enables any .NET application to work with Postgresql 7.x and 8.x. You can download the provider from here .
Posted by Edgar Sánchez | 2 comment(s)
Filed under: , , ,
More Posts Next page »