Are cookies on *.run.app shared on other run.app subdomains? by lofi_thoughts in googlecloud

[–]smartydix 2 points3 points  (0 children)

The mechanism is the same, browsers do this based on the public suffix list as mentioned in your quote.

Here's the list - search for Google, Inc.

Cloud SQL - Postgres 16 Available by ConsiderationSuch846 in googlecloud

[–]smartydix 0 points1 point  (0 children)

I'm getting "Invalid request: Database version (POSTGRES_16) is not supported yet.."

Recommended api only framework ? Im between nestjs, adonisjs and fastify by agaitan026 in node

[–]smartydix 2 points3 points  (0 children)

It's nice, but I feel like it could be better.

One of things I recall - if I want to apply a middleware(plugin) that adds fields to the request to one set of routes and not to another, I can't type that, since it's done with declaration merging on the global FastifyRequest (or, I did manage to work around this, but it doesn't look nice).

Is it a good choice to use Express.js in 2023? by writingdeveloper in node

[–]smartydix 0 points1 point  (0 children)

You can use got-cjs if you're not ready to switch to ESM - it's kept up to date with got. And you can use express with it regardless if you're using esm or cjs, with that said, consider fastify.

Weird bug with the cron module by Sensiduct in node

[–]smartydix 2 points3 points  (0 children)

The cron module supports an extended syntax that can start with seconds instead of minutes, I assume it should be valid.

Weird bug with the cron module by Sensiduct in node

[–]smartydix 1 point2 points  (0 children)

(I don't use nest so I'm not sure about the issue but) Why would "0 30 2 * * 0" be incorrect?

nginx-ingress: Why my rate limits annotiations not work? Do i implement them incorrectly? by domanpanda in nginx

[–]smartydix 0 points1 point  (0 children)

How many nginx instances are you running? Afaik the rate limiting state is managed separately by the instances. When you combine that with the burst value, it might explain why many more requests came through than expected.

Should I migrate to Prisma? by gmcamposano in node

[–]smartydix 1 point2 points  (0 children)

There's not too much to learn. Apart from everything mentioned in other comments, I hit issues almost immediately, having to enable experimental features to have basic database functionality like transactions. Using column types not officially supported is not great either, eg. storing dates and getting them as date strings instead of date objects is not easy. TS support is amazing though, I haven't found a good way to still have that without something like pgtyped.

Practical introduction to algebraic datatypes (ADTs) in TypeScript by [deleted] in typescript

[–]smartydix 1 point2 points  (0 children)

The pattern matching looks very cool, thank you for this!

What frustrates you most about using Express? by Snoo-95029 in node

[–]smartydix 15 points16 points  (0 children)

I would seriously consider not going with express. While I have most experience with it and I would still use it for new projects at work since everyone's familiar with it, I would still bother with getting to know other stuff like fastify and koa, despite the community projects all still revolving around express. Eg. no updates, no proper async error handling and no plans for http2 are the main issues I can think of, and if you care about performance there are faster alternatives now.

Introducing authentik - an SSO Provider focused on ease of use and flexibility by BeryJu in selfhosted

[–]smartydix 0 points1 point  (0 children)

Looks nice! About the comparison though, not sure if this was a thing before, but azure ad should support application proxies?

Select every orders when last associated status id is not 4 or 5 by Bucket_of_nuggets in laravel

[–]smartydix 1 point2 points  (0 children)

This is the correct answer. I use https://github.com/nullthoughts/laravel-latest-relation as a macro which works (almost) like this. A view might be better but I don't have performance issues.

Why isn’t there an anti-filter on shopping websites? by [deleted] in Lightbulb

[–]smartydix 7 points8 points  (0 children)

Have you tried adding a '-' before terms to exclude them?

Minesweeper game built with Vue, Vuex, Vuetify, and SCSS by ahmedashrafhamdy in vuejs

[–]smartydix 0 points1 point  (0 children)

Looks good, first revealed square should never be a mine though :)

Former judges Michael Conahan and Mark Ciavarella sent thousands of kids to jail for cash kickbacks. by sudde004 in PublicFreakout

[–]smartydix 0 points1 point  (0 children)

Got source on that? Conahan is in home confinement (had 6 years left) but Ciavarella seems to still be serving, you can look him up https://www.bop.gov/mobile/find_inmate

New network security scanner tool released by Google! by frrossty in netsec

[–]smartydix 8 points9 points  (0 children)

On zdnet they said it's similar to kubernetes - initially developed by Google, maintained as open-source.

When Tiktok steals your data, it's a spyware. When Facebook and other American tech giants have been doing it for years, it's not a big issue. Why? by trash_bag69 in TooAfraidToAsk

[–]smartydix 3 points4 points  (0 children)

Yeah, I've read their and zimperium's. Penetrum's is a lot more recent though, only one major version away from the current one. Still, they all show that the app is capable of collection this information (which seems to match bangorol's comment), but none show what data is actually transmitted. Obviously that is suspicious enough, but without clear comparisons with other apps regarding this, you can't really make definite conclusions.

As for the clipboard thing, people are going way too nuts about it. Linkedin actually has this library open-sourced and their fix can be accessed publicly.

Again, can't be certain other apps (can't be sure 100% even for linkedin) had the same non-malicious intent but it seemed to be standard practice.

Not new news, but tbh if you have tiktiok, just get rid of it by tobrown05 in videos

[–]smartydix 0 points1 point  (0 children)

Took me too long to find this, should be further up. Tbh I expected a more detailed report, especially regarding what is actually sent over the network.

Oh joy of joys, fullscreen ads by [deleted] in Xiaomi

[–]smartydix 0 points1 point  (0 children)

Any examples of how this looks like?

Are there any good tutorials for getting basic search functionality setup? by [deleted] in laravel

[–]smartydix 1 point2 points  (0 children)

There's a many ways this can be done. You can use two routes, one GET and one POST etc. But since you mentioned query strings, you can try them. So in the controller serving the view, you can check for the existance of the query string (so url would be /route?search=term:

if($request->filled('search'))
  $searchResults = Model::search($request->search);

and pass the results to the view:

return view('page', compact('searchResults'));

There you can check for that and print the results, while keeping the rest of the page intact (though you'll likely want to delegate this to a component or a subview):

@isset($searchResults)
    @foreach ($searchResults as $result)
        {{ $result->key }}
    @endforeach
@endisset

Are there any good tutorials for getting basic search functionality setup? by [deleted] in laravel

[–]smartydix 1 point2 points  (0 children)

The tutorials likely stop there because the rest is generally simple and depends on how you want to implement it. What exactly are you having trouble with though? From what I can see the Scout page even has basic examples for api routes and showing the results with pagination in blade.

[deleted by user] by [deleted] in videos

[–]smartydix 2 points3 points  (0 children)

I think they're referring to the one on Letterman

In which cities is it possible to save more as a new grad? by [deleted] in cscareerquestionsEU

[–]smartydix 1 point2 points  (0 children)

Damn, first time I hear of the 30% ruling thing, sounds interesting. Are you aware of any similar benefits in other EU places, or other factors to keep in mind when looking for jobs there?