Entries Tagged 'Architecture' ↓

WinRM w/ self-signed certificate in 4 steps

Henrik Feldt

Targeted environment: Windows Server 2008 or Windows Server 2008 R2 You’ll be self-signing with makecert from the Windows 7.1 SDK. The certificate tool is a single executable, specifically at %PROGRAMFILES%\Microsoft SDKs\Windows\v7.1\Bin\makecert.exe, per default. You’ll need it – copy it to the server unless you already have the SDK installed on it. Secondly, you’ve got a [...]

Tags:

Invoke any Method on any Thread

Fredrik Olsson

I previously wrote a blog post titled Performing any Selector on the Main Thread detailing a convenience category on NSInvoication for easily creating invocation objects that could be invoked on any thread. This category has served me well, and even got traction in the iOS developer community, so I never bothered to stop and think [...]

Tags: , , , , , , , ,

The state of iOS Open Source – and what to do about it!

Fredrik Olsson

There is a vibrant community of open source projects for iOS. You need a calendar UI components or a JSON parser? No problem, the projects are out there. Most code out there is of very high quality. Unfortunately the distribution of the code is generally very crude, barely half a step away from sharing code [...]

Tags: , , , , ,

Sync-Async Pair Pattern – Easy concurrency on iOS

Fredrik Olsson

Apple provides many tools for implementing concurrency in your application. NSOperationQueue, GCD, or simply using performSelectorInBackground:withObject: that is available on each and every object, are just some examples. The tools are there, yet implementing good concurrency is hard. The solution I have found is not yet another tool, or framework, but a simple pattern. I [...]

Tags: , , , , ,

A behavioral scene graph

Per-Erik Bergman

This will be an overview of that I think is the coolest scene graph philosophy ever. It will reduce the code and make your graphical framework more dynamic and easier to maintain. It is preferred that you know a bit about regular scene graphs to better grasp the idea since this is not a post [...]

Exceptions and Errors on iOS

Fredrik Olsson

Cocoa, and by inheritance Cocoa Touch on iOS makes a clear distinction between what is an exception, and what is an error in your application. This should be obvious since NSException and NSError both inherit from the NSObject root class with no relations at all. Programmer vs. User Exceptions are intended for signaling programming errors [...]

Tags: , , , ,

Why Ruby?

Anders Janmyr

Emancipate yourself from mental slavery, none but ourselves can free our minds. –Bob Marley, Redemption Song There are a number of reasons to love Ruby and I will share some of them here. Ruby is influenced by some of the greatest languages ever invented: Perl, probably the most pragmatic language in the world, hell, even [...]

Tags:

It’s time for IoC Container Configuration Detente

Magnus Mårtensson

Want an easy way to configure your Inversion of Control (IoC) container using an API? Don’t care one iota about which specific container you actually are using you just want to get the work done? Want to configure your IoC in a type safe manner? Read on and find out how! Scroll passed the background [...]

Tags: , , ,

Thoughts on creating a framework

Per-Erik Bergman

I have been developing frameworks for different applications mostly games for over 10 years. Over this time I have made some really bad decisions and wrong turns, fortunately I have learned and gained some knowledge that always made my next framework a bit better. Design patterns One of my first lessons was that I don’t [...]

Future Cocoa Operation

Fredrik Olsson

In Java you have for quite some time had the Future interface for encapsulating an asynchronous calculation. Cocoa has had the abstract NSOperation class to encapsulate asynchronous operations. NSOperation do not have any facilities for returning a result when done as the Future do, you are left to implement this on your own. Which I [...]

Tags: , , , , , , ,

Yet Another Akka Benchmark

Patrik Nordwall

Performance benchmark of Scala and Akka Actors.

Handling Lazy + Metadata instances in Managed Extensibility Framework (MEF)

Magnus Mårtensson

Have you ever wanted to dynamically choose from many potential implementations of some code? Would you like to have the power of metadata filtering and lazy instantiation of the selected implementation? Here is how to do just that using Managed Extensibility Framework (MEF) and also a neat trick to handle your implementation/metadata pairs that I [...]

Tags: , ,

Rewriting a Public Cocoa Touch API

Fredrik Olsson

Cocoa Touch added API for presenting a view controller in a popup bubble in iPhone OS 3.2, the responsible class is named UIPopoverController. One would guess that this new class is a subclass of UIViewController, just like UINavigationController is, but that is not the case. One would also guess that in functionality many ideas for [...]

Tags: , , , , , ,

Neo4j .NET Client over HTTP using REST and json

Magnus Mårtensson

Here it is; a Proof of Concept of the world’s first Neo4j .NET Client. In other words: Here follows a discussion on how to create a client library for communicating with a graph database over REST. UPDATE: There is now a live CodePlex project for the realization of this concept; A .NET Client Library for [...]

Tags: , , , ,

Would you like a Byte Order Mark to go with that?

Magnus Mårtensson

It is possible to encode a little bit of metadata at the beginning of your byte streams to let the stream itself carry information on how it has been encoded. This is known as a Byte Order Mark (BOM) and it is as far as we know completely optional. Some .NET Framework implementations add this [...]

Tags: ,