News for hackers. Stuff that matters.

timakro

Re:Rusty Ownership and the Lifecycle’s Stone on Sunday November 27, 2022 @12:29PM (#33764709)
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!
Re:Why it’s hard to buy deodorant in Manhattan on Thursday November 24, 2022 @06:57PM (#33737528)
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.
Re:Brian Kernighan adds Unicode support to Awk on Saturday August 20, 2022 @03:25PM (#32534543)
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}'
Re:Brian Kernighan adds Unicode support to Awk on Saturday August 20, 2022 @03:04PM (#32534399)
I believe no distro actually ships this version of awk by default. They ship GNU awk which has Unicode support anyways.
Re:Library Writing Realizations (2015) on Sunday July 24, 2022 @05:49PM (#32218096)
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.
Re:I'm “still afraid to use spaces in file names” years old on Thursday November 11, 2021 @10:44AM (#29189149)
Maybe if we'd do it more software would actually learn to deal with it.
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-...
Great! Be sure to check out the first part if you have trouble getting started. Best of luck :)
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

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.

Re:Bare Metal STM32 Programming and a Quadcopters Awakening on Wednesday March 06, 2019 @11:07AM (#19319928)
Thanks, I updated the post.
Re:Bare Metal STM32 Programming and a Quadcopters Awakening on Wednesday March 06, 2019 @10:24AM (#19319530)
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!
Re:Bare Metal STM32 Programming and a Quadcopters Awakening on Wednesday March 06, 2019 @01:27AM (#19316773)
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.
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.