HN user

timakro

156 karma
Posts8
Comments14
View on HN

Small correction: contrary to what the post claims this does not compile:

    fn main() {
        let s = String::from("hello");
        foo(s);
        println!("{}", s);
    }

    fn foo(le_string: String) -> String {
        println!("{}", le_string);
        le_string
    }
This does, which is probably what the author meant:
    fn main() {
        let s = String::from("hello");
        let s = foo(s);
        println!("{}", s);
    }

    fn foo(le_string: String) -> String {
        println!("{}", le_string);
        le_string
    }
Great post!

Amazon makes it easy to sell especially with FBA. That's as much a good thing as it can be misused. It allows new businesses to get started when they cannot afford to handle shipping to customers themselves.

So it turns out the default on Debian is mawk which does NOT support Unicode. Thanks for pointing that out. This simple test gives different results for gawk and mawk.

  $ echo 'ö' | awk '{print length}'

Even though I'm a prospective developer I read the title as "realizations I had when writing in a public library". I was hoping for tips or insights when working in public spaces.

On-chip debugging with OpenOCD was actually one of the next things I wanted to try out with my drone. I need to get an ST-Link dongle because the drone doesn't have one on board.

I'm not sure if JTAG will even work or if they connected a pin to some sensor or similar on the board. SWD will work for sure, I saw the two SWCLK and SWDIO connectors on the board.