Better HN
topnewbestaskshowjobs
Log inSign up

biryani_chicken

181 karma · joined Feb 27, 2020 (6y ago) · 78 submissions

Submissions

comment 3y ago · link · parent

Can it write a better AI than itself? Then use that to write an even better AI, and so on. Write one without the restrictions about harming humans, then go for the code to destroy humanity.

comment 4y ago · link · parent

It's also in archive.org [0] with better quality and several formats for download.

[0] https://archive.org/details/ProgrammingPearls2ndEditionJonBe...

comment 4y ago · link · parent

I feel like a few npm packages only exist to pad someone's cv.

comment 4y ago · link · parent

PHP's dependency management is actually quite nice. The community developed a standard [0], a client [1] and repository [2] that pretty much deal with everything I've had to do with PHP dependencies without issues.

[0] https://www.php-fig.org/psr/psr-4/

[1] https://getcomposer.org/

[2] https://packagist.org/

comment 4y ago · link · parent

> For example, did you know that you can type https://www.microsoft.com/ into Notepad’s File Open dialog?

I tried it. Everything in the File Open dialog got disabled except for the cancel button for about 30 seconds until it loaded. For comparison, curl took 2.3s (250ms in later runs so probably waiting for curl to load) and my browser took around 250ms with cache disabled as well.

Why does it take Notepad so long?

comment 4y ago · link · parent

I'd assume the containers were labeled at different ports and by chance got sent to the same port. So the persons looking at the containers only had one to worry about. And with both going to the same destination one person probably shrugged when they saw the origin port was somewhere else.

comment 4y ago · link · parent

In some cases, Amazon does the counterfeit themselves: https://www.youtube.com/watch?v=HbxWGjQ2szQ

comment 4y ago · link · parent

The docker desktop one for instance.

comment 4y ago · link · parent

I thought this was going to be about the notch in smartphones.

comment 4y ago · link · parent

I remember the Destiny app allowed you to send items from your local inventory to your vault, which was nice, but I always wondered why didn't they just add that functionality to the game itself. An artificial way to increase usage of their app?

comment 4y ago · link · parent

As someone who doesn't like cooking, guides with actual strict measures (and then tools to strictly measure) would be nice. I never know how much does a tiny bit of olive oil means.

comment 4y ago · link · parent

I once got a phone's speech-recognition system to recognize another's text-to-speech system, just to see how accurate they'd be. And I know one game that has a speech-recognition system to post in chat and then other players can use text-to-speech to read the chat aloud. Fun times.

comment 4y ago · link · parent

So... an adblocker and client-side certificates? Please at least add the client-side certificates.

comment 4y ago · link · parent

Some of the comments in the page mention Zig. While Zig has iterators for slices, the simple "for" loop (that actually uses the while keyword) makes you define the variable outside the loop:

    var i: usize = 0;
    while (i < 10): (i += 1) {
        //use i
    }
I hope they fix this before 1.0.

comment 4y ago · link · parent

Sounds like it would be a good idea to get the CI process to check for usage of debugging functions. I'm sure it would be possible to write a phpstan rule to forbid var_dump. Maybe another solution would be to make them noops on production.

comment 4y ago · link · parent

That would stop the GPL from being a FLOSS license, which would be against the philosophy of its authors.

comment 4y ago · link · parent

At least in this case, maybe as legislators get older they'll become more friendly to the idea.

comment 5y ago · link · parent

You don't even need to rearrange the folders themselves, just show them like that in the file explorer. Same way the windows explorer does.

comment 5y ago · link · parent

Microsoft has an error lookup tool [0]:

    $ err 2450
    # for decimal 2450 / hex 0x992
      NERR_BadUasConfig                                     lmerr.h
    # /* The user accounts database is not configured correctly.
    # */
    # No results found for hex 0x2450 / decimal 9296
    # 1 matches found for "2450"
[0] https://www.microsoft.com/en-us/download/details.aspx?id=100...

comment 5y ago · link · parent

I remember the Jetbrains IDE's bash script used a code to mean restart the application by putting it in a loop and breaking unless it got that exit code.

comment 5y ago · link · parent

> What makes discord is the community around it

Which means I could swap clients and still participate in the same community, which seems to be what this project is about.

comment 5y ago · link · parent

After using vscode for a while, lite is amazingly fast. It is now my default editor for things that don't need a specific vscode extension.

comment 5y ago · link · parent

Only for lawyers to use exploits and backdoors.

comment 5y ago · link · parent

There's this really interesting (touchscreen) keyboard for android called 8vim in which you write by drawing circular shapes. I can attain a decent speed after using it for 30 minutes but haven't really kept it on for long: https://f-droid.org/en/packages/inc.flide.vi8/

It's actually a clone of another keyboard, 8pen, which was abandoned. Here's a video of how it works: https://www.youtube.com/watch?v=99vsUF4NuLk

comment 5y ago · link · parent

Hasn't Mickey Mouse been advertising things for decades? https://www.youtube.com/watch?v=UHEuxMNlbbc

comment 5y ago · link · parent

You reminded me of a Shrine in Japan they demolish and rebuild every 20 years[0]. I guess they embrace the ephemerality of life.

[0] https://knowledgestew.com/japanese-shrine-rebuilt-every-20-y...

comment 5y ago · link · parent

I think you are misunderstanding the feature. Dark mode makes your OS tell all UI to show in a dark color scheme if it has that option. The websites are just doing what you are asking them to do.

What you want is light mode but to use a dark theme on your native UI. You can easy change that in GTK and QT and I remember it was possible to do in older versions of Windows. That will not change the prefers-color-scheme in your browser.

comment 5y ago · link · parent

> Users often use dark theme to distinguish UI from content, not blend content with UI.

Err, no. I use dark theme because I like dark themes. But I do think the OS should give you more options, like multiple colorblind modes like some modern video games do.

29.

The Python Launcher for Unix(snarky.ca ↗)

1 points · by biryani_chicken · 5y ago · discuss

comment 5y ago · link · parent

Is this Rust only or is there bindings for C?
123