I made LASIM! https://github.com/CMahaff/lasim
I currently have 3 accounts (big shock):
- 2 Posts
- 37 Comments
CMahaff@lemmy.worldto Programming@programming.dev•No Longer My Favorite Git CommitEnglish5·6 months agoIt obviously depends on your exact git workflow, but my last team had things setup so that the code content of a MR was automatically squashed on merge, and the text if the MR itself was automatically set as the content of the new singular git commit.
This was largely the best of both worlds because your commits could have almost any text, and the description of what changed could be updated as needed when making the MR. But it ultimately ended up in the git history where it belonged.
Of course, I still had some trouble trying to get the team to describe their changes well in the MR at times - but that’s a different problem entirely.
CMahaff@lemmy.worldto Fediverse@lemmy.world•What's the best way to move instances?English7·6 months agoIt wasn’t always an option - around the time of the first big mass migration of Reddit users it wasn’t something you could do. I actually wrote a tool at that time that could automate the manual action of re-subscribing / re-blocking everything.
But yeah, these days it’s a feature of Lemmy itself, which is great because it’s much more efficient than trying to do things client-side.
CMahaff@lemmy.worldto Programming@programming.dev•StackOverflow has lost 77% of new questions compared to 2022. Lowest # since May 2009.English182·9 months agoBleh, maybe I’m an old man, but when I’m searching stackoverflow, I find the context of stack overflow answers really helpful.
I.E. the top result may include caveats itself or have comments indicating why an answer might be problematic. And sometimes the best answer isn’t even the top answer. I’ve not used AI code assistance very much, but these all seem like things that the model is likely to take for granted.
But I also never contribute to stackoverflow, and agree I’d much rather engage with with an AI than do THAT.
CMahaff@lemmy.worldto Patient Gamers@sh.itjust.works•Just discovered Mini Metro, a puzzle game where you have to create metro lines. Very engaging, but also chill, and currently 50% off on SteamEnglish8·9 months agoDoesn’t look like it’s on sale, at least in the US
CMahaff@lemmy.worldto PC Gaming@lemmy.ca•Selaco hits 70,000 copies sold with a big update live and sale now on3·1 year agoI really enjoyed my time with it, even though I’ve not played many games in this “style”.
The campaign is quite lengthy even though it’s not finished yet, so you’ll definitely get your money’s worth.
Sounds like a problem with Memmy. Does this link work? https://lemm.ee/c/sfah@hilariouschaos.com
You should be able to search communities in your app and could have searched “sfah@hilariouschaos.com” too.
But basically communities on Lemmy are in the form of “name@host”. The “name” can be whatever someone wants, and the “host” is the website / Lemmy instance where that community originates from. But because it is federated it’s all available everywhere (generally speaking). For example, if you visit https://lemmy.world/c/sfah@hilariouschaos.com it should be the same content just loaded via lemmy.world instead of lemme.ee. However if theoretically someone went and made a “sfah@lemmy.world” community, that would be a completely separate community from the above, hosted on a different Lemmy instance.
CMahaff@lemmy.worldto Fediverse@lemmy.world•600 more active users in the last few days, from 47225 to 47827 in two daysEnglish11·1 year agoOut of curiosity, what content are you looking for? Discovery on Lemmy can be a problem, but sometimes the communities are there and even active, just buried.
But may I also suggest searching by Top Day/12-hour/6-hour to see the most active posts. Lemmy’s scaled algorithm still doesn’t get it quite right IMO.
CMahaff@lemmy.worldto Fediverse@lemmy.world•600 more active users in the last few days, from 47225 to 47827 in two daysEnglish12·1 year agoThe CEO said they were going to add pay-walled subreddits at an earnings call.
So… Yep.
CMahaff@lemmy.worldto Programming@programming.dev•The graying open source community needs fresh bloodEnglish23·1 year agoFound a blog post that gives a quick overview of how to do git via email in general: https://peter.eisentraut.org/blog/2023/05/09/how-to-submit-a-patch-by-email-2023-edition
So at least from my understanding you’d make your changes, email the contents of the patch to the maintainer, and then they’d apply it on their side, do code review, email you comments, etc. until it was in an acceptable state.
There’s also the full kernel development wiki that goes into all the specifics: https://www.kernel.org/doc/html/v4.16/process/howto.html
(I never got through the whole thing)
CMahaff@lemmy.worldto Programming@programming.dev•The graying open source community needs fresh bloodEnglish93·1 year agoI’ll also throw out: aging infrastructure, build systems, coding practices, etc.
I looked into contributing to the kernel - it’s already an uphill battle to understand such a large, complex piece of software written almost entirely in C - but then you also need to subscribe to busy mailing lists and contribute code via email, something I’ve never done at 30 and I’m betting most of the younger generation doesn’t even know is possible. I know it “works” but I’m really doubting it’s the most efficient way to be doing things in 2024 - there’s a reason so many infrastructure tools have been developed over the years.
The barriers to entry for a lot of projects is way too high, and IMO a lot of existing “grey” maintainers, somewhat understandably, have no interest in changing their processes after so much time. But if you make it too hard to contribute, no one will bother.
CMahaff@lemmy.worldto Selfhosted@lemmy.world•Should I or should I not use a VLAN? I have trouble understanding the benefits for home useEnglish4·1 year agoOut of curiosity, what switch are you using for your setup?
Last time I looked, I struggled to find any brand of “home tier” router / switch that supported things like configuring vlans, etc.
CMahaff@lemmy.worldto Selfhosted@lemmy.world•Should I or should I not use a VLAN? I have trouble understanding the benefits for home useEnglish1·1 year agoMaybe I am not thinking of the access control capability of VLANs correctly (I am thinking in terms of port based iptables: port X has only incoming+established and no outgoing for example).
I think of it like this: grouping several physical switch ports together into a private network, effectively like each group of ports is it’s own isolated switch. I assume there are routers which allows you to assign vlans to different Wi-Fi access points as well, so it doesn’t need to be literally physical.
Obviously the benefits of vlans over something actually physical is that you can have as many as you like, and there are ways to trunk the data if one client needs access to multiple vlans at once.
In your setup, you may or may not benefit, organizationally. Obviously other commenters have pointed out some of the security benefits. If you were using vlans I think you’d have at a minimum a private and public vlan, separating out the items that don’t need Internet access from the Internet at all. Your server would probably need access to both vlans in that scenario. But certainly as you say, you can probably accomplish a lot of this without vlans, if you can aggressively setup your firewall rules. The benefit of vlans is you would only really need to setup firewall rules on whatever vlan(s) have Internet access.
CMahaff@lemmy.worldto Selfhosted@lemmy.world•[SOLVED] TrueNAS scale VMs unable to see/connect to the host and vice versaEnglish4·2 years agoI ran into the same thing. I’ve always just worked around it, but I believe I did find the solution at one point (can’t find the link now).
But if I am remembering right, I believe you need to manually create a bridge between the two networks - by default it isolates the VMs from TrueNAS itself for security reasons.
Sorry I can’t link the exact fix right now, but hopefully this will help you Google the post I found on the subject.
I ran into this exact situation at work - though for me it was more the case that getting approvals for new software / installing new dependencies in our system is a massive pain.
So I went with Python since it’s already installed on basically any Linux system. It was fine - I mean Python is a good language and can certainly handle string processing and data manipulation with relative ease.
I still think the Python docs are pretty bad, and I wasn’t thrilled with the options for calling a subprocess in Python - they all felt kinda clunky, though I was barred from using the newest versions since I had to run an older version of Python.
But I ultimately got something that worked and it was certainly better executed / shorter than the bash equivalent it was replacing.
CMahaff@lemmy.worldto Programming@programming.dev•Linux file system developer: we're severely under-resourcedEnglish472·2 years agoYou offered a lot of suggestions, and I’m sure people will disagree over the specifics, but I think your overall point is excellent and not talked about enough. I wonder if anyone has ever even attempted a survey on the ages of maintainers/contributors? I bet it’s skewing older fast.
Nothing wrong with that of course, especially given the project’s age, complexity, and being written in C - but you’re right, at some point you have to attract new talent - people can’t maintain forever.
I’m a 29 year old developer - I didn’t even know you could do git patches via email until recently. And while it’s super cool, it also sounds kinda terrible, especially at the volume they must be receiving? Their own docs are saying the mailing lists receive some 500 emails per day and I can’t imagine the merge process is fun.
So many doc pages are dedicated to how to submit a patch - which is great that it’s documented, and I’m sure it will always be somewhat complicated for a large project - but it also feels like things that are all automatically handled by newer tools / bots which can automatically enforce style checks, etc.
I guess they could argue that the complicated process acts as a filter to people submitting PRs who don’t know what they are doing, but I’d argue it also shuts out talented engineers who don’t have 40 hours to learn how to submit a patch to a project on top of also learning the kernel and also fixing the bug in question.
From what little I read of their git process, does anyone know if there’s anything preventing the maintainer of a subsystem from setting up a more modern method for receiving patches? As long as the upstream artifact to the kernel has the expected format?
CMahaff@lemmy.worldto Programming@programming.dev•What are your programming hot takes?English12·2 years agoOh man, I actually like the language, but you made me think of my own hot take:
Python has inexcusably poor docs.
Just a smattering of examples, which aren’t even that good, while failing to report key information like all the parameters a function can take, or all the exceptions it can throw. Any other popular language I can think of has this locked down and it makes things so much easier.
CMahaff@lemmy.worldto Fediverse@lemmy.world•Dethroning lemmy.ml, lemm.ee rises as the second most active instanceEnglish14·2 years agoI made one such tool!
https://github.com/CMahaff/lasim
I know there’s also a python script out there and a new Android app that has active syncing. I don’t have links handy to those on mobile.
Excellent work by the way, much better solution than my own :)
Didn’t get a chance to look at how your app works under the hood, but for LASIM I look up the community by name to get the ID and then call thr subscribe API. The former did seem to trigger the Lemmy instance to “learn” about the community, but it takes awhile, and there is no way to know when it has learned it other than to retry looking it up a few times.
Yeah, every time there is a post on the topic, moderators say that the tools they have are insufficient.
It’d be great to have some community focus on that going forward, whether through direct Lemmy changes or creating better bot mod tools. I’m not in a position to contribute right now but maybe in a few months.
There is a subset of Lemmy that absolutely hates any idea of automod tools because it reminds them too much of issues they had with Reddit. But as Lemmy grows (and given it’s volunteer nature) it feels inescapable at some point.