Quantcast
Channel: Dev Blog - Johan Danforth
Browsing all 43 articles
Browse latest View live

Center Aligning a Table with CSS

So you want to center align a table, try text-align: center and it doesn’t work…. I have to look this up every time, so here goes:<tablestyle="margin-left: auto; margin-right: auto;">This is...

View Article


Image may be NSFW.
Clik here to view.

Productivity Tools for Visual Studio 2013

I just installed the popular extension for VS2013 and it looks better than ever. I especially like the “Structure Visualiser” feature which gives you visual cues to code blocks:Read about it and...

View Article


Trust Certificates

Just as a reminder to myself – when developing (this code should be removed in production) you may work with dev certs and get errors like "Could not establish a trust relationship for the SSL/TLS...

View Article

Image may be NSFW.
Clik here to view.

Secure ASP.NET Web API with Windows Azure AD

Note that the APIs, tools and methods change quickly in this area, this blog post will get old and die eventually…Many organizations now look at the Azure environment to host their websites and web...

View Article

Subsequent calls to AcquireToken()

Using the Active Directory Authentication Library (ADAL) and getting that annoying flash from the authentication dialog on subsequent calls? Maybe you’re creating a new AuthenticationContext every...

View Article


Form Validation Formatting in ASP.NET MVC 5 and Bootstrap 3

When creating a new MVC project in ASP.NET MVC 5, Bootstrap is already included. For some reason proper formatting for form errors (the red colored error message and the red border around the controls)...

View Article

Move e-books from Adobe Digital Editions to Kindle with Calibre

Just so you know – if you bought books that are not available from Amazon (like Swedish books) and want to read them on your Kindle – there is a plugin for Calibre that will help you do that. Just...

View Article

Image may be NSFW.
Clik here to view.

Kindle Halo and Cortana Wallpapers

There are hundreds of wallpapers for your (jailbreaked) Kindle out there, and I created a couple of my own for the Halo books I’m reading now. Cheers!

View Article


Converting from Silverlight To Universal Apps – Xaml Stuff

Converting a Windows Phone Silverlight app to a Universal WinRT app isn’t straight forward, and it’s hard to Google for answers. I converted one of my not too advanced apps to universal Windows/Phone...

View Article


Converting from Silverlight To Universal Apps – Themes and Styles

Converting a Windows Phone Silverlight app to a Universal WinRT app isn’t straight forward, and it’s hard to Google for answers. I converted one of my not too advanced apps to universal Windows/Phone...

View Article

Image may be NSFW.
Clik here to view.

Converting from Silverlight To Universal Apps – MVVM, ListView and Commands

Converting a Windows Phone Silverlight app to a Universal WinRT app isn’t straight forward, and it’s hard to Google for answers. I converted one of my not too advanced apps to universal Windows/Phone...

View Article

Image may be NSFW.
Clik here to view.

AppBarButton Icons for Universal Apps

This is a good page showing the available AppBarButton icons for your Windows 8.1 and Windows Phone 8.1 universal apps.http://msdn.microsoft.com/en-us/library/windows/apps/xaml/jj841127.aspx

View Article

Image may be NSFW.
Clik here to view.

Lazy Loading TreeView Sample with ASP.NET MVC and jqTree

I’ve been looking for a lightweight TreeView library to use with ASP.NET MVC, and I think I’ve found my “weapon of choice” – jqTree.The code is available on https://github.com/mbraak/jqTree and the...

View Article


Image may be NSFW.
Clik here to view.

Using FontAwesome in WPF

Want to use FontAwesome (http://fontawesome.io/) in your WPF application? With a few simple steps you can do it.1) Use Nuget and Install-Package FontAwesome2) Mark the file...

View Article

Image may be NSFW.
Clik here to view.

Using FontAwesome in Universal Apps

Want to use FontAwesome in Universal Apps (both Windows Phone & Windows 8.1). The procedure is similar to how you do it for WPF:1) Install-Package FontAwesome2) Mark the file...

View Article


Image may be NSFW.
Clik here to view.

Formatting File Upload Input with Bootstrap

If you’re using file upload forms in your Bootstrap themed website and would like to format the button and the field nicely, take a peek at this article by Cory LaViska. He nails it. A small example...

View Article

Bootstrap Image Carousel Fade Transition

The built in image carousel animation for Bootstrap is a slide, which is nice, but I found this fade transition while Googling, and it seems to work well. I found it here on...

View Article


jQuery validate and the comma decimal separator

Oh this is such a simple and good solution that I must put it on my blog at least for my own future reference. Big THANKS to Lenard Gunda for writing this blog...

View Article

Effectively insert list of objects with Dapper

If you are using Dapper as your sql/object mapper for .Net, you often find yourself inserting lists of objects. There are several ways of doing it, but maybe you're not doing it the fastest way...

View Article

New features in Dapper.Contrib

I’ve given the official Dapper.Contrip package some love lately. So now all methods include support for lists! So instead of doing lots of insert calls in a loop, just call connection.Insert(myList);...

View Article
Browsing all 43 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>