The first law minireview

December 8, 2015
"The first law" is a fantasy trilogy that goes off a bit from the beaten path. I enjoyed the writing style and the fact that some of the characters are not what you expect to find in a fantasy book (The Glokta character is especially "different"). The ending was a bit of a let down but overall it's a pretty solid "package". Recommended

After the main trilogy , there are 3 additional books that continue/reference some of the characters from the main story. I've only read the first 2:

Best served cold
best served cold cover
This is the book i enjoyed the most from all 5. It's a simple revenge story, dialed up to 11. Recommended.

The Heroes
the heroes cover
I actually really really disliked this one. I appreciate the idea of the book but i think the "execution" of that idea was downright
terrible. Not recommended

Firefox 64 bit version is out

November 4, 2015

Finally the 64 bit version of Firefox is out. It works side by side with the 32 bit version (by default 64 bit version is installed in \Program Files instead of Program Files (x86)) but i really recommend everyone to just install the 64 bit version and ditch the 32 bit version (just make sure you back up your profile before doing this).

Overwrite default font in Firefox

October 28, 2015
If you're using Firefox there's no need to use the crappy fonts "designers" use for their pages. Install your favorite font and set it as default :

Just uncheck "Allow pages to choose their own font" .

Quick tip to quickly find all FKs for a certain table

October 6, 2015
You can find all FK for a certain table in SQL Server with the following query :

SELECT * FROM sys.foreign_keys WHERE referenced_object_id = object_id('YourTable')

Shopkeeper update

October 6, 2015

There's a new Shopkeeper update (v2.6.2) . Grab it here

Change log :

- few small fixes

- added "Edit" button in product details page that redirects to the edit page in administration area. Button is available only if you are logged as administrator.

Use string interpolation in ASP.NET MVC 5

September 7, 2015

One of the new C#6 features is string interpolation (which makes the code much nicer than using string.format()) . But by default the new Roslyn compiler is not used when compiling the MVC views. You can change this by installing the nuget package called  Microsoft.CodeDom.Providers.DotNetCompilerPlatform

It's just a binding failure

September 1, 2015
A GitHub extension VS bug caused some serious damage for some dude. It was very sad to see the actual cause of the bug though. A frigging WPF checkbox binding failure case GitHub projects to always be created public.
It's funny because a lot of people who do XAML figured out that MVVM/binding is the wrong way to tackle UIs of a reasonable complexity but on the other hand it's still sad to see it fail so miserably.

Universal Windows apps - risking the quality of the apps

August 10, 2015
I've played around for a bit with a Lumia device which run the latest Window 10 mobile. To be honest the entire switch to "Universal Windows apps" doesn't seem to great from a user perspective.

The main thing is that not matter how great the API is, it is HARD to make a app "work" from a 4 inch phone (using touch as input) to a Xbox One running on a 70' TV using a controller for input. Different device sizes and different input methods are usually handled differently so "hiding" all this under a API won't necessarily make the apps great.

Just look at Android, even after all these years you can still find apps which suck when are running on a tablet (they don't make proper use of the entire screen estate). Nevermind the fact the the OS still doesn't support basic features like running 2 apps side by side (never mind the Samsung hacks, that has his own share of problems).

To me, with the universal runtime , it seems Microsoft is risking to have more apps which are mediocre on multiple devices rather than fewer apps which run and work great on each device type. Windows Mobile /Windows 10 won't compete with Android / iOS regarding the number of apps anytime soon (if ever).

Is it worth risking the user experience for "many apps" ? Personally i don't think so.

Run Edge browser from command line / keyboard shortcut

July 30, 2015
I run all of my apps from keyboard shortcuts with AutoHotkey (great utility, i highly recommended), so i wanted to do the same thing with Edge.
But with Edge it's a bit tricky because it's a "modern/univeral app" and those types of apps require a certain unique server parameter when you invoke them, directly from command line.
But i've figured out that Edge registers it's own shell extension and we can use that to launch it. So directly it can be done like this :
powershell.exe "start microsoft-edge:"

Obviously feel free to either replace or delete the part.

Immutable collections in .NET

July 30, 2015
Dealing with immutable collections in .NET  is very easy with the help of the ImmutableCollections package on nuget .

Here's a example :

ImmutableList initial = ImmutableList.Empty;
ImmutableList immutableList = initial.Add("stuff");

Any operation on the collection will create a duplicate collection (so in the above example the "initial" collection is still empty).
Another much simple way would to be use the IReadCollection from .NET 4.5
List initial = Enumerable.Range(1, 10).ToList();
ReadOnlyCollection readOnlyCollection = initial.AsReadOnly();

Now you can pass readOnlyCollection and obviously the initial collection will remain unchanged.

Page 2 / 34

© Marius Gheorghe