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
rob_w has joined #picolisp
rob_w has quit [Remote host closed the connection]
f8l has quit [Ping timeout: 256 seconds]
f8l has joined #picolisp
v_m_v has joined #picolisp
<v_m_v> What would be easiest way to run some background processes each X minutes?
<abu[m]> With 'task'
<abu[m]> E.g. once per minute: (task -60000 0 (tty (println (inc (0)))))
<v_m_v> oh thank you!
<abu[m]> Welcome ☺
<Nistur> Random quick question. I was trying to tinker with something running on my pi. I don't know what version of pil I'm currently running on there, but just throwing the hello world html test on there, and checking the source in the browser, I'm getting the base url to be <base href="http://192.168.1.43:Firstname Lastname/"/> (which it then also in all other absolute links)... the strange thing is... it
<Nistur> actually has my first- and lastname there... and I don't _think_ it could have got something from my Pi, but it is my user account on the machine that I am using for a browser to test it
<Nistur> any idea what the smeg I've done wrong?
<abu[m]> Oh, strange indeed
<abu[m]> Which hello world html test is that?
v_m_v has quit [Remote host closed the connection]
v_m_v has joined #picolisp
<v_m_v> Is it possible (in Pilog) to ask about potential doubles? By potential doubles I mean: give me all the rows which have price +- 10%value to the other rows
<abu[m]> Which are the "other" rows?
<v_m_v> other entities in the same class
<v_m_v> in the other words: groub elements by price +-10% and show only those groupes which have more then one entity
<abu[m]> You would make an index on the price. Then collect all objects with a price within a given range
<v_m_v> hmm still it would force me to make N queries instead on one
<abu[m]> yes, ok, so I would select price ranges
<v_m_v> For N elements I would need to get that element price and then ask about elements with price +- 10%
<abu[m]> No Pilog needed I think
<v_m_v> No pilog but still N queries
<abu[m]> yes
<abu[m]> Do you have another idea?
<beneroth> (group)
<beneroth> combined with (by)
<beneroth> bbl
<abu[m]> If you know your average price, it is a single 'collect' call
<abu[m]> Hi beneroth!
<beneroth> (N queries using index is okay)
<beneroth> hi abu[m] !
<beneroth> but gotta go now, just saw this by chance :)
<beneroth> cu
<abu[m]> See you! :)
<abu[m]> 'group' is fine, but requires all objects in a list first
<abu[m]> with index
<abu[m]> Then you select them immediately
<abu[m]> Another option is perhaps to store some percentage value in each item
v_m_v has quit [Remote host closed the connection]
Regenaxer has joined #picolisp
<Regenaxer> Grr, matrix messed up the order of the lines I wrote
<Regenaxer> Good old plain IRC is really still the best
<Nistur> sorry, I didn't realise the time when I posted my question, I had to run off
<Regenaxer> No problem
<Nistur> abu[m]: both the one on the web app tutorial linked from the wiki and... the other more extensive tutorial I found elsewhere... always start all projects with hello world, to make sure I have a sane environment
<Nistur> in this case, I didn't...
<Regenaxer> btw, abu[m] is my idendity from matrix in this channel
<Nistur> ahh ok :D
<Regenaxer> tankf33der established a bridge
<Nistur> I've also identified that my name _must_ be coming from the pi after all, because I'm using a different laptop that definitely doesn't know my name and I still get it
<Regenaxer> The name is separated by a colon?
<Regenaxer> So it looks like a port
<Nistur> yup
<Regenaxer> no idea
<Nistur> me neither :D
<Nistur> I think my next thing is to figure out which version of pil this is :P
<Regenaxer> Probably this makes no difference. http stuff did not change
<Nistur> hmmm ok
<Nistur> pil @lib/http.l @lib/xhtml.l @lib/form.l --server 8080 +
<Regenaxer> I see, --server is quite new
<Nistur> (html 0 "Hello" "@lib.css" NIL "Hello World!" )
<Regenaxer> ok
<Nistur> if I could find where printscreen is on this silly laptop, I'd printscreen the output source
<Nistur> <link rel="stylesheet" type="text/css" href="http://192.168.1.43:Philipp Geyer/@lib.css"/>
<Nistur> but for example ^^^
<Regenaxer> indeed
<Regenaxer> I was wrong with "--server is quite new"
<Regenaxer> seems 2012
<Regenaxer> anyway
<Nistur> new is relative, I guess :P
<Regenaxer> yep
<Regenaxer> then you point your browser to http://192.168.1.43:8080 or so?
<Nistur> ...:8080/main.l
<Nistur> but yes
<Regenaxer> Why main.l ?
<Nistur> that's what I called the file I put the hello world code in
<Regenaxer> iirc you dont need to pass it in the URL
<Regenaxer> it is the server's source
v_m_v has joined #picolisp
v_m_v has quit [Remote host closed the connection]
<Regenaxer> can be any name
<Regenaxer> In doc/app.html it is called project.l
<Regenaxer> and on the command line ... --server 8080 project.l +
<Regenaxer> but anyway your way should work too
<Regenaxer> In any case all this does not explain where the nyme comes from ;)
<Regenaxer> *name
<Nistur> no, it's maaaagic :D
<Regenaxer> :)
<Nistur> just checked, and even like that, it stil gives me my name
<Regenaxer> ok
<Nistur> it's weeeeeeird
<Nistur> I don't think I changed anything in the distribution...
<Regenaxer> Somehow the port gets replaced
<Regenaxer> Something wit /etc/services ?
<Nistur> I have tried on different ports...
<Regenaxer> I see
<Nistur> well, 8000, 8080, and 8888
<Nistur> just trying to see if I can install pil21
<Regenaxer> Just in case, yes
<Nistur> apparently I first need to update a whole bunch of other things :P
<Regenaxer> Really? It should be just the list in INSTALL
<Regenaxer> $ sudo apt install make clang llvm libreadline-dev libffi-dev libssl-dev pkg-config
<Nistur> I needed clang, and when I installed clang, it said that libffi was out of date... so I just did pacman -Syyu
<Regenaxer> uh
<Nistur> turns out I needed to update 99 packages
<Nistur> ... still updating...
<Nistur> all updates.. still won't build. Apparently llvm doesn't know how to emit something
<Nistur> what fun :P
<Nistur> I tried building on Windows too, for fun, and got different errors :D
<Nistur> life is never easy for me