Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
alerighi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
301.
▲
by
alerighi
4y ago
Musl is liked since it has a non-copyleft license and thus can be used to produce statically-linked executable that are distributed with proprietary licenses. Also Musl is smaller than GLibc thus more suitable for embedded systems. Anyway,
302.
▲
by
alerighi
4y ago
If you don't want to implement a console (that is fair) you can just use the console provided by the BIOS (the VGA console, as DOS did back in the days) or nowadays UEFI (as for example GRUB or even Linux if you don't load a graph
303.
▲
by
alerighi
4y ago
Why? To me it doesn’t make sense not to do so. What kind of security gives you logging it as non root user and then using sudo (maybe even without a password) to become root? Root makes everything more easier, for example to copy a file on
304.
▲
by
alerighi
4y ago
Unless you are defending from the NSA or something like that, I don't think anyone has the resources to do that kind of attack, even if in theory it's possible. Also, if you have that level of paranoia, you probably don't inv
305.
▲
by
alerighi
4y ago
It would be super convenient to avoid having a mess of cables and a switch behind your TV, or having to use Wi-Fi, that has its limitations, especially these days with higher and higher bitrates.
306.
▲
by
alerighi
4y ago
Depends on what you use. To me Visual Sudio is the best and most gestire complete IDE on the market and C# one of the best language. Every time I program on another system I miss Visual Studio.
307.
▲
by
alerighi
4y ago
I think this is a stupid thing. Repurposing a commonly used connector for other things to reuse cheap connectors and cables is something that is usually done in the electronic industry (e.g. my oscilloscope use an HDMI socket for the logic
308.
▲
by
alerighi
4y ago
I don't get what it's all about this passwordless. I make my browser (Firefox) generate strong password and store them in its password manager, this is synchronized with end to end encryption to all my devices, I have only to reme
309.
▲
by
alerighi
4y ago
You have a lot of ways to discover new songs, friends, radio, YouTube. Then when you find the song that you like you can download them, possibly not from YouTube but in FLAC quality (that is better than the shitty mp3 that Spotify gives you
310.
▲
by
alerighi
4y ago
I recently switched to Tidal. Same price, better audio quality, better user interface. I try it out for a couple of months to see how it goes. By the way, I'm always tempted to go back to pirating, and use these services just to discov
311.
▲
by
alerighi
4y ago
Always seamed to me overengineered. Maybe is because I'm skeptical about automations, and I like physical buttons, one button that does something, and automations made in solid and reliable ways (such as mechanical relays for example).
312.
▲
by
alerighi
5y ago
It's the same code. Async/await is just syntactic sugar over the promise syntax. To me depends on what you are doing, there are cases where using .then()/.catch() and .finnally() makes the code more concise and simpler than u
313.
▲
by
alerighi
5y ago
It would also be useful in cases when the file must be written with root privileges (but the shell is run as a normal user) Now you have to use `tee` for that, that is fine but if you don't want to echo the file back to the terminal yo
314.
▲
by
alerighi
5y ago
This is good because I always ended up removing the defualt user and creating another or just using root. You can always mount the SD card partition and put your ssh key into /root to log in with that. An improvement could be to also l
315.
▲
by
alerighi
5y ago
To be a developer you don't even need to go to university. I know a lot of valid developers with a technical high school diploma, and I see that most of the time are better than a lot of people with a degree (or even a master degree).
316.
▲
by
alerighi
5y ago
Why do you need to rebuild parsers from scratch? You can just use Chromium. Want to build a PDF form an HTML page? You can launch chromium in headless mode and tell it to print your HTML. Guaranteed that you will have a good result. I don&#
317.
▲
by
alerighi
5y ago
And even if you can recompile everything, it's still a pain to do so, and it's better to avoid doing so. Also recompiling the software may not be as simple, for example can require modifications of its source code to adapt it to n
318.
▲
by
alerighi
5y ago
Macros doesn't have that utility in a language with high-order functions.
319.
▲
by
alerighi
5y ago
Why an array with zero element should be false? It doesn't make a lot of sense. And writing if (array.length > 0) is more explicit than writing if (array) anyway. Even in python, I prefer to be explicit and say if len(array) > 0
320.
▲
by
alerighi
5y ago
Removing alert is nonsense, and I don't think they will ever do (without breaking a ton of websites that use it). Why as a developer should I have to make a modal with HTML+CSS+JS to show it to just have a prompt that inform the user a
321.
▲
by
alerighi
5y ago
I will never understand why we change the clock instead of changing our habits. Well, maybe in a time when we didn't have computers it was simpler to just put the clock ahead or behind an hour, but nowadays it creates a ton of complexi
322.
▲
by
alerighi
5y ago
A NAS it's not a backup, it's something you use to store data on it. The backup I was referring to is the offline one. If I need to backup data, something that unfortunately I don't do as often as I should, I need a filesyste
323.
▲
by
alerighi
5y ago
> I'm not sure how you prove that ext4 is less likely to become corrupt. But it is easily shown that it's less likely to inform you that there's corruption. I didn't talk only about corruption of the filesystem itsel
324.
▲
by
alerighi
5y ago
BTRFS works fine. I use it on my everyday laptop without problems. Compression can help on devices with not a lot of disk, and also copy on write. However, BTRFS has its drawbacks, for example it's tricky to have a swapfile on it (now
325.
▲
by
alerighi
5y ago
False, an electric heater is 100% efficient (it's a pure resistive load). But these days we can do better, and you would say that we can't to better than 100% efficiency, but indeed we can with heat pumps, that are 300% efficient
326.
▲
by
alerighi
5y ago
True. But if required uranium is slightly easier to ship than natural gas, and a power plant doesn't consume much of it. A small plane from the US can transport all the uranium a reactor needs to function for one year easily!
327.
▲
by
alerighi
5y ago
As far as I know gcc doesn't turn warnings into errors from one release to another. In fact the default is that no warning is considered an error, unless you use options to force a different behavior. This is something that Apple seems
328.
▲
by
alerighi
5y ago
It makes more difficult to pass context. You have to resort in the classical void * context, that is not handy to use. Or you have to use globals. The fork idea is more elegant to me, it duplicates the program flow execution in place.
329.
▲
by
alerighi
5y ago
Well, you can do the same on Linux. The Linux kernel system call ABI doesn't usually break support for old software, and as long as you have a statically linked binary you can run even software that was compiled targeting Linux 2.4 (if
330.
▲
by
alerighi
5y ago
Nullable types... they have the same problems as null pointers: if you don't care about handling the case they are null the program will crash, if you handle it, you can handle it also for null pointers. Well, they have a nicer syntax,
More ›