From 7b07c5cd44ed3647215b0180b121c46f214f352b Mon Sep 17 00:00:00 2001 From: DTB Date: Wed, 1 Nov 2023 23:39:57 -0600 Subject: [PATCH] 2023-11-01 --- homepage/homepage | 341 +++++++++++++++++++++++++++++++++++++++------- 1 file changed, 295 insertions(+), 46 deletions(-) diff --git a/homepage/homepage b/homepage/homepage index ec7dac6..7b9eb69 100755 --- a/homepage/homepage +++ b/homepage/homepage @@ -1925,6 +1925,255 @@ If I don't, escalate the issue to the host of this site (this can also be found +/blah/2023-11-01.html + +Rabbit rabbit. + +$ doas su - +# apk del rust cargo +# ^D +$ curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf >rustup.sh +$ more >().len() >= 2 { + if args_os().collect::<Vec<OsString>>().len() >= 2 { for argument in args_os() { stdout.write(argument); stdout.write(b" "); @@ -2553,7 +2802,7 @@ std::io. Looking at the primitive u8, it's an 8-bit unsigned integer which should be fine for my uses. The method into_os_str_bytes() should work to convert -std::ffi::OsString into a Vec but the documentation notes that this is +std::ffi::OsString into a Vec<u8> but the documentation notes that this is "a nightly-only experimental API". Whatever, probably fine. ```rs @@ -2563,7 +2812,7 @@ use std::ffi::OsString; fn main() { let mut stdout = stdout().lock(); - if args_os().collect::>().len() >= 2 { + if args_os().collect::<Vec<OsString>>().len() >= 2 { for argument in args_os() { stdout.write(argument.into_os_str_bytes()); stdout.write(b" "); @@ -2579,7 +2828,7 @@ error[E0658]: use of unstable library feature 'os_str_bytes' 9 | stdout.write(argument.into_os_str_bytes()); | ^^^^^^^^^^^^^^^^^ | - = note: see issue #111544 f + = note: see issue #111544 <https://github.com/rust-lang/rust/issues/111544> f or more information error[E0308]: mismatched types @@ -2587,12 +2836,12 @@ error[E0308]: mismatched types | 9 | stdout.write(argument.into_os_str_bytes()); | ----- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&[u8]`, fou -nd `Vec` +nd `Vec<u8>` | | | arguments to this method are incorrect | = note: expected reference `&[u8]` - found struct `Vec` + found struct `Vec<u8>` note: method defined here --> /builddir/rust-1.73.0/library/std/src/io/mod.rs:1461:8 help: consider borrowing here @@ -2614,7 +2863,7 @@ error[E0658]: use of unstable library feature 'os_str_bytes' 9 | stdout.write(&argument.into_os_str_bytes()); | ^^^^^^^^^^^^^^^^^ | - = note: see issue #111544 f + = note: see issue #111544 <https://github.com/rust-lang/rust/issues/111544> f or more information error: aborting due to previous error @@ -2639,13 +2888,13 @@ implementation that limits input to UTF-8. But first I wanna see how someone else has done this already. https://github.com/uutils/coreutils.git src/uu/echo/src/echo.rs L119: ->pub fn uumain(args: impl uucore::Args) -> UResult<()> { +>pub fn uumain(args: impl uucore::Args) -> UResult<()> { > let args = args.collect_lossy(); > let matches = uu_app().get_matches_from(args); > > let no_newline = matches.get_flag(options::NO_NEWLINE); > let escaped = matches.get_flag(options::ENABLE_BACKSLASH_ESCAPE); -> let values: Vec = match matches.get_many::(options::STRING +> let values: Vec<String> = match matches.get_many::<String>(options::STRING ) { > Some(s) => s.map(|s| s.to_string()).collect(), > None => vec![String::new()], @@ -2677,7 +2926,7 @@ use std::io::{Write, stdout}; fn main() { let mut stdout = stdout().lock(); - if args().collect::>().len() >= 2 { + if args().collect::<Vec<String>>().len() >= 2 { for argument in args() { stdout.write(&argument.as_bytes()); stdout.write(b" "); @@ -2694,7 +2943,7 @@ that. use std::env::args; fn main() { - if args().collect::>().len() >= 2 { + if args().collect::<Vec<String>>().len() >= 2 { for argument in args() { print!(argument); print!(" "); @@ -2723,7 +2972,7 @@ Okay. use std::env::args; fn main() { - if args().collect::>().len() >= 2 { + if args().collect::<Vec<String>>().len() >= 2 { for argument in args() { print!("{}", argument); print!(" "); @@ -2747,7 +2996,7 @@ Oh. use std::env::args; fn main() { - if args().collect::>().len() >= 2 { + if args().collect::<Vec<String>>().len() >= 2 { for argument in args().skip(1) { print!("{} ", argument); } @@ -2829,7 +3078,7 @@ Cycling through articles only delays the inevitable. Looking at me ' up and down thick left thigh, '' pupils blown out I'm leaning onto brick and his pace changes tempo -- -- bitch keep walking \< +- -- bitch keep walking \< decelerates, ' my voice decrescendoes VV I'll tear your neck open and piss in your windpipe song of the city plays still and I \<