skysight-inc/HackerNews huggingface dataset:
Hello! Author here.

I am pleased to announce a new version of my "CLI text processing with GNU awk" ebook.

Learn the `GNU awk` command step-by-step from beginner to advanced levels with hundreds of examples and exercises. This book will dive deep into field processing, show examples for filtering features, multiple file processing, how to construct solutions that depend on multiple records, how to compare records and fields between two or more files, how to identify duplicates while maintaining input order and so on. Regular Expressions will also be discussed in detail.

Links:

* PDF/EPUB versions: https://learnbyexample.gumroad.com/l/gnu_awk (free till 31-August-2023)

* Web version: https://learnbyexample.github.io/learn_gnuawk/

* Markdown source, example files, etc: https://github.com/learnbyexample/learn_gnuawk

* Interactive TUI app for exercises: https://github.com/learnbyexample/TUI-apps/blob/main/AwkExer...

Bundle offers:

* Magical one-liners (https://learnbyexample.gumroad.com/l/oneliners/new_awk_relea...) is $5 (normal price $15) — grep, sed, awk, perl and ruby one-liners bundle

* All Books Bundle (https://learnbyexample.gumroad.com/l/all-books/new_awk_relea...) is $12 (normal price $32) — all my 13 programming ebooks

I would highly appreciate it if you'd let me know how you felt about this book. It could be anything from a simple thank you, pointing out a typo, mistakes in code snippets, which aspects of the book worked for you (or didn't!) and so on. Reader feedback is essential and especially so for self-published authors. Happy learning :)

---

Previous discussions:

* Learn to use Awk with hundreds of examples (https://news.ycombinator.com/item?id=15549318) — 478 points, Oct 2017, 116 comments

* Show HN: An eBook with hundreds of GNU Awk one-liners (https://news.ycombinator.com/item?id=22758217) — 539 points, April 2020, 48 comments
If the word (sprint) is a problem, then change it. Call it "iteration", "segment", whatever.

Taking a 500km bicycle ride from one place to another, you surely will plan the thing as segments. I would plan days and see where I can reach milestones: a city, a place to stay, a sight-seeing place, a mountain top, a ferry, a destination...

A software development project of several months is not a Marathon.

I've run a Marathon in a few hours. But even in a Marathon I look at my starting preparations of the day, my 5km times, reach the half marathon, plan for the drinking stops, plan when my primary energy source is depleted, how to get over it, ... Few people run a Marathon from front to end with the same speed&energy, without a plan how to mentally split up the race.
Hijacking a reply here to notify andomdeazzz662 [1] who made a sibling comment. You appear shadow banned to me and I am not entirely sure why. I have vouched for your comment on this submission and the other two you made related to IBM's new chip [2], but it seems like I did not have the power to get you out of the shadow realm. There are cases where shadow banning is justified, but to my eye you are contributing to both discussions.

[1]: https://news.ycombinator.com/user?id=andomdeazzz662

[2]: https://news.ycombinator.com/item?id=37281851
> You just have to be aware of the risks the complexity brings.

I'd say most are not aware. It is not enough to say that people should "just" be aware. That is something said from a position of knowledge and awareness, which helps nobody.

Completely agree with the parent comment, simplicity is the first thing that should be reached for. K8s ought to be dismissed by default, because then you have to justify its inclusion. That's probably a way to increase awareness before plunging in.
You missed a few intermediate units, which might help somewhat to explain it:

Derived from surveyors’ tools, a chain is 22 yards. (It is also 4 rods, making a rod equal to 5½ yards; go figure.) Ten chains make a furlong, and there are 8 furlongs to a mile. So there you are. Incidentally, an acre is 1 furlong × 1 chain. It may be madness, yet there’s system in ‘t.
Felt for when I also wear a coat, straw for when I also wear shorts, plastic faux leather stetson when I don’t want to worry about damaging my hat ;)
Maybe the previous commenter meant that they could have used an LLM to translate from Mandarin to English to get a better sentence?

Which is... ironic I think :P
So stop following Scrum? Completely agree
It's way more nonsensical than that. It just means absolutely nothing.
I don't really want to build an open-source washing machine myself, but such a project would be really fascinating to read about. I too was very disappointed to find out (just reading the comments here, luckily I didn't waste time clicking on the article) it's just some boring drivel arguing about what is or isn't "true" open-source.
> Project manager is an operator where the engineers are nothing more than machine. Your standard engineer is not interested or even care about business goals. They are doing a job, they like to be told what is expected from them, they like to be told what deliverable is. Senior engineers can give an estimate of delivery date, but most don't. They are essentially cogs in the machine and managers are expected to birth products from them.

Yes I think you got to the crux here - managers want to be indispensable and make everyone else "a machine" so he told you a bunch of self-serving bs. I'm sure if you turn this around on him then project manager will not be a machine but more like a wizard or an artist whose needs must be carefully tended =)

> Moreover, you don't want programmers interested in business side as they get passionate about things that don't concern them which is obviously business side things.

Right and who is better to help here than someone who can take business requirements and hand them to the engineers? You know, someone who got people skills!
> Some of that may be on devs, actually: distribution-as-docker-container at the expense of real packaging seems to be on the rise.

Because it eliminates a whole host of "works on my computer" "which version of X dependency library do you have installed" problems nobody wants to deal with.
There is enough research to show that testosterone is still much higher in modern societies than in tribal communities. Likely linked to the abundance of calories in modern societies.
...by around 0.1%. Which is why nobody is bothering with it, considering how susceptible to wind speed distances and velocities are up there.
You put the carbon tax on the makers of fossil fuels and the importers of fossil fuels. Everyone else just sees it indirectly due to the increased cost for fossil fuels. It shouldn't require a lot of accounting.
Any financial crisis was just numbers on papers or memory. Yet implications are very tangible
https://agilemanifesto.org/principles.html

Read through the principles and then find out how it maps to scrum.

Scrum is not the same as "Agile", but it tries to provide a simple methodology to implement parts of it.

> continuous delivery of valuable software

> Deliver working software frequently, from a
couple of weeks to a couple of months, with a
preference to the shorter timescale.

That's a sprint in Scrum.

> The most efficient and effective method of
conveying information to and within a development
team is face-to-face conversation.

A stand-up is one way to do it. Standing and talking face to face may seem foreign to people used to sit all day in front of computer screens, but I think it's worth trying... ;-)

and so on.
A standup every morning?

To my experience 10% of software developers think 7 am is morning, 60% something between 9 and 10. 30% not before 11 or 12. The first and the last group tend to be the most productive ones.

Forcing all of them to meet at 10 or even 9 is the best way to kill motivation and foster cynicism about useless meetings and processes.
but why didn't they just use some normal setup like a postgres database or something? Why all the intense complexity? That makes it less OK
Looking for beta users to test our digital check-up app for free
Important issue, mediocre article. The problem is that the big AI companies are trying to advertise something as open source that isn't. There's also the issue that "weights" may not be copyrightable at all in the US, because they are not a work of human authorship.

There's a better way to do this. Epic licenses Unreal Engine in a simple way. You sign up and you can download it. That's free. Until you have a game that makes at least a million dollars, it's free to use. Then they want 5% of revenue. If you're successful enough to reach that threshold, they'll find you. The game industry has good sales visibility.
In some cases having a formalized process/methodology helps to appear professional and hide the fact that nobody knows exactly what they're doing. I've seen it it some place - very serious software dev company delivering very serious medical software, but in fact the whole team was just faking it and trying to keep up the professional image. The developers were random people without business domain knowledge, managers were managing the work without understanding it, analysts were producing some documents that nobody understood, customer approved some scopes hoping that the specification is actually what is needed (but in vain). The team was assembled from contractors, and people rotated quite frequently so that there was no chance for them to acquire the domain knowledge necessary to talk to the customer. It was just painful to take part in it, but took me some time before i realized in fact everyone is just pretending to understand what's going on. Endless approvals and multi-step procedures required for medical stuff just made the whole thing impossible to understand and smeared the responsibility so broadly that it was guaranteed there's no single person that knows too much.
Can someone explain to me why dictionaries being ordered or not matter here? It does not!

The integer key represents the argument you want to assign the variable to.

And what if you specify an argument with an integer key but also with the corresponding string key? Guess what, python allows this (for example f(1, *[2], **{"v":3}), and it throws a TypeError: sum() got multiple values for argument 'a'
They would need to extend the slots from the existing ram, which would slow it down even when empty, or they would need to use up a lot of silicon adding more memory channels. It really does make sense to solder on RAM for best performance. Though alternative sockets like CAMM might help in the future.

But you can't do a trade-in, the RAM they sell is extremely overpriced, and as mentioned elsewhere there's no excuse for the SSD.
I can, but just like I can make calls from my laptop, it's not the preferred form factor or operating system to do so.

The iPad is a great bridge between the phone and laptop. It's not for everyone, but it's not a huge extra effort or weight to travel with (slides into the laptop bag I'm taking anyway) and it fits my use case. If I was travelling and I forgot it, it also wouldn't be a huge deal and I would use my laptop.

It's also handy as a second monitor when coding (keep a terminal up on it) or to watch a show while sending emails or doing something else on the laptop. Again, not a big deal if I don't have it, but useful if I do.
It would be interesting to see a map of the areas that will become more habitable (or, at least, less inhabitable) than they are now, due to the climate change: most of Canada, Syberia, even Antarctica...
I have made peace with mortality because it's something I literally can't do anything about. No amount of doing or worrying or indeed caring can nor will affect my eventual and inevitable death.

I might die tomorrow (or today!) or 50 years from now and I will definitely be dead a hundred years from now regardless of whatever I do. So I don't worry about it, because it's a simple waste of my precious and limited time.

Remember the old saying: Death and taxes are the two guarantees in life.
Not sure how long parental leave we have, but here in France most [0] of your other points are available, yet birth rate has still been below replacement for 20 years [1]. So something else may be going on.

[0] While childcare is technically free, my understanding is that, in practice, places are limited, especially in big cities.

[1] https://fr.statista.com/statistiques/512101/nombre-enfants-p...
The biggest argument against base 10 is that one day our descendants will have to explain to aliens, "because the monkeys that built us had ten fingers".

Positively mortifying.
> Which is generally undesirable for commercial projects; especially early in their lifecycles when bugs may be present and would be best kept private until the project has been more battle-tested.

Copyleft only kicks in on redistribution. If you're only testing internally, you don't need to distribute source code. It's only once you distribute that software that you also need to distribute source.
On the other hand, we're in the multi gigahertz, multi gagabyte era, there's almost no excuse for loading times except bloated libraries and not giving a damn about performance.
Thing is, our computers are magnitudes of orders faster than 20-30 years ago. Why isn't our software orders of magnitudes faster? I'll settle for just 10 times faster.

If you take software from 20 years ago, and run it on modern hardware, it will be instant in most operations.
Since climate change is so hard to model it has basically become a synonym for ‘undesirable environmental event.’ This is why things like fires started by power lines are ‘caused by climate change’ and why any research that is related to the environment can be justified by ‘helping solve climate change.’

Like adding ‘machine learning’ to a project, it’s a buzzword that helps raise interest and cash. No rational justification required! Tenuous conjecture is welcome because it is so easy to justify and is so hard to argue.
so an aspect of passive voice use is the difference between transitive and intransitve verbs. passive voice needs transitive verb use, a subject receives the action of a transitve verb, right? you cant use intransitive verbs with a passive voice
Yet I am still waiting to see a game with the same capabilities of Infinity Blade, that Apple used in 2011, as an example of a game showing of the newly acquired OpenGL ES 3.0 capabilities of iDevices.

Or the Unreal Engine 3.0 citadel demo, also in 2011, for Flash/CrossBridge.

It seems the only thing usable is running ShaderToy demos, and 3D views on ecommerce sites.
The first sin is to throw an enormous popup in my face before showing the contents.
Maybe just the missing leading slash in the original reproducer? :)
So, full disclosure: this is something I’m familiar with from an ad on one of my favorite podcasts. I have not investigated this product or its claims. There’s a product called the Pod Cover by 8 Sleep, and allegedly it helps regulate your body temperature in a “smart” way. I will be looking into it for my partner, as she tends run very hot in bed even with the AC cranked up. I prefer sleeping cool, but I don’t have any issues with that personally with sufficient AC.
> Memory size matters a little more, but your OS will generally do a good job of loading what it needs (ie, huge binaries can still start quickly) and paging out what it doesn't.

And yet Electron apps often garnish that memory bloat and computational inefficiency with sluggish performance and a clunky user experience.

It's a shame when an 8GB Mac mini doesn't have enough RAM to run apps comfortably. Of course there's a bit of a corrupt bargain going on between bloated software and Apple since the latter wants to upsell you to a more expensive model.
Some of this is due to Scrum but other parts of it would still exist in these companies even if they changed to Kanban. I think the problem is the kinds of companies that have these processes can't find an alternative. The companies I've worked at where it was like this were all sales-driven enterprise software where deadlines are the focus and being able to tell a customer it'll be there in X months was viewed as critical. So they put all of these processes in place to make sure they can consistently hit deadlines even if it means slowing everything down to a halt. It still doesn't work that well but just removing the process isn't going to work without changing how the rest of the company operates too.
I've lived in SE Asia, with hot wet 40+ temperatures. Yes, it's very uncomfortable, and AC is necessary to actually live there. But it doesn't kill like the cold does.
As a European having watched many house framer videos on Youtube, the imperial system of in/ft actually somehow makes sense there. As far math, it's pretty annoying, but as far as communicating ratios or dividing distances into halves or fourths, it seems like a better fit to the human brain.
Here's perhaps some unexpected and unsolicited advice... so pretty clearly you aren't going to have a hard time with the CS curriculum (assuming that's what you intend to study) so my $0.02 is - find a second or even third major to augment your skill set. If you are already able to get to this level on your own, you'll likely breeze right through a typical undergrad CS course of study. So consider other courses of study that might be a bit more of a challenge / might give you an even broader skill set four years from now when you enter the workforce or consider grad school.
I'm also very surprised by what the overall thread is saying.
Scrum and the agile movement in general have been a revolution for the better in management and organization, in my point of view.
This is one of those cases where I can’t tell if a comment is sarcastic or not.
This is super broad - what are your qualifications? What field? Remote or in person? Etc.
Many of those websites don't even need to exist, as pure informational portals. They should just be boards in a (indeally decentralized, uniform) network of news source
I'm not sure how to really interpret this. Human body temperature has also declined.

https://www.nytimes.com/2020/01/09/well/live/body-temperatur...
Six of the nine points is about estimates and I agree. And depending on who you ask estimates is or is not part of Scrum, but that doesn't really matter... you shouldn't be spending too much time of them and if your organization requires detailed estimates they simply don't understand "agile" and they are doing "Agile". The absolutely worst thing that I've experienced was the "story point budget negotiation" ... that is not how any of it works.
Agree, but the warnings are for management, not for you. What do you care whether something's finished? Shoulda hired more interchangeable devs or lowered the expectations.
I found it somewhat charming that the authors, who express skepticism about the use of LLMs by novices, indeed stuck to their views and decided not to run their phrasings through an LLM. This will probably be one of the dwindling number of papers released each year with "fairly bad" grammar - and part of me wonders if we're losing something in the process of LLM-meditated homogenization.
I'm hearing about this genocide on the Uighur people, yet cannot figure out how many people have gotten killed in this genocide? I'm finding conflicting results from millions to "no one of course, it's not that kind of genocide".

From what I can research it's one German professor Adrian Zens, that is the sole source for all the Uighur genocide claims. And when pressed on his sources, he says he just reads official Chinese press statements, but he "reads between the lines". Encouraging.

Is there any real evidence or is this just it? Is the claim that "everybody is in agreement" enough to persuade the majority of people of any nonsense?

From what I can tell the Uighur people in reeducation camps are the islamic fighters returning from Afghanistan. The kinds of people the US locks up in Guantanamo Bay. Also most sources seem to state that the Uighurs aren't getting killed per-se, but rather that their culture is being wiped out. And here I was thinking we were all in agreement that extreme islamism is a culture worthy of wiping out. No?
Yeah, very comfortable sweat shops for highly paid manual laborers. Why do you think open seating plan exists?!? Open plan is the default layout of a standard sweatshop.

The key observation is that they successfully made the "design" of software they "mass duplication" part. The cost of designing and creating crappy custom software has never been so low and it continues to fall.
> 2. China is going through a weird demographic situation. The younger generations are significantly fewer in number, they will need fewer apartments to live in.

That's not really the issue. I doubt the younger generation can afford it. The problem is where the wealth is going - as in those with the $$$.

> The demand side is mostly people buying second and third units as investments.

No, at least not always. At some point you weren't allowed to buy more than 1 or even use your funds openly this way.

So to wrap up - those with wealth lost or have lost trust with China / the government and are withdrawing at alarming rates, e.g. to overseas. Due to how COVID was handled and many other cases where your wealth could just disappear - people now rather keep their $$$ elsewhere - not back "home".
You can however buy a physical card (at a few of the major stations) then transfer it to your phone. Once it's there you still can't reload it directly, but you can use a recharge station (with cash) - just put your phone down where the card would go.
Playtesting: Valve's “Secret Weapon” for polished and intuitive games
>The reason why every company and organisation (other than a handful of government orgs) got rid of pensions and switched to investment based retirement funds was because the risk got moved away from the company to the employee and as a result it was cheaper to operate.

The other reason you're forgetting about is that you can't count on that company actually being in business to provide your pension when you retire. Or not declaring bankruptcy to avoid their pension obligations, as I believe GM did back in 2008. With a 401k/IRA, you don't have that worry: you can contribute to it, and if your company goes belly-up, no problem (well, not for your retirement funds): your money is still there; you can get another job somewhere else and keep contributing to your retirement.

Also, what happens to your retirement funds is strongly controlled by the SEC, unlike company pensions, so there's much less risk for the employee. Of course, the stock market goes up and down a lot, but that can be avoided mostly by directing your funds into safe investments, though your returns won't be that much.

>Unless they explicitly opt into that risk, they should be getting access to a pension with guaranteed payout by default.

That's what government-run pension schemes are for. Government shouldn't be guaranteeing a pension run by a private company.
To be quite exact, it means "near the capital", namely Kyoto/Nara. Osaka is the economic powerhouse of the region but has never been the capital.

These days the more common name is Kansai (west of the toll gate), to contrast with the Kanto region (east of the toll gate), aka greater Tokyo.
What makes you so sure their demise is due to climate? I’m not saying you’re necessarily wrong but this kind of arrogant certainty based on limited data is rarely justified.
For those unfamiliar there is a also a well made YouTube video that uses this script featuring Beck Bennett

https://youtu.be/9mbp0DugfCA?feature=shared
Or, maybe you found the batteries, and assume that they must be the bricks they write the insurance number on.
While my knee-jerk reaction is to blame bad backup practices, that's not what I believe happened here. Not entirely at least.

The setup is too complex to easily verify and restore.

Yes, a bespoke box is annoying and "inelegant" but it also works, and if it's backed up following even 80's tier best practice, it can be restored by anyone with a pulse.
Terraform will do this. It's just like a command line, but for your environment.