Better HN
topnewbestaskshowjobs
Log inSign up

andoma

571 karma · joined Jan 21, 2013 (13y ago) · 134 submissions

Submissions

comment 3y ago · link · parent

Not an expert in the field, but I have some knowledge. Bluetooth specifies different address types [1] where one of the types are Resolvable Random Private Address. This is used to avoid tracking. TLDR: The address is periodically randomized (typically every 15 min). Part of the address is a hash that lets you identify the device if you previously have bonded with the device (so you have its Identity Resolving Key)

[1] https://novelbits.io/bluetooth-address-privacy-ble/

comment 3y ago · link · parent

Hardcore

comment 3y ago · link · parent

For a recent project of mine I tried a few different connector types but eventually ended up just using RJ-45 (ie Ethernet) connectors. Relatively cheap pre-made cables of almost any length. Twisted pairs also makes it useful for balanced signals. Main downside is the relatively low current rating but that was not a too big of a concern for this application.

comment 3y ago · link · parent

Being a long time personal friend with the author I can assure you the more obscure the better :-) His interest in esoteric things and solutions are "well documented" if you browse around his github repos.

Some examples:

https://github.com/wader/jqjq https://github.com/wader/catgolf

comment 3y ago · link · parent

> Kinda sorta worked ok...just in time for her to stop sleep walking.

Heh, Sounds just like every project I set out to do :)

comment 3y ago · link · parent

> Nordic parts are easier - they actually have low power sleep that is fairly automatic.

Came here to say this. Started with the STM32WB5x for a BLE project but got so frustrated with it so I switched over to NRF52. Never looked back. I love (and use) the STM32x for many other applications but the STM32WB BLE-solution is just too opaque with the (close sourced) BLE stack running on the secondary core while still requiring a lot of low level collaboration from the main application core. Would have been a lot easier if was more isolated and just provided a standard HCI interface or something. I suppose one could argue to use a dedicated BLE IC in this case.

Anyway, I'm very happy with the NRF52 I'm using. The events, tasks and peripheral interconnects is also a really nice feature. Documentation is stellar as well IMO. My main gripe with it is that it only comes with one UART port. Two would have been nice. Perhaps the NRF52 successors comes with more. Haven't checked really.

EDIT: typo

comment 3y ago · link · parent

Pretty sure some of the low-end Cortex-M cores (M0 and M1) lacks instructions for division.

comment 3y ago · link · parent

Genuine question: Does it have to be mlocked for this to work?

comment 3y ago · link · parent

Reminds me of the incorrect cast of memcmp() return value that resulted in this bug: https://bugs.mysql.com/bug.php?id=64884

comment 3y ago · link · parent

I'm totally fine with it keeping BT audio active when it's connected to anything else (even the charger I guess). The annoying thing, for me at least, is when it decides it absolutely has to take over my Bose Headphones while closed in my backpack, not playing any audio, and I'm out traveling with it and my iPhone.

comment 3y ago · link · parent

Nah, Makes no sense. I can manually disconnect the BT audio headset while having keyboard and mouse still working fine over BT.

comment 3y ago · link · parent

> In nearby Erzin county, however, not a single building collapsed. The local mayor and his predecessor told local media that they did not allow any illegal construction. Both used the same phrase: “My conscience is clear.”

That mayor, Ökkeş Elmasoğlu, should perhaps run for president.

comment 3y ago · link · parent

And pointers were stored/passed by dividing them with 4. Certainly a bit annoying and I really never understood why.

comment 3y ago · link · parent

One feature I really like is that if you hover over a link Evince previews the target of the link in a little box. Perfect for "see Table X on page Y"

45.

Jq Implementation of Jq(github.com ↗)

3 points · by andoma · 4y ago · 2 comments

comment 4y ago · link · parent

Cut my teeth on the Amiga as well. Still have the Amiga Hardware Reference Manual in my bookshelf. Can't throw it out now? I was around 11-12 years old when I started to program on it. Certainly didn't understand some parts, in particular I remember the blitter's truth table [0] was confusing to me at the time. But it was a pang of nostalgia when I realized the new AVX-512 VPTERNLOGx [1] instructions uses the exact same table as the Amiga's blitter. Must be a perfect fit for Amiga emulators :)

[0] https://wiki.amigaos.net/wiki/Graphics_Minterms [1] https://www.felixcloutier.com/x86/vpternlogd:vpternlogq

comment 4y ago · link · parent

According to Hertz in their 2022 Q2 report [0] (pg. 11), they are spending 50-60% on EV maintenance compared to ICE.

[0] https://ir.hertz.com/static-files/bf4780e2-5bd6-4236-8b11-ed...

comment 4y ago · link · parent

100 + 100 = 1000 :)

comment 4y ago · link · parent

I've switched to using cudaMallocManaged() exclusively. From what I can tell there's isn't much of a performance difference. A few cudaMemPrefetchAsync() at strategic places will remedy any performance problems. I really love the ability that you can just break with gdb and look around in that memory as well.

comment 4y ago · link · parent

This article [0] from Nvidia gives a good overview of how mixed precision training works.

Super high level (from section 3):

  1. Converting the model to use the float16 data type where possible.
  2. Keeping float32 master weights to accumulate per-iteration weight updates.
  3. Using loss scaling to preserve small gradient values.
[0] https://docs.nvidia.com/deeplearning/performance/mixed-preci...

comment 4y ago · link · parent

Used to work for Spotify back in the days. I was the maintainer of libspotify since its inception (early 2009) and a few years on. TBH I'm surprised it was still being supported up until this day by the backend. Though, some of the earliest hardware integrations were made using libspotify (before the eSDK came about) so I suppose it just had to be kept alive longer than otherwise would have been needed.

RIP <3

comment 4y ago · link · parent

Check https://github.com/edenhill/mklove which aims to be a drop-in replacement of autotools but with sane developer experience.

comment 4y ago · link · parent

Yes.

comment 4y ago · link · parent

Nice to see BearSSL being used. Definitely my favorite SSL library. No memory allocations by the lib itself. Still missing TLS1.3 though.

comment 4y ago · link · parent

Somehow this reminded me of this video [0]. I can’t really tell if it’s a joke or just complete cluelessness. But it’s kinda fun regardless.

Edit: The article posted by OP is obviously high quality stuff, diving into MPLS, etc.

[0] https://youtu.be/SXmv8quf_xM

comment 4y ago · link · parent

Retro Game Mechanics Explained recently started a new series specifically on the SNES audio subsystem (SPC700): https://www.youtube.com/watch?v=zrn0QavLMyo

Only first episode released yet, but there is a previous series on the SNES system as a whole, first ep: https://www.youtube.com/watch?v=57ibhDU2SAI

comment 4y ago · link · parent

Depressing to see a “reboot every 20 days” hack / workaround for whatever stuff doesn’t work correctly. OTOH the xfinity Arris modem I used to have rebooted almost daily whenever it felt a bit sad (I think if the BER crossed a threshold or something), so I suppose it’s an improvement if that’s your baseline.

comment 4y ago · link · parent

If there only was another way to turn on a lamp…

comment 5y ago · link · parent

Same thing happened once at my parents house. Quite confusing for some :)

60.

Cat(1) Golf(github.com ↗)

2 points · by andoma · 5y ago · 1 comment

12345