HNHacker News
TopNewBestAskShowJobs

biryani_chicken

181 karma · joined February 27, 2020

submissionscomments
biryani_chicken··on Convincing ChatGPT to Eradicate Humanity with Python Code
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.
biryani_chicken··on Programmimg Pearls (1985)
It's also in archive.org [0] with better quality and several formats for download.

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

biryani_chicken··on Ask HN: Why are JavaScript dependencies so messy?
I feel like a few npm packages only exist to pad someone's cv.
biryani_chicken··on Ask HN: Why are JavaScript dependencies so messy?
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/

biryani_chicken··on Why modern software is slow
> 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?

biryani_chicken··on Two containers with same number detected in Chittagong port
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.
biryani_chicken··on Amazon has a book piracy problem
In some cases, Amazon does the counterfeit themselves: https://www.youtube.com/watch?v=HbxWGjQ2szQ
biryani_chicken··on Is Making Advanced GUI Applications with Godot the Future? (2020)
The docker desktop one for instance.
biryani_chicken··on Designing for non-rectangular browser windows
I thought this was going to be about the notch in smartphones.
biryani_chicken··on Eve Online is getting Microsoft Excel support
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?
biryani_chicken··on 2022 Predictions from 2012
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.
biryani_chicken··on I built a receipt printer for GitHub issues
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.
biryani_chicken··on Island is among the fastest companies to reach unicorn status
So... an adblocker and client-side certificates? Please at least add the client-side certificates.
biryani_chicken··on Toward a better list iterator for the Linux kernel
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.
biryani_chicken··on Self-obfuscating value objects in PHP
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.
biryani_chicken··on GCC: The customer has nuclear weapons. They do not do “bounty”
That would stop the GPL from being a FLOSS license, which would be against the philosophy of its authors.
biryani_chicken··on Japan’s anti-aging vaccine looks promising in mice
At least in this case, maybe as legislators get older they'll become more friendly to the idea.
biryani_chicken··on I'm “still afraid to use spaces in file names” years old
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.
biryani_chicken··on Sysexits – preferable exit codes for programs
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...
biryani_chicken··on Sysexits – preferable exit codes for programs
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.
biryani_chicken··on Fosscord is a free open-source discord compatible chat, voice and video platform
> 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.

biryani_chicken··on Lite XL: A lightweight text editor written in Lua
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.
biryani_chicken··on Catala Lang: DSL designed for deriving implementations from legislative texts
Only for lawyers to use exploits and backdoors.
biryani_chicken··on A different kind of keyboard
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

biryani_chicken··on Social media influencer/model created from AI lands 100 sponsorships
Hasn't Mickey Mouse been advertising things for decades? https://www.youtube.com/watch?v=UHEuxMNlbbc
biryani_chicken··on Social media influencer/model created from AI lands 100 sponsorships
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...

biryani_chicken··on Please, stop forcing a dark theme on a web-site visitors
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.

biryani_chicken··on Please, stop forcing a dark theme on a web-site visitors
> 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.

biryani_chicken··on Egui: An easy-to-use immediate mode GUI
Is this Rust only or is there bindings for C?
biryani_chicken··on Updated GNOME User Interface Guidelines are now official
How do you configure Gnome to show thumbnails in the filepicker? I've never been able to do that.
Page 1 of 3Next →