fd -HI '^\.DS_Store$' $HOME -tf -X rm -v
Programmer Humor
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
__MACOSX folders hither and yon.
DS DS DS D-not gonna work here anymore, anyway.
Just gitignore that. Same for dot idea and whatever vscode adds, if anything
Use this so that the things you need to share do get shared.
.idea/*
!.idea/codeStyles
!.idea/runConfigurations
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets
Note: I haven't checked the vs code ones in depth, the list might not be perfect.
I personally strongly advise against committing IDE junk to version control. Assuming your IDE workspace defaults are "sane" for the rest of the contributors is not a good practice.
If your whole team uses the same IDE, what's wrong with commiting things like run configurations and code styles? I agree in general, but a wholesale ban on it is very cargo culty to me. There can be legitimate times to do it.
.vscode
doesn't store cache or any trash like that, so if you're including all settings, tasks, etc, you can probably just include everything.
The only thing to keep in mind is to only add settings, extension recommendations, etc that apply to all your collaborators and aren't just personal preferences. A few good examples are formatting rules, task definitions to run the project, and linting rules that can't be defined somewhere else.
Ya, but that .idea is not inserted in eleven thousand sub folders.
It's not, but I still prefer not pushing my config on others, or others pushing theirs on me.
honestly - while a Mac is certainly less painful to use than winshit, putting rubbish files recursively into each(!!) accessed folder, on all thumbdrives ever inserted, that's something Jobs deserves to burn in hell for.
I am not familiar with MacOS, but that seems like a nightmare. What is the purpose of these files?
Iirc they're indexes for the system wide search feature, Spotlight
Is there a valid reason not to store that [[anywhere else]], ideally in Spotlight's data?
You'd want that, but a lot of programs do that, both in Windows and Linux.
e.g. The .directory
files with the [Desktop Entry]
spec by freedesktop.org
Dolphin has the option to enable/disable the feature
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
Helps a bit.
As much as they love to sue people, I don't understand why Nintendo doesn't go after Apple for trademark infringement, so that they're forced to finally come up with a better method of storing folder attributes.
I'm pretty sure Apple has been using those files since before Nintendo released the DS.
This is probably not a relevant counter point, just a(n un)fun fact, but Nintendo put in a patent for throwing a capture ball at monsters after Pal World was released and Pal World has to change some stuff (though I'm not sure if they're doing it to avoid going to court because they're concerned or if they're being compelled).
And emulation is legal too, but that doesn't stop Nintendo.
Not sure they'd be stupid enough to go after someone as big as Apple though.
Linux user has been here.
How can you tell?
*sniff* Still smells like smug.
*sniff* Still smells like smug.
.Trash-1000
LF line endings.
Also applies to Mac but yeah
Didn't Mac use just CR line endings at some point?
Classic Mac OS did, pre OS X aka pre 2001.
Long long ago, but yeah
I would also like a word with “bonjour” process while we’re at it.
Thought it was a virus when I first discovered it.
no one? Ok
Idk what all it does and doesn't do, but installing it in Windows lets you find your Raspberry Pi by its ".local" hostname. I know it was originally for printers or something.
It's for local service discovery. Those services may be printers on your network, or another computer sharing music on iTunes (which is why as a Windows user you'd usually get Bonjour when installing iTunes). Or maybe it's your Raspberry Pi.
It feels iffy because it comes bundled with other software without you being asked (IIRC) and it autoruns on startup. And I mean 20 years ago when iPods were a thing and people had to use iTunes on Windows, a couple dozen megabytes of RAM really mattered too. Hell I had 512 MB back when I had an iPod (and therefore iTunes)
All i figured out for certain is that it came bundled with itunes.
That was what caused duplicates on setting the printer as default on dad's PC. Just disable active scanning for new printers in the config. Was quite some detective work with examining the service file and recursively grepping /etc for variable names multiple times.
Would you have felt differently if it was called Rendezvous?
Probably not. I know better then to trust the french /s
"Bonjour, i'm here to fuck shit up"