Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
useerup
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
61.
▲
by
useerup
7y ago
pet peeve, but at least the C# examples (and probably others as well) can IMHO be written more elegantly: Example 1: static IEnumerable<int> GetEvenNumbers(IEnumerable<int> l) => l.Where(x => x%2 == 0) Example 2:
62.
▲
by
useerup
7y ago
The bank takes it's share in the form of fees. The negative rate is simply because the money market sees negative rates on the 5-10 year horizon. The bank simply passes the rate of the money market on to the consumer: > Høegh said J
63.
▲
by
useerup
7y ago
It is actually a sign that something is very wrong with the general economy. Negative rates only happens when investors shy away from stocks and just want their money to be safe for the next 5-10 years. Investors are actually willing to pay
64.
▲
by
useerup
7y ago
This situation (negative interest rate) occurs because there is a capital surplus. This happens because investors a wary of putting too much of their capital in stocks. Nobody knows what Trumps trade wars will lead to, so that's a sign
65.
▲
by
useerup
7y ago
> There is public health care in US. Medicare for old people, Medicaid for poor people, and anyone without insurance can go to the ER. It may not be great, but it does exist. There is some public healthcare but no universal healthcar
66.
▲
by
useerup
7y ago
> No public health care? That isn’t true either. Medicaid and Medicare are public health care. I think you know that "public healthcare" was referring to universal healthcare in this context. US is the only western democracy wi
67.
▲
by
useerup
7y ago
Windows (server and desktop versions) will throw up a message dialog on the screen. It will also start to kill off processes just enough to resolve the low memory situation. During this - unlike Linux - you can actually use the mouse, C
68.
▲
by
useerup
7y ago
Windows installers are declarative and data-driven. An installer script does not simply use the file copy operations a usual app would use during runtime. Instead an installer is driven by a number of "database" tables that spec
69.
▲
by
useerup
7y ago
It is correct that as a data subject you should file any complaints about GDPR with the data protection agency of your country of residence. However, that agency will refer the complaint/case to the data protection agency of the compan
70.
▲
by
useerup
7y ago
Ah no. The EU countries have agreed, that the home country of the organization (not the country of the data subject) will take the lead in any GDPR enforcement. Facebook in EU is registered in Ireland. Ireland is making a mockery of GDPR, s
71.
▲
by
useerup
7y ago
The system does not ensure anonymity as to who has voted , but it does maintain secrecy as to how you voted . The idea is that you can have a public, verifiable "ledger" of voters. You can verify that you are on the list with y
72.
▲
by
useerup
7y ago
Homomorphic cryptography allows you to track your vote without revealing the vote content (who you votes for), but at the same time vote tallying is possible on the encrypted votes in a process that is verifiable. Of course the trust
73.
▲
by
useerup
7y ago
> The author chose to download the software from the OEM and the software can be uninstalled. I take issue with that. Apx. one year ago it was using excessive CPU on my Dell. I tried to uninstall, but the uninstaller crashed. I turned to
74.
▲
by
useerup
8y ago
Use `gm` (alias for Get-Member) e.g like ps | gm Will tell you exactly the different object types and member methods and properties are returned from `ps`. ls | gm Will tell you that ls returns two different object types (
75.
▲
by
useerup
8y ago
Indeed, in PowerShell you could do: 1..500 | ?{ !(Test-Path ('{0:0000}_A.csv' -f $_)) } Explanation: 1..500 generates a sequence of numbers 1 through 500 | pipes the numbers ?{ … } is a filter that is evaluated for each i
76.
▲
by
useerup
8y ago
I believe that there is still only one thread executing your code. Now, depending on the SynchronizationContext that thread may change . If your I/O request completes on another thread, the default synch context for console apps just
77.
▲
by
useerup
8y ago
It does not "fall back" to thread pool. Whenever a thread pool is used, it is because you requested it, e.g. like calling Task.Run(). The async/await implementation will never fall back to thread pool by itself. Tasks are
78.
▲
by
useerup
8y ago
PowerShell takes it a bit further: There is no "magic" built-in commands needed for e.g. manipulating current directory, environment variables etc. In PowerShell the cmdlets execute in-process and may have access to the session
79.
▲
by
useerup
8y ago
Windows handles can be handles to a number of different types of objects. Generic operations which can be performed for any type of handle: * Closing the handle: Release any kernel resources associated with the the handle * Comparing to oth
80.
▲
by
useerup
9y ago
This is all you need to get started: Get-Help, Get-Command Everything from there on is discoverable through what you learn from those 2 cmdlets
81.
▲
by
useerup
9y ago
I have been working with EF for years now. It has it quirks - but this is not something that I have ever experienced, nor have I heard of anything like it before today. What I have heard of is traversing the entire graph and causing casca
82.
▲
by
useerup
9y ago
You were doing it wrong then. EF does not eagerly load child collections. You cannot even configure it to do so. As someone else suggested, you probably had lazy loading enabled, and some of your code tried - e.g. through reflection - to
83.
▲
by
useerup
9y ago
Windows async I/O ("overlapped" in Windows parlance) is backed by a thread pool (completion ports). Windows does not spin up or allocate a thread just to wait for an IO operation to complete. Rather, when an IO operation
84.
▲
by
useerup
9y ago
Aging population and younger people chosing longer school/education over work. It is in the article.
85.
▲
by
useerup
10y ago
A shell is so named because it was envisioned as a way to interact with the operating system core (not kernel , the core typically consists of both kernel and userland processes/tools). Core and shell, get it? A command shell is
86.
▲
by
useerup
10y ago
ls|? LastWriteTime -lt (date).AddDays(-2)|rm
87.
▲
by
useerup
10y ago
> You can certainly print them, but there's no guarantee you'll get all its contents by default, and there's still the problem of how to create those objects from some other output, e.g. in a file. That's what CliXML
88.
▲
by
useerup
10y ago
> I believe types can specify which columns to display by default; Indeed, the default view (table/list/custom) can be specified, and for the view the default properties can be specified. Consider how 'ls' produces
89.
▲
by
useerup
10y ago
> You can print them, but you can't serialise them in a way that can be later unserialised. Nope, that's wrong: Export-CliXml Import-CliXml ( https://technet.microsoft.com/en-us/library/hh8
90.
▲
by
useerup
11y ago
Microsoft hasn't announced this (yet), but syscall translation seems to be really well positioned for their container push. I fully expect that MS will announce Linux containers running on Windows Server using WSL. Already the perf is
More ›