Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tylerhou
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
86 ms
·
841.
▲
by
tylerhou
8y ago
In the error monad above, computeSecond will not be called if computeFirst failed. But in other monads (which have the same syntax) computeSecond MAY be called depending on the rules of composition. return is a bit of a misnomer in Haskell
842.
▲
by
tylerhou
8y ago
> Go's error handling is essentially the same as Error/Either/StatusOr (returning errors as values). Not really, it's very annoying to chain calls which can error. Also, as another commenter mentioned, functions which
843.
▲
by
tylerhou
8y ago
Are Switch games themselves even allowed full OS access?
844.
▲
by
tylerhou
8y ago
I assume exceptions, the Error/Either monad, and StatusOr.
845.
▲
by
tylerhou
8y ago
Counter-counter-argument: you can always dynamically adjust heading levels based on how deep you have headings in your document. So maybe: #### = h1; # = h4 initially. If you have ##### (5) anywhere in your document, then ##### = h1 and # =
846.
▲
by
tylerhou
8y ago
Code blocks don't work on HN; you need to format all your code with spaces: celsius_q = np.array([-40, -10, 0, 8, 15, 22, 38], dtype=float) fahrenheit_a = np.array([x * 1.8 + 32 for x in celsius_q], dtype=float) for i, c
847.
▲
by
tylerhou
8y ago
I don't know about you, but I always get marker on my hands when I use dry erase markers, and chalk is a hell of a lot easier to clean off than ink. Also, don't put your fingernails on the chalkboard...?
848.
▲
by
tylerhou
8y ago
What better alternatives are there? “Smart” boards — expensive, and high drawing latency makes writing on them uncomfortable. Also, text is hard to read from a distance. (They may be better for accessibility.) Dry-erase boards — boards and
849.
▲
by
tylerhou
8y ago
you can short the stock to reduce your exposure outside of your retirement fund
850.
▲
by
tylerhou
8y ago
But the post says "all software." Surely that implies that macOS won't let unnotarized software run?
851.
▲
by
tylerhou
8y ago
For the lazy: Specifically, the State alleges that Motel 6 violated the CPA, RCW 19.86.020 and RCW 49.60.030(3), and the WLAD, RCW 49.60.030(1)(b) and RCW 49.60.215(1), by: a. Disclosing private guest registry information to ICE agents, in
852.
▲
by
tylerhou
8y ago
You are OP: https://aytwit.com/blog/thoughter_deep_example
853.
▲
by
tylerhou
8y ago
OP suggested that they might add a cost per guess.
854.
▲
by
tylerhou
8y ago
> This is quite similar to the cognitive and decision fatigue principle which indicates that each of us only has a limited pool of cognitive resources and so we must be very selective in choosing what activities we engage in. Watch out —
855.
▲
by
tylerhou
8y ago
Working like a dog for 12-14 hours a day is lazy?
856.
▲
by
tylerhou
8y ago
Nit: world's most valuable publicly traded* company. https://en.wikipedia.org/wiki/Saudi_Aramco
857.
▲
by
tylerhou
8y ago
tmux tip: You can press prefix+D to show a list of connected clients. From there, you can choose one to disconnect.
858.
▲
by
tylerhou
8y ago
The author is an econ professor at George Mason.
859.
▲
by
tylerhou
8y ago
It's my impression that the admissions officers (AOs) at these T10 universities are smart and don't care too much "self-discovery" trips to Africa which the applicants' parents have clearly paid for. Volunteer work
860.
▲
by
tylerhou
8y ago
If I make $50,001, would I have to pay back the full 10%? Or is there some sort of gradient?
861.
▲
by
tylerhou
8y ago
The timing of this comment is a bit suspicious.
862.
▲
by
tylerhou
8y ago
Maybe he happened to be on Twitter?
863.
▲
by
tylerhou
8y ago
Although that post should have a heavy disclaimer to talk to a lawyer; I wouldn't risk my savings/a business based on a blog post.
864.
▲
by
tylerhou
8y ago
The wording is "finds $12,931", not "finds $12,931 * more*".
865.
▲
by
tylerhou
8y ago
The developer could ask people to tell him/her when they donate (on the developer's behalf) to a charity the developer suggests. This would have the same effect as showing the developer that her/his work has value.
866.
▲
by
tylerhou
8y ago
I’ve spent tens of hours trying to create inputs which do this in an intuitive manner but I have always failed. There is always some edge case where it’s nearly impossible to determine user intent.
867.
▲
by
tylerhou
8y ago
The average human exhales around 2.3 pounds of CO2 per day [0]. That means that in a lifetime (70 years), a human breathes out around 59,000 pounds of CO2, which is 608,000 moles of CO2 or 3.7 * 10^29 atoms of CO2 [2]. By your gigaton numbe
868.
▲
by
tylerhou
8y ago
Don't feel bad -- it's very possible some of the CO2 that you breathe out every day will still be in the same configuration a hundred billion years from now as well.
869.
▲
by
tylerhou
8y ago
Await pushes your task onto the end of the event queue; this might seem like you’re immediately executing a future in many cases but it’s not true in all cases. Other futures created by your thread might take priority. Consider the case whe
870.
▲
by
tylerhou
8y ago
Didn’t know that, thanks
More ›