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 4y ago · link · parent

The article says that we sample random values by walking on a grid. But doesn't it mean that this way the values that we draw will be close to each other?

For example, if we have a 2-dimensional grid of size 1000x1000 and make 10 steps, all the values will be close to each other. Doesn't look like a good random sample.

Knowledgable people, please explain.

comment 4y ago · link · parent

I think a HTML-only browser without support for CSS and JS might help.

comment 4y ago · link · parent

Yes it is interesting how developers race to push new features allowing deanonimization of VPN users and better fingerprinting.

There is also WebGL whose main purpose is to provide user's videocard model to advertising companies and governemnt institutions.

comment 4y ago · link · parent

I don't think that there are many people using WebRTC especially within the same LAN, but fingerprinting is used by almost every commercial site. So I can assume that this "feature" was used in 99.99% cases for fingerprinting.

This shows how browser developers race to push new features without proper estimation of privacy concerns.

Luckily this was somewhat fixed by using randomized Apple mDNS names instead of IPs. But as a result the browser has to support Apple DNS protocol which can potentially increase attack surface.

I would prefer to disable this feature completely by default and let the minority who needs it enable it via settings.

comment 4y ago · link · parent

There is also sphinx search which was open source before 3.0 version.

comment 4y ago · link · parent

I am not sure if it can be called an "alternative". ElasticSearch has thousands of features and settings while this library seems to be just a simple inverted index implementation only for text search.

By the way if you are looking for lightweight "alternative" for ElasticSearch you might look at sphinx search engine (although it doesn't has as much features as ES has and it has became closed-source since 3.0 version).

comment 4y ago · link · parent

> Sonic here only returns document identifiers

In many cases that is what you want because you have the data in a database and don't want to duplicate it in Elastisearch.

comment 4y ago · link · parent

You are suggesting a workaround instead of solving the original problem.

comment 4y ago · link · parent

And I have to enable showing them on every system I work with (and add -a to every ls command, and google which option enables incldues them in pattern expansion). That is annoying.

comment 4y ago · link · parent

> If a user doesn't know what .ssh/ or .bash_history are, and it can hurt them to accidentally delete or modify them, why show them by default?

Because they are there. To prevent accidental deletion you can show an icon with a skull and crossbones or name a directory "configuration files" so that it is obvious what's in there.

> if they do get them there is no safeguard to stop them destroying the system

If the folder are named or labeled as "operating system" then the user will probably understand that it is better not to mess with it.

> In what reality is someone developing software and building Docker containers who doesn't understand the concept of hidden files?

Hiding hidden files is annoying because you have to add -a to ls command, have to add an option in Bash to include then when matching against a star pattern and to configure Explorer so that it shows them. It would be easier without them.

comment 4y ago · link · parent

Hiding thumbnails cache is bad because a user might believe that the USB drive is empty and doesn't have any confidential data but the thumbnails cache might still have them.

There is no need to hide such files. Just display them as system files in Explorer.

> The standard Unix folders (usr, var, etc) are also hidden

Again there is no need to do it. Just move them to a directory named "System files".

comment 4y ago · link · parent

Ridiculous that they use a real CPU, 512Mb of RAM and Linux to just implement a simple controller. I would prefer they use something like Arduino.

comment 4y ago · link · parent

It is convenient because you can delete ~/.cache any time without losing configuration files.

comment 4y ago · link · parent

> I prefer the app placing the config in the same place on every system.

That is impossible because in Linux there is no drive letters and you cannot have the same path to a file as in Windows.

comment 4y ago · link · parent

I think "hidden" files are a bad idea. What's the point of hiding some of the files in a directory from user? It only makes things more confusing.

For example the folder might look empty but in fact it could contain thousands of hidden files. You want to delete it as it is empty but accidentally delete important system files.

Even worse, imagine if all files on an USB drive are marked as hidden. You see that the drive is empty but when you attempt to copy something to it see a message that there is no free space.

One more example. Imagine if you have a project and want to edit an .env file. But as dotfiles are hidden in Linux you don't see this file and cannot open it. It turns out that Windows Explorer which doesn't hide dotfiles is much better for developing projects with Docker!

There should be no hidden files. We cannot do anything with Windows and their MS-DOS legacy but Linux could stop hiding dotfiles in GUI and CLI commands.

comment 4y ago · link · parent

This problem can be solved by simply not storing anything in the home directory. Kepp your files in a separate directory like /data or /files and leave home directory for configs.

Storing your files in /home is also bad because usually /home uses Linux-specific filesystem and you won't be able to access your files from Windows. Storing files in NTFS partition solves this problem.

comment 4y ago · link · parent

PureData is an interesting tool, but it is very low-level. You have to reimplement from scratch things that are present in most DAWs or synths, for example: there is no GUI-controlled equaliser, no reverb. No oscilloscopes and FFT displays.

If I am not mistaken, there is even no primitive for modulating frequency of one oscillator with another.

The filters are very primitive and limited. The user is expected to learn the theory themselves. As far as I remember, there is no filter that can be modulated with audio frequency (without artifacts) and it is difficult to find information how to create one. Does anybody know how to do it, by chance?

comment 4y ago · link · parent

No I cannot agree that Nvidia naming system is any good.

First, one could think that larger number means larger performance but this is not always the case. Second, one might think that "Ti" or "super" GPU is better than a regular one in every aspect but this is not the case also.

The same is about Intel. The best naming scheme is where numbers reflect performance or core count or cache size so that they can easily be compared by a consumer.

comment 4y ago · link · parent

1) they could have developers from 3-rd world countries who have necessary skills but get low pay rate

2) they could have developers from countries currently under sanctions

comment 4y ago · link · parent

It would make sense to disable this with new release of HTML, for example if the author uses an HTML6 doctype.

comment 4y ago · link · parent

I think that there should be a list of officially supported laptops and if you bought anything else then it is your problem and you are welcome to write necessary patches.

It is unfair when people install Linux on an incompatible hardware and then complain.

comment 4y ago · link · parent

I don't think that Linux should support any hardware, especially if its vendors do not provide drivers and documentation.

Instead, there should be an actual list of well supported devices and people should buy only them.

comment 4y ago · link · parent

How can a single, unprivileged process in an multi-task OS cause such effect?

comment 4y ago · link · parent

> Communications software is powerful enough to put fear in the hearts of political rulers!

Of course it is. No government wants people to get falseful information from unapproved sources.

comment 4y ago · link · parent

Could it be that WhatsApp has a mechanism for ISP and telcos to block calls to prevent unnecessary competition? Like Apple has one to prevent using Apple's VPN?

comment 4y ago · link · parent

I am sure that you are wrong. For example, imagine if Facebook would promote pro-Russian content and hide pro-Ukranian or pro-NATO content in the newsfeed. Perfectly legal, but how long they will be able to pull it? I don't think it will be more than 1 or 2 weeks.

So it is your server only as long as you ban outcasts like 8chan and don't cross paths with people in the power.

comment 4y ago · link · parent

If the court orders to "block whatever IP this domain resolves into" then you can have much fun by pointing domain to government and bank websites.

Some people played this kind of game with Internet censorship in Russia.

comment 4y ago · link · parent

This has a great potential for advertising. Everyone likes to get unique offers delivered into theirclipboards.

I think that copy/paste in browser should only be done with hotkeys like Ctrl + C/V or using menu. Sites should not have access to clipboard on click/tap because it is easy to misuse.

comment 4y ago · link · parent

> The fTPM clearly affects the system stability, even under an OS where it’s not in use.

This is probably a code that works in SMM mode, and it has a priority even over ring 0 code. SMM is one of the worst CPU features, it is basically a backdoor in your system that can do anything and you cannot even see it. Even if you run Linux you have no control over SMM code, it can hang your system and you cannot even debug it.

Also this shows a weakness of an "open" PC model where poorly tested hardware and low quality firmware from different vendors are assembled together. I cannot imagine this happening on an iPhone for example.

comment 4y ago · link · parent

All cryptocurrencies are not compliant with KYC. You don't need to provide any documents to create a Bitcoin wallet (and that's great).
1
105106107
185