Better HN
topnewbestaskshowjobs
Log inSign up

codedokode

9,867 karma · joined Aug 20, 2015 (11y ago) · 5,528 submissions

PHP developer from Russia.
Submissions

comment 2y ago · link · parent

I wonder how does booking.com pay for the tickets? Do they use a new card for every transaction or do they buy thousands of tickets with the same card? Do they use a corporate card or personal card (which might be against ToS)? If they use a corporate card, isn't it easy for Ryanair to see it and block the transaction?

Also, cannot airline see that requests come from datacenter IPs and not from residential?

It looks like it is super easy to block this on airline side.

comment 2y ago · link · parent

Why legalize people who entered illegally? Why have rules and quotas then?

comment 2y ago · link · parent

You forgot about getting into a prison for not paying the fees.

comment 2y ago · link · parent

I was a little confused when reading "Getting Started" page as it is not immediately obvious that you need a vynil player and a timecoded disc to use it.

And I am surprised that there was an open-source software for this.

I wonder if there is software to do scratches using a mouse or a MIDI slider? It looks like Mixxx might allow that using scripting.

comment 2y ago · link · parent

Why do you need gates? No sane person will try to cross on the red light.

comment 2y ago · link · parent

Using online converter is actually a good idea because it is often difficult to install tools like ffmpeg properly; for example, by default Fedora installs a version of ffmpeg which doesn't contains encoder like x264 and it requires googling and trying different commands to fix it.

comment 2y ago · link · parent

This would be great. However, maybe it is better to initiate sandbox via JS, after all necessary resources are loaded.

Also, maybe the user should be able to initiate offline mode for a single page.

comment 2y ago · link · parent

I was curious about feature size (e.g. wire width). The number of transistors can actually be found in some datasheets (don't remember exactly which manufacturer published it though).

comment 2y ago · link · parent

Talking about chips, does anyone know what was the feature size in classical DIP-package chips like 4000, 7400, 74LS, 74HC, 74AC series? I googled around, but for example this Wikipedia article [1] has information only on CPUs, but not on simple logic chips.

[1] https://en.wikipedia.org/wiki/Transistor_count

comment 2y ago · link · parent

Isn't there a problem that if your computer gets hacked, the attacker will be able to bypass 2FA?

comment 2y ago · link · parent

In default configuration in Gnome there are too few combinations and you cannot enter many important characters.

comment 2y ago · link · parent

Also, ImGUI (which is an immediate mode toolkit) is a weird choice for GUI program, isn't it better to use retainted mode library that updates only parts of the window that have changed?

comment 2y ago · link · parent

> There are software implementations of OpenGL but they tend to be rather mediocre at best for performance.

This is because OpenGL is made so that you need to run a program to calculate color of every pixel, even if all you want is to copy a glyph. Obviously it will be slow unless you have hundreds of core running in parallel. Software implementations should either learn to convert shaders to non-parallel optimized loops, or something other than OpenGL should be chosen as a basis for rendering GUI.

comment 2y ago · link · parent

This means we should use national solutions and services instead of someone's else.

comment 2y ago · link · parent

China can has influence over North Korea rather than it will be US (don't forget that there are two Koreas because USA and USSR both wanted to rule Korea but couldn't win against each other).

comment 2y ago · link · parent

In some Western countries voter's lists with names and addresses are publicly accessible, if I understand correctly. Helps to make sure government doesn't add dead souls to vote for them.

comment 2y ago · link · parent

One advantage of Telegram over WhatsApp is that you don't have to display your phone number to your contacts and random people in group chats and blogs.

comment 2y ago · link · parent

Doesn't being scammed and not getting any dates actually prevent cheating? Dirty men didn't get what they wanted, wasted their time and maybe some even gave up on their dreams.

comment 2y ago · link · parent

Why does Australia need help with defence though? I don't remember any country having conflict or issues with Australia, and it is a remote, hard to reach island anyway.

comment 2y ago · link · parent

Is curl API that good? It looks a little weird to me, for example, you need to set URL as an "option", and it is not "optional" despite the name. Wouldn't it be better to pass URL and method to "curl_easy_perform" function?

Furthermore, it seems to use "set option" function with magic values to control in-memory cookie storage which is even weirder: https://curl.se/libcurl/c/CURLOPT_COOKIELIST.html

Also, curl seems to have no built-in function to save data? The user has to implement write callback themselves?

Also, regarding options, curl uses a single function for setting options of different types (numbers, booleans, strings) so typing for an option value cannot be used. Is that a good idea? What C developers usually use in such cases?

comment 2y ago · link · parent

AI should do useful work. Using it for chatbots is the worst application. Nobody needs to chat with robots.

comment 2y ago · link · parent

If the material was good, they would not need to make fake documents, right? Either it is low quality, or it is high quality, but from Russia.

comment 2y ago · link · parent

Cannot compilers auto-vectorize such loops? I think it would be more valuable to teach compilers to recognize such loops rather than simply write the code.

comment 2y ago · link · parent

It should be safe to install software. Just as opening a page in a browser is safe.

comment 2y ago · link · parent

> I hate apps that aren't in the repository

That's not going to be fixed. This is a typical M-N problem. There are too many distros and it would require lot of work to port every app to every distro. Instead, there should be a "platform" (set of APIs) that app can work with and the same app would be able to work in any compatible distro.

comment 2y ago · link · parent

The OS's job is to protect user from malicious apps or apps with vulnerabilities. It does its job very poorly, for example, I have to manually build sandboxes and create users for every app, and I don't understand why this cannot be built-in and automated.

comment 2y ago · link · parent

And because OS allows a video chat app to access wallet's private key.

comment 2y ago · link · parent

Why installing an app allows to "drain wallets"? Why does a video chat app, which is installed from untrusted source, have an access to a wallet private key? Why OS allows this?
1
747576
185