Yarn isn’t a JS runtime
bjorney
- 0 posts
- 27 comments
> want to compile 50kb C++ console app on windows
> 6 GB MSVC installation
- bjorney@lemmy.cato
Reddit@lemmy.world•Reddit has now removed the ability to edit comments after a ban
1 yearit’s literally easier to do on a technical level
I wouldn’t go that far. It’s still trivially easy, and arguably best practice, but it’s certainly more complicated than issuing an in-place update
- bjorney@lemmy.cato
Selfhosted@lemmy.world•Why do I have a separate Jackett docker image every day?!English
1 yearIf the code doesn’t change, the resulting docker image will have the same hash, and a new image won’t be created
https://github.com/jackett/jackett/releases
Jackett is literally just releasing a new version every day
Like once a month we have a fake site pop up using the name of our business with 1-2 characters changed. They use a web crawler to scrape all the content off our domain and they re-host all of our products on a woocommerce site where they steal our customers credit card information.
These all use cloudflare to conceal the hosting providers, who are entirely non-responsive without a police report or WIPO ruling. When all is said and done, the content is being hosted in China, Russia, or South Africa, meaning the only way to remove the content is from the registrar’s, because they are the only link in the chain that actually has to comply
What does
git add xxxdo then
Git doesn’t automatically recursively add all files in the directory to the repository though - VSCode decided that should be the default behavior, while other editors (intellij) ask if you want to add newly created files to version control
You can just point your domain at your local IP, e.g. 192.168.0.100
- bjorney@lemmy.cato
Programming@programming.dev•[SQL/MariaDB] How will the YEAR data type transform in the future?
2 yearsRight? it screams wayyyy pre-y2k but MySQL was only release in 95
- bjorney@lemmy.cato
Programming@programming.dev•[SQL/MariaDB] How will the YEAR data type transform in the future?
2 yearswill it become a relic of the past?
Probably
why YEAR in the first place, who would actually make use of it?
Accounting systems in the 90s that needed to squeeze out every drop of performance imaginable
- bjorney@lemmy.cato
Programming@programming.dev•[SQL/MariaDB] How will the YEAR data type transform in the future?
2 yearsI expect it won’t
The year datatype is a 1 byte integer, but the engine adds/subtracts 1900 to the value under the hood and has special handling for zero.
If you need to store more than 255 years range, you can use a 2 byte integer, which doesn’t need that special handling under the hood, because with 2 bytes you can store 65000+ years
- bjorney@lemmy.cato
Programming@programming.dev•which python trick or hack you know that you would want to share?
2 yearsThere are like 10,000 different solutions, but I would just recommend using what’s built in to python
If you have multiple versions installed you should be able to call
python3.12to use 3.12, etcBest practice is to use a different virtual environment for every project, which is basically a copy of an existing installed python version with its own packages folder. Calling pip with the system python installs it for the entire OS. Calling it with sudo puts the packages in a separate package directory reserved for the operating system and can create conflicts and break stuff (as far as I remember, this could have changed in recent versions)
Make a virtual environment with
python3.13 -m venv venvthe 2nd one is the directory name. Instead of calling the system python, call the executable atvenv/bin/python3If you do
source venv/bin/activateit will temporarily replace all your bash commands to point to the executables in your venv instead of the system python install (for pip, etc).deactivateto revert. IDEs should detect the virtual environment in your project folder and automatically activate it
- bjorney@lemmy.cato
Reddit@lemmy.world•Reddit if full of bots: thread reposted exactly the same, comment by comment, 10 months later
2 yearsReddit has way more data than you would have been exposed to via the API though - they can look at things like user ARN (is it coming from a datacenter), whether they were using a VPN, they track things like scroll position, cursor movements, read time before posting a comment, how long it takes to type that comment, etc.
no one at reddit is going to hunt these sophisticated bots because they inflate numbers
You are conflating “don’t care about bots” with “don’t care about showing bot generated content to users”. If the latter increases activity and engagement there is no reason to put a stop to it, however, when it comes to building predictive models, A/B testing, and other internal decisions they have a vested financial interest in making sure they are focusing on organic users - how humans interact with humans and/or bots is meaningful data, how bots interact with other bots is not
Not with 64gb ram and 16+ cores on that budget
- bjorney@lemmy.cato
Reddit@lemmy.world•Reddit if full of bots: thread reposted exactly the same, comment by comment, 10 months later
2 yearsTo compare every comment on reddit to every other comment in reddit’s entire history would require an index
You think in Reddit’s 20 year history no one has thought of indexing comments for data science workloads? A cursory glance at their engineering blog indicates they perform much more computationally demanding tasks on comment data already for purposes of content filtering
you need to duplicate all of that data in a separate database and keep it in sync with your main database without affecting performance too much
Analytics workflows are never run on the production database, always on read replicas which are taken asynchronously and built from the transaction logs so as not to affect production database read/write performance
Programmers just do what they’re told. If the managers don’t care about something, the programmers won’t work on it.
Reddit’s entire monetization strategy is collecting user data and selling it to advertisers - It’s incredibly naive to think that they don’t have a vested interest in identifying organic engagement
- bjorney@lemmy.cato
Reddit@lemmy.world•Reddit if full of bots: thread reposted exactly the same, comment by comment, 10 months later
2 yearsLook at the picture above - this is trivially easy. We are talking about identifying repost bots, not seeing if users pass/fail the Turing test
If 99% of a user’s posts can be found elsewhere, word for word, with the same parent comment, you are looking at a repost bot
- bjorney@lemmy.cato
Reddit@lemmy.world•Reddit if full of bots: thread reposted exactly the same, comment by comment, 10 months later
2 yearsI know everyone here likes to circle jerk over “le Reddit so incompetent” but at the end of the day they are a (multi) billion dollar company and it’s willfully ignorant to infer that there isn’t a single engineer at the company who knows how to measure string similarity between two comment trees (hint:
import difflibin python)
- bjorney@lemmy.cato
Reddit@lemmy.world•Reddit if full of bots: thread reposted exactly the same, comment by comment, 10 months later
2 yearsIf you have access to the entire Reddit comment corpus it’s trivial to see which users are only reposting carbon copies of content that appears elsewhere on the site





Damn you literally drove OP off the deep end