9,867 karma · joined Aug 20, 2015 (11y ago) · 5,528 submissions
comment 4y ago · link · parent
- the government can print more money and devaluate your savings (it's like a form of tax one cannot avoid). But it is difficult to "print" more cryptocurrency.
- the government can put limits on amount of money one can withdraw from a bank account. So you legally have the money but cannot use it.
- the bank can refuse to deal with you under AML acts without need to prove anything. But nobody will ban you from mining and exchanging crypto.
- the bank can go bankrupt
The most reliable way to keep your savings safe seems to be to store it as gold. However, there are usually high taxes for buying/selling gold (because why let people store their savings safely) and often governments outright ban gold (folks from US are probably familiar with such situations [1]).
comment 4y ago · link · parent
If you want to get a single number or column of numbers - then yes, you can go with an SQL query. But if you need to get data about products in a store, you'll have to fetch the data and create objects for every product. Wow, you have just written an ORM.
comment 4y ago · link · parent
ORM however might be slow. For example, taking 100 rows from SQLite with SQLAlchemy takes 1ms, but getting them as ORM objects takes 8 ms.
comment 4y ago · link · parent
comment 4y ago · link · parent
By installing signal-desktop you give Signal not only access to your messages (which is fine), but root access to the whole system which allows reading and modifying any file. Even if Signal doesn't have malicious intents, they might have vulnerabilities in their installation or configuration scripts.
comment 4y ago · link · parent
Sadly debian-based distributions do not respect the principle of least privileges and grant unnecessary permissions to installation scripts.
comment 4y ago · link · parent
The placeholders are blurred and I assume that creating blurred images is pretty expensive and takes O(N^2*M) where N is size of the image and M is number of points.
Wouldn't it be cheaper to use blocky placeholders that take only O(N^2) time to paint?
comment 4y ago · link · parent
I would instead manually download and unpack the app, create separate user for it, and run it in chroot. Much safer than your method.
comment 4y ago · link · parent
Sadly many Linux distributions do not have user-friendly ways to install third-party applications and as a result we see instructions on running curl via sudo bash.
comment 4y ago · link · parent
It is obvious that CLI commands should produce machine-readable output because they are often used in scripts, and accept machine-readable input as well. Using arbitrary text output was a mistake because it is difficult to parse, especially when spaces and non-ASCII characters are present.
A good choice would be a format that is easily parsed by programs but still readable by the user. JSON is a bad choice here because it is hard to read.
In my opinion, something formatted with pipes, quotes and spaces would be better:
eth0:
ip: 127.15.34.23
flags: BROADCAST|UNICAST
mtu: 1500
name: """"Gigabit" by Network Interfaces Inc."""
Note that the format I have proposed here is machine-readable, somewhat human-readable and somewhat parseable by line-oriented tools like grep. Therefore there might be no need for switches to choose output format. It is also relatively easy to produce without any libraries.Regarding idea to output data in /proc or /sys in JSON format, I think this is wrong as well. This would mean that reading data about multiple processes would require lot of formatting and parsing JSON. Instead or parsing /proc and /sys directly, applications should use libraries distributed with kernel, and reading the data directly should be discouraged. Because currently /proc and /sys are just a kind of undocumented API.
Also, I wanted to note that I dislike jq utility. Instead of using JSONPath it uses some proprietary query format that I constantly fail to remember.
comment 4y ago · link · parent
[1] https://developer.android.com/reference/android/os/UserManag...
comment 4y ago · link · parent
So basically ISP don't want to do anything to prevent misuse of their infrastructure because it is more profitable this way.
> It also creates a nice DoS vector: if I want to not take an exam today, I'll just do a little ping flood from the school network and get banned for a while.
The idea is that you can only block traffic going from school network to your site, but not any other traffic from that network.
comment 4y ago · link · parent
The problem is that there is no protocol for rejecting traffic. That's why DDOS is so easy and successful. If you are a website you cannot send a message to uplink saying "I don't want traffic from this network". So small and large ISPs do nothing to help protect victims and make it easy for criminals to extort money.
comment 4y ago · link · parent
Also this information can be useful for foreign spies (for example to find employees of companies doing work for defence).