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-5b92487ede2f1352207077/] I did get a truncated text. However that is probably...

Choose columns to link with SharePoint 2007

I´ve recently poked about a bit with SharePoint 2007. Trying to avoid using the somewhat costly web services (which is also hard to debug and has kinda crappy interfaces) I´ve been using the possibility to link SharePoint lists to Access databases. However, I found it...

The Web We Want

Mozilla is currently doing an interesting drive for the future of the Internet. Internet and the amazing and monstrous opportunities it has raises enumerable philosophic questions. Mozilla asks you to pick one of six possible categories for what you think is most...

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...

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...

VSTO-project Office target version

When developing a VSTO-project you will probably sooner or later run in to a case where you need to debug the project in two different versions of Office. One solution is to trigger the start of Word using a debug-setting in the project file: Update 18/8 2014: To...

Alias for windows command line

When working with git and node js you end up using the command line quite a lot. As a Windows grown developer this is kind of a strange sensation really, you quickly start to appreciate why those Linux guys constantly advocated the bash and you also understand why...

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...

Select on on TextBox Focus

For once I´ll ramble less and provide more 🙂 A simple class to help you make the WPF TextBox able to select the text when it gets focus. I´ve gotten tired of subclassing all the time so this is a neat little class that you can just attach to any TextBox-control. The...

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...

Articles

Total 101 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-5b92487ede2f1352207077/] 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...