- 94 Posts
- 28 Comments
GodOfThunder@lemm.eeto Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•What would you considered "Ethical Piracy"English271·2 years agoOh yeah I was thinking more along the lines of video games or movies where there are too many people creating it. For books, etc you can definitely donate.
GodOfThunder@lemm.eeto Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•What would you considered "Ethical Piracy"English23·2 years agoThere should be a way to pay only the workers when you buy something. In that case, you could pay them but only after pirating and making sure you enjoy it. Since there is nothing like that, I think you should pay only content from small creators. Big creators already have plenty, and paying for anything else just gives money to greedy executives who then lower the quality of the content to make more money. Of course, if you have the means and don’t pay anything, you are just making sure there will be less of that content made in the future. It isn’t scalable; if everybody pirated content without paying a single cent, there would be no content made except by hobbyists who don’t want to make a living out of it.
GodOfThunder@lemm.eeOPto No Stupid Questions@lemmy.world•What thematic instances are there, and what others do you wish there were?19·2 years agoI know about https://programming.dev and https://mtgzone.com I wish there were one about gaming and another about fanfiction
GodOfThunder@lemm.eeto No Stupid Questions@lemmy.world•Data privacy: how to counter the "I have nothing to hide" argument?English20·2 years agoEdward 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.
GodOfThunder@lemm.eeto Fediverse@lemmy.world•Viewing lemmy posts by all tends to be dominated by a few communities20·2 years agoThis has already been mentioned a few times. Just find the relevant issue on GitHub and give it an upvote.
GodOfThunder@lemm.eeto No Stupid Questions@lemmy.world•How do you choose an instance and does that have a significant effect on your Lemmy experience?English17·2 years agoI don’t know there is a lemmy-stats-crawler utility that does it automatically and produces a json file. So all I do is parse that json file to get the numbers.
GodOfThunder@lemm.eeto No Stupid Questions@lemmy.world•How do you choose an instance and does that have a significant effect on your Lemmy experience?English17·2 years agoDepending on which instances are blocked you will see different content in ones or others. Which is why I choose instance based on the minimum number of blocked users based on the results of this script.
GodOfThunder@lemm.eeto World News@lemmy.world•China mandates that AI must follow “core values of socialism”17·2 years agoMaybe get your country to have a higher democracy index than china before criticizing them?
https://www.newsweek.com/most-china-call-their-nation-democracy-most-us-say-america-isnt-1711176
GodOfThunder@lemm.eeto Fediverse@lemmy.world•Building the fediverse is an investment in us and the open web.English17·2 years agoI knew I recognized him from somewhere. He was the developer of lib.reviews. https://github.com/eloquence
GodOfThunder@lemm.eeOPto General Discussion@lemmy.world•What Algorithms from Popular Platforms do you Like the Most?17·2 years agoThe 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.
GodOfThunder@lemm.eeto Actually Useful AI@programming.dev•GPT4All is a free-to-use, locally running, privacy-aware large language model that is a 3GB - 8GB file that you can download and query. No GPU or internet requiredEnglish141·2 years agoI believe Claude 2 is the best LLM option currently, if you live in the US or UK or have a VPN.
GodOfThunder@lemm.eeto Actually Useful AI@programming.dev•GPT4All is a free-to-use, locally running, privacy-aware large language model that is a 3GB - 8GB file that you can download and query. No GPU or internet requiredEnglish171·2 years agoI’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.
GodOfThunder@lemm.eeto politics @lemmy.world•Worst States To Live & Work In. All 10 Are Republican States16·2 years agowhy don’t you post this in a us community. I don’t give a shit about this.
GodOfThunder@lemm.eeto No Stupid Questions@lemmy.world•Why people can't handle the truth?English19·2 years agoHumans are more influenced by emotions than logic, which means that critical thinking alone may not convince them. Only those who are receptive to logical reasoning can be persuaded that way.
GodOfThunder@lemm.eeto You Should Know@lemmy.world•YSK: Imagus is Hover Zoom for Lemmy that actually worksEnglish15·2 years agoImagus is a browser extension for Firefox that allows users to enlarge images and display images/videos from links with a simple mouse-over. It is similar to the Hover Zoom extension, which is a popular tool for browsing memes and gifs on desktop. However, Hover Zoom has been flagged as spyware, so users may want to consider using Imagus instead. Imagus works with a wider range of links than Hover Zoom, including those from imgur. The extension also has customizable settings, including an expandable set of rules for getting larger images, media, or other content.
GodOfThunder@lemm.eeto Fediverse@lemmy.world•Search Lemmy 0.4.0 update (an enhanced search engine for Lemmy)English18·2 years agoI’ve saved this, but it would be nice to see the syntax somewhere in the search engine
GodOfThunder@lemm.eeOPto Python@programming.dev•What's the best approach to avoid defining sqlite3 conn and cursor in many different functions?8·2 years agoA function decorator: You can create a decorator that handles the connection and cursor creation and passes the cursor to the decorated function.
import sqlite3 from functools import wraps DB_FILE = "your_database_file.db" def with_cursor(func): @wraps(func) def wrapper(*args, **kwargs): conn = sqlite3.connect(DB_FILE) cursor = conn.cursor() result = func(cursor, *args, **kwargs) conn.commit() cursor.close() conn.close() return result return wrapper @with_cursor def insert_post_to_db(cursor: sqlite3.Cursor, issue: Issue, lemmy_post_id: int) -> None: cursor.execute( "INSERT INTO posts (issue_url, lemmy_post_id, issue_title, issue_body) VALUES (?, ?, ?, ?)", (issue.url, lemmy_post_id, issue.title, issue.formatted_body), )
GodOfThunder@lemm.eeOPto Python@programming.dev•What's the best approach to avoid defining sqlite3 conn and cursor in many different functions?7·2 years agoA context manager: Create a context manager that handles the connection and cursor creation, as well as closing the connection when done. This way, you can use the
with
statement to manage the connection and cursor in your functions.import sqlite3 DB_FILE = "your_database_file.db" class DatabaseConnection: def __enter__(self): self.conn = sqlite3.connect(DB_FILE) self.cursor = self.conn.cursor() return self.cursor def __exit__(self, exc_type, exc_val, exc_tb): self.conn.commit() self.cursor.close() self.conn.close() def insert_post_to_db(issue: Issue, lemmy_post_id: int) -> None: with DatabaseConnection() as cursor: cursor.execute( "INSERT INTO posts (issue_url, lemmy_post_id, issue_title, issue_body) VALUES (?, ?, ?, ?)", (issue.url, lemmy_post_id, issue.title, issue.formatted_body), )
GodOfThunder@lemm.eeOPto Linux@lemmy.ml•Why are we stuck with bash programming language in the shell?19·2 years agoThis is so cool. It’s exactly what I had in mind when thinking of a modern bash alternative.
I can confirm that the Opera method works. I couldn’t create an account before but I’ve managed to create the account using the built-in VPN of the Opera browser. Here’s an example of a Python script written with Claude 2 that GPT-4 wouldn’t have enough context for, https://lemm.ee/post/2595655 Really impressive.