Posts

Showing posts from 2016

Xamarin iOS for Simulator and Screenshots

Image
I love the Xamarin iOS Simulator for Windows , much easier than VNC'n to my Mac or having to constantly use my iPhone when I'm only playing around with UI and stuff. It has all the features you'd expect like show/hide keyboard, home button, rotate, trigger call etc. It also has capture screenshot which would be super handy. Tonight I needed to take a few screenshots so got trigger happy with the screenshot button but.... I couldn't find where they went! To cut a long story short I ended up using Process Monitor to find where the files were being written and it turns out they go to a Xamarin\iOS Simulator folder within your pictures folder. I never use mine on my development machine so didn't even consider checking there. So two tip Pro Tips: Xamarin iOS Simulator for Windows Screenshots goto: C:\Users\{username}\Xamarin\iOS Simulator Not sure where files are or whats using them... Don't forget about Process Monitor

HTML 5 Web Capture Quirks

Image
Today I've been playing around with HTML 5 Web Camera capture and for the most part its been quite easy. HTML5Rocks has a good intro post  which covers many things. Now it came to testing and everything worked as expected in Chrome and Firefox however in Microsoft Edge (We all test in MS Edge don't we.... ) I found an odd behavior.  I'm being quite lazy and wanting a 640 x 480px image, so 4:3 aspect ratio which I then take a smaller portion from. Below is what it looks like in Chrome: However in Edge I was getting: Originally my source was just: navigator.getUserMedia({video:true}, (stream) => { So I decided to add explicit constraints: var constraints = { video: { width: 640, height: 480, } }; navigator.getUserMedia(constraints, (stream) => { However the results were still the same. I then started digging around any Edge documentation I could fin