News for hackers. Stuff that matters.

lakomen

Re:Tailscale Is Pretty Useful on Wednesday March 05, 2025 @05:25PM (#43273552)
Talos has something about Wireguard, but I never used it in the k8s context
Kill Trump
I'll take any downvotes and sanctions by Dang, but I wholeheartedly and with all my soul will yell FUCK ORACLE YOU PIECES OF FILTH MAY YOU ROT IN ETERNAL HELL DIE
Re:Keycloak, Angular, and the BFF Pattern on Tuesday January 28, 2025 @07:41PM (#42860039)
And I thought it's best friends forever! SCNR
Too barebones for my taste. Small ecosystem. Lots of manual fiddling. Prefer React currently.

I use Svelte when I want static site generation. It's good for that.

I hate that it's all different from v4 to v5.

Well Mr. Capitalist Pig... We have democracy and a social contract in the EU. If you don't like that GTFO.

Yeah people protested against Elmo's Giga because wood got destroyed to build a factory for e-cars that are supposed to "save the environment"

Yeah of course this was posted on Twitter, the most toxic and faschist place on the internet, full of disinformation and pro totalitarian propaganda and fairy tales like "anarcho-capitalism" which all favor the super rich and want to turn everyone else into their perpetual work slave.

It's fucking disgusting

Re:WordPress Is in Trouble on Monday January 13, 2025 @05:46PM (#42690560)
TL;DR?

I don't like drama. Why is it in trouble just now and it has not been an ongoing process?

- Don't avoid proper medical treatment.

- Cannabis has been known to help, both with Cancer as well as feeling unwell during chemo and increasing appetite.

Best of luck

What else will they find out, that sugar is sweet?
Re:We Cracked a 512-Bit DKIM Key for Less Than $8 in the Cloud on Thursday January 09, 2025 @05:13PM (#42650365)
What a misleading title
Re:New 16GB Raspberry Pi 5 on sale now at $120 on Thursday January 09, 2025 @06:21AM (#42644158)
K8s control plane node or even worker node. 4 get you a single cp and 3 workers which most helm charts require. There's a pi hosting provider which is reasonably cheap, like 7€/m, yearly payment, but only 100mbit connectivity. Still good enough for a learning cluster. Where can you get that for less than 28€/month?
Re:New 16GB Raspberry Pi 5 on sale now at $120 on Thursday January 09, 2025 @06:16AM (#42644133)
Orange Pi has more bang for the buck.

http://www.orangepi.org/html/hardWare/computerAndMicrocontro...

I would respond but HN is limiting how much I can post per day, only 4 posts.

Orange Pi 5 is the go to solution for IRL streaming right now as well as router. The openwrt project has created a special variant of the orange Pi, but the regular one is cheaper and has more features. Both are very well supported. Claiming it's an eventual paperweight is FUD and not true.

Re:Thank You, Airbnb on Thursday January 09, 2025 @06:11AM (#42644101)
They want my phone number, I'm not giving it to them
Re:The Future of Htmx on Thursday January 09, 2025 @06:07AM (#42644077)
Idk why writing JS is such a big deal.
Re:The Future of Htmx on Thursday January 09, 2025 @06:03AM (#42644056)
Coming from AngularJS then Angular then Vue, a bit of Svelte, which I didn't like, to React. I tried React before and hated it.

Yes, it's not perfect but right now it's pretty good. I like composables, there are a few gotchas to get used to, but that's everywhere, when in Rome.

Vue is better IMHO, but doesn't have the graphql client I require and there is more momentum in the React ecosystem right now. More innovation is happening in the React ecosystem than elsewhere.

Angular is still stuck in the past. Ngrx as the only state management library, full of boilerplate and the annoying rxjs. One doesn't simply with Angular.

Svelte is too barebones for my taste. Manually doing form validation and rendering for instance. If it had a larger ecosystem it would be great, but it doesn't. It for the purists who like reinventing the wheel. Of course it has other good uses as well, it's fast, much faster than React.

When I used React, I use high level libs where I don't have to manually do stuff. But when I do it comes naturally, it's a simple learning process.

I prefer logic in templates from Vue over the brackets and conditions of React. I like Angular's templating and 2way binding. I don't like Reacts aliases, like having to write className instead of class.

But in the end productivity is what matters for me, and React is pretty productive and has a large ecosystem. But finding the right packages is a journey.

React SSR is a horror story. Vue's especially with Quasar is a love story with butterflies and perfume. Great tooling.

It's good enough and I'm actually enjoying to work with it, maybe because it's so new to me and learning new things makes me happy (like when you're young you're happy because there is so much new stuff constantly, which studies found that it makes people happy).

That they removed the ability to embed it without compilation from v19 on is a very bad move though.

Re:More Speech and Fewer Mistakes on Tuesday January 07, 2025 @02:18PM (#42626184)
My door to Meta is closed and will never reopen, no matter what. Facebook has cost me all my friends. WhatsApp sells my phone number. Threads banned me for commenting too much without giving it my phone number. Facebook keeps or kept censoring my posts. Fuck Meta forever.
Re:The Future of Htmx on Tuesday January 07, 2025 @01:59PM (#42625964)
But it's not complex when you use the right tools. I did PHP professionally for 11 years and I waa bored out my mind of it. The repetition, the boilerplate, the stupid dogma and OO fetishism. And everyone in their freshman year suddenly knew better and tried to preach what they learned in Uni.

"But that's not SOLID and not OOP". But it's simple and does the job.

I moved to Go and AngularJS. That was 2013. I did full backend aka full ssr with Go, and it's a PITA.

I did try htmx with a jinja like template language in Go, with templ and in Rust and ... I forgot the library, it's the go to library in Rust for htmx. All the annoyances are still there.

Session management, service oriented design, if else blocks between and inside html tags. Path parsing and comparison. Template macros. And now also fragments.

Now I use a graphql backend for data, and react consumes it while the ide supports intellisense for queries. It's more simple than writing your queries by hand on the backend. You have interactivity for free. And you let the client worry about how the data is displayed. Also you let the oidc server worry about users.

Concerns are separated. I have authz middleware on the graphql backend, easily written. Everything has layers and there's order and a clean structure. As a plus I don't have to annoy my users with captcha. And I have reduced infrastructure costs as well as traffic.

I'm 50. My internet journey began 1995. I did enough of the old way to hate it and to know when something is better. I have met my share of fanatics, of language and framework Nazis.

You have to stay curious. I have tried htmx multiple times and found it inadequate, not good enough, too limited.

Like I wrote there are no frameworks in any language for it. It's just JS hidden behind html attributes, claiming it isn't JS.

I hate deception, the zealots are deceptive as all zealots in any language, package or framework are. Angular Nazis holy crap. Or React retards where you mention how Vue has simple SSR adaption and Rract doesn't, and are labeled as a React hater.

I'm pragmatic. I like clean structure and efficiency as well as simplicity. Sometimes you have to learn a bit of complexity to have it simple and efficient in the long run. I have tried many things. Ruby on Rails, Elixir. You know what, I have started programming at the age of 11 on the cpc 464 in basic, at 12 I cracked c64 games and wrote cracktros in asm. I'm one of the first cheat creators for MMORPGs ever. I don't consider myself super smart, but I have seen a lot and tried a lot. I also struggle with learning new things. But you have to. Htmx is not the way. It's a step back. It's only for simple things.

I do believe the hype when it's reasonable. Like with MVC. It was the natural way to write SSR websites. This is the way. But then something better came along and it took a while to solve the inadequacies it had. But now it's at a point where SPA + graphql + oidc = awesomeness. And it's going to become better. And I'm not talking about the Nextjs crap, those fake backend libraries that are hugely overcomplicated.

Re:The Future of Htmx on Tuesday January 07, 2025 @12:59PM (#42625276)
This simply isn't true. You are stuck in the past and unwilling to adapt and learn new, in fact, better alternatives.

I'm currently using Go with Ent and Gqlgen and Relay extension on the backend and React vite with Relay graphql client as well as React-oidc-context for oidc with zitadel as the oidc idp.

It doesn't take 2 days to make a simple form.

You need to get put your comfort zone and learn.

I built a classifieds site in 3 weeks. Including admin ui. I'd call that as productive as it gets. There's currently as library in the works where you will be able to tell generative AI to make a frontend just from showing it the graphql schema.

Re:The Future of Htmx on Monday January 06, 2025 @04:53PM (#42616382)
Nextjs is a nightmare. React is pretty good nowadays imo.
Re:The Future of Htmx on Monday January 06, 2025 @04:49PM (#42616326)
Overhyped, back to 20 years ago. No proper framework in any language. And no it's not the new jquery.

You can't do real time time tickers. You can't call client side functions.

It's hyped by entry level web devs, because they don't know any better. You get all the baggage with it, that you hoped to be rid of with the separation of data provider and client consumer. Session management, path parsing and matching, flash messages, complicated nested if else blocks. Argh. Search engines can crawl js nowadays.

It's like going back to sysinit when you have systemd only worse. But HN never fails to hype bs tech

Jeli je to hrvatski proizvod?
Re:Generative AI Is a Parasitic Cancer on Sunday January 05, 2025 @06:51AM (#42601186)
1½ hour video to say "Google search sucks because AI generated content", which doesn't even link the video, but a mastodon account...
Sure it was Propaganda bullshit
yeah Google Search is awful and there's still nothing better. What's new?
Personal Knowledge Management. I expected something different.

Let's say I'm researching how to get into IRL streaming right now. So I'd make a topic, "IRL Streaming". In there I'd like to put links to videos, links to documents/documentation/tutorials/guides/howtos. I'd also like to take notes.

And in the end I would've learned this topic. Maybe I'd create a sub-topic in there, to research "SRT and SLS vs RTMP".

People claim it's like a Obsidian clone. Looking at the Obisidan website it says it's a tool that helps you write a book.

This however calls itself PKM (short). I guess they're related, from looking at the screenshots, but not really what I'm looking for, I think.

I don't want to do what the top comment suggests, folders with files. No I want a web app that I can access from anywhere and where I can dump links and notes to and about resources categorized by topic. Reading the readme of siyuan-note it does seem to be able to do this.

Only 1 question, does it support multiple users? So I can host it for my town's community.

Re:Blackcandy: Self hosted music streaming server on Friday December 27, 2024 @07:11PM (#42527326)
thank you
To not feel like I'm constantly under pressure and it's valid to just sit around staring holes in the environment doing nothing at all, not even thinking. Time flies but it does so anyway and you can't change that you will die eventually. Try to enjoy the moment. Also to be more tolerant of other people's stupidity, even if it affects you.

Development wise, there is nothing I need to know. I know all I need to know and I'm productive and efficient. If only other companies would and could see it that way instead of requiring the use of bullshit tech like cloud, microservices, k8s.

Re:Ruby 3.4.0 on Thursday December 26, 2024 @06:59AM (#42514713)
Thank you. Never trust Oracle, ever. They will betray you.
Re:Server-Sent Events (SSE) Are Underrated on Thursday December 26, 2024 @06:53AM (#42514694)
No they're not. They're limited to 6 clients per browser per domain on http/1.1 Which is important because nginx can't reverse proxy http/2 or higher, so you end up with very weird functionality, essentially you can't use nginx with SSE.

https://developer.mozilla.org/en-US/docs/Web/API/Server-sent...

Edit: I see someone already posted about that

Older »