CôaCôaCôa

Un peu de tout et n'importe quoi...
Jusqu'où s'arrêteront-ils ?

After its move from GotDotNet to SourceForge, RSS Bandit could be powered by Gecko.

Vos papiers SVP

Dumky has write a library which allows ASP.Net programmers to use TypeKey, the online authentication service from SixApart. The download for TypeKeySecurity includes sources, binaries, doculentation and a demo project.

Customers! Customers! Customers!

We sucked; the Web (the thing that your neighbor or mine browse to read news, buy stuff, contact the Administration...) as it is today is almost exactly equal, on the client's side, to what it was back in 1998 when CSS 2 was released. We did not suck a little bit, we sucked a lot. We sucked because our world of techies is too far away from the User, from the Web author, because we think our implementors' expectations are the market's expectations. In other terms, we sucked because we are unable to listen, and that's a very serious observation.

Glazblog - Future of HTML and the Web, part 1

Ca vaut le coup d'oeil

FCKeditor 2.0 Beta 1 is release. A first beta but with Gecko browser compatibility, a complete XHTML 1.0 support and it's still Open Source.

Danseuse

Some wondered what Microsoft or even Bill Gates should do with all their cash.  To buy an island?  Not, not this island :)  a true island.  And what an island!

Nettoyage

NTidy, is a "new" .Net wrapper on SourceForge for Dave Raggett's excellent HTML Tidy beautifier. It would be usefull to update the Tidy program page.

Merci!

How do you convert a string into an enum?

object Enum.Parse(System.Type enumType, string value, bool ignoreCase);
Désolé, il n'y a pas de page correspondant à votre demande

http://www.microsoft.com/france/msdn/connection/

{via MSDN Connection - Free Hosting Offer}

Plagiat

I ran across Russell-Beattie-Notebook's dreams on Java (boils down to "I don't know jack about Python, but the indentation thing is cool!") and I thought about C# doing the same exact thing. Change nothing else but make indentation count. Suddenly C# looks really clean!

Here's a C# code with indentation:

using System
using System.Web
using System.Collections
using System.ComponentModel
using System.Web.SessionState
using Dottext.Framework.Components
using Dottext.Framework
using Dottext.Framework.Util
using Dottext.Framework.Configuration

namespace Dottext.Web.Modules

  /// <summary>
  /// Summary description for BlogServiceModule.
  /// </summary>
  public class BlogServiceModule : IHttpModule

    public BlogServiceModule()
      // TODO: Add constructor logic here

    void IHttpModule.Init(HttpApplication context) 
      context.BeginRequest += new EventHandler(this.ReWriteServicePath)
          
    void ReWriteServicePath(object sender, EventArgs e)
      HttpContext context  = ((HttpApplication)sender).Context
      string path = context.Request.Path.ToLower()
      if(path.IndexOf("services") > 0 && path.IndexOf(".asmx") > 0)
        if(AlllowService(context))
          string fileName = System.IO.Path.GetFileName(context.Request.Path)
          context.RewritePath("~/Services/" + fileName)
        else
          context.Response.Clear()
          context.Response.End()

    private bool AlllowService(HttpContext context)
      return  ( 
            Config.Settings.AllowServiceAccess &&
            (context.Request.RequestType == "GET" || Config.CurrentBlog(context).AllowServiceAccess)
          )

    void IHttpModule.Dispose()

Damn, that looks pretty clean! Notice I didn't get rid of *all* semi-colons, just the ones at the end of statements and it's pretty cool. I actually grabbed a much bigger class file that I have and formatted it, then got rid of the {}'s and ;'s and it too was very clean.

Not that this would ever happen, but it'd be cool.

-Michel

Les temps changent

{via Monologue}

More Posts Next page »