http://www.sbp-romania.com/Blog/2014/11/05/how-to-call-a-wcf-asmx-web-service-from-php.aspx
Wednesday, November 19, 2014
Monday, November 17, 2014
Coding advice for new developers:Readable, Reliable, Correct and Efficient
Why this order?
Each attribute is fundamental to the next.
If code isn't readable, you stand no chance of making it reliable.
If code isn't reliable, it will never be correct, except by accident.
If code isn't correct, then what's the point?
If code isn't efficient, it is unlikely to be viewed as broadly useful.
http://jefflunt.com/rrce/
Thursday, November 13, 2014
How to pass paramters in Angular for http$.get and http$.post?
For http$.get
$scope.ButtonClickEventGet = function () {
$http.get(
'ControllerName/Action',
{ params: { postcode: $scope.PostalCode } }
).success(
function (data, status, headers, config) {
$scope.Result = data;
}
);
};
For http$.post (Don't know why it is different with get method)
$scope.ButtonClickEventPost = function () {
$http.post('ControllerName/ActionName', { postcode: $scope.models.PostalCode }).success(
function (data, status, headers, config) {
$scope.Result = data;
}
);
};
Wednesday, November 12, 2014
Tuesday, November 11, 2014
Friday, November 7, 2014
Thursday, November 6, 2014
CDN for Angular
https://developers.google.com/speed/libraries/devguide
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script>
Wednesday, November 5, 2014
Screw You, Angular
"Recently there has been a great little triangle of battles going on among Ember, React and Angular. The reason why these debates are so great is that each of the frameworks have various pieces that are pure genius (ex. Angular DI, React Virtual DOM, Ember Router) and it is not abnormal to see developers in one framework borrow the great idea from another framework (ex. Angular UI Router from Ember Router)."
https://medium.com/@jeffwhelpley/screw-you-angular-62b3889fd678
https://medium.com/@jeffwhelpley/screw-you-angular-62b3889fd678
What is XOR(^) operator in C#
A XOR B shows that it outputs true whenever the inputs differ
Sometimes, it is so easy to find a solution when you are back to basics.
References:
http://msdn.microsoft.com/en-us/library/zkacc7k1.aspx
http://en.wikipedia.org/wiki/Exclusive_or#Relation_to_modern_algebra
Sometimes, it is so easy to find a solution when you are back to basics.
References:
http://msdn.microsoft.com/en-us/library/zkacc7k1.aspx
http://en.wikipedia.org/wiki/Exclusive_or#Relation_to_modern_algebra
Subscribe to:
Posts (Atom)