I learned some new things about $.when.apply that were worth sharing. http://jsfiddle.net/logankd... · the first reject will fire the .always, but not the .then · .then won’t fire until all promises are resolved (or one is rejected) Maybe not new to you, but I had to try it out after seeing the last answer at http://stackoverflow.com/qu... I was playing with this again and made a different, simplified playground on codepen. 11/13/15EDIT 2: ......
I found this out the hard way the other day. We’re using TypeScript and RequireJS for development. There’s a nice way to ensure the file has a dependency, without having to import it. Put the comment at the top of you file. /// <amd-dependency path="knockout-es5"/> I found that this needs to be at the very top or Require won’t pull in the file. I unsuspectingly added “use strict”; and it stopped working. After awhile, we moved it below and it worked. Invalid: “use strict”; /// <amd-dependency ......
We were just in a code review and one of the guys showed how he was using the MutationObserverer with our search control to get tiles to resize after the list (Knockout observable). I hadn’t heard of this before and it looks very useful. Read the linked html5rocks.com page (from 2012) to learn more about it. It’s supported on all but Opera mini and started in IE 11 and is a more performant than the old Mutation Events that have been deprecated. You point the MutationObserver to the DOM node and it ......
I’m a fan of Codealike and run with their extension while I’m in Visual Studio. It tracks a surprising amount of data on which projects I’m working on, where in the code, time spent building, code languages used, focus, web sites visited to help you gauge productivity (if you let it), many new features in 2014, and they’re even trying to measure technical debt. There’s more there then I have to too look at often, but the premium access (which they gave me 3 months free, thanks CodeAlike!) has a lot ......
I enjoyed listening to Databases in Continuous Delivery with Enrico Campidoglio on .Net Rocks and learning about tools to do CD with databases. I’ve looked at how to have the database schema in source control so that you can rebuild your database at a moments notice for different environments. The options we’ve came across as a team have included Database Projects In Visual Studio, Code First Migrations with Entity Framework, manually creating the scripts using Visual Studio’s data compare tools ......
I saw that the readme files for ASP NET 5 Home and ASP NET Data Project still said vNext so I made a pull request on github to change it to the announced official name of ASP .NET 5. It turns out I needed to sign a CLA (Contribution License Agreement) for Microsoft Open Technologies. It was pretty easy, I just had to talk to my supervisor and get permission and a sign off from them. They used docusign.com and a few emails later it was completed and confirmed. Here’s more information about contributing. ......
I run automated UI test with Selenium (unit testing will do this as well, though not as many files) from the Visual Studio Test Explorer a lot. This creates a new folder inside of my solution location named TestResults for every test run. Depending on what I need to deploy for the test (Selenium chrome driver, images, dlls, etc) the size of that it takes up on my hard drive gets very large after a few weeks. I’ve deleted gigs before. In the spirit of “if you do something more than once, automate ......
I was watching part of Using TypeScript for Large Angular JS Applications on TypeScript. In the SourceMaps and TypeScript section, Justin Schwarty mentions that ctrl+p in the Chrome Dev Tools will pull up a list of files (css, js) that you can debug against. This is similar to the ctrl + comma in Visual Studio (or ctrl + t with Resharper). Hopefully, you’re already aware of this, but for me it will be a huge time server. I’ve searched through the tree of files far too often. The official shortcuts ......