Whole-known-network
<p>Sort of debating if I should submit a proposal to PyCon. Deadline is coming up fast and I'm buried in work. Also not sure if PyCon is still a place for my style of computering.</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@gamingonlinux" class="u-url mention">@<span>gamingonlinux</span></a></span><br />There is the word Sky in the Name. Everyone knows, that the Sky does not exists!!!!!!!!!!!<br />And so on ....</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> few micrograms per kg, this is nothing, but China is super strict on opiates due to the whole 2 opium wars thing</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> <span class="h-card" translate="no"><a href="https://girlcock.club/@poppyhaze" class="u-url mention">@<span>poppyhaze</span></a></span> What? Is there some background about hot pot I didn't hear about?</p>
<p>Dear Interwebs, do I have anyone here who has successfully managed to get systemd-logind to recognize the S1 button on a PCEngines APU2 as a "power button"?</p><p>I can see the button producing an EV_KEY event with code BTN_1/257 on /dev/input/input1, but all the documentation I can find on how to remap that to a "power button" with udev and hwdb makes my eyes glaze over and brain freeze.</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@dabeaz" class="u-url mention">@<span>dabeaz</span></a></span> How does a macro help here?</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.gamedev.place/@lesley" class="u-url mention">@<span>lesley</span></a></span> A preprocessor macro perhaps?</p>
<p>For the bus enthusiasts 🚌</p>
<p>Can any <a href="https://mastodon.gamedev.place/tags/clanguage" class="mention hashtag" rel="tag">#<span>clanguage</span></a> people give me some suggestions? In my current project, I have a `StringView` struct, which is essentially a pointer and a length. Every time when I need to print it, I need to do something like<br />```c<br />printf("%*s", (int)sv.size, sv.start);<br />```<br />This is annoying and error-prone. I can also write custom format-print functions, which will also allow me to format-print arbitrary structs. However, then I lose the nice compiler protection against incorrect formats.</p><p><a href="https://mastodon.gamedev.place/tags/c" class="mention hashtag" rel="tag">#<span>c</span></a></p>