Javascript Regular Expression per il controllo di numeri di carte di credito

    * Visa: ^4[0-9]{12}(?:[0-9]{3})?$ All Visa card numbers start with a 4. New cards have 16 digits. Old cards have 13.
    * MasterCard: ^5[1-5][0-9]{14}$ All MasterCard numbers start with the numbers 51 through 55. All have 16 digits.
    * American Express: ^3[47][0-9]{13}$ American Express card numbers start with 34 or 37 and have 15 digits.
    * Diners Club: ^3(?:0[0-5]|[68][0-9])[0-9]{11}$ Diners Club card numbers begin with 300 through 305, 36 or 38. All have 14 digits. There are Diners Club cards that begin with 5 and have 16 digits. These are a joint venture between Diners Club and MasterCard, and should be processed like a MasterCard.
    * Discover: ^6(?:011|5[0-9]{2})[0-9]{12}$ Discover card numbers begin with 6011 or 65. All have 16 digits.
    * JCB: ^(?:2131|1800|35\d{3})\d{11}$ JCB cards beginning with 2131 or 1800 have 15 digits. JCB cards beginning with 35 have 16 digits.
 

jshashtable 2.0 : Hashtable in Javascript

http://www.timdown.co.uk/jshashtable/#setup

   1:  <script type="text/javascript" src="jshashtable.js"></script>
   2:  <script type="text/javascript">
   3:      var typesHash = new Hashtable();
   4:   
   5:      typesHash.put("A string", "string");
   6:      typesHash.put(1, "number");
   7:   
   8:      var o = new Object();
   9:      typesHash.put(o, "object");
  10:   
  11:      alert( typesHash.get(o) ); // "object"
  12:  </script>

ExtJs Online Gui Designer

E' da un po' che utilizzo il famoso framework javascript Extjs per il layout di siti, ho trovato recentemente due siti che mettono a disposizione online due editor che ti facilitano nelle costruzioni delle interfacce

http://www.projectspace.nl/

http://tof2k.com/ext/formbuilder/

Valore Radio Button con Jquery

$("input[name='radiobuttonname']:checked").val()

Merge pdf file con IText

ieri all'interno di un microprogetto è sorta l'esigenza di dover unire piu' file pdf in un unico solo, per risolvere tale problematica ho utilizzato la famosa libreria iText# e la classe che trovate in questo link.

Esempio
string basePath = "c:\\pdf";
 
PdfMerge demo = new PdfMerge();
 
demo.AddDocument(Path.Combine(basePath, "static-dynamic-typing-meijer.pdf"));
demo.AddDocument(Path.Combine(basePath, "composable-memory-transactions.pdf"));
 
demo.Merge("mergedPapers.pdf");

[OT] Le verdure del mio orto

per gli appassionati di Farmville, per ricordargli che esiste anche la verfa agricoltura :  http://www.leverduredelmioorto.it/

Iconizer

altre due servizi interessanti:




http://iconizer.net/



http://www.preloaders.net/

jQuery 1.4

Rilasciata  la nuova versione del famosissimo framework javascript.

A questo indirizzo http://jquery14.com/ 
potete trovare tutte le informazioni

Ajaxload

servizio online per autogenerarsi le famose icone di attesa

AjaxLoad

MicroFramework .Net

interessante articolo che introduce i concetti alla base di questo nuovo framework ormai giunto alla 4 versione.
Leggi Articolo



«febbraio»
domlunmarmergiovensab
31123456
78910111213
14151617181920
21222324252627
28123456
78910111213