HNHacker News
TopNewBestAskShowJobs

timakro

156 karma · joined February 22, 2019

submissionscomments
timakro··on Rusty ownership and the lifecycle’s stone
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!
timakro··on Why it’s hard to buy deodorant in Manhattan
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.
timakro··on Brian Kernighan adds Unicode support to Awk
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}'
timakro··on Brian Kernighan adds Unicode support to Awk
I believe no distro actually ships this version of awk by default. They ship GNU awk which has Unicode support anyways.
timakro··on Library Writing Realizations (2015)
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.
timakro··on I'm “still afraid to use spaces in file names” years old
Maybe if we'd do it more software would actually learn to deal with it.
timakro··on On Apple’s “Expanded Protections for Children” – A Personal Story
Some banks in Germany support chipTAN which doesn't require a phone. You can find a list of banks supporting chipTAN here: https://www.kostenloser-girokonto-vergleich.de/diese-banken-...
timakro··on Quadcopter Programming Part 2: Using the CMSIS Library and First Takeoff
Great! Be sure to check out the first part if you have trouble getting started. Best of luck :)
timakro··on Quadcopter Programming Part 2: Using the CMSIS Library and First Takeoff
SWD is purposefully exposed on that board and instead of flashing via the bootloader I got flashing with gdb via SWD with the `load` command working. I just use a male header with some jumper wires for the connection. It seems stable enough. Some pictures of the debug port here:

https://files.timakro.de/IMG_20191201_142259.jpg

https://files.timakro.de/IMG_20191201_142246.jpg

timakro··on EU Abolishes Tan Lists and Banking Apps on Rooted Phones Ridiculousness
It stands for "Transaction authentication number", in Germany this term is widely used, not sure about other European countries.

And yes you are correct, this is a one-time password you enter to authenticate a bank transaction.

timakro··on Bare Metal STM32 Programming and a Quadcopters Awakening
Thanks, I updated the post.
timakro··on Bare Metal STM32 Programming and a Quadcopters Awakening
Nice series you got there, I just took a look and found some really interesting projects. I would be honored for my article to be featured there!
timakro··on Bare Metal STM32 Programming and a Quadcopters Awakening
Fair enough, my first idea was actually to use MicroPython. With a megabyte of Flash that would have been possible, but 64K is just not enough.
timakro··on Bare Metal STM32 Programming and a Quadcopters Awakening
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.