marzo 2012 Blog Posts

WinJS namespaces and classes

In Javascript is extremely easy to write spaghetti code, when you write something like: var foo = 12;function log(value){ console.log(value);} both foo variable and log function become part of the global namespace, you can imagine what could happen when you add a new Javascript file that also includes a foo function. In .NET to better organize the code we have Namespaces that can be used to group types together and prevent naming collision, while Javascript misses this concept natively it can be simulated through objects and that’s what Microsoft did inside WinJS Library. ...

posted @ mercoledì 21 marzo 2012 14:55 | Feedback (3)

Available memory and Background agents in Windows Phone 7

When you create a background agent for Windows Phone 7 there are a couple of important details you must be aware of: The total scheduled time for the agent to execute is 25 seconds, if you exceed it the agent will be killed by the scheduler. The max amount of memory available is 6 MB, if the agent allocates more the agent will be, again, killed. With Visual Studio debugger attached these limits are disabled. An agent is killed silently and after two killing operations the scheduler will...

posted @ giovedì 15 marzo 2012 20:24 | Feedback (1)

Win+X is your friend in Windows 8

As advanced user I often need to reach areas like Control Panel, Event Viewer or the good old friend Command Prompt and you might imagine how happy I was to discover that using Win+X you have access to a “developer menu” in lower left corner that give you access to OS’ hardcore areas You can also show the menu by pointing the mouse in lower left corner, wait for Start menu to appear then right clicking on it (but Win+X is a lot more faster…) BTW: I took the shot using Win+PrintScreen that now automatically...

posted @ martedì 6 marzo 2012 11:15 | Feedback (8)

Installing Windows 8 Consumer Preview on Acer Iconia W500

If you’re stuck installing Windows 8 Consumer preview with a “unable to create a new system partition or locate an existing partition…” message when selecting target partition, be sure to select the SSD drive as first boot device into BIOS (mine was the USB stick), this will fix it. Kudos to Gian Maria Ricci for the tip.   Technorati Tags: Win8

posted @ giovedì 1 marzo 2012 12:09 | Feedback (8)