Regole per l’italiano da aggiungere all’inflector di CakePHP. Possono essere aggiunte alla fine del file bootstrap.php [sono un’esempio, poi è possibile estenderle con altri casi particolari]: // // I N F L E C T O R // /* Inflector::rules('transliteration', array('/å/' => 'aa')); */ Inflector::rules('plural', array( 'rules' => array( '/^(.*)io$/i'…
-
-
Windows Vista CMD slow startup / Windows Vista, avvio lento della CMD
Using Windows Vista, running cmd, makes it hangs for some seconds and then start. I solved the issue removing any additional keyboards layouts from: “System Settings->Region and Language options->Keyboards & Languages->Change keyboards” see http://serverfault.com/questions/26217/win7-command-processor-cmd-exe-really-slow/210961#210961 [ITA]In Windows Vista ho notato un rallentamento dell’avvio della console (CMD). Lasciando un solo layout di…
-
Godex EZ-DT-2 EZ-DT-4 Thermal Label Printer left and right hooks alternative solution
[CHIUSURA ALTERNATIVA PER GODEX EZ-DT-2 E EZ-DT-4] Replaces spare parts number 700-057200-011 (right hook) and 700-057300-011 (left hook) Sostituzione ricambi 700-057200-011 (leva destra) e 700-057300-011 (leva sinistra)
-
Traffico Tethering Router WiFi nascosto tramite proxy socks su Android
L’articolo è stato aggiornato. La nuova versione si trova a questo link: Traffico Tethering Router WiFi nascosto tramite proxy socks su Android
-
Windows Vista and Windows 7 Common Cleanup Operations Checklist
In this post i will write a checklist of common operations i do after clean installation of Windows Vista or Windows 7 (the most are not recommeded by Bill): 1. disable UAC (User Account Control) 2. disable System Protection on all disks 3. delete all Tasks except Registry Backup Task…
-
Windows 7 freezes after being idle for a while [SOLVED]
Today i solved a two year problem with Windows 7 and my hp notebook. After leaving the computer idle for a while 10 or 20 minutes or more, the computer become unresponsive and the hard disk keeps working forever. To restore to normal operation i had to reset the pc.…
-
How to hide fields in CakePHP 2.0 scaffolding views
This is a simple code to hide fields in scaffolding views. In the controller add the method beforeRender in this way: public function beforeRender() { $action = $this->request->params['action']; if ($action == 'index') { $fields = array('id', 'username', 'role', 'created',…
-
Android 4: Start Contacts Application / People Application on tablet when missing icon
I have a tablet (allwinner a13 mid tablet 7″). Contacts application Contacts.apk is installed, but the icon is missing in the application list. It can be started from terminal emulator. My android version is 4.0.4, i run on the terminal this command: am start -n com.android.contacts/com.android.contacts.activities.PeopleActivity or am start -n…
-
Windows Vista, Windows 7 delete all scheduled tasks and folders
Run Cmd as Administrator Execute this command: schtasks /delete /tn * This delete all tasks, but not the folders. To delete also the folders you must delete those in these directories: C:\Windows\System32\Tasks\Microsoft\Windows C:\Windows\SysWOW64\Tasks\Microsoft\Windows
-
Programmatically create contacts on Android 1.6 Donut (API Level 4) targetting HTC Tattoo
Here is the code i used: private void addPeople(String name, List<String> homeNumbers, List<String> mobileNumbers) { //insert contact ContentValues peopleContentValues = new ContentValues(); peopleContentValues.put(Contacts.People.NAME, name); //WARNING: this is for HTC to indicate the contact type //extra_group = 0 [google contact] //extra_group = 1 [??:…