via: @memes@wetdry.world

https://wetdry.world/@memes/112717700557038278

the sqlite codebase is a gem.

tldr; mcaffee made a shit ton of sqlite files in the temp folder causing people to call the sqlite devs phone angrily. now they name all files etilqs to prevent this.

Text from the screenshot:

2006-10-31: The default prefix used to be “sqlite_”. But then Mcafee started using SQLite in their anti-virus product and it started putting files with the “sqlite” name in the c:/temp folder. This annoyed many windows users. Those users would then do a Google search for “sqlite”, find the telephone numbers of the developers and call to wake them up at night and complain. For this reason, the default name prefix is changed to be “sqlite” spelled backwards. So the temp files are still identified, but anybody smart enough to figure out the code is also likely smart enough to know that calling the developer will not help get rid of the file.

Code found at: https://github.com/sqlite/sqlite/blob/master/src/os.h#L65 (The line numbers in the screenshot and the code don’t match up)

  • Flying Squid@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    5 months ago

    I used to tell people that John McAfee always exited a room by jumping through a window while yelling, “MCAFEE RULES!” Which he didn’t, but maybe he did? Anyway, I miss that crazy motherfucker. Sometimes nuts make the world more fun.

  • MostlyBlindGamer@rblind.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    5 months ago

    Wasn’t there a story about people calling curl devs because of car issues?

    For what it’s worth, I’m sure the SQLite devs could help somebody clean up their temp files. They just really shouldn’t have to.

  • livingcoder@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    5 months ago

    I love how the solution didn’t involve changing the prefix to “mcaffee_”. Now users don’t know who to blame. Great. That’s so nice of them.

  • bleistift2@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    5 months ago

    Forgive my ignorance. SQLite is a database software. Why would McAffee create lots of database files?

    [Edit:] I’m not asking why a program needs to store data. I’m asking why that necessitates many files. One database file (or one per table) should be enough, right?

    • Michal@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      5 months ago

      The program needs to store multiple temporary files (one per virus definition update, or scan results or whatever purpose).

      It looks like they simply picked sqlite as a format because the data has a structured format and that way they leverage databases robustness, easiness to read and query the data.

      The comment appears to be from 2006. Sqlite mightve had some limitations then that necessitated creating a new (temporary) database file as a subset of larger database for performance reasons or to allow multiple processes to read/write them and then consolidate data back into the single database.

    • qaz@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      5 months ago

      Many programs use SQLite internally and McAfee decided to store the database files in C:/Temp

    • towerful@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      5 months ago

      Sqlite is a great embedded database.
      If you are storing lots and lots of information in a JSON file, CSV file, or coming up with your own serialisation… Chances are, sqlite is going to do it better.
      I know loads of android apps use sqlite for storage. I’ve also managed to open quite a few programmes “proprietary” file format in sqlite.

  • Clbull@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    5 months ago

    John McAfee would be spinning like a rotisserie chicken in his grave. Or at least he would be if McAfee Software hadn’t already turned to shit long before his death.

    So the temp files are still identified, but anybody smart enough to figure out the code is also likely smart enough to know that calling the developer will not help get rid of the file.

    Don’t underestimate the stupidity of your average person.

    • dohpaz42@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 months ago

      You don’t even need to make public yourself. City governments do it automatically, mostly if you’re a home owner. Other companies do it because they keep getting hacked.

      Try it.

      Go to your favorite search engine and type in your phone number (format it to look like a phone number). If you haven’t already gone through and had yourself removed from these types of sites, you’ll be appalled at what you find.