Skip Navigation
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/)FO
Posts
27
Comments
282
Joined
2 yr. ago

Permanently Deleted

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

     javascript
        
    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().
     javascript
        
    []["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 (![]+[])[+[]].
     javascript
        
    [][
      (![] + [])[+[]] + // 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:
     javascript
        
    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.

  • ══════════•⊱💀⊰•═══════════

    •STYLISTIC BREADTH

    ══════════•⊱💀⊰•═══════════

  • Permanently Deleted

  • 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.

  • Everyone's speculating so I'll put in something concrete:

    About 3 months ago, r/wholesomememes mods clamped down on karma-farm bots as hard as they could...

    causing no new posts to appear for two entire days.

    Hey there friends! It’s only been a few days since we started cracking down on the spam bots and excessive reposts that have been plaguing r/WholesomeMemes - and now there is nothing left! --mod

  • 196 @lemmy.blahaj.zone
    fool @programming.dev

    rap god

  • That's an interesting perspective actually

    Maybe it's because of who's giving them? If my little cousin gave me an AI Christmas card, I'd be happier than if a stranger gave me one on the street. (Though I'd feel bummed if they didn't even marker in a single custom sentence)

    i.e. higher standards of creativity/effort from a stranger than from a family member.

    Also the stranger isn't stuffing a tenner in the card lmao

  • hopeposting @lemmy.world
    fool @programming.dev

    i grow

  • I forgive 'em cuz watt hours are a disgusting unit in general

    idea what unit
    speedchange in position over timemeters per second m/s
    accelerationchange in speed over timemeters per second, per second m/s/s=m/s²
    forceacceleration applied to each of unit of masskg * m/s²
    workacceleration applied along a distance, which transfers energykg * m/s² * m = kg * m²/s²
    powerwork over timekg * m² / s³
    energy expenditurepower level during units of time(kg * m² / s³) * s = kg * m²/s²

    Work over time, × time, is just work! kWh are just joules (J) with extra steps! Screw kWh, I will die on this hill!!! Raaah

  • Ty for feedback :>

    Your paragraph read well. I definitely agree -- grammar with risks, outside of hyper-formal sitches, is just stylized diction. ChatGPT could scarcely come up with an e.e. cummings poem (just tested now, it never gets the style about right), nor dare to abuse parentheses, nor remove cruft for conciseness (e.g. to start a sentence with "Kind of changed" instead of "This kind of changes" for compression (woot)). It's a "wrong" but not quite "wrong", and I'm glad that "riskless" manages to carry that feeling

    And I edit a lot too :) it's the "post-email-send clarity" effect

  • Make your data useless or wrong.

    More passively, there's probably an oddly large amount of John Does born on January 1, 2000 ;)

    More offensively, anti-image-gen data poisoning such as Nightshade exists. It's well-defended against IIRC so hopefully someone can Cunningham's Law correct me. And this is also more solo of a movement (as opposed to gaining mass support for something)

  • Linux @lemmy.ml
    fool @programming.dev

    Merry non-AI Christmas, Linuxers

    Dear Linux community,

    In these shite times, we need to remember to see the human in all of us. So I address the humans of this community:

    1. To the Stallmanites. SCREW CORPORATE YEAHHHHH! Each day humanity grows smarter, no matter how many iPad kids or mass media diatribes there are, so celebrate how far we've fucking come. Look at your oldest machine. You're a million times better. My old Slackware was full of SHIT! FUCK YEAH
    2. To the pragmatists. Linux doesn't get in your way. People get in each others' ways all the time. But most importantly, don't get in your own way. If you're feeling like shit -- the human capacity to hope beats everything to a pulp. You know what we do when shit fucks? We submit a fucking pull request. FUCK YEAH
    3. To the hobbyists. Life is a bundle of fun so feel every moment. When you're old, and you'll be old as fuck, you'll be like "fuck yeah I lived every moment of my life up to now." So fuck another segfault up. Learn C, and call C the best language.
    Asklemmy @lemmy.ml
    fool @programming.dev

    What advice have you heard or tried that was just flat-out wrong?

    Subjective situations welcome

    196 @lemmy.blahaj.zone
    fool @programming.dev

    i (r)eq(u)ire "anime imposed into real (l)if(e)"-genre images

    stuff like the 9mm wadadadang thing or

    no reason.

    Asklemmy @lemmy.ml
    fool @programming.dev

    How do you deal with the inexorable march of time?

    News @lemmy.world
    fool @programming.dev

    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 ha

    Programming @programming.dev
    fool @programming.dev

    LazyVim for Ambitious Devs (aka: lazyvim, instead of vim → neovim → lazyvim)

    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 StackOverfl

    Showerthoughts @lemmy.world
    fool @programming.dev

    A thousand people will read this.

    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

    Linux @lemmy.ml
    fool @programming.dev

    Linux is now an RPG. What do you have? (totally not r/outside)

    The world of Linuxia beckons you! Your annoying guide flexes their gear the moment you spawn

     swift
        
    Gentoo USB (Rare):
    => USE flags: Can rebuild itself
       with or without the other
       three attributes
    => March native: Increases attack
       speed by 1% or -1%
    => Slot: Can use two versions of any
       attribute at the same time
    => PGO: The USB memorizes when you
       attack to increase speed, trading
       off for lower speed elsewhen.
       Requires two rebuilds.
    
    Charm of systemd (common):
    => nspawn: Can build with deeper focus
    => Wisdom tax: The wise are less
       likely to feel neutral toward you
       (+2 or -2 charisma)
    => Chant of systemd: By chanting
    'systemd-analyze calendar "Fri *-*-13"',
       the caster instantly knows when
       the next Friday the 13th is.
    
      

    Let's have some fun! Spells, items, and dungeons oh my!

    Ask Lemmy @lemmy.world
    fool @programming.dev

    Unregistered Hypercam 2. What's the first memory that popped into your head?

    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.

    Asklemmy @lemmy.ml
    fool @programming.dev

    How can a layperson learn enough about the law to adapt to a police situation?

    I was doing some "algorithm surfing" (i.e. VPN+private tab+click enough youtube videos on a topic=temporarily immersed in someone else's rabbit hole). In a patriotism rabbit hole, I found this video about a fearless teenager defending himself and his father against police misconduct with knowledge of Utah law.

    Question: how can a layperson possibly know that much about the law to rival a cop's situational power like that?

    I'm already familiar with shutting up (I vaguely remember there being a way funnier video but I can't find it)

    but I think not shutting up, and instead sheer CYA, was instrumental to that kid and his dad winning the counterlawsuit. And being friendly has turned a speeding ticket into a warning for me (anecdotal evidence)... once...

    Apologies if this question is too American. Also please don't hit me with another All Cops Are Benzene or something -- I could use a usable an

    Linux @programming.dev
    fool @programming.dev

    Is there a working method to use argon2id with encrypted /boot?

    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](https://aur.archlinux.org/packages/grub-impro

    Linux @lemmy.ml
    fool @programming.dev

    NixOS: How does daily driving fare for time-strapped users?

    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
    Asklemmy @lemmy.ml
    fool @programming.dev

    What higher/specialized ed do you have? How'd it help you get/keep your job?

    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 undergr
    Asklemmy @lemmy.ml
    fool @programming.dev

    What was the last skill you learned and how?

    It can be a small skill.

    The last thing I learned to do was whistle. Never could whistle my whole life, and tutorials and friends never could help me.

    So, for the last month or two, I just sort of made the blow shape then spam-tried different "tongue configurations" so to speak -- whenever I had free time. Monkey-at-a-typewriter type shit. It was more an absentminded thing than a practice investment.

    Probably looked dumb as hell making blow noises. Felt dumb too ("what? you can't whistle? just watch"), but I kept at it like a really really low-investment... dare I attract self-help gurus... habit.

    Eventually I made a pitch, then I could shift the pitch up a little, then five pitches, then Liebestraum, then the range of a tenth or so. Skadoosh. Still doing it now lol.

    (Make of this what you will: If I went the musician route my brain told me to, then I would've gotten bored after 1 minute of major scales. When I was stuck at only having five pitches, I had way more longevity whis

    Linux @lemmy.ml
    fool @programming.dev

    Do people use Autotools in new projects anymore?

    I had a teeny pet project using GNU assembly that was going to target two platforms.

    Instead of keeping my handwritten worst-practices Makefile I decided to try GNU Autotools for the educated reasons of:

    • Text scrolling by looks pretty
    • Vague memories of ./configure make make install tarballs

    I got hit with mysterious macro errors, recompile with -fPIE errors (didn't need this before?), autotools trying to run gcc on a .o file w/ the same options as an .s file, "no rule for all:", and other things a noob would run into. (I don't need a bugfix, since my handspun Makefile is "working on my machine" with uname -m.) So there's a bit of a learning curve here, inhibited by old documentation and more quietly, genAI being shittier than normal in this department

    With this I ask:

    Do people still use Autotools for non-legacy stuff? If not, what do people choose for a new project's build system and why?

    edit: trimmed an aside

    Programming @programming.dev
    fool @programming.dev

    Can I run a bookmarklet/js on a mobile browser?

    A bookmarklet is a bookmark whose URL is JavaScript code instead of a site. It might be, for example,

     javascript
        
    javascript:document.querySelector('video').playbackRate = Number(prompt("speed")) || 1; void(0)
    
    // formatted version:
    javascript:
    document
      .querySelector('video')
      .playbackRate = 
      Number(prompt("speed")) || 1; 
    void(0)
    
      

    so that if you click the bookmark, it sets the speed of the video to whatever you want (e.g. 3.7).

    You could also run this directly in the URL bar (in some cases -- I think desktop Chrome does that), or you can simply type alert() into the dev console (desktop Firefox prefers this for security reasons).

    Is running my own arbitrary JS like this a thing on mobile? I'm on Android but I'm not sure if Brave disabled it -- I vaguely remember it working once, but it doesn't anymore. No luck on Firefox either. Maybe there's a workaround?

    Linux @programming.dev
    fool @programming.dev

    (solved for no reason) webcam stopped working after an Arch Linux update

    edit: solved lol

    When I run Cheese, the inbuilt webcam light flashes for an instant then stops. Assuming Cheese opens correctly, it never successfully shows the webcam feed. Cheese worked prior to update. ( Zoom webcam fails too D: )

    setup

    Arch Linux, kernel 6.11.5-arch-11, Hyprland v0.44.1 (pipewire 1.2.6) on a hybrid Nvidia+Intel Lenovo laptop.

     bash
        
    $ lsusb
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 002: ID 25a7:fa23 Areson Technology Corp 2.4G Receiver
    Bus 001 Device 004: ID 8087:0a2b Intel Corp. Bluetooth wireless interface
    Bus 001 Device 005: ID 138a:0094 Validity Sensors, Inc. 
    Bus 001 Device 033: ID 13d3:5673 IMC Networks EasyCamera
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    
    $ v4l2-ctl --list-devices                                         
    EasyCamera: EasyCamera (usb-0000:00:14.0-5):
        /dev/video0
        /dev/video1
        /dev/media0
    
      

    packages

    I'm up-to-date.

     bash
        
    $ yay -Q |egrep -i 'gstreamer|video|cam|media|mtp
      
    linuxmemes @lemmy.world
    fool @programming.dev

    kdesu