/ function silently drops the decimal in its result if both of its inputs are integers... so (/ 1 2) evaluates to 0, not 0.5. Granted, this is also the way that C does it, but in my defense, #CommonLisp does not do this.like this
/ function silently drops the decimal in its result if both of its inputs are integers... so (/ 1 2) evaluates to 0, not 0.5. Granted, this is also the way that C does it, but in my defense, #CommonLisp does not do this.like this
Spent several hours today trying to figure out why my #elisp code was misbehaving. Turns out, I made a mistake while trying to be clever. Instead of doing:
(when (and cond1 cond2)
stuff
...)(and cond1 cond2
stuff
...)stuff returned a non-nil value.I should stop trying to be clever.
Edit: when, not while
like this
Dave Marquardt reshared this.
I was wondering why not use "if" rather than "when" here. Well, if is a bit different in that it only allows a single expression as the THEN part. But I wasn't so wrong. "when" is defined as a macro essentially like this:
(list 'if cond (cons 'progn body))
when when I don't have an else clause. That way I don't have to bother with a progn. I just wish that I had thought to extend that logic to and.
(defun jrl-collect-data (table input output)
"Collect table data into lists of outputs per input"
(let (res record in-val out-val collection)
(while table
(setq record (car table)
in-val (assoc input record)
out-val (assoc output record))
(when (and in-val out-val)
(pop in-val)
(pop out-val)
(setq collection (assoc in-val res))
(if collection
(push out-val (cdr collection))
(push (list in-val out-val) res)))
(pop table))
res))assoc in the when block always returns nil on the first iteration of the loop, and if it can't progress past that point, it'll always return nil on subsequent loops and nothing will ever happen. As a result, any list I might feed into this function is always going to result in a nil output.
Had a bit of a stuffy nose this morning, but couldn't figure out where the salt/baking soda mixture I'd prepared for the neti pot had gotten to. I decided to use the (boiled and cooled) water without it, because... how bad could it really be?
Do. Not. Recommend.
My eyes just stopped watering.
Jonathan Lamothe likes this.
reshared this
hm,,, actually that seems correct
- is not based in a country, or at the very least, no UN-recognised nyation
alphabet inc has $595 billion of assets, making it 31th country by gdp (en.wikipedia.org/wiki/List_of_countries_by_GDP_(nominal)), however it's not un recognized
- has a no-log policy only in the summer, as I have a fireplace in my house so I gotta be burning those logs when it gets cold
gmail doesn't have a no-log policy, even in the summer
- supports end-to-end encrypted lucid dreaming
that's self-hosted gemini for government, i believe?
- is completely vegan and ideally fairtrade, but rainforest alliance is also fine
rainforest alliance has a link to youtube on their homepage, so i would assume they approve of google
- supports using other people's domains, I like those more than mine
as part of paid google workspace service, yes
- allows for text formatting in green, and also, ideally, red. I love my friends Green and Red.
yes, using formatting toolbar
- has diplomatic treaties with other mail providers
almost certainly yes
going back in time and telling baby!Alice that one day, she'll be able to go online and order a computer 8 times faster than her packard bell, with dual cores, and it'll arrive within 24 hours.
and she'll also be able to do the same for a sandwich, and the sandwich will cost more
Jonathan Lamothe likes this.
Jonathan Lamothe reshared this.
Jonathan Lamothe likes this.
reshared this
Actual footage of a vibe coder carefully checking the bot’s output
like this
reshared this
Been trying to stress this point for years...
Jonathan Lamothe likes this.
reshared this
For example: 10 years ago it wasn't "wrong" to seek an abortion in the state of Texas, but now you basically have a price on your head.
(My home state of #Arkansas is almost as bad, so the example is ever-present on my mind.)
Also (and the L.A. Taco definitely understands this), ICE is intentionally grabbing people that are _legal residents_, in a desperate bit to meet unreasonable and inhumane quotas, and certainly using the surveillance state to do so.
David Zaslavsky reshared this.
Not that I actually have a job that contributes but 15 years ago when I went to grad school for air quality science, everyone close to me grumbled how that’s too fringe with no job prospects. Yeah, I never did get a job but I don’t regret studying that for one bit, specially when current administration is trying to gaslight people about environmental issues.
It hurts my heart to see every summer, I get proven right
Jonathan Lamothe likes this.
reshared this
So, I think I might be a nerd.
@SDF.ORG is running a BBS called bitzone. On this BBS they have a door game called LORD (League of the Rare Dragoon (not to be confused with Legend of the Red Dragon, of which it is clearly a knock-off)).
The fact that I'm playing this game in the first place is kind of nerdy, but wait, there's more.
In said game you have a character with various stats. One of these stats is "charm", which seems to get you discounts in the shops. Unfortunately, there's nothing to say exactly how this relationship works. So I've decided to try to reverse-engineer it with #emacs #org-mode.
I've created a table to track my purchases. It tracks my charm at the time of purchase, the list price for the item, and the price I actually paid. There's also an additional colum that calculates the actual discount, but that's trivial.
Anyhoot, I'm adding some code to this file that reads the values in the table and computes the simplest polynomial function that satisfies the equation:
$$price_{actual}=f(charm,price_{list})$$
This is done with the aim of predicting how much I'd actually spend on an item before actually buying it. It of course assumes that the equation being used is a polynomial equation, but I'm hoping it'll at least be able to approximate with a large enough set of data points.
Am I doing this because it's reasonable?
No.
I'm doing it because it's an interesting challenge... and I'm a nerd.
CC: @tob
like this
So it occurs to me that the approach I was considering is probably not going to work for a couple reasons:
I'll continue collecting data to see if any patterns start to emerge, though.
It's also a good option to use C-c ' , that will open up a buffer with the source block contents. This is neat because the major mode and all related setup for that mode is loaded as well, no matter which language you're editing.
So no need to yank from the scratch buffer.
Jonathan Lamothe likes this.
I was a 911 dispatcher for a decade.
To really understand how absolutely terrible an idea it is to have AI answer 911 calls, I'll present you with a single real-life call:
Upon answer, the caller calmly began ordering a pizza. Large, pepperoni. Side order of chicken wings. To be delivered promptly.
The only sign the caller gave that things were amiss? She rather ignored the first few questions from the calltaker.
Because she was being physically abused, had already been beaten, and her abuser was *IN THE ROOM* listening to her order pizza.
Tell me how your AI is going to read between those lines.
Jonathan Lamothe likes this.
reshared this
Jonathan Lamothe likes this.
reshared this
Would you like to review the instructions for operating a pod, Dave?
Or would you like a list of additional doors that I can help you open?
Urban Hermit reshared this.
If I had a dollar for every time I tried to erase something in #krita that turned out to me a smudge on my screen... I would have a few bucks.
Also, I should probably clean my screen.
like this
Pluralistic: Trump's America can't even win a rigged game (22 Jul 2026)Cory Doctorow (Pluralistic: Daily links from Cory Doctorow)
Jonathan Lamothe likes this.
reshared this
Gave myself a bit of a scare. My aNONradio stream cut out on me and when I went to investigate, I found the router dead. No lights. Nothing. Disconnectd the power cable from the back and re-attached.
Still nothing.
When I followed the power cord, I found that the wall wart seemed to have come mostly unplugged from the power bar. I have no idea what caused it to spontaneously disconnect, but I'm back now.
Isaac Kuo likes this.
This question doesn't lend itself well to plain text, so I LaTeX'd and screenshotted it. I'll do my best with the alt text.![Is there a way of writing the expression<br>\[ \sum_{n=1}^m f(n) \]<br>in a way that omits the term where $n=a$?</p><p>I know it could be written as<br>\[ \left( \sum_{n=1}^m f(n) \right) - f(a) \]<br>but this doesn't work when $f(a)$ is undefined. Is there a way of writing the expression<br>\[ \sum_{n=1}^m f(n) \]<br>in a way that omits the term where $n=a$?</p><p>I know it could be written as<br>\[ \left( \sum_{n=1}^m f(n) \right) - f(a) \]<br>but this doesn't work when $f(a)$ is undefined.](https://social.jlamothe.net/photo/13528377976a61653463c9a386467268-1.png)
#math #maths #mathstodon #AskFedi
Edit: It turns out that Friendica has a MathJax addon. Who knew?
Also, it seems like there are a number of options. The one I like best is:
$$\sum_{\begin{matrix}1 \le n \le m\\n \ne a\end{matrix}} f(n)$$
Edit 2: It looks like this doesn't render properly when federated to a server without MathJax support. I suppose I should've seen that coming.
Mathematics Channel reshared this.
Jonathan Lamothe likes this.
reshared this
Here's a big part of the reason* I don't use so-called #AI to write code for me: I actually enjoy writing code. I wouldn't offload this task to AI for the same reason I wouldn't use it to go for a walk in the woods, or eat a delicious meal for me. Why would any sane** person do this?
* It's not the only reason, but this is a fedi post, not an essay.
** This post should in no way be considered as me claiming to be sane. 🙃
𝚛𝚊𝚝 reshared this.
Had the weirdest dream last hight. I dreamed I'd gone back to the Mormon church. It was very strange. I was happy to see many of the people I considered friends, but the whole thing felt dishonest because I was still an unbeliever. For all of its culty aspects, it does impose a lot of structure, and structure is a thing my brain very much likes.
For many reasons, this is not a thing I'd actually consider in reality.
I had a similar dream four years ago.
Went back to my old church, was glad to see a few people I really loved again.
Stayed for a couple months, but it had really devolved into a cult.
Noped out of there when the pastor invited people to come up to the front to receive healing and repent for taking the COVID vaccine.
Jonathan Lamothe likes this.
I've suspected for a while that I'm probably on the spectrum. It seems to fluctuate, but for the past few days I've been experiencing something that sounds very much like what I understand autistic burnout to be like.
Tasks which should be simple (e.g.: feeding myself) become insurmountable obstacles. I'm exhausted all the time, and when it's at its most acute, communicating what I'm experiencing becomes impossible. I literally lose the ability to form coherent sentences.
Is that what this is? Do others experience this? And more importantly, has anyone found any kind of strategies to help manage/minimize it?
The best way I've found to deal with it is to simply disengage from everything until I manage to build up a spoon reserve again. Unfortunately, this does not exactly seem compatible with the responsibilities of adulthood.
Edit: I realize that I may have given an incorrect impression in this post. I have experienced this before. It's just been particularly bad the past few days. It seems to ebb and flow.
In fact, I've had a term to describe this since high school. At the time, I had dubbed it a "neural meltdown".
reshared this
Could be autistic burnout, could be extreme fatigue for other reasons, could be a major depressive episode, could be dehydration as others have said. Could be a combination. (I speak from experience of all four)
Look after yourself. Hydrate and rest and try not to be angry or frustrated at yourself for going through this. It's not disrupting your life; it's an episode _in_ your life. It will pass.
@Drew is still tired 🇵🇭 I guess the best thing I can do is focus on the knowledge that it always passes (at least mostly). Hopefully the things currently on fire won't get too out of control while I do so.
I am fortunate to have a partner I can lean on when I need help, but I don't want to lean too hard. She has her own struggles to deal with.
Autistic burnout is the deep exhaustion that follows years of masking and overload. Here is what it feels like, the stages, and how recovery actually begins.HeyASD.com Team (HeyASD)
Jonathan Lamothe likes this.
Kevin Davy reshared this.
Jonathan Lamothe likes this.
Jonathan Lamothe likes this.
be kind to yourself. Accept that there are limits to what you can do, and start saying no to things that would push you past those limits.
Also make sure your closest understands what you can and cannot do, so their expectations doesn’t wear you down.
But mostly, be kind to yourself.
hi! i really need help, could you spare some?
i'm an unemployed and disabled student who has struggled A LOT for the past three years. i currently live in a neglectful household that often lets me go without or shames me for basic needs.
recently things have deteriorated to the point i pretty much cannot count with help from anyone at home for stuff like my psych meds and food for my cats.
i’m currently looking for a job but didn’t get anything yet, so i really need help to buy food, cat food, medicine, toiletries and for some medical expenses.
if you're able to help me with a donation or simply a boost to this post, i am eternally grateful, it really means the world to me and makes all the difference in my life. thank you very, very much for reading and have a lovely day. 
reshared this
reshared this
Not just YouTube either. Those ads are on billboards, podcasts, FM radio.
Doug Ford really loves spending money on ads about how great his government is (if you agree this is great, which I like you do not) instead of actually fixing problems.
The variant that enrages me the most is how "safer" means less encampments. Spending all that money telling us to be afraid of homeless people instead of spending it to house them.
Jonathan Lamothe likes this.
The funny* thing is that for the rest of us, it's a pretty comprehensive list of reasons not to vote for him.
* not funny
I think the biggest thing that the I've learned working for an org-metrics-visibility tooling company, and the AI "revolution" starting soon after that, is how many people at the seniormost levels of the world's largest software companies fundamentally do not understand what software is or does or how it works or where it comes from or even how their companies really operate.
linkedin.com/pulse/ai-layoffs-…
Everyone assumed AI would be cheaper than employees. The numbers just proved otherwise, and it's changing how smart leaders think about their people.Karin Volo (www.linkedin.com)
reshared this
Got an air quality alert due to wildfire smoke.
My dude, I know. The sky is yellow.
Judy Anderson reshared this.
I woke up this morning and thought to myself, "what's burning?"
It's only everything. No biggie.
like this
Ryan Robinson reshared this.
I just saw a video of an AI executive saying that people will connect their brains to the cloud so they can have 1,000 times more thoughts.
Neurotypical people. Please listen to me. I promise you, with all the ADHD in my body-
You really do not want 1,000 more thoughts.
You may think you do, but you extremely do not.
like this
reshared this
Dear @Nextcloud 📱☁️💻,
If the official solution to a file getting randomly locked is to shut the whole server down and then manually edit the database, something's been done wrong. If this were to happen to a random non-admin user, they'd have no solution (other than pinging their sysadmin). The owner of a file should be able to manually clear its lock if necessary.
I've been thinking about #bicycling in the oppressive heat we've had lately. I wondered if there was a way to rig up some kind of fan that would be powered by the pedals to create a nice airflow as I rode.
...
Then I realized what a ridiculous idea this was.
Some of the world's brightest minds have the knowledge and skills to heal our #planet yet many spend their talents creating technologies for conflicts instead of solutions for humanity.
Imagine if that same innovation was used to restore nature, fight hunger, and build peace.🤔
The world needs wisdom that serves life, not destruction.
Jonathan Lamothe likes this.
reshared this
Check out Red Racoon. They do that regularly. 😀🚴♀️❤️
Jonathan Lamothe likes this.
reshared this
@🅰🅻🅸🅲🅴 (🌈🦄) I came across my first love lock a few days ago. I'd seen it a few times, but wasn't carrying my tools. I finally remembered to bring them with me today only to find that the keyway seemed to be filled with some sort of glue?
Have you encountered this before? Is there any hope of non-destructive opening left? I imagine probably not (especially at my current skill level).
I'm clearly not the first person who's tried to open it. It's in pretty rough shape.
@Organic Maps I've added some local businesses to the app on one of my devices, and that information can now be found on OSM proper, but those changes don't appear to have propagated to my other devices. Is there a way I can force a map update?
Edit: I have tried deleting and re-downloading the map.
Jonathan Lamothe likes this.
Christian Lynbech
in reply to Jonathan Lamothe • • •Ah yes, the joy of integer division.
Adding a float into the mix is an improvement, but still no match for the numeric tower of CL. I would expect that there is prior art, but few languages that has come after, has the full sophistication of CL math. And this is one of the advantages of dynamic typing.
pkal
in reply to Jonathan Lamothe • • •