Author: dinbror
MSSQL: Show database information about size, free space, last database backups
The below SQL will give you:database_id name state_desc recovery_model_desc total_size data_size data_used_sizelog_sizelog_used_sizefull_last_datefull_sizelog_last_datelog_size

[SOLVED] Angularjs components – How to pass-in arguments in callbacks
It’s pretty straightforward but not very clear in the documentation, so how do you pass-in arguments in a callback in an Angular component? In your Angular component you have to bind your callback with ‘&’ and return an object with the passed-in name as key: Angular-component.html <my-component callback=”$ctrl.callback(keyName)”></my-component> Angular-template.html <button ng-click=”$ctrl.save({‘foo’:’bar’})”>Pass object to callback</button> Angular-component-and-controller.js […]

IIS URL rewrite – force non-WWW and SSL and other redirects
Almost every client I work for I have to force some redirecting on the IIS for either security or SEO reasons, and I always forget how to do it. So to help myself I’ll post it here so I can focus on more fun stuff. Remember that you need to install the URL rewrite extension on […]

Help CSS position sticky doesn’t work [SOLVED]
Position sticky isn’t a new thing, but the support is now so great that I started to use it, so what’s position sticky? Sticky positioning is a hybrid of relative and fixed positioning. The element is treated as relative positioned until it crosses a specified threshold, at which point it is treated as fixed positioned. […]

Prebrowsing: Boost performance of your site with resource hints
A couple of days months ago Vitali Fridman showed some of the performance improvements they have made on smashingmagazine.com. One enhancement was adding a prerender resource hint (also called a browser hint). The prerender resource hint or resource hints in general are not something new. They have been around for several years but I have never used or been […]

How to download an inline SVG as jpg or png
For a customer i had to build a small drawing app where one of the features was download your drawing. The drawing was an inline SVG and it had to be downloaded as a jpg or png image. Pretty straight forward, right? Here is what I ended up doing: Covert inline SVG to data URI Draw image on canvas Convert […]

How to preload an entire html5 video before play, SOLVED
For a customer I had to implement an experience where depending on the user’s choice parts of a video should play. It should play instantly hence the video had to be fully downloaded before the user was allowed to interact with it. So how do you force a video to preload an entire video? Solution #1, preload attribute (no good) The obvious […]

Sitecore Admin Pages – EXPLAINED
Did you know that Sitecore comes with a bunch of admin pages? And not just a couple? They’re quite hidden and undocumented but still very useful and can help with debugging and clarification of your solution. The admin pages varies from Sitecore version to version why my overview will be based on what’s available in the latest Sitecore version, […]