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.

#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.

I've been using #Emacs's #Gnus for news/mail/RSS, but for whatever reason it's having trouble subscribing to ATOM feeds (RSS is fine). I seem to be missing the nnatom backend. Is there something special I need to do to add it?
#AskFedi

reshared this

elisp help

Okay, I need to do a hacky #elisp thing. Yes, I know it's terrible.

Basically, I have an existing defun. Let's call it foo. I need to replace it with a new function that calls the old one and transforms its output before returning it.

I naïvely assumed I could do it like this:

(let ((oldfunc (function foo)))
  (defun foo ()
    (my-transform (funcall oldfunc))))

...but this doesn't actually copy the old function, just a reference to the symbol, so it ends up locking itself in a recursive loop.

I'm sure there's a way to do this.
#AskFedi

Edit: Got it. It's:

(let ((oldfunc (symbol-function 'foo)))
  (defun foo ()
    (my-transform (funcall oldfunc))))

Edit 2: It turns out there's a cleaner way still.
See: aus.social/@carlozancanaro/116…

Also, there's still something Gmail isn't liking. Looking at the differences in the headers between emacs and my other clients (whose mail does get through), the next most obvious difference is that the Content-Type header doesn't specify an encoding. Whether this is the actual problem or not, I should probably fix that. I'm just working on how.


The usual way to do this would be to "advise" the function with an "around" advice. gnu.org/software/emacs/manual/…

reshared this

Hey all,

I have a friend who's been trying to get on Mastodon but tells me that it doesn't seem to play well with screen readers. I know there are plenty of people on the fedi who do use screen readers, but I have no experience with them myself, so I can't really direct him.

Can someone who does use a #ScreenReader point me in the direction of some resources that might be useful?
#AskFedi #a11y

in reply to Fanny Bui

@Brailly615 In another comment it has been said that its about Linux, there I unfortunately can't help. I use Webclients, unfortunately they don't get any Updates anymore or I'd have recommended something. I only use them because I haven't found something better yet that I don't need to install. @Clio09 @C3nC3 @me @MonaApp @pachli

It has come to my attention that my favourite jacket is falling apart. I would like to repair it for two reasons:

  1. I love this jacket.
  2. I can't afford a new one right now.


I have no opposition to #VisibleMending.

Suggestions?


#AskFedi #ClothingRepair

This website uses cookies. If you continue browsing this website, you agree to the usage of cookies.