libera/#devuan-dev/ Monday, 2020-11-23

rrqnote: I'm trialling a new pkginfo "web app"; feedback appreciated01:37
masonrrq: Where is it?02:16
rrqhttps://pkginfo.devuan.org02:16
masonrrq: dumps me to https://pkginfo.devuan.org/cgi-bin/policy-query.xml02:17
rrqyes02:17
rrqmore typing :)02:17
masonAh, but it seems to render if I have JavaScript enabled.02:18
masonYar, no JavaScript, and it shows me some try/catch blocks, actual text.02:18
masonThis, in point of fact: https://bpa.st/VSPA02:19
rrqnot sure it has javascript; plain xml with xsl and css02:19
masonHrm. Interesting. I had to allow JavaScript via NoScript for it to render.02:19
masonBut I'm far from an expert, so I'm not sure what the difference is, if not JavaScript.02:20
rrqfor me it's the go-to when you want to offer machine processable data with human-readable overlay02:24
masonhehe02:24
rrqif you want to admire the source, it's at https://git.devuan.org/rrq/tellpackage02:33
golinuxTried it . . . waiting, waiting . . . sooo slow03:20
fsmithredsame here03:20
bb|hcb@rrq that's nice to have but is too slow03:20
golinuxSearch for clearlooks-phenix produced nothing03:20
golinuxVisually would be better to have the line "Package pattern:" centered03:21
golinuxAlso no results for darkpurpy or cinnabar03:23
golinuxBack to the drawing board . . .03:23
golinuxGreat job getting the styling integrated though!03:24
rrqtry "clearlooks*" .. (it uses apt-policy)03:24
fsmithredlooks like it only searches for full package names03:24
golinuxOn;ly searches the first word?03:25
fsmithredI'm only getting hits on package names, not partial names03:25
fsmithredclearlooks-phenix-cinnabar-theme03:26
fsmithredworks03:26
rrqyes, I don't know why it's slow ... probably the access to http://www.w3.org/1999/XSL/Transform03:26
bb|hcbif it searched for partial, would it become 10x slower?03:26
fsmithredok, still waiting to get to the site in ff-esr after six minutes03:26
golinuxI rarely know the full package name.  It should be able to find a pkg from any component of the filename03:26
fsmithredI can only get there in tor03:26
golinuxlinux-image and no results03:28
rrqbb|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 reason03:28
golinuxEeeewwwww . . . a 3rd party translator?03:28
bb|hcbnope, just checked, the slow part is https://pkginfo.devuan.org/cgi-bin/policy-query.xml?q=packagename03:28
golinuxOld version was instant.03:28
bb|hcbat least from my browser point of view (maybe it requests that internally)03:29
golinuxEven synaptic brings up all options for linux-image03:29
golinuxInstantly too03: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 improved03:59
rrqnw... 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 formats04:01
rrqit gets better (of course) when the source point list is reduced04:02
rrqstill towards 10s for all Devuan points in 3 architactures04:04
bb|hcbmy 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
rrqmmm when limiting to devuan source points it seems more ok04:10
bb|hcbactually 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 web04:19
bb|hcbpackage 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
rrqi'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
rrqfsmithred: still no access?05:17
golinuxrrq; 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
golinuxAll on one line?  And it needs some spacing in there .  Might need to drop in some &nbsp;05:22
golinuxSorry that took so long to finish.05:23
golinuxMy forgetful brain couldn't remember &nbsp; !05:23
golinuxI'm not sure now to mingle html into functions like that but will let you know when it looks harmonious.05:25
golinuxAt this stage not that important.  But then maybe it is since it's "live"05:26
golinuxThanks.  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 px05:29
golinuxCould also use some additional space under the nav bar, between the elements of the main content and around the cookie notice05:33
golinuxRight now it looks pretty claustrophobic and wound tight,05:34
golinuxMain 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
golinuxI'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
golinuxloom > look06:22
golinuxCan you move that to a testing place until it's functioning and visually cleaned up?06:22
fsmithredpage is still loading after seven hours. Why does it not time out?10:27
rrqthere's no connection on the pkginfo side10:34
rrqfsmithred: ^^10:35
fsmithredI got an error message when I tried it again in tor10:35
fsmithredwhich did connect earlier (last night my time)10:35
fsmithredError during XSLT transformation: An unknown error has occurred ()10:36
rrqfsmithred: works? .. it's no longer the default option for that server, but still available it the path10:45
fsmithredI don't understand the last thing you said10:48
fsmithredrrq10:48
rrqyou may try it again giving the full url10:49
rrqhttps://pkginfo.devuan.org/cgi-bin/policy-query.xml10:49
fsmithredI just tried NOT the full url and I can get there10:50
fsmithredmy bookmark stopped working10:50
rrqyou have a helpful browser10:50
fsmithredtoo helpful? It just kept trying.10:51
fsmithredanyway, it works now, but only for exact package names.10:51
rrqit remembers the last 301 redirect rather than refreshing it with the new (current) 301 redirect10:51
rrqanyho... the old pkginfo is at path /index.html10:52
fsmithredyeah, I can get there, too10:53
rrqthe time issue was that the web app didn't keep the apt cache properly10:54
rrqI also reduced it to use devuan source points only10:57
golinuxtrying to access https://pkginfo.devuan.org/cgi-bin/policy-query.xml and getting this error18:00
golinuxError during XSLT transformation: An unknown error has occurred ()18:00
golinuxrrq: Thanks for changing the access point for the testing.  :)18:03
golinuxAh . . . now it's working.  YEA!  Also looking better.  Almost there.  Just a few more tweaks before it goes live.20:17
golinuxStill not finding filename keywords . . .  :(20:20
fsmithredif 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
fsmithredoh, that's not enough.20:48
fsmithredit has to do both. Example: search for elog and you should get the package named 'elog' plus everything with 'elogind' in it.20:48
golinuxThat's not very user friendly . . .20:48
fsmithredit doesn't have to be20:49
fsmithredall the user needs to do is give a search pattern20:49
golinuxI can't remember what the problem was with the old search method but I'm missing it already.20:49
golinuxI gave it a search pattern "linux-image" and I got nothing20:50
golinuxThat's insanely screwed up20:50
fsmithredBECAUSE IT ONLY SEARCHES FOR EXACT PACKAGE NAMES20:51
fsmithredthat can be fixed, I'm sure20:51
golinuxThat's the stupidest parameter ever20:51
fsmithredit's the one that's needed to give you the output of 'apt policy <package>'20:52
fsmithredPOLICY="$(apt-cache policy $PATTERN)"20:56
fsmithredecho "$POLICY"20:56
fsmithredapt-cache --names-only search "$PATTERN"20:56
golinuxThat's ridiculous21:10
golinuxNo way I'm typing all that to do a search.21:11
golinuxI don't think I will be the only one objecting . . .21:11
fsmithredI never asked you to type that21:15
fsmithredthat's the code (in bash) that gives me the output I want21:15
fsmithredsomething similar in whatever is running the search would give output for package names and partial names21:16
DPAI think I broke https://pkginfo.devuan.org/cgi-bin/policy-query.xml . I searched for *21:19
golinuxLOL!21:22
masonrrq: That reminds me - are you memoizing?21:23
masonThis'd be a fantastic opportunity for that.21:23
rrqDPA: didn't brake, but it does take a while to run that one22:38
DPAOk, good.22:40
rrqI wonder if fcgiwrap has any child control ability, like kill after timeout22:44

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!