Node.js with SQL Server
Yes, you can use SQL Server with Node.js. I added a Gist to show how it could work. I didn’t get to connection pooling or transactions, just enough to get a general feel.
Yes, you can use SQL Server with Node.js. I added a Gist to show how it could work. I didn’t get to connection pooling or transactions, just enough to get a general feel.
You can combine test coverage reports from both unit and end-to-end functional (e.g., Selenium) tests.
A few days ago I wrote about overusing interface-implementation pairs.
As I was starting to pick up blogging again, I came across a post I wrote over 10 years ago about having to put up with older browsers. It was kind of funny to see how back then, I was excited about IE 6 and this new thing called AJAX. Also, that back then, it seemed like a novelty to prioritize support for different operating systems and browsers based on real usage metrics.
Some things haven’t changed: old browsers are still a pain, and there’s still a sizeable number of users in various industries stuck on Windows XP and therefore IE8 – the US Navy is one of the more public examples.
I was wondering why so many people are still creating interfaces for their class, instead of just creating the class, when there’s only a single implementation.
I found this project online to do turtle graphics in Javascript, just like we used to do with Logo in grade school. I made some patches to it and submitted as a pull request. You can play with it live here or here.
Please “like” my proposals for AgileDC. I submitted two:
var callback = function() {
this.updated(true);
});
this.x.subscribe(callback, this);
this.y.subscribe(callback, this);
this.onInputChanged = ko.computed(function() {
var trackedObservables = [this.x(), this.y()];
// action when one of trackedObservables changes
this.updated(true);
}, this);
var afterHideCallback = function afterHideCallback(event) {
var elementToDestroy = event.page.element;
// clear out reference from the node with page binding so it can be garbage collected
event.page.ctx = {};
// shut down and wipe DOM from page to be hidden
$(elementToDestroy).children().each(function destroyChildElement() {
ko.removeNode(this);
});
};
// attach this event globally or in individual "page: {afterHide: ...}" bindings
pager.afterHide.add(afterHideCallback);
reportSource.setExecutionFlags(EnumDSSXMLExecutionFlags.DssXmlExecutionResolve);
class WebResultSetInstance { public WebMessage getMessage() }
class WebDocumentInstance { public WebDocumentMessage getMessage() }
class WebReportInstance { public WebReportMessage getMessage() }
<div id="parent1" style="position: relative; width: 400px; height: 100px; background: #fcc">
<span>red header</span>
<div id="absoluteChild" style="position: absolute; top: 0px; left: 0px; width: 200px; height: 200px; z-index: 100; background: #cfc">
<span>On all browsers except IE7, the green box will be on top of the blue box on bottom and cover some of the text</span>
</div>
</div>
<div id="parent2" style="position: relative; width: 400px; height: 200px; background: #ccf">
<span>The text in this box is fully visible only on IE7. Even though the green box has a high z-index, IE7 still paints the blue box on top </span>
</div>