rrq | note: I'm trialling a new pkginfo "web app"; feedback appreciated | 01:37 |
---|---|---|
mason | rrq: Where is it? | 02:16 |
rrq | https://pkginfo.devuan.org | 02:16 |
mason | rrq: dumps me to https://pkginfo.devuan.org/cgi-bin/policy-query.xml | 02:17 |
rrq | yes | 02:17 |
rrq | more typing :) | 02:17 |
mason | Ah, but it seems to render if I have JavaScript enabled. | 02:18 |
mason | Yar, no JavaScript, and it shows me some try/catch blocks, actual text. | 02:18 |
mason | This, in point of fact: https://bpa.st/VSPA | 02:19 |
rrq | not sure it has javascript; plain xml with xsl and css | 02:19 |
mason | Hrm. Interesting. I had to allow JavaScript via NoScript for it to render. | 02:19 |
mason | But I'm far from an expert, so I'm not sure what the difference is, if not JavaScript. | 02:20 |
rrq | for me it's the go-to when you want to offer machine processable data with human-readable overlay | 02:24 |
mason | hehe | 02:24 |
rrq | if you want to admire the source, it's at https://git.devuan.org/rrq/tellpackage | 02:33 |
golinux | Tried it . . . waiting, waiting . . . sooo slow | 03:20 |
fsmithred | same here | 03:20 |
bb|hcb | @rrq that's nice to have but is too slow | 03:20 |
golinux | Search for clearlooks-phenix produced nothing | 03:20 |
golinux | Visually would be better to have the line "Package pattern:" centered | 03:21 |
golinux | Also no results for darkpurpy or cinnabar | 03:23 |
golinux | Back to the drawing board . . . | 03:23 |
golinux | Great job getting the styling integrated though! | 03:24 |
rrq | try "clearlooks*" .. (it uses apt-policy) | 03:24 |
fsmithred | looks like it only searches for full package names | 03:24 |
golinux | On;ly searches the first word? | 03:25 |
fsmithred | I'm only getting hits on package names, not partial names | 03:25 |
fsmithred | clearlooks-phenix-cinnabar-theme | 03:26 |
fsmithred | works | 03:26 |
rrq | yes, I don't know why it's slow ... probably the access to http://www.w3.org/1999/XSL/Transform | 03:26 |
bb|hcb | if it searched for partial, would it become 10x slower? | 03:26 |
fsmithred | ok, still waiting to get to the site in ff-esr after six minutes | 03:26 |
golinux | I rarely know the full package name. It should be able to find a pkg from any component of the filename | 03:26 |
fsmithred | I can only get there in tor | 03:26 |
golinux | linux-image and no results | 03:28 |
rrq | bb|hcb: it's not the app itself, but the browser wants to go to http://www.w3.org/1999/XSL/Transform for the XSL processing and that's slow for some reason | 03:28 |
golinux | Eeeewwwww . . . a 3rd party translator? | 03:28 |
bb|hcb | nope, just checked, the slow part is https://pkginfo.devuan.org/cgi-bin/policy-query.xml?q=packagename | 03:28 |
golinux | Old version was instant. | 03:28 |
bb|hcb | at least from my browser point of view (maybe it requests that internally) | 03:29 |
golinux | Even synaptic brings up all options for linux-image | 03:29 |
golinux | Instantly too | 03:30 |
bb|hcb | @rrq now as i reread back, it looks that what i said may make you misunderstand - i really appreciate that effort, just sharing what is not be improved | 03:59 |
rrq | nw... yes it seems the apt-policy lookup is slow.. takes ~10s for it to load the Packages files and ~10s to fail finding more Packages files in various compression formats | 04:01 |
rrq | it gets better (of course) when the source point list is reduced | 04:02 |
rrq | still towards 10s for all Devuan points in 3 architactures | 04:04 |
bb|hcb | my browser reports between 7300ms to 9100ms to load; i use the network tab from browser dev tools (don't know how to easily share screenshot) | 04:05 |
rrq | mmm when limiting to devuan source points it seems more ok | 04:10 |
bb|hcb | actually packages do not change too often, maybe you can optimize that by generating package data once per hour and use the generated data for the web | 04:19 |
bb|hcb | package name is unique, so <package_name>.xml may be pregenerated; the only thing left is to have a searchable list of package names that yields package names matching the search pattern... | 04:22 |
rrq | i'd rather want it to be fast using "apt-cache policy" and "apt-cache show" | 04:45 |
* rrq looks up "^(bash|zsh|newlisp)$" | 05:04 | |
rrq | fsmithred: still no access? | 05:17 |
golinux | rrq; Is there anyway to get Package pattern: | 05:19 |
golinux | (push enter) | 05:19 |
rrq | ? do you mean to access the source for that part of the display? | 05:20 |
golinux | All on one line? And it needs some spacing in there . Might need to drop in some | 05:22 |
golinux | Sorry that took so long to finish. | 05:23 |
golinux | My forgetful brain couldn't remember ! | 05:23 |
golinux | I'm not sure now to mingle html into functions like that but will let you know when it looks harmonious. | 05:25 |
golinux | At this stage not that important. But then maybe it is since it's "live" | 05:26 |
golinux | Thanks. Yes. Needs space either side of the input box and might look better if the input box was centered which will require a left margin of negative 10 to 15 px | 05:29 |
golinux | Could also use some additional space under the nav bar, between the elements of the main content and around the cookie notice | 05:33 |
golinux | Right now it looks pretty claustrophobic and wound tight, | 05:34 |
golinux | Main content also needs left and right margins similar to the website. Xenguy might be able to help with that. | 05:36 |
* rrq no more css fiddling! -- would be extatic :) | 06:13 | |
golinux | I'm done for the night. Now it's up to you. IMO, Devuan should only have public-facing web-stuff that has a consistent loom/feel . . . and works. | 06:21 |
golinux | loom > look | 06:22 |
golinux | Can you move that to a testing place until it's functioning and visually cleaned up? | 06:22 |
fsmithred | page is still loading after seven hours. Why does it not time out? | 10:27 |
rrq | there's no connection on the pkginfo side | 10:34 |
rrq | fsmithred: ^^ | 10:35 |
fsmithred | I got an error message when I tried it again in tor | 10:35 |
fsmithred | which did connect earlier (last night my time) | 10:35 |
fsmithred | Error during XSLT transformation: An unknown error has occurred () | 10:36 |
rrq | fsmithred: works? .. it's no longer the default option for that server, but still available it the path | 10:45 |
fsmithred | I don't understand the last thing you said | 10:48 |
fsmithred | rrq | 10:48 |
rrq | you may try it again giving the full url | 10:49 |
rrq | https://pkginfo.devuan.org/cgi-bin/policy-query.xml | 10:49 |
fsmithred | I just tried NOT the full url and I can get there | 10:50 |
fsmithred | my bookmark stopped working | 10:50 |
rrq | you have a helpful browser | 10:50 |
fsmithred | too helpful? It just kept trying. | 10:51 |
fsmithred | anyway, it works now, but only for exact package names. | 10:51 |
rrq | it remembers the last 301 redirect rather than refreshing it with the new (current) 301 redirect | 10:51 |
rrq | anyho... the old pkginfo is at path /index.html | 10:52 |
fsmithred | yeah, I can get there, too | 10:53 |
rrq | the time issue was that the web app didn't keep the apt cache properly | 10:54 |
rrq | I also reduced it to use devuan source points only | 10:57 |
golinux | trying to access https://pkginfo.devuan.org/cgi-bin/policy-query.xml and getting this error | 18:00 |
golinux | Error during XSLT transformation: An unknown error has occurred () | 18:00 |
golinux | rrq: Thanks for changing the access point for the testing. :) | 18:03 |
golinux | Ah . . . now it's working. YEA! Also looking better. Almost there. Just a few more tweaks before it goes live. | 20:17 |
golinux | Still not finding filename keywords . . . :( | 20:20 |
fsmithred | if it's using 'apt policy' it needs a conditional to only give that output if it's a package name and do 'apt-cache search' if it's not. | 20:47 |
fsmithred | oh, that's not enough. | 20:48 |
fsmithred | it has to do both. Example: search for elog and you should get the package named 'elog' plus everything with 'elogind' in it. | 20:48 |
golinux | That's not very user friendly . . . | 20:48 |
fsmithred | it doesn't have to be | 20:49 |
fsmithred | all the user needs to do is give a search pattern | 20:49 |
golinux | I can't remember what the problem was with the old search method but I'm missing it already. | 20:49 |
golinux | I gave it a search pattern "linux-image" and I got nothing | 20:50 |
golinux | That's insanely screwed up | 20:50 |
fsmithred | BECAUSE IT ONLY SEARCHES FOR EXACT PACKAGE NAMES | 20:51 |
fsmithred | that can be fixed, I'm sure | 20:51 |
golinux | That's the stupidest parameter ever | 20:51 |
fsmithred | it's the one that's needed to give you the output of 'apt policy <package>' | 20:52 |
fsmithred | POLICY="$(apt-cache policy $PATTERN)" | 20:56 |
fsmithred | echo "$POLICY" | 20:56 |
fsmithred | apt-cache --names-only search "$PATTERN" | 20:56 |
golinux | That's ridiculous | 21:10 |
golinux | No way I'm typing all that to do a search. | 21:11 |
golinux | I don't think I will be the only one objecting . . . | 21:11 |
fsmithred | I never asked you to type that | 21:15 |
fsmithred | that's the code (in bash) that gives me the output I want | 21:15 |
fsmithred | something similar in whatever is running the search would give output for package names and partial names | 21:16 |
DPA | I think I broke https://pkginfo.devuan.org/cgi-bin/policy-query.xml . I searched for * | 21:19 |
golinux | LOL! | 21:22 |
mason | rrq: That reminds me - are you memoizing? | 21:23 |
mason | This'd be a fantastic opportunity for that. | 21:23 |
rrq | DPA: didn't brake, but it does take a while to run that one | 22:38 |
DPA | Ok, good. | 22:40 |
rrq | I wonder if fcgiwrap has any child control ability, like kill after timeout | 22:44 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!