[Mono-docs-list] DocStatus tool

2003-06-11 Thread John Luke
Hello,

I have created a small tool to generate the status of our documentation
(mostly for Gtk#, but it works for ECMA also).  It currently consists of
DocStatus.cs which generates an xml file, and DocStatus.aspx that reads
the xml file.

To try it you will need a mono compiled since Duncan's IHasXmlNode patch
the other day. Here is a usage example:
mono DocStatus.exe gtk-sharp/doc/en Gtk#

where gtk-sharp/doc/en is the starting directory and Gtk# is the Name
used for the xml filename. Then put DocStatus.aspx and Gtk#DocStatus.xml
into your xsp directory.

Here are some of the current limitations:
- the documented / not documented decision is not great
- perhaps one large xml file for all the docs would be better instead of
how it's done now
- the aspx page is not very pretty

Any suggestions or comments would be appreciated.  Especially by Miguel
and Ben on fitting it in to the new website.

Thanks,
John Luke
// author: John Luke  [EMAIL PROTECTED]

using System;
using System.IO;
using System.Xml;
using System.Xml.XPath;

namespace DocStatus
{
	public class DocStatus
	{
		decimal membersAll;
		decimal membersDone;
		decimal classDone;
		decimal TotalDone;
		decimal TotalAll;
		decimal GrandTotalDone;
		decimal GrandTotalAll;
		XmlTextWriter writer;
		
		static void Main (string[] args)
		{
			string StartDir;
			string Name;
			
			if (args.Length == 2)
			{
StartDir = args[0];
Name = args[1];
			}
			else
			{
Console.WriteLine (Usage: mono DocStatus.exe StartDirectory Name);
return;
			}
			
			new DocStatus (StartDir, Name);
		}
		
		DocStatus (string StartDir, string Name)
		{
			string outfile = Name + DocStatus.xml;
			writer = new XmlTextWriter (outfile, System.Text.Encoding.UTF8);
			writer.Formatting = Formatting.Indented;
			writer.WriteStartDocument ();
			writer.WriteStartElement(null,DocStatus, null);
			writer.WriteStartAttribute (null, name, null);
writer.WriteRaw (Name);
			writer.WriteEndAttribute ();
			
			DirectoryInfo di = new DirectoryInfo (StartDir);
			DirectoryInfo[] directories = di.GetDirectories ();
			
			foreach (DirectoryInfo directory in directories)
			{
string d = directory.Name;
string dirpath = Path.Combine (StartDir, d);

if (d != CVS)
{
	writer.WriteStartElement(null, Namespace, null);
	writer.WriteStartAttribute (null, name, null);
		writer.WriteRaw (d);
	writer.WriteEndAttribute ();
	WriteNamespaceStats (dirpath);
	writer.WriteEndElement ();
}
			}
			
			int GrandPercent = (int) ((GrandTotalDone / GrandTotalAll) * 100);
			
			writer.WriteStartElement(null, Total, null);
writer.WriteStartAttribute (null, All, null);
	writer.WriteRaw (GrandTotalAll.ToString());
writer.WriteEndAttribute ();
writer.WriteStartAttribute (null, Done, null);
	writer.WriteRaw (GrandTotalDone.ToString());
writer.WriteEndAttribute ();
writer.WriteStartAttribute (null, Percent, null);
	writer.WriteRaw (GrandPercent.ToString());
writer.WriteEndAttribute ();
			writer.WriteEndElement ();
			
			writer.WriteEndElement ();
			writer.WriteEndDocument ();
			writer.Flush ();
			writer.Close ();
		}
		
		void WriteNamespaceStats (string directory)
		{
			TotalDone = 0;
			TotalAll = 0;
			
			DirectoryInfo di = new DirectoryInfo (directory);
			FileInfo[] files = di.GetFiles ();
			
			foreach (FileInfo file in files)
			{
string f = file.Name;
string filepath = Path.Combine (directory, f);
if (Path.GetExtension (filepath) == .xml)
{
	WriteClassStats (filepath);
}
			}
			
			try
			{
int percent = (int) ((TotalDone / TotalAll) * 100);
			
			writer.WriteStartElement (null, Total, null);
writer.WriteStartAttribute (null, All, null);
	writer.WriteRaw (TotalAll.ToString());
writer.WriteEndAttribute ();
writer.WriteStartAttribute (null, Done, null);
	writer.WriteRaw (TotalDone.ToString());
writer.WriteEndAttribute ();
writer.WriteStartAttribute (null, Percent, null);
	writer.WriteRaw (percent.ToString());
writer.WriteEndAttribute ();
			writer.WriteEndElement ();
			
			GrandTotalDone += TotalDone;
			GrandTotalAll += TotalAll;
			}
			catch (Exception e)
			{
Console.WriteLine (e.Message, TotalDone, TotalAll);
			}
		}
		
		void WriteClassStats (string file)
		{
			membersAll = 0;
			membersDone = 0;
			classDone = 0;
			XPathDocument doc;
			XPathNavigator xpn;
			
			doc = new XPathDocument(file);
			xpn = doc.CreateNavigator();
	
			XPathNodeIterator xniSummary = xpn.Select (/Type/Docs/summary);
XPathNodeIterator xniRemarks = xpn.Select (/Type/Docs/remarks);
xniSummary.MoveNext ();
xniRemarks.MoveNext ();
			
			if (xniSummary.Current.Value != To be added 
xniSummary.Current.Value != To be added)
			{
classDone = 1;
			}
			
			XPathNodeIterator xniCount = xpn.Select(/Type/Members/Member);
			membersAll = xniCount.Count;
			
			XPathNodeIterator NameNode = 

[Mono-list] General

2003-06-11 Thread Willem . Smit
Hey guys.
I'm really impressed with your work. You might just be the reason why I
start using linux as a desktop at home and not windows ;). I've got a bit
of an off topic question for you, but I think you'll be able to help
because you probably experience the same thing everyday. When compiling a
big project with mcs, is it possible to give the compiling process a lower
priority ? Mcs sure is a processor hog ! *g*

Anyhoo, keep up the great work guys. I'd love to help, but i'm stuck behind
a firewall at work so i can't get to cvs. As soon as i get my home
connection (when i move into my new house in a month) I'll jump in and help
you guys out.
Cheerz for now!
Willem Smit
SL IT
9471637
0724872442

***
Any views expressed in this message are those of the individual sender, and
Sanlam accepts no liability therefore, except where the sender specifically
states them to be those of Sanlam.
Enige sienswyses of stellings wat in hierdie boodskap uitgedruk word is dié
van die individuele afsender, en Sanlam aanvaar geen aanspreeklikheid
daarvoor nie, behalwe waar die afsender uitdruklik vermeld dat dit dié van
Sanlam is.


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] mono patch

2003-06-11 Thread Dick Porter
On Wed, 2003-06-11 at 02:01, Pablo Baena wrote:
 Hi guys!
 I had a problem that when ~/.wapi didn't exist, it didn't get created,
 and the problem is solved with this patch.

Whoops.

Patch applied to CVS, thanks.

- Dick


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Building problem

2003-06-11 Thread Pablo Baena
Guys. Have you noticed that the mini directory takes two 'make' to get
itself built? Or is it just me?

First 'make' run:

--
make[3]: Leaving directory
`/home/tetsuo/soft/MONO/new/mono/mono/interpreter'
Making all in mini
make[3]: Entering directory `/home/tetsuo/soft/MONO/new/mono/mono/mini'
../../mono/monoburg/monoburg -c 1 -p -e ./inssel.brg ./inssel-long32.brg
./inssel-float.brg ./inssel-x86.brg -d inssel.h -s inssel.c

[[[building noise

./genmdesc ./cpu-pentium.md cpu-pentium.h pentium_desc
./genmdesc ./cpu-g4.md cpu-g4.h ppcg4
cd ../.. \
   CONFIG_FILES=mono/mini/Makefile CONFIG_HEADERS= /bin/sh
./config.status
config.status: creating mono/mini/Makefile
config.status: executing default-1 commands
make[3]: Leaving directory `/home/tetsuo/soft/MONO/new/mono/mono/mini'
make[3]: Entering directory `/home/tetsuo/soft/MONO/new/mono/mono/mini'

[building noise]

creating mono
make[3]: Leaving directory `/home/tetsuo/soft/MONO/new/mono/mono/mini'
--

And then the second time I do 'make', the mini directory is processed
again:

--
make[3]: Leaving directory
`/home/tetsuo/soft/MONO/new/mono/mono/interpreter'
Making all in mini
make[3]: Entering directory `/home/tetsuo/soft/MONO/new/mono/mono/mini'
/bin/sh ../../libtool --mode=link gcc  -g -Wall -Wunused
-Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes 
-Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual
-Wcast-align -Wwrite-strings  -o genmdesc  genmdesc.o helpers.o
../../mono/metadata/libmonoruntime.la 
../../mono/metadata/libmetadata.la 
../../mono/io-layer/libwapi.la 
../../mono/utils/libmonoutils.la -lgc -ldl -lm  
-lglib-2.0  -Wl,--export-dynamic -lgmodule-2.0 -ldl
-lglib-2.0   -lnsl -lpthread -lrt
gcc -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs
-Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -o genmdesc
genmdesc.o helpers.o -Wl,--export-dynamic 
../../mono/metadata/.libs/libmonoruntime.al
../../mono/metadata/.libs/libmetadata.al
../../mono/io-layer/.libs/libwapi.al
../../mono/utils/.libs/libmonoutils.al -lgc -lm
/usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -lnsl -lpthread
-lrt
./genmdesc ./cpu-pentium.md cpu-pentium.h pentium_desc
./genmdesc ./cpu-g4.md cpu-g4.h ppcg4
cd ../.. \
   CONFIG_FILES=mono/mini/Makefile CONFIG_HEADERS= /bin/sh
./config.status
config.status: creating mono/mini/Makefile
config.status: executing default-1 commands
make[3]: Leaving directory `/home/tetsuo/soft/MONO/new/mono/mono/mini'
make[3]: Entering directory `/home/tetsuo/soft/MONO/new/mono/mono/mini'

[[more building]]]

creating mono
make[3]: Leaving directory `/home/tetsuo/soft/MONO/new/mono/mono/mini'

---

I have the following program versions:

gcc version 3.3 (Debian)
automake (GNU automake) 1.4-p6
autoconf (GNU Autoconf) 2.57
GNU Make 3.80

-- 
Pablo Baena [EMAIL PROTECTED]

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Mono via redcarpet?

2003-06-11 Thread Paul F. Johnson
Hi,

Mono used to be available via redcarpet. Anyone know if it's going to
return?

TTFN

Paul
-- 
Paul F. Johnson (BSc Hons)
IT Support Officer
School of Music, Media and Performance
University of Salford
M3 6EN
Tel : +44 161 295 2687
FAX : +44 161 295 6302

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] gnome-db/~gonzalo problem

2003-06-11 Thread Miguel de Icaza
Hello guys,

There are no problems putting the mono-charges up in
primates.ximian.com, or I can give accounts to people on
mono.ximian.com, which is our testbed for ASP.NET (where the new web
site will be hosted one day ;-)

Mguel
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Problem with Mono Wiki

2003-06-11 Thread A Rafael D Teixeira
Who is responsible for Mono Wiki's infraestructure?

The wiki pages are generating bad XHTML and so are unreadable with Internet 
Explorer.
Mozilla is more lenient with it and shows the page but it shouldn't.

Phpwiki is generating such XHTML code:

div class=errorplib/Request.php:136: Warning[2]: ob_start(): output 
handler 'ob_gzhandler' cannot be used after 'URL-Rewriter'/p
/div
?xml version=1.0 encoding=iso-8859-1?
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml;
...

As the div is appearing before the DOCTYPE this is bad xml and IE refuses 
it.

This warning previously was appearing at the end of the page, and so it 
wasn't breaking the page.

If it is some configuration issue, it may be easy to get rid of that 
warning, what is the best solution.

Anyway, phpwiki should never issue tags before the xhtml prolog. Later I'll 
post a bug report to the project.

Happy hackings,

Rafael Teixeira
Brazilian Polymath
Mono, MonoQLE Hacker
_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] Gsirc?

2003-06-11 Thread Scott Blomfield
Per Mono Weekly News, It changed name to Acacia. I'm not sure where you can find the 
website at now.
MWN Article: http://monoevo.sourceforge.net/mwn/archives/20030316.html

HTH

-Original Message-
From: 99832774 [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 10, 2003 4:08 PM
To: Martin Willemoes Hansen
Cc: François-Denis Gonthier; Mono-List
Subject: Re: [Mono-list] Gsirc?

Selon Martin Willemoes Hansen [EMAIL PROTECTED]:

 On Tue, 2003-06-10 at 02:10, François-Denis Gonthier wrote:
  Sorry if I missed something but I think there was an IRC client called
 gsirc
  that worked on Mono? I searched for it on Google and the home page is
 gone.
 
 I think it is linked from the monkeyguide .. www.go-mono.com/tutorial

Thank you, I've found the link in the MonkeyGuide but what is linked is 
precisely the page that doesn't work :P

http://www.atoker.com/gsirc/ is 404
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] General

2003-06-11 Thread Willem . Smit
Thanx guys that's exactly what i was after... I'm still very much a novice
when it comes to all the different OS commands. Very much a MS boy ;).

Willem Smit
SL IT
9471637
0724872442


Hi. Sorry if this is obvious, but if you're running on linux, have you
tried using the nice command?

   $ nice mcs ...


***
Any views expressed in this message are those of the individual sender, and
Sanlam accepts no liability therefore, except where the sender specifically
states them to be those of Sanlam.
Enige sienswyses of stellings wat in hierdie boodskap uitgedruk word is dié
van die individuele afsender, en Sanlam aanvaar geen aanspreeklikheid
daarvoor nie, behalwe waar die afsender uitdruklik vermeld dat dit dié van
Sanlam is.


___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Mono and SourceGear's vault.

2003-06-11 Thread Miguel de Icaza
Hello,

I am very happy to announce that Ximian and SourceGear have engaged
in a partnership to improve Mono.  You can read the official press
release here:

http://www.ximian.com/about_us/press_center/press_releases/index.html?pr=sourcegear

The Vault software from SourceGear is a fascinating project on its
own.  The Vault is a state-of-the-art source code control system
developed by Source Gear, and today targets the Windows development
space.  

The Vault is an interesting success story of .NET, if you are
interedsted in the anthropology of software, I recomend reading Eric
Sink's weblog (Eric is the founder of SourceGear, known in the open
source world for launching the AbiWord project a few years ago).  His
weblog is here: http://biztech.ericsink.com/

Basically they went from concept to product in record time using
.NET, and now with this agreement we will help them in record time to
make their software available on any platform supported by Mono.The
software is built entirely with web service interfaces.

The work we are doing falls in three categories:

* Implementing the web services functionality in Mono.  This was 
pretty much non-existant before (thanks to Tim Coleman who did
  the early work on it). 

* Implement any missing pieces, and fix any bugs in the Mono
  runtime that might stop the vault client software from
  running properly.

* Make the runtime rock-solid.

  The regression tests that Mono will be subject to, last for up
  to 24 hours running on a single instance of the virtual
  machine, so this will stress quite a bit of the runtime
  engine and opens the way for Mono's viability as a solid
  platform for commercial applications. 

All of the code developed will be licensed under the proper terms:
X11 for the class libraries;  and LGPL for the runtime.  

Those who track the Mono patches list, might have noticed this
direction various weeks ago, when work on a new XmlSerializer was
implemented (the foundation for web services), the soap classes, work on
making the io-layer crash-proof and more scalable and getting a
completely new design and implementation for the Http client code.  

Also, we told the Mono contributors in advance, and you might have
noticed that many Mono developers have been helping fixing bugs,
improving the test suites and auditing the code for robustness
purposes.  We are also very busy with these new tasks, so we appreciate
the help of everyone on the #mono channel that has been helping newbies
while we have been busy with this.  Thanks to everyone that has been
helping so far!

You have no idea how exciting this is.  I could not wait to tell the
Mono community about this.

This is going to help not only SourceGear ship their product with
little or no modifications to Linux and Mac developers, but it will help
everyone who is looking at Mono as a professional grade cross-platform
solution.

It is nice to be able to run web services code off-the-shelf with
Mono now.  Like using the Google API straight out of the box.  And
thanks to Erik Lebel and Atsushi Eno a WSDL compiler is also in the
way.  Although not required by SourceGear, it is a great addition to the
Mono SDK.

This is the tip of the iceberg:  For those not tracking cvs on a
daily basis, you should know that work on System.Windows.Forms has
picked up a lot of steam thanks to OpenLink's contribution to the
WineLib effort.  This effort lead by Alexandre and Aleksey now also
features a pluggable backend architecture for the System.Drawing
namespace, and we have a nice Xr driver (the all-singing, all-dancing
new rendering API: http://xr.xwin.org/).

Miguel.
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Microsoft Patents Jesus

2003-06-11 Thread Eamon O'Tuathail
Hi,

I am writing a book on software patents, called 2084 : thE patenT postbaG.

To illustrate the issues in a practical manner, I am focusing on a single
patent application, Microsoft's .NET API patent application. Hence this work
may be of particular interest to some on this mailing list. 

The first two sections are called Cheyenne Mountain and Microsoft Patents
Jesus. You will find them at:
http://www.clipcode.com/books/id/001/index.htm . There will be more there
tomorrow, and from time to time over the next few weeks.

These are in draft format - any corrections or suggestions you may have
would be most welcome. 

Eamon O'Tuathail
http://www.clipcode.com/

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] gnome-db/~gonzalo problem

2003-06-11 Thread Miguel de Icaza
Hello,

 I have a version of the tinderbox script that creates a sliding archive
 of the last N successful builds with a symlink to the latest. It should
 be simple to have a machine run this at ximian and have an FTP/HTTP
 server set up to browse the archive.

I can grant ssh access to the new mono.ximian.com box that we can use
for anything we want.

Miguel
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] ASP.NET load testing

2003-06-11 Thread Dalton Caldwell
Hi,

I have been played around with Mono a bit, but I
would like to learn more about the performance of ASPX
sites.
There are a lot of commercial load testing suites,
but I would prefer using an open source alternative.
Does anyone have suggestions? Did I miss something
obvious in my cursory google search?

Thanks for the great work,
Dalton
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Compile errors with mono

2003-06-11 Thread Chapáev Bracho Toralba
Hi

Sorry for my bad english

These code compiled with csc (microsoft) but didn't with mcs. There are
two files, first compiled good but the others didn't. I think mcs must
compile it without problem

// Externa.cs
public class Externa
{
   int dato = 5;
   protected class Protegida
  {
public void metodo ()
{
  Externa e = new Externa ();
  System.Console.WriteLine (Método);
  System.Console.WriteLine (Dato = {0}, e.dato);
}
  }
}

mcs /t:library Externa.cs No problem

//Subclase.cs
class Subclase: Externa
{
  public static void Main ()
  {
Protegida p = new Protegida ();
p.metodo ();
  }
}

mcs /r:Externa.dll Subclase.cs
Subclase.cs(10) error CS0122: `Externa+Protegida' is inaccessible
because of its protection level
Compilation failed: 1 error(s), 0 warnings

I have:
Windows NT and mono-0.24-win32-1.exe

Thank's a lot
Chapáev Bracho



___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list