CODE ARCHIVE

Years of coding.

Articoli tecnici, tutorial di programmazione, frammenti di codice e file sorgente condivisi nel corso degli anni.

KNOWLEDGE & EXPERIENCE

Knowledge worth sharing.

Una raccolta di soluzioni di programmazione, sperimentazioni e conoscenze tecniche condivise durante il mio percorso di sviluppatore.

34Articoli
23Categorie
283Tag

ARTICLES

Articoli pubblicati

Rimuovi filtro

Filtrato per algorithm · 16

  1. Updated version of CryptographyHelper class for .NET Framework 4

    This updated version of mine “CryptographyHelper” wrapper/helper class supports .NET Framework 4 . With this vb.net class you can easly encrypt/decrypt strings using a robust symmetric Rijndael algorithm or you can get also MD5 o…

    Leggi l'articolo originale
  2. Multilingual applications with VB.NET

    In this simple tutorial you'll learn how to manage different languages for a vb.NET application and the simplest way to access programmatically to the string values in the resource compiled files (*.resx) created by Visual Studio…

    Leggi l'articolo originale
  3. How to remove accent marks and german umlauts from URLs and Strings in .NET

    I wrote two functions in .NET to remove easly any accent and umlaut marks from a string and to get the equivalent non-accented string, this is very useful to normalize URLs; for example, with the StripAccentMarks() method, from "…

    Leggi l'articolo originale
  4. How to stringify an object in Javascript: converting an object to a padded & well-formatted string or simply inline

    I wrote a function to convert an object in a string (stringification) without using a JSON library; you can convert an object to a well formatted string with padding or simply to an unique line: function stringify(object, padding…

    Leggi l'articolo originale
  5. Javascript isArray() function

    Javascript does not provide a function to recognize if a variable is an array or not; you can make a "typeof" of the variable however u'll get an 'object' datatype, as in the following code var myarray = [1, 2, 3]; var myobject =…

    Leggi l'articolo originale
  6. Easy-to-use and strong Encrypt/Decrypt PHP functions

    I wrote those two following PHP functions to encrypt and decrypt strings easly and with a stronger encryption module than the other examples on the net (please, note that "strong" does not equals "secure"!); Happy encryption/decr…

    Leggi l'articolo originale
  7. PHP Date or Datetime to MySQL Datetime and viceversa

    Two useful PHP functions to convert normal date/datetime ("25.12.2010 12:10:00" or "25.12.2010") to MySQL datetime (like "2010-12-25 12:10:00" or "2010-12-25 00:00:00"); You can get back a date/datetime from MySQL datetime too: f…

    Leggi l'articolo originale
  8. How to draw a shadow for a bitmap (Drop Shadow Effect in VB.NET / ASP.NET)

    I wrote a vb.net subroutine to draw easly a shadow for a Bitmap object; It is possible get a charming shadow in different ways... Normal black shadow to the bottom right corner Red shadow to the bottom right corner Shadow to the …

    Leggi l'articolo originale
  9. VBScript Class to create easly Associative Arrays in ASP like in PHP

    I've posted a project at Source Forge with an ASP/VBScript class to create easly associative arrays like in PHP; visit http://sourceforge.net/projects/asp-assoc-array/ It is possible also load in an associative-array the data com…

    Leggi l'articolo originale
  10. How to export an ASP Associative Array to XML

    "Asp Associative Array Class" provides a method to easly export all items to a well formatted XML string. For example, You can create a new *.ASP file : <!--#include file="AssociativeArrayClass.asp" --> <% Dim Person, God Set Per…

    Leggi l'articolo originale
  11. Base64 encoding / decoding functions in VbScript / Classic ASP

    With the following functions Base64Encode(sText) and Base64Decode(ByVal vCode), You can easly encode/decode a text in/from base64 in VBScript/Classic ASP: Function Base64Encode(sText) Dim oXML, oNode Set oXML = CreateObject("Msxm…

    Leggi l'articolo originale
  12. Convert a DateTime string to a Unix timestamp in VbScript / Classic ASP

    To convert a datetime string value like "YYYY-MM-DD HH:MM:SS" to a Unix timestamp (the seconds from 01/01/1970 to the input datetime) You can use a conversion function as the following: Function ConvertToUnixTimeStamp(input_datet…

    Leggi l'articolo originale