Skip Navigation
What are you working on this week? (June. 23, 2024)
  • Apparently generating "Finite Projective Planes". For context on how I got here, I went camping with my family and brought the game Spot It. My brother was analyzing it and came up with the same type of pattern.

    When we got home he made a python script to generate these boards, but it was quite slow, so he half joked asking me to rewrite it in Rust.

    I kinda struggled a bit since I didn't fully understand what it was doing. Near the end I even got a segfault using safe code😃! (i was spawning a thread with a large stack size, and allocating huge slices on its stack, rather than you know.. boxing the slice Lol.) When I finally got it working, it ended up being in the ballpark of a 23x speedup. Not bad for changing the language choice!

    There's lots of room for improvement left for sure. The algorithm could benefit with some running statistics about cols/rows and the algorithm itself is quite naïve and could maybe be improved too :P

  • I just cited myself.
  • If they aren't equal, there should be a number in between that separates them. Between 0.1 and 0.2 i can come up with 0.15. Between 0.1 and 0.15 is 0.125. You can keep going, but if the numbers are equal, there is nothing in between. There's no gap between 0.1 and 0.1, so they are equal.

    What number comes between 0.999... and 1?

    (I used to think it was imprecise representations too, but this is how it made sense to me :)

  • Elsevier
  • Imagine they have an internal tool to check if the hash exists in their database, something like

    "SELECT user FROM downloads WHERE hash = '" + hash + "';"
    

    You set the pdf hash to be 1'; DROP TABLE books;-- they scan it, and it effectively deletes their entire business lmfaoo.

    Another idea might be to duplicate the PDF many times and insert bogus metadata for each. Then submit requests saying that you found an illegal distribution of the PDF. If their process isn't automated it would waste a lot of time on their part to find the culprit Lol

    I think it's more interesting to think of how to weaponize their own hash rather than deleting it

  • Don't make a mistake in choosing a distro
  • I was thinking that the user intentionally chose their distro, because of the Ubuntu character.

    Cool, more free stuff

    Arch, you want more free stuff faster

    Not again!

    Debian, you want to set and forget, so any updates that do come up are still a nuisance

  • Bootloader equivalent to Rufus
  • /dev/sdX is a file, and both dd, cat can read files in full. You can even try something like zstd to compress it too.

    One of the nice things about dd though is you can see the progress with --status=progress

  • Benefit of a subvolume below the top level btrfs subvolume?
  • I think it is so that the subvolume can be mounted with different options. You can of course have a mixed layout which might be more convenient, so that say root and home subvolumes mount with the same options, but swap mounts with different options. And the top level never gets mounted at all.

    toplevel (not mounted)
    +-- @ (subvolume mounted on /)
        +-- home (subvolume, looks like a folder, same mount options as @)
        +-- usr (folder, gets snapshotted by @)
        +-- ...
    +-- @swap (subvolume with different options, mounted on /swap)
    

    I set mine up with a purely flat layout so I haven't verified this is true, but it sounds reasonable.

    Here's the documentation I was looking at:

    https://web.archive.org/web/20220103010302/https://btrfs.wiki.kernel.org/index.php/SysadminGuide#Flat

  • What is/was your distrohopping journey?
  • Screenshot woulda been better just so everyone sees the same thing lol. I wasn't sure what it would look like because on browser it highlighted some things green, and on Voyager it seems to highlight 4+ space indented as gray. No clue what is going on there :D

    vim with :set virtualedit=all gets pretty close being able to "paint" text anywhere... unfortunately i was on my phone and didn't think to use it

  • What is/was your distrohopping journey?
  • o Windows 10
    |
    o Linux Mint
    |
    |\__
    |   \
    |    o Manjaro KDE
    |    |
    o Fedora KDE
    |    |\__
    |    |   \
    x    |    o Windows 11
         |    o Windows 11 + Arch Linux
         |    |
         o Arch Linux
         |    |
         |    |
         |    o Windows 11 + Debian KDE
         |    |
    

    hopefully it renders well on your client :D

  • Genital Horse for sale
  • My first impression is that it feels fake because of:

    when kids our on him

    our -> are

    Come try are boy

    are -> our

    Maybe it depends on accent but "are" and "our" are homophones in my accent and if you spelled by sound you'd likely spell "our" as "are" ..i cant help but feel like it's intentionally increasing the mistake counter :(

  • Favourite DE
  • Woahh thats so cool!!

    I think your QMK config counts (for now;)) What are some useful things you've changed?

    Yeah, im a bit worried about vim binds for alternative layouts as well. I think some people use a layer mod to keep normal mode as QWERTY (or a "normal mode" layer) but insert mode uses their regular layout. Others apparently use their non-qwerty layout for everything (but i guess change hjkl). Apparently it's not too bad.. but probably depends on the person.

    The clamps lol, i love it!

  • Favourite DE
  • I've had this type of itch to keyboardize my workflow more. I learned about colemak keyboard mods, and started following the rabbit hole haha. Did you design your keyboard pcb too? or just wrote custom firmware?

  • toxic help forum
  • Not having Paint.NET sucked when I switched to Linux. I got very used to it and that was the one I missed most... it took a few years bouncing between programs but I'm happy with Krita now. GIMP just never clicked for me unfortunately.

    I sometimes think about making a Paint.NET clone for linux but i have too many other projects and hobbies i wanna do instead yk

  • XWayland 24.1 Released With Explicit Sync, Better Rootful Experience
  • XWayland normally runs x11 apps seamlessly (more or less) in Wayland

    XWayland rootful spawns a window which is like a virtual monitor running a full x11 session inside it. You spawn apps inside of the window using the DISPLAY variable

  • InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)TU
    tuna @discuss.tchncs.de
    Posts 0
    Comments 14