k10n
Jim Klopfenstein's Radio Weblog

 

 

 

 

  Thursday, March 28, 2002

An xml-rpc endpoint in .NET


One of the things that drew me to Radio was the work that Dave Winer has done with RSS and aggregators.  I read about rssCloud, an interface for getting notifications of changes in RSS files over SOAP or xml-rpc.  It took me almost a day, but I finally got my first notification back from xmlStorageSystem.  Here's part one of how I did it (complete with C# source code).

Registering for rssCloud notifications

And here's part two, where I show a simple Windows console app written in C# for .NET that sends the xml-rpc message to sign up for RSS notifications.

3:28:31 PM    


F1 points in Excel

Last fall, I was experimenting with array formulas in Microsoft Excel, and I created this simple Formula 1 points calculator.  In the workbook, you enter race results in one worksheet, and you see a second worksheet with instantly tabulated and sorted driver points, and a third with instantly tabulated and sorted constructor points. (Of course I could have programmed this in a variety of other languages on other platforms, but the goal here was to investigate Excel).

What are array formulas?  Unlike normal worksheet formulas, which work on a cell-by-cell basis, array formulas apply to a rectangular region of cells.  Their main use is to enable functions that returns multiple values; for instance, a regression function might return a slope and an intercept, which would be returned in two adjacent cells.

In my investigations, I discovered that you can return an array from a Visual Basic for Applications function that can be applied to a region just as a built-in worksheet array function can.  In my F1 points calculator, I have written two such formulas, one to pick out the unique values from a list, and another to do a bubble sort over a column in a region.

To use this sheet in Excel 2002, you must set macro security to at most "medium" (in the Tools menu, pick Macros... and then Security).  Earlier versions of Excel have "medium" security on by default. If you are untrusting, you can open the spreadsheet with macros disabled, look at them in the VBA editor to reassure yourself that they are not malicious, and then reopen the sheet with macros enabled.

10:42:08 AM    


Click here to visit the Radio UserLand website. © Copyright 2003 Jim Klopfenstein.
Last update: 3/14/2003; 11:41:21 AM.

March 2002
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Feb   Apr




Subscribe to "k10n" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.