skysight-inc/HackerNews huggingface dataset:
The recent trend towards decriminalization of various crimes like shoplifting have resulted in a crime wave.
What is the difference between `exiftool --image image.jpeg --remove` and `exiftool -all= image.jpeg`? It sounds like there is a benefit in adding the `--remove` flag but it's not clear to me what it is. Thanks!
As awesome as that is, cppcheck doesn't seem ready for real-world use. Literally the first invocation I ran resulted in this error:

error: Syntax Error: AST broken, binary operator '!=' doesn't have two operands. [internalAstError]
explicit operator bool() const { return this->get() != pointer(); }

This is for a simple wrapper class that looks like this:

template<class T>
class Foo : private Bar<T> {
public:
typedef value_type *pointer;
pointer get() const { return ...; }
explicit operator bool() const { return this->get() != pointer(); }
};

Another example:

void foo(uintptr_t const (&input)[2]) {
if constexpr (sizeof(uintptr_t) == sizeof(int) && sizeof(long long) == 2 * sizeof(int)) {
long long value;
memcpy(&reinterpret_cast<uintptr_t *>(&value)[0], &input[0], sizeof(input[0]));
memcpy(&reinterpret_cast<uintptr_t *>(&value)[1], &input[1], sizeof(input[1]));
}
}

error: The address of local variable 'value' is accessed at non-zero index. [objectIndex]
memcpy(&reinterpret_cast<uintptr_t *>(&value)[1], &input[1], sizeof(input[1]));
^
Reading https://en.wikipedia.org/wiki/UTF-8#Encoding, when we get to 8-byte long UTF-8 code points, the first byte would have to be all ones (11111111)

Those would have room for 7 bytes with 6 bits of data each, or 42 bits.

Of course, if the need arises (which won’t be soon) we could choose to add another byte to encode the length of the actual byte stream.

(Currently, even going beyond four bytes already would break code, as Unicode explicitly limited the UTF-8 encoding in https://datatracker.ietf.org/doc/html/rfc3629 to allow round-tripping to UTF-16. I also think the above goes beyond what was proposed historically (https://en.wikipedia.org/wiki/UTF-8#History))
That’s happened once so far yeah :) so generally I tend to move on before companies go under
When I started out with Clojure, I was using wrappers everywhere, but after about a year or so realised that they added very little value, hurt performance, and made the code less simple. On top of that, wrapper libraries were often not complete in functionality.

The pivotal moment for me with this was when dealing with Kafka, just using the “raw” Java library ended up being so incredibly much simpler than any of the wrapper libraries.
> Is there a system you like to use?

I use UK/US layout everywhere and dead keys for the occasional accented letters (on Linux), except for email and chats where I can copy/paste the code
No, you can just install it if you need it. It is just another package, there is no special reason it needs to be default.
Thank you for the kind words!

The use case for me is for a fzf preview window- you can see it in the last image in the blog post with the shell script used just above it.

If I use bat as my fzf previewer and move to a big file it’ll hang.

If you use bat standalone at the command line with it’ll open its built in pager instantly like you observed, but that doesn’t help with fzf. Also if you try to search or scroll to the bottom of the pager you’ll have a bad time.

https://github.com/junegunn/fzf#preview-window

My hat’s off to you on that title, that is masterful clickbait
I did it for some zip stuff that was already implemented in the Erlang stdlib, it was surprisingly easy. I assume the very small numbers of types in Elixir helps with that.
Wow, I remember Bevy 0.7 being recent, wasn't that just released a few months ago? (Update: 0.7 was released 3 months ago, 0.6 was released 6 months ago, Bevy itself was introduced around 2 years ago).

Anyways, Rust seems viable for gamedev and IMO Bevy is taking a great approach wrt the borrow checker (by using ECS, more liberal types even if it technically creates UB). I really hope this project takes off and actually leads to some great games, and maybe it will manage to be less bloated than some other game engines...

> Bevy officially only supports Rust as the "one true way to define app logic". We have very good reasons for this and that philosophy likely won't change any time soon

This is one thing disagree with. At least until/unless Rust gets a way to write code without worrying about borrow checker, like a Rust DSL which provides automatic Cow or Rc<RefCell on everything.

Rust's performance is critical for some game logic but a lot of logic really doesn't need performance, and the borrow checker is going to make that non-performance-sensitive code much harder to write, for no gain. This is especially an issue because most game devs work in teams and have team members who aren't as experienced with performance or the borrow checker or coding in general. It would be nice to have a "sandboxed" environment where a) you don't worry about the borrow checker and b) everything it checked so you don't worry about annoying memory corruption issues, but in exchange the code is a lot slower.

> These, when combined with our reflection APIs, provide the tools needed to start building scripting support!

> @jakobhellermann has started building their own JavaScript / TypeScript plugin for Bevy.

But it looks like they're making it possible to interface with other languages anyways! Which is the right move IMO. The Bevy maintainers and I can disagree with using multiple languages, but it doesn't matter as long as they provide the minimal bare-bones tools to do whatever.
[ Removed by Reddit ]

Because of course.
Are you suggesting that the breathing exercises are to blame?
Like Bill Gates before him, Mark Zuckerberg is having a ‘Pearl Harbour’ moment
The global trend in meat consumption is clearly upward, as the article says. I presume that global economic development is going to continue along with more meat-eating. There isn't enough land for everyone to consume meat like 20th century Americans if we stick to 20th century meat production techniques.

What remains?

I personally believe that cultivation of hydrogen oxidizing bacteria, and using them as a food chain base for animal feed, may constitute a second Green Revolution [1] for the 21st century. One early company in this space is Solar Foods [2]. Even though Solar Foods is promoting direct use of microbial cultured protein as a human food ingredient, I think that as costs go down and scales go up it will become common for microbial protein to be used in aquaculture and agriculture for feeding traditional food animals which will then be consumed by people.

Hydrogen oxidizing bacteria can convert nitrogen, hydrogen, and carbon dioxide to protein and other biological macromolecules without relying on photosynthesis. This constitutes a potential revolution in food production because any source of electricity can be used to generate hydrogen from water via electrolysis, and then biomass can be grown using that hydrogen plus carbon dioxide and nitrogen (plus small amounts of other mineral inputs).

Photosynthesis has a very low sunlight-to-food energy conversion ratio. A solar farm feeding hydrogen to microbial synthesis tanks could achieve more than an order of magnitude more food production per hectare than growing crops. Further, microbial synthesis tanks do not require weed control, insect control, or plowing (soil disruption). They require a minute fraction of the water needed to irrigate crops. They could operate on land that is too rocky, dry, hot, cold, or contaminated for farming. They could operate in windy places with little sun if powered by wind farms.

Here's an article focusing on the use of solar power for protein production:

"Solar-powered large scale microbial food production"

https://www.pv-magazine.com/2021/08/03/solar-powered-large-s...

Also consider this astonishing recent research report:

"Microbial Protein out of Thin Air: Fixation of Nitrogen Gas by an Autotrophic Hydrogen-Oxidizing Bacterial Enrichment"

https://core.ac.uk/download/pdf/322827781.pdf

The authors use selection pressure to develop a population of hydrogen oxidizing bacteria that assimilate nitrogen from the air. It potentially renders the Haber-Bosch process [3] unneeded for protein production, replacing a high-pressure, high-temperature industrial process with a room temperature, atmospheric pressure biological process. That would be the greatest sea change in agriculture since the original invention of the Haber-Bosch process more than 100 years ago.

[1] https://en.wikipedia.org/wiki/Green_Revolution

[2] https://solarfoods.com/

[3] https://en.wikipedia.org/wiki/Haber_process
TSB have had problems for years after they separated their infrastructure from Lloyds. They had a major weekish long outage and had to call in IBM to get them back and running. Not surprising they're still having problems.
I didn’t want to take my work MPB 16 back home. So I access Jupyter lab from iPad Air now. The slightly annoying thing is the Logitech keyboard that doesn’t have ESC button. Otherwise, it’s fine as a thin client for a remote server.
I turned my iPad Pro into my main computer - https://news.ycombinator.com/item?id=32282426 - July 2022 (25 comments)
Funny artifacts in a 3D house scan
I now noticed that I read your comment in the opposite order: "just don't read the abstract". I am glad I asked you, though, because I see your point and I agree with you for I have seen this happening before.
Yeah I’m earning very roughly half that. 400k liquid sounds like a stretch to me though, you sure that’s not total comp?
Without taking a concrete stance on the current state of patents - I developed something similar using GPU compute shaders while employed at AMD/ATI

https://patentimages.storage.googleapis.com/ef/d2/2c/b54bbdf...

Shameless self promotion aside, I think the patent application includes some helpful diagrams to understand what is being done here - specifically page 25/26.
Why would Google need to base their spam detection on IP alone?

If they see low "mark as spam" ratios for my mails, why would they care if they come through the same IP as spam from compromised wordpress instances?
As silly as it sounds, I'll browse the wikipedia page for "list of decepticons"
Often, I'll name various drives / devices on my home network after them, but it's just fun to see the names that the creators came up with

https://en.wikipedia.org/wiki/List_of_Decepticons
> a) it's not actually memory safe once you start doing heavy shit b) modern C++ is quite memory safe

This just doesn't capture the problem that memory safety solves. A crashed program is not the worst-case scenario that it's trying to avoid. Even the most memory-safe language supports exiting early with an error message, or whatever.

In terms of language semantics, there is an all-or-nothing line between memory safety and undefined behavior. A memory safe program does what it says, locally, step-by-step, according to the semantics of the language. When a program exhibits UB, those guarantees are lost.

Of course, as you note, unsafe Rust also lets you violate memory safety, and in fact any memory safe language is at the mercy of its implementation and host. The reason people get evangelical about Rust's memory safety is one level higher: it offers a bridge back to memory safety, such that unsafe code stands on the same footing as the core language. When either are bug-free, the compiler can ensure they are used correctly, using the same type system features for both.

Modern C++ is certainly much less error-prone than the bad old days of manual `new` and `delete`, but it doesn't have an answer to this "unsafe encapsulation." To the contrary, modern C++ actually adds a bunch of new ways to violate memory safety by misusing library APIs. Iterator invalidation, use-after-move, string_view and span and borrowed ranges, by-reference lambda and coroutine captures, etc.

This all means that "serious systems software" in C++ has to approach memory safety via defensive copying or refcounting, copious use of sanitizers, and sandboxed sub-processes. Meanwhile, Rust programs can do things that would be unthinkable in a large C++ codebase, because the assumptions of both the language and unsafe code are encoded in the type system. (For example: https://manishearth.github.io/blog/2015/05/03/where-rust-rea...) It's a qualitatively different solution to the problem.
Clojure libraries target microservices with a precision that no other language ecosystem has. In essence, Clojure web services developers rail against Rails and other bloated, unnecessarily complected (https://www.infoq.com/presentations/Simple-Made-Easy/) frameworks of the 90s. As a Clojurist I too rail against Rails. I don't think that expansive model fits the problem space. I have had painful experiences in the past maintaining Rails projects wondering why they didn't know of DRY. If there is a essence within Rails that you feel could be distilled into a lean Clojure model, build it out in a library and share it.
Try searching for "programmable keypad" or "macro pad", if I get it right, you want something loosely like the Falcon 8 (example only):

https://www.maxkeyboard.com/shop/keyboards/mechanical-keyboa...

https://www.maxkeyboard.com/max-falcon-8-rgb-custom-programm...
> The US and the EU have embedded risk assessments and will not launch if there is a greater than one in 10,000 chance of causing injury.

This may seem like a strict requirement, but the surface of the Earth is quite big (510 trillion square meters) compared to how many people there are (7.79 billion), so only about one in 65,000 square meters even has a human on it.
These could be used to create a real "smart grid" where very local variations are smoothed out among various reactors, with some battery storage for peaking. So long as people are willing to live near them.
Got it, thanks for your efforts, my comments weren't against you btw.
I just tried this out right now, with a Macbook Pro 14" M1, 2021 on macOS Monterey 12.0.1

This is how to do it:
https://www.lifewire.com/prevent-macbook-from-sleeping-when-...

- You need to be plugged into the power.

- got to battery settings.

- power adapter

- set display off to never (far right option on the slider)

- tick 'prevent your mac from automatically sleeping when the display is off.

It's a bit convoluted but it works.

Instead of setting display to never you can use a tray utility to manage that, in the past caffeine was the goto app for this. With mac M1 I am using owly but I'm not sure why it was just the first thing I installed on my fresh machine.
https://apps.apple.com/us/app/owly-prevent-display-sleep/id8...
The problem with public instances is that they're constantly overloaded. Your best bet is to run your own.
You have proof of causality in that direction, right?
Interesting read, gained even more respect for him from this article.
Unless you've successfully administered large outgoing email pools before, I'd advise against doing it yourself. Unlike much of tech, it's hard to undo email mistakes because most deliverability is controlled by a few big players who are very quick to blacklist domains and senders that look like spam, and very slow to process appeals. If you screw something up, your domain will keep a bad reputation for a long time and that would affect not just your newsletters but all emails.

You can try it, but just fully understand the risks before you do. Otherwise choose a bigger cheap provider. It doesn't have to be Mailchimp.
Sea water is also corrosive and full of little creatures that will make their homes on anything you put in the water. Any complex mechanical machinery is unlikely to last very long.
Yes, this is huge, IMO.
010 Editor (commercial). But I may give ImHex a try.
Oh I type wrong. I mean adding remove parameter on my CLI tool like `exifLooter --remove --image=image.jpeg`
Every coin has two sides.

Vegans are implicitly promoting genocide of cows, chicken and pigs. There's no chance these animals can survive in nature, they're so numerous exclusively because they're bred by humans for food. Is one-time genocide better or worse than continuous perpetual murder? This essay argues that it's worse.

https://slatestarcodex.com/2019/12/11/acc-is-eating-meat-a-n...
I love that your alternate solution includes printing money, which is why we have this astronomical inflation now. Inflation which is hurting the poor and middle class more than the wealthy.
I guess what the cap on damages is not really what I was curious about. I mean if there is a statutory limit of $X, what is the motivation for a company to settle for 2*$X?
I think the biggest issue with migrants is just the lack of wanting to learn and understand the local culture they are moving to. Americans moving to Mexico should really look to learn Spanish, much like Mexicans moving to America should learn English.

In terms of the economics, there will always be winners and losers. Yes, a lot of areas are gentrifying and pushing out locals, mainly as it relates to housing. On the other hand, a lot of local businesses are able to generate more money and also spend more money. This makes some of the locals much better off than they otherwise would be. Assuming the money is well invested, eventually, some an equilibrium point will be reached and there will be less tourists.

ie, look at Costa Rica. It used to be cheap, but after so much tourism and money flooding in it, they were able to better themselves. Now, Costa Rica is almost as expensive as some parts of the US.
“Idiomatic Clojure code calls Java libraries directly and doesn’t try to wrap everything under the sun to look like Lisp… Where Java isn’t broken, Clojure doesn’t fix it.”
>Fake meat is the e-cigarette of the food world.
>It's a tool that can be used to transition from a bad thing to a less bad thing or even a good thing.
It works well as a transition, but I don't think the end result is going to be "okay now we drop fake meat" -- there's nothing inherently unhealthy about fake meat.
Imagine that! Impoverished citizens of a third-world nation are more aggressive against wealthy foreigners, than are wealthy first-worlders against the pittance-wage illegal immigrants that they hire to harvest their crops! Inconceivable!
I don't think that's true at all. People say that crime increased in San Francisco because of the more progressive DA, but ignore that crime increased less in San Francisco than nationwide.
The most populous countries which are also the world's factory? Yes.

But if you look at emissions per capita, it's not China we should look at. It's a country that outsources most of its manufacturing and still manages to top the chart.

I feel like people say "but China" to avoid taking any responsibility.
I'm consistently pleased that https://zombo.com continues to exist.
Commercial, fleet insurance works exactly like this.

Back in the 80's there were already such solutions that would monitor speed and location based on cell tower. the data would be chirped back periodically. The price of the insurance would depend on driving speed and postal code for the cumulative information of the entire truck fleet.

Today, this is not even a question. It is the de facto way of charging fleet insurance.
I wonder what strategies need to be employed to feel confident that you have even surfaced all the problems. Presumably there is a list of unmitigatable problems or worst defended attack vectors. But that is probably the hidden success of our last century, that and tight machine tolerances it's everywhere.
Ooooh. Now I wanna find out how I can fly over an area with a drone and make pictures like the example!

On a somewhat smaller, more theoretical note, I wonder what "a radar signal" is as far as a Wi-Fi SoC is concerned. Sounds like the wild-west, much-trickier-to-block counterpart to the old deauth packet attack. At least the FCC/etc can get shouty if needed...

Edit: Oh, right, it only goes offline if channel selection is manual. And presumably radar only uses the one band (?) so you couldn't flood it out or play cat and mouse.

Hmph, this is actually well designed. Given that this requires pretending to be a radar you might as well switch to a smaller pot of hot water and just get a 5.8GHz signal jammer.
It can if most of the wealth is concentrated in a tiny percentage of the population and everyone else has to share rooms...
Fully agreed. Also I have a feeling the opposite might also be true - the more meat a person eats the bigger their chances to get good levels of energy and cognitive skills required to increase earning potential.
I have no idea how to use ImHex.
Could be. But I think reactors suffer from the same "NASA Problem" (and also some dose of second-system syndrome) as rockets

> It is requiring an immense amount of development on apparently trivial items. Corrosion, in particular, is a problem. (4) It is very expensive. (5) It takes a long time to build because of the engineering development problems. (6) It is large. (7) It is heavy. (8) It is complicated."

Correct. That's why you design once and build multiple ones

How did SpaceX manage to get the costs down?

Re-prioritizing is also important. Safety of course should be the main issue. But I suspect most current designs focus too much on efficiency and max power as well.
I don’t work with binary files much these days but I still use hex editors a lot just to debug any weird rendering glitches in terminal emulators. The ability to see the exact character codes being generated rather than the terminal emulators interpretation of them is invaluable. Though for that purpose hexdump is usually sufficient.

Back in the 90s, when I was working with binary data regularly, I’d have killed for something like ImHex.
Gaming the Lottery
That's why I eat beans
Hey, author here, happy to answer any questions! Also checkout this notebook for a deeper dive into sqlite-lines, along with a slick WASM demonstration and more thoughts on the codebase itself https://observablehq.com/@asg017/introducing-sqlite-lines

I really dig SQLite, and I believe SQLite extensions will push it to another level. I rarely reach for Pandas or other "traditional" tools and query languages, and instead opt for plain ol' SQLite and other extensions. As a shameless plug, I recently started a blog series on SQLite and related tools and extensions if you want to learn more! Next week I'll be publishing more SQLite extensions for parsing HTML + making HTTP requests https://observablehq.com/@asg017/a-new-sqlite-blog-series

A few other SQLite extensions:

- xlite, for reading Excel files, in Rust https://github.com/x2bool/xlite

- sqlean, several small SQLite extensions in C https://github.com/nalgeon/sqlean

- mergestat, several SQLite extensions for developers (mainly Github's API) in Go https://github.com/mergestat/mergestat
Yes, we should be punishing rich/elite corruption. Is this a trick question?
This is something that QuickTime VR did reasonably well many decades ago. So consider using a turntable and capturing a short video clip.
Sounds like system is working as designed.
Okay, but there are plenty of subscription apps that could just drop the cloud features and like 99% of the user base would be fine with that, Office and Adobe suites being obvious examples.
Back to SETI?
Racket has like 5 GC, perhaps more.

In one extreme you can build Racket using the Senora GC that is conservative and not moving, that is used only for bootstraping.

On the other extreme, both of the normal versions of Racket have custom moving incremental GC. The docs with some high level explanations are in https://docs.racket-lang.org/reference/garbagecollection.htm...

The implementation details of the main "CS" version are in https://github.com/racket/racket/blob/master/racket/src/Chez... It's a replacement of the default GC of Chez Scheme that has better support for some features that are used in Racket, but I never have looked so deeply in the details.