skysight-inc/HackerNews huggingface dataset:
I used to think exclusively like this.

One danger with this approach is that you can easily spend too much time researching complete garbage like the latest Q Anon conspiracy theory, on the assumption that the people posting it have done more research and are smarter than you. See also anti-vax stuff, anti-mask stuff etc.

Eventually you need to decide that some people are just willfully ignorant and not very clever.
What does this do in a directory containing no .txt files?

for f in *.txt; do
echo $f
done

Surprisingly, Bash still executes the body of the loop once, with f containing the literal string "*.txt". This behavior is controlled by the "nullglob" option, which hardly anyone ever sets.
Imagine you're working on a bespoke blog engine for your company, so you have a GraphQL API that lets you query for all articles or just a single article.

Now the product folks want to add comments, so you add a new comments field on your article, with a new field resolver that queries the database for comments like SELECT * FROM comments WHERE article_id = ?.

This works great when viewing a single article: the frontend makes a single query to the GraphQL API, which makes 2 database queries: one for the article details and one for the comments

But then the product folks want to update the article search page with a expandable comment section for each article, so you can preview the comments for an article. Easy enough, all you have to do is add the comment field to the GraphQL query for the article search page, it's a GraphQL success story!

But now when the article search page loads, it runs 1 GraphQL query that retrieves 20 articles, and for each one it runs the SQL query to load comments. So instead of making 2 database queries it's 21.

Now we have performance scaling along with the number of results on the page, which is not ideal.
Python isn't that readable when piping. From https://docs.python.org/3/library/subprocess.html#replacing-...

output=$(dmesg | grep hda)

becomes

p1 = Popen(["dmesg"], stdout=PIPE)
p2 = Popen(["grep", "hda"], stdin=p1.stdout, stdout=PIPE)
p1.stdout.close() # Allow p1 to receive a SIGPIPE if p2 exits.
output = p2.communicate()[0]

This isn't a contrived example. One reason I like using macros in Python is because it simplifies exactly this boilerplate.

You can write a simplifying function, but programs rarely do.
I'm very unhappy with the new FF mobile. The user interface is worse
than before in every(!) aspect. There's not a single improvement. And
everything feels slower. And there is no offline browsing. On a mobile
browser! WTF?! And there is no way to save websites. On a mobile
browser, which has very limited connectivity due to its nature.

This is just sad. There was a time when I was happy to read about a new
FF version for the desktop. Now I'm just waiting that they will ruin it
like they did with the mobile version.
>> I don't see how flat or even marginal income taxes disincentivize people from making more money

When you hit higher tax brackets it gets more difficult to negotiate a raise with your employer, because to get X more money for yourself you need your employer to spend 1.4X more on your salary. Flat tax rates have no such effect.
No they mean that bullshitters, asslickers, and manipulative but charismatic and confident politics players often get more recognition and salary than the objectively skillful and technically competent, value delivering people.

Sure you can redefine "worth" to include scheming and taking undue credit and deflecting blame, but it's a stretch.
Unfortunately, the situation for many people living "there" (in Malaysia and Indonesia, primarily) is that their land is taken from them by palm oil conglomerates, and then they are forced into low-wage labor on the plantations. They went from self-sufficent to conditions that look like forced labor. The AP presented extensive reporting on this 3 months ago: https://apnews.com/article/indonesia-slavery-asia-malaysia-o...
I get pissed off about trash drivers too all the time, but you have to be realistic. These bad drivers are NOT the norm. You will pass many hundreds of cars on a 1 hour drive. You do not mentally file in "oh look at that random car with the good driver in it" the same way that you mentally file "yet ANOTHER bummwer driver not using their turn signals!" on your commute. People who are "slightly below average" basically are good drivers, especially since this class includes a significant proportion of soccer moms.
Ten rigorous, and curated Python interview questions (2016)
On amazon you can get an ASIN so you don't have to buy an ISBN. So there's no universal book identifier.
Isn’t that narrative driven by journalists?
That is hilarious!

Also, a fair percentage evil.

Nice trick.
Me neither. I would expect AWS to provide this service for free. It is like paying a price to design our systems to ensure they are reliable even if a zone/region goes down managed by AWS. Well - they might call this shared responsibility :)
Is this different than https://docs.aws.amazon.com/systems-manager/latest/userguide... ?
This is awesome. Question:

[[ -z "${NO_COLOR-}" ]] && [[ "${TERM-}" != "dumb" ]]

Is it not safe to leave off the double quotes here, because it is inside [[ ]] ?
Rookie numbers
Crossplane Community Day
> Involving aircraft hangar gravel or something, I never googled it, I never have even thought about such a product in my entire life. Yet there was the ad from a completely once in a lifetime conversation I had with someone. It's too damn niche to be coincidence.

You might have not googled it yourself, but I bet the person you had that conversation with did. If the conversation took place in real life, then that person's device was in physical proximity to yours (i.e., location data tracking; for example, if you enter a room full of people who googled tons of stuff about a certain subject, expect to see ads around that subject popping up on your device in the near future, even if you didn't google anything about that subject before and aren't planning to do so in the future). You also probably exchanged contacts and called (or texted) each other about other stuff in general (probable, but not necessary for the scenario I am describing). And if the conversation took place online, then it is even easier. Here you go, you just created a social link between yourself and the person who googled stuff about aircraft hangar gravel. In which case, it isn't surprising at all that you got that ad.

So in a sense, you are correct, it wasn't a coincidence. But I heavily doubt it has anything to do with smart devices listening and analyzing to what you said at all. It is much more trivial and less creepy to simply utilize your social links to figure out what kind of ads to display to you than listen in and try to analyze your conversations. More reliable too.
This resonates with me as someone that spends a lot of time alone. I also find that I tend to view social interactions that I do have as more significant than the others involved if they're not also loners. I have to remember that most people go to lunch with others, have small gatherings, etc fairly often (outside the pandemic times). It's not generally as memorable or significant to them. I'll think back fondly on an evening dinner party and remember every detail, friends that go to such things every weekend remember them less significantly. I also sometimes think of people I haven't spoken to in a long time as still being relevant to me, and have to remember they likely don't think of me at all - I don't mean that in a self deprecating or sad way. It's been a good thing to be aware of, sometimes someone will cross my mind and I'll do a sort of social inventory and file them away as "dormant" lol
As far as journalists are concerned, they feel they were specifically targeted because they were journalists. A search [1] pulls up several examples of these claims. Some of the photos make it pretty hard to give police the benefit of the doubt (as far as whether journalists and protesters are hard to tell apart).

Even still, what we have is a situation where people were attacked and permanently injured by police. For example, Linda Tirado was permanently blinded in her left eye from police shooting a less lethal foam bullet. A photo of the officer aiming at her [2] leaves little doubt that he intended to shoot her.

In my mind, that leaves two possibilities: journalists were regularly physically attacking police officers, or police officers— unprovoked— attacked and maimed journalists covering the situation. Neither of these should be true in any capacity.

This is, of course, to step over the other oft-repeated claims by protesters that police were responsible for most of the violence. Given that the protests were largely due to police violence, this doesn't paint the situation in a better light.

[1] Setting region to US may return better results: https://duckduckgo.com/?q=protest+police+targeted+journalist...
[2] https://www.startribune.com/photographer-sues-says-officers-...
I don't do mobile advertising but this is just incorrect... Most of Google's revenue comes from Search and that has nothing to do with IDFA.

Then how would third parties with no access to first party data compete when there's no more third party data would be something I'm curious for you to explain.
I built a Wiki based on Mercurial years ago; it's not too hard to just build a web interface in front of it: it was just a thing to learn me some Ruby at the time. In many ways it's just an implementation detail, but I don't know if the MDN people are planning anything of the like (but MDN is for tech people, so I don't think it's a problem there).

The big upshot is that all the hard problems like merges and history/diffs and whatnot are solved for you by the VCS. I don't think MediaWiki allows you to "blame" anything for example; something I've often wished for. It's just a whole class of problems you don't have to think about.
California has its own slew of historical policies which have dramatically decreased housing supply. A guy in san francisco was denied a permit to convert his laundromat into apartments because the city planners determined it would cast a partial shadow on a nearby playground for god's sake. That was after he had to shell out $$$ to determine that his laundromat was not a historical site.

In Palo Alto, not a single new house was built in the 1970s.

>It's supply and demand, not liberal or conservative policies.

Do you not understand policies influence supply and demand? What do you think happens to supply after zoning laws and rent control are passed?
Much of the adaptation will be disappearing, including a large number of sites that contribute articles that pop up here on HN. Another way would be getting more invasive, like requiring login, before the content gets displayed.
yes, as long as the text is binary safe ... . XML specifies the character set for the document. IIRC also for base64.
You're justifying the abuse of people's privacy because they can't afford to buy out of it.

That might be legal for the moment but it is in no way moral.
Yup. Then you get things like the Twitter hack a few months ago where a bunch of celebrities were tweeting a crypto scam. I'd bet that wouldn't have happened if bug bounties were paid and reliable enough.
Ah you're correct, I misunderstood the feature.
That chart can be handy, but learning vim from it is like learning German by memorizing every possible sentence.

I recommend https://danielmiessler.com/study/vim/ for those trying to learn vim
Okay, so first you have to have a whitelist of "allowed" usages of depreciated functionality for this to actually work. Anything that makes it into prod goes on the whitelist. All dev environments, QA, and your automated testing run with fail mode on and trying to push code that adds to the whitelist should set off alarm bells. From there it's up to the team / business if it's worth doing it anyway.
I designed a REST API with a "well-documented" HATEOAS representation (collection+json). The primary requirement was to ensure there was no caller-side language dependency because we had multiple teams that would be calling the API and those teams might use the command line, Python, Ruby, Javascript, etc clients to consume the API results.

API adoption was low in the end - teams in the end wanted libraries rather than a well-defined representation with embedded hyperlinks. Every consumer I heard about simply parsed the JSON bits they wanted from responses and hard-coded URL links in their client apps.

I enjoyed the design and writing of the app - I used Clojure and the liberator library. Probably a wasted effort of engineering in the end. Totally fun project to implement though.
Nazi punks fuck off!
EU reveals plan to regulate Big Tech
> Companies with over 45 million EU users would be designated as digital "gatekeepers" — making them subject to stricter regulations.

Do "shadow profiles" of people who never registered but have data collected on them count towards this?
For what it's worth, it may actually be healthier to not do these, particularly 1 and 3. You may be ruminating, and ruminating is not good for you - it can tire you, agitate you, cause you anxiety; also, you end up being in your thoughts and not in the moment (e.g. when hiking).

It is fine and good if you are doing it with purpose (e.g. tutoring someone else in your mind to understand something better, or trying to work out some problem that has a solution), but bad if you are trying to solve something unsolvable, dwelling on the past or worrying about the future, or just wasting your own CPU cycles.

This is something you can practice as part of mindfulness practice - getting spontaneous awareness that you are engaging in an unproductive internal dialogue and letting it go. Not fight it or stop it, but just let the thoughts come and go without engaging with them.
Unintended consequences don’t matter. The intended purpose was to keep seniors and retirees in their homes without the danger of them being made homeless due to the speculative nature of California housing market whose instability is largely contributed to the said feted ‘new comers’.

What you type are talking points that make no sense. Ask anyone who had lived and paid taxes and mortgages in California before 1980, they will tell you why prop 13 is the third rail and the disastrous consequences it had on Californians when they tried to touch it.

These talking points when examined are literally..and I mean literally..meaningless. They are repeated and never analysed. Young people don’t research, look at CA budgets or the insane nutcase formulas Gov. Jerry Brown instituted that has made CA budgetary maze a house of mirrors.

Here is an easy one to remember: when someone is being blamed and loudly and often, pause. Examine. More likely than not they are an easy scapegoat. Consider who is screeching and yelling at them. They are the problem.

California politicians have successfully turned its people against each other. Older Californians feel like the state has become unaffordable and are being strangled to pay the taxes of the new comers who walked into a ready infrastructure ready state. The schools, roads, cities were already planned and ready to be taken over by the tech horde.

On the other hand, there is the tech crowd. Young and having had 18 years of their schooling subsidized by the very people they are trying to unhouse with demands for punitive taxes that offer them no benefits in their old age where they only look forward to a fixed income. They see the young people in their late 20s and 30s trying to grab their homes and can’t understand why these so called millionaires and educated class earning 5 figures need them to die or fuck off to be able to afford a home.

Meanwhile in the background, unions and our ELECTED leaders are pulling the puppet strings to create conflict so that in the chaos of calling each other names, the public will ignore their machinations. The only goal: extract as much taxes as possible to pad public sector jobs/salaries and unfunded pension liabilities. Unions, homeless activists, diversity and inclusionary departments, prison rehab, housing activist are ALL union backed. Everyone else is a puppet too. Look.it.up. Look up CA budget. The unholy alliance to create vote banks for public funding.

The people who are shelling out the money as taxes should stop fighting and take a breath. Look at the REAL enemy. Look how smart he is to keep two cash cows to fighting each other. Wake up.
Enterprises that still rely on legacy Flash apps can pay Adobe partner Harman for a custom standalone Flash host application:

https://services.harman.com/partners/adobe

Adobe, Mozilla, Google, Microsoft, and Apple simultaneously announced back in 2017 that Flash would no longer be supported after 2020:

https://developer.mozilla.org/en-US/docs/Plugins/Roadmap#See...
Everything I do is cross-platform so I use Qt, for which version 1.0 is from 1996 and which has really not changed much since then : https://www.qt.io/blog/2018/05/24/porting-from-qt-1-0 ; I write new apps with Qt on a very regular basis.
> Does your aphantasia prevent you from day-dreaming, for instance?

I can "day-think" aka get lost in logical thoughts. I don't have the inner voice either, so it's less like reading a text and somewhat more like reading code. No narration, just a stream of... invisible "variables". It's hard to explain without having experienced what other people see or hear, I have no point of reference.

I also have the bad habit of forgetting people.
"Out of sight, out of mind", except I do have object persistence. I imagine it is easier to randomly think about someone when you can hear or see them at will.
> To prevent fraud

Honest question, I am not trying to be obtuse, but in this context can you more specifically define fraud? Is it just "ad fraud" as defined here: https://www.clickcease.com/blog/what-is-ad-fraud/

I get why businesses should care about ad fraud, but why should I, as a consumer care about it? Frankly I don't even want to know about my traffic, let alone yours.
> Unacceptably high latency for any sort of seek operation - even if it's just going back a few seconds to what you just watched and ought to still be somewhere in a local buffer.

Unacceptable for what use-case? I had assumed this was somewhat intentional on Netflix's part, or at least not a priority for them.
Would you like me to clarify something?
Might depend on your country certainly the UK Punk /new wave, ska two tone scene was very political and 99% progressive (Morrisey being the one stand out)

OI certainly had a strong association with hard right politics - but that was a bit later.
Disclaimer: I work at AWS but not on anything related to this.

I don't think this announcement is as juicy or controversial as you were hoping. It appears this was developed jointly with Grafana Labs as a part of a longer term partnership: https://grafana.com/blog/2020/12/15/announcing-amazon-manage...
It is unfortunately closed source, however.
I dont even know what this product is but my kneejerk reaction is that it will be shuttered in a years time.
Weighing and portions are key.

When I cooked professionally in Rome, we weighed out 50g for Italians and 100g for Americans in terms of planning large buffet/group lunches (combined with options for soup and 6-7 different salad or veggie dishes).

I've found that 75g hits the spot for me.
The police were attempting to intimidate and silence them is the honest answer.

I'm not sure if any were charged with anything that stuck, because likely none of them committed any actual crimes. It's just police abusing their power.
Yeah, it hits slow too. Read it, started to chuckle, than BAM! Hilarious!
Covid Deaths, by the Numbers
I've never used tools like that and I feel the same. Regexes provide a simple, well supported solution to a huge number of problems, and I'm not sure what the second problem is supposed to be.

The quote is fun, and I've sometimes used variants of it, but I don't get why the target is regular expressions.
This is great. They should also consider spending money on less mainstream or well-adopted Clojure projects.

After all, if an open source project hits off with users without the money, it clearly didn't need the money. While who knows what really great things die because the authors needed to focus on stuff that pays them directly instead.
- Disturbing the peace

- Resisting/obstructing an officer

- Failure to disperse

- violating curfew (journalists are exempted here)

According to the report most charges are being thrown out. Do reporters have immunity to the first 3 violations in that list during a protest?
On the flip side: How is installing a browser and authenticating in it any better than installing openssh and/or awscli and authenticating through them?
So, does that mean things like WebCrypto (which requires https to be available) will work in development environment now? Or did they already work out of box? I never tried because I assumed they won't work.
In DDD this is the Aggregate pattern. https://martinfowler.com/bliki/DDD_Aggregate.html

Essentially, a graph of objects that must be treated as a single entity.

I've seen quite a few REST implementations that have separate calls for the root and branches, like Order and LineItems. In the Aggregate pattern, you treat them as an entity that travels and transacts as one.
Not expecting a non-commie to come in and advocate for the labor theory of value on HN! Kudos to you for having the balls to do it!
I'm still stuck with the old Firefox for Android until extensions are generally supported.
I'm really looking forward to that though, because other than extensions the new one looks great.
I would honestly like to know what’s the point of these comments. This person offers a free, open-source and cross-platform offline app in the most cost-effective way as a single developer not willing to make money and then one person comes and says “yeah cool but not native”.

No single person I know is going to work alone to deliver a native app with such features. Let this person have his/her minute of glory because it’s well deserved.
Right, but choosing between power user features and stability is clearly worse as a user than not having to choose between power user features and stability.

Also isn't there more telemetry on by default in nightly?
True, I don’t care though.
Session Manager is for logging into your instances, this provides an ephemeral "instance." You could (and many places do) accomplish the same thing by having an instance that provides similar functionality, but this removes the need to manage that.
Supersonic Jet Startup Boom Technology Is Now a Unicorn
There is so much irony in the fact that the web loves Google crawler, optimizes for it, makes sure that Google robots have special, first class treatment.

And at the same time, on the same website I need to enter Google-provided captcha. To fight robots.
No. I'm not sure what the "-" is doing in "${TERM-}", but if $TERM was for example set to "-z stringhere" then that would be interpreted as two arguments to "[[" instead of one, and would ensure that it always returns false, for example
I'm not saying it's right, just that it's understandable. To use a software analogy it would be like if for your job you were forced to help make a website for anti-software developers who hate you and your profession, and you are treated poorly while trying to do your job. That environment is not going to cultivate craftsmanship to say the least. The right thing to do is to dutifully and professionally execute your tasks, but in reality people have emotions and some software engineers in that position might sabotage the project out of spite.
Baseone
Baseone is a cloud platform that is providing the needed infrastructure and tools to build crypto applications on any blockchain network, starting with Ethereum.
Wonderful idea. Seems very ML focused at the moment, would love to see other fields here too.