reshared this
reshared this
Dave Marquardt, Darth Hideout 🏳️🌈, BeefGriller is antifa, Faraiwe and Chris 🏴 reshared this.
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))))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))))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/…
Okay, so I wrote this hacky nonsense in my ~/.emacs.d/init.el, but it doesn't seem to be having any effect. The function in question seems completely unaffected.
Perhaps this code is being evaluated before the original function is defined?
;; Mail hack
(defvar jrl-mail-hack nil
"Flag to prevent from overloading the function a second time")
(let ((oldfunc (symbol-function 'message-unique-id)))
(unless jrl-mail-hack
(defun message-unique-id ()
(secure-hash 'sha256 (funcall oldfunc)))
(setq jrl-mail-hack t)))
@Daniel It turns out that the better solution was here:
The usual way to do this would be to "advise" the function with an "around" advice. gnu.org/software/emacs/manual/…
Sensitive content
Jonathan Lamothe likes this.
Sensitive content
Here's a cleaner version that should work. However, I'd be surprised if it's actually the message IDs that are the problem.
```
(defun jrl-message-unique-id (orig &rest args)
"Hash the output of ORIG.
ARGS are passed on to ORIG"
(secure-hash 'sha256 (apply orig args)))
(advice-add ''message-unique-id :around #'jrl-message-unique-id)
```
Jonathan Lamothe likes this.
No, you can't do that, especially not in elisp.
However there's defadvice sitting just around the corner waiting to help you solve your problem.
See also:
lispworks.com/documentation/lw…
emacsninja.com/posts/a-piece-o…
stackoverflow.com/questions/15…
I have rewritten and stand-alone tested the behaviour of an inner function invoked by one of the Emacs functions bundled with Emacs 24. What is the preferred way of incorporating - e.g. in my init....Stack Overflow
Of course there's a question about your underlying logic lurking here: Why don't you just define a new function that calls the old function and transforms its output and then just call the new function.
Transforming the output of an existing function risks breaking all other callers of that function.
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
like this
lain likes this.
reshared this
deananorth, Kevin Davy, fedops 💙💛, Amin, minor deity of the legume realm, Sam D, Childless Bambino, Jules she/her, Luminex, Yvan, Emsquared, MCDuncanLab, Aubrieta, woe2you, kabel42, BashStKid, The Crafty Miss, Quixoticgeek, Lyle Solla-Yates, Tony Hoyle, Alex Haist, David Cantrell 🏏, Hesperalis, Malwen, Cassana 🍻, trending_bot, Play Ball and Fight Fascists, nebulos, Psil, M. E. Garber, Aslak Raanes, Cozy Trends, yelling jackal, littlemiao, 🏳️🌈🎃🇧🇷Luana🇧🇷🎃🏳️🌈, hype, Starryeyesswitched, IndyHermit, Fieryzard ⭐️, royal, hype, hypebot, Carsten, Trends der PnP-Nachbarschaft, Jay Grant 🏳️⚧️, HypeBot 🔥, epicdemiologist, Ashe Dryden 🙆🏼♀️🐈🐈⬛, DecaturNature, Stomata, Eve Ventually, Bruno Girin, Hypebot 🤖, SlightlyCyberpunk, Jayne 🇪🇺🏳️🌈, DieMadColonizer, Jonizulo, UnCoveredMyths, cms, clear, Daniel Johnson, some kinda cat, hypebot, ts 🚇, A Flock of Beagles, *|FNAME|*, MostlyBlindGamer, not ch1c, avatastic, Robot-Queb, hypebot, Momgoth, Sindarina, Edge Case Detective, Peter Goulborn, Daniël Franke and 316 other people reshared this.
@The Witchy Bitches @👩🦯The Blind Fraggle @Matt Campbell @ADHDeanASL @Panamanian❤️🔥 @Superdave! @Lanie I believe he's recently switched to a Linux distribution* (which I understand doesn't play well with screen readers to begin with). I can ask him for more details. Unfortunately he's in the UK, so I can't assist in person.
* I don't know which.
Furbland's Very Cool Account™ reshared this.
A fediverse client with better support for Akkoma, glitch-soc, and Iceshrimp instances.enafore.social
An unofficial guide to using Mastodon and the Fediversefedi.tips
Ping @JonathanMosen
Jonathan: @me
is asking about Mastodon clients and screen readers in the toot above.
This special episode is devoted to Mona, a Mastodon app for iOS, iPadOS and MacOS. It has exceptional VoiceOver accessibility, and during its development, the developer has consulted extensively with the blind community.Living Blindfully
A fediverse client with better support for Akkoma, glitch-soc, and Iceshrimp instances.enafore.social
A fabulously gay blind author.sightlessscribbles.com
Jonathan Lamothe likes this.
I've tried using some of the fedi web apps with a screen reader and yeah they tend to be horrible
There may be some native apps that do better in that regard
An unofficial guide to using Mastodon and the Fediversefedi.tips
It has come to my attention that my favourite jacket is falling apart. I would like to repair it for two reasons:
I have no opposition to #VisibleMending.
Suggestions?
reshared this
PurpleJillybeans, Paul SomeoneElse, Justin To #НетВойне, Oblomov, rag. Gustavino Bevilacqua, I am Jack's Found 404, Will, Marc "ACAB" Godin, Brendan Minish, sport of sacred spherical cows, refraction, Mx Amber Alex (she/it) 😷, Jules she/her, Sarah, Alfred Chow - Maker of Things, JWcph, Radicalized By Decency, Amber Grey, World Basement Classic, Brian Smith, CheekyMcB, jay 🌺 and Lazarou Monkey Terror 🚀💙🌈 reshared this.
So, I spent hours trying to fix it the way that I had planned and was met with frustration. Katy eventually had the idea to remove the cuffs, shorten the sleeves by about an inch, and reattach the cuffs. They were a little on the long side anyway.
Is it the neatest repair job ever? No. Are both sleeves exactly the same length? Also no.
Buy you know what? We spent hours working on this. It's good enough.
Spiked rivets?
Or... beaded tassels?
Then afterwards please explain to me how to do it?
Jonathan Lamothe likes this.
Brian Smith reshared this.
Jonathan Lamothe likes this.
@Jonathan Lamothe I wonder how the jacket would look with two bands of contrasting colour bias tape sewn (by hand, if I had to do it) around the cuff seam.
but I'm not sure it would last long, if the rip is because it's a high friction area, maybe you'd need something stronger than bias tape
@PalmAndNeedle @sinituulia @heartofcoyote a narrow patch wouldn't be awkward I think. It would be a bit bulky, that's all.
Your idea works too, but it requires more skill and time.

Jonathan Lamothe likes this.
Hey Fedi, I could use some help with this one. I'm in over my head.
We have an #Insignia portable #WashingMachine (model: NS-TWM16WH9). The agitator has suddenly stopped, well, agitating. It makes a buzzing sound as though the motor is being engaged, but no motion. A quick internet search identified a slipped belt as a plausible culprit, but I found what appears to be the belt at the botton of the machine, and it seems perfectly fine, though I don't know if it's perhaps the one that spins the drum (which is working fine).
It doesn't throw an error code, or give any other indication that the computer is even aware there is a problem.
Any ideas what else the issue could be? At the moment, I have it sitting unplugged as I don't know if there's a big ass capacitor in there, storing a charge waiting to strike me down when I go prodding, and to be honest, I'm decidedly in over my head on this one. At least it soesn't seem to require security bits though.
I'm sure it's out of warranty and we can't afford to replace. Any suggestions would be welcome. Boosts appreciated.
like this
AdiposeOverclocked likes this.
reshared this
Vee and Kevin Davy reshared this.
I never saw a washing with 2 belts (but I'm not saying the don't exist) so if the best is fine I'd look for exhausted brushes on the motor, which are two pieces of graphite that wears down and eventually have to be replaced. #repaircafe
m.youtube.com/watch?v=MNInJd7j…
Auf YouTube findest du die angesagtesten Videos und Tracks. Außerdem kannst du eigene Inhalte hochladen und mit Freunden oder gleich der ganzen Welt teilen.m.youtube.com
like this
AdiposeOverclocked likes this.
reshared this
Justin To #НетВойне, David W. Jones, Kevin Davy, Murdoc Addams 🧛🏻 🇨🇦, L. A. (they/them), KayJanes and Furbland's Very Cool Account™ reshared this.
@adelinej
That doesn't surprise me that it's mentioned here regularly; "ASCII Table Cross-Stitch Pattern" just seems so... Mastodon to me. 😆
(Really want to try some of those odd lip balms though.)
This website uses cookies. If you continue browsing this website, you agree to the usage of cookies.
Dave Marquardt
in reply to Jonathan Lamothe • • •Jonathan Lamothe
in reply to Dave Marquardt • •superketchup
in reply to Jonathan Lamothe • • •Jonathan Lamothe
in reply to superketchup • •superketchup
in reply to Jonathan Lamothe • • •gnus/nnatom 5c0cf970799: Add nnatom.el
mail.gnu.orgDave Marquardt
in reply to superketchup • • •@superketchup Right, I started using nnatom in the past few weeks and noticed its part of Gnus now. I've also running Gnus v5.13. Maybe there was no version bump when they brought nnatom in?
I had problems getting nnatom to work. IIRC it does not want http:// or https:// when specifying the server, unlike nnrss.
Tonus
in reply to Jonathan Lamothe • • •