Re: [Mono-list] Cross-platform Mono IDE?

2003-01-22 Thread Fawad Halim
I used anjuta 1.0.1 briefly last night. It seems to be doing code 
highlighting and folding ok (folding on #region's works!). It seems to 
be using the SciTE engine for displaying the C# file. Even the Build 
option invokes mcs. However, I couldn't find any place where I could set 
build options (references etc.). I'll look at it more closely when I get 
home today.

-fawad

J. Perkins wrote:

On Tue, 2003-01-21 at 20:05, A Rafael D Teixeira wrote:
 

I'm using VS.NET in one windows machine, Eclipse and Notepad at the other, 
and gedit on my linux Mandrake 9 machine, but I'll have to give Anjuta 
another chance...
   


Can Anjuta work with C# files? I gave it a quick look a while back but
it seemed to be C/C++ only.

Jason
379



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



Re: [Mono-list] Cross-platform Mono IDE?

2003-01-22 Thread Fawad Halim
Hi,
   Finally got mono working perfectly with Anjuta. Bound 'NAnt.exe' 
with the 'Build with make' menu item, bound Ctrl+Shift+B to 'Build with 
make' and F5 to 'Execute'. I'm using the latest rpm from the anjuta site.

-fawad

J. Perkins wrote:

On Tue, 2003-01-21 at 20:05, A Rafael D Teixeira wrote:
 

I'm using VS.NET in one windows machine, Eclipse and Notepad at the other, 
and gedit on my linux Mandrake 9 machine, but I'll have to give Anjuta 
another chance...
   


Can Anjuta work with C# files? I gave it a quick look a while back but
it seemed to be C/C++ only.

Jason
379
 


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



[Mono-list] Starting xsp at bootup

2003-02-02 Thread Fawad Halim
Hi,
 I am trying start the XSP server.exe at system startup. To do that, 
I've written a small sysv init script. I've got a line like:

su ${RUNAS} -c "cd ${XSPHOME};${MONO} server.exe >server.log 2>&1" &

in it, where ${XSPHOME} is the xsp/test directory and ${MONO} is 
/usr/local/bin/mono. ${RUNAS} is the user I'm trying to run the app as. 
When I run xsp with the script above, I get the error:

Error

System.Web.HttpException:  ---> System.IO.FileNotFoundException: File 
'tmp1323315300.dll' not found.
in (unmanaged) /usr/local/bin/mono(mono_raise_exception+0x20) [0x80bbc56]
in (unmanaged) 
/usr/local/bin/mono(ves_icall_System_Reflection_Assembly_LoadFrom+0xca) 
[0x80d75ea]
in <0x00101> 00 System.Web.Compilation.GlobalAsaxCompiler:GetCompiledType ()
in <0x000e6> 00 
System.Web.Compilation.GlobalAsaxCompiler:CompileApplicationType 
(string,System.Web.HttpContext)
in <0x0002c> 00 System.Web.HttpApplicationFactory:CompileApp 
(System.Web.HttpContext)
in <0x00048> 00 System.Web.HttpApplicationFactory:InitializeFactory 
(System.Web.HttpContext)
in <0x00070> 00 System.Web.HttpApplicationFactory:GetInstance 
(System.Web.HttpContext)
in <0x00154> 00 System.Web.HttpRuntime:InternalExecuteRequest 
(System.Web.HttpWorkerRequest)
--- End of inner exception stack trace ---

If I run the same script as the ${RUNAS} user, the site loads up perfectly.

Any suggestions about what I'm doing wrong?

Regards
-fawad

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


Re: [Mono-list] Starting xsp at bootup

2003-02-03 Thread Fawad Halim
That worked perfectly, thanks. I'm using a reverse http proxy in lieu of 
mod_mono to server up aspx contents. So

/svn/repos/.* comes from subversion httpd
/mono/.* comes from xsp server.exe
Everything else comes from my stock httpd.

-fawad


Miguel de Icaza wrote:
Hello,



If I run the same script as the ${RUNAS} user, the site loads up perfectly.

Any suggestions about what I'm doing wrong?



Try passing a -l flag to su (login shell), that way the whole
environment will be correctly setup to the one of the user.

Miguel
___
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



[Mono-list] Error running monodoc assembler

2003-08-19 Thread Fawad Halim
Hi,
   I'm trying to get monodoc to build on my box, but am getting errors 
while assembler.exe runs:

mono --debug ../browser/assembler.exe --ecma ./corlib/en/ --ecma 
./System/en/  --ecma ./System.XML/en/ --ecma ./System.Web/en --ecma 
./System.Web.Services/en -o netdocs

** (../browser/assembler.exe:1416): WARNING **: Missing method .ctor in 
assembly ../browser/assembler.exe typeref index 9

Unhandled Exception: System.NullReferenceException: A null value was 
found where an object instance was required

Both the mono and mcs modules have been built from cvs.

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


[Mono-list] Assembly search path

2003-10-02 Thread Fawad Halim
Is there a global preference in mono where we can define the library 
search path (kinda like CLASSPATH in java)? I looked in all the usual 
documents (mono/doc/*, mcs/docs/*, MonkeyGuide, list archives etc.).

Sorry if this has been answered already.

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


Re: [Mono-list] Assembly search path

2003-10-02 Thread Fawad Halim
. Thanks that did the trick.

Regards
-fawad
Gonzalo Paniagua Javier wrote:

El jue, 02-10-2003 a las 18:38, Fawad Halim escribió:
 

Is there a global preference in mono where we can define the library 
search path (kinda like CLASSPATH in java)? I looked in all the usual 
documents (mono/doc/*, mcs/docs/*, MonkeyGuide, list archives etc.).
   

It's in mono.1 manual page: MONO_PATH

-Gonzalo

___
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] I would like to contribute to Mono

2003-10-12 Thread Fawad Halim
John,
   Check out the mcs module from CVS. The class/ directory containes 
all the code for the mainline (i.e. corlib, System.XML, etc.). The 
directory also contains the nunit2 tests.  You can run the tests, add 
tests as neccesary, and fix tests that fail.

The documentation system is in the monodoc module in CVS. You can update 
the core docs in the class/ directory in that module or you can put one 
of the non-core modules (like gtk-sharp) to document. The documentation 
is in ECMA XML docs format and there are plenty of examples. For 
documentation there's a seperate mono-docs-list on ximian.com

-fawad

John Meredith wrote:

I would like to contribute on a regular basis to the Mono project.  I've read 
the documentation, written some console based apps with Mono and had a look 
around the source code.  I've also been programming in a professional 
environment using C# .NET (MS-Windows) for about a year and I am excited by 
Mono and would love to get involved.

I would like to do some unit testing to start with or maybe some 
documentation, but I was wondering which sections / classes need testing.

Could anyone please point me in the right direction?
Thanks
John Meredith
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] XSP server

2003-10-12 Thread Fawad Halim
George,
   The xsp-0.6 packages were built with only the binaries. The README 
file, sources etc. are all missing. You can either wait for a corrected 
package or just get xsp from CVS.

-fawad

amerigo5 amerigo5 wrote:

Hi,

I downloaded the XSP file and when I unpacked it, the contents seemed 
to be different from previous versions. It would have been OK but the 
install instruction is not in the package. Can anyone tell me how I 
can install and use XSP-0.6?

Thanks,

George

_
Share your photos without swamping your Inbox.  Get Hotmail Extra 
Storage today! http://join.msn.com/?PAGE=features/es

___
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] Binaries naming

2003-10-14 Thread Fawad Halim
Hi,
   At least Debian and Redhat (8,9, Fedora) have the alternatives (man 
8 alternatives) system. It essentially contains a list of packages that 
provide the same facility (like Sendmail and Postfix on Redhat) and 
links that need to be shuffled around to switch from one to the other. 
For example, on my machine

# alternatives --display mta
mta - status is manual.
link currently points to /usr/sbin/sendmail.postfix
/usr/sbin/sendmail.sendmail - priority 90
slave mta-mailq: /usr/bin/mailq.sendmail
slave mta-newaliases: /usr/bin/newaliases.sendmail
slave mta-rmail: /usr/bin/rmail.sendmail
slave mta-mailqman: /usr/share/man/man1/mailq.sendmail.1.gz
slave mta-newaliasesman: /usr/share/man/man1/newaliases.sendmail.1.gz
slave mta-aliasesman: /usr/share/man/man5/aliases.sendmail.5.gz
/usr/sbin/sendmail.postfix - priority 30
slave mta-mailq: /usr/bin/mailq.postfix
slave mta-newaliases: /usr/bin/newaliases.postfix
slave mta-rmail: /usr/bin/rmail.postfix
slave mta-mailqman: /usr/share/man/man1/mailq.postfix.1.gz
slave mta-newaliasesman: /usr/share/man/man1/newaliases.postfix.1.gz
slave mta-aliasesman: /usr/share/man/man5/aliases.postfix.5.gz
Current `best' version is /usr/sbin/sendmail.sendmail.
It should be pretty easy to have the alternatives system maintain 
symlinks for choosing between mono and pnet alternatives.

Regards
-fawad
Miguel de Icaza wrote:

Hello,

 

Mono and pnet will still block each other, but at least Mono will have a
consistent naming and easy for newbie people.
I really don't mind that mono blocks pnet because I'm planning to use only
Mono, but as a Linux user I would prefer to have open alternatives. That's
why I love Linux, because the possibility of choosing. 
   

That is a packaging issue though.  The same happens with mail for
example, /usr/lib/sendmail has been hardcoded in every application, and
distributions still work around this problem without a hitch.
Miguel
___
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] cvs monodoc mdk9.1

2003-10-26 Thread Fawad Halim
Eduardo,
   You're not doing anything wrong. The docs you're getting an error 
with don't come with the monodoc cvs module. For example, you need to 
install the monkeyguide CVS module to get the monodoc handbook docs.

-fawad

Eduardo Osorio Armenta wrote:

i made changes on browser.cs line 1204 
from :

if (tree_view.Selection.GetSelected (out model, ref
iter)){
 Node n = (Node) iter_to_node [iter];
.
.
.
to :
if (tree_view.Selection.GetSelected (out model, out
iter)){
Node n = (Node) iter_to_node [iter];
.
.
.
and the same in line 1127
and finally monodoc compiles fine 

make install

great!

but 

after changing monodoc.config 
in /usr/lib/monodoc.config

monodoc starts! (oh ma!)

but  HandBook & Gnome Libraries & Mozilla Libraries
& Dia Canvas
shows:

Unhandled URLFunctionality to view the resource
root:/monohb is not available on your system or has
not yet been implemented.
Unhandled URLFunctionality to view the resource
root:/classlib-diacanvas is not available on your
system or has not yet been implemented.
what did i make wrong?

thanks for advice

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
___
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] Deploying a site (ASP.NET .aspx) with mono

2003-11-25 Thread Fawad Halim
Tiago,
   You usually wanna go with apache with mod_mono on a production 
deployment. mod_mono at least has a good behavior under load. It doesn't 
have problems with concurrent connections. Apachebench on httpd2-cvs, 
mod-mon-cvs gives me the following numbers on my 800MHz athlon box with 
300MB RAM when running xsp/test/index.aspx with concurrency=200 (no 
caching). Like any other benchmark, your mileage may vary.

Concurrency Level:  100
Time taken for tests:   345.85596 seconds
Complete requests:  2000
Failed requests:0
Write errors:   0
Total transferred:  21026000 bytes
HTML transferred:   20474000 bytes
Requests per second:5.80 [#/sec] (mean)
Time per request:   17254.280 [ms] (mean)
Time per request:   172.543 [ms] (mean, across all concurrent requests)
Transfer rate:  59.50 [Kbytes/sec] received
Connection Times (ms)
 min  mean[+/-sd] median   max
Connect:02  12.3  0  82
Processing:  7673 16107 3658.2  15580   99947
Waiting: 7572 16056 3660.1  15533   99923
Total:   7706 16110 3657.3  15580   99947
-fawad

Tiago Lima wrote:

Hi,
 
What is the best way to deploy a site (ASP.NET .aspx) using mono?
Do you use xsp only, apache with mod_mono?
Does the site has a correct behaviour when receiving multiple 
simultaneous requests?
For example, ~20+ simultaneous users...
 
Does anyone has any experience on this?
 
Thanks in advance,
Tiago Lima
 


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


Re: [Mono-list] How do I turn on the optional build of gtkhtml-sharp.dll in gtk-sharp-0.15?

2004-01-20 Thread Fawad Halim
Mike,
   It is not disabled by default. The configure script detects the 
presence of the requisite libraries and enables the build accordingly. 
You can use your config.log for hints on what the configure script is 
looking for.

-fawad

Mike Carifio wrote:

Searching the archive for [Mono-list] seems to reveal that building 
gtkhtml-sharp.dll from source
is optional and the default is off. If so, how do I turn it on? Pl. 
advise. Thanks.

___
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] Object Browser, gtksourceview-sharp documentation ?

2004-01-20 Thread Fawad Halim
The object browser is monotalk in cvs. It might not build in its current 
state though (uses deprecated methods in Gtk Treeview).

Not sure about the gtksourceview question.

-fawad

Tiago Lima wrote:

Hi,

What is the name of the cvs module for the Object Browser I saw in the 
screenshots?

Has gtksourceview (gtksourceview-sharp) any monodoc documentation? Is there 
any way of "importing" it to the monodoc?

Thanks in advance,
Tiago Lima
 

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


Re: [Mono-list] Docs as plain HTML

2004-02-12 Thread Fawad Halim
Stuart,
   You can use wget (with the appropriate set of args to trigger 
recursiveness). If you can host the docs on a local box, it'll be a lot 
faster than getting them from go-mono.org.

-fawad

Stuart Ballard wrote:

Met @ Uber wrote:

You could use monodoc (check downloads).


The computer I need to use these on can't support running a C# app 
(heck, it's a 486 with 4Mb ram and nonfunctioning "g" and "h" keys, 
I'm lucky it can support a text mode console with a remapped 
keyboard). It can just barely support HTML, by using Lynx...

So even if I can use monodoc, that only helps if monodoc can spew out 
static HTML, which I don't think it can... can it? (I can't find any 
monodoc docs - how ironic ;) )

Stuart.

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


Re: [Mono-list] c# written daemon, System.ServiceProcess, posix signals handling...

2004-04-16 Thread Fawad Halim
Hi Robert,
   I'd suggest running your app under runit 
(http://smarden.org/runit/). That'll take care of making sure the app is 
always running even when killed abnormally. When you 'down' the service 
in runit, it sends it a SIGTERM and maintains an internal flag that the 
service is supposed to be down intentionally. There is a thread on 
signal handlers in the March '03 archive of mono-list, including an 
example of a sigterm handler using unmanaged calls.

-fawad

RoBiK wrote:

Hi!

I need to write an application in c#, wich should run in background and be
able to shut down gracefully when required.
The best solution would be to use the System.ServiceProcess namespace, but
this namespace is not implemented in mono. I know that there were some
discussion about this topic in summer 2003, but since i found nothing. Is
there something new in this direction?
The other way (not so nice, but would also do the job) would be the catching
of posix signals (SIGINT, SIGTERM...) but i have no idea how to do thin in
an mono application.
The last solution is to use some selfmade communication mechnism, to
comunicate with the process and initiate the shutdow - maybe using remoting
or some simpler mechanism.
Can someone give me some infos or ideas for the solution?
Thanx

Robert

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


Re: [Mono-list] Removing the 'Compilation succeeded' message

2004-06-07 Thread Fawad Halim
Modify the mcs wrapper shell script to pipe the output of mcs.exe into
grep -v '^Compilation succeeded$'
-fawad
William S Fulton wrote:
How can one remove the "Compilation succeeded" message after invoking 
mcs? I can't find a --quiet option or similar and -nologo doesn't 
remove this message. I'd like to quieten the output for running 
batches of tests so it works in the same way as Microsoft's csc and 
Portable.Net's cscc.

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


Re: [Mono-list] On the new site

2004-06-11 Thread Fawad Halim
Kevin, I'm seeing that the accented characters are showing up funny in 
Mozilla (for example, in the Mono Team page and in the credits in the 
release notes). It might just be the character encoding.

-fawad
Kevin Breit wrote:
Andrew Arnott wrote:
The new site at www.mono-project.com looks great.  Here's a broken link:
On http://www.mono-project.com/using/index.html, clicking the
MonoDevelop link launches this script:
"javascript:openExternal('http://www.monodevelop.com');"  That link
opens a new browser window that is empty.  Both in FireFox and Internet
Explorer.   

Thanks for the feedback.  I'll get that fixed.
What's wrong with http://www.monodevelop.com";
target="_new">MonoDevelop ?
 

We use the Javascript function so we have some control (if we want) over 
the opening browser window.

Kevin
___
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


[Mono-list] gtk-sharp CVS build failing

2004-06-26 Thread Fawad Halim
Hi,
   gtk-sharp build is failing for me with this error:


Name: pattern Type: FcPattern*  in callback PangoFT2SubstituteFunc
 Stubbing it out 

Unhandled Exception: System.NullReferenceException: Object reference
not set to an instance of an object
in <0x0005d> GtkSharp.Generation.ClassBase:GenMethods
(GtkSharp.Generation.GenerationInfo,System.Collections.Hashtable,GtkSharp.Generation.ClassBase)

make[3]: *** [generated-stamp] Error 1
make[3]: Leaving directory `/usr/data/fawad/cvs/mono/gtk-sharp/pango'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/data/fawad/cvs/mono/gtk-sharp/pango'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/data/fawad/cvs/mono/gtk-sharp'
make: *** [all] Error 2


I'm getting this same error on both FC2 and Debian Unstable. mono and
gtk-sharp source was gotten from CVS.

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


[Mono-list] gtk-sharp CVS build failing

2004-06-27 Thread Fawad Halim
Hi,
   gtk-sharp build is failing for me with this error:
Name: pattern Type: FcPattern*  in callback PangoFT2SubstituteFunc  
Stubbing it out 

Unhandled Exception: System.NullReferenceException: Object reference not 
set to an instance of an object
in <0x0005d> GtkSharp.Generation.ClassBase:GenMethods 
(GtkSharp.Generation.GenerationInfo,System.Collections.Hashtable,GtkSharp.Generation.ClassBase)

make[3]: *** [generated-stamp] Error 1
make[3]: Leaving directory `/usr/data/fawad/cvs/mono/gtk-sharp/pango'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/data/fawad/cvs/mono/gtk-sharp/pango'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/data/fawad/cvs/mono/gtk-sharp'
make: *** [all] Error 2
I'm getting this same error on both FC2 and Debian Unstable. mono and 
gtk-sharp source was gotten from CVS.

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