fool

joined 2 years ago
[–] fool@programming.dev 3 points 3 months ago (1 children)

This is like the beach that makes you old. You doubt it, you go there, you ignore the "Beach That Makes You Old" sign, the beach makes you old.

[–] fool@programming.dev 4 points 3 months ago* (last edited 3 months ago)

A cogirl is a cogirloid in the category of cogirlfunctors

[–] fool@programming.dev 10 points 4 months ago

First, imagine a number in JavaScript. (Bit of a nail biter here, huh?)

let i = 5

Then, we will construct an incrementor. This is really simple: here is the method.

  1. Make a bracket-string-centric version of eval().
[]["filter"]["constructor"]("return i+1")()
  1. Reconstruct stringy eval() by using +[] as 0, +!+[] as 1, and implicit conversions as ways to create strings. For example, 'false' is (![]+[]), so 'f' is (![]+[])[+[]].
[][
  (![] + [])[+[]] + // f
  ([![]] + [][[]])[+!+[] + [+[]]] + // i
  (![] + [])[!+[] + !+[]] + // l
  (!![] + [])[+[]] + // t
  (!![] + [])[!+[] + !+[] + !+[]] + // e
  (!![] + [])[+!+[]] // r
][
  ([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+ // c
  (!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+ // o
  ([][[]]+[])[+!+[]]+ // n
  (![]+[])[!+[]+!+[]+!+[]]+ // s
  (!![]+[])[+[]]+ // t
  (!![]+[])[+!+[]]+ // r
  ([][[]]+[])[+[]]+ // u
  ([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+ // c
  (!![]+[])[+[]]+ // t
  (!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+ // o
  (!![]+[])[+!+[]] // r
]("return i+1")()
  1. Draw the rest of the fucking owl. Final code:
let i = 5; // haha yay

[][
  (![] + [])[+[]] + // f
  ([![]] + [][[]])[+!+[] + [+[]]] + // i
  (![] + [])[!+[] + !+[]] + // l
  (!![] + [])[+[]] + // t
  (!![] + [])[!+[] + !+[] + !+[]] + // e
  (!![] + [])[+!+[]] // r
][
  ([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+ // c
  (!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+ // o
  ([][[]]+[])[+!+[]]+ // n
  (![]+[])[!+[]+!+[]+!+[]]+ // s
  (!![]+[])[+[]]+ // t
  (!![]+[])[+!+[]]+ // r
  ([][[]]+[])[+[]]+ // u
  ([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+ // c
  (!![]+[])[+[]]+ // t
  (!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+ // o
  (!![]+[])[+!+[]] // r
](
  (!![]+[])[+!+[]]+ // r
  (!![]+[])[!+[]+!+[]+!+[]]+ // e
  (!![]+[])[+[]]+ // t
  ([][[]]+[])[+[]]+ // u
  (!![]+[])[+!+[]]+ // r
  ([][[]]+[])[+!+[]]+ // n
  (+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]]+ // ' '
  ([![]]+[][[]])[+!+[]+[+[]]]+ // i
  (+(+!+[]+(!+[]+[])[!+[]+!+[]+!+[]]+[+!+[]]+[+[]]+[+[]])+[])[!+[]+!+[]]+ // +
  +!+[] // 1
)()
// no virus i swear. execute arbitrary code in your browser console.

Anyway, that's just everyday JS work. It's like step 5 after resizing the button, but a bit before centering the div.

based on this. ~some~ ~translation~ ~methods~ ~done~ ~differently.~

[–] fool@programming.dev 6 points 4 months ago (4 children)

Doesn't anyone here know that the Death Note (1) curses all those who use it with misfortune and (2) will trap your soul in limbo after use?

Nah, I'm good. Tweezers and a matchstick.

[–] fool@programming.dev 3 points 4 months ago* (last edited 4 months ago)

Amazing read, thank you for this. Saved

[–] fool@programming.dev 11 points 4 months ago* (last edited 4 months ago) (1 children)

Even more magical is the lossless Zstandard ~is~ ~this~ ~a~ ~name~ ~drop?~. It does so much stuff, it's awesome!

  • hella fast compared to similar-leveled compressors (zoom)
  • no matter the zstd compression level, decompression takes equal time! (ux!)
  • zstd can use a user-given dictionary, or train its own on a sample set (wowie)
  • zstd can be used for live compression (compress and decompress as you read and write, not before or after)
    • on ram (install more ram??)
    • in filesystems (2.5x your disk??)
    • saves CPU by not compressing if it's not worth it (efficiency!!)
  • use ALL the cores!

So kool. lol

[–] fool@programming.dev 7 points 4 months ago* (last edited 4 months ago)

Did somebody say Inferno?

[–] fool@programming.dev 0 points 4 months ago

Getting mangoed and eating a stone.

64
rap god (programming.dev)
 
[–] fool@programming.dev 1 points 4 months ago

Interesting, 18 up and 16 down as of this comment. Because this started with ~2 downvotes (the first image had terrible jpeg for a few minutes), we either have

  1. my taste did not land
  2. early downvotes beget more downvotes

this comment is here for notetaking. let's see if i'm a moron or if iambs are stronger than herds.

6
rap god (programming.dev)
submitted 4 months ago* (last edited 4 months ago) by fool@programming.dev to c/lemmyshitpost@lemmy.world
 
[–] fool@programming.dev 8 points 4 months ago* (last edited 4 months ago)
  1. e4 d197
  2. e5 d196
  3. e6 d195
  4. e7 d194
  5. e8 d193
  6. e9 d192
  7. e10 d191
    ...
  8. e100 d101
  9. exd101 Scandinavian Gambit Accepted
[–] fool@programming.dev 3 points 4 months ago

Almost all cases that I saw someone obsesaing over growth in one domain was hiding or running away from some pain that they coudn’t handle.

Thanks, this is something I need to think about.

[–] fool@programming.dev 6 points 4 months ago

Yep, see sidebar :P

 

stuff like the 9mm wadadadang thing or

no reason.

 

edit: fixed title

Journalist and self-proclaimed Freedom of Information Act nerd Ken Klippenstein claims to have released Mangione's manifesto. He also believes that some news sources are withholding it.

Manifesto (source: Klippenstein)

To the Feds, I'll keep this short, because I do respect what you do for our country. To save you a lengthy investigation, I state plainly that I wasn't working with anyone. This was fairly trivial: some elementary social engineering, basic CAD, a lot of patience. The spiral notebook, if present, has some straggling notes and To Do lists that illuminate the gist of it. My tech is pretty locked down because I work in engineering so probably not much info there. I do apologize for any strife of traumas but it had to be done. Frankly, these parasites simply had it coming. A reminder: the US has the #1 most expensive healthcare system in the world, yet we rank roughly #42 in life expectancy. United is the [indecipherable] largest company in the US by market cap, behind only Apple, Google, Walmart. It has grown and grown, but as our life expectancy? No the reality is, these [indecipherable] have simply gotten too powerful, and they continue to abuse our country for immense profit because the American public has allwed them to get away with it. Obviously the problem is more complex, but I do not have space, and frankly I do not pretend to be the most qualified person to lay out the full argument. But many have illuminated the corruption and greed (e.g.: Rosenthal, Moore), decades ago and the problems simply remain. It is not an issue of awareness at this point, but clearly power games at play. Evidently I am the first to face it with such brutal honesty.

79
submitted 5 months ago* (last edited 5 months ago) by fool@programming.dev to c/dull_mens_club@lemmy.world
 

The temperature and texture were very easy, balanced. Drinking out of a clear glass added to the fanciness. I am a biased narrator, because I was already mildly thirsty.

 

edit: title

This book is efficient and answered questions the moment as I imagined asking, but to see its unique coolness -- we could do with some context on its literary genus.

Have you ever seen Kate Gregory's talk: Teach C++ not C?

The idea is, C++ has different habits than C, even if C++ is a "99% superset of C". But beginners can understand C++ just fine without learning C first. It's more ergonomic to learn about std::vector before using raw arrays and pointers, as Gregory puts it.

So, why do we teach vim before neovim, or before a well-regarded distribution like LazyVim? Because vim is "purer", installed everywhere? Because we learned it that way? What if we taught LazyVim/Neovim before raw vim, a la C++ before C? Modern features and ergonomics will keep a beginner listening -- surely you don't disagree.

Anyway, this book is that efficient and direct path to LazyVim. It covers the things that StackOverflow won't be the most useful pedagogues for (e.g. "what are those tab things on top of my window? How do I use the explorer thingamajig on the left -- should I even care about it, anyway?"). Plus, it keeps LazyVim as a first-class learning target, providing its mnemonics and habits alongside the typical vim stuff you'd normally learn with vimtutor.

I like this kind of learning :) good for the on-the-fencers like me

37
submitted 5 months ago* (last edited 5 months ago) by fool@programming.dev to c/showerthoughts@lemmy.world
 

edit: shortened thoughts

If I get 50 up/downvotes then 500 people of all different walks of life read this, since only the distribution's tails vote. If that's 5-10% at each tail, then the 80-90% who thought the post or comment was mild have seen it and have not spoken.

If I leave it in the showerthoughts queue for ten days, then future people will see it too. Maybe they're from a year away!

Idk. Just sonder

 

For me, it's a 30fps video about someone doing a Super Mario flash game walkthrough of their own level. It was pretty meticulous, pushed the physics of the game. Lots of F.L.U.D.D. (a funky water spray bottle for plumber self-propelling) and dive tricks.

 

When you cryptsetup luksFormat, LUKS2 cryptography defaults to argon2id, a competition-winning gpu-resistant multi-core memory-hard algorithm thingy. Only problem is everyone only supports pbkdf2 instead :3

  • GRUB had an argon2id support patch in the works. Buuut it stopped because a version-pinned dependency added argon2id support, and GRUB wants to update lib x to update lib y to update lib z to update said dependency (2 years later... I'm here D: )
  • systemd-boot is simple and doesn't support argon2id
  • efistub, i.e. making the kernel boot itself (i think?), necessitates secure boot and I'm not sure that's the best way to do this (Ventoy can bypass secure boot with MOKMANAGER funkin' anyway, can't it?)
  • Raspberry Pi's bootloader might support argon2id? idk

Not to be deterred, I tried manually patching GRUB (tried with aur on a usb, then with portage) but I don't think these are supported with the latest GRUB. (Attempted with whatever the aur package uses, then Gentoo's grub-2.12-r4, then Gentoo's grub-2.12-r5, then git cloning and checking out older versions manually, then picking the earliest 2.12 archive.org tarball to patch lol. All failed with "couldn't find disk"-esque issues)

Does anyone have this working at or after Nov 2024? And better yet, am I missing something obvious ¯\_(ᵕ—ᴗ—)_/¯

Threat model: Avoiding a twopointfouristan prank, but also just screwing around for fun (◡‿◡✿)

 

Perhaps dumb questions inbound ;)

I use Arch because I'm strapped for time and my system is always moving.

  • 2 minutes to install something? AUR probably has it.

  • Ten minutes of free time to look for a software that fits a new need? Try random AUR things (auditing PKGBUILDs is just twenty seconds or so).

  • If I need a tiny patch, I'll just add a sed or patch file to the PKGBUILD. (Super easy, you barely learn any syntax cuz it's intuitive shell.)

  • make && make install/meson blahblah usually just works.

  • Wiki does the thinking for me if I need something special (e.g. hw video acceleration)

Buuuut update surprises can be a pain (e.g. Pipewire explodes Saturday evening) and declarative rollbackable immutability sounds really freakin' AWESOME, so I'm considering NixOS for my new laptop (old one's webcam broke). So I ask:

  • How much can I grok in a week?
    • I need to know Nixlang, right? I have a ton of dotfiles and random homemade cpp commands in ~/.local/bin that I use daily
  • How quick is it to make a derivation?
    • I make install a lot, do I need to declare that due to non-FHS? Can I boilerplate the whole thing with someone else's make install and ctrl+c ctrl+v? How does genAI fare? (Lemmy hates word guess bots, I know)
  • How quick is it to install something new and random?
    • Do I just use nix-shell if I need something asap? Do I need to make a derivation for all my programs? e.g. do I need to declare a Hyprland plugin I'm test-running?
  • How long do you research a new package for?
    • On Gentoo I always looked up USE flags (NOO my time); on Arch I just audit the PKGBUILD and test-run it (20 seconds); on Ubuntu I had to find the relevant PPA (2 minutes). What's it like for Nix?
  • Can you set up dev environments quickly or do you need to write a ton of configs?
    • I hear python can be annoying. Do C++/Android Studio have header file/etc. issues?
  • What maintenance ouchies do you run into? How long to rectify?
  • Do I need to finagle on my own to have /boot encrypted?
    • I boot via: unencrypted EFI grub asks for LUKS password -> decrypt /boot, which then has a keyfile -> decrypt and mount btrfs root partition. But lots of guides don't do it this way

Thanks for bearing with me ദ്ദി(。•̀ヮ<)~✩‧₊

 

I know, I know, mostly just undergrads care about undergrad prestige (except resumé bots on LinkedIn scanning for "MIT") but I'm curious about the average Lemming, who might lie less often than Redditors and probably isn't a hyper outlier. Though I still expect selection and response bias :3

Let me start with my own wall of anecdotes.

  1. An old American embedded systems mentor I once had had had like two master's degrees, but in his words,

Just get a Bachelor's and a good internship. If the company will let you do it on their dime, then get the Master's.

So the college-then-job thing wasn't quite cause-then-effect.

  1. Another friend I had said "All of the higher-ups in the chip engineering dept I'm gunning for have a PhD. Wanna contribute meaningfully? Probably gotta have one too" (Somewhere in the entirety of Asia, exacts hidden for privacy). So grad school matters more in that case.

  2. My old econ teacher told me that, if you want a job where undergrad is just a stepping stone, then your undergrad "prestige" mostly doesn't matter (e.g. pre-law, pre-med). And saving 50k in undergrad student loans to then dump into matching the S&P is a cheat code at age 18, worth far more than "initial salary". ~not~ ~financial~ ~advice~ ~lol~ In this case, the "get your job" isn't even that important.

  3. An acquaintance I once had pipelined from Cornell to DeepMind. There, prestige and its opportunities probably/definitely/maybe had an effect.

  4. A second acquaintance says his Canadian public school (iirc) only mildly helped him, so he went all-in on making his own networks outside of school to get into AI (Is he a hustler bro or something?). So he dodged the idea of college choice mattering.

  5. A Harvard acquaintance I knew says both their dad and granddad agreed that going to Harvard played into getting their positions. (No need to believe me. I forgot what position tho -- finance/big business probably)

  6. The managers and manager managers my parents knew often only had community/state school undergrads, sometimes with MBAs.

  7. I don't care about CEOs. All outliers anyway.

So what have you empirically found? And where? (inb4 "American elite school obsession bad" and "CS is skill-based, not school-based, thread over" -- heard all of that already)

You can be vague if needed c:

view more: next ›