[naviserver-devel] Naviserver keep variables after connection closed?

2020-03-12 Thread D.Fox
Hiya, I've been messing about with a small database based off a page of the tcler's wiki. https://blog.tcl.tk/1598 However I am running in to issues that an array variable are not being kept and are lost when the connection closes. If I run the following proc via command line (tclsh) it wor

Re: [naviserver-devel] Naviserver keep variables after connection closed?

2020-03-12 Thread D.Fox
Thanks, I updated the server as I was getting core dumps. I am assuming nsv_set and would I need to create the array blank first? Each ID is a new array holding information, incremented by the last ID. I get this error otherwise: -code 1 -level 0 -errorstack {INNER {invokeStk1 nsv_set db(1,Owner

Re: [naviserver-devel] Naviserver keep variables after connection closed?

2020-03-12 Thread D.Fox
($id,Name) "$petName" puts [array get db *,Owner] #results: nothing! I've tried it with and without the curly braces. Three lines of code I can't get working. Fox - Original Message ----- From: "Zoran Vasiljevic" To: "D.Fox" Cc: "naviserv

Re: [naviserver-devel] Naviserver keep variables after connection closed?

2020-03-12 Thread D.Fox
d to your terminal. nsv_set db $id $owner is the right syntax The db is your name of the array, the $id is the key and $owner is the value. Am 12. März 2020 23:42:33 MEZ schrieb "D.Fox" : >Yes. I have been reviewing the manual, but it's still not working for >me. >It&#x

[naviserver-devel] File compress larger within naviserver then standalone

2020-05-10 Thread D.Fox
Hi, I am trying to compress a image (.png) using hexadecimal and ZLIB. When running the below code within naviserver the created file is larger then if I run standalone shell. The sample code is as follows: # set file "/bench/myImage.png" set filePath "/bench/" set myFile [open $fi

Re: [naviserver-devel] File compress larger within naviserver then standalone

2020-05-11 Thread D.Fox
yImage.png.ixz]] [file size /tmp/myImage.png.ixz] }] On 10.05.20 15:59, D.Fox wrote: Hi, I am trying to compress a image (.png) using hexadecimal and ZLIB. When running the below code within naviserver the created file is larger then if I run standalone shell. The sample code is as follow

[naviserver-devel] Naviserver failing to compile with TCL9 Alpha

2021-06-28 Thread D.Fox
Hey, so -- I am aware this is all bleeding edge and really unsupported however just throwing this in the mailing list for awareness that at the moment Naviserver does not compile with TCL9a3. If you would like to submit a bug report, I am happy to do so. TCL version: TCL9a3 OS version: FreeBS

Re: [naviserver-devel] Capturing the URL query without the key?

2021-10-05 Thread D.Fox
Sorry for the inconvenience. [ns_conn query] is what I'm looking for! All solved. thanks. From: "D.Fox" To: "naviserver-devel" Sent: Tuesday, October 5, 2021 10:31:54 PM Subject: Capturing the URL query without the key? Hi, I've scanned through the man

[naviserver-devel] Capturing the URL query without the key?

2021-10-05 Thread D.Fox
Hi, I've scanned through the manual. I am aware of ns_queryget which works fine if your using key/value. URL/? Someone=Somewhere [ns_queryget Someone] would return "Somewhere" However I am looking to just capture just the key. Example: URL/?000 Capturing " 000" Is this p

[naviserver-devel] Naviserver doesn't compile against tcl8.7-alpha5

2022-01-09 Thread D.Fox
Greetings, It appears that any version of naviserver won't compile with TCL8.7a5 on FreeBSD13, however with TCL 8.7a3 naviserver does compile. The issue I am having is that: 8.7a5 gives me stubs-support, 8.7a3 does not which is required for a package. Essentially: tcl8.7a5 gives me stubs, nav

[naviserver-devel] invalid command name "detach" used within example documentation

2023-01-15 Thread D.Fox
Greetings, I was trying to setup a socket server within NaviServer. Following the example listed under ns_sockcallback within the documentation. The example uses an detach procedure although when I attempt to use the syntax I get an invalid command name error [ https://naviserver.sourceforge.