Windows

Over the seven months since Microsoft released Windows 8, the sales data haven’t been encouraging, with IDC reporting a 13.9 percent decline in the PC industry last quarter, its largest on record. But it looks like there’s on...
Over the seven months since Microsoft released Windows 8, the sales data haven’t been encouraging, with IDC reporting a 13.9 percent decline in the PC industry last quarter, its largest on record. But it looks like there’s one bright spot: as much as 10 percent of new laptops sold that quarter included touchscreens. The numbers — 46 million laptop shipments, 4.57 million with touchscreens — come from DisplayBank, a division of market research company IHS, but they’re close enough to the 50.5 million laptops quoted by Canalys to warrant a look. If the numbers are accurate, that’s a 51.8 percent increase in laptops with touchscreens over the past quarter. Continue reading…
about 1 hour ago
Jeremy Miller’s post about Would I use RavenDB again has been making the round. It is a good post, and I was asked to comment on it by multiple people. I wanted to comment very briefly on some of the issues that were brought up: Memory ...
Jeremy Miller’s post about Would I use RavenDB again has been making the round. It is a good post, and I was asked to comment on it by multiple people. I wanted to comment very briefly on some of the issues that were brought up: Memory consumption – this is probably mostly related to the long term session usage, which we expect to be much more short lived. The 2nd level cache is mostly there to speed things up when you have relatively small documents. If you have very large documents, or routinely have requests that return many documents, that can be a memory hog. That said, the 2nd level cache is limited to 2,048 items by default, so that shouldn’t really be a big issue. And you can change that (or even turn it off) with ease. Don’t abstract RavenDB too much – yeah, that is pretty much has been our recommendation for a while. I don’t see this as a problem. You have just the same issue if you are using any OR/M against an RDBMS. Bulk Insert – the issue has already been fixed. In fact, IIRC, it was fixed within a day or two of the issue being brought up. Eventual Consistency – Yes, you need to decide how to handle that. As Jeremy said, there are several ways of handling that, from using natural keys with no query latency associated with them to calling WaitForNonStaleResultsAsOfNow(); Truthfully, the thing that really caught my eye wasn’t Jeremy’s post, but one of the comments: Thanks you, we spend a lot of time on that!
about 1 hour ago
Back in Visual Studio 2005, Microsoft introduced reusable code snippets that can be picked up in the code editor with IntelliSense support. Something like this: Code Snippets are XML files with .snippet extension based on a specific s...
Back in Visual Studio 2005, Microsoft introduced reusable code snippets that can be picked up in the code editor with IntelliSense support. Something like this: Code Snippets are XML files with .snippet extension based on a specific schema. Rather than typing manually your XML files, a good idea is using a snippet editor. There are a lot of snippet editors available for free, I personally use the Snippet Designer editor which is integrated in the IDE. With an editor like this, you simply write or copy-paste code and provide the appropriate metadata information. The editor is responsible for producing well-formed XML files that can be correctly recognized by Visual Studio. I will not cover creating code snippets here, I will instead show how to package snippets for easy deployment. Once you have your snippets, you might want to use them in the code editor or to share them with other developers. Code snippets are stored inside language-specific folders, such as C:\Program Files (x86)\Microsoft Visual Studio 11.0\VB\Snippets\1033. Also, Visual Studio provides the My Code Snippets folders where users can save snippets without being administrators. In the previous editions of Visual Studio, you could package a number of snippet files (plus add-ins, macros, item/project templates, controls) inside a .Vsi installer. Then, the Visual Studio Content Installer tool helped users install contents into the appropriate location. Even though .Vsi packages are still supported, Visual Studio 2012's extensibility relies on the VSIX file format, which provides a better customer experience. For this reason, sharing reusable code snippets should be done with a VSIX package. Assuming you have a number of snippets ready and that you already installed the Visual Studio 2012 SDK, the first thing you need to do is creating a new, empty VSIX project: In Solution Explorer, add a new folder to the project where you will store snippets. The name of the folder is very important, because it will be also the name of the group of snippets inside the code editor. Add all the .snippet files you want to deploy to other developers: As you can see in the figure, it is very important to remember to set the Build Action, Copy to Output Directory, and Include in VSIX properties as shown, otherwise snippets will not be included in the package. The next step is adding a package definition file, with .pkgdef extension. To add one, you can simply use the text file template. The package definition file will tell the installer where to install code snippets. I am using Visual Basic code snippets, so I'm going to use the following syntax: [$RootKey$\Languages\CodeExpansions\Basic\Paths] "DelSoleVBSnippets"="$PackageFolder$" What the code does, is finding the registry key that contains the collection of directories for VB code snippets on the target machine. To this collection, a new path is added with the custom key specified on the second line. Supported language identifiers are Basic, CSharp, SQL, HTML, XML, C++, and JavaScript. You can check out the MSDN documentation for additional strings in the pkgdef file. Don't forget to set the file properties as you already did for snippets. The next step is making a manual edit to the extension manifest. In Solution Explorer, right click the source.extension.vsixmanifest file and choose to open it with the XML internal editor, finally add the following node before the closing file tag:   Assets>     Asset Type="Microsoft.VisualStudio.VsPackage" Path="Snippets\DelSoleVBSnippets.pkgdef" />   Assets> Close the XML editor and re-open the manifest with its designer. Set the extension's metadata (publisher, license, images) but make sure you do not change the asset added manually. You are done. You can now debug your extension in the experimental instance of Visual Studio by simply pressing F5. When ready, switch to the Release configuration and build the solution. You will find the redistributable .Vsix pac
about 3 hours ago
Carl and Richard talk to Derik Whittaker about his experiences migrating from being a XAML developer to being an HTML developer. The conversation starts out talking about the death of Silverlight - or at least the severe neglect! From th...
Carl and Richard talk to Derik Whittaker about his experiences migrating from being a XAML developer to being an HTML developer. The conversation starts out talking about the death of Silverlight - or at least the severe neglect! From there, Derik describes the group of tools he uses to bring MVVM design patterns to HTML development. Along with some weird digressions on WinForms, this is a fun show and a great starting point for anyone ready to leave Silverlight behind!
about 6 hours ago
This is a weird one - I have a feature, that when activated loops over a list of other features and activates them - using "Force" : site.Features.Add(currentFeatureID, true); This works fine on most sites, but in Document Center si...
This is a weird one - I have a feature, that when activated loops over a list of other features and activates them - using "Force" : site.Features.Add(currentFeatureID, true); This works fine on most sites, but in Document Center sites, where the document ID feature is already activated document sets in the site suddenly show the web parts on the welcome page twice. I debugged it, and it turns out that this happens when the document ID feature is the culprit. However, this doesn't happen if I activate the ID feature using powershell. My only solution at the moment is to check if the feature is already activated before activating it. This stopped the problem, but doesn't explain it.
about 9 hours ago
ASP
Call a uniquely named JavaScript function inside of an ASP.NET user control from the page it is hosted inside of....Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 ...
Call a uniquely named JavaScript function inside of an ASP.NET user control from the page it is hosted inside of....Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
about 10 hours ago
ASP
Abstract of my Pluralsight CourseBuilding a Successful BlogModule – Getting Started with Blogging. Choosing a Blog Host If youve recently decided to start blogging, the very first thing you have to decide on is which hosting service to u...
Abstract of my Pluralsight CourseBuilding a Successful BlogModule – Getting Started with Blogging. Choosing a Blog Host If youve recently decided to start blogging, the very first thing you have to decide on is which hosting service to use. There are many blog hosts: Blogger, WordPress, Typepad, to name just a few. With so many […]...Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
about 10 hours ago
ASP
HTML5 supports native drag and drop through draggable property and several events such as dragstart, drag, dragenter, dragleave, dragover and drop. Normally dragstart event handler is where you set the data that is to be transferred betw...
HTML5 supports native drag and drop through draggable property and several events such as dragstart, drag, dragenter, dragleave, dragover and drop. Normally dragstart event handler is where you set the data that is to be transferred between the drag source and drop target. The drop event handler is where you handle the drop of a drag source, access the data transferred and process it further. Now, in this particular case only the dragstart and drop events were handled. And the drop event handler...Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
about 10 hours ago
Leap Motion revealed a new video today showing off the device's gesture control capabilities with Windows 7 and 8. When plugged into a Windows OS device, the Leap Motion will support full multitouch gestures out of the box, allowing user...
Leap Motion revealed a new video today showing off the device's gesture control capabilities with Windows 7 and 8. When plugged into a Windows OS device, the Leap Motion will support full multitouch gestures out of the box, allowing users to click, drag, scroll, swipe and rotate screens entirely with gestural input. Leap Motion's previous demos focused on native apps and building out the device's Airspace app store, but the latest news confirms that the device will also be useful for OS-level navigation. The company will enter its recently announced beta testing round next month, before the product's final release on July 22nd. Continue reading…
about 12 hours ago
Abstract: Brian Hitney and Peter Laudati review and demo some of the latest updates and features made to Windows Azure such as the general availability of Windows Azure Infrastructure as a Service, Azure Web Sites, the Azure SDK 2.0 ...
Abstract: Brian Hitney and Peter Laudati review and demo some of the latest updates and features made to Windows Azure such as the general availability of Windows Azure Infrastructure as a Service, Azure Web Sites, the Azure SDK 2.0 for .NET and the new licensing and pricing model. After watching this video, follow these next steps: Step #1 – Try Windows Azure: No cost. No obligation. 90-Day FREE trial. Step #2 – Download the Tools for Windows 8 App Development Step #3 – Start building your own Apps for Windows 8 Subscribe to our podcast via iTunes, Windows Phone Podcast Marketplace or RSS If you're interested in learning more about the products or solutions discussed in this episode, click on any of the below links for free, in-depth information: Blogs & Articles Brian Hitney’s blog Peter Laudati’s blog Windows Azure: General Availability of Infrastructure as a Service (IaaS) Windows Azure: Improvements to Virtual Networks, Virtual Machines, Cloud Services and a new Ruby SDK Announcing the release of Windows Azure SDK 2.0 for .NET Videos: Microsoft DevRadio: How to Get Started with Windows Azure Microsoft DevRadio: (Part 1) What is Windows Azure Web Sites? Microsoft DevRadio: (Part 2) Windows Azure Web Sites Explained Microsoft DevRadio: How to Integrate TFS Projects with Windows Azure Web Sites Virtual Labs: MSDN Virtual Labs: Windows Azure Download MP3 (Audio only) MP4 (iPod, Zune HD) High Quality MP4 (iPad, PC) Mid Quality MP4 (WP7, HTML5) High Quality WMV (PC, Xbox, MCE)
about 15 hours ago