Interessante documentario sulle origini e sul futuro di Visual Studio su Channel 9, passando tramite Windows, ricordate la versione 1.01 ?
Nella prima parte si parla di MS-DOS, OS/2, Windows, Microsoft Visual Basic, Visual Basic 2.0, Visual Basic 3.0, Microsoft Visual C++, Visual Interdev, FoxPro, Visual Studio 97, ASP.NET e la community che si creò attorno a Visual Studio.
Nella seconda parte si parte da Java, le versioni Express di Visual Studio…
just for Geek :-)
One of the coolest features in Windows 7 are the new Sensor (and Location) APIs. The API are native, but you can use them from .NET Framework if you download the Windows API Code Pack 1.0.
If you would like to test the Sensor API you can do even without a real hardware sensor, in fact in the Windows 7 SDK you can find (both x86 and x64) a Virtual Light Sensor (you can check from this link how to install the Virtual Light Sensor), a simple app that simulate an Ambient Sensor, that, after installed, you can see from Windows 7 sensor’s panel. In the following image you see the app running.
1) Buy a sensor
But if you would like to test a real-hardware sensor, you can buy this one from Freescale. You can see the front and back side in picture taken from my phone:
The Freescale’s board has the following sensors:
2) Update the firmware
To use it with Windows 7 you have to download the Windows 7 Sensor Development Kit from here and update the firmware first, following the readme file. To update the firmware you have first to mount a driver on your system. Tips: to do that, following the instructions, you have to touch the E4 button BEFORE the led display stop says “Press E4 to enter bootloader.”.
In the following picture I’ve highlighted the led display and the touch E4 Button.. so press the touch button quickly.
3) Test the sensor with Windows 7
If you would like to test the 3 sensor on board you can launch the test application (SensorDevKitDiagnosticApp.exe) in the tools\Diagnostic\Binaries Tool directory of the Win 7 Sensor Development kit:
Ok , now I’ve tested the sensor, but how to have MORE fun ?
4) Installing XNA Game Studio 3.0
On codeplex you can download some classes that you can use to extend one of the starter kit that comes with XNA Game Studio … all in .NET. Because not all the code is implemented , l’ll show you how to minimally do that to drive the car with the accelerometer, of course just for fun and to show how you can use .NET to interact with Windows 7 Sensor API.
Now you can create a simple racing Game Project from Visual Studio 2008:
After that you have to follow the instruction on the sample from codeplex
The code exposes tree properties:
The first is used to see if an accelerometer is connected and the other two are used to return the real value from the accelerometer. From my test I’ve seen value from –1 o 1.
Now you have the value returned from accelerometer but how to use in the gaming app ? You first have to initialize the sensor to make the app aware of it, than we have to control the acceleration, deceleration of the car, the left/right turn.
I’ve tried some experiment to correct the sensibility and you can change the 3.0f value to do it yourself.
To make the car accelerate and go straight or backward I added this code in the same method:
Ok probably if you are a XNA Game developer you’ll find a smarter approach to do that, but ok this is another story :-)
You can download my sample classes from here.
5) Have fun with Windows 7 Sensor API !
Now, you can press F5 and play the game with you sensor!
6) More on Sensor API..
If you would like to know more about the sensor and location API in Windows 7 and see the video that inspired me to have some fun: watch here.
Il team di IIS ha rilasciato la versione beta di un acceleratore per PHP Windows Cache Extension 1.0 for PHP. Questo componente può essere utilizzato su Windows (XP SP3, Windows Server 2003, Vista SP1, Windows 7, Windows Server 2008 e R2) senza bisogno di ricompilare l’applicazione.
A cosa serve ?
Questa estensione include 3 tipi di cache che possono essere abilitate in modo indipendente una dall’altra:
Potete scaricare l’estensione PHP direttamente dai seguenti link, per PHP 5.2 e PHP 5.3
Windows Cache Extension 1.0 for PHP 5.2 – Beta
Windows Cache Extension 1.0 for PHP 5.3 – Beta
Oppure usando il Web Platform Installer 2.0, il tool con cui potete installare tutte le componenti per far funzionare PHP in modo performante ed affidabile su Windows con Internet Information Server (IIS):
E lanciando un phpinfo():