Re: Can system modify an environment variable in the current environment?

2021-09-02 Thread Roel Janssen
call finishes. Instead you want to use the "setenv" procedure instead: (setenv "GUILE_LOAD_PATH" (string-append "/some/random/text:" (getenv "GUILE_LOAD_PATH"))) Or in this particular case, use the "add-to-load-path" procedure: https://www.gnu.org/software/guile/manual/html_node/Load-Paths.html Kind regards, Roel Janssen

Re: Difference when calling guile script from C vs interpreter

2020-10-20 Thread Roel Janssen
itive_load_path (see documentation). > > I don't know if/how the Guile compiler can be called from C.  Maybe > someone more experienced can help further. > > > - Taylan > > Once you've compiled the Guile module, it should be enough to set the GUILE_LOAD_COMPILED_PATH environment variable before booting Guile in C. Here's what I use: https://github.com/UMCUGenetics/sparqling-genomics/blob/master/web/sg-web.c.in#L314-L356 Kind regards, Roel Janssen

Re: How do you record output of both STDERR and STDIN to a string?

2020-09-10 Thread Roel Janssen
uot;~a ~a -U ~a -P ~a verbose=off csv_rfc4180=on csv_rfc4180_field_separator=, exec='~:a' 2> ~a" (isql-bin) (isql-port) (rdf-store- username) (rdf-store-password) (string-append "SPARQL " query) (port-filename error-port) (setvbuf port 'block 4096) (values error-port port))) --8<---cut here---end--->8--- I certainly hope someone can come up with a better solution! Kind regards, Roel Janssen

Re: Happy birthday, Guile!

2020-02-16 Thread Roel Janssen
lti-format HTTP requests/responses for building RESTful interfaces: https://github.com/UMCUGenetics/sparqling-genomics/blob/master/web/www/db/api.scm It's not perfect, and probably needs some work to be generic enough to suite other use-cases than the one I wrote it for. Kind regards, Roel Janssen

Re: Logging in Guile

2020-01-13 Thread Roel Janssen
#t, no message is written. See: https://github.com/UMCUGenetics/sparqling-genomics/blob/dc5fea515c30aa26ff60b77911438689473d125b/web/ldap/authenticate.scm.in#L148 Kind regards, Roel Janssen

Re: [Wikidata] [ANN] nomunofu v0.1.0

2019-12-23 Thread Roel Janssen
On Mon, 2019-12-23 at 09:56 +0100, to...@tuxteam.de wrote: > On Sun, Dec 22, 2019 at 06:36:06PM -0500, Ted Thibodeau Jr via General Guile > related discussions wrote: > > [...] > > > Hi, Amirouche -- > > > > Kingsley's points about tuning Virtuoso to use available > > RAM [1] and other system r

Re: scm file parsing

2019-01-04 Thread Roel Janssen
++. Do you know any `scm` file parsing or any other solution for my needed? In fact I want to add/remove/modify parameters of this config file. Regards, Hamzeh You could use Guile's C API. It's in Guile's reference manual. Kind regards, Roel Janssen

Re: Trouble parsing a response

2018-12-14 Thread Roel Janssen
On 13-12-18 23:29, swedebu...@riseup.net wrote: On 2018-12-13 23:03, Roel Janssen wrote: On 13-12-18 17:06, swedebu...@riseup.net wrote: On 2018-12-13 16:01, swedebu...@riseup.net wrote: snip I tried with the file attached but got this because the driver does not support URIs but only

Re: Trouble parsing a response (Was: Re: New library: guile-wikidata)

2018-12-13 Thread Roel Janssen
son-read-number _) 148:28 0 (read-number _) json/parser.scm:148:28: In procedure read-number: Throw to key `json-invalid' with args `(#>)'. Maybe this is a bug in (json)? It looks like the JSON response is not (only) JSON, or simply invalid. Maybe the "text/xml" or "text/csv" content-type will work better for you. I noticed that each back-end provides their own structure for XML and JSON, so I used the somewhat quirky CSV format as a work-for-all response type. I hope this helps. Kind regards, Roel Janssen

Re: New library: guile-wikidata

2018-12-11 Thread Roel Janssen
nd it interesting: https://github.com/UMCUGenetics/sparqling-genomics The Guile Scheme parts are in the "web" subfolder. Kind regards, Roel Janssen

Re: Streaming responses with Guile's web modules

2018-09-22 Thread Roel Janssen
Roel Janssen writes: > Amirouche Boubekki writes: > >> On 2018-09-18 21:42, Roel Janssen wrote: >>> Dear Guilers, >>> >>> I'd like to implement a web server using the (web server) module, but >>> allow for “streaming” results. The way

Re: Streaming responses with Guile's web modules

2018-09-19 Thread Roel Janssen
Roel Janssen writes: > Amirouche Boubekki writes: > >> On 2018-09-18 21:42, Roel Janssen wrote: >>> Dear Guilers, >>> >>> I'd like to implement a web server using the (web server) module, but >>> allow for “streaming” results. The way

Re: Streaming responses with Guile's web modules

2018-09-19 Thread Roel Janssen
Amirouche Boubekki writes: > On 2018-09-18 21:42, Roel Janssen wrote: >> Dear Guilers, >> >> I'd like to implement a web server using the (web server) module, but >> allow for “streaming” results. The way I imagine this would look like, >> is somet

Streaming responses with Guile's web modules

2018-09-18 Thread Roel Janssen
what would be a good starting point to implement this? Kind regards, Roel Janssen

Re: Warnings `_IOFBF' is deprecated. Use the symbol 'block instead.

2018-07-12 Thread Roel Janssen
Ludovic Courtès writes: > Hello, > > Roel Janssen skribis: > >> When compiling my project, setting GUILE_WARN_DEPRECATED to "detailed", >> I get various warnings like these: >> `_IOFBF' is deprecated. Use the symbol 'block instead. >&g

Warnings `_IOFBF' is deprecated. Use the symbol 'block instead.

2018-07-08 Thread Roel Janssen
he symbol 'line instead. I grepped the source code of my project and I cannot find any instance of "_IOFBF", "_IONBF", and "_IOLBF". What's the situation with these, and how can I resolve these deprecation warnings? Kind regards, Roel Janssen

Digest access authentication with http-get.

2018-04-16 Thread Roel Janssen
Dear Guilers, I would like to communicate over HTTP with a remote site that uses digest access authentication. Is there a Guile module that can handle this? If not, would it be worthwhile to add it to the “(web client)” module? Kind regards, Roel Janssen

Re: neon: git for structured data [Was: Functional database]

2018-02-21 Thread Roel Janssen
%null-pointer "text/turtle" %null-pointer)) (define serialized (rdf-serializer-serialize-model-to-string serializer local-uri model)) (format #t "Serialized: ~s~%" (pointer->string serialized)) (rdf-uri-free local-uri) (rdf-model-free model) (rdf-storage-free store) (rdf-world-free

Re: ffi-help: status to 19 Aug 2017

2017-11-09 Thread Roel Janssen
I am confused on how to get started. Where does the "compile-ffi" subcommand for "guild" come from? Kind regards, Roel Janssen

Re: Questions about the (web client) module.

2017-07-20 Thread Roel Janssen
Hi Ludo’, Thanks for your response. Ludovic Courtès writes: > Hi Roel, > > Roel Janssen skribis: > >> When I use http-post, and I want to change the HTTP header called >> "Content-Type", I seem to need to spell it as "content-type" in the >>

Questions about the (web client) module.

2017-07-20 Thread Roel Janssen
ild-request: web/request.scm:184:10: Bad request: Bad value for header content-type: "multipart/form-data; boundary=..." This is, however, a valid Content-Type. So, why does content-type need to be spelled out lowercased? And why can't it handle "multipart/form-data"? Kind regards, Roel Janssen