Click here to Skip to main content
15,072,544 members

Articles by Pascal Ganaye (Articles: 17, Tip/Tricks: 12)

Articles: 17, Tip/Tricks: 12

RSS Feed

Average article rating: 4.58

Containers
Virtual Machine
Posted: 7 Jul 2010   Updated: 8 Jul 2010   Views: 47,882   Rating: 4.78/5    Votes: 9   Popularity: 4.56
Licence: The GNU General Public License (GPLv3)      Bookmarked: 28   Downloaded: 2,655
Please Sign up or sign in to vote.
Writing a parental control software: The beginning of the adventure
Desktop Programming
Windows Forms
Posted: 6 Feb 2005   Updated: 1 May 2005   Views: 218,928   Rating: 4.58/5    Votes: 51   Popularity: 7.70
Licence: Custom License      Bookmarked: 128   Downloaded: 5,632
Please Sign up or sign in to vote.
This article introduces a little class which lets you show any usercontrol in XP style popup menu.
Posted: 11 Aug 2005   Updated: 11 Aug 2005   Views: 124,710   Rating: 4.57/5    Votes: 12   Popularity: 4.57
Licence: Not specified      Bookmarked: 28   Downloaded: 2,610
Please Sign up or sign in to vote.
A small program which solves the paint-by-numbers puzzles in virtually time. It is a spoiler if you're a player. If you're a programmer however I think it shows how this problem can be solved.
Mobile Apps
Posted: 20 Nov 2013   Updated: 21 Mar 2014   Views: 179,219   Rating: 4.80/5    Votes: 60   Popularity: 8.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 182   Downloaded: 7,132
Please Sign up or sign in to vote.
This library allow serialization and deserialization of objects to CSV with very little code.
Operating Systems
Windows
Posted: 13 Apr 2006   Updated: 18 May 2007   Views: 560,895   Rating: 4.98/5    Votes: 166   Popularity: 11.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 203   Downloaded: 6,659
Please Sign up or sign in to vote.
This second article about evaluation in .NET introduces a parser which pre-compiles the expressions
Programming Languages
C#
Posted: 28 Jun 2011   Updated: 28 Jun 2011   Views: 33,112   Rating: 4.73/5    Votes: 18   Popularity: 5.94
Licence: The Code Project Open License (CPOL)      Bookmarked: 34   Downloaded: 2,072
Please Sign up or sign in to vote.
A small utility that will help you get rid of the hard to remove protected or system folders
Posted: 1 Jun 2009   Updated: 10 Jun 2009   Views: 276,686   Rating: 4.91/5    Votes: 110   Popularity: 10.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 346   Downloaded: 9,693
Please Sign up or sign in to vote.
DbfDotNet is a very fast and compact fully managed standalone database/entity framework, for the .Net Framework.
Posted: 29 Oct 2005   Updated: 29 Oct 2005   Views: 120,477   Rating: 4.64/5    Votes: 34   Popularity: 6.86
Licence: The Code Project Open License (CPOL)      Bookmarked: 53   Downloaded: 674
Please Sign up or sign in to vote.
Use the award winning Coco compiler's compiler directly from within Visual Studio
Posted: 26 May 2009   Updated: 25 Jan 2012   Views: 82,021   Rating: 4.00/5    Votes: 12   Popularity: 4.17
Licence: The Code Project Open License (CPOL)      Bookmarked: 33   Downloaded: 0
Please Sign up or sign in to vote.
A simple function to transform a Byte[] into an Hex Dump formatted string
Posted: 31 May 2015   Updated: 31 May 2015   Views: 12,070   Rating: 4.67/5    Votes: 2   Popularity: 1.40
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
This helper add a ReadLine method to the BinaryReader. This allows programs to read both binary and text from the same stream.
Visual Basic
Posted: 31 Jul 2005   Updated: 31 Jul 2005   Views: 152,575   Rating: 4.59/5    Votes: 23   Popularity: 6.07
Licence: Not specified      Bookmarked: 70   Downloaded: 2,266
Please Sign up or sign in to vote.
I use a procedure based on batch files to copy various versions of my project. I was a bit fed up to wait for the batch file to copy hundreads of files and wrote this small utility to speed up the process. I hope some of you will find it useful.
Posted: 7 Feb 2005   Updated: 14 Oct 2012   Views: 229,777   Rating: 4.80/5    Votes: 55   Popularity: 8.28
Licence: The Code Project Open License (CPOL)      Bookmarked: 82   Downloaded: 5,798
Please Sign up or sign in to vote.
An expression evaluator written in VB.NET.
Posted: 11 Dec 2007   Updated: 26 Nov 2014   Views: 100,927   Rating: 4.83/5    Votes: 37   Popularity: 7.33
Licence: The Code Project Open License (CPOL)      Bookmarked: 101   Downloaded: 555
Please Sign up or sign in to vote.
In this article, I try to highlight some issues in the .NET Framework generic list and how to circumvent them
Posted: 14 Mar 2005   Updated: 14 Mar 2005   Views: 106,283   Rating: 3.40/5    Votes: 16   Popularity: 4.09
Licence: Custom License      Bookmarked: 11   Downloaded: 381
Please Sign up or sign in to vote.
Rather than discussing forever whether C# is better than VB or vice-versa, let's see which programmers are best.
Posted: 17 Jan 2008   Updated: 4 Jul 2008   Views: 86,909   Rating: 4.79/5    Votes: 23   Popularity: 6.34
Licence: The Code Project Open License (CPOL)      Bookmarked: 54   Downloaded: 2,025
Please Sign up or sign in to vote.
The IComparer available in .NET lets you sort numbers or strings. This little class available in both C# and VB shows how to implement an IComparer which will work with mixed characters and numbers.
Posted: 9 Dec 2005   Updated: 9 Dec 2005   Views: 262,758   Rating: 4.44/5    Votes: 36   Popularity: 6.50
Licence: The Code Project Open License (CPOL)      Bookmarked: 55   Downloaded: 2,365
Please Sign up or sign in to vote.
A program to help you to solve Sudoku problems or check if a Sudoku problem has only one solution.
Web Development
HTML
Posted: 2 Jul 2008   Updated: 1 Jun 2009   Views: 62,931   Rating: 4.32/5    Votes: 17   Popularity: 5.20
Licence: The Code Project Open License (CPOL)      Bookmarked: 13   Downloaded: 0
Please Sign up or sign in to vote.
This article explains how to fix a bug in the ASP.NET Framework when using callback panels.

Average blogs rating:

No blogs have been submitted.

Average tips rating: 4.65

Database Development
SQL Server
Posted: 1 Feb 2012   Updated: 8 Feb 2012   Views: 20,840   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
Reproducing the SQL RAND() function in C#
Posted: 7 Feb 2012   Updated: 18 Feb 2013   Views: 163,323   Rating: 4.81/5    Votes: 11   Popularity: 4.81
Licence: The Code Project Open License (CPOL)      Bookmarked: 22   Downloaded: 0
Please Sign up or sign in to vote.
This SQL stored procedure creates a database from scratch with some meaningful content.
General Programming
String
Posted: 15 Dec 2011   Updated: 16 Dec 2011   Views: 12,760   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
A custom C# string implementation that stores its data in a UTF8 byte array.
Multimedia
Video
Posted: 30 Oct 2012   Updated: 30 Oct 2012   Views: 21,692   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 0
Please Sign up or sign in to vote.
Very simple program for in-situ video compression.
Productivity Apps and Services
Microsoft Office
Posted: 22 Mar 2011   Updated: 25 Mar 2011   Views: 26,660   Rating: 4.82/5    Votes: 13   Popularity: 5.37
Licence: The Code Project Open License (CPOL)      Bookmarked: 16   Downloaded: 0
Please Sign up or sign in to vote.
Deleting protected folders in Windows 7
Programming Languages
C
Posted: 4 Nov 2011   Updated: 6 Nov 2011   Views: 7,950   Rating: 4.88/5    Votes: 5   Popularity: 3.41
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 33
Please Sign up or sign in to vote.
When you search manually, you can search for every odd number that is a step of 2. If you're a bit more clever (as you are), you can use steps of 6 (2 * 3). Testing (testno+1)%6==0 is very similar to (testno % 6) = 5.You can speed up big time by having a loop that increments per steps of...
C#
Posted: 17 Nov 2012   Updated: 24 Nov 2012   Views: 16,930   Rating: 4.75/5    Votes: 8   Popularity: 4.29
Licence: The Code Project Open License (CPOL)      Bookmarked: 29   Downloaded: 0
Please Sign up or sign in to vote.
A super simple and fast methods to copy objects
Posted: 18 May 2012   Updated: 25 Jun 2013   Views: 34,461   Rating: 4.89/5    Votes: 12   Popularity: 5.27
Licence: The Code Project Open License (CPOL)      Bookmarked: 39   Downloaded: 0
Please Sign up or sign in to vote.
This class dumps any .NET object properties to your output window.
Posted: 23 Oct 2011   Updated: 24 Oct 2011   Views: 27,843   Rating: 1.92/5    Votes: 4   Popularity: 1.16
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
There doesn't seem to be any encoding for the 'Iranian system encoding standard' in .NET
PHP
Posted: 26 Apr 2012   Updated: 30 Apr 2012   Views: 32,477   Rating: 4.75/5    Votes: 4   Popularity: 2.86
Licence: The Code Project Open License (CPOL)      Bookmarked: 10   Downloaded: 0
Please Sign up or sign in to vote.
A set of functions to get slightly shorter unique Guids
SQL
Posted: 4 Oct 2011   Updated: 4 Oct 2011   Views: 10,200   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
WITH tempTable(Column1)AS( SELECT 'chaitanya' [Column1] UNION ALL SELEC`T SUBSTRING(Column1,1,LEN(Column1)-1) FROM tempTable WHERE LEN(Column1)>0)SELECT * FROM tempTable ORDER BY LEN(Column1)Result:cchchachaichaitchaitachaitanchaitanychaitanya
T-SQL
Posted: 26 Oct 2011   Updated: 26 Oct 2011   Views: 26,460   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
Provides a couple of hash functions (string to int) that will return the same value in C# and T-SQL

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.

Pascal Ganaye
Software Developer (Senior)
France France
I am a French programmer.
These days I spend most of my time with the .NET framework, JavaScript and html.