Re: [AOLSERVER] missing access log entries

2009-04-03 Thread Tom Jackson
. tom jackson On Fri, 2009-04-03 at 14:54 -0500, Andrew Steets wrote: My original concern was with the access logging proc, which happens to be run as a trace filter. I think that the access log entries should be generated regardless of whether or not ns_adp_abort is called. I don't care too

Re: [AOLSERVER] missing access log entries

2009-04-03 Thread Tom Jackson
structure which doesn't mess with the one built into Tcl. I wish Tcl would produce a generic [catch], I call it [catchonly] [catchonly] would ignore all un-enumerated return codes and would look like a simple switch statement, minus the default block. Probably enough for now. tom jackson

Re: [AOLSERVER] missing access log entries

2009-04-02 Thread Tom Jackson
from a preauth or postauth filter. This effect is to skip to trace filters, not past them. Skipping trace filters even on an aborted connection would be a disaster for any application which relies on cleanup of resources. tom jackson On Thu, 2009-04-02 at 11:12 +0200, Gustaf Neumann wrote: Andrew

Re: [AOLSERVER] missing access log entries

2009-04-02 Thread Tom Jackson
the intended fastforward which ns_adp_abort should be doing but isn't when called from inside an adp. tom jackson On Thu, 2009-04-02 at 18:03 -0500, Andrew Steets wrote: What was the original purpose of trace filters? At the C API level there is a distinction between between a trace filter

Re: [AOLSERVER] missing access log entries

2009-04-02 Thread Tom Jackson
errors are handled differently. Only errors thrown in a preauth filter are nullified, which allows trace filters to run. This seems strange. tom jackson On Thu, 2009-04-02 at 18:03 -0500, Andrew Steets wrote: What was the original purpose of trace filters? At the C API level

Re: [AOLSERVER] missing access log entries

2009-03-29 Thread Tom Jackson
On Fri, 2009-03-27 at 09:56 +0100, Gustaf Neumann wrote: Andrew Steets schrieb: As Scott suggested, we should probably log everything, at least for some reasonable value of everything. Even if you switch the access log trace to the cleanup callback, you still don't get access entries for

Re: [AOLSERVER] missing access log entries

2009-03-29 Thread Tom Jackson
, and you use ns_adp_abort when you have decided to call ns_returnxxx and discard the ADP buffer. I think that the ADP buffer is only flushed if you have executed ns_adp_stream, so you should always be able to abort knowing that nothing has been sent to the client. tom jackson -- AOLserver - http

Re: [AOLSERVER] missing access log entries

2009-03-26 Thread Tom Jackson
this actually close a connection, or does it just remove what is in the buffer? tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to lists...@listserv.aol.com with the body of SIGNOFF AOLSERVER in the email message. You can leave the Subject

Re: [AOLSERVER] missing access log entries

2009-03-26 Thread Tom Jackson
think normal logging should take place. The best evidence for normal logging is that ns_adp_abort is called intentionally, so the programmer can decide when to do it. tom jackson On Thu, 2009-03-26 at 16:11 -0400, Scott Goodwin wrote: All connections should be logged as requests that came from

[AOLSERVER] ns_internalredirect

2009-03-07 Thread Tom Jackson
twice. I guess it doesn't matter. For now, I would suggest just using the old module nsrewrite. tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to lists...@listserv.aol.com with the body of SIGNOFF AOLSERVER in the email message. You

Re: [AOLSERVER] TCL 8.5 and ns_proxy segfault

2009-03-07 Thread Tom Jackson
I noticed that his tcl8.5 was located in /usr/lib: directory) open(/usr/lib/libtcl8.5.so.0, O_RDONLY) = Don't know if he compiled it himself, or used it to compile AOLserver. But in this case, the symptom is usually very strange and random segfaults. tom jackson

Re: [AOLSERVER] strace of error Fatal: received fatal signal 11.

2009-03-02 Thread Tom Jackson
exactly were they will show up. (and strace should show which tcl is loaded). tom jackson On Mon, 2009-03-02 at 13:41 +0300, Alexey Pechnikov wrote: Hello! I did remove clock command but now ns_returnredirect is produce segfault. It's terrible. Best regards. -- AOLserver - http

Re: [AOLSERVER] AOL + SQLite+nsproxy question

2009-03-01 Thread Tom Jackson
On Sun, 2009-03-01 at 13:02 +0300, Alexey Pechnikov wrote: Hello! On Sunday 01 March 2009 04:37:44 Don Baccus wrote: nspostgres works fine with both aolserver 4.0.10 and 4.5. It's used in production at education sites with tens of thousands of users running aolserver/postgres-based

Re: [AOLSERVER] AOL + SQLite+nsproxy question

2009-03-01 Thread Tom Jackson
On Sun, 2009-03-01 at 14:06 +0300, Alexey Pechnikov wrote: Hello! On Saturday 28 February 2009 21:35:21 Tom Jackson wrote: There is an nsdb module nssqlite3. Here is the readme: http://junom.com/gitweb/gitweb.perl?p=aolserver.git;a=blob;f=nssqlite3/README There are a lot of modules

Re: [AOLSERVER] AOL + SQLite+nsproxy question

2009-02-28 Thread Tom Jackson
There is an nsdb module nssqlite3. Here is the readme: http://junom.com/gitweb/gitweb.perl?p=aolserver.git;a=blob;f=nssqlite3/README;hb=HEAD You can get the module code out of sourceforge, or from the git repo above. tom jackson On Sat, 2009-02-28 at 19:12 +0300, Alexey Pechnikov wrote: Hello

Re: [AOLSERVER] nsd crash

2009-01-26 Thread Tom Jackson
above. tom jackson On Mon, 2009-01-26 at 14:16 +, Bernhard van Woerden wrote: Thanks Juan, It was indeed built from the port. I'll try what you suggest and see if I can track down something repeatable. I'll also try monit or deamon tools to supervise meantime. Kind regards Bernhard 2009/1

Re: [AOLSERVER] Error code: ssl_error_rx_record_too_long

2008-11-07 Thread Tom Jackson
/gitweb/gitweb.perl?p=aolserver.git;a=tree;f=aolserver/nsbgwrite/bgwrite One difference is that my example uses [ns_bgwrite channel] instead of [ns_conn channel]. tom jackson On Wed, 2008-11-05 at 18:19 +0100, Gustaf Neumann wrote: Check out http://openacs.org/xowiki/tag/bgdelivery aolserver

Re: [AOLSERVER] aolserver.com website unavailable

2008-09-20 Thread Tom Jackson
What was broken? Is it just the website hosting? tom jackson On Sat, 2008-09-20 at 08:07 -0500, Rusty Brooks wrote: I do AOLServer hosting, sort of. That is, I do AOLServer development and there aren't many people who do hosting, so I host all my customers myself. I'd be happy to donate

Re: [AOLSERVER] problem getting binary data from C to a tcl object to an aolserver connection

2008-08-28 Thread Tom Jackson
Mark, Hard to say what you are actually trying to do, but UTF-8 is a byte array, if you want to call it that. The problem you are seeing may be in displaying what the bytes are (which might not work for binary data, try cat'ing a binary file and watch the fireworks.) tom jackson On Thu, 2008

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-22 Thread Tom Jackson
config file, if it is even there, other example configs could be set to cache = off. Happy Weekend everyone. tom jackson On Fri, 2008-08-22 at 13:18 -0400, Jim Davidson wrote: Ah -- I (finally) understand... I must have missed the detail re: serialization in message #30 out of #60 or so

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-21 Thread Tom Jackson
to you, don't try to provide it using named files as temporary storage. tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-21 Thread Tom Jackson
is a lost cause. tom jackson On Thu, 2008-08-21 at 12:46 -0700, Jeff Rogers wrote: Titi Alailima wrote: what you were looking for. Even with the mtime fix there's no guarantee that systems which muck around with mtime (such as tar) won't cause separate files to collide. For a contrived

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-21 Thread Tom Jackson
} But it is very difficult (impossible) to safely read/write files unless you can synchronize access (you need cooperation) and/or use atomic file operations (serialize access). The above example uses both. tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-21 Thread Tom Jackson
changes on disk, and it is less than 2 sec old, it is served directly, skipping the cache. tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the body of SIGNOFF AOLSERVER in the email message. You can leave

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-20 Thread Tom Jackson
is not really intended as an end user API. It usually ends up as some more friendly procedure that handles things like relative paths, security, etc. tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the body of SIGNOFF

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-20 Thread Tom Jackson
ns_returnfp, _AND_ a particular series of commands. No single API will serve as some kind of shield of protection, it takes a lot of effort. Anything involving files opens up a whole series of problems. They are not bugs. tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-20 Thread Tom Jackson
. The internal API handles a handful of annoyingly picky but important and standard website and HTTP features. It also provides a number of hooks for customization related to these features. tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-19 Thread Tom Jackson
way, but whatever. tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of your email blank.

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-19 Thread Tom Jackson
the content is generated, its expected lifespan, its size, and its potential for reuse. tom jackson On Tue, 2008-08-19 at 03:00 -0400, Andrew Piskorski wrote: On Mon, Aug 18, 2008 at 06:06:23PM -0700, John Caruso wrote: That'd be an improvement over the current situation, but it's still

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-19 Thread Tom Jackson
John, It is not a bug in ns_returnfile. tom jackson On Tue, 2008-08-19 at 11:52 -0700, John Caruso wrote: On Tuesday 10:40 AM 8/19/2008, Jim Davidson wrote: I would suggest the code snippet of create temp file and use fastpath to return contents is not a use case I was solving

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-19 Thread Tom Jackson
of writing robust code, or how to configure and maintain a secure internet application, or take advice on how to do so. But please, go tell the security police about our insecure file commands. tom jackson On Tue, 2008-08-19 at 15:33 -0700, John Caruso wrote: On Tuesday 02:10 PM 8/19/2008, Jeff

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-18 Thread Tom Jackson
is reading and writing the same file at the same time, which has nothing to do with fastpath. You should use a cond/mutex to serialize access. tom jackson On Mon, 2008-08-18 at 12:33 -0700, John Caruso wrote: Consider the following pseudocode snippet: ...generate file $myfile in some way

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-18 Thread Tom Jackson
are you writing the content to disk? Can't you use a temp variable. tom jackson On Mon, 2008-08-18 at 14:13 -0700, John Caruso wrote: On Monday 01:33 PM 8/18/2008, Tom Jackson wrote: It's not be a data corruption issue because you are choosing to overwrite the old data with new data using

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-18 Thread Tom Jackson
/ns_conn files code which should use fd's instead of files. We need a little code cleanup here. tom jackson On Mon, 2008-08-18 at 15:30 -0700, Jade Rubick wrote: I would call that a security issue then. Leaking the wrong data to the wrong connection is pretty serious. Jade Jade Rubick

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-18 Thread Tom Jackson
. Using the name would result in caching the same object under different names. This is a much more likely situation than this so called bug. tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the body

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-18 Thread Tom Jackson
is how ns_returnfile is being used in the example. tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of your email blank.

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-18 Thread Tom Jackson
second as the first, reuses the inode, has the exact same size. This is why you should not use linked files (with path names) as temporary storage. Instead, open the file then unlink it (delete it from the filesystem), then use it via the fd. In short: there is no bug. tom jackson -- AOLserver

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-18 Thread Tom Jackson
On Tue, 2008-08-19 at 10:01 +1000, russell muetzelfeldt wrote: On 19/08/2008, at 9:37 AM, Tom Jackson wrote: On Mon, 2008-08-18 at 15:38 -0700, Jeff Rogers wrote: While I'd agree this is a bug in fastpath, the real problem is that fastpath is being used at all in this case. I don't

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-18 Thread Tom Jackson
in the reasoning here is that the important thing is the file name with path, and that somehow this name is immutably linked to some content. This is delusion. You want a transactional database but you are using a filesystem. Grow up. BTW, fastpath has configuration parameters. Maybe bone up on those first. tom

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-18 Thread Tom Jackson
. The bug is not in ns_returnfile. tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of your email blank.

Re: [AOLSERVER] Data corruption with fastpath caching

2008-08-18 Thread Tom Jackson
On Tue, 2008-08-19 at 11:37 +1000, russell muetzelfeldt wrote: On 19/08/2008, at 10:56 AM, Tom Jackson wrote: You want a transactional database but you are using a filesystem. Grow up. and If your application wasn't the responsible party which violated the expectation you state

Re: [AOLSERVER] Upload size limits

2008-07-10 Thread Tom Jackson
line is new. Unfortunately the new ns_limits and ns_pools API go around this, so there is no way to easily find what the config is. tom jackson On Thu, 2008-07-10 at 09:50 +0200, Juan José del Río wrote: Yes, Jay. New method is: ns_limits set default -maxupload [expr 1024 * 1024 * 1024

Re: [AOLSERVER] Custom server error page crash

2008-07-10 Thread Tom Jackson
Is anything registered to handle the PROPFIND method? I'm just guessing that could be part of the problem. Also, does /500.html exist? Do you have any other debugging turned on? What other handlers do you have setup? tom jackson On Wed, 2008-07-09 at 19:15 -0700, William Scott Jordan wrote

Re: [AOLSERVER] Upload size limits

2008-07-10 Thread Tom Jackson
I think there is a new API, mostly undocumented: ns_limits. It is possible that these config params have been moved to that API. tom jackson On Wed, 2008-07-09 at 21:10 -0400, Jay Rohr wrote: Did the method of specify the max upload size change in 4.5? 4.0.x was ns_param maxinput

Re: [AOLSERVER] Error using MediaWiki on AOLServer

2008-07-10 Thread Tom Jackson
the result here. tom jackson On Thu, 2008-07-10 at 08:30 -0300, Eduardo Santos - Novo telefone: 8148-6611 wrote: No help on that? 2008/7/7, Eduardo Santos [EMAIL PROTECTED]: Hi everibody, I'm trying to make mediawiki work on AOLServer 4.5.0 + PostgreSQL 8.1

Re: [AOLSERVER] Custom server error page crash

2008-07-10 Thread Tom Jackson
ns_register_filter trace PROPFIND /* ::reject_propfind break tom jackson On Thu, 2008-07-10 at 12:32 -0700, William Scott Jordan wrote: To answer Tom's questions, nope we don't have anything specifically registered to handle the PROPFIND method. And yes, 500.html exists as a plain HTML file. So how

Re: [AOLSERVER] Basic configuration question - serving multiple domains on one (old) server

2008-07-07 Thread Tom Jackson
along an identical path. tom jackson On Mon, 2008-07-07 at 10:15 -0400, David Siktberg wrote: Since 2000, I have been running a site for our small business on AOLserver/3.3.1+ad13 (yup I know it's ancient) with a core of the ACS 3.1 infrastructure scripts from 2000 (ditto) and using

Re: [AOLSERVER] Basic configuration question - serving multiple domains on one (old) server

2008-07-07 Thread Tom Jackson
The VAT instructions also talk about running multiple ACS instances on the same AOLserver instance (there are additional .ini files that are part of ACS/OpenACS config startup): http://rmadilo.com/files/vat/index.html tom jackson On Mon, 2008-07-07 at 08:01 -0700, Tom Jackson wrote

Re: [AOLSERVER] ns_sock_select issues again

2008-05-07 Thread Tom Jackson
Maybe you have a bad character somewhere in the file, or the wrong char encoding or something? tom jackson On Wednesday 07 May 2008 12:31, Titi Alailima wrote: I tried a couple more things. I re-defined _ns_http_puts with the original definition and everything worked fine. This got me

Re: [AOLSERVER] Fun, free applications for building personal sites.

2008-05-06 Thread Tom Jackson
...however it does look like it uses tdom. Right Web Services for Tcl requires Tcl 8.5 and tclhttpd, it doesn't work with AOLserver. tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the body of SIGNOFF

Re: [AOLSERVER] Fun, free applications for building personal sites.

2008-05-06 Thread Tom Jackson
coding type validation, and your internal API remain independent of the external operation interface. tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the body of SIGNOFF AOLSERVER in the email message. You can

Re: [AOLSERVER] Fun, free applications for building personal sites.

2008-05-06 Thread Tom Jackson
On Tuesday 06 May 2008 07:17, Tom Jackson wrote: I haven't found any other WSDL toolkit which can derive simple types from XML-Schema types or easily create complexTypes where minOccurs 1. Oops, I meant to say maxOccurs 1. XML-Schema structural type serialization is complicated. To do

Re: [AOLSERVER] Fun, free applications for building personal sites.

2008-05-06 Thread Tom Jackson
URL used for POSTing the request. Slowly this is coming together in the wsclient API (which will be similar to wsreturn ). tom jackson On Tuesday 06 May 2008 07:50, Rusty Brooks wrote: I don't need it as a server, I need it as a client. You mentioned something a bout being able to use the API

Re: [AOLSERVER] Fun, free applications for building personal sites.

2008-05-06 Thread Tom Jackson
as well, so those would have to be modified. But, it is a simple piece of software, only a few pages, just very brittle to external details. The client works great! I would recommend it as a first thing to try before investigating anything else. tom jackson -- AOLserver - http

Re: [AOLSERVER] Fun, free applications for building personal sites.

2008-05-06 Thread Tom Jackson
a serializer is. Is this one of those object system 'isms? tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of your email

Re: [AOLSERVER] Rolling logs in Windows

2008-05-06 Thread Tom Jackson
seem to remember that they are not that similar anyway. (For one, a single nsd can have multiple access.log files, but only one server.log file.) tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the body

Re: [AOLSERVER] Fix for ns_tmpnam under Windows

2008-05-05 Thread Tom Jackson
exclusively. # When $fp is closed file will go away. # If nsd crashes, the file also goes away. The file is actually 'unlinked' prior to use, so there is no way to access it, or even list it from the filesystem. tom jackson On Monday 05 May 2008 10:02, Titi Alailima wrote: There is a missing

Re: [AOLSERVER] Fun, free applications for building personal sites.

2008-05-05 Thread Tom Jackson
Wait, I thought mashups were simply http requests from javascript to update parts of a web page. You return either javascript, html or an xml document, which is probably a worthless option. Maybe I got this wrong, but AOLserver should be able to step into a mashup instantly. tom jackson

Re: [AOLSERVER] Fun, free applications for building personal sites.

2008-05-05 Thread Tom Jackson
with a mashup is data. Without that, there is nothing to mash. tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of your email

Re: [AOLSERVER] Fun, free applications for building personal sites.

2008-05-05 Thread Tom Jackson
On Monday 05 May 2008 19:45, Bas Scheffers wrote: On 06/05/2008, at 11:44 AM, Tom Jackson wrote: The main thing you need with a mashup is data. Without that, there is nothing to mash. And much of that data is in XML and tdom runs rings around any Java XML implementation, though not sure

Re: [AOLSERVER] Fun, free applications for building personal sites.

2008-05-05 Thread Tom Jackson
(including correct handling of min/maxOccurs, isnull, etc.) tom jackson On Monday 05 May 2008 20:04, Rusty Brooks wrote: I've used TclSoap. I wasn't like, impressed with it's speed but it seems OK. It seems quite behind the times, though, I did extensive modifications trying to get

Re: [AOLSERVER] Tcl rounding question

2008-05-04 Thread Tom Jackson
Here is a helpful link, that explains the theory: http://www2.hursley.ibm.com/decimal/ tom jackson On Sunday 04 May 2008 10:20, Bernhard van Woerden wrote: The only way to get what you expect is to do the rounding using integer arithmetic. The number 18.005 must be multiplied by 1000 to keep

Re: [AOLSERVER] Tcl rounding question

2008-05-03 Thread Tom Jackson
results can be formatted, and [format] offers many more options than just the number of decimal points. (Example of a problem with intermediate rounding: Two step round: round(18.449, 2) = 18.45 round(18.45, 1) = 18.5 One step round: round(18.449, 1) = 18.4 ) tom jackson On Saturday 03 May

Re: [AOLSERVER] Fix for ns_tmpnam under Windows

2008-04-24 Thread Tom Jackson
with a safe version. I'll try to find this old info. tom jackson On Thursday 24 April 2008 00:32, Gustaf Neumann wrote: Dear AOLserver community There was a problem with ns_tmpnam, when the aolserver was compiled under windows (esp. Vista). The Tcl commandns_tmpnam is implemented in C using tmpnam

Re: [AOLSERVER] ns_returnredirect

2008-04-22 Thread Tom Jackson
Xavier, But just note: ns_returnrediect is not used to return content, it is used to notify the client that your content has moved to another URL: ns_returnredirect / This would return to the home page of the current server. Here is a manpage on ns_return***:

Re: [AOLSERVER] ns_returnredirect

2008-04-22 Thread Tom Jackson
probably lean for putting all you tcl page code at the top of an adp inside a % %, and move it somewhere else if/when it works.) tom jackson On Tuesday 22 April 2008 09:28, Xavier Bourguignon wrote: Dossy, I just want to return it from a tcl procedure. Basically, after having done what needs

Re: [AOLSERVER] tcl variables

2008-04-21 Thread Tom Jackson
is gonna care about this tomorrow, or at least by next week. Good Luck! tom jackson On Monday 21 April 2008 02:45, Xavier Bourguignon wrote: Andrew, if you read correctly what I wrote, I said that TO ME it was offensive, I did not make a generalised comment but merely pointed out how I

Re: [AOLSERVER] tcl variables

2008-04-20 Thread Tom Jackson
/ns_adp_registertag.html In the newest version of the ADP templating system, these apparently work well together, but I'm not the expert. tom jackson On Sunday 20 April 2008 02:48, Xavier Bourguignon wrote: So Bob, what is the difference between setting the variable within the adp and setting

Re: [AOLSERVER] tcl variables

2008-04-20 Thread Tom Jackson
that the equivalent of upvar is used in regular tcl commands: % set mylist a % lappend mylist b If [lappend] didn't exist, you could do: proc lappend { listName args} { upvar $listName localList set localList [concat $localList $args] } tom jackson I would recommend you use the return value

Re: [AOLSERVER] tcl variables

2008-04-20 Thread Tom Jackson
to help you with that part of the process. tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of your email blank.

Re: [AOLSERVER] tcl variables

2008-04-19 Thread Tom Jackson
the variable have to be a global? can't I do set varname varvalue and then use in my adp? Thank you Can you give a complete and simple example of what _doesn't_ work? I don't use adps very often, but I never noticed a problem with using local variables. tom jackson -- AOLserver - http

Re: [AOLSERVER] tcl variables

2008-04-19 Thread Tom Jackson
example? There are lots of reasons the above code would not work. How do you get away with not using adps? They are the building blocks of dynamic pages aren't they? I use tcl pages to setup data and a templating system for display. tom jackson -- AOLserver - http://www.aolserver.com

Re: [AOLSERVER] ns_db and bind variable support

2008-04-17 Thread Tom Jackson
code to handle things like dml, select, 1row, 0or1row, etc., otherwise you are forced to use a catch for no other reason than to recover and return an useful error message. tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-17 Thread Tom Jackson
On Wednesday 16 April 2008 17:35, Bas Scheffers wrote: On 17/04/2008, at 9:25 AM, Tom Jackson wrote: Your script/page level code can remain unchanged even when you switch databases. That looks more like an OR mapping framework. I think that is a good thing to have also but to me

Re: [AOLSERVER] Compression

2008-04-16 Thread Tom Jackson
On Tuesday 15 April 2008 18:22, Tom Jackson wrote: I'll try to combine Daniel's code with my filter to turn on the switch for ns_return. I have a test release of the nszlib module, which handles ADP compression, and static files (taken from Daniel's example filters), plus dynamic data

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-16 Thread Tom Jackson
of the connection would be more or less random. BTW, this is one of the advantages of ns_db: a persistent shared pool of db connections, but they need to be cleaned up between requests (by ns_db releasehandle). tom jackson On Wednesday 16 April 2008 11:48, Brett Schwarz wrote: Hi, I know aolserver

Re: [AOLSERVER] Ns_QueueWait

2008-04-16 Thread Tom Jackson
nsv_ to store the task id. I'm not sure that it could be useful from the driver thread... tom jackson On Wednesday 16 April 2008 11:19, Jim Davidson wrote: Hi, I'm glad you noticed Ns_QueueWait. It was designed to address one of the most common scalability problems we had noticed at AOL where

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-16 Thread Tom Jackson
, bind variables is something which is handled by the driver, because there is no standard on how to do it. Some use ?, some use :varname. tom jackson On Wednesday 16 April 2008 13:04, Xavier Bourguignon wrote: Hi Brett, Thanks for the message. I just wanted to try it with pgtcl. My problem

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-16 Thread Tom Jackson
On Wednesday 16 April 2008 15:11, Don Baccus wrote: On Apr 16, 2008, at 2:33 PM, Tom Jackson wrote: You should look at the pg driver, I think it can emulate bind variables, or maybe it is part of the db_* API of OpenACS. You have to compile nspostgres.c for OpenACS use to make the command

Re: [AOLSERVER] aolserver and Pgtcl

2008-04-16 Thread Tom Jackson
capabilities, etc. I'm slowly working on it, very slowly. tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of your email

Re: [AOLSERVER] ns_db and bind variable support

2008-04-16 Thread Tom Jackson
-like syntax across multiple datbasese, that's fine, but it should never be the default behavior of ns_db. Right, ns_db is more generic that even SQL, so it is hard to do too much. tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email

Re: [AOLSERVER] ns_db and bind variable support

2008-04-16 Thread Tom Jackson
I haven't seen any discussion here which approximates how current SQL standards handle prepared statements. Actual prepared statements would be of little benefit in AOLserver since the lifetime of an SQL session is so short, there is very little opportunity for reuse. Prepared statements are

Re: [AOLSERVER] Compression

2008-04-15 Thread Tom Jackson
that there is no mapping of content types. tom jackson So the question is how to handle static files. One idea is to check if compression is enabled, if so, check if a compressed file exists (file.ext.gz), use the uncompressed file to figure out the content type, and return the compressed file

Re: [AOLSERVER] Compression

2008-04-12 Thread Tom Jackson
to the ns_return API. tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of your email blank.

Re: [AOLSERVER] Compression

2008-04-12 Thread Tom Jackson
to decide on compression as well. http://developer.yahoo.com/performance/rules.html Great links, there was one other thing which I wanted to ask, concerning SSL. Does anyone know if the SSL module does compression before encryption, and if so, how this might impact the decision to compress? tom

Re: [AOLSERVER] Compression

2008-04-11 Thread Tom Jackson
accept compression, etc. Then what do you do if compression is requested and it doesn't exist? Maybe this discussion happened over at OpenACS.org, but this is equivalent to an ssl layer, in general the application layer shouldn't get involved in this type of detail. tom jackson On Friday 11

Re: [AOLSERVER] Compression

2008-04-11 Thread Tom Jackson
config param to the threadpool to enable compression, but the two groups might not overlap enough to help. tom jackson On Friday 11 April 2008 14:40, Brett Schwarz wrote: On 2008.04.11, Brett Schwarz [EMAIL PROTECTED] wrote: So, what I am proposing is that ns_return follows a similar

Re: [AOLSERVER] Compression

2008-04-11 Thread Tom Jackson
On Friday 11 April 2008 16:25, Don Baccus wrote: On Apr 11, 2008, at 4:06 PM, Tom Jackson wrote: Regardless of whether this gets integrated with ns_return, or as a config, it is much better to start out with a new API, such as the ns_returnz or ns_return_compress. I would much rather

Re: [AOLSERVER] Compression

2008-04-11 Thread Tom Jackson
is larger than some minimum number of bytes. So even with a broad compression filter, you should be able to add parameters. For instance, look at Content-Length header, if than some amount, compress and rewrite the header and add others. tom jackson -- AOLserver - http://www.aolserver.com

Re: [AOLSERVER] Compression

2008-04-11 Thread Tom Jackson
, and the compression operation will always require modification of the headers, so mime type triggers seem very good. tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the body of SIGNOFF AOLSERVER in the email message. You can

Re: [AOLSERVER] Active participation (was: RE: [AOLSERVER] Minor facelift to aolserver.com)

2008-04-11 Thread Tom Jackson
On Friday 11 April 2008 19:31, Andrew Piskorski wrote: On Fri, Apr 11, 2008 at 02:11:30PM -0700, Tom Jackson wrote: It is hard to say if these newer languages (C# and MONO) have these features, probably VB and Python don't: task scheduling: ns_schedule_proc, ns_job concurrent

Re: [AOLSERVER] can someone make this change

2008-04-09 Thread Tom Jackson
Actually this is not what is needed, you need to use the tclsh for your AOLserver installation, the tcl scripts are correct. On Wednesday 09 April 2008 06:58, John Buckman wrote: Can someone make this change in CVS: the utils/*.tcl files in CVS all need: #!/usr/local/bin/tclsh prepended

Re: [AOLSERVER] can someone make this change

2008-04-09 Thread Tom Jackson
/tclsh8.4 ./nsconfig.tcl $ make install This may or may not work very well, but the scripts which don't have a shell command are all correct, and they don't need to be executable. tom jackson On Wednesday 09 April 2008 07:26, Gustaf Neumann wrote: John Buckman schrieb: the utils/*.tcl files

Re: [AOLSERVER] can someone make this change

2008-04-09 Thread Tom Jackson
John, Everyone: In case the message hasn't gotten through, there is nothing wrong with the tcl scripts which don't have the exec bit set and don't have the shell code at the top. Also ns.mak does not need to be updated. tom jackson On Wednesday 09 April 2008 08:15, John Buckman wrote: John

Re: [AOLSERVER] can someone make this change

2008-04-09 Thread Tom Jackson
although it has few additional features. tom jackson On Wednesday 09 April 2008 09:34, Dossy Shiobara wrote: On 2008.04.09, John Buckman [EMAIL PROTECTED] wrote: Can someone make this change in CVS: the utils/*.tcl files in CVS all need: #!/usr/local/bin/tclsh prepended

Re: [AOLSERVER] can someone make this change

2008-04-09 Thread Tom Jackson
Juan, You shouldn't be running configure directly! Please read the README file for how to install AOLserver. If you run ./configure, this is the type of error you should expect. tom jackson On Wednesday 09 April 2008 10:43, Juan José del Río (Simple Option) wrote: Hello Tom, That's what i

Re: [AOLSERVER] Minor facelift to aolserver.com

2008-04-08 Thread Tom Jackson
. tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: field of your email blank.

Re: [AOLSERVER] Minor facelift to aolserver.com

2008-04-07 Thread Tom Jackson
here cares at all to learn wiki or wordpress in order to document source code. Anyway, you asked. tom jackson -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the body of SIGNOFF AOLSERVER in the email message. You can

Re: [AOLSERVER] weird behaviour with time

2008-04-03 Thread Tom Jackson
header look like, what is the time on the server when this is set? tom jackson On Thursday 03 April 2008 11:28, Xavier Bourguignon wrote: Ok, this may not be an aolserver problem, but maybe an OS problem, but at the moment, when I set a cookie, I set it to live for 1 minute only. Now here

Re: [AOLSERVER] ns_db and multibyte support

2008-04-02 Thread Tom Jackson
is that AOLserver/Tcl has the tools to handle the issues. tom jackson On Wednesday 02 April 2008 15:38, Bas Scheffers wrote: Some questions to help us, and maybe give you some hints as to what might be wrong. How did you determine the fact that the value isn't a correct Tcl string? What encoding

<    1   2   3   4   5   6   7   >