skysight-inc/HackerNews huggingface dataset:
> The problem is, they can be just as easily cloned.

Not if the validation system uses the password feature of MIFARE Ultralight. For single-use tickets, which are invalidated immediately after being read, this can be good enough and is much more lightweight on the IC side.
> what if in future I don't want to execute my .py script with `/usr/bin/python` but `/usr/bin/nohtyp

you're thinking too much, people have had that shebang for 20 years without any problems

> But I really, really just want to run `hello` to call a `hello.py` script that is in my $PATH.

I don't really understand why you're so adamant about this, either make a python "hello" script with a shebang or just tab complete hell<tab> which you should do with most commands anyway so the .py doesn't matter

another option would be to alias but you'd have to do that manually for every frequent script you need
> If you actually cared about safety you’d require airbags, crumple zones, licensing, insurance, and crash testing for cyclists.

I've crashed on a bicycle, more than once. I've crashed even on a motorcycle (on a racetrack). The damage that is caused to myself, to my machine, and the surrounds, is tiny compared to the damage that is caused by an automobile with (at least) an order of magnitude more mass: a friend of mine had a car go through the front of his house, and the physical carnage was impressive (no person was injured thankfully).

And every time licensing has been looked at for cyclists, it has found to be a dumb idea:

* https://www.youtube.com/watch?v=Uj47qJ-UUno

> You’re better off building parallel infrastructure and taxing cyclists to pay for it via licensing.

Cars cause much more damage to roads than bicyclists, and they should pay proportionally:

* https://www.investopedia.com/gas-taxes-and-what-you-need-to-...

* https://en.wikipedia.org/wiki/Fourth_power_law

And bicyclists already pay for local roads through local property taxes:

* https://www.youtube.com/watch?v=Wjv8WQu92c0

The problem is that roads are now practically monopolized for private vehicle use to the exclusion of everyone else, and the costs are not fully paid for by drivers. Higher density areas subsidize lower density ones, and road infrastructure is a big part of that:

* https://www.youtube.com/watch?v=7Nw6qyyrTeI
> "save the trees" is probably better re-labelled as "save the old growth trees". Would you agree?

yes, we should most certainly protect old growth stands. they are very rare in the forests that i'm familiar with in the US east, and maintaining that ecology overrides any economic benefit gained from cutting the trees, imo. i'm in no way advocating for cutting down old growth stands, my comment was more in response to how we manage the forests that came after we cut the old growth.

> Would you consider tree farms as ecologically sound? (I'll note those are intentionally over-planted, homogeneous, and burn like crazy)

this depends on how the forest is managed. monocultures are bad and diversity is good (though a lot of stands have predominant species, naturally), forests need disturbances (whether through thinning or fire or naturally), etc. but a diverse forest can still be in rough shape. i'm getting at the edge of my knowledge fwiw.

> Which key facts caused you to change your mind?

i bought forest land and learned as much as i could about forest management, so there is too much information to list. i can share books if you're genuinely curious.
"I Taught My Shrimp to Fry Rice" also comes to mind:

https://www.youtube.com/shorts/upgdrBO02Gs
Wasn't that the idea of the Fourteen Points?
Fair point. I've been doing this for years and none of my scripts have ever caused any (noticeable) breakage, though.

The danger is also mitigated because I only modify my own user's shell rc file. Any daemons running as root or their own user are unaffected.
The Wayback Machine, a time machine for the web
> the US democracy

which doesn't exist. It's a republic.
Firecracker starts running the application in as low as 125ms. Most of the overhead in a "cloud cold start" comes from the cloud infrastructure, not from the virtualization mechanism.
A quick check of the Wellness Company and their chief scientist puts some doubt on these claims, for me: https://www.factcheck.org/2024/02/scicheck-review-article-by...

As another commenter said, who even knows what’s real these days, who is fact checking the fact checkers? There are multiple instances of paper retraction noted, which I suppose is a good enough proxy for truthiness
Philosophy itself goes to Ancient Greek. Following the rules in the Wikipedia article, I found Ancient Greek led to Philosophy again.
Actually the first link in the Ancient Greek article is [hellɛːnikɛ́ː], but this is parenthesized, so the rules say to ignore it: "Parentheses would pick up language links that quickly railroad the subject, such as Txorierri line linking to Basque language instead of Narrow-gauge railway". However following such links does also lead eventually to a different Philosophy and Ancient Greek loop. The last article I read was that on the Chodzony, or Polonez, which also leads to Philosophy.
I dislike this immensely. It costs nothing to type "~/bin" in front of the command each and every time. And it means I can put comma's wherever I want in some commands that use them, like SQL ..

I do, however, like to comment my custom commands:

$ mv ~/Desktop/*pdf ~/Documents/PDF # pdfsync
$ for i in ~/Documents/Development/JUCE/JUCE_Projects/* ; do ; cowsay $i ; cd $i ; git pull ; git fetch --all ; git submodule update --init --recursive ; done # updatejuce

CTRL-R "updatejuce" or "pdfsync" .. and off we go ..

A much nicer way of finding my custom commands ..
Here is an article about using binfmt_misc to make .go files executable. I assume something similar could be done for python:

https://blog.cloudflare.com/using-go-as-a-scripting-language...
> then you have to add a shebang line directly to the script itself, which I always feel uncomfortable since it's hard-coded (what if in future I don't want to execute my .py script with `/usr/bin/python` but `/usr/bin/nohtyp`?)

> But I really, really just want to run `hello` to call a `hello.py` script that is in my $PATH.

On Linux I'd say the shebang is still the right tool for this. If you want a lightweight approach, just have a `my_python` symlink in your path, then your shebang can be `/usr/bin/env my_python` (or heck just `/foo/bar/baz/my_python`, /usr/bin/env is already an abstraction).

If you want a more principled approach, look at the `update-alternatives` tool, which provides this sort of abstraction in a more general way: https://linuxconfig.org/how-to-set-default-programs-using-up...
You could have a shim script with the shebang that only exists to call the "real" script using Python.

/usr/bin/hello:

#!/usr/bin/bash
python3 /usr/bin/hello.py

/usr/bin/hello.py:

print("Hello, world!")

Console:

$ chmod +x /usr/bin/hello
$ hello
Hello, World!
I think you are unintentionally proving their point. We tightened regulations and have just exported pollution to dictatorships (e.g., CCP). If city folks just do local bans without similar import bans, what is the point?

> yes, poor people prosper when international megacorps pay them minimum wage to chop down all their trees

Or, why not let the poor people decide for themselves? In your story, the only illegal thing the megacorp did was pollution. Why didn't existing laws address that?
> using physics as a highly reliable guide to practicing metaphysics.

Have the professional metaphysicians done any better?

[I also suggest steering well clear of any work in which I paraphrase chapters of the 道德经 as advocating partitioning one's control budget among small neighbourhoods of the inflection points on the manifold in phase space occupied by the 10'000 things.]
You can run /usr/bin/nohtyp hello.py even on a script with a shebang specifying a different executable.

To remove the .py just rename the file to “hello”, or keep “hello.py” and create a symlink or a shell alias called “hello” that points to it.
I think we now know about a lot more externalities of this kind of logging than we did generations ago. For example, much of the hydrological basis that provide drinking water to the Seattle metro area was aggressively logged 100 years ago which impacts the hydrology of the basin in a negative way for the purpose collecting drinking water.

I think extra knowledge in the space of the environment often leads to indecision which is certainly it's own drawback but I think these choices are not without tradeoffs that should be acknowledged.
Socks, Lies, and Accessibility
Can someone explain how lab grown meat releases less greenhouse gasses? Seems like much more energy inefficient than the old fashion way. Are there any figures available that go into the thermodynamics of it all?
I can’t find anything about this. The project looks still active.

Perhaps it’s a confusion with k3os, a k3s operating system. https://github.com/rancher/k3os
You not understanding what my comment means is incredibly thematic.
For a few years now, you may usually do a contactless card payment - just tap your bank (debit or credit) card. The fare is often higher but so is convenience.

Back around 2010 I remember reading these accusations that significant part of revenue went directly to Mifare for the massive number of chips.

And for single rides, some of Metro systems still use these steampunk brass tokens. Sometimes, less authentic plastic.
Clicked on this as I've fond memories of download managers, though I was more interested in resuming downloads across many dial up sessions than throughput improvements. It's a good tip how they can apply to blob storage.

Nit: As someone new to rust, I was a bit confused by the "clone the semaphore" part (as that would be a bit self defeating), but it turns out you're not actually cloning it. Rather the Arc wrapper is being cloned and managing access/lifetime of a single semaphore instance.

There's a detailed explanation on stack overflow here that make it click for me https://stackoverflow.com/questions/40984932/what-happens-wh...
> I always feel uncomfortable since it's hard-code

I used to think this as well, but I've since come around to the opposite view. Having it as a "requirement" for what's likely the most popular cli execution strategy enforces a (somewhat disorganised but still useful) defacto standard across all scripts. I can open up any repo/gist/pastebin in the world & chances are if it's intended to be run, it'll contain this handy little statement of intent on the first line. I might not actually run (env-dependent) but I'm sure I can make it.

On the env-sensitivity though, if e.g. you're running nohtyp, as another commenter mentioned, /usr/bin/env has that covered.
I guess you could sign a git note[1] on an existing commit. As a bonus you could add metadata about what you are actually signing off, like "approved" or even "rejected".

Just adding an additional signature on top of an existing commit wouldn't carry too much info. What are you actually signing off on? Is it approval? Is it acknowledgement? And then it can be hard to sign off on something negative, like a code review that rejects.

[1] https://git-scm.com/docs/git-notes
Handbook of Thin Film Deposition (Seshan)
system32.dll
Web Pages via Email – Syntax?
A problem, a solution that is at least
partially complete, some documentation of
the solution, and a question -- is there
more to the problem and more needed for a
complete solution?

The situation and problem: Received some
email that contained a Web page. I.e.,
used Web browser Firefox to go to the Web
site of my email provider, got their Web
page that contained some email sent to me,
in that Web page read the email, and in
that email read a Web page (e.g., from
Goldman-Sachs, but similarly from Macy's,
a university, a symphony orchestra, ...).

So the email (SMTP, simple mail transfer
protocol) made use of MIME (multi-media
internet mail extensions), and the HTML
from Goldman-Sachs was in a MIME Part.
The results looked fine -- Firefox, my
email provider, and Goldman-Sachs all did
fine. But I would like to have the Web
page I received, the one from
Goldman-Sachs, in a file, say, A.HTM, and
that I could give to Firefox and again get
the Goldman-Sachs Web page.

So, just using a text editor, copied the
HTML from the MIME Part to a file A.HTM.

Gave file A.HTM to Firefox and got only a
mess: Some of the text was visible, but
the formatting was a disaster. Congrats
to Firefox for displaying the stuff at
all!

So, Internet Secret 101 A: The HTML data
in the MIME part had some syntax
changes, and to get a file B.HTM that will
display the Web page I was sent (e.g., by
Goldman-Sachs) that will display like it's
supposed to and did, need to undo the
syntax changes!

Why try to get the file B.HTM? Maybe such
a file will prove to be a welcome part of
some future email handling. Maybe.

A guess would be that just using the
capabilities of MIME Parts would permit no
syntax changes, but apparently, instead,
the changes are popular.

So, what are the changes?

Didn't see any documentation so just
looked at some examples, guessed, and saw
two:

(1) The syntax has the lines of HTML bytes
broken (split) at <= 72 characters long
and then an equal character appended to
indicate that should remove the equal and
append the next line to undo the split.
As I recall, this syntax is part of SMTP.

(2) The really popular characters 0-9,
a-z, and A-Z represent themselves, but
many other characters are encoded, e.g.,
a period character can be replaced with

=2D

The 2 and the D are each hexadecimal for
4 bits where the 2 represents bits 0010
and the D represents bits 1101. So, the
2D is 8 bit byte 0010 1101 which is the
period character. There are more details
and characters at

https://www.w3schools.com/charsets/ref_utf_basic_latin.asp

So, to have file B.HTM, have to undo
syntax changes (1) and (2) in file A.HTM.

So, I wrote some code to execute the
undo. On some examples, the one from
Goldman-Sachs and some others, the code
seems to work, got a file B.HTM that
Firefox does display apparently fine, and
changes (1) and (2) seem to be enough.

Okay, Question? I didn't see (1) and (2)
documented so had to guess. So what else
is there to the syntax change beyond (1)
and (2)?
The primary reason is probably just that the secure element in more recent iPhones is probably just an order of magnitude more beefy than the IC in your physical cards.

Powering up the IC actually doesn't take long, but the processing itself can: Contactless payment transactions (mostly) use asymmetric cryptography, and old one at that too (usually RSA), so simply crunching the numbers takes these fairly underpowered ICs quite some time, even when they include cryptographic coprocessors.

Compare that with (symmetric key based) transit ticket authentication, e.g. for MIFARE DESfire or Japanese Felica cards: These usually use DES or AES, which is lightning fast in comparison.
I don't understand your point. Internet and forests are different systems. They both have different uses and different types of management. It doesn't make sense to me to compare. Could you expand more?
That's quite interesting. And the promised battery lifespans of NB-IoT device, did it hold some truth? In the beginning we heard about 10 year life spans for simple well designed devices.
Re your second question, here’s how I manage my dotfiles:

https://github.com/andersix/dotfiles
The only one here that actually stands out from usage is "delves". Every other word on this list is common usage among anyone who has a decent vocabulary and a literary mind.

But I guess I'll just get flagged for being a GPT now.
But... Game theory says we'll be ok in the end.

https://youtu.be/mScpHTIi-kM
This is (potentially) so much better than complex C preprocessor or C++ template complexity.
I have some essential stuff for zsh config in a git repo.

For my most important custom bins, they are written in Rust and published to crates.io so I cargo install them from there. It’s just one crate, with wrappers for the git commands that I use day to day

In addition to this, I have host specific repos with some scripts. These scripts are not in my path but are instead scripts that run on a schedule from cron. These scripts run and log various facts about the machine such as zpool status and list installed packages, and auto-commit and push those to their repo. And the other kind of script I have invokes zfs send and recv to have automatic backups of data that I care about.

In addition to this I have a couple other git repos for stuff that matters to me, which either runs via cron (retrieving data from 3rd parties on a schedule) or manually (processing some data).

For neovim I stopped caring about having a custom RC file at all. I just use vanilla neovim now on my servers. On my laptop I use full blown IDEs from JetBrains for doing work.
binfmt_misc is only useful for when a fileformat does not allow shebangs
Cell-cultured meat industry veteran (and dropout) here. If Singaporean companies are able to make a viable business out of cell-cultured meat, that would be fantastic, and a boon to the world. Some skepticism is warranted, though. It's very difficult to do this at scale, and that's regardless of unit price. Cultivating the meat that sells at a mass-market price is the real challenge and one I wouldn't bet on anytime soon, not even by 2030. The technical challenges are too many to list here, some of which are not public knowledge. Besides, the once-touted environmental advantages have turned out to be marginal at best.

One way this business might make sense would be to sell boutique cell-cultured "specialty" meats, like scallops, veal, and wooly mammoth (yes, it's been seriously considered). They're not nearly as price-sensitive, and the scale is smaller. Here's hoping we can ease the burden on endangered populations and mitigate the inherent cruelty of some of those industries with cell-cultured alternatives.
See point 2 in the Background section.
It feels like a fundamental forgetting that at the other end of your business transaction is a human being. I've been telling this story to friends lately. I have a "membership" to a local car wash. As long as I go 2x / month it's worth it, but if I don't I'm wasting money. Usually that means I'm wasting money in the winter months, but overall I tend to make it up in the summers and have been relatively happy with things.

In the past year, the car wash was sold to some other owners, possibly a small chain. Price remained the same and service remained roughly the same, so I'd kept the membership. A few months back they randomly sent a text out to all the membership customers announcing the finalization of the ownership change. Up until this point, they'd never texted me before, but ok a change like that might be worth sending an unexpected "marketing text" to everyone. Suddenly every couple of weeks I'm getting new marketing text blasts to come by and make sure my car is clean for the upcoming weekend or some other stupid thing like that. Not to upgrade my membership, and not for any "hey we're running a promotion of 50% off the ceramic coating" or anything similar. Just annoying "it's a weekend, come get your car washed" texts, to a member where you don't even get any upsells when you come in to use your membership in the first place. They make more money if I don't show up and use my membership and they're spamming me without any offers that might even make it worth while. And now I'm annoyed.

They could have just not started sending out marketing campaigns to their members. Like I said, they don't have upsell options when you go through on your membership tag (they used to but that stopped with the ownership change). They could have sent a text saying something like "hey, we haven't seen you in a while and we wanted to remind you you're still paying for an active membership, come on by". That would feel personal, like they care (even if they don't) that me not using my membership is a waste of my money. They could even have made it a marketing blast with "as a thanks for sticking with us, we're going to give you a free/discounted ceramic coating" or some other extra on your next wash". But they didn't do that either.

So now, instead of me having a story to tell people about this awesome car wash place that really takes care of their customers, I instead have a story of a stupid car wash place that started annoying me for no reason at all. They've also incentivized me to re-examine the membership and other options in the area because of their decision to just start being stupidly annoying. All because probably someone somewhere in the decision chain saw some numbers that said if they blast thousands of texts out, that could turn into some extra hundreds in sales, and didn't even stop to think that some real human lives at the other end of that text and wasn't expecting or wanting that text.
Tab complete does not work if the script isn't at CWD, which is the case here since all my script is at ~/bin/.
Or if you don't want to use shebangs as mentioned.
Wonder how much has Netflix payed for this article to the Verge.
I use chezmoi - it handles both elegantly & has no real requirements w.r.t. how you choose to structure your filesystem. It also handles recovery well when you mess things up.
Yep. There are many different ways to tune a piano, none of them perfect. A tuning that is just right for one key will leave real howlers in others. (Literally "howlers"; it's called a "wolf tone")

https://en.m.wikipedia.org/wiki/Interval_(music)

Actual pianos are usually tuned in a way that sounds pretty good most of the time, without ever sounding perfect.
The Strange Journey of John Lennon's Stolen Patek Philippe Watch
They are all documented in the io package. There's no point in telling you just one of them. But you have to RTM which was my point.
If it can’t hallucinate, can it “believe”? I think all the pedantry is silly.
Nobody talks about the thermodynamics because right now it's terrible (also why the economics is terrible - nobody can get anywhere the $3/kg of chicken breast).

However, theoretically lab grown meat could be a big win on the thermodynamics front, and whoever solves that will have a far easier time getting the economics working too.
The title says "Montreal" and the second photo in the blog post shows the specific ticket. I'm not sure what else I can do here.
How does this differ from next-auth? Does that support Firebase?

Somehow I feel like writing custom packages for integrating a 3rd party SaaS might be an anti-pattern (or sth like this, the word is annoying in its inherent generalization).

Doesn't Firebase already support some kind of auth (integration) that is supposed to be easy to integrate with frontend libraries?

Auth is the part of any application where I would do the biggest effort to minimize the amount of external packages (but not to 0, not rolling own crypto etc for sure), stick to defaults, and try to be aware of any security caveats in my system.
Well, it's not carefully lowered down on a string, it's dropped from the height of the window, which you can see in the video.
They also teach pie charts and use color scales with non-uniform brightness. Just because it's possible to read a plot doesn't make it a good plot.
It is not even true for shareholders, as those shareholders themselves sometimes answer to other organisations.
Better than logging would be to pull trees down and leave them in place on the ground: https://youtu.be/BiDBAU2d7oE
Unbelievable and incredible who hard Facebook makes this to do by hand. Completely unethical
Probably relevant:

https://github.com/fchollet/ARC-AGI
Tab complete should still work if ~/bin is in $PATH.
https://archive.ph/2qgna
This is so much nicer than the typical type of things that might fall onto your head in Midtown. Love it!
I don't know how many times I've been in a city for a single day, or part of one, and have zero interest in spending precious minutes finding, buying, and returning a card.

Just let me pay with coins, or a credit card in seconds, with no return work.