skysight-inc/HackerNews huggingface dataset:
What is the easiest way to make sure a "field, or option" is present in a file. Similar to what ansible's lineinfile does?

For example suppose I need to add this setting to /etc/ssh/sshd_config:

PermitRootLogin yes

One idea that comes to mind is to first delete the line with the line shown in this post, and then add it back:

Regex sed -E '/^#/d' file.txt - delete lines where regex matches

sed -E '/^PermiteRootLogin/d' /etc/ssh/sshd_config ; echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config

Is there a more straightforward way with sed?
JoCo's album "Solid State" deals with this topic, it's a great listen.
Shitty explanation. If they don't want people to waste time, give them what you already know.
America is hiring a record number of robots
It seems that both the government and corporations agree that everything you own should spy on you constantly.
> biologically dead

How can we balance microbial biodiversity against macroscopic zoological biodiversity? Certainly the Thames has been thriving with a diversity of microbial life. Are there measures of biodiversity that are less zoologically-centric and more information theoretic, say by measuring the information content of the collective genomes in an ecosystem, including bacteria and viruses?
This might end up as non-issue because of economies of scale. In 10 years batteries might be so cheap that making replacement packs for older cars make sense.

On the other hand, there's non-negligible possibility that cars powered by ICEs will be forbidden to enter city centers in 10 years.
Ever seen this series or author?

https://thelastpsychiatrist.com/2012/11/hipsters_on_food_sta...
Is there somewhere that one could experience this, but in a more modern setting? It seems like a niche that has disappeared.
> Screensharing can be a bit iffy, but I don't need to do this often, thankfully. And, if I switch from Wayland to X11, even if just for that session, I expect it will work better.

I don't know about other chromium browsers, but you can do it on wayland compositor by enabling "WebRTC PipeWire support" flag on edge chromium.
Counterpoint, we travelled this year and got two flights for the price of one. The refunded flight from early COVID days literally paid for both. Even after somewhat expensive COVID testing costs, still a significant saving.

Sure, now that travel restrictions are causing less uncertainty and demand is ramping up, this might not be repeatable. Perhaps hotels are skimping, not sure as we stayed with family. Either way, there's always some subjectivity in use cases and that can easily tilt the scale one way or the other.
Some people do find that it feels good stopping consumption as an individual.
Somebody else replied to you about the technical feasibility.

It's also worth noting that if you statically link Glibc, you'll need to make more of an effort to comply with the LGPL. If you dynamically link, you automatically comply with 4(d).
One trouble the liberal world has dealing with racists and genociders is that we think up until the next election, but racists and genociders are thinking ahead 1000s of years.

When Poland was partitioned, the Hapsburgs, Germans, and Russians made a secret treaty to never mention the word "Poland" and figured in 500 years or so people would have forgotten.

Hitler talked of a 1000-year Reich.

Israel is in no hurry to "get rid" of the Palestinians but they know if they keep the pressure on and take advantage of the opportunity to expel a few here and a few there, there will be no Palestinians in Palestine in 1000 years.
I’m 15. I am as well.
Publishers and Facebook: how to set a strategy based on the Facebook outage
What about it strikes you as optimistic? I felt pretty pessimistic when I wrote it.
> you need to wait for every second to digest the information in a voice call.

That's highly person-dependent. Some kind of auditory processing disorder runs in my family, and I definitely have it. Under a lot of conditions, I need to spend extra time to digest and understand what has been said.

But not everyone is like this. For a lot of people, hearing is digesting, is understanding.

And like many things, people presume that their own experience is the universal experience- you presume everyone needs to digest, and the person sending you the audio message presumes everyone can process it instantly.
Developing countries tends to have a less damaged wilder environment than the UK and Europe, which are almost 100% man-made at this point: Everything has been planted for humans' benefits and any large wide animal that did not fit in killed off.

We actually want to help developing countries to develop without ending like Europe.
It's valid criticism for projects that don't need the scale or features that cloud-based solutions offer.

A single machine won't give you the same level of scaling and management features, but also won't have hundreds of distributed moving parts that could break and take your service down as a side-effect.
Isn't diluted high-concentration electrolytes an oxymoron?
Show HN: Open-source Tailwind CSS component library [MIT License]
Not so great if you just wanted to buy something and get on with your day.
Oh neat, and sorry for missing that. I can totally see why you might have valid reasons for that.
There’s one Bay Area.
Teaching the Immune System to Attack Cancer with Greater Precision
If you're into rap/hip-hop:

https://youtube.com/watch?v=psw9G9Lp7ac

The entire channel is a gold mine

https://youtube.com/c/stdout/videos
Sorry, I should have been cleared that I was referring to the part about the middle class waking up to the abuse of service workers. I'm pretty sure that many local stores treat their employees as bad if not worse than Amazon.
This is nice but I have suggestions and questions.

Case management. I use "cliniccases" which does most of the work but it is geared towards law clinics and does not have "billing". That can be improved but that's something.

What do you use for crm ? Is that self hosted too ?

There are softwares like cryptpad that solves collaborative editing problem for those used to google docs.

I use mailinabox for my emails and that has been quite great.

Libreoffice all the way. It has improved immensely. The import export to docx is becoming better and better.

I use a network shared drive to host all clients data, working papers and such. I have been thinking of " nextcloud" but I do not see the benefit.
That is when you undermine the concept of voice messaging. "hey I got your message but it was all distorted, could you txt me the details"
Long focused work was probably normalized since at least the advent of warfare and civilization. Maybe not across the board.
Someone else's work that alters light transmission (instead of reflection): https://mattferraro.dev/posts/caustics-engineering
Sorry you're right, but my comment stands word for word with the name replaced

Teenage Engineering is behind the physical device, which is what represents most of what I'm describing here
The question is if it's to be better to sit in cash (and have it eaten away by the inflation) waiting for the correction or to invest now and miss the potential upsides if the correction happens.
Mind linking me to their channel?
Webpack code splitting for a large Redux store
> constantly trying to get me to sign up for iCloud or Apple Pay or Apple Music or some other damn thing I don't want

this is not happening on my iPhone
Yes it is 32 bit code on a 64 bit kernel. I didn't debug what the instruction is that ultimately causes the bus error.

pi@rasppi400:~/memset_benchmark $ uname -a
Linux rasppi400 5.10.63-v8+ #1459 SMP PREEMPT Wed Oct 6 16:42:49 BST 2021 aarch64 GNU/Linux
pi@rasppi400:~/memset_benchmark $
pi@rasppi400:~/memset_benchmark $ file ./bench_memset
./bench_memset: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=ebeb69b6cb9664d78c1256a2c862f3d28f11e15e, with debug_info, not stripped
Tried Marginalia. So many plaintext http links which I avoid like the plague. That's my only gripe with it. Other than that, it's an awesome tool.
Garmin’s latest top rate mainstream smartwatch .n sale at a first-rate discount
I just wish it was easier to control the data.

The majority of consumers will never be tech-savvy. So a bunch of security cameras really means a bunch of security cameras whose software is 100% controlled by some central authority. I'd feel safer if it was controlled by the actual home-owner.
Avoid cash savings, own shares in companies and debt.

Debt is a promissory note to the future, at which point the debt will be worth far less than it is now.

The unfortunate consequence of being heavy assets though is that you are then exposed if the current overconfidence recedes and markets crash, so perhaps consider whether the companies you invest in rely on this free money environment (growth companies don't tend to do well with high interest rates, which tend to follow high inflation). Personally I'd avoid US assets at this moment because of this - indexes are very heavily skewed to tech right now, even VWRL is 3% Apple alone at this point and > 50% US.
I definitely have already decided what I'm going to believe, and I read this article as confirming my prior beliefs. But it's not just universities--government agencies and large corporations (both of which I've worked at and with) both seem to fall into the practice of "defending a huge pipeline of cash flow and allowing the properly-credentialed to siphon off larger amounts". It's not just the increase in administration that's lead to this; I would say that the increase in administration is actually a symptom of this.
Appreciate the educational back-and-forth between interesting companies in here!

Having just done a review of auth vendors (including FusionAuth + Auth0), I think your product addresses a much simpler use-case. FusionAuth and Auth0 support complex multi-tenancy setups and tie that into enterprise SSO providers, and all that's configurable on a per-customer/application basis with logical separation inside the auth vendor. I don't believe you support that level of complexity yet.

The nitty-gritty of auth does suck for most projects/early startups, but once you start selling to mid-size customers (B2B) they'll demand features that require what FusionAuth/Auth0/similar competitors offer.
i have also used many other programming languages in the past out of sudden necessity just like anyone else. that does not mean i have any interest in maintaining those or learning new languages. i don’t need to be lectured on what i need to do, thanks.

i know perfectly well what point i am making and you do not have to spin this differently and try to make me look like a fool. you stated that anyone who is not interested in learning a new language is a bad programmer, and you are wrong. people make choices for different reasons.
Wasn't it Ken Thompson who did the game thing? I mean, I know they worked it all out together but I thought it was Ken who wanted to do the Space Travel game...

https://en.wikipedia.org/wiki/Space_Travel_(video_game)
My ideal keyboard would have buckling spring switches in the body of a Poker 2 for this exact reason. I can use a separate numpad on the far side of my mouse for extended numeric entry, but the far more frequent use of keeping my left over the keys while my right uses the rodent is made much less RSI-prone.

When you had your shoulder pain, was it primarily at the very base of the shoulder blade? That's where it was for me before I moved to a vertical mouse.
A stalker is a better comparison for Google.
Thanks. I was a little confused what kind of argument the author was trying to make.
There are also shags. Shags are relatives of the cormorant, fish-eaters, and fantastic underwater swimmers; they padddle around on the surface for a yard or two, then dive, then surface 30 metres away, often holding a fish.
I passed The Great Filter of Startups by building a product that I use everyday
Ritual vs. Inspiration in Writing
Here's a fantastic paper you might find interesting: https://s3.amazonaws.com/s3.documentcloud.org/documents/6974...
Also a lawyer here, I think the biggest hurdle is MS Word. MS word is the defacto IDE of the law world. We spend most of our time in Word.

The drafting of documents won't be a problem with libre office. You can send a PDF to the client.

But working with other lawyers/parties could be a challenge. I am not certain how Libreoffice could handle a 500 page memo being worked by 50+ people including thousands of track changes/comments. I even stumble upon bugs in MS Word while working on such documents.

You also need a reliable compare tool to generate redlines.

Video conferencing is also important. You may access zoom/teams through web but it won't be as convenient as the desktop client.

For an independent lawyer / small-mid sized office, linux may work. But for large companies the tooling may not be there.

For example is there an easy way to clean metadata off of documents in Libreoffice, are there any compare tools, drafting assistants etc.?

And if you're doing any litigation, the e-signature systems (dongles) also need to work reliably.
I have to make sure to update my resume.

Interests:

* Browsing Zillow for 6 months as a lead engineer

* checking facebook for 2 years as a senior engineer

* Using microsoft software engineer s recommendations when writing code.
Hybrid artificial neural networks and analytical model for prediction of optical
I’m curious what is mind-boggling about this
Yeah, same for punishment too, or like a shock collar / geofence. If the dog knows the shock is always coming they can weigh it. Obviously not just dogs too, it's how humans in some cases stay in an abusive relationship. Every encounter is a roll of the dice and that variability creates an addiction.
Libreoffice subtly reformatting the documents sent to me by my divorce lawyer was not the most fun thing let me tell you.
FrontPage from day one generated garbage that only IE could read, on purpose. The other day I found a notebook from my high school days in which I attached a "Best viewed in your own browser" sticker to mock the best viewed on IE (and also Netscape) buttons that were the rage back in the day (pre-2000).
StackOverflow: "There are no stupid questions, but there are a lot of inquisitive idiots. Closing as duplicate of <unrelated question>."
That's only because we've just met :) I find it helps a lot with my own general sense of well being, and though I've found my personal limits once or twice, I plan to go up from here as time allows. Normal neuro-typical adult, married and employed in the tech trades.

I didn't start until after schooling was over, so that may be part of how it has assimilated into my life gracefully over the last 15-20 years.
I like your example of Russell's History of Western Philosophy.

Nitpicking (trolling) stuff that does not change or invalidate the central thesis is unhelpful.

Food fights over "most influential" (books, albums, paintings) is just hipster gatekeeping. As if. Which is more influential? St Peppers or Rubber Soul? Could the more popular St Peppers exist without Rubber Soul? Blah, blah, blah. Most people don't care. Both are amazing and worth studying.

I'd much prefer to read both DeLong and Graeber's Top Ten Albums lists, over DeLong kibitzing about Graeber's choices.

Especially now that I know Graeber was easily antagonized. Continuing to poke him just feels mean spirited. And definitely antithetical to scholarship.
Non-obvious debugging involving a mental model of the physical world reminds me somewhat of “the case of the 500 mile email” [0]

[0] https://www.ibiblio.org/harris/500milemail.html
That's not the commonly-used definition then. A "hard" asset is something that has intrinsic value: they can be used to produce something else, or they are themselves a consumable good that can be sold.

Hard doesn't mean "finite supply" or "price probably won't go down".
How do they even detect it? sounds computationally very expensive and imprecise
There is an optimum in the middle. Too much organic matter is harmful, as bacteria decomposing it use the oxygen and emit nitrites.
No "[i]t's not the end of the world." But, it limits who can and cannot use those standards.

ISO standards are often mandated and required to do business. The documentation can be large portion of the certification.
None of what you said is unique to JavaScript. Take a look at any language that has a similarly large adoption and you'll see similar frustrations. Half-baked frameworks and libraries, largely undocumented popular projects and build tools with steep learning curves.

Why we have so many of the same thing that seemingly solves the same issues? Could it be because people have different needs and requirements that aren't already solved by these tools? Perhaps the tools over complicate things that could be simplified? From Grunt and Gulp, onto Webpack, Parcel and Rollup, and now Snowpack, ESBuild and WMR – Each solving a similar problem much differently from each other due to the new kind of applications and the problems that come with it. To provide a good user experience for a majority of people, there are a lot of things that has to be done to make that possible here and now. Browsers, unfortunately, don't update quick enough to provide the UX until the problem is big enough to warrant a built-in solution. That is how the web has been able to move forward; by peoples innovation in the space and the approaches they took to solve them.
Wrong website?
As someone who was alive in the 1980s, I'd say the typical middle class American family does have 2x more stuff. Food, electronics, and clothes in particular are dramatically cheaper. Homes outside of key urban markets are larger. Cars are a magnitude safer and more reliable.
> Then, store the token in a secure cookie. It's way more secure than moving a token into the browser, where a dependency vulnerability could get access to it.

Cookies are still in the browser so what difference are you specifically addressing or advocating
I don’t buy that technology is anti privacy by nature, at least to the extent that it is today. By and large people’s personal data is collected in order to support ad-based business models. Back in the 90s it was more common for people to pay for software and tech did not collect as much data.

Our current state hasn’t always been the case. It’s just been normalized because lawmakers moved at glacial pace to protect people’s privacy.
The instance ran on a mobile connection not associated with any private information.

EDIT: It was located in a german street light 20km away from any of the users. Just to get the geolocation question out of the way.

It was more of an experiment than anything else there will be a talk about it and other FreiFunk (Open Mesh Network in Germany) related stuff at the next virtual CCC congress.
We started working out of a coffee bar, using our pooled savings along with credit card debt (representing about 7 months runway). We were introduced to a great Angel investor by a former boss who gave us glowing recommendations. This Angel did the seed round along with a small syndicate they brought along with. We subleased a super crappy office in San Mateo. Our MVP was quite successful, and we decided to go out for our Series A (using intros from our lead investor). Over the course of 40 days we pitched pretty much every institutional VC in the Bay Area (and every single one passed on us). Just about when we were ready to give up, the very first VC we pitched called us and asked us to come back and re-pitch. They ended up leading the Series A, and our existing investors took the rest of the round.
As dehrmann said in a parallel comment, sure I can pick up almost everything at local stores, but I don't believe that most of them treat their employees any better than Amazon does. That's why I listed farmers markets and our fabulous Powell's as alternatives where I'm pretty confident that employees get treated well or there aren't any.
Android as well, to some extent.
Ah nice, I was put off by the use of an jailbroken idevice, thinking they were using ssl kill switch.
I'm looking forward to when the whole supply chain is automated like this.

Describe something via text, images, etc.
Simulate a CAD model of it.
Get estimate how much it'll cost to manufacture.
Click buy.
Not related to the content of the blog post, but I love the feature that enlarges the picture when you mouseover the picture. Such a nice feature!
Here is a piece of ISO insanity - how to secure your *home* network - 499USD.

https://webstore.ansi.org/Standards/ISO/ISOIEC3010027001Home...
Teal Color Meaning: What Is Meaning of the Color Teal?
With the GDPR in the EU, the chilling effects of complying with the regulation affect the homeowners, as opposed to a large company or government department.

Just look at fines, and it should become clear who the law was written for: https://danuker.go.ro/gdpranoia.html#fines
One direct way to hedge against inflation is to buy a house with a fixed rate mortgage. Any inflation will directly decrease the real amount of your mortgage debt.
Secure, encrypted, same site, http only cookies cannot be accessed by JavaScript.
What do you want to compare about the display?

- Resolution? There the macbooks are behind both in aspect ratio (worse than 3:2) and in pixels (4k or 4k+ vs...)

- Contrast? Not OLED, so worse.

- Refresh rate? Good enough, but far from top of the line.

- Gamut? That is a point. But also available e.g. asus

- Brightness? Outdoor viewable screens have been as bright as that or brighter since windows XP days, but fairly specialized. I guess I prefer contrast (OLED), but yeah, difficult to find outside a macbook.

- Touch, wacom pen? Oh, none.

It is a really great quality screen, but not "the best".
Can a seatbelt strand you on the side of the road in the middle of the night? Can a seatbelt turn off your car in the winter? Can a seatbelt collect private data from you? Can a seatbelt record everything you do?
Wow, that was a very measured response to my comment.

From what you wrote it looks obvious to me that you completely missed the point I was trying to make, but I share the responsibility for that at least as much as you do, it is not easy to get points across through HN comments, especially when you have no clue who you are talking to (+ I am not an english native speaker in case that was not obvious yet).

I could try to re-explain things better, but you have shown that you are not in a state to take in anything that I say anymore, so I hope you will eventually find a friend who can explain it to you better than I did (and that you will refrain to insult them just because you feel attacked).
That seems really unlikely, or impossible. The 18650 cells in a Tesla Model S are only about twice as big as an AA and they are grouped in parallel blocks that are then connected in series. There does not appear to be any way of isolating a specific cell.

Each module has six groups of cells in series, 74 in parallel in each group, giving a module voltage of 22.8 V.

See https://www.researchgate.net/figure/Tesla-Model-S-74p6s-Batt...
Why Elixir Is the Programming Language You Should Learn in 2022
Try and read first 40 pages of "Scattered Minds" - Gabor Mate. I think you will find your answer there.
if you are editing a 500 page document you should use other software for writing, perhaps use latex, and put the document in git. but i get that there are lots of lawyers who don’t want to learn any new tools. for all the other stuff you mentioned you have solutions for linux that work and conferencing software has clients these days for linux. you can use diff or visual diff tools for comparisons.
Companies Using Microservices. Who Is Using Them?
> does not provide any way to distinguish high CPU load due to demand and high CPU load due to a low clock frequency

If you're on Linux, then the "tiptop" utility does just this.
95% of orgs say they struggle with digital ID management
Thermomagnetic Convection
Actually it's not, and that's the problem
I know a group of lawyers who still operate using type writers and dictaphones.