Recent submissions

Comment · 4 months ago
I'm not a lawyer, and I don't live in the EU. Sorry for the silly question.

Is there any EU law that prohibits minors from encrypting their messages or using, for example, PGP keys?

How can they protect children if the children deliberately encrypt their messages?

Comment · 1 year ago
What do you mean by “terminal”? Perhaps you are referring to something like a VT100.

https://commons.wikimedia.org/wiki/File:DEC_VT100_terminal.j...

I may disappoint you with the fact that IBM PC-compatible computers have replaced devices of that class. We can only observe certain terminal emulators in some operating systems. There have been many attempts to expand the functionality of these emulators. However, most features beyond the capabilities of VT100 have not caught on (except UTF-8 support). I do not believe that anything will change in the foreseeable future.

Comment · 1 year ago
Comment · 1 year ago
What other algorithms have you used? I'm really interested in big data streams. I would like to hear not only successful solutions, but also failed ones. Have you tried using Bloom filters? Is it possible to merge shards using the Min-Heap algorithm?
Comment · 1 year ago
Comment · 1 year ago
Comment · 1 year ago
Explain to me what tasks can be solved in the approach with flows? I used Node-Red in some automation processes. I managed to solve only simple problems that are easy to solve without AI. But how do you program in this style? What does the flow style look like, for example, a program to find the shortest solution of a sokoban or game 15?

PS. Usually, when I need to make all photos in the folder black and white, I use imagemagick.

Comment · 1 year ago
For positive numbers, both the FLOOR() and TRUNC() functions return the same values
Comment · 1 year ago
Has anyone ever wondered why in the US the week starts on Sunday, but in Europe and Asia it starts on Monday?
Comment · 1 year ago
WebSocket solves a very different problem. It may be only partially related to organizing two-way communication, but it has nothing to do with data complexity. Moreover, WS are not good enough at transmitting binary data.

If you are using SSE and SW and you need to transfer some binary data from client to server or from server to client, the easiest solution is to use the Fetch API. `fetch()` handles binary data perfectly well without transformations or additional protocols.

If the data in SW is large enough to require displaying the progress of the data transfer to the server, you will probably be more suited to `XMLHttpRequest`.

Comment · 1 year ago
I'm confirming. Often, when you run a script on more than just your own computer, bash is located in unexpected places.

For me, for example: `/data/data/com.termux/files/usr/bin/bash`

In such cases, scripts containing the absolute path to bash in shebang do not run correctly.

Comment · 1 year ago
ESP32 has 18 ADC input channels. But if you are using Wifi, you can only use 8 of the 18 for ADC conversion: GPIO pins 32-39.

Other 10 pins, on which ADC2 channels are possible, can only accept pulse data if you are using Wifi.

This is probably due to firmware limitations.

Comment · 1 year ago
There is a website that contains thousands of such examples.

https://www.dwitter.net/

Dwitter is like Twitter, but for one-line javascript examples using canvas. Users are limited to 140 bytes in their creations.

Comment · 1 year ago
I've never understood how generating dozens of variables containing the same color with a change in the value of one of the channels helps.

Can't you just write everything you need in simple CSS?

It would be better, really come up with a template in which you enter 2 colors, and it gives a unique full-color design for the site. CSS has all the possibilities for this! But most web-masters use CSS variables only to store the results of each iteration of cycles.

Comment · 1 year ago
> Skia is for drawing vector graphics.

What do you mean by "vector graphics"?

Both Canvas and ImageData work only with pixels.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton