Ian Molton reshared this.
Ian Molton reshared this.
Ok, that doesn't address system calls, and there are corner cases (functions calling GCC internals with odd abis), but it ran, and didn't crash.
The only annoyance is that without an additional analysis pass, it's not possible to know the set of registers "not used in any interrupt handler", leading to a possiblity of "double saving" registers that are used in the interrupt handler, but not used in schedule(), but only in the case that schedule causes a thread switch, so the impact is hopefully low.
GCC favours allocating registers starting with the highest (r0 and r1 are specially treated), and schedule is a modestly complex function, so the odds of an interrupt handler being sufficiently complicated that this occurs are low, and I can, to a degree, tweak this, by varying the set of registers I save in __switch_thread, forcing them to be saved before calling schedule rather than if there is a thread switch.
I guess I should add an option to pop duplicates, which sacrifices speed for stack efficiency, but that's icing.
The next challenge is going to be rebuilding the thread handling code back into the project. It's been quite a long time since I last fiddled with it, and it's going to need a fair bit of rework.
Hopefully I'll have a demo of multiple threads running by the end of tomorrow.
After that, locking primitives, thread management, events, and system calls...
One interesting note here is that a consequence of all this is that the fewer registers one uses in interrupt handlers, the faster system calls can be handled (unless the syscall both schedules and cause a #thread switch).
#microcontroller
Zerody likes this.
Ian Molton reshared this.
This is much more serious than "can I get a pirated copy of something". The real effects of stuff like this is control, censorship, and gatekeeping of the internet in general.
Pirate Site Blocking is Making its Way Into Free Trade Agreements
The new free trade agreement between Australia and the UK includes a site blocking paragraph, which could expand to other deals.Ernesto Van der Sar (TF Publishing)
3 people like this
3 people reshared this
Ian Molton reshared this.
https://maps.app.goo.gl/GQGUm4HnEUMcu9S87 #portlandprotest #pdx #AbortionIsHealthcare
Ian Molton reshared this.
#RegisterToVote
Oregon Secretary of State
The Oregon Secretary of State works to maximize voter participation, is a watchdog for public spending, makes it easier to do business in Oregon, and preserves and promotes Oregon history.sos.oregon.gov
AVR update...
I think it's working, but the interrupt isn't disabled so it's re-entering. Works for simple functions, printf dies.
I'll try disabling the interrupt tomorrow.
#avr #microcontroller #interrupts #kernel
Ian Molton reshared this.
2 people like this
7 people reshared this
The "up to"-part could be described more transparent.
crypto
krĭp′tō
noun
1. One who covertly supports a certain doctrine, group, or party.
2. Cryptography.
3. An element in words of Greek origin, meaning ‘hidden, concealed, not evident or obvious.’
https://www.wordnik.com/words/crypto
I'd say it can mean either 1) or 3) where they honestly imply that it is not transparent. And then you can add arbitrary text ;p
Ian Molton reshared this.
submitted by thunderarea
https://reddit.com/r/ProgrammerHumor/comments/un84pn/golden_advice/
Ian Molton likes this.
2 people reshared this
AVR Stuff
I can now wrote ISRs in C, that call other functions, and will have generated, optimised prologues and epilogues that only save and restore the required registers.
It can't resolve functions outside the current source file, so if it encounters calls to them, it saves all the call used registers, and it doesn't yet follow trampolines, which shouldn't really be used from ISRs anyway, because they're slow, and it doesn't know about the special calling conventions for compiler builtins, like __umul* etc.
But it works!
I can call functions from ISRs, even printf!
I can even have it enable interrupts, and nest them.
next I need to add my os kernel hooks to the ISRs, allowing me to efficiently call schedule() on return...
#avr
LG customer support
But you cant click the part to get the entry from the parts list, which is HUGE, and there is no search.
Worse, the parts list seems to be incomplete.
Worse, they have no phone number.
Now on the phone to their engineers, after badgering them until they gave me the number.
Poor show so far, 2/10.
#LG #repair #righttorepair #customerservice
Disgusting. All I want is to buy a genuine spare from LG.
Friendica Support reshared this.
Feature request - account selection when posting
Hi folks,
I'd like to suggest a feature that allows you to select any of your sub-accounts when making a post, so that I can avoid tediously switching user when I want to post as one of my forum accounts.
I'm thinking, a dropdown listing your accounts (with avatars) in the post composer?
Friendica Support reshared this.
Friendica Support reshared this.
Dead node?
Hi folks,
I'm seeing a lot of these piling up in the queue over the last few days. My feeling is that the node is broken, but I don't know how to investigate further.
I expect I can just block the instance, but will that clear the queue?
Roland Häder likes this.
Friendica Support reshared this.
Friendica Support reshared this.
Roland Häder likes this.
Friendica Support reshared this.
Friendica Support reshared this.
Roland Häder likes this.
Friendica Support reshared this.
Ian Molton reshared this.
But that’s not enough.
Mental health shouldn’t be for sale & websites mustn’t trade sensitive info about us for profit.
https://privacyinternational.org/report/3351/mental-health-websites-dont-have-sell-your-data-most-still-do
#MentalHealthAwarenessWeek
Mental health websites don't have to sell your data. Most still do.
The changes discussed in this article are based on a second analysis performed in late November, 3 months after the original study Your Mental Health is for Sale and following the exact same methodology.Privacy International
Ian Molton likes this.
Ian Molton reshared this.
Ian Molton likes this.
#music
Destination Space
Provided to YouTube by IngroovesDestination Space · Jean-Jacques Perrey · Dana CountrymanDestination Space℗ 2008 Oglio EntertainmentReleased on: 2008-09-23Au...YouTube
2 people like this
I don't remember actually watching it fully, but my brother did and I was faffing around in the background and used to enjoy the theme tune.
Ian Molton likes this.
Ian Molton reshared this.
Will the European Parliament stand up for our rights by prohibiting biometric mass surveillance in the AI Act? - European Digital Rights (EDRi)
On 10 May, EDRi and 50 organisations wrote to the Members of the European Parliament to ask them to ban the remote use of these technologies in publicly accessible spaces to protect all the places where we exercise our rights and come together as com…European Digital Rights (EDRi)
Ian Molton likes this.
Ian Molton reshared this.
Ian Molton reshared this.
Snaps: I don't respect your system settings, themes or anything!
Me: Oh no
Snaps: My file chooser doesn't remember your sidebar folders in Nautilus like everything else, also, get used to navigating from / every single time, because I don't remember anything else either
Me: That's not what I—
Snaps: Also now you have to remember to update your software in yet another place
Me: Please stop
Snaps: Btw I take up way more resources too
Canonical: You're welcome
2 people reshared this
Friendica Support reshared this.
So I realise that there are instances out there that allow stuff I don't want to see (ever).
I'm good at ignoring stuff, so whatever, BUT...
I just saw a post in the global feed that had such an image, but being served *from* my server.
Now I'm assuming it's cached it for some reason, but why is that cache exposed to users who aren't local (ie. Logged in)?
How can I find out how an image ended up on my server?
If it was because of one of my users, they are getting booted.
If not, how can I find out what instance the image is from in general (eg. If I can't find the post but have the image URL)?
I'd like to identify the source and remove any other images from it, it's gross, and probably illegal.
Roland Häder likes this.
Friendica Support reshared this.
Friendica Support reshared this.
Someone on your server interacted with an account on pawoo.net, whether by following this account, or fetching a public post (by entering its URL in the search bar) or subscribing to a hashtag if you have configured your node to accept content from post relays (although it appears unlikely).
pawoo.net then sends this post including a link to an image hosted on pawoo.net to your node. To protect your user's privacy, your node will download the image locally and rewrite the URL in the post to point at its location on your node.
So you are right, your node will be publishing this image from your domain until you take a moderation action against the post itself, the remote account (node-wide account blocking includes an option to delete all the content) or the remote server (node-wide server blocking includes an option to delete all the remote accounts and their content.
This local copy is meant to protect your user's privacy, but unfortunately it can't be limited to users at it stands. Since the same exact process is used to publish your user's own pictures in their public posts, making it logged-in user only would prevent their public posts to show their images to non-logged users. Think about RSS users or simply their public profile page.
Now, as Michael mentioned, there are ways of limiting the risks for you as a website publisher. Moderation is the main point (and the URL of the picture you mentioned now returns "Not Found") but as you said it is a game of whack-a-mole. It is made easier by domain blocking but there will be an amount of time during which questionable content will be published by your node.
Making the community pages (either from your local users or the global network your node knows about) private to your users only is another way of limiting exposure, as only your users will be able to be exposed to this kind of content through images your node is publishing. But then they would be able to share the image URL publicly for anyone else to see.
Currently images know whether they should be served to anyone or just to your users based on the permissions of the posts their are embedded in but I guess we could improve this system to take the site setting to make the community page private into account. This would further reduce the risk for you as even if one of your users shared the URL of such a picture with a non-logged in user they wouldn't be able to access it.
2 people like this
Friendica Support reshared this.
Friendica Support reshared this.
Roland Häder likes this.
Friendica Support reshared this.
Friendica Support reshared this.
It also includes instructions on how to subscribe to relays.
2 people like this
Friendica Support reshared this.
Friendica Support reshared this.
system.blocked_tags
.Ian Molton likes this.
Friendica Support reshared this.
Friendica Support reshared this.
return ['system' => ['blocked_tags' => 'nsfw,pussy,dick']];
It is only an excerpt of your full file in
config/local.config.php
.Ian Molton likes this.
Friendica Support reshared this.
Friendica Support reshared this.
Since I am the only user on my instance, it seems reasonable that I would make my cache visible only to logged-in users. I would like that as a configuration option.
But it kinda sounds like you're saying that if I add a picture in this reply, then friendica.mrpetovan.com will attempt to retrieve that directly from the cache on friendica.exon.name. If I limited that to logged-in-only users, then your instance wouldn't be able to retrieve the image. Is that correct? If I'm not heading down a wrong turn, then the solution would be to allow serving of cached images if the requesting website has an authentication cookie, and that cookie is set by the handshaking between two instances. So ordinary web browsers wouldn't be able to see the images.
Ian Molton likes this.
Friendica Support reshared this.
Friendica Support reshared this.
We do have a mechanism to authenticate a Friendica user on a remote node, but it involves several requests back and forth between the two nodes so it isn't really suited to authenticate image display.
Roland Häder likes this.
Friendica Support reshared this.
Friendica Support reshared this.
The problem is that due to a moderation leak, Server X has an image I in its cache that is Bad, and we must prevent user C from seeing it. Server X also has image J in its cache, that belongs to a public post from A. We must allow user B to see that image. Ideally we would also like to prevent user B from seeing image I.
Right now, A makes their post on X, and X stores J in its cache. C can now see J on X, and Y can also retrieve J from X and store it in the cache on Y. When B logs in to Y, they see J served from the cache on Y.
So to achieve our aims, we make the cache on X, including I and J, only visible to logged-in users. But now Y can't retrieve J from X, because Y is not a logged-in user (i.e. does not have an authentication cookie). So B can't see J when they log into Y.
But what I'm saying is, when Y retrieves J from X, it can prove that it is not C, because X and Y went through a handshake procedure. That handshake procedure should have resulted in some kind of key exchange, I don't know the details. The outcome of such a key exchange usually is an authentication token, but perhaps you're public-key signing your requests. Either way, I don't know how Y gets J from X, but usually that's with an HTTPS request, and HTTPS requests certainly can include cookies, even if they are server-to-server. But there are other ways of sending that authentication token too, like doing a POST instead of a GET, or by appending a URL parameter.
The overall point, though, is that unless I misunderstood the first part of this description, then somehow limiting cache access to only 1) logged in users and 2) handshook friendica (or ActivityPub) instances, should be achievable. Right?
Ian Molton likes this.
Friendica Support reshared this.
Friendica Support reshared this.
Surely an interim solution would be to serve local users from the cache, but serve the original URL to everyone else?
Friendica Support reshared this.
Friendica Support reshared this.
Ian Molton likes this.
Friendica Support reshared this.
Friendica Support reshared this.
Friendica Support reshared this.
A less costly solution would be to redirect anonymous users to the original URL but the image URL with your domain would still be visible in the source of the post page, I don't know how tech-savvy are your roving pedo hunter gangs.
Friendica Support reshared this.
Friendica Support reshared this.
Likewise, when serving from the cache, only serve if local user.
Or is it impossible for the server to tell the difference between a cached image and a legitimate image belonging to a local user?
Friendica Support reshared this.
Friendica Support reshared this.
Or is it impossible for the server to tell the difference between a cached image and a legitimate image belonging to a local user?It is possible, it would be part of the solution I suggested earlier, it just hasn't been implemented yet.
Ian Molton likes this.
Friendica Support reshared this.
Friendica Support reshared this.
So can we have a "remote" flag or something attached to an image, which is set for images that are cached for local users, and is unset, should a local user actually make a post with that image?
That wouldn't prevent anyone seeing it if a user shared the image, but at least from a legal point of view, it's more clearly their fault, and easy for me to fix (by booting them)
Friendica Support reshared this.
Friendica Support reshared this.
Ian Molton likes this.
Friendica Support reshared this.
Friendica Support reshared this.
Certainly good enough for now.
Friendica Support reshared this.
Friendica Support reshared this.
This I would consider an interim solution. I can definitely see that doing this properly would take quite some design effort. And doing it anything short of properly is pretty pointless.
Ian Molton likes this.
Friendica Support reshared this.
Friendica Support reshared this.
* I post a legitimate but controversial opinion
* Mallory replies to my post from a bulletproof server with a Bad Image
* Mallory computes the URL of the image on my site
* Mallory reports the URL to the UK automated complaint site
* Automated complaint site retrieves the URL and records its findings
* Five minutes after the reply I notice the image and delete the post, but it's too late
* Jail for mother
"How tech-savvy are your roving pedo hunter gangs"? Not tech-savvy enough to understand one single word of this thread. Computer says jail, that is all.
2 people like this
Friendica Support reshared this.
Friendica Support reshared this.
the pedo hunters are, frankly, blithering idiots, and they aren't above planting evidence (this has ruined many police investigations).
There are definitely people who will sell them tools to do this.
So this is a very real threat imo.
Hypolite Petovan likes this.
Friendica Support reshared this.
Friendica Support reshared this.
Friendica Support reshared this.
It's a server that "cannot be taken down", usually in a country with poor enforcement, sometimes in a bunker. Hosting is sold on the dark web, hence the marketing-speak. Possibly this term is out-of-date by now. Wouldn't that be nice.
2 people like this
Friendica Support reshared this.
Friendica Support reshared this.
Ian Molton likes this.
Friendica Support reshared this.
Friendica Support reshared this.
2 people like this
Friendica Support reshared this.
Friendica Support reshared this.
The people who share that kind of stuff will also share URLs out-of-band, so this is already a real world attack, rather than theoretical.
Really pleased to see this is high on @Hypolite Petovan 's priorities, that's all anyone can ask for :)
Friendica Support reshared this.
Friendica Support reshared this.
Friendica Support reshared this.
Friendica Support reshared this.
Also: This kind of caching is done by each system out there (not only commercial ones like Twitter, but also Diaspora, Mastodon and so on)
But: We should display the remote url while delegating to the proxy.
Ian Molton likes this.
Friendica Support reshared this.
Friendica Support reshared this.
Ian Molton likes this.
Friendica Support reshared this.
Friendica Support reshared this.
[url=https://proxy.tld/media/...]https://original.url/to/media[/url]
2 people like this
Friendica Support reshared this.
Friendica Support reshared this.
Friendica Support reshared this.
Ian Molton likes this.
Friendica Support reshared this.
Friendica Support reshared this.
Friendica Support reshared this.
Friendica Support reshared this.
Friendica Support reshared this.
Friendica Support reshared this.
Ian Molton likes this.
Friendica Support reshared this.
Friendica Support reshared this.
Id like to see this fixed before anything else

Luca Nucifora doesn't like this.
Friendica Support reshared this.
Friendica Support reshared this.
Hi all.
Adding a tag to a post results in these.
Firstly, i'd rather not see them at all, but the issue I'm seeing is the little yellow warning triangles - something seems malformed.
Edited to add missing image.
Friendica Support reshared this.
Friendica Support reshared this.
/profile/spyro
) when they should be absolute URLs (like https://friendica.mnementh.co.uk/profile/spyro
).As for the post itself, if you want to categorize posts just for yourself, I'd suggest you use the "Save to Folder" feature instead.
Ian Molton likes this.
Friendica Support reshared this.
Friendica Support reshared this.
I want to use tags, I like my tag cloud :)
I can't for the life of me find a way to delete tags from a post though, which sucks when I make a typo
Friendica Support reshared this.
Friendica Support reshared this.
Friendica Support reshared this.
Friendica Support reshared this.
The "Add Tag" feature is mainly meant for tagging other people's posts where you don't have access to the post body.
Friendica Support reshared this.
Friendica Support reshared this.
Adding tags by editing the post seems to half work.
They get highlighted in the text, but I don't see the little coloured slabs below the post.
Friendica Support reshared this.
Friendica Support reshared this.
Ian Molton likes this.
Friendica Support reshared this.
Friendica Support reshared this.
Ian Molton likes this.
Friendica Support reshared this.
Friendica Support reshared this.
Friendica Support reshared this.
Friendica Support reshared this.
Hypolite Petovan likes this.
Friendica Support reshared this.
Friendica Support reshared this.
Friendica Support reshared this.
Friendica Support reshared this.
I can't, because the tag was on the original posting, so there is no message to delete
Friendica Support reshared this.
Friendica Support reshared this.
Friendica Support reshared this.
Friendica Support reshared this.
Tobias likes this.
Friendica Support reshared this.
Friendica Support reshared this.
Tobias likes this.
Friendica Support reshared this.
Friendica Support reshared this.
Ian Molton likes this.
Friendica Support reshared this.
Friendica Support reshared this.
Friendica Support reshared this.
Friendica Support reshared this.
Friendica Support reshared this.
Congrats, you're very clever.
Also the entire world except the #cryptotwats hates you now.
Mrs Mouse :verified: :queer: reshared this.
Christine Lemmer-Webber
•2 people like this
Chris Dennett and Ian Molton like this.
Lars Wirzenius reshared this.