2019-10-21T05:57:42 #kisslinux nestman: That minifies the HTML. 2019-10-21T05:57:50 #kisslinux Neat huh? 2019-10-21T05:58:00 #kisslinux > sed ':a;N;$!ba;s/>s* > Since July, Firefox has blocked over 450 billion third-party trackers from tracking you. 2019-10-21T06:02:54 #kisslinux piggybacking on that: why `sed ss.ss`? 2019-10-21T06:03:08 #kisslinux Tracking the trackers blocked. 10/10 2019-10-21T06:03:26 #kisslinux 'sed ss.ss' simply strips the first character from each line. 2019-10-21T06:03:41 #kisslinux Which just so happens to also be a '.' in this case. 2019-10-21T06:03:54 #kisslinux Yeah ik but why 2019-10-21T06:04:08 #kisslinux you're left with /path/to/file instead of ./path/to/file 2019-10-21T06:04:13 #kisslinux Yes 2019-10-21T06:04:44 #kisslinux and then you're just adding the . later on before each ${page} 2019-10-21T06:05:05 #kisslinux is it for the pretty printfs? :P 2019-10-21T06:05:07 #kisslinux Why not s/.//? Almost seems obfuscated 2019-10-21T06:05:20 #kisslinux cuz ss.ss seems cute 2019-10-21T06:05:27 #kisslinux lol 2019-10-21T06:05:59 #kisslinux The stripping of . is useless in the current version, yeah. 2019-10-21T06:06:27 #kisslinux It used to also generate rss feeds and the sitemap which is why I was stripping the '.' 2019-10-21T06:06:32 #kisslinux dylanaraps : care to explain the bits? 2019-10-21T06:06:46 #kisslinux Bits? 2019-10-21T06:06:47 #kisslinux oh ok 2019-10-21T06:07:17 #kisslinux ':a;N;$!ba;s/>s* I blacked out after the first a 2019-10-21T06:07:46 #kisslinux N goes to the next line of input, I think? 2019-10-21T06:08:15 #kisslinux ba goes to a but I'm not sure what the $ is for 2019-10-21T06:08:17 #kisslinux ' n N Read/append the next line of input into the pattern space.' 2019-10-21T06:09:05 #kisslinux s/>s*< 2019-10-21T06:09:06 #kisslinux that's the linux version, posix seems to differentiate n/N 2019-10-21T06:09:40 #kisslinux It's clearer when written as s|>s*<|><|g 2019-10-21T06:11:17 #kisslinux Fixed. 2019-10-21T06:12:20 #kisslinux Ah, `$!ba` branches to a if it's not at the last line 2019-10-21T06:12:41 #kisslinux So, set label a, append next line of input without the newline, branch to a 2019-10-21T06:12:46 #kisslinux Which removes newlines 2019-10-21T06:12:54 #kisslinux and then remove all spaces between tags 2019-10-21T06:13:53 #kisslinux Actually, s matches all whitespace, including newlines AFAIK 2019-10-21T06:14:01 #kisslinux Yup 2019-10-21T06:14:25 #kisslinux possibly but sed operates on lines, I'm guessing that's why the branching 2019-10-21T06:14:38 #kisslinux dylan: correct me if I'm wrong 2019-10-21T06:14:40 #kisslinux This also avoid stripping whitespace in
 tags.
2019-10-21T06:14:45 #kisslinux  avoids*
2019-10-21T06:15:10 #kisslinux  huh, neat
2019-10-21T06:17:46 #kisslinux  The site generation isn't 100% automated with this simple script of course.
2019-10-21T06:17:48 #kisslinux  AFAIK: sed operates on lines, but this adds them all except the last to the pattern space, so they can be substituted
2019-10-21T06:18:18 #kisslinux  Images I minify by hand as it's rare that one is added to the site.
2019-10-21T06:18:56 #kisslinux  Crestwave: It removes the newline at the end of the line though
2019-10-21T06:18:59 #kisslinux  The CSS I minify by hand as I do a better job than a minifier (some actually make the CSS larger).
2019-10-21T06:19:11 #kisslinux  (AFAIK)
2019-10-21T06:19:47 #kisslinux  s* removes newlines between tags and label a removes them at the end of lines
2019-10-21T06:20:19 #kisslinux  how come minifiers make the css larger?
2019-10-21T06:20:22 #kisslinux  I don't 100% understand why this snippet works fyi
2019-10-21T06:20:50 #kisslinux  They're not 100% perfect.
2019-10-21T06:21:08 #kisslinux  Do you mean only removing whitespace or also combining selectors, etc.?
2019-10-21T06:21:10 #kisslinux  They make the wrong choices sometimes.
2019-10-21T06:21:19 #kisslinux  All of it.
2019-10-21T06:21:35 #kisslinux  Sounds like a fun idea for a prolog program
2019-10-21T06:21:36 #kisslinux  Using 'font:' over 'font-family:, 'font-size
2019-10-21T06:21:45 #kisslinux  oh ok
2019-10-21T06:21:46 #kisslinux  ' etc*
2019-10-21T06:21:52 #kisslinux  Compressing colors to #XXX if possible.
2019-10-21T06:23:26 #kisslinux  dylanaraps: printf 'anbncn' | sed ':a;N;$!ba;s/1/2/g' doesn't remove any newlines, but s/n//g does. So it seems to me that the substitution is what's removing them
2019-10-21T06:23:46 #kisslinux  *s/n//g instead of s/1/2/g
2019-10-21T06:29:12 #kisslinux  dylanaraps: do you need me to do anything for the zsh pull request?
2019-10-21T06:29:43 #kisslinux  Yeah
2019-10-21T06:30:10 #kisslinux  ok, what is it?
2019-10-21T06:31:02 #kisslinux  The patch to remove zsh-X.X.x can be removed. These types of secondary binaries are typically kept around.
2019-10-21T06:31:16 #kisslinux  Sure
2019-10-21T06:31:33 #kisslinux  Anything else? And should I squash it?
2019-10-21T06:31:33 #kisslinux  If you'd still like to omit it a simple: rm -f "$1/usr/bin/zsh-XXX" is far simpler than a patch.
2019-10-21T06:31:43 #kisslinux  true
2019-10-21T06:31:47 #kisslinux  I'll keep it
2019-10-21T06:32:31 #kisslinux  2 secs. Trying to load the PR.
2019-10-21T06:32:35 #kisslinux  kk
2019-10-21T06:35:03 #kisslinux  Is the `rm` of the completion directories needed? Removing them from (https://github.com/zsh-users/zsh/blob/master/Src/Zle/complete.mdd) should omit them regardless no?
2019-10-21T06:36:28 #kisslinux  Also: For the path configure flags ('--enable-fndir=/usr/share/zsh/functions' etc). What are the defaults?
2019-10-21T06:37:10 #kisslinux  Are we setting them for the sake of setting them or are we fixing the location?
2019-10-21T06:39:06 #kisslinux  dylanaraps: honestly, idk, I based this build script on another distribution's
2019-10-21T06:39:55 #kisslinux  as for the fndir, the default is /usr/share/zsh/${version}/functions
2019-10-21T06:40:00 #kisslinux  Ah
2019-10-21T06:40:03 #kisslinux  That's the problem.
2019-10-21T06:40:24 #kisslinux  All distributions have really badly written build scripts.
2019-10-21T06:40:36 #kisslinux  lol
2019-10-21T06:41:12 #kisslinux  Not joking, really. Pair it with the fact that their build tools 'eval' the badly written scripts...
2019-10-21T06:41:20 #kisslinux  well, true
2019-10-21T06:42:30 #kisslinux  fndir sounds fine to me.
2019-10-21T06:42:48 #kisslinux  > --with-term-lib=ncursesw
2019-10-21T06:42:54 #kisslinux  This may be autodetected too.
2019-10-21T06:48:25 #kisslinux  I remember there being some problem, but I've just re-run the configure without that flag and it properly detects it
2019-10-21T06:49:06 #kisslinux  and since ncursesw is the default in the search the line is indeed unneeded
2019-10-21T06:49:14 #kisslinux  Can be removed then. :)
2019-10-21T06:50:27 #kisslinux  '--enable-libc-musl' probably isn't needed either.
2019-10-21T06:50:40 #kisslinux  zsh auto detects the libc regardless.
2019-10-21T06:51:17 #kisslinux  https://github.com/zsh-users/zsh/blob/3d7215cc8277b39cd1e24ce5a04376d45bfbabf0/config.guess#L154-L159
2019-10-21T06:54:35 #kisslinux  also enable-etcdir is unneeded
2019-10-21T06:54:49 #kisslinux  Nice
2019-10-21T06:54:53 #kisslinux  '--enable-cap' this may be unneeded too.
2019-10-21T06:55:19 #kisslinux  This enables termcap support(?) but zsh uses ncurses which has its own db.
2019-10-21T06:55:43 #kisslinux  > Historically, several different libraries have provided the features the
2019-10-21T06:55:45 #kisslinux  shell needs to provide output to the terminal.  The most common have been
2019-10-21T06:55:47 #kisslinux  termcap, which is now largely outmoded, and curses, which supersedes
2019-10-21T06:55:49 #kisslinux  termcap and typically contains the same features as well as others.
2019-10-21T06:56:02 #kisslinux  > configure will search for an appropriate library; the default search order
2019-10-21T06:56:05 #kisslinux  is "ncursesw tinfo termcap ncurses curses"
2019-10-21T06:56:47 #kisslinux  Actually!
2019-10-21T06:56:56 #kisslinux  oh wait I already removed etcdir xD
2019-10-21T06:57:03 #kisslinux  > This searches for POSIX capabilities; if found, the `cap' library
2019-10-21T06:57:06 #kisslinux  is available and the shell will use these to determine if the
2019-10-21T06:57:08 #kisslinux  shell is running in some privileged mode.  This is turned off by
2019-10-21T06:57:10 #kisslinux  default as on some systems non-standard headers (in particular AIX) are
2019-10-21T06:57:12 #kisslinux  required.  A direct fix for that problem would be appreciated.
2019-10-21T06:57:14 #kisslinux  (--enable-cap)
2019-10-21T06:57:40 #kisslinux  yeah, it's disabled by default
2019-10-21T06:57:43 #kisslinux  Do we have the cap library or does zsh just ignore this flag?
2019-10-21T06:58:57 #kisslinux  Yeah, we don't have this lib.
2019-10-21T06:59:13 #kisslinux  My guess is that zsh does the detection and omits it.
2019-10-21T06:59:38 #kisslinux  yeah, just checked the log
2019-10-21T06:59:48 #kisslinux  My impression was it depends on the kernel build
2019-10-21T06:59:57 #kisslinux  But then this is probably managed by linux-headers
2019-10-21T07:00:05 #kisslinux  So after all we don't have it
2019-10-21T07:00:25 #kisslinux  https://pkgs.alpinelinux.org/contents?branch=edge&name=libcap&arch=x86&repo=main
2019-10-21T07:01:47 #kisslinux  also the alpine buildscript doesn't do --enable-cap
2019-10-21T07:01:51 #kisslinux  Can you verify that the 'rm -rf' of each completion is uneeded if they're removed from the .mdd file?
2019-10-21T07:01:56 #kisslinux  Hu
2019-10-21T07:01:59 #kisslinux  Huh*
2019-10-21T07:03:10 #kisslinux  Will do
2019-10-21T07:05:52 #kisslinux  a question though, why not test after building?
2019-10-21T07:06:17 #kisslinux  We don't run tests for any packages.
2019-10-21T07:06:23 #kisslinux  fair enough
2019-10-21T07:06:36 #kisslinux  tradition, then
2019-10-21T07:06:50 #kisslinux  I have a problem with test suites (especially on musl).
2019-10-21T07:07:36 #kisslinux  Look at Alpine's packages and you'll find the majority of packages have tests entirely disabled or they ignore specific test failures.
2019-10-21T07:08:05 #kisslinux  This situation removes the entire point of running tests to begin with.
2019-10-21T07:08:17 #kisslinux  just looked at alpine's zsh, it does remove the tests that failed in the kiss build as well
2019-10-21T07:11:01 #kisslinux  a lot of tests in glibc systems (e.g. Arch) just run ||: anyway
2019-10-21T07:11:59 #kisslinux  Yup
2019-10-21T07:12:09 #kisslinux  It's a pointless endeavor.
2019-10-21T07:13:04 #kisslinux  dylanaraps: By the way, the sed command doesn't work on one-liners. AFAIK you can use `sed 'H;1h;$!d;x;your substitution'` instead, which I believe is also more idiomatic(?)
2019-10-21T07:13:57 #kisslinux  ok, just checked your suggestion, seems to work with only the sed
2019-10-21T07:14:15 #kisslinux  Crestwave: That's fine as the input given will always be larger than a single line.
2019-10-21T07:14:19 #kisslinux  dithpri: Nice
2019-10-21T07:14:34 #kisslinux  Can probably remove the loop entirely now.
2019-10-21T07:14:46 #kisslinux  brb
2019-10-21T07:15:47 #kisslinux  (A whitelist of completions dirs will probably be smaller than a blacklist)
2019-10-21T07:20:38 #kisslinux  so... a sed one-liner?
2019-10-21T07:22:46 #kisslinux  Probably simpler to add a: printf '%sn' 'functions=""' >> Src/Zle/complete.mdd
2019-10-21T07:23:03 #kisslinux  Just redefine the 'functions' variable to include only what we want to install.
2019-10-21T07:24:07 #kisslinux  Looks like only these: Completion/X/*/* Completon/*comp* Completion/Base/*/* Completion/Linux/*/*
2019-10-21T07:24:30 #kisslinux  Maybe also: Completion/Unix/*/*
2019-10-21T07:24:49 #kisslinux  Yup
2019-10-21T07:24:51 #kisslinux  Also Unix
2019-10-21T07:25:49 #kisslinux  tbh, I hate the entire concept of (third-party) shell completions. They're all so badly written...
2019-10-21T07:26:05 #kisslinux  oh well
2019-10-21T07:26:09 #kisslinux  Looking at zsh's first-party completions they're fine though.
2019-10-21T07:26:28 #kisslinux  I'll check if the redifinition, otherwise I already have a sed one liner
2019-10-21T07:27:18 #kisslinux  OK
2019-10-21T07:27:20 #kisslinux  https://github.com/scop/bash-completion/blob/2a932367917a9d7349bf049257e10840caa9c4da/completions/mutt
2019-10-21T07:27:23 #kisslinux  See
2019-10-21T07:27:25 #kisslinux  5 evals
2019-10-21T07:27:53 #kisslinux  A lot of random utility calls.
2019-10-21T07:28:24 #kisslinux  Word splitting with globbing enabled!
2019-10-21T07:28:30 #kisslinux  Lots of that.
2019-10-21T07:30:15 #kisslinux  None of this is actually needed as bash provides builtins to allow for complex completions without needing external utilities, eval, unsafe word splitting, etc.
2019-10-21T07:30:31 #kisslinux  No one reads the manual though ;)
2019-10-21T07:31:09 #kisslinux  Oh god I've just run shellcheck on that
2019-10-21T07:31:52 #kisslinux  24 warnings
2019-10-21T07:32:18 #kisslinux  some false positives though
2019-10-21T07:32:31 #kisslinux  Which ones?
2019-10-21T07:33:15 #kisslinux  "Doesn't expand in single quotes"
2019-10-21T07:33:20 #kisslinux  yeah
2019-10-21T07:33:28 #kisslinux  I wouldn't call that a false positive as it's most likely eval'd below...
2019-10-21T07:33:54 #kisslinux  Yup
2019-10-21T07:33:55 #kisslinux  It is.
2019-10-21T07:34:37 #kisslinux  yup
2019-10-21T07:34:39 #kisslinux  oh well
2019-10-21T07:38:01 #kisslinux  Any way to make the new printf shorter in length?
2019-10-21T07:38:09 #kisslinux  why is the date on my commits screwed up
2019-10-21T07:38:45 #kisslinux  uh... a loop?
2019-10-21T07:38:56 #kisslinux  Heh
2019-10-21T07:39:30 #kisslinux  oh nvm the date's good
2019-10-21T07:40:12 #kisslinux  zsh has += right?
2019-10-21T07:40:38 #kisslinux  yeah
2019-10-21T07:46:06 #kisslinux  Left a comment.
2019-10-21T07:46:14 #kisslinux  Wonder what a loop will look like.
2019-10-21T07:51:41 #kisslinux  > for completion in '*comp*' 'Base/*/*' 'Linux/*/*' 'Unix/*/*' 'X/*/*' 'Zsh/*/*'; do
2019-10-21T07:52:07 #kisslinux  I like your idea better, loop is confusing
2019-10-21T07:53:11 #kisslinux  Sent a comment with a loop.
2019-10-21T07:54:44 #kisslinux  Sent another loop :P
2019-10-21T07:58:56 #kisslinux  the second loop looks nice
2019-10-21T07:58:58 #kisslinux  brb
2019-10-21T08:01:55 #kisslinux  https://danielpocock.com/where-do-censored-developers-go/
2019-10-21T08:06:44 #kisslinux  dylanaraps: thanks for the support and help
2019-10-21T08:10:22 #kisslinux  Recommend squashing if you're ready to merge
2019-10-21T08:14:30 #kisslinux  Looks good to me now.
2019-10-21T08:14:39 #kisslinux  Thanks for putting up with my comments :P
2019-10-21T08:14:52 #kisslinux  np, they were very insightful :p
2019-10-21T08:15:34 #kisslinux  want me to squash?
2019-10-21T08:16:22 #kisslinux  the article's insightful. I still remember the drama with the linux CoC
2019-10-21T08:18:31 #kisslinux  'insightful' twice in the span of 2m. I need a cup of coffee.
2019-10-21T08:23:09 #kisslinux  Yeah, squash it.
2019-10-21T08:23:12 #kisslinux  lol
2019-10-21T08:23:14 #kisslinux  I need a coffee too.
2019-10-21T08:24:37 #kisslinux  done
2019-10-21T09:03:05 #kisslinux  TIL of the tct (Unicode) video output driver in MPV. It actually looks great on a true color terminal with a small font (for higher resolution), although it's very heavy.
2019-10-21T09:07:15 #kisslinux  Neat
2019-10-21T09:07:21 #kisslinux  There's also Caca.
2019-10-21T09:07:59 #kisslinux  It'd be heavy since terminal emulators aren't meant for this use case nor are terminal emulators "good software".
2019-10-21T09:08:46 #kisslinux  All terminal emulators are bloated, slow and have high input latency. (There are exceptions)
2019-10-21T09:09:30 #kisslinux  brb
2019-10-21T10:28:21 #kisslinux  I know about caca, but it looks pretty bad to me. This would actually be usable if it was fast enough: https://i.imgur.com/toy1RMu_d.png?maxwidth=9999&fidelty=high
2019-10-21T10:29:34 #kisslinux  alacritty seems pretty fast, although still around 1 FPS or less. IIRC it took minutes to render a frame on xfce4-terminal
2019-10-21T10:30:00 #kisslinux  That looks good actually.
2019-10-21T10:30:36 #kisslinux  Exactly!
2019-10-21T10:31:28 #kisslinux  How small is each cell?
2019-10-21T10:33:27 #kisslinux  brb
2019-10-21T11:24:52 #kisslinux  My monitor is 1600x900 and the terminal is 1600x450 cells wide, but it uses half-blocks so it's basically one pixel each.
2019-10-21T11:26:40 #kisslinux  It's actually usable with a bigger font from a distance but it seems that my terminal doesn't recognize some escape sequences so they periodically appear on the screen.
2019-10-21T13:04:02 #kisslinux  By the way, why do you set LANG in additional to LC_ALL to disable unicode?
2019-10-21T15:55:14 #kisslinux  Dylan, can you please pretty please update this: https://github.com/dylanaraps/writing-a-tui-in-bash
2019-10-21T17:28:05 #kisslinux  which irc client app in repo
2019-10-21T17:28:36 #kisslinux  mahmudov: weechat is in the repos
2019-10-21T17:28:54 #kisslinux  in community
2019-10-21T17:29:03 #kisslinux  thnks dithpri
2019-10-21T17:29:26 #kisslinux  np
2019-10-21T18:13:19 #kisslinux  WTH
2019-10-21T18:13:24 #kisslinux  i3 needs glib?
2019-10-21T18:13:44 #kisslinux  time to move to another wm then
2019-10-21T18:48:48 #kisslinux  does anyone have some tiling wm recommendations?
2019-10-21T19:03:35 #kisslinux  Could anyone try building xf86-video-intel with clang and tell me if they get a segfault or not when they try to start X with it? (Making sure that it is the selected driver and will X actually try to load it first)
2019-10-21T20:04:52 #kisslinux  E5ten: Will do so tomorrow. Thanks for letting me know.
2019-10-21T20:05:00 #kisslinux  (It's late here and I'm off to bed)
2019-10-21T22:02:12 #kisslinux  dithpri: bspwm
2019-10-21T22:02:15 #kisslinux  well damn
2019-10-21T23:16:16 #kisslinux  konimex: thanks