Alister, to stackoverflow
@Alister@mastodon.cloud avatar

I've just figured out why my #StackOverflow feed of my activity has been failing to update my Github profile - https://github.com/alister.

It seems like SO started using Cloudflare recently, but that is blocking fetching of the RSS feed - because surely no one would use an automated tool to download & read read a .RSS file....

https://meta.stackoverflow.com/questions/428163/was-so-rss-feed-blocked-for-robots-recently-2024-02

branch300bpm, to ChatGPT Polish
@branch300bpm@vivaldi.net avatar

sort [..] | uniq -> sort -u [..]
find . [..] | xargs [..] | grep [..] -> grep -r [..]
grep [..] | wc -l -> grep -c

The list goes on and on...

In other words, stop gaining knowledge from and , use manuals instead - because those contain a lot of useful info that will make your scripts more performant.

qaqelol, to web
@qaqelol@toots.niark.nexus avatar

My compulsive need to customize websites in action; StackOverflow edition ✨

(I use uBlock Origin and "User Javascript and Css" extensions)

Original version of stackoverflow for the same page. Busy layout with ads

vatbub, to python

In the future, when people ask me why I dislike #Python, I will redirect them to this #StackOverflow question: https://stackoverflow.com/questions/53513/how-do-i-check-if-a-list-is-empty

A seemingly simple task: Check if a list is empty or not.

Solution 1:
if not a:
print("List is empty")

Pros:

  • Very concise
  • According to the comments "idiomatic"
  • Apparently always O(1)

Cons:

  • How the hell can a list suddenly be boolean!?!?!?
nixCraft, to random
@nixCraft@mastodon.social avatar

deleted_by_author

  • Loading...
  • arturN,
    @arturN@mastodon.world avatar

    @nixCraft same applies for s.o. who copies code from or similar pages

    dboehmer, to stackoverflow

    How to make a base package for my @Perl code that enables subroutine signatures even if Moose or Test2::V0 are loaded subsequently?

    I created Coocook::Base which enable signatures but in CI for Perl 5.32 I get tons of warnings because "use Moose" enables all warnings again. Do I need to handcraft the order of "use" statements in all modules?

    https://stackoverflow.com/questions/77855122/disable-warnings-from-base-module-load-moose-test2v0

    #perl #stackoverflow

    Polynomial_C, to stackoverflow Catalan
    @Polynomial_C@mastodon.social avatar
    gittaca, to LLMs

    Amazing how fans of code overlook inconvenient details in industry's own surveys:
    > … respondents with more experience were less
    > likely to associate AI with productivity gains …
    > --https://www.theregister.com/2023/09/05/gitlab_ai_coding/

    Sounds like it can replace/augment those with experience levels
    But actual specialists? Have -1 incentive now to write down their experience. 📉trends ensue.

    matrix, (edited ) to Matrix
    @matrix@mastodon.matrix.org avatar

    Have you seen the Stack Overflow Developer Survey results for 2023?

    Of the 83,830 folks surveyed, Matrix is the #1 chat tool in terms of current users' satisfaction. It's also rated as the most desirable among the open source tools listed, but there is a lot of room for improvement in awareness there.

    Let's build on this in 2024! 🚀 https://survey.stackoverflow.co/2023/#section-admired-and-desired-synchronous-tools

    jasongorman, to random
    @jasongorman@mastodon.cloud avatar

    While there were books and magazines and a few instructional videos, in the pre-Web era, if you wanted to learn a guitar part, you usually had to listen to recordings and figure it out for yourself.

    These days, you can just google the name of the track and there's a good chance that somebody already transcribed it as guitar tablature, and posted it online.

    A big time saver, for sure. But on the downside, it means that guitarists who predate that tend to have much better ears.

    mjgardner,
    @mjgardner@social.sdf.org avatar

    @jasongorman I’ve noticed that I favor consulting official or direct #documentation more than my less-seasoned #programming colleagues who reach for #StackOverflow. I find that the former often reveals cleaner and more general solutions than the FAFO pragmatism of crowdsourcing.

    mjgardner, to stackoverflow
    @mjgardner@social.sdf.org avatar

    “Why should we hire you?”
    “I have a lot of reputation on #StackOverflow.”
    “You’re hired.”

    Later:
    “Could you…”
    “That’s a stupid question.”

    minioctt, to javascript Italian

    Ho una buona quantità di quarti d’ora (e …) oggi a cercare di capire come straca far funzionare questo altrimenti orribile dentro un ciclo (che deve prima terminare tutto, o il programma non ha i dati giusti) in … 😵️

    const reader = new FileReader();reader.onload = () => {    const img = document.createElement('img');    img.onload = () => {        // ... un sacco di stronzate che non centrano    }    img.src = reader.result;}reader.readAsDataURL(file);
    

    Ho cercato varie soluzioni, per un motivo o per un altro non le capivo però ( skillissue skillissue), e ho perso la a provare e riprovare, finché non ho chiesto alla divinità dell’autocompletamento . A ‘sto giro, è stato più utile di mezzo . 🙏️

    Unendo il suo aiuto, + un (1) consiglio di utenti umani su quei brutti, è uscita una roba che funziona e non fa venire il mal di testa a leggere…

    const img = new Image();img.src = await readFileAsync(file);await img.decode();// ... le stesse stronzate di prima, ma megliofunction readFileAsync(file) {    return new Promise((resolve) => {        const reader = new FileReader();        reader.onload = (event) => {            resolve(event.target.result);        };reader.readAsDataURL(file);    });}
    

    https://octospacc.altervista.org/2024/01/05/914/

    warriorstar, to random

    Seen on twitter: “How did people write code before AI?”

    Uh, they were expected to know what they were doing

    mjgardner,
    @mjgardner@social.sdf.org avatar

    @warriorstar @philsplace For years I’ve been giving that same answer to, “How did people write code before #StackOverflow?”

    (#AI coding assistants are often just a blurry proxy of SO's blurry answers.)

    I also hand out the attached sign.

    divclassbutton, to ai
    @divclassbutton@hachyderm.io avatar

    Been pondering what the internet is going to look like in 5 years.

    Honest answer, the proliferation of #AI "art", "articles" and "content" is going to make it rubbish.

    Starting to think I'm going to want to make my own version of the internet #archive, but for datasets like #StackOverflow and the like from pre-2022, anything that we could hold on to that doesn't get polluted by AI.

    But then, if I did curate such as set what am I building except feedstock for LLMs?

    I don't know what to think.

    Joe_0237, to stackoverflow

    I don't like #stackoverflow because i feel that it is wrong and dangerous for the developer community to give one entity so much control over us. But I go on there all the time and I have never seen the toxicity that people are always ranting about.

    Is it toxic to make corrections or help a person ask the right question so as to release accidental self imposed restrictions?

    Does anyone have an example of something that people do there that is toxic?

    vitaut, to stackoverflow
    @vitaut@mastodon.social avatar

    Since all major standard libraries support std::format now I no longer need to show how to do the same thing in {fmt} anymore when answering questions on #stackoverflow.

    worldsendless, to php
    @worldsendless@qoto.org avatar

    We borrowed some #PHP code from #StackOverflow that had nested ternaries without parenthesis. Turns out that as a fatal error in PHP 8 on our production server but not on the earlier PHP on our development server. Wow... a language with breaking syntax changes. I'll stick with sound #Clojure, where you never have too few parenthesis.

    oheim, to email

    #Email obfuscation: What will work in 2023? There are various ways to hide emails on websites from bots. Possibilities and their effectiveness are listed: https://spencermortensen.com/articles/email-obfuscation/

    found in #stackoverflow news letter

    #mail #html #css #spam #webdev

    floppy, to stackoverflow
    @floppy@fosstodon.org avatar

    > "Stack Overflow requires external JavaScript from another domain, which is blocked or failed to load."

    unable to close intrusive cookie banner

    Excuse me?

    I didn't expect that they would actually start playing that game, but it takes two to tango and I refuse.

    realn2s, (edited ) to random

    question

    I got a / email with a really strange header. The header doesn't contain any "Received:" lines. As it "is" an external email IMHO there should be at least one of the local -Server/

    Any experts there who can explain me the header?

    welcome

    realn2s,

    There is a #StackOverflow post regarding this phenomena

    https://stackoverflow.com/questions/64831743/email-header-without-recieved-or-source-ip-informations

    As the email is handled locally either by outlook.com or a local exchange server (hard to tell which without the received lines)

    The mentioned possible reasons

    • email delivered directly to recipient's mailbox
      e.g by program running with recipient's OS account privileges
    • IMAP/POP3 server tweak for (all users) announcements
    • local SMTP/MTA configuration for deliveries without Received: header.

    should all not apply and/or would mean a serious configuration problem.

    robinlovelace, to python
    @robinlovelace@fosstodon.org avatar

    I'm thinking about porting functionality in the {stats19} #rstats package into #Python and possibly other languages. Are you an #OpenSource developer with an interest in #DataScience for policy, sustainability + good? If so please check this issue and let us know your thoughts on taking this project to the next level 🚀 https://github.com/ropensci/stats19/issues/230
    @rOpenSci @mszll + all any thoughts on best practices welcome also 🙏

    luis_de_sousa,
    @luis_de_sousa@mastodon.social avatar

    @robinlovelace @martinfleis

    "Great language" is merely a subjective statement. #R has long dropped outside the top 20 of the most used languages in the world and the trend only points downwards. It is in the bottom half of 's admiration ranking and scores less than 4% in the desirable ranking. In contrast, recent languages like , , , etc yield pretty much the opposite dynamics at the moment.

    https://survey.stackoverflow.co/2023/#technology

    VinceAggrippino, to stackoverflow
    @VinceAggrippino@techhub.social avatar

    Somebody has decided to visit my #StackOverflow profile and vote up nearly everything I've ever done on the site.

    I guess they think they're doing me a favor.

    The funny thing is, the site has been a read-only last choice for me for several years. I feel it's a toxic environment that, on balance, has a negative impact on the community.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • thenastyranch
  • magazineikmin
  • mdbf
  • GTA5RPClips
  • everett
  • rosin
  • Youngstown
  • tacticalgear
  • slotface
  • ngwrru68w68
  • kavyap
  • DreamBathrooms
  • khanakhh
  • megavids
  • tester
  • ethstaker
  • cubers
  • osvaldo12
  • cisconetworking
  • Durango
  • InstantRegret
  • normalnudes
  • Leos
  • modclub
  • anitta
  • provamag3
  • lostlight
  • All magazines