Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
a_e_k
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
31 ms
·
361.
▲
by
a_e_k
5y ago
It jumped out at me as a nice example of the Edward Tufte style (which I'm a big fan of -- I once published a tech report in that style). People have put together style sheets emulating it for LaTeX [1][2], CSS [3], and R Studio Markd
362.
▲
by
a_e_k
5y ago
> If you compare by a boolean variable, for example, partition data by existence of something, it’s very tempting to write std::sort call. > We saw a pattern of sort+resize a lot. These seem like good opportunities for clang-tidy
363.
▲
by
a_e_k
5y ago
I'd been worried about that when I first tried it too. But it opens giant (130MB+) PDFs on my SD card just fine when in airplane mode and when I've had no cell signal. So despite the name, the Drive PDF Viewer app seems to run l
364.
▲
by
a_e_k
5y ago
I believe the code that controls that is all in startup.el (or startup.el.gz) in the Emacs distribution. You can find the documentation here: https://www.gnu.org/software/emacs/manual/html_node/emacs
365.
▲
by
a_e_k
5y ago
"Down Under" (1981) and "Kookaburra" (1932) is another good example of that. I can't say that I would ever have noticed the riff without someone pointing it out. And "Kookaburra" is a song that I first h
366.
▲
by
a_e_k
5y ago
M-x xterm-mouse-mode gives an experience in the console that's pretty darn faithful to the full GUI when it comes to mouse interaction. Clicking, selection, and scroll wheel all work pretty much as expected. Even menus and pop-menus
367.
▲
by
a_e_k
5y ago
How appropriate. You write like a COW.
368.
▲
by
a_e_k
5y ago
It's been a long time since I played a multiplayer shooter, but I used to have admin on a UT2k3 IG CTF clan server. One oddly strong memory I have from those days was banning cheaters and swapping lists of banned UUIDs with the admins
369.
▲
by
a_e_k
5y ago
True; I probably overstated it in terms of idiom recognition (compiler enthusiast, but by no means expert). I suspect that a similar SSA or data flow analysis combined with some judicious rewrite rules like (X ^ Y) ^ Y -> X [0] are enou
370.
▲
by
a_e_k
5y ago
Behold!, as it all becomes the same thing in C++ with optimizations on: https://godbolt.org/z/joh1jhdhq Good production compilers recognize all these swap idioms and will compile them down (i.e., canonicalize them) to
371.
▲
by
a_e_k
5y ago
That calls to mind one of my favorite bits from RFC 1925 ("The Twelve Networking Truths") [0]: > With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are goi
372.
▲
by
a_e_k
5y ago
This is one of the things that sold me on the Affinity graphics suite. Their license [0] works the same way for purchases by private individuals. [0] https://affinity.serif.com/en-us/licence/
373.
▲
by
a_e_k
5y ago
You said the key word already: trust . Trust is earned over time, whether between humans or between cats and humans. Growing up, I had a lot of cats around the house and now with a family of my own we have a pair of kitties. In many year
374.
▲
by
a_e_k
5y ago
My standard kit still includes a pair of fine-point forceps from my dad's lab that he gave to me for cleaning mice when I went off to college. It's been a long time since I used them for mice, but they're now really handy fo
375.
▲
by
a_e_k
5y ago
I take this to be an acknowledgement that we don't know everything. I.e., "These are the only ones of which the news has come to Haaahrvard, And there may be many others but they haven't been discohhhvered."
376.
▲
by
a_e_k
5y ago
On a standard keyboard with Ctrl keys in the corner, I don't even need to reach for them with my pinkies; I just roll my hand slightly and mash it with the upper part of the palm below the pinky.
377.
▲
by
a_e_k
5y ago
I recently started testing a project with -fsanitize=integer as well. It'll report a few potential issues that -fsanitize=undefined won't, like left shifting a 1-bit off the end.
378.
▲
by
a_e_k
5y ago
As an experiment a while back, I had tried in on a small project of mine that uses std::vector, std::string, and <algorithm> (though not a whole lot else). It built, ran, and passed my test suite.
379.
▲
by
a_e_k
5y ago
Mercurial?
380.
▲
by
a_e_k
5y ago
My wife told me that when she was studying Russian in college, some of the professors in the advanced courses would refer to certain phrasings as the "spy's variant."
381.
▲
by
a_e_k
5y ago
I wouldn't credit the CSS spec folks with the 100 to 900 thing for the font weight. I believe that comes from the usWeightClass field [1] of the OS/2 table in the TrueType (1991) and OpenType (1996) formats. The Win32 API also u
382.
▲
by
a_e_k
5y ago
Look into spectral rendering. For a very simple form, you can sample a specific wavelength with each ray, trace it using wavelength-dependent refraction indices (e.g., from the Sellmeier equation) whenever you compute refraction or internal
383.
▲
by
a_e_k
5y ago
> like tone mapping You can can even add a fairly basic kind of Reinhard tone mapping, plus a 2.2 gamma and output dithering if you change the second function to: static unsigned char byte(double dd) { return pow(dd / (1.0
384.
▲
by
a_e_k
5y ago
At least in the United States, being "chewed out" means being reprimanded or chastised.
385.
▲
by
a_e_k
5y ago
This is why I like the Scottish "not proven" acquittal verdict as an intermediate third option between "not guilty" and "guilty." https://en.wikipedia.org/wiki/Not_proven
386.
▲
by
a_e_k
5y ago
That's exactly what it's doing: let rayAngle = player.angle - player.fieldOfView / 2; for(let rayCount = 0; rayCount < screen.width; rayCount++) { // ... SNIP ... // the ray move
387.
▲
by
a_e_k
5y ago
I think you're missing a zero and must mean 0.03 m/s for light. Otherwise, your other distances have the wrong order of magnitude in terms of light-seconds.
388.
▲
by
a_e_k
5y ago
s/senior management/parenting/ It's striking just how much this comment also describes how I feel as a parent sometimes.
389.
▲
by
a_e_k
5y ago
Emacs has a lot of cool little touches to the way it blinks the cursor. blink-cursor-delay (defaults to 0.5 seconds): Keeps the cursor visible and not blinking when you're rapidly navigating around or typing. Most other apps seem to
390.
▲
by
a_e_k
5y ago
That's pretty close to my approach. I'd suggest not just limiting yourself to just the initial set of papers amassed in your "Review" step, though. Feel free to add new papers to your queue at any time if you come acro
More ›