« first day (680 days earlier)      last day (855 days later) » 

1:36 AM
This is cool: datetimes are considered to be rows in a table, so column access works on them even if they're in a list:
l2021.01.15 3GB (c)shakti 2.0
 a:.z.d+0 1
 a.m
2021.01. 2021.01.
 
2:12 AM
.[;;:;]//[;;] what have I wrought -_-
@chrispsn I think k4 has that (just with a.mm instead returning just the month (i.e. 1 1i)), although apparently it doesn't work in functions
hmm I think it works in functions now (at least on 3.6)
 
@coltim does it work for a list of date times?
 
2:30 AM
@chrispsn yep! at least on the a:.z.d+0 1 example
 
2:54 AM
@coltim ah - so it does
 
 
2 hours later…
5:11 AM
@coltim i wonder if deep where could be used in your answer here codegolf.stackexchange.com/questions/111991/…
 
 
1 hour later…
6:24 AM
<+&~^ could be a handy way to get a number for each element in the matrix, instead of !*/ shape m
would be nice to have k9-style cut
maybe an issue with deep where is that it's hard to apply in a dmend?
 
 
6 hours later…
12:35 PM
what arthur proposed (dict-each) isn't that just @\:/: ?
https://ngn.bitbucket.io/k/#cmlFbWSzlE0tbJeKzibY2oGET57x2hFqRNjrmAHuBLu7m3Pg=
@ngn what do you think about textarea{display:flex;flex:1;background:#000;color:#aaa;margin:0 2px}:focus{color:#fff}
for your editor? that way it can be better seen who has focus.
 
ngn
12:52 PM
@ktye i don't know i'm not much of a designer. there's this blinking thing, so i've never had problems identifying where focus is. and isn't the modern way to show focus a blue outline?
 
that works as well:
textarea{display:flex;flex:1;background:#000;color:#aaa;margin:0 0px;border:1px solid #000;}:focus{color:#fff;border:1px solid blue}
that way, there is always a border and the text does not move by 1px when clicking inside
 
ngn
there used to be a time when :focus worked only for links..
@ktye is the text hard to read? how about making it always #fff?
 
i think it's a bit more intuitive. aren't your xterms the same (darkening when unfocused)?
 
ngn
@ktye only the title bars
gnome-terminals, btw, because i can't live without zoom in/out
 
1:07 PM
@ngn you seem to have a lot of screen to waste! title-bars.
 
ngn
habits. my desktop still looks like windows nt :)
if xfce had that option, i'd make it look exactly like windows nt
 
@ngn what's wrong with fvwm95 then?
 
ngn
@ktye haha, that's close :)
 
ngn
gnome used to have a redmond theme before they screwed up everything with gnome3
 
1:18 PM
@ngn big fan of ubuntu-mate.org/about
 
ngn
@chrispsn i used that for a while, it used to come with linux mint where everything just worked well enough by default
i've tried lxde too
 
for many years i used evilwm. tiling window mangers haven't been invented yet. it was all i needed.
 
ngn
@ktye f11 and all distractions disappear :)
 
ngn
1:47 PM
@user7788347 hi! for write access in this chat, please see chat.stackexchange.com/transcript/message/49641017#49641017 and i'll ask the moderators to grant it
 
 
1 hour later…
ngn
3:02 PM
chat mini-poll: do you think focus needs to be indicated with anything other than a blinking cursor? if yes, would you prefer text darkening/brightening or a coloured border (blue, green, ..) or both?
 
text darkening, but i have one more request you won't like.
 
ngn
@ktye go ahead :)
btw, i'm undecided on this one, not really against it
 
a BUTTON. i'll try to make a minimalistic text-style overlay, maybe on the top right corner of the editor. why?
i often click with the mouse on a overlay keyboard. pressing cntrl-enter is annoying.
 
ngn
chat mini-poll[1] ^
 
3:30 PM
@chrispsn yeh, I was thinking the same thing. I couldn't quite figure out how to use a .[m;i;:;v] when m was a matrix and i was a list of cell coordinates (e.g. (0 0;0 1;0 2)) with v being a list of values to replace with
(the latter coming from m ./: {{cell coordinates}})
 
@ngn maybe like that: button{position:absolute;bottom:0px;right:50%;background:#000;color:#aaa;font-family:monospace}
 
@ngn is there a way to select all the indices in a @ or .? e.g. something equivalent to this
 
ngn
3:55 PM
@coltim this?
 
kindof. trying to mimic
y
(8 2 1;4 2 8;0 5 8)
@[y;::;:;3 3#!9]
(0 1 2;3 4 5;6 7 8)
(or y[;]:3 3#!9)
 
ngn
@coltim added to my todo
 
hmm I may have been overthinking things. I think that example would just be y:3 3#!9... I guess there's still e.g. .[y;(::;0);:;!3]
 
 
3 hours later…
7:10 PM
@chrispsn I think this can be done somewhat succinctly with ./[y;i;:;<i:+&~^y] (dropping the < to have the "full" cell coordinates rather than the flattened indices)
(without calculating/storing the shape of the input, you'd have to preserve the structure of the input somehow)
 
 
2 hours later…
ngn
9:42 PM
@chrispsn @coltim -2: {s#(,/x){x[i]:x@,/|0 1_i:?,/*'3(|+:)\y;x}/-1_(4(1_|+:)/)\s#!*/s:2##'*:\x}/
 
ngn
10:22 PM
even shorter: {(,()){(,y),+|x}/|,/{(-1_+\0,#'x)_,/|0 1_,/x}'0N 4#-1_*'(|+1_)\x}/
 
ngn
10:33 PM
{(,()){(,y),+|x}/|,/{-1_(1+\0,#'x)_,/x,x}'0N 4#-1_*'(|+1_)\x}/
{(,()){(,y),+|x}/|,/{1_{1_y,*x}':x,,*x}'0N 4#-1_*'(|+1_)\x}/
 

« first day (680 days earlier)      last day (855 days later) »