All Visual Studio blogs in one place

AddThis Social Bookmark Button
You know those fancy car GPS navigators that automatically switch color mode to dark when it gets dark to make it easy on your eyes? The display even turns dark when you drive into a tunnel and lights back up when you’re out… Well, with ambient-light sensor support in the latest Windows Phone 8.1 SDK, it’s possible to build something quite like that. The new API is quite straightforward and follows the same practice as with other device sensors. When your app starts, you should first query the device for the sensor to see if it exists. The GetDefault() method will return
null if sensor isn’t present on the device or the system was unable to get a reference to it (happens when device is in a connected standby): var sensor = Windows.Devices.Sensors.LightSensor.GetDefault(); if (sensor == null) { return; } Once having access to the sensor, it’s recommended to set its reporting interval to default value, but in cases where you need to set it explicitly, you can do it by changing sensor’s ReportInterval, but check you’re not going below MinimumReportInterval. Here’s the code for setting it to 5 minutes, but if you need more dynamic readings, just leave it at default: sensor.ReportInterval = Math.Max(sensor.MinimumReportInterval,...(Read whole news on source site)

AddThis Social Bookmark Button
My parents taught me early on to focus on growth over greatness. The idea was that while natural ability can take you only so far, it’s things like curiosity, challenges, continuous learning, the power of persistence, taking risks, etc. that would take you further. They also taught me that if I worried about whether I was naturally good, that I would give up on things where I didn’t start off so great. It was great advice, even if it wasn’t scientific. But there is science. In fact, there’s a lot of science about how choosing
a growth mindset over a fixed mindset help people to become the best in their field.  A growth mindset is what actually creates better parents, teachers, coaches, and CEOs.   A growth mindset creates better students, better artists, and even better geniuses. Why? Because people with a growth mindset embrace the challenges, struggles, criticisms, and setbacks as a source of growth. And that’s how they rise above any limitation of “natural” ability. Teaching, learning, and continuous growth takes them further than relying on talent or fear of taking risks where they might look bad or might...(Read whole news on source site)

AddThis Social Bookmark Button
Originally posted on:, I have released as a free download a random password generator.

This version has three options for generating passwords.
Passwords with A-Z and 0-9Passwords with A-Z, a-z and 0-9Passwords with A-Z, a-z, 0-9 and selectable special characters
Download the Zip file and unpack. Run KeyMaker.exe. You will need framework 4.5 installed.

AddThis Social Bookmark Button
Originally posted on: The APress $10 deal of the offer at is SQL Server 2012 T-SQL Recipes "SQL Server 2012 T-SQL Recipes is an example-based guide to the Transact-SQL language that is at the core of SQL Server 2012. It provides ready-to-implement solutions to common programming and database administration tasks"



Enter your email address:

Delivered by FeedBurner

Increase your website traffic with


Anti-spam: How many eyes has a typical person?

Follow us on FB