Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
matthiasl
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
matthiasl
7y ago
Erlang's ordsets() module has O(N) insertion. Since there's theoretical disagreement, here's experimental verification: 11> f(), Ord_bench = fun(N) -> Random = [random:uniform(N) || _ <- lists:seq(1,N)], F = fun(
32.
▲
by
matthiasl
7y ago
Your Erlang syntax is a bit off. You mean f(<<Length:32, Packet:Length/binary, Rest/binary>>) ->
33.
▲
by
matthiasl
8y ago
I wonder how well you could track cash if you wanted to. ATMs could OCR and log the serial numbers of bills they dispense, and they obviously know who they're dispensing to. Banks could do the same with incoming cash at the end of the
34.
▲
by
matthiasl
9y ago
> they want to nationalize all private banking That would be crazy. But I can't see where the article says that, nor can I see it said in the opinion piece by the chairman of the Swedish reserve bank which the article links. The cha
35.
▲
by
matthiasl
9y ago
It's changed, but not correct. Currently, all the units in the 'fact box' are KWh. That is "Kelvin Watt hours", which makes no sense. You want kWh, i.e. lower case 'k', upper case 'W', lower case
36.
▲
by
matthiasl
9y ago
Would be nice to fix the units in the article. In the 'fact sheet' box, the only correctly abbreviated unit is the 'km'. Every 'KWh' should be 'kWh', i.e. kilo and not Kelvin. Similarly, footnote 1 us
37.
▲
by
matthiasl
9y ago
I do exactly this too for the occasional mail that I really can't read as plain text. One concern is that I'm letting through all web bugs and, perhaps, outright malicious HTML. If anyone has a solution for that, something like fi
38.
▲
by
matthiasl
10y ago
"TCP does have a CRC-32 checksum" Where? TCP has a checksum in the header, but it is neither 32 bits nor is it a CRC.
39.
▲
by
matthiasl
10y ago
It seems important to mention that the study looks at the behaviour of a few hundred people in Italy and Sweden playing a _game_ which simulates earning money, paying tax and possibly being audited. I.e. the study is not actually about the
40.
▲
by
matthiasl
10y ago
Your scheme successfully avoids revealing the password to a rogue server, so it solves the immediate problem. But your scheme has made the password hash be the password, which is unacceptable because it's equivalent to storing the plai
41.
▲
by
matthiasl
10y ago
Try designing a specific means to do this and you'll find that it's not easy. E.g. your first idea might be "ok, so the client just sends a SHA-256 hash of the password, simple." But... if you do that, then the SHA-256 h
42.
▲
by
matthiasl
10y ago
How is sugar regulated differently to MSG in Australia? (Looking at Food Standards Australia, the requirements on MSG are that it's declared as an ingredient with an exception if it's naturally present in the food. How is that dif
43.
▲
by
matthiasl
10y ago
Pause frames came with 802.3x, in 1997. That's much later than any of the protocols you name, by a decade or two.
44.
▲
by
matthiasl
10y ago
"I wonder if he knew they were going to print a photo of him." The fourth paragraph of the article starts with "He was however happy for the Guardian to publish a photograph of him".
45.
▲
by
matthiasl
11y ago
I can't see the problem either. I don't think it's a capitalisation problem; when using 'Watt' as a name, e.g. James Watt, you need to capitalise. But the unit is 'watt', with a lower-case 'w'. T
46.
▲
by
matthiasl
11y ago
An effect, from the same charts, which partially mitigates what you're highlighting is that Norway has a totally different balance of exports versus imports: Canada: Imports $437 B Exports $438 B Norway: Imports $92 B Export
47.
▲
by
matthiasl
11y ago
A longer summary: the maximum height of a siphon pumping water, at sea level, predicted by barometric pressure is about 10m. But the tensile strength of water is nonzero (a surprise to me) and that is enough to allow much higher siphons if
48.
▲
by
matthiasl
11y ago
From an engineering point of view, I don't know if it is better or not, but the article implies that construction costs scale much better if you leave the rock there. If you wanted to make an unadorned column of water underground, you&
49.
▲
by
matthiasl
11y ago
It's a good place to meet people. It's interesting. It's fun.
50.
▲
by
matthiasl
11y ago
Is "DACs" a typo for "DSPs"? If you really do mean DACs, can you elaborate on what those DACs were doing and how that was replaced by FPGAs?
51.
▲
by
matthiasl
11y ago
There are different trade-offs for the capture filter language and the display filter language. The capture filter language considers short and bounded runtime (no loops) to be paramount. Roughly, when you're capturing, it's impor
52.
▲
by
matthiasl
11y ago
It's a bit more complicated than that. Wireshark allows two different filtering languages in two different places, used at different times. Your first example ("ip.addr=127.0.0.1") is a display filter. You enter those in the
53.
▲
by
matthiasl
12y ago
The hardware I work with uses a supercap to keep the real-time clock going during power failures. Previously, button cells were used for that.
54.
▲
by
matthiasl
12y ago
> Well actually Erlang is not single-threaded it is multi-scheduler and multi-process. I think the parent and you are talking about separate things. Erlang the language is single threaded. Erlang the language has no concept of threads. T
55.
▲
by
matthiasl
12y ago
> I've never been able to construct a series of tokens in > which the meaning changes based on which of those you > use, and it's legal either way. Here's a series of tokens where switching comma to
56.
▲
by
matthiasl
12y ago
I'm not Kolev, so I don't know his reasoning. But I can guess. USSD is interactive. That lets you keep the one-time password's validity time short since you know when the subscriber sees the one-time password. The other is th
57.
▲
by
matthiasl
13y ago
Are you citing Skype and SAP as _exceptions_ to your rule? As far as I know, Skype was started by Europeans in Europe. And so was SAP. The SAP founders appear to be about as German as you can get.
58.
▲
by
matthiasl
13y ago
A simple explanation is that the journalist is over-simplifying a source which said "...found a semiprime".
59.
▲
by
matthiasl
13y ago
I know nothing about LUA syntax, so I also have no idea which part of this is new and which part is ordinary LUA. Is -- calculate sum(x for x^2 in 1..n) a comment or is it the output of a code transform?
60.
▲
by
matthiasl
13y ago
It seems that they have an internet in mind where you consider packets that left the country to be less secure than ones which stayed in the country. One way to implement that would be something like RFC 3514, except that the E bit gets set
More ›