GodOfThunder

u/GodOfThunder@lemm.ee
110 posts · 51 comments

Recent posts

Recent comments

Edward Bernays, the nephew of Sigmund Freud, was a pioneer of propaganda and public relations. He is credited with the introduction of bacon and eggs into the American breakfast. In the 1920s, Americans typically ate light breakfasts of coffee, orange juice, and rolls. In order to increase bacon sales, Bernays wrote to 5,000 physicians asking whether a heavy breakfast was better for health than a light breakfast. 4,500 physicians wrote back confirming that a heavy breakfast was better for health as the body is depleted of nutrients after a night of sleep. This "research" of doctors encouraging Americans to eat a heavier breakfast, namely "bacon and eggs," was published in several major newspapers and magazines to great success. Beech-Nut's profits increased rapidly, and bacon and eggs became a staple of the American breakfast[1][3][4][5][6].

Citations: [1] https://www.fridaysocks.com/blogs/news/the-history-of-bacon-and-eggs [2] https://youtube.com/watch?v=3Asnt2ISZJs [3] https://theuijunkie.com/bacon-eggs-breakfasts/ [4] https://www.thisiscapitalism.com/bacon-eggs-and-public-relations/ [5] https://legitur.com/history/bernays-breakfast-bamboozle-the-pr-campaign-that-made-americans-eat-more-bacon/ [6] https://www.bonappetit.com/entertaining-style/pop-culture/article/watch-the-inventor-of-pr-explain-how-bacon-and-eggs-became-an-all-american-breakfast

Edward Snowden, a former National Security Agency contractor and government whistleblower, has been credited with the quote "Arguing that you don't care about the right to privacy because you have nothing to hide is no different than saying you don't care about free speech because you have nothing to say". Snowden has argued that privacy is a fundamental right and that without it, individuals cannot have anything for themselves. The "nothing to hide" argument has been used to defend the collection and use of government data beyond surveillance and disclosure, but critics argue that it is inherently paradoxical and that what is hidden is not necessarily relevant. Snowden has also stated that the burden of justification falls on those seeking to infringe upon human rights, and that nobody needs to justify why they "need" a right.

The one I like most is YouTube, where it shows everything from the last few days and then only the most popular content from the last few weeks, months, and even years. I would like something similar, where the further I browse, the more votes a post must have to show up in the feed.

I would like if URLs were SEO friendly and you could search by community from a search engine like site:instance.com/community_name

This should have been the way it was implemented from the beginning until the built-in search was half as good as the search engine.

I'm still waiting for a local autonomous AI agent with search. I don't understand why most autonomous agent projects use GPT-4 without incorporating search capabilities. Allowing the model to continuously hallucinate is not productive. Instead, it should be able to discover factual information and perform genuinely useful tasks.

To enforce writing all type hints in Visual Studio Code (VSCode) with Mypy, you can follow these steps:

  1. Install Mypy: First, you need to install the Mypy package. Open the terminal and run the following command:

    pip install mypy
    
  2. Configure Mypy in VSCode: Open your project in VSCode and go to the settings. You can access the settings by clicking on the gear icon in the lower-left corner and selecting "Settings". Alternatively, you can use the keyboard shortcut Ctrl + , (Windows/Linux) or Cmd + , (Mac) to open the settings.

  3. Enable Mypy: In the settings, search for "mypyEnabled" and make sure it is set to true. This enables Mypy for type checking in your Python code.

  4. Specify Mypy arguments: Search for "mypyArgs" in the settings and add the following arguments to the list:

    "--strict"
    "--disallow-untyped-defs"
    "--disallow-untyped-calls"
    "--disallow-any-generics"
    "--warn-redundant-casts"
    "--warn-unused-ignores"
    

    These arguments enforce stricter type checking and help catch potential issues in your code.

  5. Save the settings: Once you have made the necessary changes in the settings, save the file.

Now, when you open a Python file in VSCode, Mypy will perform real-time type checking and highlight any type-related errors or inconsistencies in your code. It will enforce writing all type hints according to the specified arguments in the settings[3].

Note: It's important to note that Mypy is a static type checker and cannot enforce type hints at runtime. However, it can help catch type-related errors during development and improve code readability and maintainability[2][4][5].

Citations: [1] https://stackoverflow.com/questions/67363258/configure-mypy-in-vscode-to-enforce-type-hinting [2] https://amitvkulkarni.medium.com/improving-python-code-readability-with-type-hinting-and-mypy-ac7c02cb89 [3] https://dev.to/jodaut/python-type-checking-with-visual-studio-code-46a7 [4] https://levelup.gitconnected.com/mypy-static-type-checking-in-python-in-4-minutes-8a9af666874d [5] https://towardsdatascience.com/12-beginner-concepts-about-type-hints-to-improve-your-python-code-90f1ba0ac49 [6] https://realpython.com/lessons/type-checking-mypy/

I think this could be very valuable for the community and the Lemmy devs. However, I believe to be successful, there needs to be a volunteer(s) who “sync” the community to the GitHub issues. We could automate this but that would make the situation worse. Here’s how I could imagine this working:

When a new feature or bug is posted, the mod determines if this is duplicated or not. If so, they will reply to the post with a link to the previous post and lock the current one. If it is truly new, the community can vote and comment. After a week or so, if the community supports the new feature or fixing the bug, the mod will open a new GitHub issue with a summary of the community discussion and link to the discussion.

This is a lot of work for the mods, but I believe it would really add value for both the Lemmy community and the devs.

https://lemmy.sdf.org/comment/1061832