User stories and use cases

TL;DR; Use cases are higher level and describes to the user what a feature/story does and the user story describes how the system solves this need. My team is currently fleshing out some new features for the next version of our software and this morning I started...

Make A Game

Today we´re going to have a little seminar again. This time for 1st and 2nd years of the IT Gymnasie in Örebro. The resources we´re going to use is the simplistic yet fantastic program Game Maker from Yo Yo Games, download it  here: Game Maker Lite (f0r Windows) Game...

VMWare problems with keyboard and mouse capture

We're using a nice vSphere ESXi 5.1 host for a lot of our VMs at work and today I found myself unable to get proper mouse and keyboard capture in the VMs. It just acted really strange, sometimes I could get mouse capture when I was outside the VM and as soon as I...

Visual Studio 2010 SP 1 Brittle?

When I had installed the SP 1 of Visual Studio 2010 the caching of my built libraries got screwed up. I had to manually right click and choose rebuild on every single library instead of just using Ctrl+Shift+B. Really strange. Even after de-installing SP 1 the problem...

Subclass type usage

I loves reflection. I loves reflection all day long 🙂 Just now I found another nice usage of the not-even-real-reflection Object.GetType() method. Say we got a framework that works with plugins implementing an abstract class: [crayon-5b27983ce0a1d495445740/] Sure we...

Lazy day

Today we're not having a post on the soothing music of Enya but the Lazy class in .Net 4.0. This is probably old news to most out there but I just found it recently (having learned that lazy loading is usually something to avoid, temporal dependencies and all that)....

VSTO ShapeRange Error

I doubt any one will ever experience this but perhaps my solution might help someone who happens to fall into the same pit of COM-debugging hell as I have. I´ve got some tests where I use Word Automation to start an application and modify some documents. The documents...

EnumerableExtension

Now I use the enumerable extensions in C# a lot. First(), Single(), Select() is everywhere. However, I've found that there's a few I'm missing and that sometimes they just don't exactly suit my purposes. So, sometimes I create an additional extension method or two,...

List the users connected to a MS Sql server

Thought I´d inform about a nice little procedure I found today. I failed to remove a database since there was still users connected. Obviously I was the one keeping a connection but that doesn't mean I know where I´m keeping that open connection 🙂 Just run this...

Rounding or grouping datetime in SQL

When retrieving data for statistical usage in SQL it´s oftenly useful to group the data to some kind of time interval. Easiest and most used is probably simple grouping by date: [crayon-5b27983ce3e64888846871/] However, some times you will want to go even deeper in...

Articles

Total 100 articles published this far.

Bulk change photo timestamps on mac

I'm currently out travelling and found that I had different time zone settings on my three cameras (phone, GoPro and digital). Easy to fix for next time but all the photos taken this far? Fortunately, *nix comes with command line tools such as touch and in GNU you can...

interface segregation but what about our objects?

The I in SOLID stands for 'Interface Segregation'. This is a fancy way of saying "splitting apart dependencies". Basically, an object should not have to depend on more than it absolutely has too. If it does, it may have to be modified when the dependency changes, even...

Communication in text

These past weeks we have focused on planning at my client. We're figuring out the next steps in the product and this requires a lot of communication. As engineers I find that at times we focus completely at our trade. Often though, good or bad, we spend a huge amount...

User stories and use cases

TL;DR; Use cases are higher level and describes to the user what a feature/story does and the user story describes how the system solves this need. My team is currently fleshing out some new features for the next version of our software and this morning I started...

EnumerableExtension

Now I use the enumerable extensions in C# a lot. First(), Single(), Select() is everywhere. However, I've found that there's a few I'm missing and that sometimes they just don't exactly suit my purposes. So, sometimes I create an additional extension method or two,...

Trying out NDepend

What is this? I got the chance to try out NDepend, although with everything else, it took me quite some time until I finally got around to picking it up. Now NDepend is a tool, both command line, stand alone and as an addin to Visual Studio which allows you to do...

Tomato is a fruit!

So what's the most pointless thing you've done this week? I've made a game to settle the score once and for all. And maybe, in the end, it's not so pointless after all, though, if you do feel I could've spent my time doing something more worthwhile I'll admit to that...

WPF editable ComboBox binding

Today (and most of my night) I've been stuck with trying to bind to an editable WPF combo box. It sounds stupid and it is, really. The scenario is this: You have an editable combo box to which you bind a list of view models. I specify a data template in order to get...

Hosting services easily on windows

Building applications, even servers, as console applications is great. Easy to run, easy to debug. Easy to host in a safe, error recoverable fashion.. wait what? Yes that's right. Not out of the box of course, and not using any of the multitude of service installers...

MvvmLight and CanExecute

Today is going to be a very short post, more of a pingback really. We are using MvvmLight as it is the defacto mvvm library of WPF but when I upgraded the libraries from the .Net 4.0 versions to .Net 4.6.1 the other day most of our application broke down. The...

Loggly gotchas

I've setup Loggly today, really nice service but I found a few gotchas you need to keep in mind to get it working. I'm doing this on a docker instance, I'm sure there are other and better ways of doing this (suggestions are very welcome), since I wanted it to be a...

Configuring Serilog from json

The past weeks I've been working with creating a service API in Asp.Net 5 and .Net Core, exciting stuff. We're running this in a docker container configured from the base Asp Net containers so it's all easy to deploy. Well almost. you have to have logging right? And...

Jenkins with Visual Studio Online

On my current project we're using Jenkins as a CI platform and Visual Studio Online with TFS for source control. I've been wanting to setup the builds on our intranet again to run the integration tests relying on intranet access each check-in. I had an issue with...

Decoding html text to plain text in C#

I’ve found myself having to convert HTML to plain text a few times in a row now and thought I would post my very simple solution for it. It’s got a few caveats, for example it won’t handle pre tags or margins on divs and such thing. Not even paragraphs. But I just wanted a simple conversion so it was enough for me, feel free to extend it.

Lazy day

Today we're not having a post on the soothing music of Enya but the Lazy class in .Net 4.0. This is probably old news to most out there but I just found it recently (having learned that lazy loading is usually something to avoid, temporal dependencies and all that)....

Git credentials on windows

I was sure I had already made a post on this subject for my own reference but as it seems I haven't here it goes. I'm not a great fan of passwords as I've got about three million or some such at this point so if there's a way of not having to enter them every time I'm...

Ruby and DRb

I've been getting into Ruby last week whilst playing with Selenium at work. We're trying to get around quite a big and well known limitation of Selenium, that you cannot reuse a driver already created within another process. Since we're executing our in steps, each...

Mark all mail as read in gmail

It's easy enough to end up with too much unread email and gmail manages to hide some of its features quite well so here is a guide of how to mark all of your email as read. Step 1. Filter on unread mail In the search field, enter in:unread and press enter, this will...

Live Mine Field – Welcome in!

I've started coding Android again and in all honestly it fields like jumping head first into a mine field. Everything is littered with hidden problems that you have to carefully navigate around. This time I'll try to cherry pick some of the problems I've had whilst...

How do I (#,%-+ that integer/date/float?

I've taken up some Android programming again and this time in Android Studio, it really does improve the situation in comparison to Eclipse though it's still far behind Visual Studio + Resharper but since it's based on IntelliJDEA it does have a lot of the Resharper...

Environment variables and too much scripting

I got it into my head earlier this evening that maybe I couldn't reach my files that should be registered in the PATH variable because it had been truncated, after all when I ran [crayon-5b27983d1671c237472146/] I did get a truncated text. However that is probably...

DataTemplate based on type in WPF

WPF oftenly provides you with an option to set an ItemTemplate or an ItemTemplateSelector when styling say lists or even content controls (ContentTemplate). This is useful although most would probably just define an implicit style by not giving it a key:...

Keeping it clean

I got around to some cleaning today removing all our project warnings, yes you know which I mean, those nasty yellow things in the bottom of your Visual Studio screen every time you build. The ones we shrug at and say "well, they're just warnings" 🙂 I got most of...