Azure - connecting to Windows 10 virtual machine
2015-03-11
Today just a quick tip, which may save you some time. If you want to connect to virtual machine with Windows 10 Technical Preview, make sure that you include DNS name in user name field.
So instead of default combination of username and password
82 words
|
1 minute
AngularJS - extending existing services using decorator
2015-02-25
One of the features I miss the most in AngularJS is ability to easy unsubscribe event handlers.
There is no convenience function opposed to $on, so in order to unsubscribe event, we have to call method returned by $on function
413 words
|
2 minutes
WinJS - AuthenticateAndContinue and "remote procedure call failed" exception
2015-02-19
A while ago I started playing around a bit with JavaScript on Windows Phone. I wanted to create very simple app using AngularJS but of course I also had to use some WinJS features (for integration with device ).
One of the things I needed to implement was authentication/authorization using OAuth.
According to WinJS documentation it should be pretty straightforward - just use Windows.Security.Authentication.Web.WebAuthenticationBroker.authenticateAndContinue method with appropriate URLs.
Of course I wanted authentication/authorization to be called before navigating to any screen, so I slightly modified default WinJS template and my code looked like that
404 words
|
2 minutes
AngularJS - dependency injection
2015-02-16
There are couple of ways of injecting dependencies into AngularJS components. The most common one is just to specify the dependency name in the function’s argument list
444 words
|
2 minutes
Fixing empty SQL server list in "Entity Data Model Wizard"
2014-11-10
I consider myself as a quite experienced user of Nhibernate, that is why I decided to check what is going on on the other side of barricade and started playing with Entity Framework.
I followed the steps of some tutorial and I stuck at the very beginning of it.
I was about to generate model classes using Entity Data Model Wizard but it turned out that the wizard could not find my SQL server (despite the fact that server itself was up and running).
218 words
|
1 minute
T-SQL - syntactic sugar for updating current row in cursor
2014-11-01
I am not a big fan of cursors, however for time to time I have to write one. In my case cursor usually is responsible for some complicated updates.
Until yesterday I’ve been writing my update statements within the cursor the standard way
164 words
|
1 minute
T-SQL - executing query multiple times
2014-10-27
For time to time during my everyday work I have to do some SQL query optimization.
The simplest way of measuring whether my changes improved the performance or not, is simply measure the execution time of given query (I know that this is not the best way of doing that, but let’s leave aside execution plans for now).
However measuring time of single executin is not very meaningfull. Thats why I like execute query multiple times by using this simple trick
181 words
|
1 minute
INotifyPropertyChange - notifying about change of all properties at once
2014-08-24
Today, working on a new feature for my pet project, I realized that I have to notify the view, that all properties in view model have changed.
The most obvious way to achieve that would, of course be to rise PropertyChange event a bunch of times.
151 words
|
1 minute