Friday, April 30, 2010
WP7 Build 6176 "Unlocked"
As you probably know Microsoft released the new version of the Windows Phone 7 Development tools and there is a new version of the emulator. The old "unlock method" still works and there is already an unlocked version on XDA Developers and you can download the image here. The new version of the bin doesn't work on the old XDE emulator because there seem to be some changes in XDE hardware emulation. The unlocked image pretty snappy and there are also some new programs.
The best thing is that the unlocked emulator image works for debbuging in VS 2010 on my newly installed Windows 7 x64 on myApple macbook (I've reinstalled 3 times the macbook last week cause I configured more partitions for windows and I finally managed to replace my old Asus notebook). One of the things I've noticed is that an "empty" application uses 12 MBytes of RAM which seems a lot for an app that does nothing.
Hope I will have more time for testing! Have fun with the new tools
Wednesday, April 28, 2010
Office 2010 - default file format ballot OOXML or ODF
Something I missed in the Office 2010 beta’s – apparently Office will ask you for the default file format you want to use - Office Open XML format or OpenDocuments Format - the first time that you open it.

This is apparently part of an agreement of Microsoft to commit to more interoperable applications. In Office 2007 Microsoft supported ODF through a separate Sourceforge project but now you get it built in. In september 2008 Belgian government decided to standardize on ODF – so know they can use ODF and still use Office 2010.
Tuesday, April 27, 2010
Outlook 2010 is pretty smart …
I used to work with the Outlook Hotmail Connector for Hotmail during the beta tests of Outlook 2010 but I decided to remove all beta components – but one way or another Outlook seemed to remember that I used to have a connection using the Outlook Hotmail connector and provided me with guidance directly in my Outlook user interface

I'm just wondering if the version which was installed (14.0.4760.1000) is the final release.
Saturday, April 24, 2010
Office 2010 64-bit or 32-bit that’s the question…
I now have to decide whether to install the 64-bit edition of Office 2010 or the 32-bit edition. There’s some guidance available on Technet – 64-bit editions of Office 2010
The recommendations for which edition of Office 2010 to install are as follows:
- If users in your organization depend on existing extensions to Office, such as ActiveX controls, third-party add-ins, in-house solutions built on previous versions of Office, or 32-bit versions of programs that interface directly with Office, we recommend that you install 32-bit Office 2010 (the default installation) on computers that are running both 32-bit and 64-bit supported Windows operating systems.
- If some users in your organization are Excel expert users who work with Excel spreadsheets that are larger than 2 gigabytes (GB), they can install the 64-bit edition of Office 2010. In addition, if you have in-house solution developers, we recommend that those developers have access to the 64-bit edition of Office 2010 so that they can test and update your in-house solutions on the 64-bit edition of Office 2010.
Since I’m using both SharePoint Server 2010 and SharePoint Server 2007 (which relies on some ActiveX controls) I will probably go for 32-bit.
Thursday, April 15, 2010
WP7 IsolatedStorage Backup/Restore
I've developed a small solution (there is room for improvement) for backing-up and restoring the files (folder structure included) of the IsolatedStorage. It is using an WCF service that stores/sends file content from/to the IsolatedStorage in/from a folder named Backup located in the WCF project folder. For optimizing the communication the service uses binaryMessageEncoding. It also splits the files in 100Kbytes parts (you can modify this size from the source code if you want bigger parts- it will be faster) .
The solution is easy to use even if it took me a lot of time to make it work (especially the readerQuotas, maxBufferSize, maxStringContentLength). In fact I was having "fun" with it at 3 o'clock in the morning. If you want to backup your IsolatedStorage just hit backup and it will write the content of IsolateStorage in the Backup folder of the pc. If you want to restore/copy files to the IsolatedStorage copy the files/folders you want to the Backup folder of the PC and then hit Restore and it will copy all the data to the IsolatedStorage.
Hope you'll like it! Don't forget to modify the ServiceReferences.ClientConfig before you run the project


As usual you can download the Source code
Monday, April 12, 2010
WP7 IsolatedStorage Speed


Another thing that I've noticed is that the x86 implementation of WP7 Emulator is much faster then the ARM emulation of 6.5 Emulator (at least MemoryStream implementation).
You can download the projects here
Wednesday, April 7, 2010
iPhone Printing using MonoTouch - Proof of concept
ported to the iPhone.
The attached sample it's not simple line printing but implements a small part of the PCL5 interface. It will print two boxes and some text on any PCL5 compatible network printer (if you have such a printer you can try it). The only two parameters required are the IP of the printer and the port used for communication (usually 9100).
Let's hope that soon we will see PrinterTouch or PrintTouch library :). If you need more details or find this post useful please let me know.
I will continue my "quest" for developing a small S.F.A. application on the iPhone and/or iPad using MonoTouch.
SocketPrint
Thursday, April 1, 2010
WP7 CTP SDK or HOW TO GET THE DEVELOPERS FRUSTRATED
I got everything prepared and started writing the WP7 app when I saw that in the System.Net there is no socket support. I've started digging up, again, in the emulators files wanting to see if the System.Net file is the same on the emulator with the one in the SDK ("\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone"). What I've found out using Reflector is that there is no System.Net in the emulator image, but all the functionality is implemented in mscorlib.dll and there is also the Socket class fully implemented. What Microsoft did is to "cripple" the assemblies in the OS for the SDK. They made the version to be 2.0.5 (for some of the files) which will make compiled programs run just fine on 3.7 which is the the version on the emulator. mscorlib for example in the development tools is 428kb and on the emulator is 1,18MB. Almost every assembly in the SDK is "crippled". If you want to compare the sizes just download this zip.
I wanted to see if I can pass this restriction but the answer is no because the classes that are not available in the SDK assemblies on the emulator are compiled with the tag [FrameworkVisibilitySilverlightInternal, SecuritySafeCritical] (there is more than one tag) which results in a MethodAccessException if you try to use it.
Printing just turned out into frustration. Sockets are there, database support it's there, Microsoft can use it but developers cannot. It's not that it is not implemented (like copy/paste), but somebody decided that it's not safe to use them. On WP7 forum somebody said that this functionality could compromise the user experience and it is not ready for prime time. It is strange cause we have being using sockets and database in NETCF programs for years and never influenced the user experience or seemed not ready.
WP7 is a nice platform but developers don't have what they need, and some of this it's because Microsoft decided that they don't need it. WebIS don't have what they need, Resco also, Mozilla stops development on WM and one week later they have an Android beta version, Skype don't have a WM version anymore should be enough reasons to change attitude.
Microsoft needs developers