Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hawski
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
181.
▲
by
hawski
3y ago
Aren't micro-transactions the holy grail that we all say we want (and indeed may need), but so far nothing? Newspapers, articles, videos, games, apps etc.
182.
▲
by
hawski
3y ago
But still, why there is no absolute 0 - the third zero? I would prefer something like this: 1 / +0 == +inf 1 / -0 == -inf 1 / 0 == nan abs(-0) == 0 But it is not possible as there is no unsigned/absolute zer
183.
▲
by
hawski
3y ago
IEEE 754 has infinity, it has signed zeros, but it doesn't have the absolute zero. For the math to be entirely correct it is not enough. I wonder why it was done like this.
184.
▲
by
hawski
3y ago
But it is incorrect. Positive or negative number divided by zero is either +infinity or -infinity. For a positive dividend it would be +infinity only if the divisor got there from a positive number towards absolute 0, but at the time of doi
185.
▲
by
hawski
3y ago
I don't think the OP meant to piss on GUIDs. I think they are laughing at a very cryptic command line recommended to access "old devices and printer". That was always a classic jab at Linux and this looks extra cryptic as it
186.
▲
by
hawski
3y ago
I think it is better to have a little "smarter" code if that means you will not bring a dependency. For example in Python or C I like things that do not need anything except the standard library. When you need to think about PIP o
187.
▲
by
hawski
3y ago
I know that Zig is quite different from Rust and it is less mature, but I do wonder how its async compares.
188.
▲
by
hawski
3y ago
Fair. One could get used to the following for the first step: < file.txt cat But then one has to ctrl-w cat. It is a pity that this is not an alternative to cat for a single file: < file.txt
189.
▲
by
hawski
3y ago
Try: < file.txt grep pattern Less keystrokes.
190.
▲
by
hawski
3y ago
I wonder now if one could emulate fork-shenanigans-exec by: - clone CLONE_FILES with AF_UNIX socketpair - send file descriptors through the socket - do whatever was in shenanigans (you have the socket for communication/RPC/whateve
191.
▲
by
hawski
3y ago
Ideally I would like to see both behaviors available, making the current way the preferred one. But AFAIK it would be hard, because /dev/fd/* are just symlinks and this would need a very special case.
192.
▲
by
hawski
3y ago
You made your private wiki. I used to use Zim and it was splendid. Then I went down a few rabbit holes and explored a more GUI-less approach, but in my case nothing ever approached the level of Zim. It is more on me, than on tools. Now, whe
193.
▲
by
hawski
3y ago
People I don't find technical in my circle used it before me and still use it. In my circle it was more correlated to younger age - early 20s, than to technical ability.
194.
▲
by
hawski
3y ago
Do those more object oriented shells expose more substitution and streaming goodies? For example do they have process substitution - i.e. <(foo | bar)? Or do they use memfd instead of temporary files on Linux? Do they have first class f
195.
▲
by
hawski
3y ago
That's also something I often encounter with ChatGPT. It often is very wrong about things I ask, because I often wonder and try things off the beaten path. That's our advantage against LLMs.
196.
▲
by
hawski
3y ago
What I often do when I analyze logs is removing timestamps and changing unique identifiers to something more predictable and diff them to see when things started diverting from the norm, because it is often earlier than the usual error/
197.
▲
by
hawski
3y ago
I wonder if there is a part that could replace signaling LEDs without emitting their own light. I think transflective LCD could work like that. Make it small, round and with two contacts like a diode.
198.
▲
by
hawski
3y ago
The author stated: > I’ve done this before, but this time I made it a little simpler for me to do it again: everything in one Rust program rather than clunky scripts. The author then used this Python script: http://git.liw.fi&
199.
▲
by
hawski
3y ago
One can have separate directories with files hard or symbolic linked under different names.
200.
▲
by
hawski
3y ago
I prefer to take advantage of the fact that without a proper shebang the file will be first executed by the shell. Then it is easy to do almost whatever you want. For example I put this in front of my test C files: #if 0 set -e; [ &qu
201.
▲
by
hawski
3y ago
Related: Xfce originally stood for "XForms Common Environment".
202.
▲
by
hawski
3y ago
At least $500 would pay for my mortgage almost just as well as when I got it.
203.
▲
by
hawski
3y ago
I would also like to know the answer. Would it be a good idea for the company to keep _encrypted_ backups on their machines/HDDs? Not a laptop somewhere, but something just a bit more involved.
204.
▲
by
hawski
3y ago
It is funny in my language as we have the same word for both noon and south.
205.
▲
by
hawski
3y ago
Just a big enough number and I punish myself as I would like to create my own shell/terminal thing and use that instead.
206.
▲
by
hawski
3y ago
I use this in my bash profile: export HISTSIZE=65535 shopt -s histappend PROMPT_COMMAND="history -a;$PROMPT_COMMAND" I miss it though on other computers and suffer until I set it up on new ones.
207.
▲
by
hawski
3y ago
I often use it to see what configuration files the thing reads, it is much more reliable than documentation.
208.
▲
by
hawski
3y ago
Toybox has this for a goal. This project I would think is about the blessed safety of Rust.
209.
▲
by
hawski
3y ago
I see now the thirst in this community to break browser engine practical monopoly and theoretical duopoly. Posts about new or alternative browser engines get much more attention and excitement than posts about new programming languages. I s
210.
▲
by
hawski
3y ago
Usually it is done for one of three main reasons: - to make it hard for the user to copy/save stuff - to offer context menu in a web app - in a web app game for whatever The first reason is clearly hostile to the user. The rest is argu
More ›