- 13 Posts
- 177 Comments
jh29ato
Programming@programming.dev•What's the weirdest bug in a program you found in a project you didn't write?
1·3 days agook the last one was because i misspelled an identifier and because when you call a function in a table, my stupid lua attributes the problem to the call site and not where the function is defined
jh29ato
Programming@programming.dev•What's the weirdest bug in a program you found in a project you didn't write?
1·3 days agoDefinitely (being young and recency bias) all the weird stuff happening in the lua engine in the old ComputerCraft versions (1.45ish and 1.75) I’m playing.
I’m not really testing rigorously enough, but it seems to have been in 1.45, which i stopped playing because of other reasons (turtle api too primitive), making a function a() return a function b() that captures one of a’s local variables, made it crash.
now on 1.75 it doesn’t do that anymore, but now I pass some functions through the output of a coroutine, and they just sometimes turn into nil when I call them the second time. it literally throws “attempt to call nil on line 245” when line 245 is like:
242 if func == nil then 243 -- something else 244 else 245 resA, resB = func() 246 endI even printed func before calling it, and it told me it was a function, except earlier, where it told me it was nil. Now I’m going to stop using coroutines and hope the architecture of my program changes enough so the bug goes away.
I’m playing the Direwolf20 season 7 minecraft modpack btw
A surprising number of people on lemmy seem to have this belief, which i think is unpragmatic: They think that to live ones life correctly, or to form a coherent society, one, or the society, must have a Set of Ethical and Moral Principles that crucially, has to be easily enumerable, and preferably named (Like, “The Ten Commandments”). These people also think that they do not have such a named Set, and that this is a really bad problem for them. I think having values is good. However, I think that worrying about how they might be inconsistent seems to be a kind of wild-card disscussion-ender (“Well to solve that problem, we’d first need to sort out Philosophy”), and that therefore, using this worry in any discussion but an abstract one is bad.
(For the society part, holding way too high standards for the Set also creates weird Cultural Homogeneity problems, which irks me.)
If you believe something adjacent, which Sets of values count for you? The Ten Commandments? The Universal Declaration of Human Rights? Or whatever Kant said?
Before watching the video, i laughed at the following:

jh29ato
Asklemmy@lemmy.ml•English as a second language learners: what words were really hard for you to pronounce?
3·26 days agoknowing how to spell definitely, and pronouncing drawer.
jh29ato
Asklemmy@lemmy.ml•Favorite Firefox addon that isn't just ublock, darkreader, etc? I throw out Singlefile but you probably have that
3·2 months agoSurprised no one has Simple Tab Groups. Maybe the Tree Style Tabs ecosystem is more popular, I haven’t tried it. It’s just a 2-level hierarchy instead of a tree, but it serves me well. I have one tab group for each class I have at university, plus some other ones for interests like lean 4 or minecraft, and two for other compulsory online services like banking and travel planning. The Add-On combines saving the hassle of reopening tabs with reducing the work looking through the open ones.
It’s fine, you just need to prove there is an infinite number of other inhabitants who would want to swap rooms.
jh29ato
Ask Lemmy@lemmy.world•One day, you wake up finding out that a person you cared about seemingly vanished, and there are no traces of them; Would you trust your memories, or would you think you are hallucinating?
1·3 months agoDepends. Friend or Pseudofriend or Pseudoenemy from School: I wouldn’t notice, except that some subtle records like contacts and photos of them would be gone, but I rarely actually look at those. Person from University: I would think to ask in about 7 months, then be confused no one knows him. Oscar Wilde: I would try rereading The Importance of Being Ernest at some point, the cover not being a very notable feature of my bookshelf, so I wouldn’t notice earlier. The guy from TheClick: I watch his content about once every 2 months. Dean Herbert: Let’s hope the writers retcon in some other guy who makes a circle clicking video game.
Let me elucidate this point
Please subscribe to my RSS feed!
jh29ato
Programming@programming.dev•I am sorry, but everyone is getting syntax highlighting wrong
1·3 months agoI care about knowing what which color means ostensibly (not sure how much it actually benefits me,) but I also actually do, for the vscode default theme.
jh29atoIf it interests me, it should interest you. @feddit.org•No, AI Will Not Doom Us All. We have REAL AI Problems to deal with instead.
1·3 months agoI like this video, and I like this community.
jh29ato
No Stupid Questions@lemmy.world•What strategy would you use to estimate the number of hazelnuts
4·4 months agoI counted 11 down and 7 across, so I assumed the radius is 3.5 hazelnuts and the height eleven, making pi r² h = 423 hazelnuts. that is, if they haven’t snuck in any walnuts.
I have a little bit of a cringe-problem, so If the lyrics of a song portray some feelings I can’t imagine sharing or being worthwhile having, I can’t really listen to it.
Lyrics are also banned for background distraction music, the kind of music I listen to to block Background Noise that would be annoying me when I do homework. Listening to music like trance (my lofi beats to relax/study to replacement) moves the problem from being annoyed by noises I don’t want to hear, to slight problems having complicated thoughts I would want to vocalise out loud or in my head. So sometimes I just turn on Brown Noise (Bass-boosted White Noise), or Pink Noise where I forgot what it is, but that feels weird in the ears after 1 to 2 hours. I don’t always need to play sounds I pick, but sometimes, I really don’t want to hear other people’s noises.
the last three political cartoons i’ve read have all been at least this unfunny. satire is really turning out to be unable to make things even more ridiculous than they already are
What did they not teach us? I do not know this.
jh29ato
Progressive Politics@lemmy.world•A friendly reminder, the USA took 4 Presidents, thousands of lives, trillions of dollar and 20 years to replace Taliban with Taliban.
6·7 months agoit’s the journey that counts?
I’ve heard that the pikachu cry in pokemon yellow has a bit depth of 1.
https://en.m.wikipedia.org/wiki/Sexuality_of_Adolf_Hitler it might be this article.
















the word “app” in Microsoft 365 Copilot app isn’t capitalized. I’m not sure if it is actually technically correct, but i think mentioning that it’s an app is awkward anyway. (it only faintly gets across that it’s like, a program with slightly better access to files,
the OSwindows, and the computers resources than a web thing, but i thought everything is enthusiastically in the cloud?) also, according to me, not capitalizing the product name fails to (superficially) communicate being professional (“Microsoft Access 365 Professional™®”) by capitalizing it