Derek Stegelman

Technical Writing

DotNet Core with Shibboleth

One of the more difficult and painful changes while migrating our enterprise applciations to DotNet Core has been supporting Shibboleth authentication and consequently, implementing our group based …

Foreign Key Dropdowns with .NET MVC 5

One of the more difficult form controls in web development is adding drop downs for foreign key relationships. .NET MVC gives you several different options for generating form markup from different …

Global Template Objects with .NET MVC 5

In modern web applications it is often convienient to have certain content or database object available to all views throughout an application. Good examples of this are avatars, usernames, and user …

Custom Authorize Attribute in .Net MVC

I’ve recently been doing most of my coding within the .Net space. As such I’ve found myself trying to repeat several of the patterns available within the Django Framework. One of those …

RocketChat API Wrapper

Today I open sourced a library for dealing with the RocketChat API. If you’ve never heard of it RocketChat is an open source chat platform similar in feature set to that of Slack and HipChat. It …

Multiple Forms in Django Views

In one of our projects, we maintain a fairly large central view to display a dashboard of user information. Recently, we’ve begun adding the ability for users to edit parts of that information …

Mocking Responses in Python Requests

Lately, we’ve been trying to improve our testing structure around testing our API calls without actually having to make them. To do this we of course use the excellent mocking library for …

Keeping it DRY with Mock and Python

This week while writing a new feature in the core of one our apps, I had to mock something that would be used in almost every single test in the test suite. I’m a huge fan of keeping things DRY …

Wrapping Your API Calls for Fun and Profit

The last few months I’ve been working on fixing up our applications at K-State and how they interact with other custom built and off the shelf software. One of our common practices on the web …

Django MPTT Custom Managers

The latest version of django-mptt automatically sets your default model manager objects to the built in TreeManager() model manager in django-mptt. But what if you already have a default custom model …