Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
useerup
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
useerup
5y ago
In C#: static IEnumerable<int> Fibonacci() { int first = 0; int second = 1; yield return first; yield return second; while (true) { (f
32.
▲
by
useerup
5y ago
Exception handlers are continuations.
33.
▲
by
useerup
5y ago
It meant something before Rails bastardized it. Until then (and thanks to Smalltalk) it was a composite UI design pattern combining observable and mediator patterns. It was also a recursive pattern, in which the "editor" cou
34.
▲
Denmark launches new corona passport
(thelocal.dk)
3 points
by
useerup
5y ago
|
0 comments
35.
▲
by
useerup
5y ago
> and easy to spot Not always. Like if you initialize middleware by using a "lambda" (closure), and you from within that closure creates a new closure. It means that you need to be aware of the context the outer closure is us
36.
▲
by
useerup
5y ago
I've seen something like this happen because of a race issue during login. Basically the developer(s) had refactored something and were not aware that a global variable was being captured by a closure used for auth. This meant that whe
37.
▲
by
useerup
5y ago
You are entitled to your own opinion, but not to your own facts. The mathematical fact is that Dreams feat is so incredibly unlikely that (as illustrated in the video you refuse to watch): *If every single human being on planet Earth ea
38.
▲
by
useerup
6y ago
The forerunner for Delphi was Turbo Pascal. Before it became Turbo Pascal it was called Compass Pascal and then Poly Pascal (it was sold by a danish shop/company called Poly Data). Anders Hejlsberg wrote the first Compass Pascal compil
39.
▲
by
useerup
6y ago
LoadData is not lazy loading. It is explicit loading. Maybe you should have digged a little further. To lazy load related entities you would have to declare the navigational properties virtual. https://docs.microsoft.com/en-
40.
▲
by
useerup
6y ago
Actually, there were claims made about massive voter fraud in the 2016 election: When Trump could not stomach the fact that he lost the popular vote, he claimed that more than 3 million ineligible voters had voted for Clinton and that he ha
41.
▲
by
useerup
6y ago
The entire state of Georgia. where Guiliani alledged that votes were "switched" by Dominion machines, were in fact hand counted and affirmed the machine-counted tally. Even after the hand-count clearly confirmed that the machi
42.
▲
by
useerup
6y ago
Baseless means that there is no proof of the allegations. Dominion is under no obligation to prove the that the election was fair. Guiliani now have the opportunity through discovery to support his allegations, or at least the was in good f
43.
▲
by
useerup
6y ago
Quicksort in one line: Quicksort = { []->[], [p,,m]->this(m??<p) + (m??==p) + this(m??>p) }
44.
▲
by
useerup
6y ago
There's a property tax of 1% for home values up to around DKK 3M, and 3% for the value above 3M. That is the based on the "official estimated value", however, which is typically conservative and lagging and therefore somewhat
45.
▲
by
useerup
6y ago
Danes can deduct around 25% of paid interests (and "contribution fees" on mortgages). A little more for paid interests below DKK 50000 yearly and a little less for paid interests above DKK 50000. A typical home can sell for DKK 4M
46.
▲
by
useerup
6y ago
I have -0.28% on a mortgage which will be refinanced every 5 year. The lenders actually pay me to store their capital. Weird times. In actuality, though, I also pay a 0.5% "contribution" fee which covers mortgage company administr
47.
▲
by
useerup
6y ago
> No matter what variation of auth token you are using, make sure you are not just encoding BASE64 of user data like user ID and some timestamp. Seriously, at the end of 2020 this kind of advice is necessary?
48.
▲
by
useerup
6y ago
> Microsoft filed an Amicus brief supporting Oracles view that API's are copyrightable No, actually Microsoft filed an amicus brief supporting Google's view: https://www.supremecourt.gov/DocketPDF/18/
49.
▲
by
useerup
6y ago
> Sweden is just marginally worse off against Covid overall than the US. And they didn’t have to spend $4 trillion or lose 40 million jobs to achieve that. Sweden took less drastic action than the US. Sweden did take some action early,
50.
▲
by
useerup
6y ago
The A-320 was a runaway success which threatened to shut Boeing out of that segment. Boeing needed to do something, and fast. Hence the 737-MAX as a stop-gap until they could come up with a better competitor. Yes, the A-380 (different segme
51.
▲
by
useerup
6y ago
> RegEdit, is there a text version for that? Uhm, in Powershell: PS C:\Users\zb3> cd hklm: PS HKLM:\> (you are now in the registry local machine hive)
52.
▲
by
useerup
6y ago
Windows IO model - including network - is arguably much more well designed than anything POSIX, thanks not least to Dave Cutler and his team. From the get-go Windows NT (Win32) had a common model for overlapped IO (async IO in today's
53.
▲
by
useerup
6y ago
No, just a reckless idiot.
54.
▲
by
useerup
7y ago
PowerShell solution: 1..[Math]::Sqrt(500) | %{$_*$_} 1 4 9 16 25 36 49 64 81 100 121 144 169 196 225 256 289 324 361 400 441 484
55.
▲
by
useerup
7y ago
> just type "Could-We-Make-It-Even-More-Verbose -PerhapsInTheNextVersionWeWill!" PowerShell can be as terse as bash. Just use the aliases (which are actually real aliases in PowerShell), leverage default parameters and short
56.
▲
by
useerup
7y ago
Language Integrated Query (LINQ) of C# LINQ is actually enabled through a number of language features, but most importantly is perhaps the ability to "cast" an expression as an "expression tree" (an AST), allowing code t
57.
▲
by
useerup
7y ago
This. setuid/SUID root was - and still is - a terrible idea. It is a (deliberate) hole in the security barrier. It was an idea spawned out of necessity because of the limited expressiveness of the standard Unix security model. Once you
58.
▲
by
useerup
7y ago
> Because Windows and Linux are not designed for hard real time. True, although RT kernels have been developed for both. Windows actually features Autoboost (Priority Inheritance). As Windows also has IO priority, the boost also applies
59.
▲
by
useerup
7y ago
While it is correct that memory is orders og magnitudes slower than modern cpus, this is also why cpus sport multiple levels of caches. memcpy operations (and base 64 encoding/decoding) are highly "local" operations. When the
60.
▲
by
useerup
7y ago
Not just destroy the environment. The US car industry will have a hard time developing and manufactoring cars which can be exported. Practically every other market will have stricter norms. China is betting big on electric cars, setting dom
More ›