|
01:08
[Coke] left,
[Coke] joined
|
|||
| ugexe | coleman: i think rakudo.org is still down. i notice because my github actions are all failing due to a timeout | 01:42 | |
| coleman | you're right, it went down again. i'm going to poke it | 01:45 | |
|
01:45
arkiuat left
01:47
arkiuat joined
01:55
sibl joined
01:58
causal joined
02:07
hulk joined
02:08
kylese left
02:12
vrurg_ joined
02:14
vrurg left
03:15
hulk left,
kylese joined
03:38
causal left
03:49
justache left
03:50
justache joined
03:55
causal joined,
causal left
04:29
annamalai joined
05:25
sibl left
05:26
sibl joined
05:35
arkiuat left
05:42
arkiuat joined
05:47
arkiuat left
06:11
arkiuat joined
06:16
arkiuat left
06:24
arkiuat joined
06:28
arkiuat left
06:37
kylese left
06:39
kylese joined
06:40
arkiuat joined
07:04
Sgeo left,
Aedil joined
07:20
hankache joined
07:36
abraxxa joined
07:39
abraxxa left
07:43
arkiuat left
07:47
hankache left
07:48
arkiuat joined
08:03
arkiuat left
08:05
arkiuat joined
08:10
arkiuat left
08:37
arkiuat joined
08:41
arkiuat left
08:54
arkiuat joined
08:58
arkiuat left
09:24
arkiuat joined
09:28
arkiuat left
09:46
sibl left
09:53
sibl joined
09:57
arkiuat joined
10:02
arkiuat left
|
|||
| Geth | raku.org: librasteve++ created pull request #297: Merge recent changes to main to dev |
10:20 | |
|
10:26
arkiuat joined
10:35
arkiuat left
10:58
sibl left
11:01
arkiuat joined
11:06
arkiuat left
11:20
arkiuat joined
11:25
arkiuat left
11:43
arkiuat joined
11:48
arkiuat left
11:49
arkiuat joined
11:54
arkiuat left
12:03
arkiuat joined
12:08
arkiuat left
12:11
arkiuat joined
12:13
librasteve_ left
12:18
jgaz left
12:24
arkiuat left
12:32
tejr left
12:40
tejr joined
12:51
arkiuat joined
12:56
arkiuat left
13:06
sibl joined
13:25
arkiuat joined
13:34
arkiuat left
13:38
arkiuat joined
13:43
arkiuat left
13:50
sibl left
13:56
sibl joined
14:11
arkiuat joined
14:16
arkiuat left
14:20
Sgeo joined
14:36
arkiuat joined
14:43
arkiuat left
15:00
lizmat_ left,
lizmat joined
15:08
arkiuat joined
15:24
arkiuat left
15:44
jgaz joined
15:50
gabiruh left
15:51
gabiruh joined
15:53
arkiuat joined
15:58
Aedil left
15:59
arkiuat left
16:04
arkiuat joined
16:05
sibl left
16:06
Aedil joined
16:10
arkiuat left
16:13
arkiuat joined
16:17
arkiuat left
16:32
arkiuat joined
16:37
arkiuat left
16:43
gabiruh left
16:44
gabiruh joined
16:51
arkiuat joined
16:56
arkiuat left
16:57
arkiuat joined,
silug9 joined,
silug left,
silug9 is now known as silug
17:02
arkiuat left
17:10
gabiruh left
17:12
gabiruh joined
17:17
arkiuat joined
17:21
arkiuat left
17:32
arkiuat joined
17:33
sorenson left
17:41
abraxxa joined
17:46
sorenson joined
17:49
abraxxa left
17:50
abraxxa joined
18:00
abraxxa left
18:06
abraxxa joined
18:35
abraxxa left
18:48
merp left
18:50
merp joined
18:59
vrurg joined
19:01
vrurg_ left
19:15
annamalai left
19:55
abraxxa joined
19:58
david7832 joined
20:01
abraxxa left,
david7832 left,
david7832 joined,
abraxxa joined
|
|||
| david7832 | Is there a way to use lines() together with its $number argument within a feedforward chain? Sonething like $string ==> lines(5) to get the first 5 lines (which fails because the only relevant signature of &lines is ($what, $number), i.e. there's no signature where $what comes last) | 20:09 | |
| antononcube | You can do this: slurp('./jupyter.log') ==> { .lines }() ==> { .head(5) }() | 20:17 | |
| Using andthen is another option. | 20:19 | ||
| Maybe this is what you are looking for: './jupyter.log'.IO ==> { .lines(5) }() | 20:20 | ||
| So, there is a sub &lines and a method .lines. The latter has the number of lines (or limit) as a first argument. | 20:23 | ||
| david7832 | Thank you. The solution with { .lines(5) }() or andthen could be exactly what I'm looking for | ||
| antononcube | Here is a corresponding andthen : './jupyter.log' andthen .IO andthen .lines(5) | 20:25 | |
| david7832 | seems I could also use it like: $string andthen lines($_, 5) | ||
|
20:40
abraxxa left
20:42
abraxxa joined
20:48
arkiuat left
20:51
arkiuat joined
20:55
arkiuat left
21:05
abraxxa left,
arkiuat joined
|
|||
| david7832 | Are there any inbuilt sets of Unicode characters (like those available for regexes) that one can use to do things like looking which potentially-problematic characters occur in a given string? | 22:12 | |
| My current way of doing this is: $str.comb.Set (-) Set('A'..'Z', 'a'..'z', '0'..'9',' ', <ü Ü ä Ä ö Ö ß ẞ ! ? - ( ) ° " ' : . , ; [ ] />) but surely there is something better at least for the letters and digits? | |||
| timo | are you thinking of Confusables? | 22:14 | |
| david7832 | no, mostly about ones that could cause trouble with shell or json interpolation. But Confusables might be another usecase | 22:15 | |
| actually it's mostly targetting towards debugging | 22:16 | ||
| timo | input sanitisation is a field with a long and proud tradition :) | ||
| david7832 | we all know and love little Bobby Tables | 22:17 | |
| timo | m: sub addslashes(Str(Cool) $string is copy) { #`( github.com/sugar700/perl6-Acme-Add...slashes.pm ) $string ~~ s:g/(.)/$0\c[COMBINING LONG SOLIDUS OVERLAY]/; $string }; say addslashes(Q["Robert'); DROP TABLE Students;--"]); | 22:18 | |
| camelia | "̸R̸o̸b̸e̸r̸t̸'̸)̸;̸ ̸D̸R̸O̸P̸ ̸T̸A̸B̸L̸E̸ ̸S̸t̸u̸d̸e̸n̸t̸s̸;̸-̸-̸"̸ | ||
|
22:29
david99 joined,
david56 joined
22:32
david7832 left
22:33
david99 left
22:40
david56 left
22:41
david7832 joined
23:32
david7832 left
23:57
arkiuat left
|
|||