Re: [Mono-list] favorite IDE ?

2006-06-26 Thread rus
gedit and a terminal running NAnt works for me.

I like monodevelop but just don't have confidence in it yet. I'm always
worried that clicking on something will cause it to suddenly freeze and
crash.

VisualStudio just freaks me out.


On Fri, 2006-06-23 at 21:06 +0300, Alex Nedelcu wrote:
 Pool: what's your favorite IDE for Mono development ?
 
 I am using SciTE with my own generated API file, coupled with Make for 
 project building.
 I found it to be simple, effective, and easy to configure, although I am 
 considering switching to vim.
 I would've used Monodevelop, but I found it too buggy.
 
 Somehow, I do not like full-blown IDEs.
 Even if I had Windows and VStudio installed, I would still prefer a 
 simple and fast editor.
 Is anybody else feeling like me ? :)
 
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list
-- 

If you can't be a good example,
then you'll just have to be  a horrible warning

rus at utonium.org.uk http://utonium.com


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


RE: [Mono-list] Why is an X server necessary to useSystem.Drawing.Graphics?

2006-04-25 Thread rus
I have written a small command line prog in mono that rescales a
directory of images using System.Drawing and System.Drawing.Imaging, and
it doesn't require an X server to be actually running.

Maybe certain classes/methods in the namespace do, but my code uses both
the Bitmap and Image classes and runs fine with no X server running.
There is however X installed on the machine, just not necessarily
running.

On Tue, 2006-04-25 at 11:57 +0100, Dallman, John wrote:
  I suppose my real concern is that if you want to use code to draw
  (e.g.) CAPTCHAs or other bitmaps as part of a process, rather than for
  the purposes of drawing UI for the user, running an X server to do it
  could seem like overkill on a server that would ordinarily not be
  running one. Feel free to mock my reasoning.
 
 Have you ever written low-level drawing functions for bitmaps? Code
 that can take coordinates and a bitmap, and draw pictures without
 external assistance? It really isn't trivial, once you start getting 
 into lines with width greater than one pixel, dotted line patterns, 
 colour management, and many other things that look simple on a screen,
 but are complex to implement. 
 
 X is a capable and well-debugged graphics system. Using it for Mono
 drawing is sensible code re-use, since any modern UNIX/Linux system 
 is capable of running X and has it available. Developing a simpler 
 drawing purely for off-screen drawing would grow into a project 
 nearly as complex as X, and which would inevitably have 
 inconsistencies with X. 
 
 If you are running a server that generates stuff for web pages, 
 rather than being a simple file/print server, it's going to 
 need more support software to do those things. On MS Windows, you
 can't operate without the GUI at all; on UNIX/Linux you can do so 
 for some things, but they're fairly limited. 

-- 

If you can't be a good example,
then you'll just have to be  a horrible warning

rus at utonium.org.uk http://utonium.com


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Calendar widget source code ?

2006-04-12 Thread rus
If it's asp.net then try System.Web.UI.WebControls.Calendar
Don't know about SWF or Gtk# though

On Tue, 2006-04-11 at 19:26 -0400, ted leslie wrote:
 anyone know of a small calendar widget thats opensource in c-sharp .Net ?
 i thought i remember seeing one somewhere as a sample in mono? but can't seem 
 to
 find one. I found a commercial one, and source is about a G$ :(
 Just need something that renders a small calendar (stylish) for the month 
 with clickable days, etc.
 and I don't want to reinvent the wheel.
 
 -tl
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list
-- 
 ''~``
( o o )
+--.oooO--(_)--Oooo.--+
| [EMAIL PROTECTED] FORGECOM |
| RUS,   .oooO   WEB APPLICATIONS |
| WEB DEVELOPER  (   )   Oooo. WWW.FORGECOM.CO.UK |
+-\ ((   )+
   \_)) /
 (_/


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Some recomendations please

2006-04-04 Thread rus
From what I recall, you can get the .NET framework on NT4 and Win98, but
you can't get the SDK.  So you can run, but not develop on those OSs.

On Mon, 2006-04-03 at 19:49 -0400, Adam Tauno Williams wrote:
 
 It appears that .NET is availble for Windows 98.
 http://www.microsoft.com/downloads/details.aspx?displaylang=enFamilyID=262D25E3-F589-4842-8157-034D1E7CF3A3
 
-- 
 ''~``
( o o )
+--.oooO--(_)--Oooo.--+
| [EMAIL PROTECTED] FORGECOM |
| RUS,   .oooO   WEB APPLICATIONS |
| WEB DEVELOPER  (   )   Oooo. WWW.FORGECOM.CO.UK |
+-\ ((   )+
   \_)) /
 (_/


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Mono in Centos 4 ?

2006-03-09 Thread rus
Hi

Yes it is.
If you add the following line to /etc/redhat-release (keeping the
existing CentOS line)

Red Hat Enterprise Linux AS release 4 (Nahant)

you can then install RedCarpet (if you don't already have it) and follow
the instructions here http://www.go-mono.com/download/rhel-4-i386/ as
CentOS 4 is the equivalent of RedHat Enterprise Linux 4




On Wed, 2006-03-08 at 16:50 -0300, Romulo wrote:
 Hi everybody
 
 I want to know : Is possible to install mono version of Red Hat
 Enterprise 4 into CENTOS 4 ? 
 
 Thanks in advance...
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list
-- 
rus [EMAIL PROTECTED]

___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] What's the easiest way to...

2005-12-02 Thread rus
You seem to be mixing up application settings and user preference
settings.

Application settings can be stored in a standard .config file, though
this is read-only as far as the app is concerned.

User preference settings are more of a problem - I guess XML files
somewhere in the user's home directory structure is the obvious
solutions.

It's a shame GConf isn't available under windows as it's a nice
mechanism to use with mono under linux :)


Rus.

On Fri, 2005-12-02 at 15:13 +0100, Salvatore Scarciglia wrote:
 ...store application settings ? 
 The problems to solve are:
 
 1. Cross platform-application means:
   - no Gconf (Gnome)
   - no .configfiles in the home directory (*nix)
   - no registry (Win*)
 
 2. INI.style files (name=value) or XML file ?
 
 3. Where to save this file ? App Install folder or sys config folder (/etc/ or
 C:/WINNT/SYSTEM)
 
 4. Related to previous problem, what about permissions ??!!
 
 Any suggestion ?
 
 In my opinion the best way is to save an XML file in the user home folder as 
 an
 hidden file (for Unix users) and in the app. installation folder for Windows
 Users. What do you think about this solution ?
 
 Tnx
 
 Sas
 ___
 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-devel-list] Not sure why this won't compile

2005-08-02 Thread rus
you haven't got 
using System;
in FECdomain.cs


On Tue, 2005-08-02 at 00:04 +0100, Paul wrote:
 Hi,
 
 I have two source files (below). If I compile them up with
 -r:System.Drawing and -r:System.Windows.Forms, I get an error about the
 first file on the line which has EventArgs in it. Am I wrong in thinking
 that if I compile both files at the same time that EventArgs in the
 first file should be resolved by -r:S.W.F?
 
 // FECdomain.cs
 using System.Text.RegularExpressions;
 
 delegate void StringSplitHandler(object src, SplitStringArgs args);
 
 class SplitStringArgs : EventArgs
 {
   private SplitStringArgs() {}
   public SplitStringArgs(string[] strings)
   {
 this.strings = strings;
   }
 
   string[] strings;
   public string[] Strings
   {
 get { return strings; }
 set { strings = value; }
   }
 }
 
 class DomainSplitter
 {
   Regex re = new Regex(\\s);
   string[] substrings;
 
   public event StringSplitHandler StringsSplit;
 
   public void SplitString(string inStr)
   {
 substrings = re.Split(inStr);
 StringsSplit(this, new SplitStringArgs(substrings));
   }
 }
 
 //FECdomain2.cs
 using System;
 using System.Drawing;
 using System.Windows.Forms;
 
 class FECdomain : Form
 {
   TextBox tb = new TextBox();
   Button b = new Button();
   label[] labels;
   DomainSplitter domainObject = new DomainSplitter();
 
   FECdomain()
   {
 tb.Location = new Point(10, 10);
 tb.Text = The quick brown fox;
 b.Location = new Point(150, 10);
 b.Text = Split text;
 
 b.Click += new EventHandler(this.GUIEvent);
 domainObject.StringsSplit += new
 StringSplitHandler(this.DomainEvent);
 
 this.Text = Form-Event-Control;
 this.Controls.Add(tb);
 this.Controls.Add(b);
   }
 
   void GUIEvent(object src, EventArgs args)
   {
 domainObject.SplitString(tb.Text);
   }
 
   void DomainEvent(object src, SplitStringsArgs args)
   {
 string[] strings = args.Strings;
 if (labels != null)
 {
   foreach(Label l in labels)
   this.Controls.Remove(l);
 }
 labels = new Label[strings.Length];
 
 int row = 40;
 for (int i = 0; i  labels.Length; i++)
 {
   labels[i] = new Label();
   labels[i].Text = strings[i];
   labels[i].Location = new Point(100, row);
   row += 20;
 }
 this.Controls.AddRange(labels);
   }
 
   public static void Main()
   {
 Application.Run(new FECdomain());
   }
 }
 
 mcs FECdomain.cs FECdomain2.cs -r:System.Windows.Forms -r:System.Drawing
 FECdomain.cs(6) error CS0246: The type or namespace name `EventArgs'
 could not be found. Are you missing a using directive or an assembly
 reference?
 Compilation failed: 1 error(s), 0 warnings.
 
 TTFN
 
 Paul
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
-- 
 ''~``
( o o )
+--.oooO--(_)--Oooo.--+
| [EMAIL PROTECTED] FORGECOM |
| RUS,   .oooO   WEB APPLICATIONS |
| WEB DEVELOPER  (   )   Oooo. WWW.FORGECOM.CO.UK |
+-\ ((   )+
   \_)) /
 (_/


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-list] System.Net.TcpClient and IIS6?

2004-12-08 Thread rus
Hi all

I've been doing a little experiment with TcpClient (my first time ;))
and seem to have stumbled across a difference between mono and ms.NET
when talking to IIS6 servers.

I've attached the source below (apologies for bad code - it's just a
quick experiment to get used to the System.Net stuff)

If I do..
mono client.exe www.forgecom.info 80 /

under mono (1.0.4 on FC3), the output cuts out in the middle of the
response (not sure of the exact position (though it seems consistent).

under .NET (1.1 on windows 2000), the output is complete.  I've not
tested it using mono on win32, by the way.

I've compiled the source using the command:
mcs -t:exe -out:client.exe TcpClient.cs
under mono (1.0.4 on FC3) and run the same resulting exe on both
systems.

From my tests so far, mono only seems to have a problem when talking to
IIS6. IIS5 and apache seem ok!

Is this a bug or am I missing something?


Cheers,
Rus.




using System;
using System.Net;
using System.Net.Sockets;
using System.Text;

class MyClient
{

	public static void Main(string[] args)
	{
		string host = args[0];
		Int32 port = Convert.ToInt32(args[1]);
		string request = String.Format(GET {0} HTTP/1.1\r\nHost: {1}\r\nConnection: Close\r\n\r\n, args[2], host);

		Console.WriteLine(host={0}, port={1}, request={2}, host, port, request);

		string result = Get(host, port, request);
		Console.WriteLine(result);
	}
	
	public static string Get(string Hostname, Int32 Port, string request) {
		string result = ;
		int bufferSize;
		
		TcpClient client = new TcpClient(Hostname, Port);
		NetworkStream net = client.GetStream();
		using(client) {
			Byte[] sendBytes = Encoding.ASCII.GetBytes(request);
			net.Write(sendBytes, 0, sendBytes.Length);

			byte[] readBytes;
			do {
bufferSize = client.ReceiveBufferSize;
readBytes = new byte[bufferSize];
net.Read(readBytes, 0, bufferSize);
result += Encoding.ASCII.GetString(readBytes);
			} while(net.DataAvailable);
		}
		net.Close();
		client.Close();
		
		return(result);
	}
}



Re: [Mono-list] console interface

2004-10-20 Thread rus
The closest that I've come across was an example of using the external
curses library through P/Invoke.  Unfortunately I don't know much about
it and haven't tried it.

A quick googling also suggests that portable.NET has curses bindings.

Hope that helps as a start point..



On Tue, 2004-10-19 at 19:58, Alejandro Mery wrote:
 Hi, i would like to know if there is 
 any kind of console interface for mono. i am looking for something like clipper 
 (xbase like foxpro).
 in fact i'm coding on clip (www.itk.ru) a native clipper compiler for unix-like, 
 because i need the old but great (quick and easy) DOS-like interface.
 i want to share business and data libraries between the diferent interfaces. web, 
 gtk and console. Clip gives me that but i would like to know if i can use .net 
 without coding every console interface component myself.
 
 Thanks in advance,
 Alejandro Mery
 
 ___
 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] Monodoc -- Can we use this to document our application?

2004-09-30 Thread rus
Hi all

On a related note, I was just wondering.. is there any way of using NDoc
to generate monodoc documentation?

I've used NDoc on a windows C# project before and it's pretty nifty for
producing MSDN style documentation from XML comments in the C# code.

It would be nice to be able to use the same mechanism to produce monodoc
targeted documentation too


Rus
Forgecom web applications
http://www.forgecom.co.uk



On Thu, 2004-09-30 at 13:33, Joshua Tauberer wrote:
 Kevin Francis wrote:
  We are working on a Mono based application, and would like some way of
  documenting our work. Can Monodoc be used for this purpose? How?
 
 To document your own libraries, you mean?  Yes.  Here's the short of it:
 
 Check out the monodoc module from CVS.  In the tools directory, run 
 make.  The program monodocer is used to generate stub XML documentation 
 files for an assembly (with the --stub and --assembly options), or later 
 update those XML files based on the changes to the assembly (with the 
 --update and --assembly options).
 
 Then use your favorite text editor or Monodoc to edit the XML files to 
 actually write the documentation.  With Monodoc (from CVS), run it with 
 the --local-edit path/to/docs option to edit the XML files.
 
 Good luck.  If you have any monodocer comments/suggestions, let me know.

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