Re: [Mono-list] Re: XSP: Session loosed when something is changed in the application bin's folder

2005-06-15 Thread Fabien Meghazi
 Have a look at
 
 man asp-state

Could you point me to another source of information about this ?
I can't find anything usefull about that.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] XSP: Session loosed when something is changed in the application bin's folder

2005-06-14 Thread Fabien Meghazi
Hi all,

There's somthing I don't understand (well in fact there is a lot of
things I don't understand in life, but let's focus on this one :-)  :

I've got a little test page running on Mono XSP.
When something is changed in the bin folder, the client sessions are
destroyed and I don't know how to avoid that (except using sessions
linked to a database but I don't want to do that). Explanation below :

Here's the aspx test page I used :

%@ Page language=C# Debug=true%
%
if (HttpContext.Current.Session[testing] == null) {
Response.Write(Session variable is NULLbr/Setting session variable 
to 1);
HttpContext.Current.Session[testing] = 1;
} else {
Response.Write(Session variable is  +
HttpContext.Current.Session[testing]);
}
%

First time the client request the page, the message : Session
variable is NULL
Setting session variable to 1 is displayed, then, as soon as the
session will be alive, the message should be Session variable is
1

It's working ok. But when a file is copied, changed or deleted from
the bin folder, the session is loosed.

I know that the bin folder is tracked so the web server knows if it
should recompile pages that uses dll inside, but I don't understand
why session is loosed. Is there a way to avoid this ?

PS: I also tried under .NET and IIS and the behaviour was the same. So
I guess it is and intended behaviour but I want to avoid this.

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


[Mono-list] Parser Evaluator

2005-06-08 Thread Fabien Meghazi
Hi all,

I was about to post my question when I saw the thread Javascript
eval() function in C#, I looked at it but I prefered to make seperate
thread as what I need is different.

In fact I'm trying to make a parser and evaluator of expressions. I
already got one but it was developped in a hurry and won't support
operators precedence.
Currently, it support standards operators, parenthesis, ... but it
also uses variables that are contained in a Hashtable.

Eg:

Hashtable h = new Hashtable();
h[number] = 4;
Ev.Eval(3 + (5 * number), h);

Depending on the context, I also use an EvalAsBool() function for some
conditions.

But now, I need to support operators precedence and I also want to add
functions support.

Eg:

Ev.EvalAsBool(name.IsInList(name_list) and access == 4, h);
(I use and instead of  because expressions are stored in an xml file)

This is why I would like to make an evaluator using a shift/reduce table.

I installed package mono-jay and tried the parser-cs.jay file but it's
kind complex as first example.

So my questions :

1) Do you think using jay for making this kind of evaluator is the good way
2) Does anyone knows where to get documentation about jay ? The only
documentation I found was the one in german on the unmodified java Jay
project website.

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


[Mono-list] detecting mono or microsoft compiler with preprocessor

2004-12-03 Thread Fabien Meghazi
Hi all,

Is there a #define preprocessor definition that would allow to use
if else preprocessor statements for conditionnal compiling for
mono and microsoft compiler ?


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


[Mono-list] Debian sarge ?

2004-11-20 Thread Fabien Meghazi
Does someone knows if mono will be included in debian sarge for the release ?

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


[Mono-list] Mono and sqlite

2004-11-12 Thread Fabien Meghazi
I see some examples using sqlite with datareader but I would like to
know if it's possible to use sqlite with dataset ?

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


Re: [Mono-list] Newbie question: GUI choice

2004-11-09 Thread Fabien Meghazi
 Qt# is not going very quickly, but it is not dead.

That would be perfect if in the future Windows.Form would use Qt#
under kde and Gtk# under Gnome.
That would bring consistency to mono applications under unixes and GUI
consistency is what unixes need.
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Mono C# bindings index

2004-10-24 Thread Fabien Meghazi
   Why not on www.mono-project.com?

 We possibly could do this, if setting up the software is easy ;-)

Ok, we need to find the software now ;-)

Someone knows if there are wiki project(s) for mono ?
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Mono C# bindings index

2004-10-23 Thread Fabien Meghazi
 Why not on www.mono-project.com?

Indeed, that would be the best place.
Some mono-project.com admins are around this list ?
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Mono C# bindings index

2004-10-23 Thread Fabien Meghazi
 Have a look at monoForge (www.monoforge.com) they provide free mono
 hosting.

Hosting is currently free on monofroge,  but it won't be anymore when
the project quits the beta status.
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Mono C# bindings index

2004-10-22 Thread Fabien Meghazi
 Microsoft released their .net wiki under an OSS license and it is
 hosted on sourceforge.

Well, whatever which platform is used for this wiki, perhaps this is
the good place in order to ask who would accept to participate to this
project. First of all we need to find where to host this wiki. Someone
have an idea about that ?
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Mono C# bindings index

2004-10-21 Thread Fabien Meghazi
Hi all,

I just would like to know if there is a wiki or something that index
all Mono C# bindings.
I looked on mono-project.com but found nothing.

I'm currently searching if a ffmpeg binding exists but it's hard to
goole because ffmpeg and mono keywords returns a lot of page as sound
is discussed about ffmpeg and you'll guess what means mono in this
context.


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


[Mono-list] [Off-topic] if else or switch ?

2004-10-15 Thread Fabien Meghazi
Hi all,

I was wondering if mono would generate diferent code between a switch
and an if else suite. I guess yes.
But I would like to know wich of the two code would be faster ?
(I know we are speaking of a few cpu cycles of difference, but I would like to
know anyway) I would have benchmark this but I've nothing to do this, and I
guess that this question could be theorically answered easily by those how
put their hand in mono compiler.

So which of those two methods generate faster code ?
PS: orientation is a string and the following code is in a for loop :
// -- for (int i = 0; i  orientation.Length; i++) 

Method 1
*
switch (orientation[i]) {
case 'l':
left = true;
break;
case 'r':
left = false;
break;
case 't':
top = true;
break;
case 'b':
top = false;
//break;
}


Method 2
*
char or = orientation[i];
if (or == 'l') left = true;
else if (or == 'r') left = false;
else if (or == 't') top = true;
else if (or == 'b') top = false;


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


Re: [Mono-list] [Off-topic] if else or switch ?

2004-10-15 Thread Fabien Meghazi
 Fabien Meghazi schrieb:
 
 Method 3 :)
 
   left = or == 'l';
   top = or == 't';

I can't use this because I iterate chars of the string in a foreach.
If the string is two char long, the second iteration will cancel the
effect of the first one.
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Checking key existance in a NameValueCollection

2004-10-13 Thread Fabien Meghazi
Sorry for this silly question, but I'm new to mono.

I'm trying to check if a key exists in the NameValueCollection
HttpContext.Current.Request.Form and I don't know how to do this.
I checjed the doc of NameValueCollection, I googled on this but found nothing
The only way I found is to check the string[] fetched with the help of AllKeys
but it seems heavy for just a check. Is there another way?

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


[Mono-list] Preprocessor

2004-10-12 Thread Fabien Meghazi
Hi all,

Got a simple question and I'm not lucky with google for this.
I'm searching the preprocessor directive that allows to replace names
before compilation. I know it is possible in C but I don't remember
how to, I guess it's not DEFINE.
My goal is to do this

DIRECTIVE SERVAR HttpContext.Current.RequestServerVariables.GetValues


and in my code, possibility to use

SERVAR(SERVER_NAME)

See what I mean ?

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


[Mono-list] Mono-XSP directory browsing.

2004-10-06 Thread Fabien Meghazi
Is it possible to make Mono-XSP browse the directories when there is
no index files in the current browsed directory (like apache Indexes
option) ?

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