<!--This is a lucamauri.com feed, automatically generated by Luca Mauri's xCMS-->
<?xml-stylesheet type='text/xsl' href='http://www.lucamauri.com/style/rss.xsl' version='1.0'?>
<rss version="2.0">
    <channel>
        <title>lucamauri.co m Snippets</title>
        <link>http://www.lucamauri.com/snippet</link>
        <description>Snippets from lucamauri.com website.</description>
        <language>en-gb</language>
        <generator>Luca Mauri's xCMS</generator>
        <managingEditor>rss@lucamauri.net</managingEditor>
        <image>
            <url>http://www.lucamauri.com/images/decora/rsspage.gif</url>
            <title>lucamauri.com feed, powered by xCMS</title>
            <link>http://www.lucamauri.com/snippet</link>
            <description>lucamauri.com rss feed</description>
        </image>
        <item>
            <title>Calcolare il CIN di un conto corrente</title>
            <description>Il CIN (Control Internal Number) è un tipo di &lt;em&gt;check digit&lt;/em&gt; che viene usato dalle banche italiane fin dagli anni '90. E' ancora molto utile in quanto deve essere incorporato nel codice IBAN che da metà del 2008 è sostanzialmente indispensabile per le transazioni monetarie elettroniche.&lt;br /&gt;
Pare che su internet ci siano pochissime fonti che spieghino come calcolarlo, l'algoritmo che segue si basa su una spiegazione del modulo Contabilità delle ACG di IBM.&lt;br /&gt;
L'ho provato su diversi numeri di C/C e funziona regolarmente.</description>
            <pubDate>Sun, 08 Jun 2008 16:39:12 GMT</pubDate>
            <category>snip</category>
            <link>http://www.lucamauri.com/snippet/snip.aspx?id=17</link>
            <guid isPermaLink="false">snip17</guid>
        </item>
        <item>
            <title>VB.net MD4 Message Digest class</title>
            <description>
		&lt;p&gt;First of all I must tell the story of this class.&lt;br /&gt;
In first place this is derived in first place from original RSA algorythm, then this class has been implemented by &lt;i&gt;Norbert Hranitzky&lt;/i&gt; in Java. This Java class was used by &lt;i&gt;Oren Novotny&lt;/i&gt; as base for his excellent C# implementation, finally this class has been translated in VB.net by someone called &lt;i&gt;Bismark Prods&lt;/i&gt; in a post at &lt;a href="http://www.derkeiler.com/Newsgroups/microsoft.public.dotnet.security/2004-08/0004.html"&gt;http://www.derkeiler.com/Newsgroups/microsoft.public.dotnet.security/2004-08/0004.html&lt;/a&gt;.&lt;br /&gt; This last class was not working and I extensively modified it to make it running right. So, while I have to give credit to others for their job, I am pleased to say that this piece of code is (apparently) the only working VB.net implementation of a MD4 class.&lt;/p&gt;
		&lt;p&gt;The code is commented so anyone can figure out how the class works. For the people interested in knowing the mathematics behind the algorithm, I suggest the reqading of the original &lt;a href="http://www.ietf.org/rfc/rfc1320.txt"&gt;RFC 1320&lt;/a&gt;.&lt;/p&gt;
</description>
            <pubDate>Sun, 02 Mar 2008 21:38:45 GMT</pubDate>
            <category>snip</category>
            <link>http://www.lucamauri.com/snippet/snip.aspx?id=16</link>
            <guid isPermaLink="false">snip16</guid>
        </item>
        <item>
            <title>Check and download images</title>
            <description>
		&lt;p&gt;In the following code you can see how to make a conditional download of images.&lt;br /&gt;Let's assume you have a list of image files in a table (from a database, for instance, but any other source will do as well) and the folder on the remote website where the images are.&lt;/p&gt;
Those data are set in the very beginning of the file, the only external object you have to instantiate before calling this function is the dataset called &lt;span style=""&gt;dsImgs&lt;/span&gt;. Once done, the function will look for all the images in the location and will check if the image already exist on the disk. If this is the case, a check is done on the Last-Modified date and the file is downloaded if the current version is older only.&lt;p&gt;&lt;/p&gt;</description>
            <pubDate>Sun, 11 Nov 2007 16:23:41 GMT</pubDate>
            <category>snip</category>
            <link>http://www.lucamauri.com/snippet/snip.aspx?id=15</link>
            <guid isPermaLink="false">snip15</guid>
        </item>
        <item>
            <title>WOL .net</title>
            <description>
		&lt;p lang="en-us"&gt;Wake-On-LAN (WOL) is a feature of the network interface cards since the late '90s&lt;br /&gt;
This functionality was initially conceived by IBM and the widely supported by Intel with NIC's and motherboard's chipset&lt;/p&gt;
		&lt;p lang="en-us"&gt;WOL simply works by broadcasting a so called &lt;i&gt;Magic Packet&lt;/i&gt; on the LAN 
where the device you want to wake-up is on. The Magic Packet is made by a leading HEX string 
followed by 16 repetition of the target MAC Address.&lt;br /&gt;
For the following class to works you must simply create an instance, provide the MAC Address and call the method &lt;i&gt;WakeIt&lt;/i&gt;.&lt;br /&gt;
The class also includes Intellisense description.&lt;/p&gt;
</description>
            <pubDate>Tue, 27 Mar 2007 20:22:15 GMT</pubDate>
            <category>snip</category>
            <link>http://www.lucamauri.com/snippet/snip.aspx?id=6</link>
            <guid isPermaLink="false">snip6</guid>
        </item>
        <item>
            <title>Statistic .net</title>
            <description>I created this class to help me made the Tag Cloud system for this site. It is a simple class to calculate the arithmetic Mean and the Standard Deviation.&lt;br /&gt;</description>
            <pubDate>Fri, 02 Mar 2007 08:22:38 GMT</pubDate>
            <category>snip</category>
            <link>http://www.lucamauri.com/snippet/snip.aspx?id=5</link>
            <guid isPermaLink="false">snip5</guid>
        </item>
        <item>
            <title>Get information by WHOIS database</title>
            <description>This simple class help you to programmatically access IP ranges information from WHOIS database. The enumerator in the class already contains the addresses of the three registrars that amanges IP addresses in the World.</description>
            <pubDate>Sun, 31 Dec 2006 21:55:12 GMT</pubDate>
            <category>snip</category>
            <link>http://www.lucamauri.com/snippet/snip.aspx?id=4</link>
            <guid isPermaLink="false">snip4</guid>
        </item>
        <item>
            <title>Process text file</title>
            <description>A collection of three simple class that allow you to read files from disk and from internet and write a strem back to a file.&lt;br /&gt;It is a simple task for a programmaer, but it may comes in hand from time to time to have it ready-to-use.</description>
            <pubDate>Sun, 10 Dec 2006 14:13:19 GMT</pubDate>
            <category>snip</category>
            <link>http://www.lucamauri.com/snippet/snip.aspx?id=2</link>
            <guid isPermaLink="false">snip2</guid>
        </item>
        <item>
            <title>Extract ED2K links</title>
            <description>Using Regular Expression functions, this class allow you to scan a bunch of text (for esample and HTML page) to extract all the links in ED2K format.&lt;br /&gt;The Collection is exposed by the class.</description>
            <pubDate>Sat, 09 Dec 2006 16:13:19 GMT</pubDate>
            <category>snip</category>
            <link>http://www.lucamauri.com/snippet/snip.aspx?id=3</link>
            <guid isPermaLink="false">snip3</guid>
        </item>
        <item>
            <title>Process ED2K links</title>
            <description>This class show you how to import and process an ED2K link.&lt;br /&gt;ED2K link are links to files in the eDonkey 2000 network, now used both by original vclient and the popular eMule clients.&lt;br /&gt;Every istance of this class represent a single ED2K link that is automatically split into pieces and separated in the proper properties of the class.&lt;br /&gt;From there it is easy to use every single part of the link for your own purpose.</description>
            <pubDate>Fri, 08 Dec 2006 14:58:57 GMT</pubDate>
            <category>snip</category>
            <link>http://www.lucamauri.com/snippet/snip.aspx?id=1</link>
            <guid isPermaLink="false">snip1</guid>
        </item>
    </channel>
</rss>