# Wednesday, March 19, 2003

Call

Call for public support on Iraq. Downing Street urges the country to rally behind UK troops as Tony Blair wins MPs' backing for war despite a major revolt. [BBC News | Front Page | UK Edition]

After the votes, the prime minister's official spokesman said: "It is now time for all of us in Parliament and in the country to come together and show the support our Armed Forces deserve."

Why?

Labour chairman John Reid told BBC News Online: "It is now clear that Parliament has voted clearly to support the government in its efforts to disarm Saddam Hussein. Now that the democratic decision has been taken, it is time for the country and Parliament to unite."

Eh? So what Parliament on a three line whip decides we all have to quietly put up with? Anyone remember the poll-tax? And lets not get into that no 'democratic decision' was taken in the UN because they knew they'd lose.

#    Comments [0] |

Sun To Pus

Sun to push developer package, Java spec. Delayed software aimed at Web services developers [InfoWorld: Top News]

Called the Sun ONE Web Services Platform Developer Edition, the package includes Sun's application server, portal server, identity server and integration server, as well as its Sun ONE Studio integrated development environment, its portlet builder and other tools. This week marks general availability of the package. In addition, for six months starting on April 1 Sun will offer promotional pricing of $999, Nolan said. After that time it will carry a list price of $5,000. Bought separately, developer licenses for the products would cost $36,000, according to Nolan.

Well theres a bunch of prices.

#    Comments [0] |

Although He Hasnt Yet Used It Richard Tallnet Has Posted

Although he hasn't yet used it, Richard Tallnet has posted an article, "Six Reasons why InfoPath is DOA". They are all very valid reasons. I have a post to make later on the subject, but Richard is dead on with his take, this is not a tool for developers (but that does not mean its not a good tool in general).[ScottW's ASP.NET WebLog]

Worth a gander - interesting to note that Forms design has still not caught up with PinPoint (you design the form, the schema gets designed for you).

#    Comments [0] |
# Saturday, March 15, 2003

NET Security Articles At MSDN MSDN Is A Vast Resource And As Such F

.NET Security Articles at MSDN.

MSDN is a vast resource, and as such finding specific information on Security is sometimes an exercise in patience. In short, I can't ever find these darn articles when I am looking for them, so here are direct links to them:

.NET Security

[Mobile Musings by Anil John]

[ScottW's ASP.NET WebLog]
#    Comments [0] |

A Hrefhttpmsdnmicrosoftcomvisualctechinfoarticlesloaderlockdefaul

There is a defect in VS.NET 2002 and the forthcoming VS.NET 2003 VC++ compiler that can cause an application freeze.  The defect occurs while loading a DLL that combines managed and unmanaged code. If you're working with Visual C++ and .NET, you definitely want to educate yourself on this defect. [Thinking In .NET]

Seeing as I was considering this as a route, I'd better educate myself then. Interesting articles from MS backing this, in particular this technical paper. Its the style of it I find interesting - an apparent openness and honesty. It may all be smoke and mirrors, but is their some subtle change going on at MS?

#    Comments [0] |
# Thursday, March 13, 2003

HttpHandlers And The IIS Metabase

HttpHandlers and the IIS Metabase.

Our team has recently consolidated a bunch of intranet sites housed on various team members' machines into subwebs on a larger server.  I had been hosting one of the sites from my office, and needed a way to redirect all hyperlinks to that particular subweb to a new subweb without affecting the rest of the sites on the machine.  ASP.NET provides a rather simple way of doing this:

using System.Web;

namespace Forward {
  public class Forwarder : IHttpHandler
    {

    public Forwarder(){}

    public void ProcessRequest(HttpContext context)
      {

      string subWeb = "http://mymachine/subweb";
      string oldWeb = "http://newmachine/newsubweb";

      HttpRequest request = context.Request;
      HttpResponse response = context.Response;
     
      string newUrl = request.Url.AbsoluteUri.Replace(subWeb,newWeb);
      response.Redirect(newUrl);
      }

    public bool IsReusable
      {
      get { return false; }
      }
    }
  }

compiled as forward.dll and placed in the subweb's bin/ directory, with the following added to the Web.config:

<httpHandlers>
         <add verb="*" path="*" type="Forward.Forwarder, Forward" />
</httpHandlers>

Funny enough, this only worked for paths like http://mymachine/subweb/foo.aspx, since paths like http://mymachine/subweb/foo.htm were routed directly to the filesystem by IIS and bypassed ASP.NET.  I remembered having this problem before, when .NET was still in development, and the trick was to associate the "*" file extension with ASP.NET in the script map.  Too bad IIS no longer stores the script map in the registry where it's easy to mess with.

A bit of searching and I found:

http://support.microsoft.com/default.aspx?scid=KB;en-us;q232068#3

I just had to use MetaEdit to find LM/W3SVC/1/ROOT/ScriptMaps and add:

*,C:\WINDOWS\Microsoft.NET\Framework\v1.2.x86dbg\aspnet_isapi.dll,1

and everything is working great now. [Better Living Through Software]

#    Comments [0] |

More HttpHandlers Richard Birkby P

More HttpHandlers.

Richard Birkby pointed me to his URL rewriting code, similar to Apache's mod_rewrite.  It's a clever piece of code, and also works with the metabase hack I described (to get * mapped rather than .* or .).  The comments in the article led me to an ISAPI rewriter, and a rather creative hack that involves overriding the behavior of the 404 redirect page.

My little handler is working fine, but I could have saved myself a bunch of time by checking CodeProject.com first.

[Better Living Through Software]
#    Comments [0] |

Another Alternative To XForms Is Xopusnbsp Last Time I Looked This Was Interesting But Bugg

Another alternative to XForms is Xopus - last time I looked this was interesting but buggy, but that was a while ago. As I said to someone a couple of days ago, the problem these days is not defining what the problem is, or what the desired outcomes are, its deciding what tools to apply to acheive the outcomes. It was all sooo much easier when it was a choice between Apple II + Apple Basic or CPM + MBasic.

#    Comments [0] |

Simple MarkupA

Simple markup. I'm currently looking into textile for inspiration.[Sam Ruby]

Interesting little thing, there are times when dialogs etc are very cumbersome and a little bit of markup is much easier to use.

#    Comments [0] |