I’m working on a project that requires translation using .Net’s Resx capabilities. This project is 2 years old and counting and our duplication and disorganization of our Resx strings are very apparent. This is a form of Technical Debt and we realized that it is time to pay some of it off before we’re in too deep. I just spent the morning replacing all of our required validation message from 28 different flavors of “X must be selected”, “Y cannot be empty”, “You need to set an email address.", ”Z ......
It took awhile to find the right NuGet package to use to create and decode a QR code, but we found it. The ZXing.Net port of the Java version turned out to be quick and easy to use. Scott Hanselman had an example of decoding a QR code in his blog, and I adapted the code from the ZXing.Net site and his to create this LinqPad demo. Fire up the great LinqPad program, change to C# statements, add in the Nuget package and the correct namespaces. Then hit F5. You can now generated and decode that information ......
I added a lengthy answer to the StackOverflow question on switching focus to an iFrame when using Selenium to automate a UI for testing and thought it deserved a blog post. First you need to select the iFrame and switch the driver context to it. The iFrame I’m working against doesn’t have an id, and there will only be one on this particular page. This is an example of using it straight out of the box. I have access to the driver through a static property. I set this when I first told Selenium what ......
A co-worker (Scott) sent out this email and it was so good I asked him if I could share it with all of you. I changed the latitude and longitude to random locations to protect the innocent. “Stumbled across this method this morning while coding all the math out by hand to calculate distances. This one is definitely worth filing away for future reference, saved me a ton of work. This was added in v4 of the framework, and is in the core framework install, so should work in services as well as client ......