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
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
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
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
#t, no message is written.
See:
https://github.com/UMCUGenetics/sparqling-genomics/blob/dc5fea515c30aa26ff60b77911438689473d125b/web/ldap/authenticate.scm.in#L148
Kind regards,
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
++.
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
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
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
nd it interesting:
https://github.com/UMCUGenetics/sparqling-genomics
The Guile Scheme parts are in the "web" subfolder.
Kind regards,
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
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
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
what would be a good starting point to implement this?
Kind regards,
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
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
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
%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
I am confused on how to get
started. Where does the "compile-ffi" subcommand for "guild" come from?
Kind regards,
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
>>
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
21 matches
Mail list logo