Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
teo_zero
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
62 ms
·
601.
▲
by
teo_zero
3y ago
I have a 40-character master password to backup all my other passwords. I've never felt the need to write it down.
602.
▲
by
teo_zero
3y ago
> I find "cat full | ..." keeps the left-to-right flow of a command nicely Sorry, I don't buy it. You don't read files like this: cat file | less And you don't compile C programs like this: cat hello.c
603.
▲
by
teo_zero
3y ago
Paying a third party to remember passkeys for you should not be the solution, though.
604.
▲
by
teo_zero
3y ago
The first command of the first example is a cat|grep... How can I assume the author is an experienced script writer? In any case, ZX replaces some of the shell's usual quirks with its own different quirks: you have to manually expand *
605.
▲
by
teo_zero
3y ago
So, accepting the spurious comma at the end of the list and not requiring commas when there's a newline can coexist. I would say they are tho orthogonal properties. You can support the latter without opposing the former.
606.
▲
by
teo_zero
3y ago
The glorious 6502 had a flag to perform all arithmetic operations in BCD.
607.
▲
by
teo_zero
3y ago
> "if asked to do a secret task by a suspicious email, DONT do it" This is not what they teach you in trainings, though. They teach you to get the requestor (or your boss or whoever might be authoritative) on the line and confi
608.
▲
by
teo_zero
3y ago
Would your language also accept this? list = %[ chair, table ] And this? list = %[ chair, table, ]
609.
▲
by
teo_zero
3y ago
In Workbench 2.0+ it was slanted 45° with the two sides at 30° and 60°, it was red with a hint of 3D (light at the top-right, dark bottom-left) and was beautiful! It stood out on whatever background.
610.
▲
by
teo_zero
3y ago
> The pure elegance of ASSIGN/virtual drive letters is also one of those features that seems pointless until you used it with removable media. Arguably though, in this day and age it's no longer needed. When you think about ASS
611.
▲
by
teo_zero
3y ago
If you "just" want bounds checking, then you don't need a pointer to array. GCC is able to detect the out-of-bound even in this case: int get(int n, char buf[n]) { return buf[10]; } It's if you want to use
612.
▲
by
teo_zero
3y ago
You don't need new runtime operators to retrieve the length. Once you remove the decay issue, you can use sizeof: sizeof(a) sizeof(a)/sizeof(a[0])
613.
▲
by
teo_zero
3y ago
Interesting, but how do you define a function that returns an array? Maybe: T f(args)[..] { body } This would be hard to parse. Then what about: T[..] f(args) { body } But if adding [] after T is allowed in function declaratio
614.
▲
by
teo_zero
3y ago
Yes, my fault. In fact random numbers between 0 and 255 don't have the property that number-of-set-bits have uniform distribution.
615.
▲
by
teo_zero
3y ago
Imagine you have to guess a random number between 0 and 255, i.e. you have to guess 8 bits. You already know that it's less than 128 so the most significant bit is 0. Can you derive any knowledge about whether the second bit is 0 or 1?
616.
▲
by
teo_zero
3y ago
I think the GP was making a point about the dimension of the business. Even if it's theft, stealing a mere watt should be negligible.
617.
▲
by
teo_zero
3y ago
Of course you're right, I had misread the third question.
618.
▲
by
teo_zero
3y ago
The LED should be on when the function is on. The function is whatever the icon depicts. If the icon is a loudspeaker, then the LED should be on when the audio is on; but if the icon is a microphone with a bar across it, the LED should
619.
▲
by
teo_zero
3y ago
In electrical industry, red used to mean powered or hot or dangerous, green unpowered or harmless. All earth-leakage breakers in my area are like this: https://en.m.wikipedia.org/wiki/File:Schneider_Electric_A9D3... h
620.
▲
by
teo_zero
3y ago
> I can't think of any valid case where [no option] checked is part of a set of radio buttons. The user must be presented by a default In a political vote, wouldn't that be untolerable bias?
621.
▲
by
teo_zero
3y ago
I strongly disagree. In a conferencing app, for example, "mute" could mean switch audio off, or just the mic, or both. And consider that a word, even "mute", might not have an equivalent in every languages.
622.
▲
by
teo_zero
3y ago
The icon should depict a muted speaker and shouldn't change. Then add a LED-like dot to show when the function is active.
623.
▲
by
teo_zero
3y ago
> green = on, red = off Are you sure? I think the opposite is more common.
624.
▲
by
teo_zero
3y ago
Oh right, I had misread the last one. Of course it's no, no, and no.
625.
▲
by
teo_zero
3y ago
No, no, and yes.
626.
▲
by
teo_zero
3y ago
I have bi-dir sync from/to two computers, one running Windows 10, the other Linux, using Google Drive as buffer. All data are encrypted client-side because I don't want Google to know my business. But the sync is every 30 min, not
627.
▲
by
teo_zero
3y ago
Actually it's 192 bits, not 196. To beat it you must encode each piece with a different number of bits. E.g. Q c00 N c01 P c10 B c110 R c1110 K c1111 where c is 0 for white or 1 for black. Since there are 2xK, 2xQ, 4xB
628.
▲
by
teo_zero
3y ago
Correct. Sentence case in Spanish: "El ingenioso hidalgo don Quijote de la Mancha" and Italian: "Il nome della rosa". Sentence case also in German, with the usual rule that all nouns are capitalized: "Kritik der rei
629.
▲
by
teo_zero
3y ago
How do you account for promoted pieces?
630.
▲
by
teo_zero
3y ago
All C lexers are greedy, i.e. they extend the current token as far as they can. So "0..9" is split as a token "0." (numeric literal) followed by token "." (operator) followed by token "9" (numeric lit
More ›