GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Notices by Felix Palmen :freebsd: :c64: (zirias@mastodon.bsd.cafe)

  1. Embed this notice
    Felix Palmen :freebsd: :c64: (zirias@mastodon.bsd.cafe)'s status on Monday, 19-May-2025 04:05:35 JST Felix Palmen :freebsd: :c64: Felix Palmen :freebsd: :c64:

    #Rooting a new #Xiaomi device is getting totally ridiculous these days.

    I already jumped through the hoop to "request bootloader unlock permission" in one of Xiaomi's #bloatware apps at **EXACTLY** midnight beijing time, at least this worked. Now the second step would be to actually unlock the boot loader. On #FreeBSD, I can't use Xiaomi's unlocker tool (but I guess that's actually a good thing), so I found some python script that also works (after a bit of fiddling with it, patching shebang and removing some nonsense), and see what it tells me now.

    Xiaomi, you used to be cool, a long time ago... 🙄

    In conversation about 12 hours ago from mastodon.bsd.cafe permalink

    Attachments


    1. https://media.bsd.cafe/bsdmmedia01/media_attachments/files/114/507/347/426/163/629/original/ad0cd193ad34314b.png
  2. Embed this notice
    Felix Palmen :freebsd: :c64: (zirias@mastodon.bsd.cafe)'s status on Sunday, 04-May-2025 17:49:41 JST Felix Palmen :freebsd: :c64: Felix Palmen :freebsd: :c64:
    in reply to
    • Jadi

    @jadi This "#OpenBSD is secure!" claim always annoyed me a lot, mainly because it doesn't tell anything: #Security in IT can only ever be defined in a context of #threat models. Without that, it's meaningless. Somewhat recently, I discovered this:

    https://isopenbsdsecu.re/

    I should warn it uses some sarcasm and other confrontative language in some parts, unfortunately. But it seems to be a pretty professional analysis and assessment of (mostly) the "mitigations" OpenBSD provides in an attempt to counter "typical" attacks by at least making them harder.

    I should also add that I consider this a very interesting and helpful read, and still consider OpenBSD a great project that came up with lots of great stuff (I recently used their #bcrypt code after doing some research on password hashing, for example). And I don't agree with every single criticism on that page either. I just think it's important to build assessments whether something "is secure" on a serious analytical foundation.

    In conversation about 15 days ago from mastodon.bsd.cafe permalink
  3. Embed this notice
    Felix Palmen :freebsd: :c64: (zirias@mastodon.bsd.cafe)'s status on Thursday, 01-May-2025 00:27:49 JST Felix Palmen :freebsd: :c64: Felix Palmen :freebsd: :c64:

    I'm trying to add "genric" #signal handling to #poser. Ultimate goal is to provide a way for #swad to handle #SIGHUP, although signal handling must be done in poser's main event loop (signals are only ever unblocked while waiting for file descriptor events).

    Okay, I could just add explicit handling for SIGHUP. But a generic solution would be nicer. Just for example, a consumer might be interested in #SIGINFO which doesn't even exist on all platforms ... 🤔

    Now, #POSIX specs basically just say signal constants are "integer values". Not too helpful here. Is it safe to assume an upper bound for signal numbers on "real world" OS implementations, e.g. 64 like on #Linux? Should I check #NSIG and, if not defined, just define it to 64? 🙈

    #C #coding #question

    In conversation about 19 days ago from mastodon.bsd.cafe permalink
  4. Embed this notice
    Felix Palmen :freebsd: :c64: (zirias@mastodon.bsd.cafe)'s status on Saturday, 12-Apr-2025 14:38:43 JST Felix Palmen :freebsd: :c64: Felix Palmen :freebsd: :c64:

    First change since #swad 0.2 will actually be a (huge?) improvement to my #poser lib. So far, it was hardwired to use the good old #POSIX #select call. This is perfectly fine for handling around up to 100 (or at least less than 1000, YMMV) clients.

    Some #select implementations offer defining the upper limit for checked file descriptors. Added support for that.

    POSIX also specifies #poll, which has very similar #scalability issues, but slightly different. Added support for this as well.

    And then, I went on to add support for the #Linux-specific #epoll and #BSD-specific #kqueue (#FreeBSD, #NetBSD, #OpenBSD, ...) which are both designed to *solve* any scalability issues 🥳

    A little thing that slightly annoyed me about kqueue was that there's no support for temporarily changing the signal mask, so I had to do the silly dance shown in the screenshot. OTOH, it offers changing event filters and getting events in a single call, which I might try to even further optimize ... 😎

    #C #coding

    In conversation about a month ago from mastodon.bsd.cafe permalink

    Attachments


    1. https://media.bsd.cafe/bsdmmedia01/media_attachments/files/114/319/100/751/970/447/original/2f5c4626b51468ee.png
  5. Embed this notice
    Felix Palmen :freebsd: :c64: (zirias@mastodon.bsd.cafe)'s status on Saturday, 12-Apr-2025 14:38:41 JST Felix Palmen :freebsd: :c64: Felix Palmen :freebsd: :c64:
    in reply to

    Well, tried it. Works! 🥳

    Accepting a whole list of changes (so you can buffer them during an event loop iteration) and then even submitting them in the same call that receives events (with the changes already applied) is *indeed* a pretty cool thing with #kqueue.

    https://github.com/Zirias/poser/commit/4630d6a8b87284da21097c30ea8a6ba02cc40df6

    In conversation about a month ago from mastodon.bsd.cafe permalink

    Attachments


    1. https://media.bsd.cafe/bsdmmedia01/media_attachments/files/114/319/512/003/180/503/original/2c371d91babadeee.png
  6. Embed this notice
    Felix Palmen :freebsd: :c64: (zirias@mastodon.bsd.cafe)'s status on Saturday, 12-Apr-2025 14:38:39 JST Felix Palmen :freebsd: :c64: Felix Palmen :freebsd: :c64:
    in reply to
    • Tom

    @pertho The only little drawback compared to epoll is the lack of atomic signal mask setting, so you need a bit more code and a thoughtful structure to handle signals in the same loop. Apart from that, indeed much better than #epoll.

    Unfortunately, it's not beter than inotify (for a completely different purpose, #file #monitoring ... kqueue covers them all). With #inotify, you can for example set a #watch by path, while #kqueue requires opened file descriptors. 😞

    In conversation about a month ago from mastodon.bsd.cafe permalink
  7. Embed this notice
    Felix Palmen :freebsd: :c64: (zirias@mastodon.bsd.cafe)'s status on Thursday, 24-Oct-2024 02:48:21 JST Felix Palmen :freebsd: :c64: Felix Palmen :freebsd: :c64:
    • Stefano Marinelli

    Am I the only person left on the planet who doesn't want their #browser in #fullscreen mode?

    Thanks @stefano for upgrading the instance obviously without any issues! But a little boo to #mastodon for the new appearance that needlessly consumes even *more* horizontal space than before (using the "advanced" UI), which now prompted me to show it scaled to 90% in chromium 🙄

    In conversation about 7 months ago from mastodon.bsd.cafe permalink
  8. Embed this notice
    Felix Palmen :freebsd: :c64: (zirias@mastodon.bsd.cafe)'s status on Thursday, 24-Oct-2024 02:48:18 JST Felix Palmen :freebsd: :c64: Felix Palmen :freebsd: :c64:
    in reply to
    • Stefano Marinelli

    @stefano I've always used the "classic" one, now I tried the "bird" style just in case, but same issue. Sure, I could switch to the "simple" UI, but I actually like the columns, just why do they need so much space?

    On the site previously known as twitter, I really enjoyed the classic "tweetdeck"...

    In conversation about 7 months ago from mastodon.bsd.cafe permalink
  9. Embed this notice
    Felix Palmen :freebsd: :c64: (zirias@mastodon.bsd.cafe)'s status on Thursday, 03-Oct-2024 21:06:31 JST Felix Palmen :freebsd: :c64: Felix Palmen :freebsd: :c64:
    in reply to
    • Stefano Marinelli
    • feld

    @feld @stefano Oh! I'll have to keep an eye on that, whether this is the case for all the "missing" toots! Thanks for that idea. 👍

    It seems #snac's simple Web UI doesn't show that property (or I'm being blind), but I can check on the mastodon instance of course 😉

    In conversation about 8 months ago from mastodon.bsd.cafe permalink
  10. Embed this notice
    Felix Palmen :freebsd: :c64: (zirias@mastodon.bsd.cafe)'s status on Thursday, 03-Oct-2024 21:06:29 JST Felix Palmen :freebsd: :c64: Felix Palmen :freebsd: :c64:
    in reply to
    • Stefano Marinelli
    • feld

    @feld @stefano Unfortunately, it has to be a different issue, see this toot that also doesn't appear in my feed on mastodon:
    https://snac.bsd.cafe/zirias/p/1727937709.648837

    It's a reply (again without tagging in the content) to a *public* toot. 😞

    In conversation about 8 months ago from mastodon.bsd.cafe permalink

    Attachments


  11. Embed this notice
    Felix Palmen :freebsd: :c64: (zirias@mastodon.bsd.cafe)'s status on Thursday, 03-Oct-2024 01:43:11 JST Felix Palmen :freebsd: :c64: Felix Palmen :freebsd: :c64:
    • Stefano Marinelli

    @stefano something seems a bit strange with the #snac instance: I followed myself now (both directions), and quite some of my own toots on snac don't arrive in my feed here on #mastodon. But when looking at the snac profile from mastodon, I can read them... 🤷

    In conversation about 8 months ago from mastodon.bsd.cafe permalink
  12. Embed this notice
    Felix Palmen :freebsd: :c64: (zirias@mastodon.bsd.cafe)'s status on Thursday, 03-Oct-2024 01:43:08 JST Felix Palmen :freebsd: :c64: Felix Palmen :freebsd: :c64:
    in reply to
    • Stefano Marinelli

    @stefano Hm ... could it be related to whether something is an answer or not? I *think* it was answers I didn't see, and I'm pretty sure (?) Mastodon is showing me answers written by other people I follow. 🤔

    In conversation about 8 months ago from mastodon.bsd.cafe permalink
  13. Embed this notice
    Felix Palmen :freebsd: :c64: (zirias@mastodon.bsd.cafe)'s status on Thursday, 03-Oct-2024 01:43:06 JST Felix Palmen :freebsd: :c64: Felix Palmen :freebsd: :c64:
    in reply to
    • Stefano Marinelli

    @stefano Maybe I fundamentally misunderstood how the home feed works in #mastodon? I expected it would show me *every* toot from people I follow. Yet here's another one that doesn't appear:
    https://snac.bsd.cafe/zirias/p/1727886222.245670

    Yes, it's an answer again, without tagging anyone, but I wonder how that could be related, I mean I'm following this account (myself on the snac instance), not the "random" person I might or might not tag when answering. I'm confused 😂

    In conversation about 8 months ago from mastodon.bsd.cafe permalink

    Attachments


  14. Embed this notice
    Felix Palmen :freebsd: :c64: (zirias@mastodon.bsd.cafe)'s status on Wednesday, 02-Oct-2024 05:07:29 JST Felix Palmen :freebsd: :c64: Felix Palmen :freebsd: :c64:

    One of the very few actually useful things #systemd has to offer is the #status report (systemctl status) on a service, including lots of info + latest #log messages. Except it completely spoils it by forcing you to scroll horizontally. 🤯

    #TIL: You can easily fix it by putting SYSTEMD_LESS=FRXMK in your environment.

    In conversation about 8 months ago from mastodon.bsd.cafe permalink

    Attachments


    1. https://media.bsd.cafe/bsdmmedia01/media_attachments/files/113/197/858/327/617/285/original/e538049fdbd860a2.png
  15. Embed this notice
    Felix Palmen :freebsd: :c64: (zirias@mastodon.bsd.cafe)'s status on Friday, 27-Sep-2024 06:03:33 JST Felix Palmen :freebsd: :c64: Felix Palmen :freebsd: :c64:

    Next step testing #IPv6only operation in my local network, I wanted to give #dhcp "option 108" (IPv6-only preferred) a try.

    I'm running #ISC #dhcpd on my #FreeBSD router/firewall, so I looked at the manuals:

    https://man.freebsd.org/cgi/man.cgi?query=dhcp-options

    Ok, added "option option-108 00:00:00:00;" based on that, which dhcpd rejected 🤔

    From finding random different examples for custom options and with some trial and error, I found I have instead to declare the option:

    option v6only code 108 = integer 32;

    ... and then use it like this:

    option v6only 0;

    Ok, what's up with documentation here? 🙄

    At least it works, verified on my phone running #Android 14. No #IPv4-address from my pool any more. Instead, 192.0.0.4 appeared, seems it automatically configures a #clat...

    In conversation about 8 months ago from mastodon.bsd.cafe permalink

User actions

    Felix Palmen :freebsd: :c64:

    Felix Palmen :freebsd: :c64:

    Dipl.inform., FreeBSD ports committer, musician, C64 fan/coder, hetero cis white male, not proud, no wing, no ally, leaning liberal/ecologist, pro facts/science

    Tags
    • (None)

    Following 0

      Followers 0

        Groups 0

          Statistics

          User ID
          284150
          Member since
          26 Sep 2024
          Notices
          15
          Daily average
          0

          Feeds

          • Atom
          • Help
          • About
          • FAQ
          • TOS
          • Privacy
          • Source
          • Version
          • Contact

          GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

          Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.