It appears that you have JavaScript disabled. Click here to find out what you're missing on this site.

The Site Formerly Known as Bit Working This site has moved to http://bitworking.org

by Joe Gregorio
::: Friday, April 19, 2002

Zealot

Why yes Jenny I could easily make the dynamic skin work with Radio's news aggregator, but I won't. Why? Once bitten, twice shy.

   Signed,

   A zealot

11:50:32 PM  #  

C# and Streaming

I was mistaken wednesday when I said that the lack of free functions in C# stopped me from implementing the streaming operators << and >>. I was able to get pretty close:

using System;
using System.IO;
 
class Wrapper {
    private TextWriter stream_;
 
    public Wrapper(TextWriter stream) {
        stream_ = stream;
    }
    
    public static Wrapper operator<<(Wrapper w, Object o) {
        Console.Write(o);
        return w;
    }
}
 
class _ {
    public static void Main() {
        Wrapper cout = new Wrapper(Console.Out);
        int a = 2;
        cout = cout << "The value of a = " << a << "\n";
    } 
}
Note the superfluous cout = cout at the beginning of the line. C# requires the assignment and that is the problem.

10:31:36 PM  #  

CSS to the rescue

Jenny is polling if she should produce two RSS feeds, one a headline only feed and the other with full content. I solved this problem a while ago with my skin for AmphetaDesk. Here are some screenshots of how it works, specifically with her news feed.

10:16:47 PM  #