9,867 karma · joined Aug 20, 2015 (11y ago) · 5,528 submissions
comment 4y ago · link · parent
comment 4y ago · link · parent
Hiding errors is always a poor choice. Only if you are low paid developer not interested in making a quality product then probably you like browser's behaviour.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
Also it is difficult to find non-jQuery library of a good quality. For example, I was looking for a small library to send and receive JSON via HTTP, and ended up writing my own wrapper around XMLHttpRequest (fetch() is a poor choice, it is not supported well in older browsers and it has no advantages, and fetch() requests cannot be aborted) because there was no good library for this. Other libraries either do not support all necessary browsers or are overengineered and too large.
comment 4y ago · link · parent
Also, in Python integers do not overflow, unlike in Rust, C and other buggy languages.
If you name a language, with high probability Python will be better in something unless it is about performance.
What I don't like: no type hints in many libraries, some libraries are not type-hint friendly, lot of unnecessary dynmamic features (like being able to patch modules in runtime) and absolutely no caring about performance and being able to compile into machine code.
> trying to figure out what some dynamically typed code is doing
There should be type hints.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
Also, dotfiles don't work well with masks because `*` doesn't match dot-files, and `.*` match all dotfiles including . and .. which causes many programs to fall into endless recursion (for example, `du -sh .*`).
Everything related to dotfiles in Linux is done wrong.
comment 4y ago · link · parent
So for example, if there is a village with two people, and they rent each other's home then this village has non-zero GDP, although no goods or services are produced.
Inflated education, medical or insurance prices also inflate GDP. So a teacher in one country could produce 2x more GDP per unit time as the same teacher in another country.
Another wrong thing to do is to adjust income or GDP for food prices (purchasing power parity). This is absolutely wrong. The idea of PPP is that if in your country potato is two times cheaper then it makes you two times richer. This is wrong because a MacBook or a car are not two times cheaper. Actually they are more expensive than in the West. And if you go abroad then there will be no cheap potato either. So PPP is a total lie. It can be applied only to poorest people who spend all of their income on potato.
So if you want to adjust the income for PPP, at least use MacBook or car prices instead of potato.
I think that a fair metric would be a percentile distribution of how much money a person has left after renting the cheapest apartment and buying the cheapest food.
comment 4y ago · link · parent
Just adding comments and multi-line strings doesn't make it human-readable, it is still too bloated and I don't like writing it manually. If you want a human-readable format, try at least to remove unnecessary quotes, brackets and commas and make it look similar to YAML.
JSON is not intended to be used in configs and other user-editable files.
comment 4y ago · link · parent
For example, here [1] they show a separate VM for the USB stack. But why do you need it if you can simply run USB stack in protected mode?
Also, I assume that running so many VMs requires a lot of drive space and hurts performance.
comment 4y ago · link · parent
> Otonomo is one example of the dozens of companies that market their attempts at keeping information anonymous. Otonomo describes its platform as having “privacy and security by design” and notes the use of patented “data blurring” technology to protect user privacy.
> It also has an “Otonomo Driver Pledge” page promising drivers the ability to easily grant or revoke access to personal data,
This doesn't add up. If they collect only anonymized data, then they won't be able to find that customer's data and do anything with it.
comment 4y ago · link · parent
Also, this shows that no matter if you pay for the product or not, you become the product for squeezing the data anyway.
Also, this could be a national security issue everywhere except US if US government would be able to track the cars all around the world. For example, what if they will track the cars used by defence industry employees or military personnel?
Such tracking equipment should be banned for import, but it is more likely that local government will just ask to provide the data to them too.
comment 4y ago · link · parent
Is it really convenient? I don't like to wait and would rather prefer to press a sequence of "Compose", "a", "1", (or, which is faster, "a" and "1" simultaneously). And make a popup appear when "Compose" + "a" is pressed.
Linux has Compose key, but it is implemented poorly, it doesn't provide an UI for selecting character and discovery of combinations, and in Gnome it has very small choice of characters.
Another alternative would be to insert accented characters automatically.
comment 4y ago · link · parent
I have another hypothesis on "smoothness" of animated images. Most of computer-generated animations are unnatural and not cinematic because the objects jump between frames instantly while in real life and on a camera film they move smoothly. The hypothesis is that if the animation was closer to real life, then it would look really smooth even with lower fps, for example, 24 fps or 30 fps.
For example, when moving a mouse cursor, it jumps between points every 16 ms instead of moving smoothly. You could argue that a human is unable to notice such tiny details, but here is a simple test to find out: take a mouse and move it in a circle, so that it makes 2-3 turns per second. If a real object would move with such speed, all you would see would be a blurred circle (you can take any real object and see for yourself), however with a mouse I can clearly see a circle made of about 10-15 mouse cursors. So the animation of mouse cursor is unrealistic, computer-like and it can be easily seen (I noticed this effect long time ago but initially thought that it is a problem with Linux or slow graphics card).
So to make a smooth animation you could use oversampling: generate an animation at say 6000 fps, and blend every 200 frames together (remember about non-linearity of RGB values when mixing colors). If by chance anyone has some free time and curiosity, could you test it?
comment 4y ago · link · parent
Machine learning typically uses existing data to predict new data. Please explain: Does it mean that AlphaFold can only use known types of interactions between atoms and will mispredict the structure of proteins that use not yet known interactions?
And why we cannot just simulate protein behaviour and interactions using quantum mechanics?
comment 4y ago · link · parent
comment 4y ago · link · parent
Apple should fix this by creating a kid mode, where the user can only contact people approved by parents and visit sites approved by parents or conforming to kid safety requirements. In this case the children will be perfectly safe.
Why Apple doesn't do it? I guess because it is unprofitable, it requires major investments and doesn't promise any returns.
Kids must be banned from the Internet completely instead of trying to patch different issues here and there.