[Mono-list] segusoLand

2003-12-20 Thread Maurizio Colucci
Hello,

I understand I may not be appropriate, but I am writing this free program and 
wanted to know the opinion of ximian developers. It is a completely new 
interaction paradigm and, with a bit of courage and foresight, might be a 
nice addition to the ximian desktop.

Screenshots and sources at:

http://segusoland.sourceforge.net

take care,

Maurizio

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


[Mono-list] C++/CLI

2003-11-23 Thread Maurizio Colucci
Any plans about C++/CLI?

Here is what seems a specification (watch line breaks):

http://download.microsoft.com/download/9/9/c/99c65bcd-ac66-482e-8dc1-0e14cd1670cd/C++%20CLI%20Candidate%20Base%20Draft.pdf


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


Re: [Mono-list] C++/CLI

2003-11-23 Thread Maurizio Colucci
On Sunday 23 November 2003 11:52 am, Jaroslaw Kowalski wrote:
 My suggestion: don't go with this idea - let it die. Use C# instead - it
 can be a bit slower sometimes, but is definitely more scalable in terms of
 maintenance and programmer productivity.

Yes, but I really miss const correctness. Does anyone know if C++/CLI will 
have it? will you have to cast away the const when calling the .NET library?

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


[Mono-list] About WinFx

2003-10-27 Thread Maurizio Colucci
Someone on the slashdot forum said that WinFx is going to make mono useless.
How much is true about that?

http://slashdot.org/comments.pl?sid=83739threshold=1commentsort=0tid=109tid=185tid=187tid=190mode=threadpid=7321209#7321376

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


Re: [Mono-list] Surveys: Mono 1.0 and Mono Conference.

2003-10-09 Thread Maurizio Colucci
Alle 04:24, giovedì 9 ottobre 2003, Miguel de Icaza ha scritto:
 * What should Mono 1.0 be?

In my lurker opinion, 

1) 
it would be an error to release mono 1.0 without full documentation for 
anything it offers, whatever it is. 

2) 
As for what it should offer... 
If Windows Forms will not work by 1.0, IMO you'll get a really bad reputation 
among windows developers. As long as you are before 1.0 you are shielded from 
that.

It would be a good compromise to say window forms works IF you don't hook 
into the WndProc.

(Of course I don't care about windows forms, I would much more prefer to see a 
working SharpWt.)

3)
If you could get generics to work before microsoft does, this would be a 
killer feature. 

cheers,

Maurizio

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


Re: [Mono-list] mono

2003-09-29 Thread Maurizio Colucci
Alle 08:23 PM, lunedì 29 settembre 2003, [EMAIL PROTECTED] ha 
scritto:
 The .NET Framework from Microsoft is about 25 MB, comparable to the size of
 the Mono .NET Framework. That's all you need to program and both are free.

free in the sense of price, not freedom :-)
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] mono

2003-09-27 Thread Maurizio Colucci
 So I thought to contact you to ask : That's all? Microsoft uses gigabytes
 to install the complete Visual Studio .NET. Can you tell me, please ?

I think you should compare mono to the .NET framework SDK, not to vstudio.

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


Re: [Mono-list] Linux, OpenGl and Mono

2003-09-12 Thread Maurizio Colucci
On Friday 12 September 2003 20:33, Nemanja Hirsl wrote:
 I am planning Mono OpenGl aplication in Linux enviroment. Is it posible to
 do something like this or not? Csgl wrapper is developed for Windows use
 only, and I didn't find any (other) suported by other platforms (Linux and
 Windows).  I suppose I need another wrapper to use OpenGl calls from Gtk#?
 Now, I don't know what to do, to begin this work, or, simply to use C++,
 gtk+, and OpenGl.
 Thanks,
 Nemanja


You can use Tao opengl. It works perfectly well for me. I am doing a game too.

bye


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


[Mono-list] bug found! :-)

2003-08-26 Thread Maurizio Colucci
uint u = 3;
int i = 4;
int o = i/u;  error

Mono gives the error: cannot convert from int to long.
But there is no long here, just an uint (32 bits).


mono 0.26 redhat rpms.

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


Re: [Mono-list] bug found! :-)

2003-08-26 Thread Maurizio Colucci
On Tuesday 26 August 2003 05:36, Rohit wrote:
 thats not a bug!
 cause

 4/3 = 1.333 != integer.

Then why does this remove the error?

int o = i/(int)u

?

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


Re: [Mono-list] bug found! :-)

2003-08-26 Thread Maurizio Colucci
Sorry for the fuzz guys. Now get back to your work :-)

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


Re: [Mono-list] mono 0.25 for debian

2003-07-14 Thread Maurizio Colucci
Paul wrote:
Hi,

Where can I find packages for mono 0.25 for debian. 0.25 
isnt mentioned on http://www.debianplanet.com/mono/.
I've got the same problem. :-(

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


Re: [Mono-list] Why doesn't the Mono distribution contain al.exe?

2003-07-05 Thread Maurizio Colucci
Giuseppe Greco wrote:

Hi all,

I've checked out and compiled mono/mcs from CVS
and everything works fine...
I've just a question: where can I find the al.exe
program? Actually it is not included neither in
mono nor in mcs. I need it to link a .resource file
into a satellite assembly.
Thanks,

Gius_.

Last time I asked, someone replied sorry but mono does not yet support 
separate compilation.

mcs is all you have, I guess. no al.exe. :-(

ciao

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


[Mono-list] Bug in ASP.NET? Please take a look.

2003-06-26 Thread Maurizio Colucci


Hello, 

this seems like a bug in asp.net postback mechanism.

I'm using mono 0.24 from debianplanet packages, and xsp from cvs.

To reproduce the bug:

1. in xsp, start the following aspx page.

2. Select an exam, e.g. calculus.

3. Click view subscriptions. The list of subscription correctly appears. 

4. Now click view subscriptions again, _without_ changing the
selection (i.e. leave calculus selected). An error message appears,
complaining that there was no exam selected. But it was!


Am I doing somehting wrong, or is it a mono bug?





%@ language=C# %

script runat=server 

void Page_Load(Object Source, EventArgs E) { 
if (!IsPostBack){
#region fill the listbox exams
exams.Items.Clear();
exams.Items.Add(new ListItem( math));
exams.Items.Add(new ListItem( calculus));
exams.Items.Add(new ListItem( english));  
message_subscriptions.Visible=false;
subscriptions.Visible=false;
#endregion
}
else{
if (exams.SelectedIndex =0){   

message_subscriptions.Visible=true;
subscriptions.Visible=true;
message.Text=;
message_subscriptions.Text = Subscriptions to \ + 
exams.SelectedItem.Text + \ are:;
subscriptions.Items.Clear();
subscriptions.Items.Add(new ListItem( John));
subscriptions.Items.Add(new ListItem( Jack));
}
else{
message.Text = h2Error: no item selected. SelectedIndex =  
+ 
exams.SelectedIndex +  /h2;
}
}
}
/script

html

body
asp:label id=message runat=server ForeColor=red/
h1Mono test page/h1
Select an exam, then click view subscriptions.
form runat=server
pasp:listbox id=exams runat=server  /

p input type=submit value=View subscriptions
pasp:label id=message_subscriptions runat=server /
pasp:listbox id=subscriptions runat=server  /

/form

/body

/html



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


Re: [Mono-list] Bug in ASP.NET? Please take a look.

2003-06-26 Thread Maurizio Colucci
On Thursday 26 June 2003 12:30, Maurizio Colucci wrote:

 this seems like a bug in asp.net postback mechanism.

Being clueless, I filed a bug in the mono class libraries.

bye!



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


[Mono-list] Cannot build mono cvs (README.building is wrong! :-( )

2003-06-26 Thread Maurizio Colucci
Hi,

I've been trying for days to build mono. Now it's time I speak :-)

I am following the README.building in mcs/, as Gonzalo suggested many
times.

apt-get remove mono-assemblies

cvs -z5 update mono
cvs -z5 update mcs

  (now i have got the mono and mcs directories, side by side).

cd mono/doc

./mono-build.sh

This doesn't work. I get many error messages:

cp: cannot stat `../../mcs/class/lib/ByteFX.Data.dll': No such file or 
directory
cp: cannot stat `/home/mau/share/src/mono/doc/install/lib/ByteFX.Data.dll': No 
such file or directory
make[2]: [ByteFX.Data.dll] Error 1 (ignored)
cp: cannot stat `../../mcs/class/lib/Mono.Posix.dll': No such file or 
directory
cp: cannot stat `/home/mau/share/src/mono/doc/install/lib/Mono.Posix.dll': No 
such file or directory
make[2]: [Mono.Posix.dll] Error 1 (ignored)
cp: cannot stat `../../mcs/class/lib/NUnit.Util.dll': No such file or 
directory
cp: cannot stat `/home/mau/share/src/mono/doc/install/lib/NUnit.Util.dll': No 
such file or directory
make[2]: [NUnit.Util.dll] Error 1 (ignored)
cp: cannot stat `../../mcs/class/lib/NUnit.Framework.dll': No such file or 
directory
cp: cannot stat 
`/home/mau/share/src/mono/doc/install/lib/NUnit.Framework.dll': No such file 
or directory
make[2]: [NUnit.Framework.dll] Error 1 (ignored)
cp: cannot stat `../../mcs/class/lib/System.Design.dll': No such file or 
directory
cp: cannot stat `/home/mau/share/src/mono/doc/install/lib/System.Design.dll': 
No such file or directory
make[2]: [System.Design.dll] Error 1 (ignored)
cp: cannot stat `../../mcs/mcs/mcs.exe': No such file or directory
cp: cannot stat `/home/mau/share/src/mono/doc/install/bin/mcs.exe': No such 
file or directory
make[2]: [mcs.exe] Error 1 (ignored)
cp: cannot stat `../../mcs/mbas/mbas.exe': No such file or directory
cp: cannot stat `/home/mau/share/src/mono/doc/install/bin/mbas.exe': No such 
file or directory
make[2]: [mcs.exe] Error 1 (ignored)
cp: cannot stat `../../mcs/tools/security/secutil.exe': No such file or 
directory
cp: cannot stat `/home/mau/share/src/mono/doc/install/bin/secutil.exe': No 
such file or directory
make[2]: [mcs.exe] Error 1 (ignored)
cp: cannot stat `../../mcs/tools/SqlSharp/sqlsharp.exe': No such file or 
directory
cp: cannot stat `/home/mau/share/src/mono/doc/install/bin/sqlsharp.exe': No 
such file or directory
make[2]: [mcs.exe] Error 1 (ignored)
cp: cannot stat `../../mcs/monoresgen/monoresgen.exe': No such file or 
directory
cp: cannot stat `/home/mau/share/src/mono/doc/install/bin/monoresgen.exe': No 
such file or directory
make[2]: [mcs.exe] Error 1 (ignored)
cp: cannot stat `../../mcs/ilasm/ilasm.exe': No such file or directory
cp: cannot stat `/home/mau/share/src/mono/doc/install/bin/ilasm.exe': No such 
file or directory
make[2]: [mcs.exe] Error 1 (ignored)
cp: cannot stat `../../mcs/tools/cilc/cilc.exe': No such file or directory
cp: cannot stat `/home/mau/share/src/mono/doc/install/bin/cilc.exe': No such 
file or directory
make[2]: [mcs.exe] Error 1 (ignored)
cp: cannot stat `../../mcs/mcs/mcs.exe': No such file or directory
cp: cannot stat `/home/mau/share/src/mono/doc/install/bin/mcs.exe': No such 
file or directory
make[2]: [mbas.exe] Error 1 (ignored)
cp: cannot stat `../../mcs/mbas/mbas.exe': No such file or directory
cp: cannot stat `/home/mau/share/src/mono/doc/install/bin/mbas.exe': No such 
file or directory
make[2]: [mbas.exe] Error 1 (ignored)
cp: cannot stat `../../mcs/tools/security/secutil.exe': No such file or 
directory
cp: cannot stat `/home/mau/share/src/mono/doc/install/bin/secutil.exe': No 
such file or directory
make[2]: [mbas.exe] Error 1 (ignored)
cp: cannot stat `../../mcs/tools/SqlSharp/sqlsharp.exe': No such file or 
directory
cp: cannot stat `/home/mau/share/src/mono/doc/install/bin/sqlsharp.exe': No 
such file or directory
make[2]: [mbas.exe] Error 1 (ignored)
cp: cannot stat `../../mcs/monoresgen/monoresgen.exe': No such file or 
directory
cp: cannot stat `/home/mau/share/src/mono/doc/install/bin/monoresgen.exe': No 
such file or directory
make[2]: [mbas.exe] Error 1 (ignored)
cp: cannot stat `../../mcs/ilasm/ilasm.exe': No such file or directory
cp: cannot stat `/home/mau/share/src/mono/doc/install/bin/ilasm.exe': No such 
file or directory
make[2]: [mbas.exe] Error 1 (ignored)
cp: cannot stat `../../mcs/tools/cilc/cilc.exe': No such file or directory
cp: cannot stat `/home/mau/share/src/mono/doc/install/bin/cilc.exe': No such 
file or directory
make[2]: [mbas.exe] Error 1 (ignored)
cp: cannot stat `../../mcs/mcs/mcs.exe': No such file or directory
cp: cannot stat `/home/mau/share/src/mono/doc/install/bin/mcs.exe': No such 
file or directory
make[2]: [monoresgen.exe] Error 1 (ignored)
cp: cannot stat `../../mcs/mbas/mbas.exe': No such file or directory
cp: cannot stat `/home/mau/share/src/mono/doc/install/bin/mbas.exe': No such 
file or directory
make[2]: [monoresgen.exe] Error 1 (ignored)
cp: cannot stat `../../mcs/tools/security/secutil.exe': No such file or 
directory
cp: cannot stat 

Re: [Mono-list] Cannot build mono cvs (README.building is wrong! :-( )

2003-06-26 Thread Maurizio Colucci
On Thursday 26 June 2003 21:36, Marco Canini wrote:
 Did you bootstrap your mono install with the mono-charge package?
 Before you can compile mcs you need a working mono+mcs install.

Thanks Marco.

Obviously no, I didn't :-) , because

1. README.building explicitly says to do that _after_ launching the
   shell script mono-build.sh:

1. Get mono and mcs from CVS (http://www.go-mono.com/download.html)

2. Use the script to build mono (mono/doc/mono-build.sh).

3. Copy the dlls and mcs.exe from the latest monocharge tarball
(http://www.gnome-db.org/~gonzalo/mono/) to
/where/you/installed/mono/lib and  /bin respectively.


2. the above link doesn't work (I tried yesterday and today). And I
   can't seem to find monocharge elsewhere.

What can I do?

Thanks again!

Maurizio



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


Re: [Mono-list] ASP.NET + database: why reflection?

2003-06-24 Thread Maurizio Colucci
On Tuesday 24 June 2003 18:30, Gonzalo Paniagua Javier wrote:
  Hi,
 
  why do
 
xsp/test/dbpage1.aspx
xsp/test/dbpage2.aspx
 
  use reflection to load the assembly dynamically?

 It's there to allow changing the database using the configuration files.
 If you know in advance that you're gonna use mysql or postgres or
 whatever it is much simpler than that. I bet your teacher wants you to
 find out how.


Pleease :-

I _did_ try to do without reflection... 

%@ language=C# %
%@ import namespace=System.Data %
%@ import namespace=ByteFX.Data.MySQLClient %

but I get the error:

  The namespace `ByteFX.Data.MySQLClient' can not be found (missing
  assembly reference?)

Now, I _can_ see the problem! If it WERE a normal app I would just do

   mcs -r ByteFX.Data.dll

but since it is a web page, what can I do? In my wrox beginning
ASP.NET I could not find how to add an assembly reference...

Please help, I am desperate :-)
sigh

Maurizio



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


Re: [Mono-list] Running .ASPX files with Apache

2003-06-24 Thread Maurizio Colucci
On Tuesday 24 June 2003 10:56, karthikeyan.balasubramanian wrote:
 Hi,

   This is my first post to this list.
  
   Just wondering how to configure Apache such that I can serve .ASPX files.
  
   Any ideas, suggestions, howto's.

   Have a great day.

 Karthikeyan B


I believe you have to install mod_mono, which is a module for apache
2.

export CVSROOT=:pserver:[EMAIL PROTECTED]:/mono

cvs -z3 co mod_mono


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


Re: [Mono-list] ByteFx.Data.MySQLClient.MySQLConnection - connection refused - mysql 4.0.13-2

2003-06-24 Thread Maurizio Colucci

Many, many thanks to Marco, which told me by mail:

quote

it's not too vague: it just states that you can't connect to mysql :-)

your problem is that mysqld doesn't listen on the tcp/ip port but uses
only unix domain socket. this is the debian default policy for mysql,
you have to allow tcp/ip conncetion for mysql in order to use myslqnet
provide because since it uses only tcp/ip sockets.
go to /etc/mysql/my.cnf and comment out the line skip-networking, this
should solve your problem

/quote


Damn, I would never have found it out by myself. 

I believe someone should update the page

   http://www.go-mono.com/mysql

with this information. It would have spared my one whole day of
trials. 

grazie di cuore. :-)

Maurizio


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


[Mono-list] Suggestion: warning member variable not initialized

2003-06-07 Thread Maurizio Colucci
Hi,

Currently the Microsoft C# compiler gives an error if you forget to
initialize a readonly member variable (this can be done either in the
contructor or in the declaration itself.)

I already posted a wish for mcs about that, but:

What about extending this behavior to non-readonly member-variables?
(Maybe a warning instead of an error?)

RATIONALE:

I cannot think of a case where not initializing a member variable (in
the constructor or at declaration time) makes sense. So we would catch
a frequent semantic error without any drawback...

Someone could reply that there ARE indeed some cases when you don't
know an appropriate value for a member variable when the constructor
is called. Maybe the user must initialize it explicitely, after
construction.

e.g.

class C{
  private int member_var;

  public C(){
// I don't yet know how to initialize member_var. Only the
// user can do that, via the Init method.
  }

  public void Init(int m){
member_var=m;
  }

}

But, on the other hand, the above is bad design:

If member_var is not always meaningful across the lifetime of class C,
then member_var should NOT have been declared as a member of C, in the
first place. In other words, C is a state machine with two states:
Initialized and NotInitialized, such that member_var only makes sense
in the Initialized state, and not in the other one.

Good design:

class C{

  private abstract class State{}
  private class Initialized: State{
public int member_var; // this variable only makes sense
// when C is in the Initialized state!
// therefore it is declared here,
// not inside C.
public Initialized(int m){
 member_var = m;
}
  }

  private class NotInitialized: State{}

  private int state = new NotInitialized();

  public void Init(int m){
state = new Initialized(m);
  }

}


In this latter example, member_var DOES NOT EXIST when it does make
sense. This avoid the risk that someone reads/writes it when it makes
no sense!

In the former case, there is a time when member_var exists but does
not make sense (and is not initialized). Error prone.

So by raising an error in the former case we would enforce good
design.

Any comments?






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


Re: [Mono-list] Suggestion: warning member variable not initialized

2003-06-07 Thread Maurizio Colucci
On Saturday 07 June 2003 16:03, Thong (Tum) Nguyen wrote:
 Members are implicitly initialized to 0 or null so they do have a
 meaning even if you don't explicitly initialize them...

 ^Tum
I see. :-P

So the semantics of readonly members is members which are not
implicitly initialized, and must be explicitly initialized in the
constructor... right?

So the C# semantics is itself error-prone, because implicit
initialization is error-prone.

Of course we cannot change the semantics! :-) On the other hand, my
suggestion as a warning might still be useful, maybe...

bye,

Maurizio



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