<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.6" -->
<rss version="0.92">
<channel>
	<title>Kris' Blog</title>
	<link>http://krisselden.com</link>
	<description>Focused on software development.</description>
	<lastBuildDate>Thu, 27 Mar 2008 03:06:56 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>GameServiceContainer.&#8203;GetService&#60;T&#62;() please&#8230;</title>
		<description>One of the most annoying parts of the XNA framework is that the GameServiceContainer lacks generics. After working with Castle container, the XNA container seems ugly.


If .Net had mixins I would just add it myself but until then please vote for my feature request and here is a workaround.

If you ...</description>
		<link>http://krisselden.com/2007/05/29/gameservicecontainergetservice-please/</link>
			</item>
	<item>
		<title>The operation completed successfully.</title>
		<description>The stacktrace says it all.

System.Runtime.InteropServices.COMException (0x80070000): The operation completed successfully. (Exception from HRESULT: 0x80070000)
   at MS.Internal.HRESULT.Check(Int32 hr)
   at System.Windows.Media.SafeProfileHandle.ReleaseHandle()
   at System.Runtime.InteropServices.SafeHandle.InternalFinalize()
   at System.Runtime.InteropServices.SafeHandle.Dispose(Boolean disposing)
   at System.Runtime.InteropServices.SafeHandle.Finalize()

We made this go away by calling GC.WaitForPendingFinalizers() but this can cause deadlocks in WPF ...</description>
		<link>http://krisselden.com/2007/05/10/the-operation-completed-successfully/</link>
			</item>
	<item>
		<title>Square inscribed on a wedge (Updated)</title>
		<description>My first xbap (works in IE only with .Net 3.0).

public static Rect GetSquareInscribedOnWedge(double a, double r, Point center)
{
    double t = Math.Tan(a/2);
    double x = Math.Sqrt(r*r/(1/(t*t) + 4/t + 5));
    return new Rect(center.X - x, center.Y - x/t - 2*x, 2*x, ...</description>
		<link>http://krisselden.com/2007/03/01/square-inscribed-on-a-wedge/</link>
			</item>
	<item>
		<title>Rails deployment</title>
		<description>I've been meaning to learn capistrano, but I have a tendency to avoid server configuration, setup and deployment related tasks. Until now, I've been running my rails app with svn checkout and script/server -d on production.

To my surprise, there was no headache and it was actually pretty straightforward. At least ...</description>
		<link>http://krisselden.com/2007/02/25/rails-deployment/</link>
			</item>
	<item>
		<title>Validating fullwidth alphanumeric input in .Net</title>
		<description>One of the things that attracted me to playing Final Fantasy XI (a MMORPG) was the opportunity to play on the same server with Japanese players. I’ve been a fan of anime since I was a kid and always curious about Japanese culture.

I noticed that when a Japanese player says ...</description>
		<link>http://krisselden.com/2007/02/19/validating-fullwidth-alphanumeric-input-in-net/</link>
			</item>
</channel>
</rss>
