Un blog è per un breve istante
... ma è per colpa di CheBanca! ...
Come avete potuto vedere, infatti, questo blog un po' alla volta è morto. Il fatto è che di tempo per aggiornarlo, riempirlo, sistemarlo, etc, non ne ho. Specie adesso che, lavorando in CheBanca! non riesco più ad accedere al mio sito nemmeno al lavoro. (Chissà come sono stati configurati il firewall e i server DNS della banca ...)
Avevo in mente un progetto di riscrittura completa del blog in Rails. Morto.
Avevo in mente un progetto di ribaltare tutto il blog in una personalizzazione di Wordpress. Morto.
Insomma, qui non c'è più vita. Forse andremo avanti a spizzichi e bocconi, forse no. Non so davvero dirvi cosa sarà di queste pagine. Per il momento sto disperatamente cercando casa (e disperatamente lavorando). Tutto il resto conta poco ...
Il cinema in treddì è una figata pazzesca.
E ve lo dico dopo essere stato a vedere, proprio stasera, Mostri contro Alieni, il nuovissimo film di animazione di Dreamworks+Pixar. Un film che in realtà non ha nulla di troppo da dire e che farà parlare poco di sè, ma per me resterà il primo film in assoluto visto con gli occhiali a lenti polarizzate.
E' un'atmosfera fantastica quella che si prova nel vedere delle immagini che escono fuori dallo schermo, le mani che ti si avvicinano quasi fino ad afferrarti, gli oggetti che ti schizzano addosso durante una tremenda esplosione, o chi più ne ha più ne metta. Chiaramente non ha nulla a che vedere con il cinema "classico". Sui film di animazione in digitale, poi, queste nuove tecnologie sono avvantaggiatissime, essendo che tutta la parte di gestione del 3D può comodamente essere fatta e disfatta in fase di post-produzione, mentre può dare qualche grattacapo in più forse per i film a pellicola fisica. Ma resta il fatto che una visione di questo genere lascia il segno.
Infatti, nonostante il film sia stato mediocre (forse meno che mediocre, secondo me), il solo fatto di essere in treddì gli ha fatto guadagnare moltissimi punti.
Lati negativi? Beh, ce ne sono. Il più marcato è l'affaticamento degli occhi, che non essendo abituati ad una visione così forzata della profondità, già a metà film iniziano a dare segni di stanchezza. Poi gli occhiali, di plasticozza dura e poco flessibile, che possono dare molto fastidio - specie a chi, come me, di occhiali ne ha già un paio (consiglio vivamente le lenti a contatto!). E infine, per dare un po' di ragione anche a Laura, la bassa igienità degli occhiali stessi, che se andate a vedere il film a mezzanotte sono già passati nelle mani di chissà quante persone, non lavati, tutti impiastricciati e quasi opachi date le manate che la gente ci lascia su.
Cosa dire? La prossima missione sarà un nuovo film in treddì, scegliendo però questa volta un signor film.
Ci siamo.
Questo è il mio ultimo giorno di lavoro. Forse non l'ultimo tra gli ultimi giorni di lavoro, perché non si sa cosa ne sarà delle nostre vite. Ma comunque è il mio primo ultimo giorno di lavoro.
Mi lascio alle spalle 16 mesi di convivenza con la gente di Uniteam, 16 mesi di stress, di sofferenze, di allegria, di svago, di apprendimento, di ..., di tutto insomma. 16 mesi di lavoro, duro o meno che sia stato. Me ne vado un po' con l'amaro in bocca, soprattutto dopo aver capito qual è la vera anima dirigenziale di Uniteam e non solo. Ho avuto un po' di attriti con il Personale, con i miei diretti superiori, domande e email cadute nel vuoto, uno strano silenzio che lascia un po' pensare, ma dopo tutto ...
Me ne vado lasciando un botto di gente simpatica, ma sapendo che 3/4 di questa gente simpatica se n'è già andata prima di me il distacco non è poi così traumatico. Non dico di aver lavorato negli ultimi tempi in mezzo ad un mare di gente (quasi) sconosciuta, ma quasi. Chiaro, non c'è più stata la pausa caffè con Roberto e Alessandro. Ma comunque ce la siamo cavata.
Da lunedì, come suggeriva argutamente Matteo, divento ufficialmente un pendolare. Con tanto di tessera dell'ATM di Milano, abbonamento a Trenitalia e all'ATM stessa. Si inizierà la stressante marcia con: mezzi di Pavia, Trenitalia, mezzi di Milano (metro), mezzi di Milano (autobus) - opzionale, per l'andata e per il ritorno, e già mi immagino lì a bestemmiare quando salteranno i collegamenti o ci saranno gli scioperi, una volta ogni due settimane ... ma che ci vuoi fare, questa è la vita!
Ci sentiamo presto, magari anche lunedì, per gli aggiornamenti. Per ora mi rimane un computer da formattare, questo.
Update
Latest update to v. 1.1 to enhance compatibility with the newest jQuery v. 1.3.1.
Overview
The jQuery Form Validator plugin allows to define simple, yet powerful, validators for web pages forms. It's simple and configurable, and allows the definition of basic validations (required fields, numeric fields, integer fields, email fields) and also of regex over the fields in the forms.
Download
You can now download v. 1.1 of the jQuery Form Validator plugin.
Demo
On this web site you can find a working demo of the plugin.
Requirements
This plugin requires jQuery to be used in the web page. It has been tested with jQuery v. 1.2.6 and v. 1.3.1, but should correctly work with jQuery v. 1.2.x/1.3.1+.
Compatibility
The plugin has been tested on Windows XP, Windows Vista, Ubuntu (7.04, 7.10, 8.04 and 8.10) and Mac OS X 10.5 and is fully supported (at least) on the following browsers:
- IE 8 beta, 7 & 6
- Firefox 2.0+ and 3.0+
- Opera 9 and 9.5+
- Safari 3+
- Google Chrome
Usage
The usage of the Form Validator is really simple. Example following:
var formValidator = new ValidatorClass();
formValidator.init({
form: "#myFormID",
isRequired: ['login', 'password'],
bindElement: '#button',
callback: function() {
alert('Ok!');
}
});
What it does
The method init() in the ValidatorClass instance enables the validator on the form with id="myFormID". Two text fields are required (those whose names are login and password).
The validator binds the object with id="button" to the 'click' event: when it's clicked, the validator runs the validation over the form. If the validation is successful, the callback function is called, otherwise an alert will popup telling which fields are wrong; those fields will also be coloured using a particular convention (red=required, green=numeric, blue=integer, yellow=email, lightgray=regex).
Complete example
The complete example for the script is:
var formValidator = new ValidatorClass();
formValidator.init({
form: '#example',
errorColors: {
isRequired: 'red',
isEmail: 'yellow',
isNumeric: 'green',
isInteger: 'blue',
hasRegex: 'lightgray'
},
isRequired: ['name','email','number', 'date@select',
'street@select', 'description@textarea'],
isEmail: ['email'],
isNumeric: ['number'],
isInteger: ['integer'],
hasRegex: [
['field1', /\d./, 'Error message'],
['field2@textarea',
/\s{5}(\d{5}\s{5}){1,10}$/,
'Another error']
],
allowNullNumbers: true,
requiredFieldMsg: 'I campi in rosso sono obbligatori',
emailFieldMsg: 'I campi in giallo devono essere email',
numericFieldMsg: 'I campi in verde devono contenere numeri',
integerFieldMsg: 'I campi in blu devono contenere valori interi',
bindElement: ['#button1', '#button2'],
bindEvent: 'click',
callback: [callBack1, callBack2],
});
function callBack1() {
// Do something ...
}
function callBack2() {
// Do something different ...
}
Please note the definition of the required fields: for the five validation types it is possible to define an array of the field to control. Each item can be expressed in two forms:
- 'fieldName', which is equivalent to the CSS selector: input[name=fieldName]
- 'fieldName@domType', which is equivalent to the CSS selector: domType[name=fieldName] (es. domType = textarea)
Parameters
This is the explanation for every single parameter passed to the method. The default values are expressed in the square brackets next to the name:
- form: the id of the form that will have the validation enabled
- errorColor: a hash variable containing these colors for the wrong fields (colors applied to the fields after the validation):
- isRequired['#FDD']: the CSS color that the field will have if it's required and not filled
- isEmail['#FFA']: the CSS color that the field will have if it has an incorrect email
- isNumeric['#DFD']: the CSS color that the field will have if it's not a number
- isInteger['#CCE']: the CSS color that the field will have if it's not an integer number
- hasRegex['#CCC']: the CSS color that the field will have if it's not compatible with the regex
- isRequired: an array with the names of the fields that are required
- isEmail: an array with the names of the fields that must be valid emails
- isNumeric: an array with the names of the fields that must be numeric
- isInteger: an array with the names of the fields that must have integer values
- hasRegex: an array of arrays defining the regexes. Each inner array is in the form ['fieldName', /regex/, 'Error message']
- allowNullNumbers[false]: if it is set to 'true' it allows numeric and integer field to have no values without being considered wrong
- font-weight: bold;">requiredFieldMsg['Red fields are required']: the alert message for required fields
- emailFieldMsg['Yellow fields must contain valid emails']: the alert message for the email fields
- numericFieldMsg['Green fields must contain numbers']: the alert message for the numeric fields
- integerFieldMsg['Blue fields must contain integer values']: the alert message for the integer fields
- bindElement: an array of the id's of the objects to which the validator will be bound
- bindEvent['click']: the event for which the validator will be bound to the previous elements
- callback: an array of the functions to be called if the validation is successful. Each callback function is related to a single element: i.e. callBack1 is the callback function for '#button1', etc.
API
- init(): initializes the validator (read above for the parameters to be passed)
- reset(): without any parameter, disables the validator
Terms of use
The jQuery Form Validator plugin is licensed under a Creative Commons License and is copyrighted (C)2008-2009 by Daniele Di Bernardo.
The license page can be found at: http://creativecommons.org/licenses/by-nc-sa/2.5/it/
Io e Laura stiamo andando a prendere del cibo da asporto al giapponese.
Laura: andiamo in macchina?
Io: certo!
Laura: ah, giusto così non si raffredda!
Chi ha mangiato mai una barca di Sashimi fredda, eh?
Update: appena usciti dal giapponese, Laura corre verso la macchina
Io: Laura ma dove corri, mica si raffreda (con tono ironico)
Laura: ah no? (con tono serio)
Io: no, il tuo no (sushi). Al massimo il mio (tempura)
Eh vabbè ...