Keeping track of interesting places I put my feet on in the software development world.
Search This Blog
Monday, September 26, 2016
Monday, September 19, 2016
Windows calculator in Programmer mode does not support unsinged values
True, but you can get over it using this one (which adds cool features).
Wednesday, August 24, 2016
Unable to debug Silverlight Application
I was unable to successfully debug my silverlight application until I came across the this answer from StackOverflow (worth checking the one above it as well, although it was the 2nd that fixed my issue).
Monday, August 22, 2016
Fixing error Silverlight.Csharp.Targets was not found
If you are facing build errors where some (likely projects that rely on Silverlight) of your projects are not being loaded into the solution, here's what worked for me (I used Visual Studio 2015, but the same should work for 2010):
(The solution is based on what was proposed here).
(The solution is based on what was proposed here).
- Go do Programs and Features, select your Visual Studio installation, and run a Modify (if not present, you may be forced to go with Repair). Check the checkbox that mentions Silverlight
- Afterwards, when reopening Visual Studio to see if the project(s) is/are correctly loaded - you will be prompted to install Silverlight Developer - the pop-up will include the download link as well. Download, install, and you are (hopefully) done.
Wednesday, August 17, 2016
Visual Studio Web Development Extensions
http://webtooling.visualstudio.com/extensions/web-development
Going up one level, you get into http://webtooling.visualstudio.com, that overviews what visual studio offers in covering the technologies being used today.
P.S.: PowerTools has historically given me freezing problems, making it not an option.
P.S. II: The power tools issue mentioned above is gone after moving to Windows 10 (recommend, by the way, seems to give benefits on many other fronts, like Xamarin development, for example).
Going up one level, you get into http://webtooling.visualstudio.com, that overviews what visual studio offers in covering the technologies being used today.
P.S.: PowerTools has historically given me freezing problems, making it not an option.
P.S. II: The power tools issue mentioned above is gone after moving to Windows 10 (recommend, by the way, seems to give benefits on many other fronts, like Xamarin development, for example).
Wednesday, August 10, 2016
Javascript learning resources
I found in Felix Kling's stackoverflow profile 3 really interesting links about learning javascript.
Eloquent JavaScript (free online edition)
You don't know JavaScript (free online edition)
quirksmode.org - especially DOM and event handling
I was surprised to find the sources look very good and are free.
Eloquent JavaScript (free online edition)
You don't know JavaScript (free online edition)
quirksmode.org - especially DOM and event handling
I was surprised to find the sources look very good and are free.
Tuesday, August 9, 2016
Linq OrderBy vs ThenBy - composite ordering calling OrderBy multiple times over is not what you want to do
Do not apply multiple order by linq operators one over the output of the other - the results will not be what you want.
var sequence = new[]
{
new {a = 10, b = 20, c = 301, d = 1},
new {a = 1000, b = 50, c = 30, d = 0},
new {a = 50, b = 10, c = 1130, d = 1},
new {a = 5, b = 0, c = 130, d = 0},
};
var o1 = sequence.OrderBy(s => s.a);
var o2 = sequence.OrderBy(s => s.b);
var o3 = sequence.OrderBy(s => s.c);
var fluentSyntaxSort = sequence.OrderBy(s => s.a).OrderBy(s => s.b).OrderBy(s => s.c);
var thenBy = sequence.OrderBy(s => s.a).ThenBy(s => s.b).ThenBy(s => s.c);
Console.WriteLine("3 order bys EACH ON THE ORIGINAL sequence");
foreach (var o in o1)
Console.WriteLine(o);
foreach (var o in o2)
Console.WriteLine(o);
foreach (var o in o3)
Console.WriteLine(o);
Console.WriteLine("\nFluent syntax:");
foreach (var o in fluentSyntaxSort)
Console.WriteLine(o);
Console.WriteLine("\nThenBy:");
foreach (var o in thenBy)
Console.WriteLine(o);
Output:
{
new {a = 10, b = 20, c = 301, d = 1},
new {a = 1000, b = 50, c = 30, d = 0},
new {a = 50, b = 10, c = 1130, d = 1},
new {a = 5, b = 0, c = 130, d = 0},
};
var o1 = sequence.OrderBy(s => s.a);
var o2 = sequence.OrderBy(s => s.b);
var o3 = sequence.OrderBy(s => s.c);
var fluentSyntaxSort = sequence.OrderBy(s => s.a).OrderBy(s => s.b).OrderBy(s => s.c);
var thenBy = sequence.OrderBy(s => s.a).ThenBy(s => s.b).ThenBy(s => s.c);
Console.WriteLine("3 order bys EACH ON THE ORIGINAL sequence");
foreach (var o in o1)
Console.WriteLine(o);
foreach (var o in o2)
Console.WriteLine(o);
foreach (var o in o3)
Console.WriteLine(o);
Console.WriteLine("\nFluent syntax:");
foreach (var o in fluentSyntaxSort)
Console.WriteLine(o);
Console.WriteLine("\nThenBy:");
foreach (var o in thenBy)
Console.WriteLine(o);
Subscribe to:
Posts (Atom)