A new feature in Terminal Services on Windows Server 2008 is server draining. Before you take a terminal server offline, you can have the server stop accepting new connections and wait for existing users to end their sessions. Users can also re-connect to disconnected sessions so they do not lose data.
That's yet another reason for organization to upgrade to Windows Server 2008.
Details on how to do this are available on this MSDN blog page.
Thursday, August 28, 2008
Wednesday, August 27, 2008
Thinkpad X200 Tablet Spotted

There has been no word from Lenovo about a tablet version of the Thinkpad X200, but there have been rumors and speculations. Finally, there's been a picture posted of the Lenovo Thinkpad X200t indicating that we could hear from Lenovo sometime soon announcing specs, pricing and, possibly, an availability date.
Tuesday, August 26, 2008
GridView 'Edit' Request With IsPostBack False
This seemed to be a weird one... I was getting two requests from my Page with GridView, one with IsPostBack false and another with IsPostBack true whenever I clicked the Edit image. As I was setting the master page in the PreInit event based on UrlReferrer and IsPostBack (the UrlReferrer is the same as the current page for postback requests - both normal and the weird ones that GridView is causing), this was wreaking havoc on the page.
A possible workaround for the GridView edit-images bug is to use TemplateFields with ImageButtons, or use text instead of images by removing the ButtonType="Image" attribute setting. I got a tip suggesting the use of ScriptManager.GetCurrent(Page).IsInAsyncPostBack instead of IsPostBack.
A possible workaround for the GridView edit-images bug is to use TemplateFields with ImageButtons, or use text instead of images by removing the ButtonType="Image" attribute setting. I got a tip suggesting the use of ScriptManager.GetCurrent(Page).IsInAsyncPostBack instead of IsPostBack.
Sunday, August 24, 2008
Calling Javascript from an UpdatePanel
You've probably used ClientScript.RegisterStartupScript in your ASP.NET application and it works just fine. However, if you try it within an UpdatePanel control, you would notice that it simply doesn't execute.
The solution to this problem is to use ScriptManager.RegisterStartupScript instead. You can call it like so:
The solution to this problem is to use ScriptManager.RegisterStartupScript instead. You can call it like so:
ScriptManager.RegisterStartupScript(updatePanel1, updatePanel1.GetType(), "key", "alert('My script');", true);
Digger

If you like playing classic old games or you're simply stuck with a computer that doesn't do Age Of Empires III or World of WarCraft, Digger is the game for you. It is Pacman-like game centered about a digger while can get through dirt by building tunnels and can shoot bullets. The baddies are Nobbins which can go through tunnels and Hobbins which can dig tunnels too. You can finish a level either by eating up emeralds or by killing all the Hobbins and Nobbins. I've put myself on the top of hi-score charts a couple of times, but my sister beat my all-time best score recently. Oh well, at least I rate high on consistency.
Thursday, August 21, 2008
The Force Unleashed demo releases today

Lucas Arts will release a demo of Star Wars: The Force Unleashed on the PlayStation Network and XBox Live Marketplace later today (21st August 2008). The demo features a tutorial and one playable level which involves finding & killing Rahm Kota, a Jedi General who takes over the TIE fighter construction facility.
The final retail version is expected to hit stores on 16th September 2008.
Monday, August 18, 2008
Blogger.com has a new interface
Better performance with declaring strings as constants?
I came across a pretty neat post by Chris Skardon about declaring strings as constants for performance. There is a margin performance increase caused by this, but it offers more of a readability benefit for other developers who would have to maintain your code.
If you're writing your code, then it might be worth putting it in for sections that would be frequently executed but if you're trying to get more performance out of hundreds of lines of old code, you're better off trying out some other optimization technique to cut down execution time.
If you're writing your code, then it might be worth putting it in for sections that would be frequently executed but if you're trying to get more performance out of hundreds of lines of old code, you're better off trying out some other optimization technique to cut down execution time.
Subscribe to:
Posts (Atom)
