skysight-inc/HackerNews huggingface dataset:
PG&E's deliberate blackouts are the bay area's version of a cement truck falling through the west side highway in 1970s New York. Both cases represent the moment at which it became impossible to ignore the consequences of postponing tough measures needed to solve chronic problems. Bay Area governance has been dysfunctional for a very long time. Now the dysfunction has begun to have severe concrete and physical consequences.
1/2^n, I believe (where n is the number of lines after the first one, otherwise 1/2^n+1). So halved every time: 100% with 1 line, 50% with 2 lines, 25% with 3 lines, and so on. Width is irrelevant (you can do this in your head comparing w=1 n=2 to w=2 n=2 for example).

Edited for clarity and accuracy.
WebGPU version of TensorFlow is in the works. Hopefully, that will dethrone NVIDIA. AFAIK, it's significantly more performant than WebGL, and it works on top of Vulkan, D3D and Metal. The heck with NVIDIA. Such a bunch of control freaks.
Ok but why? And if the reason is nothing more compelling than “that’s how it is” then I’d say it’s a fine day to change that.
> Both "code rot" and "technical debt" are concepts that, unlike their real-world analogs, are only problematic in context of ever changing environment.

It should be taken as a given that code (and everything else) exists in an ever changing environment. Computers are physical machines; they run down over time. Capacitors need to be replaced, and you've got to blow the dust out of your fans once in a while.

Especially in web development, the environment changes quickly. Who could have foreseen that the authors of the JavaScript spec would introduce their own "remove" function? Not me: I left my code unchanged, and it broke. Or, more technically, it rotted.
Is to be human to be a fleshy meat bag? If the only thing that is actually human about us is our consciousness and we can figure out how to extract that into a digital device then I don't see why there's theoretically any time limit to our existence other than the ability to procure materials.

I think this is generally where our species is heading..., we are going to continue to further blend ourselves with technology.
Example 1 (custom hardware).

My wife and I run https://littlebird.com.au and ship 25K orders per year. We found that it was taking too long to fulfil each order using Australia Post.

So I built our own custom WebUSB postage scales and label printer. Creating a consignment is now 1-click.

This enabled us to take the fulfillment process down from 5 minutes to 5 seconds. Across 25K parcels this equals 11-months of work time.

Being a WebUSB based solution, they "just work" with anything running the Blink rendering engine, even Android phones.

You can see the WebUSB Scales and Label Printer in action here:

(30 sec video)
https://vimeo.com/334547755/c387957a25

Longer demo:

https://vimeo.com/334563934/915a25eedc

Shopify liked the demo and I got to demo it to their CEO and various teams in Ottawa.

The minimum order quantities on the Postage Scale hardware was 100 units, so let me know if you'd like one :)

Example 2:

I've automated the lodgement of "Australia Post Inquiries" to get a refund when they miss their SLAs. The numbers add up quick over a year.
Because things always go super well when we act as the world police. Knock out Assad, ISIS takes over. Help out a rebel group, they later radicalize and declare the west their enemy. Seriously, I think after several failed attempts to establish "peace" in a region and the insane amount spent on military operations mortgaged against our children, you'd realize that's not possible and cut our losses. Why does it have to be the US? Can't the EU step up if it's such a tragedy. If UNICEF is involved the rest of the EU can send troops if they truly feel they need to be there.

You have a very short memory, the cognitive dissonance is beyond me unless you also supported the invasion of Iraq too? The indefinite nature of that should be a point that this can go on forever and it will. If we're going to stop being the world police, we have to actually stop getting involved and back away as we've been doing slowly over the past decade. This isn't a big surprise.
Not on its own, but it would be the final piece in living effectively forever, since it could protect against accidents that would eventually take out even people who never aged or got sick.

Unless you mean that a copy of your brain would not longer be 'you'. In that case I just disagree. We don't know the level of fidelity required, but it seems extremely likely to me that if my brain were copied to a sufficient level of precision, whatever that level might be, the copy would continue my subjective experience.
I worked at a startup that pitched themselves as "social good" working for a "double bottom line" (profit and social good). Then I worked at Google which recruited on the catch phrase of "do cool things that matter." Both of these companies are motivated entirely by profit, there are absolutely zero ethical qualms beyond making a buck. The "social good" and "cool things that matter" exist for PR and recruiting purposes, that's it. And once they've recruited people, those people are far too terrified to lose their prestigious and well-compenstaed careers to rock the boat.

mchurch's quote that "Silicon Valley is just Wall St for people who can't get up early" has always made me laugh. But I've also always said that, at least the guys at Goldman are authentic, they know and we know that they are motivated almost entirely by money, and they don't pretend otherwise. It really rubs me the wrong way that both Google the company and the "Googlers" that make up its workforce to this day want to maintain this image that somehow they are good people trying to "make the world a better place when" it's abundantly clear that the overriding concern is the value of the sacred GSU (Google restricted stock unit). I totally agree with the NYTimes that if anything, the HBO show is not nearly harsh enough.
fibs = 0 : 1 : zipWith (+) fibs (tail fibs)
Bringing in someone's personal details as ammunition in an argument crosses into personal attack. That's not allowed on HN, so please don't.

https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...
Would you mind sharing which automated tasks offered the highest ROI, and some information about how you run them all (i.e., do you use cloud services, or an always on RPi that you run the scripts on)? Also, which libraries have you used for scraping?
Egypt the country with many hidden secrets
I've already addressed that -- as I said in one of the ancestor comments to this one,

"As far as I understand things, the majority of plastic pollution comes from poor waste management practices. With good waste management practices, there aren't any issues with plastic pollution. If this is true, then why should the companies who make the products be at fault? The waste management practices are the responsibility of parties such as governments."

To clarify that a bit, my understanding is that it comes from those countries that have poor waste management practices, and that many countries already have reasonably good practices. I also saw an article recently claiming that the majority of ocean waste comes from ships disposing of their waste at sea. https://news.ycombinator.com/item?id=21135259
I’m not disagreeing with anything you’re saying, but I still say “just get a different job” is a huge simplification of the issue. An issue which again, I put forward, is not something I should be responsible for fixing.
It was bogus because they quoted an FBI source saying evidence was found on Seth Rich's laptop indicated that he sent DNC emails to Wikileaks. They retracted the story after an outcry, and IIRC FBI denied it. That didn't stop Hannity from hammering the false story for a week till Seth's parents begged him. Two and half years later there is no link whatsoever. They literally just made it up to fool their low information audience, and apparently it worked so well that I am seeing HN'ers regurgitate this bullshit with zero indication that Seth even had access to all DNC emails.
Cars already have their own bike lanes: roads. Why do they also get free parking?

Also, if we want make things equitable, shouldn’t we give cars and bikes the same per-person square footage or per-person-mph square footage? Why does the fact that cars are bigger give their owners the right to more free space?
I did answer with proof. Sad to see purveyors and believers of actual fake news on this site.
Mostly the US Census and the US Office of Management and Budget

I'm talking specifically about metro areas or "cities" by economic and statistical terms. What people mean when they refer to places like New York City, Chicago, Austin, Houston, LA, etc.

https://en.wikipedia.org/wiki/List_of_metropolitan_statistic...
Each new season of the show has been progressively less comedic and entertaining to watch. However, I’m unable to disentangle whether this has been because the content itself has worsened, or whether because reality has caught up such that I can’t carelessly watch the show anymore. Comedy I’d argue is like disappointment, greater when expectations and reality are separated. In that sense, it parallels the ending of House of Cards.
Not sure, but "hubris" sounds pretty good.
Can you elaborate please? I was under the impression that CUDA is tied to Nvidia, unless you mean there are now working shims for other GPUs.
Real-Time (One to One) Chat App with Vuejs and Laravel
I stopped reading after trying to scroll and seeing that the website messes with my scroll speed (and even worse, there is an annoying inertia effect).

Outside of this, the font may be useful for some specific design work, but it is unreadable.
Bad for your health?
It's not either/or; it's both/and. We need politicians that are actually doing their jobs. And we need people with consciences working for tech companies. We need both.

As for quitting... if you were a factory worker in a one-company town, you'd be in a worse spot. But I hear that software engineers are in demand these days. And if you're in somewhere like the Bay Area, there are many options available to you.

For that matter, there may be many options available to you even within your own company. You may not be able in good conscience to work on that project, but can you transfer teams? And, if you're feeling that it might be useful, tell them why.

On the other hand, that leaves such a team with nobody left working on it that has a functioning conscience. That's not ideal, either. But that comes down to your judgment about whether you can actually change the course of the team. If you can't, what's the point in staying?
In a sense, technical debt is only a big problem for large monolithic codebases. Software that is primarily composed of small manageable components means that technical debt doesn't matter as much.

When each component is roughly one week's worth of code, it becomes easy to delete a component with a model that no longer fits the problem domain, and rewrite a new component with a new more appropriate solution.

"If you can rewrite a piece of code in a week, you can understand it in a week." - Greg Young

https://maximilianhoffmann.com/talks/programming/the-art-of-...
Unfortunately, he was probably able to bribe the local police/magistrate to grant him bail.
This book is some nice addition to "Computer Culture".
Legislators have made clear that Silicon Valley’s ethical problem is offering its users too much privacy. When regulation comes, it’s going to be encryption backdoors and copyright enforcement. Stuff that the community here would say we have a moral obligation to resist and subvert.
Is this task tracking or job search tool for Product Owners/Project Teams to find each other (or both or something else)?

Nice visuals on the website, but I don't think I understand.
These are a wonderful invention.

https://www.amazon.com/dp/B079N9FW5B/ref=cm_sw_r_sms_apa_i_Z...

I also use these.

https://www.amazon.com/dp/B0748RK2XQ/ref=cm_sw_r_sms_apa_i_n...

I have made other serious efforts to automate my life and generally found that trying to catch time with homemade Rube Goldberg machines is a bit like trying to catch water with a properly engineered sieve.

After your basic appliances, I've found it's actually quite hard to exchange money for time. A great value I've found is meal prep companies. They are expensive but cheaper than a cook or cleaner and they remove many chores. Debating what to eat, menu planning, grocery shopping and actual prep cooking are greatly relieved.
I don’t know how one would know short of a leak if Facebook’s track_ip_addresses.php, but is there any sense of how IPv6 is being aggregated by trackers to track identity?

We have a /48 at home using IPv6 privacy extensions for the full address but that isn’t a useful component of a strategy if I’m being identified by the /48 rather than the full 128-bit address.
I wonder if Uber could require their drivers to operate a similar structure to side-skirt this law.
Shouldn't it be everyone's responsibility to behave ethically? I don't understand the way you have divided responsibility between "workers" and the "business".
Drop shipping vs. holding stock Yourself
> They shouldn't have the option to behave unethically in the first place, and the determining factor should absolutely not be if they can find sufficient human resources willing to sacrifice their ethics to feed themselves.

You'll always have the option to behave unethically. And more regulations make it easier -- you can use the fact that you're following regulations to justify your unethical behavior.
http://archive.is/IhDHL
> Strong disagree.

Same. I have sat next to kilo-level cocaine dealers and seen them pray in the car while waiting to re-up. I never met any drug dealer or even killers that even pretended to be unafraid about what they're doing.
Building a Secure Hackintosh: Secure Boot vs. Apple T2 Analysis
JVM is pretty memory-hungry, which isn't ideal for a lot of blockchain application that require significant in-memory state.

The two most popular languages for blockchain applications these days seem to be Go and Rust.
I use Alexa to turn on ambient music and lights. It removes tedious screentime in a place I consider a sanctuary-esc.

Worth the $75 rig.
They address this in the article.

> Their performance is explained in part by our sample. Most CEOs have dropped out of the race by this stage, whether for performance, health, or personal reasons, so it’s the strongest leaders who stay longer than a decade. Indeed, when we have shared our data, some observers have questioned whether the outperformance of the golden years is due solely to this survival bias—the fact that weaker leaders were weeded out earlier. But our research shows other factors at play. When we investigated attrition rates in our data, we saw CEOs leaving the job in consistent numbers year in and year out. If attrition alone explained the ups and downs, we would see corresponding movements in attrition and performance. Additionally, those CEOs who lasted into a second decade show a similar pattern of highs and lows over their tenure. Their survival wasn’t simply a function of their performance; the credibility and trust they built with the board and investors helped them stay the course in challenging years.
Was kinda hoping the maze on the left was procedurally generated.
You are approaching this from a developer's perspective, which is fine, but you fail to consider other skillsets.

For example, if I have a team with designers, they likely know their way around Sketch and Figma and onboarding them onto something like this wouldn't be too difficult. At this point they can start contributing real, demonstrative code that compiles out of the box. Sure it lacks actual functionality and maybe it's a little rough around the edges, but that's not the point.

The point is that I, as one of the few developers on the team (or maybe even the only one) have a greatly reduced workload because now everyone can contribute to building the UI. With frontend out of the way, I can work on backend functionality exclusively and marry the two later on. From the year that I've worked with Flutter, the framework makes it easy to separate those two which further adds to the efficiency gains. Rough edges can be cleaned up relatively easily and the time sunk into cleanup probably adds up to less time than starting from scratch.

As a real world example, I have been building a mobile app for my startup since this summer. My girlfriend, who wanted to get into UI/UX design, is learning the ropes with the material widgets and making demo UIs by herself. With a few more weeks of practice, she will be equipped to start building some of the views in my app without further guidance. This takes a huge load off of my shoulders, and it's really where Flutter shines.
Everybody has an impact, culture comes always first, then comes law. If we are lucky and the right people are in office bad culture gets outlawed. If we are unlucky and our political structures influencable by business the existing culture becomes the law.

I have two grandfathers, one found a way to evade the Nazis and one was a Nazi. The former always said they were uncultured and barbaric, without humanist values. The latter said all he did was following orders and the law, and they built streets after all.

In my eyes the ahistorical period is over, and in hindsight it never matters how convincing your excuse is, when your grandchildren ask you what you did when X happend. If you can change culture for the better, do it.
Unions protect their members, they don’t protect society from their members’ work.
Intel 4004
I love the SQLite guy. His own version control, his own DB engine; you can tell from the site that he’s an individualist!
I am reminded of the Peter Principle: "Cream rises to the top and then it sours"
As a corollary of the permanent income hypothesis [1]—or the relative income hypothesis, which ever you’d prefer—people also smooth their morals and ethics over their lifetimes! Maybe the solution here is to align moral incentives from the get-go, a pre-commitment mechanism say in the form of an early aged baptism? /s

[1] https://en.wikipedia.org/wiki/Permanent_income_hypothesis
Would you please stop posting unsubstantive comments and flamebait to HN? We've asked you several times before. If you can't or won't stop, we're going to have to ban you.

https://news.ycombinator.com/newsguidelines.html
Autohotkey to save PDF copy of a webpage along with a link in the folder currently open.
Quick sort comes with a steep penalty. Worst case is O(n^(2)). The reason quicksort is good is because it's in place. Once you throw away the in place aspect of quick sort, it's straight up bad.

This implementation of quicksort is actually a great example of why functional programming sucks. It silently transforms an O(1) space algorithm into an O(n) space one, and adds an enormous constant time overhead.

Algorithms that are optimal under the mutable data assumption are different than algorithms that are optimal under the constant data assumption. So a normal programmer might sort via quicksort in Haskell because it's the optimal sort in imperative languages even though naive Haskell quicksort is objectively worse in every way than naive Haskell mergesort.

Performant programming in Haskell requires a much more intimate understanding of the underlying architecture than performant programming in, for instance, C++. And that's a very low bar.
The sentence is very difficult to parse, yes, but it is grammatically correct. You can make a noun phrase with an arbitrary number of repetitions of 'fish', call that F, added to F-1 repetitions of 'eat'. IE, 'fish fish fish eat eat', or 'fish fish fish fish eat eat eat'. Each of those is one big noun. You can make it as long as you want.

I'm not sure how to demonstrate this any more clearly than it already has been, but I'll try one last time. "fish that fish eat" is a compound noun. I think we agree on that. And you can shorten that to "fish fish eat", and it's still a grammatically correct noun. "fish fish eat" is a thing. Now you can build a sentence around that thing. For example, "The water fish fish eat swim in is cold." Right? It's easiest to parse if you say the 'fish fish eat' noun more quickly than the rest of the sentence, like, "The water fish-fish-eat swim in is cold."

Of course, we can replace the noun water there with more fish! "The fish fish fish eat swim with are small." In fact, you don't need the 'the' there. "Fish fish fish eat swim with are small," works too. As does, "Fish fish fish eat eat are also small." Note we just replaced 'swim with' with 'eat' there. Now we have actually built a larger compound noun, "Fish fish fish eat eat." Finally, we can replace the verb 'are' at the end and we get, "Fish fish fish eat eat eat," a grammatically correct sentence.

Does that help?
With google, facebook and just about any other ad driven company you know well before day 1 what their record is like when it comes to respecting privacy. So developers obviously don't care, which leads us back to regulation as the only option.
The problem with a VPN is that it makes it much harder to get friends and family to use it. Not to mention if you use the link sharing feature of NextCloud, you can't just give strangers VPN access. I do use WireGuard for accessing services like SSH or NFS from the public internet, but the usability hit is a deal-breaker for my family. Client-side certificates would help solve this problem somewhat (you could whitelist only sharing-links for instance), but now you've hit usability problems again.

I mitigate code execution worries by running all of my services in individual LXD containers. They're all using isolated user namespaces (unique mappings), and are firewalled away from being able to access my internal network. The data is bind-mounted from a ZFS filesystem which is backed up by the host and uploaded to BackBlaze. The containers themselves are also snapshotted by ZFS. Thus, I think the risks of exploits being able to do much damage are greatly reduced.

However, there is still a worry about information disclosure. Yeah, NextCloud can only access the documents it manages -- but some of those documents are somewhat sensitive. I don't know what the ideal solution for this would be (a wholly separate NextCloud instance just for accessing the private stuff? But what if your family needs to access them?). My main worry when hosting NextCloud was that I am entirely trusting the safety of my NextCloud-stored data to an authentication flow that they wrote themselves in PHP (and has had pretty ugly flaws such as silently disabling 2FA or letting you bypass it by clicking "cancel".)
Please don't post flamewar comments to HN. We've had to ask you this before. Continuing to break the site guidelines eventually gets your account banned, so would you please review https://news.ycombinator.com/newsguidelines.html and stick to the rules when posting here?

I'm sure you can express your substantive points thoughtfully if you want to. Please do that when commenting on HN.
I've been building websites in some form for at least 23 years, and professionally on-and-off for over 18.

React is the first framework that allows me quickly build rich web-apps that load fast, perform fast, and have a structure and order to them that keeps them enjoyable to work on as they get bigger.

I have no loyalty to Facebook and I've tried pretty much every major framework or library that's gained traction in the past 15 years.
With sharp-edged wit and pointed poise, it can settle disputes without a noise.
Excellent! Love the name - Checkout Chick :). Perfectly suits the little bird brand as well!
It seems to be more common with new buildings. Intermodal shipping containers only date back to the 50’s and took a while to catch on.

My last building had a full loading dock with flat concrete floors straight to the freight elevator. My current apartment has a shelf at the right height, but the freight elevator is up a ramp, though still fine with a trolley.