![](/static/66c60d9f/assets/icons/icon-96x96.png)
![](https://lemmy.world/pictrs/image/1df05a77-c6dd-4662-9ea3-62a24ca9a25f.jpeg)
Witty one liners are all well and good, but they don’t exactly make for a well paced or interesting story.
Witty one liners are all well and good, but they don’t exactly make for a well paced or interesting story.
Star Wars goes from being a story about the power of the workers to a story about force royalty
The power of the workers? One of the leads from the first movie is a literal princess…
Removed by mod
The wikileaks thing is highly suspect, though. Like, wikileaks intentionally disclosed a lot of publicly damaging dirt on Clinton and the Dems at a very sensitive time in the election while not releasing ANYTHING on the GOP, even though they supposedly had that information.
“After I leave, this is going to be someone else’s problem.”
I prefer Stargate on Plex and praising the Lord with TempleOS.
Twitter is terrible for people like me. I like following interests: books, coding, landscape photography, linux, etc. Twitter is more about following people, and people have diverse interests. One thing I really liked about Reddit was that it had active subreddits dedicated to particular interests. You could just hang out in those subreddits and only ever interact with things on topic to said interests. Lemmy has a bit less of that, unless your interests are politics, linux, and programming, and shitty memes.
This demonstrates a profound misunderstanding of HTMX, and how websites in general operate. So much so that I would not hesitate to describe this as somewhere between a baldfaced lie and just malicious incompetence. You can’t “invoke logic via HTML attributes,” but you can describe it. HTMX is a client side javascript library that parses custom elements you define in your HTML and uses the data described by them to initiate AJAX calls via the fetch() or XMLHttpRequest browser APIs, which CSP explicitly covers via the connect-src directive: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/connect-src. It’s literally just a javascript library that parses HTML and uses it to parameterize AJAX calls. If HTMX were somehow able to bypass CSP, then every single piece of clientside JavaScript in the world could violate it.
“Wow, these screen doors really suck. I’ve stuck them on my submarine, but they just don’t keep the water out at all. Some people are going to say that I’m a fucking moron and don’t understand the technology I use or that I’m too goddamn lazy to actually take the necessary steps to keep water out of my submarine, but I know they’re wrong and it’s the technology’s fault.”
In all seriousness, HTMX is a tool designed for a specific job. If you have an API that has either non-parameterized endpoints to hit or an endpoint that accepts a single integer value or UUID or…whatever to perform a database lookup and return stored values to be interpolated into the HTML that endpoint returns, then, great, you’ve got a lightweight tool to help do that in an SPA. If you’re using it to send complex data that will be immediately and unsafely exposed to other users, then…that’s not really what it’s for. So, I think the core issue here is that you don’t really understand the use case and are opposed to it because to use it in a way that is beyond or outside the scope of its established convention is unsafe without extra work involved to guarantee said safety. It also implies you are running a website with a content security policy that either explicitly allows the execution of unsafe inline scripts or which does not care about the sources to which a script connects, which is the only way you could realistically leverage HTMX for malicious ends. So, ultimately, the choice to not adopt comprehensive security measures is one you are free to make, but I wouldn’t exactly go around telling people about it.
how HTMX works and what it does inherently bypasses CSP
Well, no, not really. All HTMX really does are AJAX requests to remote resources, which are performed by interpreting attributes in HTML. You specify the type of request and the target for updating. Those requests can sometimes contain parameters, of course, but any API that accepts any kind of conditional or user generated input has to sanitize that input before doing anything meaningful with it. This requirement isn’t something particular to HTMX.
You fundamentally are invoking logic via HTML attributes, which bypasses CSP
This is not true, though. You are manipulating the DOM via HTMX, but CSP has nothing to do with dynamic content manipulation. CSP is more concerned with preventing the injection of malicious code. If what you’re referring to, however, is the possibility of someone maliciously injecting HTML with HTMX that performs some nefarious action, then I have to ask (again) why you didn’t properly sanitize user input or limit the possible connection sources in your CSP.
If you have a specific example, however, of a way in which HTMX by design violates CSP that can’t be dismissed with “you coded your website poorly,” I would love to know.
The Mummy
children’s media
And then, later on, as they’re watching some guy get hauled off by the police to get “reeducated” after getting upset at a waiter, Batman says to Justice Lord Batman, very sarcastically:
“Mom and Dad would be so proud.”
I personally assumed they were rewriting it from C# because C# is complete ass that got destroyed by Microsoft’s own insistence on feature creep. The language is a goddamn mess. That said, a ton of languages are a mess but they’re even more baked into shit than C#. Like, Javascript is a bad language, but it’ll probably always be around because…internet.
I know what 2 girls 1 cup is but I don’t understand what else is being referenced in this image.
I think we’re gonna have to agree to disagree on definitions. To me, and I believe, to most people, an SPA refers to a UI/UX design pattern that can be implemented with any number of underlying techniques. I would also say that the Wikipedia page for SPAs (on the assumption that wikipedia is a valid tool for establishing consensus for definitions) supports my definition:
A single-page application (SPA) is a web application or website that interacts with the user by dynamically rewriting the current web page with new data from the web server, instead of the default method of a web browser loading entire new pages.
There are various techniques available that enable the browser to retain a single page even when the application requires server communication.
And it goes on to list frameworks, AJAX, Websockets, etc.
A SPA is *generally *“rehydrated” DOM elements from JSON data pulled from an API though. Where as HTMX is more akin to classic AJAX style page dynamism.
You’ll forgive me if I say this is an instance of splitting hairs and having a particular definition for something that includes extra qualities separate from what those terms are actually describing for most people. Also, things like, I dunno, React, are going to extensively use ajax to accomplish what they do. It’s literally just asynchronous javascript. It’s like someone saying “my vehicle of choice is a motorcycle” and then someone else saying “A motorcycle isn’t really a vehicle. It’s a transportation device with wheels. A car is a vehicle.” They are both vehicles. They both have wheels. The wheels are ajax. A page made with htmx and a page made with React are both SPAs.
I just don’t even know who would play these. They all look terrible.
HTMX comes with a variety of CSP options, though…
Where did I call it a framework?
Slow burn is great when you have strong character writing and world building. These are things of which Rogue One has virtually none.