Re: [Mono-winforms-list] Are 16-bit and 24-bit pixelformatssupportedby libgdiplus?
At 12:06 PM 10/11/2005 +0100, Kornel wrote: Using Format32bppArgb internally in libgdiplus can result in better performance, but I think conversion should be done when loading and saving bitmaps but Bitmap.PixelFormat should return the original pixel format for compatibility. For indexed pixel formats, this is not an option, because it does not preserve the palette indices. This is why I added direct support for those pixel formats. This road might work for 15- and 16-bit images, though, and would have the added effect that people get an extra couple bits of accuracy on every channel for any sequence of drawing operations they want to do :-) Even if we subsequently quantize down to 15- or 16-bit data before saving, the results should be marginally better (less quantization error). Jonathan Gilbert ___ Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-winforms-list
[Mono-dev] mono profiling
Hi I'm trying to profile my program and mono libraries using coverage profiler (./mono/profiler/mono-cov.c). But everything I get is not covered response for every method. Is there any special way how to compile mono? Can anybody help me, please? Peter ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Problem with debugger on gentoo
I've compiled the mono debugger from svn. When I try to run mdb I get: [EMAIL PROTECTED] ~/mono/debugger $ mdb Inconsistency detected by ld.so: ../sysdeps/generic/dl-tls.c: 72: _dl_next_tls_modid: Assertion `result = _rtld_local._dl_tls_max_dtv_idx' failed! I'm running this libc: GNU C Library 20041102 release version 2.3.4, by Roland McGrath et al. Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiled by GNU CC version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6). Compiled on a Linux 2.6.8 system on 2005-02-08. Available extensions: GNU libio by Per Bothner crypt add-on version 2.1 by Michael Glad and others Native POSIX Threads Library by Ulrich Drepper et al The C stubs add-on version 2.1.2. GNU Libidn by Simon Josefsson BIND-8.2.3-T5B NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk Thread-local storage support included. For bug reporting instructions, please see: http://www.gnu.org/software/libc/bugs.html. thanks ___Ce message et les éventuels documents joints peuvent contenir des informations confidentielles.Au cas où il ne vous serait pas destiné, nous vous remercions de bien vouloir le supprimer et en aviser immédiatement l'expéditeur. Toute utilisation de ce message non conforme à sa destination, toute diffusion ou publication, totale ou partielle et quel qu'en soit le moyen est formellement interdite.Les communications sur internet n'étant pas sécurisées, l'intégrité de ce message n'est pas assurée et la société émettrice ne peut être tenue pour responsable de son contenu. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Howto debug Mono and dev tools
Quick questions 1) What are the recommended tools for debugging mod_mono/xsp/mono? If it's mono debugger or just recompile with --debug options I apologize for such an obvious question. I especially need to know for a server with X11 forwarding off. (I've been reading about Mono debugger, but have yet to use it. Is it really that great?) 2) Do I submit patches in standard format? Is it preferred to diff against svn head or latest release? (I'll look on the site for something on submitting patches) 3) Tools for development reopened... a. X-develop is simple and seems to work with minimal learning curve (Lacks ftp,sftp,webdev support, but does have svn/repository) b. Slick edit (Looks great, but at the same time like a modified emacs) c. MonoDevelop (tried it about a year ago.. Has it gotten significantly better?) d. SharpDevelop (Windows only setup* script.. Any comments/suggestions for trying to port this over if someone has not done so already?) e. Bluefish? f. Eclipse with lots of plugins/which ones? Is there anything that will allow a preview window for .xml/.html/xhtml/.aspx based pages. (Don't need WYSIWYG editor) Must work in Linux Built-in debugger FTP/SFTP/SVN/CSV support Project explorer and quick navigation Autocompletion? Fast and not using Java? Open source? Thanks C. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Howto debug Mono and dev tools
On Thu, 2005-11-10 at 12:46 +0200, Christopher Bergström wrote: Quick questions 1) What are the recommended tools for debugging mod_mono/xsp/mono? If it's mono debugger or just recompile with --debug options I apologize for such an obvious question. I especially need to know for a server with X11 forwarding off. (I've been reading about Mono debugger, but have yet to use it. Is it really that great?) The debugger is, has been, and will likely continue to be a work-in-progress. It is not currently usable by mere mortals. Which leaves *.WriteLine and log files as your debugging mechanism -- Console.WriteLine() (not suitable for mod_mono), Console.Error.WriteLine (sent to Apache's error_log), System.Diagnostics.Trace.WriteLine()... For System.Diagnostics.Trace, you'll probably want to set the (XPath) /configuration/system.diagnostics/assert/@logfilename attribute in your .config file (app-name.exe.config or web.config), e.g.: configuration system.diagnostics assert logfilename=your-log-file.txt / /system.diagnostics /configuration You can also add additional TraceListeners to send output to additional files if necessary. You might find this interesting: http://lists.ximian.com/pipermail/mono-list/2002-December/010504.html If using System.Diagnostics.Trace, don't forget to compile your code with the TRACE symbol defined, e.g. with ``#define TRACE''. 2) Do I submit patches in standard format? Is it preferred to diff against svn head or latest release? (I'll look on the site for something on submitting patches) Diffs need to be in unified-diff format (e.g. `diff -upN`). The default `svn diff` output is in unified-diff format, and is thus acceptable. Diffing against svn-head is easiest for us to deal with, as the code may have changed (possibly fixing your bug) since the last release. 3) Tools for development reopened... What, no (g) -- vim/emacs and a command line? Works great remotely when X11 forwarding is off. c. MonoDevelop (tried it about a year ago.. Has it gotten significantly better?) Define significantly. I've heard the more recent versions are more stable, but I don't use it. Is there anything that will allow a preview window for .xml/.html/xhtml/.aspx based pages. (Don't need WYSIWYG editor) Must work in Linux Built-in debugger FTP/SFTP/SVN/CSV support Project explorer and quick navigation Autocompletion? Fast and not using Java? Open source? Nothing has all of those features, because one of them doesn't currently exist -- a Built-in debugger. You've already mentioned several programs which will handle some of the items on that list, MonoDevelop in particular, and I don't know of any unmentioned programs that would work. - Jon ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] SVN case conflict
Hello, I'm trying to checkout the SVN trunk for mono in my Windows XP box, but there is one file that has the same name Upper and Lower case, this makes conflict and I get an error and can't continue with TortoiseSVN. I found some solutions for this [1] but all of them in the server side, I think for compatibility the best is don't have same-name-different-case files, this also happens with MacOS X [2] Anyway, the files are not from the source code: svn://svn.myrealbox.com/source/trunk/website/newsitems/jun-28.html svn://svn.myrealbox.com/source/trunk/website/newsitems/Jun-28.html (Note the j/J in the name) [1] http://tortoisesvn.sourceforge.net/?q=case_conflict_solution [2] http://subversion.tigris.org/issues/show_bug.cgi?id=667 Thank you, Rodrigo Queipo. -- Saludos, Rodrigo. Hi Rodrigo, thanks for the links, did you solve the problem? Is there another solution to fix it on a client side (i.e. provide some SVN configuration file to skip these files during update)? Please anybody delete the *website/newsitems/Jun-28.html* file :). I guess it would be the best if someone will install in the repository something like sripts in [1] which will prevent SVN server to create 2 files different only by case. Best regards, Gennadiy ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] SVN case conflict
On Thu, 2005-11-10 at 12:20 +0100, Gena wrote: Hello, I'm trying to checkout the SVN trunk for mono in my Windows XP box, but there is one file that has the same name Upper and Lower case, this makes conflict and I get an error and can't continue with TortoiseSVN. I found some solutions for this [1] but all of them in the server side, I think for compatibility the best is don't have same-name-different-case files, this also happens with MacOS X [2] Anyway, the files are not from the source code: svn://svn.myrealbox.com/source/trunk/website/newsitems/jun-28.html svn://svn.myrealbox.com/source/trunk/website/newsitems/Jun-28.html (Note the j/J in the name) [1] http://tortoisesvn.sourceforge.net/?q=case_conflict_solution [2] http://subversion.tigris.org/issues/show_bug.cgi?id=667 Thank you, Rodrigo Queipo. -- Saludos, Rodrigo. Hi Rodrigo, thanks for the links, did you solve the problem? Is there another solution to fix it on a client side (i.e. provide some SVN configuration file to skip these files during update)? Please anybody delete the *website/newsitems/Jun-28.html* file :). I guess it would be the best if someone will install in the repository something like sripts in [1] which will prevent SVN server to create 2 files different only by case. FYI, there is no reason to check out /trunk/. You will get way too much stuff. You should check out /trunk/mcs, /trunk/mono, etc. There are a few scripts that would be nice to put for some quick error checking. For example, I'd really like one that forbids new text files that aren't svn:eol-style=native. In a similar vein, it'd be great to have one that forbids users from adding \r\n lines to a file that is completely \n. It's more a matter of us having time to QA and in some cases write the scripts. -- Ben ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] .Net 2.0 code failing on mono
My company is not officially supporting mono and some client WinForms code was built for .net 2.0. With my limited bandwidth, I would like to help the cause of mono to make this code run also on mono. When naively running the client app with mono (1.1.9.2) I get a dialougue with ** ERROR **: file class.c line 2233 (mono_class_setup_parent): should not be reached aborting... With no additional information about the problem. Guessing it maybe related to missing assemblies / implementation, I have tried: mono --trace=M:Assembly:GetTypes which produces no information. What can I do to find out what is the cause? ___ Siebel IT'S ALL ABOUT THE CUSTOMER Visit www.siebel.com This e-mail message is for the sole use of the intended recipient(s) and contains confidential and/or privileged information belonging to Siebel Systems, Inc. or its customers or partners. Any unauthorized review, use, copying, disclosure or distribution of this message is strictly prohibited. If you are not an intended recipient of this message, please contact the sender by reply e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] .Net 2.0 code failing on mono
Hey, On Thu, 2005-11-10 at 16:19 -0700, Ron Vered wrote: My company is not officially supporting mono and some client WinForms code was built for .net 2.0. With my limited bandwidth, I would like to help the cause of mono to make this code run also on mono. When naively running the client app with mono (1.1.9.2) I get a dialougue with ** ERROR **: file class.c line 2233 (mono_class_setup_parent): should not be reached aborting... With no additional information about the problem. Guessing it maybe related to missing assemblies / implementation, I have tried: mono --trace=M:Assembly:GetTypes which produces no information. The lines in question look like: if (!MONO_CLASS_IS_INTERFACE (class)) { class-parent = parent; if (!parent) g_assert_not_reached (); /* FIXME */ This code looks like it is trying to initialize the parents of the class being setup. Maybe you are inheriting from a new 2.0 class that we have not created? I'd first try compiling your program with gmcs. If there are classes that we don't have, it should be more easily apparent there. -- Ben ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] .Net 2.0 code failing on mono
When naively running the client app with mono (1.1.9.2) I get a dialougue with ** ERROR **: file class.c line 2233 (mono_class_setup_parent): should not be reached aborting... With no additional information about the problem. An assembly is missing. Guessing it maybe related to missing assemblies / implementation, I have tried: mono --trace=M:Assembly:GetTypes which produces no information. What can I do to find out what is the cause? MONO_LOG_LEVEL=debug MONO_LOG_MASK=asm mono yourassembly.exe See mono(1) (man mono) RObert ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] extending socketoptionlevel to allow for change in keep alive options
I was wondering if there is a way to export the various keep alive options (linux: tcp_keepalive_intvl, tcp_keepalive_probes, tcp_keepalive_time) via the Socket.SetSocketOption method, throwing a SocketException if unavailable. It's not really standard but it would be nice to be able to set those if they are available on the host platform (linux, freebsd, etc) rather than as a system wide default if possible. Thanks, Johnny signature.asc Description: OpenPGP digital signature ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] latest mono completely broken for ASP.NET on Suse as far as I can tell
I posted a message earlier this week about getting a 503 service unavailable on my demo site demo.mojoportal.com running the latest code from svn (also updated tonight to r52890 with same result) and no-one replied to my post. this is on suse 9.2 Now I've tried a clean install of Suse 10 with the latest mono 1.1.10 on a different machine and the same result 503 service unavailable What gives! Is anyone out there running the latest code with success on suse? Please any help, this is very frustrating and sucking up hours of time I'd like to be using for development on my project. I've been building mono from svn for a long time on my Suse 9.2 machine. I'm not a linux expert but not a newb either. Now I can't get mojoportal working on svn code or the latest release. I could really use some help here. Thanks, Joe joe_audette [at] yahoo dotcom http://www.joeaudette.com http://www.mojoportal.com ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Using Firefox with class-status does not work
Thanks for your nice assumption that we are using non-OSS browsers to develop status pages. This bug coming from the ongoing changes is fixed in svn; will be reflected in the status pages as well. Atsushi Eno Ron Vered wrote: I use Firefox 1.0.7 and when I view class-status pages such as http://mono.ximian.com/class-status/mono-HEAD-vs-fx-2/class-status-Syste m.Drawing.html clicking a class with Firefox will open http://msdn2.microsoft.com/FileNotFound.htm?aspxerrorpath=/library/%20%2 0%20%20%20%20.%20%20%20%20%20%20%20%20.aspx whereas clicking the same class with IE works just fine. Please have support (and respect) to other open-source projects! ___ Siebel IT'S ALL ABOUT THE CUSTOMER Visit www.siebel.com This e-mail message is for the sole use of the intended recipient(s) and contains confidential and/or privileged information belonging to Siebel Systems, Inc. or its customers or partners. Any unauthorized review, use, copying, disclosure or distribution of this message is strictly prohibited. If you are not an intended recipient of this message, please contact the sender by reply e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-list] Need a Reporting Tool
Gayan Perera wrote: I have tried the FyiRDL reports, but any body know a better tool like JasperReports(java) and Crystal(Win32) for Mono also. please if some body knows send me the URL, i'm stuck with my systems reports. There was two reporting engines for mono mentioned in this list: 1. SBReport: http://home.metroweb.co.za/[EMAIL PROTECTED]/Gesin/Willem/Willem.htm http://permalink.gmane.org/gmane.comp.gnome.mono.general/22421 2. MyNeoReport: http://www.neodatatype.net/?page=myneoreport I've not used any of this. -- Oleg smime.p7s Description: S/MIME Cryptographic Signature ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Problems Using P/Invoke
Hello All, I am trying to write some C# bindings for the C++ libdar library (http://dar.sourceforge.net) as a personal project which which will be released as open source at a later time when I can get something working. The problem I am having now is that I can't seem to find a way to bind this library into C# APIs due to the way the functions are declared. I've tried searching the internet but I can't seem to find any information on this. I'm stuck at the first function that I'm trying to import and I can't go any further from this point as almost all the functions in the library are declared this way: extern void get_compile_time_features(bool ea, bool largefile, bool nodump, bool special_alloc, U_I bits, bool thread_safe, bool libz, bool libbz2, bool libcrypto); The problem I have here is the way the parameters are defined. Note that the U_I type is just a typedef to unsigned int in libdar. In my source file, i declared it like this because I can't seem to find a way to specify in the method signature: [DllImport(library, CallingConvention = CallingConvention.Cdecl)] private unsafe extern static void get_compile_time_features( ref bool EAttributes, ref bool LFile, ref bool NDunp, ref bool SAllocation, ref uint bits, ref bool TSafe, ref bool LZ, ref bool LBZ2, ref bool LCrypto); and I called the function like this: get_compile_time_features( ref ExtendedAttributes, ref LargeFile, ref NoDump, ref SpecialAllocation, ref Bits, ref ThreadSafe, ref LibZ, ref LibBZ2, ref LibCrypto); This compiles fine with mcs but when i try to run it, I get this error: Unhandled Exception: System.EntryPointNotFoundException: get_compile_time_features in (wrapper managed-to-native) LibDar.LibDar:get_compile_time_features (bool,bool,bool,bool,uint,bool,bool,bool,bool) in 0x00054 LibDar.LibDar:GetCompileTimeFeatures () in 0x00026 LibDar.Tester:Main (System.String[] args) I've been stuck here for a few days and I've done a lot of reading on P/Invoke but to no avail. Can you point me to the right direction on how this can be done? Cheers, Jeremy Tan ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] XSP samples
On Thu, 2005-11-10 at 13:06 -0500, Stephen More wrote: I installed the following rpms: mod_mono-1.1.10-0.rhel4.novell.i386.rpm mono-core-1.1.10-0.novell.i586.rpm mono-data-1.1.10-0.novell.i586.rpm mono-web-1.1.10-0.novell.i586.rpm xsp-1.1.10-0.novell.noarch.rpm The only sample that does not work is ConverterService.asmx It complains on the following 2 lines: Line 30: [Dump] Line 31: [Encrypt] What is needed to get this sample working ? That might be a packaging error. There should be a /usr/lib/xsp/test/bin directory containing at least a 'extensions.dll' assembly. If not, you can compile it from DumpExtension.cs and EncryptExtension.cs from the source package. -Gonzalo ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] To compile with mono mbas
Hi, Sorry for the stupid question but I'm new in mono/mbas. I have Form.aspx and Form.aspx.vb files with the imports System.Windows.Forms, System.Data and MySql.Data.MySqlClient What I have to do to compile? Thanks to all, Valentina. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Problems Using P/Invoke
On Thu, 2005-11-10 at 23:51 +0800, Jeremy Tan wrote: I am trying to write some C# bindings for the C++ libdar library (http://dar.sourceforge.net)... The problem I am having now is that I can't seem to find a way to bind this library into C# APIs due to the way the functions are declared. I've tried searching the internet but I can't seem to find any information on this. http://www.mono-project.com/dllimport I'm stuck at the first function that I'm trying to import and I can't go any further from this point as almost all the functions in the library are declared this way: extern void get_compile_time_features(bool ea, bool largefile, bool nodump, bool special_alloc, U_I bits, bool thread_safe, bool libz, bool libbz2, bool libcrypto); The problem I have here is the way the parameters are defined. Note that the U_I type is just a typedef to unsigned int in libdar. In my source file, i declared it like this because I can't seem to find a way to specify in the method signature: `ref' is an appropriate mapping for `'. You have several other problems... [DllImport(library, CallingConvention = CallingConvention.Cdecl)] private unsafe extern static void get_compile_time_features( ref bool EAttributes, ref bool LFile, ref bool NDunp, ref bool SAllocation, ref uint bits, ref bool TSafe, ref bool LZ, ref bool LBZ2, ref bool LCrypto); starting with this: Unhandled Exception: System.EntryPointNotFoundException: get_compile_time_features in (wrapper managed-to-native) LibDar.LibDar:get_compile_time_features (bool,bool,bool,bool,uint,bool,bool,bool,bool) in 0x00054 LibDar.LibDar:GetCompileTimeFeatures () in 0x00026 LibDar.Tester:Main (System.String[] args) The problem is C++ name mangling. For fun run the nm(1) command on your C++ library. The get_compile_time_features function is actually the symbol _Z25get_compile_time_featuresRbS_S_S_RjS_S_S_S_ in your library (or something similarly FUBAR). Mono/.NET do not understand C++ name mangling conventions (there'd be little point, since each C++ compiler has a different name mangling scheme). The solution to this is ``extern C''. You'd have to either change the get_compile_time_features declaration to this: extern C void get_compile_time_features(bool ea, bool largefile, bool nodump, bool special_alloc, U_I bits, bool thread_safe, bool libz, bool libbz2, bool libcrypto); or you'd have to write a C wrapper for the C++ function. The other problem you have is bool. The size of bool varies between compilers, and Mono marshals it as a short, which probably isn't what the C++ compiler uses. Thus you have to determine what sizeof(bool) is for your C++ compiler and use an appropriate type in your C# declaration. You may find SWIG to be useful: http://www.swig.org - Jon ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] XSP samples
extensions does exist: $ ls -l /usr/lib/xsp/test/bin/extensions.dll -rwxr-xr-x 1 root root 9216 Nov 8 20:57 /usr/lib/xsp/test/bin/extensions.dll $ strings /usr/lib/xsp/test/bin/extensions.dll | grep -i dump DumpExtension DumpAttribute dump DumpOut DumpIn Dump What should I try next ? -Steve More On 11/10/05, Gonzalo Paniagua Javier [EMAIL PROTECTED] wrote: On Thu, 2005-11-10 at 13:06 -0500, Stephen More wrote: I installed the following rpms: mod_mono-1.1.10-0.rhel4.novell.i386.rpm mono-core-1.1.10-0.novell.i586.rpm mono-data-1.1.10-0.novell.i586.rpm mono-web-1.1.10-0.novell.i586.rpm xsp-1.1.10-0.novell.noarch.rpm The only sample that does not work is ConverterService.asmx It complains on the following 2 lines: Line 30: [Dump] Line 31: [Encrypt] What is needed to get this sample working ?That might be a packaging error. There should be a /usr/lib/xsp/test/bindirectory containing at least a ' extensions.dll' assembly. If not, youcan compile it from DumpExtension.cs and EncryptExtension.cs from thesource package.-Gonzalo___Mono-list maillist- Mono-list@lists.ximian.comhttp://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Pattern matching with DirectoryInfo
We often run into files that do not have extensions in Unix. With this in mind, should a pattern of * (asterisk) match all files? When I do DirectoryInfo.GetFiles(*) I only get files with extensions. BTW - I just wrapped up my first cross platform .Net program using Mono and MonoDevelop on Linux. You guys rock! This is utterly and completely sweet. Thanks for the help and the incredible development suite! -Abe ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Scripting the Linux OS with Mono
I too find it appealling to use C# in place of perl, etc. I am not sure what your asking can happen with the mono distro. you could however, if you don't want to just have my_script.cs my_script.exe as a pair and use the exe to execute your script, that goes without saying. i guess you could make a shell script that woud say monoscript my_script.cs arg1 arg2 that would compile it to a temporary file /tmp/csexe_uniqueid.exe (in tmp?) and run the exe with the args essentially giving you what you want and removing the tmp exe when done ? no different then perl my_script.pl arg1 arg2 just that monoscript is this shell beast you write, which would be a few lines. except you would have to know how to make your exe based on whats in the *.cs file and not what would be in a Makefile, for its libraries ? i would personally love to see more movement in this area .. i.e. mono/C# as a linux/unix scripting language! maybe in the end it just needs to be formalized by someone at mono? -tl On Thu, 10 Nov 2005 19:02:49 -0500 Abe Gillespie [EMAIL PROTECTED] wrote: Hey all, I was wondering if there's any easy way to run C# scripts in Mono. I'm fairly new to Linux (just at about a year) and I'd like to avoid learning yet another language (Perl, sh, etc.). Has anyone written a .Net program that takes a file as input and runs that code? Perhaps Mono can do this natively? How cool would it be to have startup scripts written in C#?! Thanks for the help as always. -Abe ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Scripting the Linux OS with Mono
Hi, You have to compile C# code using mcs that will result in a .exe assembly that can be executed using mono: $mcs some.cs $mono some.exe If you prefer you can write a shell script that will do this as a single step. Kornél - Original Message - From: Abe Gillespie [EMAIL PROTECTED] To: MonoList mono-list@lists.ximian.com Sent: Friday, November 11, 2005 1:02 AM Subject: [Mono-list] Scripting the Linux OS with Mono Hey all, I was wondering if there's any easy way to run C# scripts in Mono. I'm fairly new to Linux (just at about a year) and I'd like to avoid learning yet another language (Perl, sh, etc.). Has anyone written a .Net program that takes a file as input and runs that code? Perhaps Mono can do this natively? How cool would it be to have startup scripts written in C#?! Thanks for the help as always. -Abe ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Re: Pattern matching with DirectoryInfo
We often run into files that do not have extensions in Unix. With this in mind, should a pattern of * (asterisk) match all files? When I do DirectoryInfo.GetFiles(*) I only get files with extensions. It works for me with Mono = 1.1.9 Robert ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Scripting the Linux OS with Mono
Compiling into an exe, running it, and then deleting is an obvious work around ... but I'd prefer a solution that takes a specifically designed script and runs the script itself. I could see this being done in a separate host exe that expects a script adhering to a specific contract. So the command line would like something like: mono script_host.exe MyScript.cs myarg1 myarg2 Where script_host might expect a certain interface to be implemented in MyScript.cs. Obviously the assemblies MyScript.cs references would have to be supplied somehow to script_host ... but as flexible as Mono / .Net is it shouldn't be a problem. Has anyone out there done something or started a project like this? -Abe On 11/10/05, Kornél Pál [EMAIL PROTECTED] wrote: Hi, You have to compile C# code using mcs that will result in a .exe assembly that can be executed using mono: $mcs some.cs $mono some.exe If you prefer you can write a shell script that will do this as a single step. Kornél - Original Message - From: Abe Gillespie [EMAIL PROTECTED] To: MonoList mono-list@lists.ximian.com Sent: Friday, November 11, 2005 1:02 AM Subject: [Mono-list] Scripting the Linux OS with Mono Hey all, I was wondering if there's any easy way to run C# scripts in Mono. I'm fairly new to Linux (just at about a year) and I'd like to avoid learning yet another language (Perl, sh, etc.). Has anyone written a .Net program that takes a file as input and runs that code? Perhaps Mono can do this natively? How cool would it be to have startup scripts written in C#?! Thanks for the help as always. -Abe ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Scripting the Linux OS with Mono
Abe Gillespie wrote: I was wondering if there's any easy way to run C# scripts in Mono. I'm fairly new to Linux (just at about a year) and I'd like to avoid learning yet another language (Perl, sh, etc.). Has anyone written a .Net program that takes a file as input and runs that code? Perhaps Mono can do this natively? How cool would it be to have startup scripts written in C#?! If you're not attached to C# specifically, you might want to check out Boo. It's a Python-inspired language for the CLR (so all the familiar class library is available to you), and should be rather more appropriate for lightweight scripting. It includes an interactive interpreter which should work for scripts as well. http://boo.codehaus.org/ -- brion vibber (brion @ pobox.com) ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Scripting the Linux OS with Mono
That sounds pretty cool. Even just using the command line interpreter as a stepping stone might be useful. I assume that part is OSS as well? -Abe On 11/10/05, Brion Vibber [EMAIL PROTECTED] wrote: Abe Gillespie wrote: I was wondering if there's any easy way to run C# scripts in Mono. I'm fairly new to Linux (just at about a year) and I'd like to avoid learning yet another language (Perl, sh, etc.). Has anyone written a .Net program that takes a file as input and runs that code? Perhaps Mono can do this natively? How cool would it be to have startup scripts written in C#?! If you're not attached to C# specifically, you might want to check out Boo. It's a Python-inspired language for the CLR (so all the familiar class library is available to you), and should be rather more appropriate for lightweight scripting. It includes an interactive interpreter which should work for scripts as well. http://boo.codehaus.org/ -- brion vibber (brion @ pobox.com) ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list