HNHacker News
TopNewBestAskShowJobs

CafeRacer

269 karma · joined June 23, 2023

submissionscomments
CafeRacer··on Run GitHub Actions locally
act is a great helper tool for another tool that is an utter shit.

Ive given up on gh actions a while ago and transitioned to bash scripts in docker containers. I can reproduce stuff locally, can test it, can debug it, etc.

I dont get how GH Actions do not yet have a tool that looks and works like jupyter workbook. Then it would have been fantastic.

CafeRacer··on Compressed music might be harmful to the ears
I think he meant exactly that.

But there is an insane amount of modern music being produced, in DAWs and analogue.

So above commenter may want to try to listen to something that is not kanye

CafeRacer··on Show HN: Hyper – Standards-first React alternative
AgGrid, for example, virtualises the dataset and easily render a 100k records: https://www.ag-grid.com/example/

On our app we render large datasets (e.g. 40-50k records) and provide filtering/searching with rxjs.

Search even uses a levenshtein distance and the entire collection is sorted based on the similarity score.

Works like a charm.

CafeRacer··on Serverless Is a Scam
You have to build the driver. And sometimes libc version on lambda runtime is slightly different from libc that is linked to the driver.

Overall there was a lot of trial and error and no clear way to test everything locally in the container.

CafeRacer··on Serverless Is a Scam
The thing i hated the most about aws lambda is connecting to postgres or using bcrypt... it's possible, but it felt like defeating Malenia.
CafeRacer··on Firefox Keeps Firefoxing
Interesting. Maybe your ISP or firewall blocks recently registered domains?
CafeRacer··on My friend just built an app to spot fake news
Let me guess... all of them are bullshit?
CafeRacer··on CSS-zero: opinionated CSS starter kit for your "nobuild" application
Most of the classes just make sense. Like px-4 or color-whatever or grid, flex etc.

For the rest there is a plugin that provides intellisense. Granted, some things could have been better - especially text style selector (if i could visually see the preview of the test and font-size).

And I don't have to jump between css and component files.

But, do you prefer potato or potato?

CafeRacer··on CSS-zero: opinionated CSS starter kit for your "nobuild" application
Meh... css has an ergonomics of rusty marine mine.
CafeRacer··on Customizable HTML Select
I spent days building this little perfect dropdown select thing, that is a hundreds lines of code and even more docs explaining what the hell is going on. Someone wasted the same amount of time before me. Someone else spent a lot of time before them. And so on.

I wish we have had more browser native implementations including some notion of virtual lists so the browser would not choke when rendering a lot of content.

---

Eventually, this would be same as border-radius. It will get implemented and we'll forget about that forever.

CafeRacer··on Managers given 200 characters to justify not firing nuclear regulators
Challenge accepted. Less than 200 characters.

"Man fire, big boom, Trump look bad"

Here is another version but Haiku

Man Fire Big Boom Trump look dumb

CafeRacer··on WikiTok
Me: what a stupid idea Also me after 30 minutes of doom scrolling: cool
CafeRacer··on Docker Desktop Broken on Mac OS Update for over a Week
We're relying on buildx bake. And few days ago Docker just stopped working. I tried the steps that they outlined with no success.

I know I can still run it from CD/CI, but I don't want to jump around like a crazy monkey trying to debug my builds locally. I had issues with docker desktop just hanging on my mac.

I've been using podman for over a year with docker context pointing to podman so I can still use bake.

I've moved some of our workloads to s2i and bash scripts and could not be happier. Old good sysadminy stuff just works.

CafeRacer··on Okay, I Like WezTerm
I have work to do! I won't drop everything right now to check it...

Okay, maybe for just a few minutes.

CafeRacer··on Epic Games and Spotify Say Apple's Latest DMA Changes Are 'Illegal'
I understand what Apple does is shady, but both Epic and Spotify also shady af. This, coming from Epic and Spotify is the definition of irony.
CafeRacer··on DVDs are dying right as streaming has made them appealing again
Both your and @yourusername are valid arguments. Movie/TV streaming services generally bad.

It's like a loot of good content is missing, but instead they're trying to make their own content that is mostly average and sometimes just bluntly bad, not even laughably bad.

Music is way better, I recently switched from Spotify to Tidal, and there were only two tracks missing from my playlists.

CafeRacer··on DVDs are dying right as streaming has made them appealing again
I dont mind paying for content, but the current state of streaming makes it easier to get movies from torrents.

Like the Alien for example, some parts are on Netflix, some are not. Meaning i have to buy like 5 different subscriptions to be able to watch everything i want.

Or even better one, Dr House. I don't think we had it streamed in our country, so the only way to watch it was to pirate.

Its bad how the platforms are right now.

CafeRacer··on Making Python Less Random
Came here after reading the article to tell this. Aside from monkey patching that would have been my go to.
CafeRacer··on Mako – fast, production-grade web bundler based on Rust
This
CafeRacer··on React Lua
How is Svetle complexity is different and why is JS-vanilla-like Svetle complexity is better than React-like complexity?
CafeRacer··on React Lua
Idk, does the same thing, but aestetically looks different. I guess I'm bigger fan of JSX than whatever Svelte approach is named.

But then, if I'd had a choice to work with next.js or pile of cow crap, I'd prefer crap.

CafeRacer··on React Lua
Vue, Svetle, etc. is roughly same level of shit complexity as react; htmx is interesting actually.
CafeRacer··on Show HN: Minimalist, walkie-talkie for startups
Whats wrong with the phone? Isn't that a reason why they were invented? So you can call people?
CafeRacer··on Raw-milk fans plan to drink up as experts warn of high levels of H5N1 virus
You know what, actually... I did speak with my parents, and apparently, while we were ok w/ raw milk, there were some precautions that they took. E.g. always getting milk from the same cow that was healthy, boiling milk if they weren't sure where it came from, etc.

So yeah stranger nobody9999, you are right.

CafeRacer··on Raw-milk fans plan to drink up as experts warn of high levels of H5N1 virus
Not sure if your attempted insult is simply poor or I'm talking to ChatGPT.

Did you see what I said in my original message?

CafeRacer··on Raw-milk fans plan to drink up as experts warn of high levels of H5N1 virus
> here have been 888 cases of H5N1 reported in humans in 23 countries

888 cases in 23 counties... reckon the population of those 23 counties is 3k people?

Here is another piece of data. In 195 counties, 100% of people who drank water are dead or will eventually die.

CafeRacer··on Raw-milk fans plan to drink up as experts warn of high levels of H5N1 virus
In eastern europe a lot of kids before 2000 used to drink raw fresh cow milk and are completely fine.

I am not sure what is different, either new viruses, or american cows are different, or certain people did not develop immunity to certain bacteria in their childhood.

And I certainly understand why there are people in the USA who like raw milk. Pasterized milk in states taste like an insult.

CafeRacer··on The API database architecture – Stop writing HTTP-GET endpoints
I understand what you mean, however, I still think this is a bad DX overall.

There are a lot of good suggestions in these threads about possible tools and approaches, but it just misses the point that these solutions are bad DX and require maintenance.

I think general idea of postgres is good, it's just not ready yet. There needs to be a framework that handles views/functions in postgres as if it's a web app and then applies changes as if it's a terraform. All while taking back-ups in case something goes wrong.

Otherwise it's just more maintenance and it's easier to build API's w/ something else.

CafeRacer··on The API database architecture – Stop writing HTTP-GET endpoints
> So don't put it in the same table.

Nope, this suggestion sucks. Meaning I have to come up w/ table structure that caters to front-end API. Better idea is to create schemas, e.g. `public_users` and create views inside.

> You don't use version control and a test suite?

that's what I'm saying... we have like a 1k migration files already, what I want instead is `my-function.sql` that always has the current code and will automatically generate necessary migrations and shenanigans, so I don't have to worry about it.

CafeRacer··on The API database architecture – Stop writing HTTP-GET endpoints
Admit, I am partially wrong.

I was working with supabase and in there you can't set a role for the user, it's always `authenticated`.

I was looking for something more like

``` create policy "No payment_total for user" on todos for select (payment_total, invoice_number, payment_hash) using ( -- Dynamic code example (select auth.uid()) = user_id AND get_user_role(auth.uid()) != 'admin' );

```

← PreviousPage 4 of 6Next →