SQLike – JSON meets SQL

June 6th, 2010 No comments

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!

Thomas Frank’s site

SQLike page

Tags: ,

Browser comparison

June 4th, 2010 2 comments

In the image below there are some tests about web browser, the result not totally unexpected..

via SixRevisions

Tags: ,

Backup MS SQL Table

February 16th, 2010 No comments

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.

ww

Skyfire launches his new mobile browser

January 21st, 2010 No comments

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!

Skyfire blog

PLINQO…

December 10th, 2009 No comments

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!

Now i would to try PLINQO at 360° …

Tags: , , ,

Hands-on Labs for WF

July 9th, 2009 No comments

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.

Microsoft manuals and sample code

David Chappell “The WorkFlowWay”

Mobile Developer Day 2009

June 29th, 2009 No comments

mobiledeveloperday

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.

link

Silverlight competition

June 27th, 2009 No comments

competitioncomponentartComponentArt 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.

Good Luck to all.

LinQ, troppo tosto!

May 4th, 2009 No comments

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.

A presto.

Tags: , , , , ,

Resettare password MySQL

May 1st, 2009 No comments

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à :-P ), vi spiego quali sono i passi da seguire:

  1. Essere certi di aver fatto il login di Windows da Amministratore.
  2. Arrestare il Server MySQL da :
  3. Start  -> Pannello di Controllo -> Strumenti di Amministrazione -> Servizi

  4. Creare un file di testo con il seguente contenuto :
  5. UPDATE mysql.user SET Password=PASSWORD('Nuovapassword') WHERE User='root';
    FLUSH PRIVILEGES;

    Copiare esattamente le dure righe così come sono, cambiando la password..naturalmente.

  6. Salvare il file, per esempio c:\mysql_init.txt(Il percorso del file è ininfluente)
  7. Aprire la console di Windows facendo:
  8. Start -> Esegui -> cmd

  9. Infine riavviare il server MySQL digitando al prompt :
    c:\Programmi\MySQL\MySQLServerXXX\mysqld --init-file=C:\mysql_init.txt

    Dove XXX è la vostra versione di MySQL.

Fatto!
Grazie alla MySQL Reference!! A presto.



Tags: ,