Lisp interpreter for XNA

Jason / January 20, 2007

I just found a Lisp interpreter for use with XNA. It was created by Jon Watte in C#, and is compatible with both Windows and the Xbox 360.

For those who are unfamiliar with Lisp, it is a high-level functional language created by John McCarthy in 1958. Lisp is commonly used by artificial intelligence researchers, and could come in handy for adding in-game AI to your next XNA project. read more

.NET, Archive, ASP.NET, C#

Cookie Renaming in ASP.NET

Jason / January 20, 2007

In ASP.NET you can seamlessly rename cookies on the fly with the help the PreSendRequestHeaders and BeginRequest events of the HttpApplication class.

Both events call EventArgs delegates, with the sender object as a HttpApplication instance.


/// Called when a cookie is about to be sent to the browser. /// private void CookieOut(object sender, EventArgs e) { HttpApplication app = (HttpApplication)sender; HttpCookie cookie = app.Response.Cookies["ASP.NET_SessionId"]; if (cookie != null) { app.Response.Cookies.Remove("ASP.NET_SessionId"); cookie.Name = "fooBar"; app.Response.Cookies.Add(cookie); } } read more