[Mono-winforms-list] Re: Problem with Form.Show() and Thread.Sleep()

2005-06-08 Thread Christopher Nehren
On 2005-06-08, Kornél Pál scribbled these
curious markings:
 I have tried the code you sent on Windows using .NET Framework and Mono as
 well. It worked but creating a window without a message queue will lead to
 an unresponsive window.

As a matter of fact, that's precisely the point of that example. There's
several examples following it which fix the problem (though I have
problems with those, too). I would imagine that it's a problem with my
setup if it's not failing in the proper way, yes? I'm trying to learn
WinForms with Mono, and it's difficult if I don't see the same thing the
author describes.

 You should use only the following line in Main:

 Application.Run(new Form());

Yep, that's mentioned as well.

Best Regards,
Christopher Nehren
-- 
I abhor a system designed for the user, if that word is a coded
pejorative meaning stupid and unsophisticated. -- Ken Thompson
If you ask the wrong people questions, you get Joel on Software.
Unix is user friendly. However, it isn't idiot friendly.

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


[Mono-list] Re: mod_mono and apache virual servers

2005-05-22 Thread Christopher Nehren
On 2005-05-21, Tomek Kluz scribbled these
curious markings:
 Hello

 I installed mod_mono with apache 2., and everything is working perfect, =
 but i have no idea, how to configure it for virtual server. I have many =
 virual domain (with php+mysql pages), and now want to publish one with =
 mono+apache. Certainly it works with alias ie: www.xxx.com/sth but I =
 want it wroking for www.xxx.com. Any ideas?=20
 Thx, and regards=20
 tk.

Here's a VirtualHost directive that's in my httpd.conf:

VirtualHost 192.168.0.6:80
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/home/apeiron/public_html
ServerName www.coitusmentis.info
ServerAlias coitusmentis.info *.coitusmentis.info
ErrorLog /var/log/coitusmentis-error.log
CustomLog /var/log/coitusmentis-access.log combined
ScriptAlias /perl /usr/home/apeiron/public_html/perl
Location /perl
Options +ExecCGI
PerlSendHeader On
PerlOptions +GlobalRequest
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
/Location
Alias /asp /usr/home/apeiron/public_html/asp
MonoApplications /asp:/usr/home/apeiron/public_html/asp
MonoExecutablePath /usr/local/bin/mono
MonoServerPath /usr/local/lib/mono/1.0/mod-mono-server.exe
MonoDocumentRootDir /usr/home/apeiron/public_html/asp
Location /asp
SetHandler mono
/Location
/VirtualHost

FreeBSD 5.4-PRERELEASE (yeah, I know, but it's been up for 51 days, heh
:). Apache 2.0.54.

Best Regards,
Christopher Nehren
-- 
I abhor a system designed for the user, if that word is a coded
pejorative meaning stupid and unsophisticated. -- Ken Thompson
If you ask the wrong questions, you get answers like 42 and God.
Unix is user friendly. However, it isn't idiot friendly.

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


[Mono-list] Maintaining just one DB (Npgsql) connection for web services

2005-05-20 Thread Christopher Nehren
I'm in the process of designing some web services, and they'll speak to
a database through an assembly that I'll also be writing. I've learned
from my experience in other database-backed web development environments
that it's generally a good idea to reuse one connection to the database
rather than spawning a new one for every request. I haven't been able to
find anything documenting how to enable this for .NET data providers. I
have a few ideas of how to implement it using things like a Unix socket
(this code will only run on a Unix system, so no need to worry about
lack of portability), but I'd like some nice, simple method call that I
can use which will handle the magic for me. Thanks in advance for any
information.

Best Regards,
Christopher Nehren

P.S.: Thanks a million, million times for Mono. I have been obsessing
over it for at least three months now. :)
-- 
I abhor a system designed for the user, if that word is a coded
pejorative meaning stupid and unsophisticated. -- Ken Thompson
If you ask the wrong questions, you get answers like 42 and God.
Unix is user friendly. However, it isn't idiot friendly.

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


[Mono-list] Re: Maintaining just one DB (Npgsql) connection for web services

2005-05-20 Thread Christopher Nehren
On 2005-05-20, Joe Audette scribbled these
curious markings:
 I think trying to use just 1 connection is not a good
 idea. You want to use connection pooling to re-use
 connections but not just 1 connection or your app
 won't scale to many users.

Hmm, thanks for the advice. Connection pooling does sound like what I
want.

 Support for connection pooling is built in to the .NET
 data providers.

Aha, that's the rub! This automagic Just Works is why I love the .NET
platform.

Thanks again, and thanks especially for the very speedy reply!

Best Regards,
Christopher Nehren
-- 
I abhor a system designed for the user, if that word is a coded
pejorative meaning stupid and unsophisticated. -- Ken Thompson
If you ask the wrong questions, you get answers like 42 and God.
Unix is user friendly. However, it isn't idiot friendly.

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


[Mono-list] Viability of Gecko# for a full-featured browser

2005-04-24 Thread Christopher Nehren
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

[I'm not really sure where to send this; if there's a better place,
please do direct me thereto. Thanks.]

In following with my desire to learn C# / .NET / Gtk# / etc., I've
started putting together a web browser. The API is great, and very easy
to understand. What I'd like to know, though, is how viable Gecko# is
for developing a real web browser. I'd eventually like to develop
something as complete as Epiphany or Galeon -- again, just as an
educational thing, but the source will be released -- but as I'm fairly
new to all of this I'm not too sure about how realistic the above goal
is. Can anyone with more familiarity with the current state of the APIs
give some advice on what I need to / should do in order to accomplish my
goal of a .NET web browser?

Best Regards,
Christopher Nehren
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCa+Isk/lo7zvzJioRAjczAJ0YtQxNwaTmVK8dZMurq7IVSXM62wCfQpGH
1cBbBT6Un1RLEC06ycBjNCA=
=M3+F
-END PGP SIGNATURE-

-- 
I abhor a system designed for the user, if that word is a coded
pejorative meaning stupid and unsophisticated. -- Ken Thompson
If you ask the wrong questions, you get answers like 42 and God.
Unix is user friendly. However, it isn't idiot friendly.

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


[Mono-list] NullReferenceExceptions with gecko-sharp

2005-04-23 Thread Christopher Nehren
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I've been trying to build a non-Glade browser on FreeBSD as an
educational sort of thing (sure, point and click in Glade is great, but
how much would I really learn that way? Typing all of those .PackStart
and .PackEnd methods has really taught me a lot). The problem is that
whenever I try to access a URL via the Activated signal of my Entry or
the Clicked signal of my Back / Forward buttons (which directly call the
.GoBack / .GoForward methods of my WebControl object) the process
crashes with a NullReferenceException on the line of my
Application.Run() call. I can't discern why the Glade# projects that
I've found have been able to do this without crashing, but I'd like to
think that there is a way. You can find the code at
http://www.coitusmentis.info/browser.cs . Yes, I am just learning C#,
and Gtk#, and GUI programming, and Gecko embedding. Thanks for all
assistance.

Best Regards,
Christopher Nehren
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCaoOdk/lo7zvzJioRAg70AKCkTZpVUH5i11xzr5HrUo6XLyc08ACgh+tK
Cpk/oSedouHYcxJ7w5HIDjs=
=Aweb
-END PGP SIGNATURE-

-- 
I abhor a system designed for the user, if that word is a coded
pejorative meaning stupid and unsophisticated. -- Ken Thompson
If you ask the wrong questions, you get answers like 42 and God.
Unix is user friendly. However, it isn't idiot friendly.

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


[Mono-list] Re: NullReferenceExceptions with gecko-sharp

2005-04-23 Thread Christopher Nehren
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2005-04-23, Christopher Nehren scribbled these curious markings:
 The problem is that whenever I try to access a URL via the Activated
 signal of my Entry or the Clicked signal of my Back / Forward buttons
 (which directly call the .GoBack / .GoForward methods of my WebControl
 object) the process crashes with a NullReferenceException on the line
 of my Application.Run() call.

Hmm, turns out that the Entry and WebControl objects were null at the
time the event was fired. Moving their constructors to the top of the
GUI method solved the problem.

Best Regards,
Christopher Nehren
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCaxmVk/lo7zvzJioRAg9QAJ9tdpST95b7huMPWBmNZlaDrQQNVQCcCzHK
Ws179ibgWpUhIUUoCeM9YvY=
=0s+X
-END PGP SIGNATURE-

-- 
I abhor a system designed for the user, if that word is a coded
pejorative meaning stupid and unsophisticated. -- Ken Thompson
If you ask the wrong questions, you get answers like 42 and God.
Unix is user friendly. However, it isn't idiot friendly.

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