Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pmahoney
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
pmahoney
9mo ago
I wrote some code to do almost this many years ago (if I recall correctly, it doesn’t cache anything to disk, but builds the hash fresh each time, which can still result in massive speed up). Probably obsolete and broken by now, but one of
2.
▲
by
pmahoney
9mo ago
> Plus they get to keep the balance that people forget to redeem I'm not an expert here, but this is not generally true. See "giftcard escheatment laws". I think these vary by state, but see e.g. https://legalcl
3.
▲
by
pmahoney
11mo ago
If that phrase "for individuals" means "for individuals only", then it isn't GPLv3, but some bespoke non-free license. My speculation: it was intended to mean: use it under terms of GPLv3 (for commercial purposes or
4.
▲
by
pmahoney
1y ago
I tried to like OCaml for a few years. The things that hold me back the most are niggling things that are largely solved in more "modern" langs, the biggest being the inability to "print" arbitrary objects. There are ppx
5.
▲
by
pmahoney
1y ago
Could be xscavenger? > Scavenger is a cool arcade/thinking game very much like Lode Runner. You've got to run around and collect objects while avoiding enemies. Some objects are buried and you've got to dig down to get at
6.
▲
by
pmahoney
1y ago
Just to add, 'pass' has an otp extension to simplify this a bit [1] With that, you can do $ zbarimg -q --raw qrcode.png | pass otp insert <some-name> $ pass otp <some-name> # or pipe to xsel [1] https:&#
7.
▲
by
pmahoney
1y ago
Can you explain further? I'm not sure I follow. > How do you as a method author opt in to distinguishing between [break and next] after yielding to a block? I don't use Ruby much lately, but if I yield to a block which calls br
8.
▲
by
pmahoney
2y ago
Calvin vindicated https://www.gocomics.com/calvinandhobbes/1993/04/20
9.
▲
by
pmahoney
2y ago
This paper, "Insufficient Sun Exposure Has Become a Real Public Health Problem" [1] states "thus, serum 25(OH)D as an indicator of vitamin D status may be a proxy for and not a mediator of beneficial effects of sun exposure&q
10.
▲
by
pmahoney
4y ago
See also "Why roller coaster loops aren’t circular anymore" https://news.ycombinator.com/item?id=32005421
11.
▲
by
pmahoney
5y ago
Used "in anger" means "professionally" or "for real" or "where working or not really matters" vs. using it for hobby projects or experimentation.
12.
▲
by
pmahoney
5y ago
Many years ago (2011 or so?), I worked on a Rails app that used JRuby. The driving force was a small part of the app needing a Java library. I think we did see some performance benefit, or at least benefit from using multi-threaded web serv
13.
▲
by
pmahoney
5y ago
> Coupled with an increase in food delivery efficiency, kitchenless flats could become the norm in densely populated areas. Sounds dystopian. Hustle and bustle of life aside, physically cooking things can be enjoyable. On the other hand,
14.
▲
by
pmahoney
5y ago
There's Cliff Young's win in the 875km Westfield Sydney to Melbourne Ultramarathon. > While the other competitors stopped to sleep for six hours, Young kept running. He ran continuously for five days, taking the lead during the
15.
▲
by
pmahoney
5y ago
For 1., it's possible (easy even? I've never tried this in a cross-compiling situation) to build packages on one system and push them to another via SSH. I suppose an upgrade would still result in two copies of everything, at leas
16.
▲
by
pmahoney
5y ago
For what it's worth, Linux 5.6 introduced openat2 [1] which accepts some additional flags controlling path resolution. For example, RESOLVE_IN_ROOT "is as though the calling process had used chroot(2) to (temporarily) modify its r
17.
▲
by
pmahoney
5y ago
Not sure if this would help, and I'm not exactly sure I'm understanding you correctly, but when I tie hockey stakes, instead of a single "left-over-right starting knot" (using terminology from the post), I wrap around tw
18.
▲
by
pmahoney
6y ago
I stopped using `set -e`. It is disabled if the function you're running is part of an `if` statement, for example: thingThatCanFail() { echo "step one succeeded" echo "step two failed" false
19.
▲
by
pmahoney
6y ago
Here is (I think) the example regex ported to OCaml's Re library [1] let my_regex = let open Re in seq [ bos; opt (str "0x"); repn ( alt [ rg &#x
20.
▲
by
pmahoney
6y ago
Note that Apache Tomcat is an implementation of Java Servlets, not to be confused with Apache httpd, the venerable web server.
21.
▲
by
pmahoney
6y ago
This doesn't answer your question, but I'm piggy-backing with comments on k3s. For me, using k3s for development (not prod), the killer feature is running it in --docker mode where the node uses the local dockerd to run containers
22.
▲
by
pmahoney
6y ago
It's not a contradiction to state something is not a problem most of the time. (Though the next point, calculating checksums prior to build, is much more significant.) Related example: on a cloud instance with SSD drive, I have scripts
23.
▲
by
pmahoney
6y ago
See "(Entry 4 of 5)", the second noun definition of spell [1]. "an indeterminate period of time" or "a stretch of a specified type of weather" as in, "we've had a long dry spell; I hope it rains soon
24.
▲
by
pmahoney
6y ago
Hi Paul, thanks for Ardour. For anyone curious, this wiki page describes how to package and run some precompiled binaries on NixOS, particularly the section "The Dynamic Loader": https://nixos.wiki/wiki/Packag
25.
▲
by
pmahoney
6y ago
That's an interesting point. But it's not just rpaths, there are many references to things within the nix store. I suspect it would quite difficult to make them bound at runtime or something, but would be nice if possible.
26.
▲
by
pmahoney
6y ago
Hindsight is 20/20. It wasn't /opt/nix for reasons I do not know. In the context of NixOS, there's little reason to consider FHS. Only when using Nixpkgs outside of NixOS does the /nix choice look poor. I don&
27.
▲
by
pmahoney
6y ago
Nix living at a predefined path is integral to how it works. An executable does not dynamically link to a generic "ncurses" but (via rpath) links to a specific compiled version of ncurses (such as /nix/store/81rb87a
28.
▲
by
pmahoney
6y ago
This is a good question, and I think the article doesn't cover this topic well. From the article: > The other one is to tell if during a pod's life the pod becomes too hot handling too much traffic (or an expensive computation)
29.
▲
by
pmahoney
7y ago
The article states the process was discovered > while investigating the crystallization rates of metal, Czochralski dipped his pen into molten tin instead of an inkwell. That caused a tin filament to form on the pen’s tip And later, desc
30.
▲
by
pmahoney
7y ago
On my phone running iOS, in addition to the brightness slider there is an option under Settings -> General -> Accessibility Display Accommodations to "Reduce White Point", which I can use to further dim the screen.
More ›