Recently i’m working a lot with javascript(Extjs) and JSON, very powerful. Some days ago i found this project of Thomas Frank, he realize a tool to interrogate a JSON with a SQL like language.
This is very interesting because using this library we could do query on data loaded from database directly on a client. It increases the performance of user experience and make the server interaction minimal, infact all the calls to database in any way be made, increase the server load. Very good job!
Recently, i worked with MS SQL Server and i needed to backup a table. With Mysql database, this is a simple job. Infact , i think that mysqldump is very simple and quickly method. SQL Server provide with Management Studio an automatic backup also easy to use, but this permit to backup only the entire Db. After some google search i found the solution, bcp command, follow a sample.
For backup a table from my db i wrote :
bcp mydb.mytable OUT c:\export.txt -n -S dbserver -T
and to restore :
bcp mydb.mytable IN c:\import.txt -n -S dbserver -T
Where the parameters :
-n -> maintains the native type of the table
-S -> the db server
-T -> trusted connection
There are many other options, see the image below.
Today Skyfire released a new version oh hi mobile browser. This new version is for Symbina Smartphone 3rd Edition e 5th Edition for touch screen devices(this in beta).
They had recently issued the same version for Windows Mobile, but now i haven’t a windows mobile device…then i’m trying on my Nokia E71 . I think it is a good browser, is very fast and usable and support Javascript, Flash 10 , Silverlight 3 plus Windows Media.
I installed this browser on my phone for the Silverlight conpatibility, but i saw some small problem… however is a great work!
Recently i read a post talks about LINQO. With this instrument the use of LinqtoSQL became less heavy.
Infact with this is possible to create a complete project using existing template.
A great important things is the dbml synchronization with the database tables, i think that is a great plus because recently i worked in a WCF project where the dbml must be continuously refreshed…really bad!
Just now i saw that Microsoft made available to developers two packages containing more training pathways, and code examples in VB.NET and C#.
With this quickguide, Microsoft gives an instrument for .NET Developers and no to learn Windows Workflow Fundation(WF) . I’ m very interested to learn this programming model, infact WF provides a unified programming model for computing representation of real business processes.
This affects me so much that i decid to see what it is specifically does….below some link for help who want to learn too.
On July 7th in Milan, many developers will find them in a fulltime day dedicated to Windows Mobile. This workshop organized by Microsoft, will give an overview to the new Windows Mobile 6.5,
Internet Explorer Mobile 6, ecc. This meeting is free, then don’t miss!
I can’t partecipate because is a working day, then i wait for your impressions.
ComponentArt starts a summer competition for Silverlight. This competition during from 22 June to 22 September 2009, any developer can partecipate and the winner can take away $10,000!!! Component Art offer in plus a free trial license key for his pruduct for help who wants to use, but the use of this components is not required.
Che LinQ fosse una notevole innovazione, tutti ne saranno d’accordo. Ma non tutti sanno di cosa stiamo parlando, quindi ne diamo la definizione ufficiale :
LinQ è l’acronimo di Language Integrated Query ovvero Linguaggio di interrogazione integrato.
Tale linguaggio è integrato nel .NET Framework e consente di fare interrogazioni su qualsiasi collezione di oggetti,DataBase e XML. Lasciando da parte LinQ to SQL, che sto tuttora usando, quello che mi ha dato lo spunto per scrivere questo post è stato un caso reale incontrato oggi in ufficio.
Ho una classe Assegno così strutturata con degli attributi tipo : ID, Numero, Data, Importo.
Ora supponiamo di avere una lista generica di Assegni:
1
List<Assegno>assegni=new List<Assegno>();
Il mio problema era quello di dover fare la somma di tutti gli importi degli Assegni, nessun problema infatti:
1
2
3
int somma=0;foreach(Assegno a in assegni)
somma+=a.Importo;
Molto semplice ma macchinoso, analizziamo ora la versione LinQ:
1
int somma =(from a in assegni select a.Importo).Sum();
Troppo potente! Lo sò l’esempio è banale ma vi assicuro che LinQ può fare molto di più,
magari vedremo altro nei prossimi post.
Di recente mi sono imbattuto in un problema legato alla mia labile memoria, avevo smarrito la mia password per il Server MySQL!!
Per evitare che qualcuno di voi disinstalli tutto per poi reinstallare da zero MySQL(Fatto dal sottoscritto tempo fà ), vi spiego quali sono i passi da seguire:
Essere certi di aver fatto il login di Windows da Amministratore.
Arrestare il Server MySQL da :
Start -> Pannello di Controllo -> Strumenti di Amministrazione -> Servizi
Creare un file di testo con il seguente contenuto :
UPDATE mysql.user SET Password=PASSWORD('Nuovapassword')WHERE User='root';
FLUSH PRIVILEGES;
Copiare esattamente le dure righe così come sono, cambiando la password..naturalmente.
Salvare il file, per esempio c:\mysql_init.txt(Il percorso del file è ininfluente)
Aprire la console di Windows facendo:
Start -> Esegui -> cmd
Infine riavviare il server MySQL digitando al prompt : c:\Programmi\MySQL\MySQLServerXXX\mysqld --init-file=C:\mysql_init.txt