beneroth changed the topic of #picolisp to: PicoLisp language | The scalpel of software development | Channel Log: https://libera.irclog.whitequark.org/picolisp | Check www.picolisp.com for more information
f8l has quit [Ping timeout: 256 seconds]
f8l has joined #picolisp
razzy has quit [Ping timeout: 250 seconds]
razzy has joined #picolisp
razzy has quit [Ping timeout: 256 seconds]
razzy has joined #picolisp
razzy has quit [Ping timeout: 256 seconds]
razzy has joined #picolisp
razzy has quit [Ping timeout: 240 seconds]
razzy has joined #picolisp
<Nistur> mornin'
<Nistur> I just have a quick question... I currently just have a single .l file for my site, index.l, which just has the single line (in "index.html" (echo))
<Nistur> and that then just allows all the other links on my current static site to just resolve normally, like clicking the link to about.html will just load and everyone's happy...
<Nistur> but having .html on the end is not done so much any more. Would it be easy to have a url rewrite thing to basically do, "whatever URL comes in, add .html to the end, and see if we can display that page, if not, try to load it normally, or 404" (to handle things like .css and images etc)
<Nistur> it's not really a problem, and it would require me hacking around in my static site generator to create links without the .html extension to make it nice... it just got me thinking because if I put links into my CV, which is what this was initially for, then I am making the url longer, by having the .html in it...
<Nistur> if it's not sensible to do, that's fine :) Was just a thought, while I was poking away at things
<Regenaxer> Hi Nistur!
<Nistur> o/
<Regenaxer> Different URL handling sounds a bit involved
<Nistur> ahh never mind then :)
anjaa has joined #picolisp
<Regenaxer> I do not understand why index.html is dot handled directly
<Regenaxer> s/dot/not
<Nistur> um, I guess I missed something, but running the server with index.l meant that the picolisp code took precedence over the html file, so would never search for it?
<Regenaxer> (server 8080 "index.html") ?
<Regenaxer> index.html is just the default URL
<Regenaxer> if nothing is passed to the GET
<Nistur> so in names, I can do ...--server 8080 index.html -wait
<Nistur> ?
<Regenaxer> I think so
<Nistur> I might try that later
<Regenaxer> :)
<Nistur> although, that would make it more difficult for me to switch from a totally static site to one running some actual picolisp down the line :P
<Regenaxer> T
<Nistur> (which is another reason why I thought the url rewrite might come in handy, so I could hijack specific dynamic urls, rather than making a new site)
<Regenaxer> Have you looked at the wiki? It switches between static and session all the time
<Nistur> I'll take a look later then :) I couldn't get it running on aws because "reasons" (not sure why, I just gave up because I wanted to get to writing content, not debug problems :P)
<Regenaxer> yeah
<Nistur> as it is, I've not written enough content yet, having wasted too much time trying to make it look passable :P
<Nistur> need to fix up the footer to be readable, and link to a few pages, like credits.html but mostly I just need to get to actually writing text now
razzy has quit [Ping timeout: 256 seconds]
razzy has joined #picolisp
<beneroth> Nistur, you could have an assoc list of URI and local files, e.g. (quote ("/" . "index.html") ("/about" . "about.html") ("/projects/pentikeyboard" . "penti.html")) and then use (assoc ...) to look it up
<beneroth> so explicit whitelisting instead of accepting everything the client sends and adding .html - that risks serving files you don't want to serve :)
schulze has joined #picolisp
schulze has quit [Ping timeout: 256 seconds]
razzy has quit [Ping timeout: 256 seconds]
razzy has joined #picolisp
schulze has joined #picolisp
rob_w has joined #picolisp
<Nistur> Hmmm, I could do that, but I'm not sure how it'd be different than what it's currently doing, just hosting the pages anyway
razzy has quit [Ping timeout: 240 seconds]
razzy has joined #picolisp
_whitelogger has joined #picolisp
stux|away has joined #picolisp
<razzy> I have +Joint +List in database. I was unable to understand lose1>, I use combination with (put> (cdr (get Joint)) I hope it is OK.
<Regenaxer> I do not understand this
<Regenaxer> (put> Obj ...) right?
<Regenaxer> What is (cdr (get Joint))?
<Regenaxer> BTW, forget about lose1>
<Regenaxer> Very special
<beneroth> don't try this complicated stuff razzy, it's not necessary
<beneroth> just use normal (put> 'obj 'property Value) as you would with a normal +Link, forget the +Joint
<beneroth> also, you want do +List +Joint, not +Joint +List, the order matters
<Regenaxer> yes, though not forget +Joint literally, it can be just used
<beneroth> the uttermost right class is the main type of the property/relation, the once left of it modifies its behaviour
<beneroth> Regenaxer, yes. don't remove +Joint from the schema, but don't think you need to do something special when using put> working with it
<Regenaxer> yes, exactly
razzy has quit [Ping timeout: 240 seconds]
razzy has joined #picolisp
razzy has quit [Ping timeout: 256 seconds]
razzy has joined #picolisp
razzy has quit [Ping timeout: 256 seconds]
razzy has joined #picolisp
razzy has quit [Ping timeout: 250 seconds]
rob_w has quit [Remote host closed the connection]
aw- has quit [Ping timeout: 250 seconds]
beneroth has quit [Quit: Leaving]