Secure your REST-based WCF service with WIF, part 2

Stefan Severin

This is the second post in a series of blog posts on how to secure REST-based services built on WCF and ASP.NET. One possible use case would be that we are hosting an OAUTH resource server where a third-party client has been issued a token by an authorization server with the approval of the resource [...]

Tags: , ,

Finding with Git

Anders Janmyr

Git is an amazing version control system that never loses anything, but sometimes it can be hard to find out where things are. Most of the time it is going to be git log that is our friend, but not all the time. Where is my file? Sometimes you know that you have a file [...]

Tags:

A quick note about exit codes from powershell

Jakob Nilsson-Ehle

This may be an extreme edge case, but since I spent a few hours on something rather trivial, I though I should share it. When running Invoke-Command from powershell invoked via command line – be wary of the curly braces. What is the difference between the following two commands? powershell.exe -Command “& {invoke-command {throw ‘error’}}” [...]

Tags: ,

WebClient/WebRequest threading untangled

Andreas Hammar

WebRequest and its baby sister WebClient behave differently regarding what thread they return on. This is a short post to really clarify what returns where. Summary WebClient will always return on the UI thread if called from the UI thread WebRequest will always return on a background thread The investigation To test this I created [...]

Tags: , ,

How to use user metadata in post types via Advanced Custom Fields in WordPress

Henrik Bernström

To get the most out of this article a basic knowledge of PHP, WordPress, custom post types and Advanced Custom Fields is required. If you’ve ever needed custom data input for your WordPress posts or pages (or any other kind of custom post type) then Advanced Custom Fields (ACF) is the shit! It’s flexible, extensible [...]

Tags: , , , , , ,

Capistrano and Net:SSH with login shell

Johan Lundahl

New to Capistrano? Read my previous and more introductory blog post on Capistrano – Remote builds with Capistrano. Are you using Capistrano and are confused why the user environment, the PATH for example, is different from when you log on to your server via SSH? Perhaps you have failed to use RVM or other user [...]

Tags: , , , , ,

Remote builds with Capistrano

Johan Lundahl

Capistrano is a very nice open source tool for executing commands on one or multiple remote servers via SSH. Capistrano is written in Ruby and uses a rake-like DSL for its tasks. Its main use is to deploy web applications, Rails in particular, but it may be used for much more. Want to try? It’s [...]

Tags: , , ,

Crafting the Øredev Windows Phone app live tile

Andreas Hammar Håkan Reis

In November last year, it was once again time for the 2011 Øredev developer conference. For the 2010 conference, we at Jayway created a schedule app with a social twist – a puzzle game that you played by talking to other participants. When updating the app this year, we decided to make use of the [...]

Tags: , ,

Elaborating on DET – ETDD evolving?

Sigurdur Birgisson

I got some positive response about DET that I wrote on my blog and in my CAST session proposal, so I thought I would elaborate a little on where I think this could be going. I will probably cover more hands on aspects in the coming weeks, but I really want to explain a vision I have around [...]

Tags: , , , ,

Working with the Search charm in Windows 8

Peter von Lochow

I actually attended BUILD. I sat there, bombarded with so much information about Windows 8 and Metro style applications that I just went into my happy place, franticly taking notes on all that I should investigate later on. That very long and almost unreadable list contained, amongst many others, the keywords – contracts and charms. [...]

Tags: ,

Secure your REST-based WCF service with WIF, part 1

Stefan Severin

  In this particular scenario we have a REST API built on WCF and ASP.NET which exposes resources owned by some imaginary users, and we want to make their resources accessible to third-party applications (clients) in a secure way. That is, we want to allow our users to grant authorization to clients requesting access to [...]

Tags: , , ,

Graphite with .Net and Ubuntu 11.10

Henrik Feldt

This is a quick write-up on how to get started with graphite as a .Net developer. We’re going to start using graphite with a virtual machine in VirtualBox, although you could use something else also. Steps: Download/install VirtualBox Download/install Ubuntu Download/install Graphite Expose VM to network Use Graphite from C# Download/install VirtualBox Start by downloading [...]

Tags: , , , , ,

Developers exploratory testing – Expanding its value

Sigurdur Birgisson

There is a common practice in our company to perform Developers Exploratory Testing sessions, explained by my colleague Davor here. The cool thing is that this way of performing higher level testing has actually become accepted by our developers, and they really enjoy it. In my current work of developing our organization wide practices for quality, I have [...]

Tags: , , , , , ,

Android: The Mysterious NullPointerException

The Problem One day it was just there. A mischievous NullPointerException causing, eh, mischief. It was fairly easy to provoke with my application but for some reason my code was not part of the stacktrace. 12-07 14:42:52.722 E/AndroidRuntime(18421): FATAL EXCEPTION: main 12-07 14:42:52.722 E/AndroidRuntime(18421): java.lang.NullPointerException 12-07 14:42:52.722 E/AndroidRuntime(18421): at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1064) 12-07 14:42:52.722 E/AndroidRuntime(18421): at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1081) [...]

Tags: , ,

Changing an index in MongoDB

Jan Kronquist

We are using the @Indexed annotation in Morphia and when we changed to @Indexed(unique=true) we were first surprised when nothing happened. Our first thought was that this might be a problem in Morphia. However, on second thought automatically changing an existing index is probably not a good idea! Although I couldn’t find anything in the [...]

Tags: ,