HackerTrans
TopNewTrendsCommentsPastAskShowJobs

pmahoney

no profile record

comments

pmahoney
·6 bulan yang lalu·discuss
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 my favorite mini projects.

(And I just realized the graph is all but impossible to read in dark mode)

https://github.com/pmahoney/fastup
pmahoney
·7 bulan yang lalu·discuss
> 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://legalclarity.org/when-do-gift-cards-become-subject-t... The value of abandoned cards goes to the state.
pmahoney
·9 bulan yang lalu·discuss
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 not), OR contact to negotiate different terms.

But there's a built-in assumption that no commercial entity would _want_ to use it under GPLv3 terms.
pmahoney
·11 bulan yang lalu·discuss
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 things that can automatically derive "to string" functions, but it's a bit of effort to set up, it's not as nice to use as what's available in Rust, and it can't handle things like Set and Map types without extra work, e.g. [1] (from 2021 so situation may have changed).

Compare to golang, where you can just use "%v" and related format strings to print nearly anything with zero effort.

[1] https://discuss.ocaml.org/t/ppx-deriving-implementation-for-...
pmahoney
·tahun lalu·discuss
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 them. It's an addictive game and some of the levels are devilishly (cruelly) complicated to solve.

https://linuxmotors.com/linux/scavenger/index.html
pmahoney
·tahun lalu·discuss
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://github.com/tadfisher/pass-otp