Wednesday, June 24, 2015

How to customize color settings for Code Coverage Result in Visual Studio ?



This question came up after one of our previous post –Understanding Code Coverage – How to determine which portion of code is being tested in Visual Studio ?.  We discussed about different colors of code coverage area and how it looks like when the code is covered, not covered or partially covered.  For few, the colors were different than what we have seen over the other post,  so the question was, can we customize the code coverage colors ? Yes. We can do it.
Here is the default color for the different set of code coverage block.
image31 How to customize color settings for Code Coverage Result in Visual Studio ?
Default Coloring of Code Coverage
To change color, or customize the style, you need to open Options Dialog window, from Tools –>Options.  Then search for “Fonts and Colors” option in the right side tree explorer.  Once Fonts and Colors is selected, search for “Coverage… “ under Display Items. You will find following three Display items
  • Coverage Not Touched Area
  • Coverage Partially Touched Area
  • Coverage Touched Area
image41 How to customize color settings for Code Coverage Result in Visual Studio ?
Code Coverage Options
Now, you can change the default color, fonts and styles for the individual items.
image42 How to customize color settings for Code Coverage Result in Visual Studio ?
Code Coverage Settings Change
Here is one example of different set of code coverage colors.
image43 How to customize color settings for Code Coverage Result in Visual Studio ?
Customize Code Coverage Color

Sunday, June 14, 2015

iOS 9 Features: Hidden New Features

iOS 9 Features: Hidden New Features

image iOS 9 logo
Apple unveiled iOS 9 this morning at the WWDC keynote with a bunch of new features for end-users and developers. Amongst these big announcements, there are some small, but useful features that Apple did not have time to talke about.
Here’s a list of new iOS 9 features and changes that we’ve discovered so far:

#1. Battery Saving mode

When you place your iPhone face down on a table, it will automatically turn off the screen to conserve power. It makes use of ambient light and the proximity sensors.
This and other improvements has helped in improving battery life by one more hour in iOS 9. The Low Power mode, which was showcased during the Keynote, increases battery life by three hours. Low Power mode conserves power by limiting network activity and performance; manually fetching emails, disabling Background App Refresh and downloads, reducing Motion and brightness, and reducing network speed. It can be enabled via a new Battery menu in the Settings app.
New Battery Settings

#2. iCloud Drive app

As reported earlier, iOS 9 includes a new iCloud Drive app, that as the name suggests gives you access to the files stored in your iCloud Drive. It is hidden by default, but you can enabled via the Settings app (Settings > iCloud > iCloud Drive > Show on Home Screen).
iCloud Drive app

#3. Search in Settings app

Apple has finally added search capabilities in the Settings app, so you can quickly search for the settings rather than navigating through different screens to get to the setting you want to change.
iOS 9 Settings Search

#4. Shift Key

Apple has finally made it easier to figure out if you’re going to type in caps or lower-case. In iOS 9, lower case characters are displayed on the keys when Shift key is turned off, and capital letters are displayed when it is turned on. Prior to iOS 9, capital letters were displayed even though Shift key was turned off. It will take some time getting used to it though.
iOS 9 - Shift Key
Update: You can disable the display of lowecase keys via the Settings app (Settings > General > Accessibility > Show Lowercase Keys).

#5. Scrubber in Photos app

The Photos app gets a scrubber which can be accessed at the bottom between the photo and the toolbar. It allows you to quickly flip through the photos in your camera roll.
iOS 9 - Photos app - scrubber

#6. Back to Search/Back to App

When you use Spotlight to launch an app, you now have a “Back to Search” shortcut at the top leftcorner in the status bar, which allows you to go back to Spotlight. This is quite nifty, as it saves you the hassle of pressing the Home button, and swiping down again on the Home screen to access Spotlight.
iOS 9 - back to search
Similarly, when you get a Notification, you have a shortcut called “Back to App” that lets you switch back to the previous app.

#7. Add Mail Attachment

You can finally add attachments from iCloud Drive. When you tap and hold in the body section of the new compose window, you should get Attachment option with Insert Photos and Videos.
iOS 9 - side switch option

#8. Redesigned App Switcher

Apple has redesigned the app switcher again in iOS 9. It has a coverflow effect. Apple has also got rid of the Recent and Favorite Contacts from the app switcher, which wasn’t popular with most users.
Apple had given us a glimpse of the redesigned app switcher on the iPad. Here’s a look at the app switcher on the iPhone.
iOS 9 - App Switcher - iPhone

#9. Redesigned Siri

Siri has been revamped. It looks a lot like Siri on the Apple Watch.
iOS 9 Siri

#10. Side Switch

iOS 9 gives you the option to use the side switch for Lock screen or Mute. This option has been available on the iPad.
iOS 9 - Use Side switch

#11. Passcodes are now 6 digits

When you try to set a new passcode, iOS 9 You will need to use a 6-digit passcode in iOS 9 instead of 4, to make your passcode a lot tougher to crack. It doesn’t force you to change the passcode to a 6-digit passcode, but if you try to change it, you will have to use a 6-digit passcode.
Update: You also have the option to continue using a 4-digit numeric code. You get the option when you tap on Password Options.
iOS 9 - Password options

Update 1:

#12. Select multiple photos

There is now a much easier way to select multiple photos in the Photos app. After tapping on Select in the camera roll, you can simply slide your finger over the photos to select multiple photos. In iOS 8, to select multiple photos, you have to tap on them one-by-one or use this trick, which may not be applicable in all situations.

#13. New Font

As expected, Apple has replaced the Helvetica Nue font with the Apple Watch ‘San Francisco’ font in iOS 9. I think the San Francisco font is better than Helvetica Nue. It is sharper and offers improved visibility.
iOS 8 vs iOS 9 font

Update 2 (June 9th, 2015):

#14. Group Notifications by App

You can group Notifications by app in Notification Center. There is a new toggle in the Settings app that allows you to group Notifications by App (Settings > Notifications > Group by App).
iOS 9 - Group Notifications by app
These are just some of the new hidden features and improvements we’ve discovered in iOS 9 so far. We will continue to update the post as soon we find any new features or improvements. Thanks Alan for the tip!

Update 3 (June 9th, 2015):

#15. Hide Multiple Photos

It is a lot easier to hide multiple photos in iOS 9. In iOS 8, you could hide a photo by tapping and holding on it, and then tapping on the Hide option. If you wanted to hide multiple photos, you had to hide them one by one, which is quite cumbersome. In iOS 9, the option to hide photos is now available in the Share menu. So you can hide multiple photos at once. Thanks Connor for the tip!
iOS 9 - Photos app - Hide menu

#16. Maps app

When you tap on the search bar, you can quickly see what’s nearby, so you can decide on places to shop, eat and more. It’s quite a killer feature, and makes finding places nearby a breeze. Thanks Conor!
iOS 9 - Maps app

#17. New Auto-Lock Option

You have a new 30-second option to Auto-Lock your iPhone or iPad (Settings > General > Auto-Lock). Conor, thanks again for the tip!

Update 4 (June 9th, 2015):

#18. Disable All Vibrations

You can now disable all vibrations on your iPhone or iPad, thanks to a new settings under Accessibility. But it will also disable vibrations for earthquake, tsunami and other emergency alerts.
iOS 9 - Disable Vibrations
Update 5 (June 14th, 2005):

#19. Save Attachments

You can tap and hold on an attachment in the Mail app to save it to iCloud Drive. Check this post for more details.
iOS 9 - Save attachments

#20. Email more than 5 photos at once

You can finally email more than 5 photos at once from the Photos app. Check this postfor more details.

#21. Swipe down on a photo to go back

You can now swipe down on a photo to go back to the Camera roll. It is more convenient than tapping on the “<” back button. Check the video below to get a better idea how it works. Thanks Lliya for the tip! Check this post to watch the video to get a better idea.

#22. Mail Drop Support

iOS 9 brings Mail Drop support to iPhone and iPad. It was introduced last year with OS X Yosemite. Mail Drop allows you to send large attachments up to 5GB in size via iCloud. You may check our article to find out how it works.

#23. Battery Usage details

The Battery Usage can now be found under Settings > Battery instead of Settings > General > Usage > Battery Usage. Battery Usage has a new hidden feature. When you tap on the detail view icon, it displays the amount of on-screen time and background time for each app or process. It can be quite helpful in figuring out which apps are draining battery life.
iOS 9 - Battery usage

#24. Battery Widget

iOS 9 also comes with a new Battery widget. It is available only when you pair your iPhone or iPad with an Apple Watch. Screenshot via Javier Sato.
iOS 9 - Battery widget

#25. Touch accommodations

iOS 9 get an all-new Settings panel to customize the touch sensitivity of your iPhone or iPad’s touch screen called Touch accommodations. You can access it by launching the Settings app and navigating to General > Accessibility > Touch Accommodations.  Thanks Josh and Danno for the tip!
iOS 9 feature - Touch accomodations

#26. New Options for Reader mode in Safari

In Safari, you now have the options to change font size, the font, and the background. Thanks Connor for the tip!
iOS 9 - Reader mode options

#27. Markup Attachments

You can use markup in the Mail app itself to edit and annotate attachments. You can use the markup tool to sketch, draw shapes, zoom, highlight, add text, and even sign. It is quite similar to the markup feature available in Mail in OS X Yosemite. Thanks Ben for the tip!
iOS 9 - Markup

#28. Set Contacts for Home, Work & Favorites in Maps

You can now set contacts for Home, Work & Favorites right in the Maps app when check for directions.
iOS 9 - Maps app - Contacts

#29. Quick Access to Wallet from the Lock screen

You can double-press Touch ID to access Wallet right from the Lock screen. If you’re worried about security then you can disable access to the Wallet app on the Lock screen by going to the Settings app (Settings > Touch ID & Passcode > Wallet).

#30. Use the Keyboard as a TrackPad

You can control the cursor on your iPhone or iPad by simply moving two fingers on the keyboard, to select, edit, and move text. Initially, I thought it was available only on the iPad, but it is available on the iPhone as well. Thanks

#31. Disable Shake to Undo

You can now disable the Shake to Undo feature if you tend to trigger it accidentally by going to Settings > General > Accessibility > Shake to Undo.
iOS 9 - Shake to Undo
#32. Customize the Top Level menu in Assistive touch
You can customize the top level menu in Assistive touch. Assistive Touch comes in handy if you have trouble performing some of the gestures on your device. In iOS 9, you can change an icon to customize it based on your preference. You can also add two more icons to Assistive Touch menu. Thanks Yan for the tip!
iOS 9 - Assistive touch
If you find anything new that wasn’t mentioned during the Keynote then please send us an email to odayco2006@gmail.com

source : engoday.tk

Saturday, June 13, 2015

APPLE IOS 9: ALL THE BEST NEW FEATURES AND UK RELEASE DATE

APPLE IOS 9: ALL THE BEST NEW FEATURES AND UK RELEASE DATE

As expected, Apple has just unveiled the latest version of its mobile operating system, iOS 9, as part of itsWWDC 2015 keynote. There’s loads of cool new features to look forward to, with iOS 9 expected to get a consumer release in the autumn alongside the next version of the iPhone (the iPhone 6S?). Here’s a roundup of some of the best.

UK Release Date and Availability

There’s no official word on the UK release date of iOS 9, but based on past experience, we’d expect it to roll out sometime in September, following the launch of the next-generation iPhone. A developer preview is now available, and for the first time with an iOS release, a public beta will also be available from July and you canregister your interest here. Apple’s iOS 9 will support all devices that currently are able to run iOS 8.
As always with preview software, it’s only really advisable to download the early builds if you’re a developer, as it’s going to be buggy, unstable, hard to use, drain your battery life, and make a bunch of your apps pretty much unusable. If you do download the developer preview, make sure you backup all your data first.

New Multitasking Features

multtasking
Ever tried to use an iPad for work? It’s possible, but far from perfect, at least compared to more robust devices like laptops. So iPad users should be happy to hear that iOS 9 on the iPad will now come with improved multitasking tools. At the heart of iOS 9’s new multitasking features is a new app called SplitView, which will let you have two apps running on-screen simultaneously, so you can use both at the same time. In addition, you have SlideOver, which lets you swipe in another app from the side of the screen, and Picture-in-Picture mode, which lets you keep a single app running in the corner of the screen while you do something else, whether for work or play.
SplitView is only available for the iPad Air 2, but SlideOver and Picture-in-Picture will also be available on the the iPad Air, as well as the iPad Mini 2 and 3.

There’s also a new QuickType keyboard for the iPad, featuring a bunch of formatting options. You can now swipe with two fingers to create a trackpad to select and edit text. If you’re using a keyboard, you also get some new shortcuts to switch between apps, which we’ll talk more about when we’ve had a proper play with it.

Apple Pay

visa-apple-pay-620x349
Oh hey, Apple Pay is finally coming to the UK, isn’t that nice? Sarcasm aside, it actually looks better than expected, with loads of major High Street retailers, public bodies, and mainstream banks already signed up ahead of its release in July. Perhaps most usefully, TfL is among the first to support Apple Pay in the UK. Click below for more information.

Swift 2

Last year at WWDC, Apple unveiled a brand new programming language called Swift. At this year’s event, Apple announced its successor, Swift 2. The key development here is that Swift 2 will be open source, supporting compilers and libraries for OS X and iOS, as well as Linux, by the end of the year.

HomeKit

homekit-620x349
HomeKit is Apple’s move into the smart home space. Now, HomeKit will let you access your smart home devices remotely through iCloud, so you can take control of your home without even being in the same country. Apple didn’t announce specific devices that will be released with HomeKit compatibility, but it did say that smart lighting, sensors, carbon monoxide alarms, thermostats and more will be able to be controlled from your iOS device.

Privacy

Apple went a bit overboard emphasising how important security was to iOS 9, noting that all of your information – such as the random marriage proposals you throw at Siri – will stay on your phone. That’s right: everything will be anonymous, and will be based on a random identifying number.

Siri and Proactive

1288484333788407909 (1)
Apple claims that iOS 9 will do a whole bunch of stuff, including improving battery life, enhancing performance, and bolstering security. But the biggest change to Siri in particular is the introduction of a new, Google Now-style feature, which Apple is calling Proactive.
Basically, Proactive is a location-aware, automatic feed that sits on the left-hand side of your home screen and updates itself in accordance with what you’re doing. Apple noted that the system will be tied to emails – the example it used was getting invitations to events, which Proactive will then send to your calendar automatically, along with intelligently serving up other relevant information, like driving directions and departure times, or playing your workout music when you plug in your headphones at the gym. Because Google doesn’t already do all of that…
Siri will also come with improved search functionality, letting you search through your iPhone much easier than you could before. Just tell her a command, like ‘find my photos from last summer’ and she’ll bring them up for you immediately. It’s similar to the improvements to Spotlight in OS X 10 El Captain.

Spotlight in iOS 9

Spotlight in iOS 9 is a lot more powerful and predictive. Pulling it up will show you your most recent contacts, as well as apps that you tend to launch at certain times of the day. You can also search within apps like Netflix and Vimeo, do basic maths, and more. More importantly, Spotlight now has an API, so this feature can (and hopefully will) come to many more apps soon.

Apps

1288484333990887013
As part of iOS 9, a bunch of Apple’s native smartphone and tablet apps are going to be getting updated, including the popular Notes app. Apple says it’ll be making it easier to find and organise your notes, plus offering the ability to doodle notes directly into the app, and giving you the option of backing your notes up to iCloud.
A brand new app was also unveiled at WWDC 2015, dubbed ‘News’. A bit like Flipboard, News is a personalised news feed designed to surface content relevant to you. Apple highlighted the design effort that gone into News, promising articles will actually look like they belong in a newspaper, with a few smaller animations and videos thrown in for good measure. Apple added that News will cover more than a million different topics, so if you want to follow niche areas, you’ll be able to do that. In other words, if you like mobile tech but don’t like Android or Windows Phone, you can just, you know, follow iOS-related fodder.

Apple Maps

1288484333964975717
Not long after Google announced the addition of real-time transit information to its mapping product, Apple also confirmed that its Maps platform will be integrating public transport details in a bunch of cities around the world, including London. Ask for directions on public transport and, as well as telling you route options, Apple Maps will highlight the walking time between your changeover. The new-look Apple Maps will integrate with Siri, of course, so you can ask it for directions rather than having to go into the Maps app to type our your requests.

Battery Life

Apple claimed that the battery life of its related hardware products was being optimised for iOS 9, potentially adding an extra hour of battery life on an iPhone. On top of this, it will also be adding a new low power mode (it’ll be interesting to see how closely this resembles Airplane Mode, which already lets you put your device in a low power mode when you’re trying to conserve juice).

Tuesday, June 2, 2015

Game of Thrones "White Walker battle"

A director on Game of Thrones' epic White Walker battle

The latest episode recapped with a special eye on its screencraft.



Tyrion and Dany talk statecraft. Cersei is stuck in jail. Arya is selling oysters, staking out a hit. Guess this is going to be a pretty bori—OH. MY. GOD. An army of White Walkers battling the Wildlings and they can run like hell!

So.
few weeks ago, I commented on the use of computer graphics in GoT and how wise and parsimonious the showrunners had been, and presumably would continue to be.
“They haven’t overreached yet,” I opined.
Well, I maintain that they still haven’t, but how wrong I was in estimating their ambitions! As a film-maker type and occasional recreational user of CG, I can assure you that the "army of the dead" throwdown in this episode was a big deal. Lots of stuntiness. Lots of effects. Lots of planning. Lots of storyboarding. Lots of time and effort. To think that I was complaining about how long the White Walkers took to get anyplace! All is forgiven, White Walkers.
This even explains why there have been so few effects in the previous couple of episodes. Some matte paintings, yes; but most of the sense of scale has been conveyed with audio, practical locations, tents, and liberal dousing of Falling SnowTM. When Ghost made a cameo appearance and saved Sam’s ass last episode, I couldn’t help but notice that he only showed up for one shot, and then was sort of finessed out of the other angles. That’s the kind of thing that happens when your visual effects supervisor says that there isn’t the budget, money- or time-wise, for more shots. Turns out most of the pipeline was being saved for the zombies. Excuse me, Army of the Dead.
Pixomondo, if the Game of Thrones wikia serves me right, is responsible for the lion’s share of GoT CGI (I hope I have this right).
Well played, Pixomondo.
There’s a great meshing of practical and CG effects here, a great corporeality and crunch and bite and slosh to the creatures and the atmospheres. Much praise is also due to the makeup department as well, not to mention props, stunts, and, let us not forget, production design. The White Walkers look great. Scary and uncanny (in a good way) and somehow smug. The ending face-off-at-a-distance between Jon Snow and Creepy Baldy Walker is totally earned -- not easy when you’re basically matching up a live actor shot-for-shot against a CG character and asking the audience to take their expressions as comparable in depth, and related to one another.
WonWon was another triumph. Earlier in the show they soft-pedaled with the giants, and occasionally ran around the backhand, as it were. Here, you had full-on interaction with the environment, realistic physics in the fights with the zombies, locked-off shots, moving shots, shots incorporating crowds, extras, the whole nine. Most importantly, you cared about the guy.
I thought, “Oh no! They’re going to drag him down with their numbers!” and then I realized, “Of course they won’t, because he’s fucking awesome!” When you’re doing these kinds of shots, there is always a logistical pressure to rule the more complicated characters out of as many shots as possible, to save effort and cash for what you know you need. Eventually you start to feel the absence of certain characters or elements, like they have a gravitational pull to them, and your eye wants to be following them somewhere offscreen. This sequence never suffered from such economies. You got the dead. You got fighting. You got ships. You got loads of extras (real and CG). You got a giant cold stepping on fools. You got White Walkers chilling in the distance. You even got Jon Snow fighting a White Walker. Bravo. Double bravo. Braavos.
Story-wise: okay so maybe I shouldn’t call the Army of the Dead zombies, but they’re zombies. But I guess that their bites don’t infect people? Also they don’t swim. Also their bosses don’t swim. Fair enough. Also Valyrian steel works as well as dragon glass? I was kind of expecting it, since they tipped that Valyrian steel would matter in the “Previously On” bit.
I really liked Bjork-y Wildling Badass lady, and I think it was a major drag that she got eaten by the zombie kids. Would have been fun to see her more. Was she unable to defend herself because of her maternal instinct? But then why didn’t she bash the zombie kids so that she could get back to her own, living, kids? It takes a village, I suppose.
And I know some other stuff happened in the episode. Anybody want to see a showdown between Brienne and Mean Nun? I do. I like the way that Jonathan Pryce is playing the Big Sparrow -- there’s no moustache-twirling, no arch changing of demeanor -- he is consistently calm and reasoned and blithe and ruthless.
In her chatty-chat scene with Tyrion, there’s an interesting editing choice when Danaerys says, “I’m not going to stop the wheel, I’m going to break it.”
This was the big pull-quote they used for the season preview, and stitched together the way they did then, it sounds impressive and all, but it changes when it’s being said to Tyrion. Which is to say, Tyrion has just gotten through telling Danaerys that she needs to be realistic, and win over the nobles an the big Houses as well as the common folk, when Dany goes into her whole Spokes on a Wheel thing. If you’re a Tyrion fan, and who isn’t, don’t you expect him to reply, “Yeah, that’s a nice metaphor and all, but didn’t you listen to everything I just told you? All you’re going to have is a broken wheel.”
For obvious reasons, which is to say in order not to deflate the attitude that Dany is putting forth, he doesn’t do so; but if one is going for the effect of “Wow, she just said something awesome,” it would seem to call for a reaction shot. However, Dinklage being as in character as he is, there’s kind of no way to cut to Tyrion without undercutting the moment.
I mean, you might have been able to eke a “You Crazy” look out of it, but my suspicion is that Dinklage stuck to his guns and didn’t give up the “I Will Follow You Anywhere” look that was called for. Perhaps I am overthinking it. But, the final effect is a bit odd -- the shot on Dany doesn’t breathe and then we’re out, a suitable rhetorical ending to the scene but you can’t help but hunger for Tyrion’s take on the idea.
Ah, Dinklage. His accent is still all over the shop after five years, but it really doesn’t matter ‘cause he’s so damn good. I felt badly for Jorah, but it all made sense, Tyrion advising Dany to give him the boot a second time. Surely it was a thankless day for the actress who plays Missandei, though? I mean, couldn’t they just have given her the day off, since she doesn’t even speak in the scene? Or give her something to say? Or a look? She might have been a good audience proxy watching the tennis match between Dany and Tyrion.
You’ve got to ask yourself what Jorah has in mind, what with suffering from the Greyscale and all. He’s like the worst stalker ever.
Maisie Williams is on good form here; she’s been gloomy enough that her sudden smile as the oyster-girl has some real weight, and makes us believe she’ll be a reasonably good servant of the Many-Faced God. I can’t for the life of me decide whether the guy who plays Jaqen H’ghar is brilliant or terrible, but I do like watching him.
Sansa learns from Theon/Reek that he didn’t kill Bran and Rickon. That’s nice. The scene is full-on Northern Blue Tone, and they do a nice thing cinematographically, which is to go relatively realistic with the lighting so that the windows are overexposed and the people, who are inevitably in the foreground, are appropriately dark relative to the light source. Makes you concentrate more on them as you have to pick out the details of their expression, rather than their being lost in an even wash of brightness.
Ramsay Bolton has some dumb idea about attacking Stannis’s army with 20 “good men.”
Olly is still pissed about his family getting massacred. Get over it! I kid. But why do we have this scene? So that Sam can explain why Jon Snow is doing the Hail Mary thing at Hardhome, presumably.
Then come 30 minutes -- 30 minutes! Of conflict and action at Hardhome, its own self-contained sequence. That’s a lot of damn work. And, to me, it’s an improvement over GRRM(May he Write in Peace)’s books, in which you never have a really strong sense of the urgency behind John Snow’s rescue of the Wildlings. This gives us first-hand experience of the enemy, and puts pressure on all of the contenders in a way that has, up ‘til now, only been talked about.
Underneath it all, you feel the marshaling of strength, production-wise, for what’s to come. One of the big challenges about bringing GoT to the screen has always been whether the effects and budget could keep up with the scale of the books. It’s helped that much of the strength of GoT is in the long tease; yet, in the end, Winter has to come.
So, let us now praise unsung producers. David Benioff and D.B. Weiss are both extremely clever and talented, which has been noted elsewhere. Here the ace in the hole may be Chris Newman, who was our 1st A.D. when my brother and I shot About a Boy. Before that he had scheduled and planned a little movie called The Phantom Menace, which had a few effects shots and action sequences. The kind of big-screen-scale grooviness which the Hardhome sequence represents to me take some major budgeting and scheduling and producing chops, and I’d be surprised if Chris and his people weren’t deep in it.

Source