Damus

Recent Notes

Andrew Zonenberg · 7w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqtmm95lu8a64aqyrcx8ka4wefzaj3hv7kr38hc4p7a7a5xdftak4sq4lqye It is C++ but there are no global/static objects of this type due to other restriction...
Marcus Müller profile picture
@nprofile1q... sounds much like you really ought to instead have a factory that spits out these objects:
I'd frankly have smth like the "actual type" you want to work with, and a wrapper class. Hint: you can use `std::unique_ptr<class object_t, class Deleter>`'s `Deleter` to implement the "remove pointer from registry, then actually call `delete` on the stored pointer" functionality. The registry could be `std::unordered_set<object_t*>`.
Factory is function returning these `unique_ptr`s.
Andrew Zonenberg · 7w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqtmm95lu8a64aqyrcx8ka4wefzaj3hv7kr38hc4p7a7a5xdftak4sq4lqye It is C++ but there are no global/static objects of this type due to other restrictions (it's a Vulkan memory buffer so you can't create it until Vulkan is set up)
Manawyrm | Sarah · 8w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqtmm95lu8a64aqyrcx8ka4wefzaj3hv7kr38hc4p7a7a5xdftak4sq4lqye nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqtg3d6mg55ggudsw694mc5mvp6juxpn0x72xakqpacvfn3g087qfq6fqhvj Seeing (and thinking about) this number made me realize why I like my so...
Manawyrm | Sarah · 8w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqtg3d6mg55ggudsw694mc5mvp6juxpn0x72xakqpacvfn3g087qfq6fqhvj No-name china 1270nm/1330nm SMF BiDi SFP transceivers (12$ on Amazon) One side is m...
Marcus Müller profile picture
@nprofile1q... @nprofile1q... hey, because energy for a year can quickly become more expensive than the hardware: do you happen to have a wall-power measurement for the media converter? (just an order of magnitude, not something detailed. I want to know whether we're talking 4€/a in electricity, or 50€/a.
1
Manawyrm | Sarah · 8w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqtmm95lu8a64aqyrcx8ka4wefzaj3hv7kr38hc4p7a7a5xdftak4sq4lqye nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqtg3d6mg55ggudsw694mc5mvp6juxpn0x72xakqpacvfn3g087qfq6fqhvj Mine's a TP-Link MC220 and it draws 1.3W from the wall (with an active ...
Manawyrm | Sarah · 8w
Just patched a long fiber link, which would've absolutely _sucked_ to get CAT.7 cable through. The steel-armored OS2 cable is cheap and super robust/easy to work with. The LC connectors are even small...
Marcus Müller profile picture
@nprofile1q... how do you do the mechanical part of pulling the cable through walls? I have a flat with power outlets that I hope are connected via contiguous pipes, but there's obviously already a power cable in these. Can that still work?
1
Manawyrm | Sarah · 8w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqtmm95lu8a64aqyrcx8ka4wefzaj3hv7kr38hc4p7a7a5xdftak4sq4lqye In this case, I didn't have to, because there cable channels along the way (just some walls to drill through). There is "fish tape" (often called "Einziehhilfe") here, which you can for...
LisPi · 14w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqtmm95lu8a64aqyrcx8ka4wefzaj3hv7kr38hc4p7a7a5xdftak4sq4lqye nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqaw2gcqz09z6lq5w5thzcadjsy8n7srs8mczkgs4c5rvjyyfh96nszc29up One aspect that I think might affect SSDs and doesn't contradict your as...
note15qfs7...
Marcus Müller profile picture
@nprofile1q... @nprofile1q... @nprofile1q... well uefi specifies boot via HTTP https://uefi.org/specs/UEFI/2.11/24_Network_Protocols_SNP_PXE_BIS.html#http-boot ; there's an entirely (nah, let's go with homeopathically) reasonable world where the BMC acts as HTTP server, using as much of its own RAM as read cache as possible,to minimize that latency penalty (physical CD-ROM drives also benefit from locality, because seeking across half a disk is probably slower than awaiting replies from residential V.90 modems)
note1l5apj...
Marcus Müller profile picture
@nprofile1q... -ly, then you can of course use that instead. In practice, as ling as the actual impulse response is symmetrical enough around its maximum (i.e., where it contributes most), sinc interpol is fine, and we iften find ourselves doing it with but the observed maximum sample and one to each side of it, and approximating the sinc x by x², because that makes finding the place of extrema easy