Better HN
topnewbestaskshowjobs
Log inSign up

leddt

398 karma · joined Jun 22, 2011 (15y ago) · 123 submissions

[ my public key: https://keybase.io/leddt; my proof: https://keybase.io/leddt/sigs/uuda0dSu9WbM_9e5JFqtcq_ZBtxP-oLJwAFp2xuerbo ]
Submissions

comment 1y ago · link · parent

That was pretty hard! It took me a bit over 2 hours. It took me a long time to get started, it felt impossible. But I found a lot of satisfying "ah ah!" moments that kept me going.

Really well done, but now I don't ever want to do one of these again.

comment 2y ago · link · parent

Absolutely!

comment 2y ago · link · parent

Exactly! Their docs are here: https://linktree.notion.site/API-d0ebe08a5e304a55928405eb682...

It has a 10 request per minute rate limit, but no api key needed, so each user runs their own queries.

comment 2y ago · link · parent

No, sorry. The code should be pretty easy to port, if you want to give it a go.

https://github.com/leddt/music-link

comment 2y ago · link · parent

I made a very simple chrome extension that automatically redirects you to your preferred music service when visiting another service. In my case I have it set to YouTube Music, so if I click a Spotify (or other) link in Slack, I'll be redirected to YouTube Music.

https://chromewebstore.google.com/detail/music-link/gnhphofp...

comment 5y ago · link · parent

More likely millions per hour. But even then it's not like all those sales will be lost. Most people will probably just come back later to make their purchase.

comment 6y ago · link · parent

Looks like the benchmark was cpu bound, so I doubt going to an even lower resolution would help much.

comment 6y ago · link · parent

You can see on the photo at the top that they were running at 1280x720. As for graphics settings I would guess minimum.

Edit: seems mobile and desktop have a different crop of that image. Here is the image that shows 720: https://images.ctfassets.net/rporu91m20dc/1XYHhlYZzNI1NxRRJl...

comment 6y ago · link · parent

Having played both, my opinion is that they are very different games. Satisfactory is much simpler in its mechanics.

Factorio is built on a custom engine and heavily optimized. I doubt you can build a factorio-style mega base in satisfactory and keep things performant.

Factorio has procedural map generation, enemies that build bases and attack you, blueprints, construction and logistics robots, logic circuits, incredible mod support, and you can play with dozens of people in multiplayer and things stay performant and enjoyable.

In the the two games chose a very different development cycle. Factorio released early and often and listened to their community by adding and changing what players were asking for. Satisfactory first released a game that was pretty close to finished, and released, so far, very few updates.

I will say that I enjoy both games, but for different reasons.

comment 6y ago · link · parent

Actually, I'm pretty sure those are generated by a neural net. There are clear artifacts on the images that give it away. Maybe the author experimented with different source material before going for abstract paintings.

comment 6y ago · link · parent

That's one definition. Another valid definition of a framework would be something that is a fundamental part of your project, or something you build upon, whereas a library would be something that you use to enhance a particular part of a project. Bootstrap would seem to fit that definition in most cases.

comment 6y ago · link · parent

The difference with PCs is that since the hardware is standard, developers can now create gameplay that depends on those capabilities.

Until all (or most) PCs are equiped with high performance NVMe SSDs, those kind of features won't be possible other than on consoles.

Also, the PS5's architecture is optimized end-to-end for faster loading times, it's more than just faster storage.

comment 6y ago · link · parent

Depends on what packages you install, but my VS 2019 install folder is 2.5GB.

comment 6y ago · link · parent

I have had a similar experience when first using a 144hz display. I was amazed how responsive the mouse was. How "in control" I felt.

Then, going back to a 60hz display, I couldn't NOT see the gaps left by the cursor's movement. I had never before seen this as a problem, but seeing something better ruined 60hz for me.

comment 6y ago · link · parent

I'm French Canadian and I usually avoid the space before those characters because they have a tendency to wrap on a new line by themselves. You are supposed to use non breaking spaces but most tools won't do it automatically, and they are not trivial to type.

comment 7y ago · link · parent

Since the refresh-token is single-use, the user will be logged out when trying to refresh their own token, and will presumably then login again, which should invalidate the attacker's refresh token.

But I agree it's not a perfect system. This is meant to specifically address the problems of long-lived tokens, since JWTs are hard to revoke without checking a blacklist on the server-side.

The main problem is that localStorage is more vulnerable to some classes of attacks than secure, http-only cookies.

comment 7y ago · link · parent

In our app the JWTs have a 5m lifetime. When a JWT is generated we also generate a single-use refresh token.

When a client tries to use an expired JWT the request fails, and the client will then exchange the refresh token for a new JWT/refresh token pair, and finally retry the request with the new token.

The refresh operation can reject the request if the user has been deactivated (it's basically a new login request, using the expired JWT as the username and the single-use token as the password).

comment 7y ago · link · parent

Windows Server (Standard and Datacenter editions) licenses include permissions to run unlimited windows containers on top of them. So you would only need to pay for the licenses of your hosts.

https://www.microsoft.com/en-us/licensing/product-licensing/...

comment 7y ago · link · parent

A passphrase can easily exceed 20 characters and be memorable. They are usually considered a good security practice for people not familiar with (or not willing to use) password managers.

comment 7y ago · link · parent

Vulkan runs on Windows.

comment 7y ago · link · parent

I have not played the game, so this is only from what I've read [0], but it is my understanding that they designed a progression system that strongly pushes people to pay. Also, while not strictly "loot boxes", you are still able to indirectly pay for random items because the drops are linked to level progression, which can be sped up with micro-transactions.

[0] https://kotaku.com/the-free-gear-in-black-ops-4-is-an-unforg...

comment 7y ago · link · parent

Aren't many consoles sold at or near (or even below) cost, on the assumption that software sales will make up for it? Also, how would a console sold by Sony or Microsoft subsidize in any way a game sold by a third party publisher?

comment 8y ago · link · parent

DataLoader

comment 8y ago · link · parent

I'm guessing they invalidated all access tokens for accounts that have been used as "View As" targets since the issue was introduced.

They also disabled "View As" which is the actual fix for the time being.

comment 8y ago · link · parent

Looks like the code for IsPassword [1] checks for the presence of a number + a special character. If the text contains a space, or is longer than 16 characters, it is not considered a password.

[1] https://github.com/oormicreations/ClipboardPlus/blob/master/...

comment 8y ago · link · parent

Did you see the hidden message? I'm not sure what it means. (Treasure at the root of esabyeK)

comment 8y ago · link · parent

Buying a 144Hz display was both a great and horrible decision for me. Great because games at 144Hz feel extremely smooth. Horrible because now I can't enjoy 60Hz.

comment 8y ago · link · parent

I love the morning brew but it has gone down in quality over the years. There used to be a short summary of every link but these days it is just a list of links.

I still check it every day but I find that I click through less and less of the links.

You gotta respect Chris though for keeping it going for over 11 years now!!

comment 8y ago · link · parent

Do you happen to know if watching the movie with a VR setup on a virtual big screen could replicate that experience?

comment 8y ago · link · parent

I don't see the scam here. If you have to go through password reset to get into the account and update the CC number, then the would be scammer does not have access to that account anymore (assuming Netflix logs you out of other devices when you change your password).

Sure, you end up paying for an account you don't use, but nobody gains from that (other than netflix). It certainly is an issue that can easily be fixed by netflix validating email addresses, but I don't see any incentive for scammers abusing it.

12345