RoundSparrow

joined 3 years ago
MODERATOR OF
 

I'm starting lemmy-ui with:

LEMMY_UI_LEMMY_INTERNAL_HOST=lemmy-alpha:8541 node dist/js/server.js

Running against the drone-lemmy instances created by lemmy_server's api-tests scripts. I'm running latest main checkout on both projects.

My browser gives me:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8536/api/v3/community/list?type_=Local&amp%3Bsort=TopMonth&amp%3Blimit=50&amp%3Bpage=1. (Reason: CORS request did not succeed). Status code: (null).

api-tests scripts build dev mode, I thought CORS was turned off? I've played around with adding LEMMY_CORS_ORIGIN=* - but it doesn't help.

EDIT: reading this post closer, I see 8536 vs. 8541. If I manually refresh my browser against lemmy-ui on port 1234, it works... but I wonder where 8536 is getting picked up?

Thank you and I hope you are having a great weekend.

 

I think a client-API self-awareness of performance problems and cost of running a server.... could be built into the design as an owner/operator choice.

A search engine should see generic content, posts and filters, without changes.

But the lemmy SQL logic for PostgreSQL is to burden fetching posts and comments with all kinds of user-specific customization. This kills caching potential if it's done way at the backend.

Page 3 of posts in !memes@lemmy.ml will be different for a user who has blocked a person in that list. Right now, that burden is placed upon PostgreSQL and having to rewrite indexes on every INSERT and do steps in every SELECT.

For massive scale on lower-cost hardware, I suggest that the idea be placed where a smarter-client API is self-aware of this problem and page 3 of a community or All hot/active/top hour - be the same - and the client is given the burden of fetching the person block list and filtering. ---OR--- an intermediate front-end ,component of Lemmy that could run on multiple servers / scale out / do the filtering for that specific user.

Even paging itself, the page length - is already variable - another cache issue. Eliminate that and just encourage over-fetching of post and comments and filtering out duplicates. ---OR---- even just fetching ID numbers of new/old and a very-smart client having an ID listing of the entire page and filling in content.

But certainly during heavy server load, when servers are on the verge of crashing from too much data - eliminating personal exclusions of communities and persons on fetching posts/comments can have some PostgreSQL offloading. Even NSFW might fit into that.

Sorry about my language this morning, sloppy English.

 

or federation.lemmy as root... allowing:
federation.kbin
federation.lemmy
etc.

And it emphasizes owner/operator/home of community, instance_name (subdomain/domain name).

 

This is the first post or comment in Lemmy history to say log_min_duration_statement ... ;)

It is possible to instruct PostgreSQL to log any query that takes over a certain amount of time, 2.5 seconds what I think would be a useful starting point. Minimizing the amount of logging activity to only those causing the most serious issues.

"Possibly the most generally useful log setting for troubleshooting performance, especially on a production server. Records only long-running queries for analysis; since these are often your "problem" queries, these are the most useful ones to know about. Used for pg_fouine." - https://postgresqlco.nf/doc/en/param/log_min_duration_statement/

I think it would really help if we could get lemmy.world or some other big site to turn on this logging and share it so we can try to better reproduce the performance overloads on development/testing systems. Thank you.

 

lemmy.world
lemmy.ml

See the difference? Can someone submit/locate an Issue and/or Pull Request? Any others?

 

Someone was asking about it in support, so I was curious to try it. The Rust code has HideCommunity, I even tried to bypass the JavaScript client and do a direct API call.

Does anyone see the function call to send a HideCommunity object?

Where it might be disabled in the Rust code? I know it goes all the way into the database and is on SELECT statements.

Thank you

 

Since I found out about my autism in 2009, at age 40, I struggled to find older people who I could relate to that had mental disorders.

I also feel like late-diagnosed autism is not well understood by the medical community. I keep witnessing more and more adults who are diagnosed even at age 60 (who work in science news reporting, of all fields!).

With autism, age is so focused on children in the medical research funding. But schizophrenia learning is often focused on adults: "symptoms generally start in the mid- to late 20s, though it can start later, up to the mid-30s. Schizophrenia is considered early onset when it starts before the age of 18."

It's an interesting time period in autism right now. Since I became active on the topic in 2009, I keep hearing story after story on social media about people not getting diagnosed with autism until age 40, 50, etc. Again: diagnosed with autism even at age 60

Terry A Davis and I have a lot in common: https://en.wikipedia.org/wiki/Terry_A._Davis

  1. I was born in 1969 too. Just a couple months older.

  2. I learned programming on a Commodore 64 and published social media software.

  3. He worked at "Ticketmaster as a programmer for VAX machines" - I had a VAX/VMS system at my high school and got a job with a pentagon contractor based on them also having a VAX system at age 16.

  4. I became an expert in operating systems and wrote books about them in the early 1990's.

  5. I have traveled and lived as a digital nomad since 1999, I've lived all over the USA states he was spending time in.

After 2017, he struggled with periods of homelessness and incarceration. In 2018, he was struck by a train and died at the age of 48.

I have never had hallucinations of any kind. And his interest in religion strikes me as someone who would have really benefited from a 1970 lecture by Joseph Campbell: Joseph Campbell - Inward Journey: Schizophrenia and Mythology

I've lived in the Middle East for years, lived in several Islamic nations, experienced different views of religion. Dr. John Weir Perry is a reference. As Joseph Campbell is pointing out in that lecture, religion itself is a form of Schizophrenia. I think Terry A Davis is exactly the kind of person who would have benefited from having that knowledge, and even translating it to Arizona (where he lived) areas of mythology - like Navajo teaching. I do not subscribe to any one religion as "correct" any more than films, songs, fiction. I think James Joyce combined with Marshall McLuhan and Neil Postman are an excellent set of teachers about how to understand mythology (religion) stories and not get caught up in the specifics of Middle East interpretations. The Navajo Pollen Path I consider better than what I've seen in most Bible/Torah/Quran teaching.

Terry A Davis's visions of inner voices also fits a lot with the fiction and meta writings of Phillip K. Dick. PKD was very good with metaphors and I think well understood what Joseph Campbell was saying about the psychology of religion. It would not surprise me at all if PKD knew of the 1970 lecture by Campbell in his lifetime.

[–] RoundSparrow@lemmy.ml 0 points 2 years ago* (last edited 2 years ago) (11 children)

is right wing, right?

I honestly don't know how to answer you. You are mixing now "liberal" in posting topic with "right wing" in comment. "I know" that I said "liberal vs. conservative", you start going "left wing vs. right wing" and you get an entirely different set of nebulous faiths people have about the meaning of those words and their importance in viewing/interpreting the world that way.

As a human thinking system, all I see is people constantly hammering it as a be-all-end-all measuring stick. That is left, this is right, that is conservative, this is liberal without any true reasoning behind it as to why measure things this way.

Which great teachers said you should divide all interpretation of the world into this? I'm from the USA, and the Constitution sure doesn't mention "left vs. right" or "liberal vs. conservative", and the Founding Fathers of my nation did in fact educate a division via the Great Seal, front and rear, new world order vs. old world order. The Enlightenment (science) vs. classical mythology (superstition).

It's like some runaway meme of cognitive dissonance to have this divisive faith systems. Left vs. Right seems to me to be exactly superstition!

I am also fully self-aware how popular that this is and that I'm pissing into a wind of extreme acceptance of this division. The map you show to me is an illustration of why it is a overused way of thinking. /rant

[–] RoundSparrow@lemmy.ml 0 points 2 years ago* (last edited 2 years ago) (13 children)

I think the true cognitive dissonance is the extremely strong faith in 2023 by so many in humanity who believe you can divide every single topic into "liberal vs. conservative". You just can't escape this bipolar thinking pattern, it's everywhere. A faith bigger than any classical religion.

Yes, I do know this is 'dank memes'

view more: ‹ prev next ›