Preventing Java updates from installing Ask toolbar

If you’re like me, you absolutely hate Java updates, because they try to stuff some sort of crapware down your throat. Most commonly it’s the Ask toolbar, but McAfee antivirus has been around as well.

Luckily there’s a simple way to prevent this problem, you simply need to add 2 registry keys to the Windows registry, and Java won’t even ask you for the toolbars.

Read More »

Media file indexing broken in Synology DSM 5.0

Having just updated my Synology DS213j to DSM 5.0 I discovered that new media files were no longer being indexed.

This in turn meant my DLNA was worthless, since new content would never index and thus never show.

Apparently this issue only occurs when you have encrypted at least one shared folder (even though it’s not used for media files, and not configured to be indexed)

Synology has yet to come up with a proper fix for this, so until they do you can fix it like this:

Read More »

Finding unused indexes on MS SQL server

Do you ever find yourself not getting rid of old indexes, when they’re no longer needed ?

I guess we all do sometimes, but luckily SQL server keeps track of the usage of indexes, which allows you to find those unused indexes easily.

Read More »

SOLID principles – Part 4: Interface Segregation Principle

This is the fourth of a five part series, where I go over the 5 principles which make up the SOLID principles by Robert C. Martin.

The fourth one is I: Interface Segregation Principle (ISP)

This principle states that interfaces should only contain the absolutely required properties/methods needed.
If an interface contains properties/methods the client code does not need, it should be split into more smaller interfaces.

Read More »

SOLID principles – Part 3: Liskov’s Substitution Principle

This is the third of a five part series, where I go over the 5 principles which make up the SOLID principles by Robert C. Martin.

The third one is L: Liskov’s Substitution Principle (LSP)

This principle states that if S is a subtype of T, then objects of type T may be replaced with objects of type S without altering the desirable properties of the program (includes correctness, task performed, etc.)

Read More »