asklemmy Asklemmy What about clicking a checkbox means I'm human? How does Cloudflare determine I'm human from that?
Jump
  • nick nick 4 weeks ago 100%

    It uses other signals too, like what other sites you've visited with that checkbox on it, what CloudFlare has seen your IP address doing in the past, etc.

    The google one is able to see if you're logged into a google account and take that into account.

    There's even a new variant of the Google captcha that is invisible and doesn't even bother to show a checkbox.

    13
  • til Today I Learned TIL about the Gell-Mann amnesia effect; when experts find articles published within their field to be full of errors, but trust articles about other fields in the same publication
    Jump
  • nick nick 1 month ago 100%

    This reminds me of a great video about this sort of principle in reverse: https://youtu.be/wBBnfu8N_J0

    4
  • news News Starbucks is reeling as customers go elsewhere, sales decline
    Jump
  • nick nick 2 months ago 100%

    It's different in different markets. In Australia and New Zealand it's usually a reasonably well made medium-dark blend.

    You'll get much better at any dedicated café, but it's also miles better than sbux (who don't even use real espresso machines).

    1
  • fediverse Fediverse PSA: Alternatives for the most popular lemmy.ml communities
    Jump
  • nick nick 3 months ago 75%

    I enjoy OpenMW and I'm happy to host if you want, although my instance is basically just me and a few friends right now.

    2
  • programmerhumor Programmer Humor Totally logical and expected functionality
    Jump
  • nick nick 4 months ago 100%

    I've used a number of different Linux distros (including Debian) on laptops over the years. Although most recently my XPS 15 was running Arch.

    1
  • 196 196 Kendruleck
    Jump
  • nick nick 4 months ago 100%

    Yep!

    3
  • nick nick 5 months ago 100%

    *rate, comment, and subscribe

    Gotta get those five stars

    5
  • unixporn unixporn Just ported my awesomewm theme to hyprland + nixos
    Jump
  • nick nick 5 months ago 100%

    That's a nice rice!

    How are you finding awesomewm? I've just been on i3 since forever but I'm always interested to hear about other WMs

    2
  • programmer_humor Programmer Humor Computer components cheat sheet
    Jump
  • nick nick 6 months ago 100%

    I think they're lawful evil, more devils than demons.

    13
  • programming Programming Is TypeScript a fad or is my manager delusional?
    Jump
  • nick nick 6 months ago 95%

    Hi, I've been doing TypeScript in my day-job and hobbies for six and a bit years now. I would not write JS in any other way.

    TS is also a superset of JS so all JS is valid (unless you turn on strict mode). So there is no productivity loss/learning curve unless you want there to be.

    In fact, a lot of people who think they're not using typescript are using it because their editors use typescript definitions for autocomplete and JSDoc type signatures are powered by typescript.

    22
  • nick nick 6 months ago 100%

    In my experience I haven't had an issue because usually the refactorings are small. If they're not I just hop on a call with the person who wrote the MR and ask them to walk me through it.

    In theory I'd like to have time to dedicate solely to code health, but that's not quite the situation in basically any team I've been in.

    3
  • nick nick 6 months ago 88%

    You should refactor as needed as you go because refactoring cases are never gonna be prioritised.

    7
  • memes solarpunk memes be punk, do vidya
    Jump
  • nick nick 6 months ago 100%

    That sounds like bug propaganda right there

    5
  • programmer_humor Programmer Humor Open Source VS Company
    Jump
  • nick nick 6 months ago 100%

    There's a markdown entry thing in the drop down menu that'll convert your MD to their formatting.

    2
  • newzealand Aotearoa / New Zealand Aotearoa Daily Kōrero 25/3/2024
    Jump
  • nick nick 6 months ago 100%

    By doing this the connections are all severed, the RAM is freed up, and it’s all good again.

    Ah, neat! I didn't think of that. You can limit the size of the connection pool in your lemmy config fwiw.

    https://github.com/wereii/lemmy-thumbnail-cleaner

    Nice, that looks like it's doing a similar thing to my weird mess of SQL and Python that I did last year haha

    Good luck for the migration :)

    2
  • newzealand Aotearoa / New Zealand Aotearoa Daily Kōrero 25/3/2024
    Jump
  • nick nick 6 months ago 100%

    cronjob to restart the backend lemmy container

    Fair enough, that'd work. I run my database in a different pod to lemmy (I run this all in kubernetes), and I cannot restart that pod without causing an outage for a bunch of other things like my personal website. I ended up just needing to tune my config to have a maximum RAM usage and then configuring k8s to request that much RAM for the DB pod, so it always has the resources it needs.

    pictrs image cache is 250-300gb

    oof :(
    That's what my custom lemmy patch was, it turned off pictrs caching. That's now in lemmy as a config flag (currently a boolean but in 0.20 it will be on/off/proxy where the proxy option goes via your pictrs but does not cache). I then went back through mine and did a bunch of SQL to figure out which pictrs images I could safely delete and got my cache down to 3GB.

    2
  • newzealand Aotearoa / New Zealand Aotearoa Daily Kōrero 25/3/2024
    Jump
  • nick nick 6 months ago 100%

    Interesting. I have some New Relic stuff setup with my cluster but most of that is just resource usage stuff. I ran out of RAM a while back so I've had to be a bit more restrictive about how many connections Lemmy can have to postgres db.

    There’s no progress meter and so far it has taken 2 days 😱.

    Uh oh. I considered updating to 0.5 as part of my 0.18.3-ish (I was running a custom fork I made with some image caching stuff that has since been merged in to real lemmy) -> 0.19.3 upgrade but I'm glad I didn't.

    Thanks for the heads up. Are you migrating to postgres for pictrs too, or sticking with sled?

    2
  • newzealand Aotearoa / New Zealand Aotearoa Daily Kōrero 25/3/2024
    Jump
  • nick nick 6 months ago 100%

    These are pretty neat graphs! Is it sourced from the Prometheus logs?

    Just updated to 0.19.3 but the DB migrations failed due to a permissions change I made a while back to my DB, so I had to spend a few hours in the SQL dungeons fixing things.

    4
  • 196
    196 nick 6 months ago 100%
    Rule says "believe in yourself"
    298
    1
    world World News Hong Kong Article 23: Basic rights threatened as law enacted, critics charge
    Jump
  • nick nick 6 months ago 100%

    Yeah, I'm not justifying the annexation.

    1
  • world World News Hong Kong Article 23: Basic rights threatened as law enacted, critics charge
    Jump
  • nick nick 6 months ago 100%

    Technically only some of HK was under the lease, some was indefinitely controlled by the British. However, you're still right because of the military force difference.

    6
  • espresso Espresso Remove the three very old pinned posts?
    Jump
  • nick nick 6 months ago 100%

    The Breville Bambino (Plus) with a nice grinder is basically an impossible value-to-money ratio to beat. Also remember to factor in a scale that's accurate to 0.1g, a cheap WDT tool with thin needles (i.e. 0.35mm), and a dosing funnel to make the WDT not messy. If your budget is limited then you can skip the WDT tool I guess.

    I wouldn't go for the Barista Express/Pro because the built in grinder is not very good. The "impress" version of the Barista Express could still be worth it if you're not looking to make espresso a hobby and just want something easy that will make tasty drinks. I'd recommend joining the Espresso Afficianado's discord server, which is where a lot of the /r/espresso long-stays moved to after the reddit API stuff. There's a channel for beginners that can help you get started.

    3
  • linuxmemes linuxmemes Who was your first?
    Jump
  • nick nick 6 months ago 100%

    I attempted to boot Mandrake/Mandrivia on an old laptop once and failed, then I mucked around in Slackware's live CD for an afternoon. The first thing I actually installed and used daily was Ubuntu 10.04.

    1
  • lemmy_support Lemmy Support Any way to run lemmy => 0.19.2 in docker on arm64? It crashes with error 139
    Jump
  • nick nick 6 months ago 100%

    I'm running on 0.19.3 without any issues on Linux arm64. I built my own docker image though.

    2
  • technology Technology YSK: Lemmy has 53k monthly active users but only 1172 have ever donated
    Jump
  • nick nick 6 months ago 100%

    The web is built on hot linking hypermedia. It is more fragile obviously, but it distributes the bandwidth and storage load. If nobody hotlinked, then small forum admins/Lemmy admins/etc. have considerably more cost to bear.

    6
  • nick nick 6 months ago 100%

    Rust is roughly similar to C in most of these benchmarks and beats it in a few: https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/rust.html

    Arguably when LLVM gets a bit better, Rust can be even faster than C because rust can be optimised in more places safely than C code can. The issue is that LLVM wasn't written with that in mind, so some performance is left on the table.

    1
  • espresso Espresso I went traditional and split a shot into singles to try out these new demitasse cups I got for Christmas
    Jump
  • nick nick 6 months ago 100%

    I chose not to care, I had both cups on the scale and they looked about even though. If I really wanted accuracy I would have pulled the shot into a shot splitting cup and then split afterwards.

    1
  • nick nick 6 months ago 100%

    Go, Java, and Nim (in most cases) are all memory safe but are generally slower than C or C++ due to the ways they achieve memory safety.

    Rust's memory safety approach is zero-cost performance wise, which makes it practical for low level, high throughput, and low latency applications.

    1
  • nick nick 6 months ago 100%

    That flag exists, it's called unsafe for if you need to tell the borrow checker to trust you or unwrap if you don't want to deal with handling errors on most ADTs.

    You can always cast anything to an unmanaged pointer type and use it in unsafe code.

    6
  • nick nick 6 months ago 100%

    A crash is different to a SEGFAULT. I'd be very surprised to see a safe rust program segfault unless it was actively exploiting a compiler bug.

    13
  • programmerhumor Programmer Humor Uh....oh....i guess it's work then
    Jump
  • nick nick 7 months ago 100%

    As a compiler developer this speaks to me on a deep level lol

    5
  • espresso Espresso I went traditional and split a shot into singles to try out these new demitasse cups I got for Christmas
    Jump
  • nick nick 9 months ago 100%

    https://camposcoffee.com/product/colombia-el-jordan-2/ that I picked up when I was in Sydney earlier this month. It's a little darker than I usually go for but it's quite forgiving.

    3
  • espresso Espresso I went traditional and split a shot into singles to try out these new demitasse cups I got for Christmas
    Jump
  • nick nick 9 months ago 100%

    It was nice, although fairly mellow because I pulled it 20g:60g (so two 30g singles)

    2
  • espresso Espresso I went traditional and split a shot into singles to try out these new demitasse cups I got for Christmas
    Jump
  • nick nick 9 months ago 100%

    Yep! They're based in the city I live in, so everything is quite reasonably priced. I think that deep blue is my favourite colour of theirs.

    1
  • newzealand Aotearoa / New Zealand Aotearoa Daily Kōrero 16/12/2023
    Jump
  • nick nick 9 months ago 100%

    Wellington needs more karaoke spots

    4
  • world World News Hungary blocks €50bn of EU funding for Ukraine
    Jump
  • nick nick 9 months ago 100%

    You need everyone else in the EU to agree to remove them. Poland and Hungary sort of protect each other from EU consequences.

    16
  • programmerhumor Programmer Humor know the features of your language
    Jump
  • nick nick 9 months ago 100%
    ((a, b) => a ?? b)();
    
    2
  • programmerhumor Programmer Humor know the features of your language
    Jump
  • nick nick 10 months ago 100%
    const fn = (a, b) => a ?? b
    
    5
  • 196 196 Market shar(ul)e
    Jump
  • nick nick 10 months ago 100%

    They're both free software licences (i.e. you can get the source code for for BSD licenced software and GPL licenced software that you're using at no extra charge and modify it as you please). The GPL licence has an additional restriction for developers that says if you use any GPL code in your codebase, your entire codebase must also be GPL or some other compatible open source licence.

    This means that if I made some code parses a file format and another developer includes that code in their program to support that file format, they're now forced to licence their whole codebase with a similar licence to the GPL. If it was BSD then they would only have to mention that they used my BSD licenced code and include a copy of that licence. A user would then be able to go and see my original code that was used, but not the rest of that application's code or any modifications that the application author made to my code. Because the GPL is too restrictive for most developers here, there's a version of the GPL called the LGPL which is often used for code meant to be used by other programs which is closer to the BSD licence but additionally requires that if they modify your code, they must also share that modified code.

    I usually use a licence in the middle called the MPL (Mozilla Public Licence), which is similar to the LGPL but has a few things I prefer and has the advantage for me of not being connected to the FSF and GNU project.

    2
  • 196 196 This rule is about me, I am dumb
    Jump
  • nick nick 11 months ago 100%

    I didn't make the meme, I saw it on twitter and thought it was funny in a self deprecating way.

    25
  • newzealand Aotearoa / New Zealand Aotearoa Daily Kōrero 04/11/2023
    Jump
  • nick nick 11 months ago 100%

    I use all three, although primarily run Linux and macOS.

    I think Apple's hardware offerings have really beaten the competition with their new M-series chips just outperforming everyone else with significantly less energy. You also get the advantage of macOS being a UNIX system, so if you're familiar with Linux, the same principles apply.

    I switched from running Linux on my Surface Pro 3, then Linux on a Dell XPS 15, to a 14" MacBook Pro with the 10-core M1 Pro. I still use Linux on my desktop and love it, but macOS is very similar to Linux and apple's portable hardware beats everyone else by about 3 years or more imo. There are definitely some apple universe quirks but I wouldn't consider anyone else for a laptop for another few generations of competitors attempting to catch up with where apple was in 2021.

    3
  • 196
    196 nick 11 months ago 100%
    This rule is about me, I am dumb
    328
    18
    newzealand
    Aotearoa / New Zealand nick 11 months ago 98%
    Just voted!

    Voted early the past two elections but I decided that for the first time ever, I'd do it on the day

    67
    22
    espresso
    Espresso nick 1 year ago 95%
    James Hoffmann: The $20,000 Espresso Machine, The Manument: The Swiss Watch Of Lever Espresso Machines - www.youtube.com

    cross-posted from: https://kbin.social/m/coffee@lemmy.world/t/431650 > Hope you all find this interesting, delighted I got the chance to have a play with the machine!

    42
    8
    pics
    pics nick 1 year ago 98%
    Cabin (geodome) in the woods

    cross-posted from: https://campfyre.nickwebster.dev/post/107235 > Stayed in here for a couple nights last year: > > ![](https://campfyre.nickwebster.dev/pictrs/image/8d94da60-47b1-4d44-a581-d6109168d5b1.webp) > > ![](https://campfyre.nickwebster.dev/pictrs/image/f13fa25e-e9f8-4ba4-82ca-6a4aceaeb3a7.webp)

    163
    14
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCO
    Cozy Places nick 1 year ago 100%
    Cabin (geodome) in the woods

    Stayed in here for a couple nights last year: ![](https://campfyre.nickwebster.dev/pictrs/image/8d94da60-47b1-4d44-a581-d6109168d5b1.webp) ![](https://campfyre.nickwebster.dev/pictrs/image/f13fa25e-e9f8-4ba4-82ca-6a4aceaeb3a7.webp)

    32
    3
    thenightfeeling
    The Night Feeling nick 1 year ago 100%
    Nighttime walking
    22
    0
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearLE
    Lemmy Support nick 1 year ago 100%
    Query to fix modlog

    The modlog page can break if anyone has been banned with an expiry too far into the future, I grabbed this query to fix it from the github issue a while back and refined it a little if it's useful to anyone: ```sql BEGIN; -- The modlog UI breaks for bans too far in the future SELECT * FROM mod_ban WHERE expires > now() + INTERVAL '10 years'; -- Lets just make them permanent as an easy fix lol UPDATE mod_ban SET expires = NULL WHERE expires > now() + INTERVAL '10 years'; -- See our changes SELECT * FROM mod_ban WHERE expires > now() + INTERVAL '10 years'; ROLLBACK; -- replace ROLBACK; with COMMIT; if you're happy ``` This will make any ban with an expiry >10 years into the future permanent and fix your modlog. If this happens a lot it might be worth making this a trigger in your lemmy db.

    8
    2
    truestl
    The Elder Scrolls Lore nick 1 year ago 100%
    Sheogorath is a HOAX

    shamelessly stolen from https://www.reddit.com/r/TrueSTL/comments/1609zz5/candidate_vivec_setting_the_record_straight/ because it made me chuckle

    3
    0
    newcommunities
    New Communities nick 1 year ago 94%
    (TrueSTL) The Elder Scrolls Lore - A place to shitpost about the insane lore around The Elder Scrolls

    # Links [/c/truestl@campfyre.nickwebster.dev](/c/truestl@campfyre.nickwebster.dev) !truestl@campfyre.nickwebster.dev https://campfyre.nickwebster.dev/c/truestl # About (not officially affiliated with /r/TrueSTL) Do you often find yourself wondering about the true nature of Ogrim nipple-piercings? Does the mythology of Space Pirate Captain Harlock make your head spin? Do you want to learn more about the metaphysics of Sword Art Online, your favorite Cambodian Silent Film? Do you find your questions, concerns, and philosophical quandaries unaddressed by Final Fantasy: Online? Worry not. !TrueSTL@campfyre.nickwebster.dev is a place that encourages discussion on any and all facets of CHIM, Dragon Breaks and the Hist, the greater bodies of Elder Scrolls fiction, without judgement or prejudice. Here at !TrueSTL@campfyre.nickwebster.dev, every Muatra is big enough to achieve CHIM.

    33
    7
    196
    196 nick 1 year ago 100%
    RULE RIGHT THERE. CRIMINAL SCUM!
    179
    2
    196
    196 nick 1 year ago 100%
    rule is so me frfr
    190
    2
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearLE
    Lemmy Support nick 1 year ago 97%
    FYI I made a patch for lemmy that turns off pictrs caching github.com

    I was getting close to hitting the end of my free object storage so there was time pressure involved haha. Seems to work but I haven't tested it too much. Currently running on my instance.

    47
    21
    lemmyshitpost
    Lemmy Shitpost nick 1 year ago 94%
    The current state of search engines (music video) www.youtube.com

    I swear that SEO has gotten so good that Google has just been broken

    48
    4
    aww
    aww nick 1 year ago 100%
    Coco
    17
    0
    newzealand
    Aotearoa / New Zealand nick 1 year ago 100%
    Shot of the southern cross from Wellington

    Stargazing in anticipation of Matariki

    16
    0
    science
    Science nick 1 year ago 100%
    What if light was really slow? youtu.be

    Really well made video from a pretty small channel

    23
    3
    newzealand
    Aotearoa / New Zealand nick 1 year ago 94%
    Makara Peak is my happy place

    cross-posted from: https://campfyre.nickwebster.dev/post/2876 > My favourite part of Wellington

    16
    3
    outdoors
    Great Out Doors nick 1 year ago 100%
    Makara Peak is my happy place

    My favourite part of Wellington

    1
    0
    espresso
    Espresso nick 1 year ago 97%
    Some latte art I did on a flat white I made

    The shot I pulled for this is here: https://coffee.nick.geek.nz/shots/0ce7c21d-6279-41b5-aa05-ab2f9b4e157f As you can see from the graph I’ve been experimenting with 6 bar shots for my medium roasts to enhance the sweet chocolatey characteristics. I like what I'm getting although it feels _wrong_ haha

    41
    5
    politics
    NZ Politics nick 1 year ago 100%
    Migration top of agenda at latest Five Eyes meeting in Wellington www.rnz.co.nz

    Interesting to see the balancing act of the foreign trip to China & the 5 Eyes having a meeting here. Definitely hard to keep everyone happy.

    1
    0
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearES
    Some latte art I did on a flat white I made
    8
    0