I’d practically guarantee there’s a nonzero amount of suits out there who think it’d be a fantastic idea, and have at the very least tried to make it happen, and that it’s only a matter of time before one of them talks somebody into it if they haven’t already
Don’t have links anymore, but few months ago I came across some startup trying to sell AI that watches your production environment and automatically optimizes queries for you.
It is just a matter of time until we see first AI induced large data loss.
But copilot suggested it and it obviously knows what it’s doing! If I couldn’t trust literally everything it spat out it wouldn’t be sold by Microsoft for really obvious liability reasons!
There’s a real challenge for designers of trash bins in parks in at least North America. The overlap between the smartest bears and the dumbest people is pretty big.
my employer has decided to license an “AI RDBMS” that will dynamically rewrite our entire database schema and queries to allegedly produce incredible performance improvements out of thin air. It’s obviously snake oil, but they’re all in on it 🙄
There’s a lint rule that looks for @nocommit in all modified files. It shows a lint error in dev and in our code review / build system, and commits that contain @nocommit anywhere are completely blocked from being merged.
(the code in the lint rule does something like “@no”+“commit” to avoid triggering itself)
Neat idea. This could be refined by adding a git hook that runs (rip)grep on the entire codebase and fails if anything is found upon commit may accomplish a similar result and stop the code from being committed entirely. Requires a bit more setup work on de developers end, though.
Would a git hook block you from committing it locally, or would it just run on the server side?
I’m not sure how our one at work is implemented, but we can actually commit @nocommit files in our local repo, and push them into the code review system. We just can’t merge any changes that contain it.
It’s used for common workflows like creating new database entities. During development, the ORM system creates a dev database on a test DB cluster and automatically points the code to it with a @nocommit comment above it. When the code is approved, the new schema is pushed to prod and the code is updated to point to the real DB.
Also, the codebase is way too large for something like ripgrep to search the whole codebase in a reasonable time, which is why it only searches the commit diffs themselves.
At my workplace, we use the string @nocommit to designate code that shouldn’t be checked in
That approach seems useful but it wouldn’t have prevented the PyPI incident OP links to: the access token was temporarily entered in a .py python source file, but it was not committed to git. The leak was via https://docs.python.org/3/tutorial/modules.html#compiled-python-files which made it into a published docker build.
Not just for credentials, there are many times where I change a setting or whatever and just put “//TODO: remember to set it back to ‘…’ before commiting”. I forget to change it back 99% of the time.
PRs? Isn’t the point of @nocommit that something does not get committed, and therefore no credentials are stored in the git repository? Even if the PR does not get merged, the file is still stored as a hit object and can be restored.
The C compiler, when I parse a &(float) as (long) (it’s actually an evil floating point hack to run Quake III on an X86_64 CPU emulated in Scratch running on Spotifys Car Thing) (This would never be possible in Rust)
Well, everyone who’s coding their websites is, yeah. Seeing how almost 10% of all websites use Elementor now and are built by people without an understanding of coding concepts, there are probably plenty of websites that don’t output their copyright year dynamically.
Fun fact: if you search for “removed key” or something similar in GitHub you will get thousands of results of people removing accidentally committed keys. I’m guessing the vast majority of those removed keys haven’t been revoked.
I’m not sure about the being ok part, but I as a human being will never be able to be excited like a Labrador puppy. Except maybe on drugs, but I don’t know which would allow that level of joy and neverending appetite.
I’m fat already, so that might be a good thing though.
They have several repeat videos of this dog doing the exact same behaviour, they seem to keep them in tiny enclosures, and keep feeding it milk. Milk is not good for dogs, There’s no guarantee that they feed the dogs regularly or humanely.
It’s difficult to actually tell context because of the nature of these types of channels. Labradors can have food aggression, especially pound dogs, that needs essentially “dog therapy” over time to abate. Considering animal abuse is rampant on the channel in general, I don’t have high hopes here. The channel posting this specific dog over and over does not give context.
The last few videos with those two dogs does show some progress with the labrador starting to gain walking ability, so maybe they are trying to rehabilitate, but they’re still giving them insane amounts of milk. They don’t look bone thin, exactly. Again, hard to say with no context.
If there’s an original source with more information, chances are it’s on some website somewhere in chinese, which can be difficult to convince browsers in english to find :/ Language barrier. I’ve spent a few hours looking, including trying reverse image search. I’ve seen this a few times and memeified animal abuse bothers me, so wanted to know if it’s… not. If someone knows actual context with source links, I’d like to know.
programmer_humor
Active
This magazine is from a federated server and may be incomplete. Browse more on the original instance.