Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mayoff
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
91.
▲
by
mayoff
3y ago
I'm not sure why you'd call it the most ‘natural’ form. Scroll bars don't appear in nature. Of all the ways to scroll content, direct manipulation (dragging your finger directly on the document on the screen) is most like the
92.
▲
by
mayoff
3y ago
This doesn't correctly simulate how mouse clicks affect Mac scroll bars. Clicking in the track outside the elevator box should move a page at a time. Maybe it's not intended to accurately simulate interaction, only appearance.
93.
▲
by
mayoff
3y ago
Supreme Court opinions are usually pretty easy to read. There’s also a “syllabus” that summarizes the decision, although it’s sometimes harder to understand than the opinions. Here are the syllabus and opinion for this case: https:/&#
94.
▲
by
mayoff
3y ago
Antimatter also has anti-color-charge. Quarks have a ‘color charge’ (unrelated to visible colors) which is ‘red’, ‘green’, or ‘blue’. An antiquark is antired, antigreen, or antiblue (and has the opposite electrical charge from its correspon
95.
▲
by
mayoff
3y ago
AOLserver was originally NaviServer, before AOL bought it. That’s why all of its API identifiers have the prefix `Ns_` (or `NS_` or `ns`, depending on the kind of identifier). Kind of like how (coincidentally) Apple’s Foundation and AppKit
96.
▲
by
mayoff
4y ago
If it's slow, costly, and hard to animate characters, only cutscenes—where the animated characters are the focus—will have well-animated characters. But if it's fast, cheap, and easy, then even the incidental “scenery” NPCs can ha
97.
▲
by
mayoff
4y ago
Check out Master Key for more chunky 1-bit chunky graphics. https://store.steampowered.com/app/1763030/Master_Key/ https://www.kickstarter.com/projects/778295166/master-key/
98.
▲
by
mayoff
4y ago
Don’t anthropomorphize computers. They hate that.
99.
▲
by
mayoff
4y ago
Java code is always in the IO and Except monads.
100.
▲
by
mayoff
4y ago
Programming in Elm with mdgriffith's elm-ui package is the only way I've ever been able to tolerate developing a ‘modern’ web app.
101.
▲
by
mayoff
4y ago
The difference in CLOCK_MONOTONIC behavior between Linux and Darwin (Apple) systems was an issue when they added Clock to the Swift standard library. It led to the two built-in clock implementations being named SuspendingClock and Continuou
102.
▲
by
mayoff
4y ago
Swift does this. Bare operators like + and * trap (crash) on overflow. You can use &+ and &* for 2s complement wrapping.
103.
▲
by
mayoff
4y ago
> even most middle class people can't afford to hire lawyers Even most upper-class people can't afford to hire lawyers, according to Peter Thiel, who said > If you're a single-digit millionaire like Hulk Hogan, you have
104.
▲
by
mayoff
4y ago
In spite of what the page says, the cell isn't 7x7. One diamond-shaped cell is 24 pixels wide, measuring from the center of the leftmost pixel to the center of the rightmost pixel, and 12 pixels tall center-to-center.
105.
▲
by
mayoff
4y ago
Array is defined in the Swift standard library, but the compiler knows about the type directly, and also recognizes various @_semantics("array.blah") annotations that appear in the standard library source code. I believe the seman
106.
▲
by
mayoff
4y ago
I use SoundSource for this, but I did pay $39 for it. https://rogueamoeba.com/soundsource/
107.
▲
by
mayoff
4y ago
So you bought a printer that is marketed as “Works only with original HP toner; requires HP account, internet to operate” and now you're mad that it requires you to use original HP toner? https://www.hp.com/us-en/s
108.
▲
by
mayoff
4y ago
Or if you compile in release mode, in which case the fixed version is (maybe only sometimes?) inlined into your executable. I ran into the same bug, but since I'd included a `precondition` to verify that each elf-group had only one com
109.
▲
by
mayoff
4y ago
> dynamic languages don't require you to "emulate the compiler" in your head On the contrary. Your ‘functional’ timer function takes an argument and applies the - operator to it. You must be sure, every time you call the f
110.
▲
by
mayoff
4y ago
I guess some people spend so much time in Jira or whatever that they want keyboard shortcuts for everything? My company uses Jira and I'm a developer and I've never felt like “oh my god I'm wasting so much time mousing around
111.
▲
by
mayoff
4y ago
In What Do You Care What Other People Think? , Feynman's mother says: > “We're saving money as best we can, and we're trying to send him to Columbia or MIT.” And a page later, Feynman says: > After that summer, I went
112.
▲
by
mayoff
4y ago
iOS has a feature called Reachability which can help you reach the top half of the screen. Perform a small swipe down on the bottom edge of the screen to move the entire screen content down about 50%. https://support.apple.com&#x
113.
▲
by
mayoff
4y ago
46 inches at at 16:9 aspect ratio.
114.
▲
by
mayoff
4y ago
“If you think without writing down your thoughts, you only think you're thinking.” – Leslie Lamport https://www.microsoft.com/en-us/research/video/thinking-for-...
115.
▲
by
mayoff
4y ago
Neal Stephenson discussing the “Stephenson can't write endings” meme: https://www.reddit.com/r/nealstephenson/comments/5jjwmq/neal...
116.
▲
by
mayoff
4y ago
.DELETE_ON_ERROR is not sufficient. Some day your make process will be killed (due to a bug, OOM, kernel crash, power loss, whatever) while the recipe is running, thus having no chance to delete the broken output. I had this happen often en
117.
▲
I have complicated feelings about TDD
(buttondown.email)
3 points
by
mayoff
4y ago
|
0 comments
118.
▲
by
mayoff
4y ago
1. Have problem. 2. Google it. 3. Find answer on stackoverflow. 4. Try to upvote. 5. "You can't vote for your own post." This has happened to me multiple times.
119.
▲
by
mayoff
4y ago
Note that only an unoptimized Swift solution was provided, and Swift String operations (like `lowercased`) are fully Unicode-compliant.
120.
▲
by
mayoff
4y ago
Die ganzen Zahlen hat der liebe Gott gemacht, alles andere ist Menschenwerk. — Leopold Kronecker (“God made the integers; all else is the work of man.”)
More ›