skysight-inc/HackerNews huggingface dataset:
Rewriting just has a cost, a particularly big one.

That just means that there are cases that justify the cost, and they happen to me more extreme than the reasons we generally like to rewrite things.
Scientists Are Launching a Sun-Blocking Geoengineering Experiment
Token tok;
start_token(&tok);
for (;;) {
int c = look_next_char();
if (('A' <= c && c <= 'Z') ||
('a' <= c && c <= 'z')) { /* or whatever test */
consume_char();
add_to_token(tok, c);
} else {
break;
}
}
end_token(tok);

Done. There's no point in going through a weird API.
So instead of having to learn English as a prerequisite to understand code bases, you propose that we learn a dozen or more different natural languages instead?

Can you imagine what it would be like if every library had to be released in N different translations?
Sounds like an exceptionally bad idea. A huge step back for our field.
Ridiculous. My Aussie cousins are talking about this on FB and Twitter. So are their friends. The gag order is going to be harder to enforce from now on.
I recommend ksplit/ksplit_core from Heng Li’s excellent klib kstring.{h,c}[0]. It modifies the string in-place, adding null terminators, and provides a list of offsets into the string. This gives you the flexibility of accessing tokens by index without paying costs of copying or memory
allocation.

[0] https://github.com/attractivechaos/klib
I think it's funny that people still don't know anything about the case that codified that shouting fire in a crowded theater should be illegal.

Really not the strongest argument when you just give a blase retort with no actual substance.

The corporate media seems to get away with fraud, libel, and slander daily. So probably?
Show HN: Histopathologic Cancer Detector (Kaggle LB 0.958)
The 'Spolsky article' may be opinionated and simplistic, but the article on which it was based makes some salient points that should be weighed carefully.
Isn't worldwide accumulative debt 0.0 by definition?
Aside from the clothing, it looks like the Eastern Bloc now.
Love the gritty aesthetic of old photographs like this. Actually prefer it to modern, razor-sharp photography. Or maybe analogue just fits the image we have of the past better?

I wonder what kind of equipment was used for these photos.
The world is also very different than it was 100 years ago. Today we can review a barbershop on Yelp and complain they aren't cleaning their tools. Today we can share digital medical records and delegate decisions to nurse practitioners while having the option to fall back to a doctor if necessary.

There may have been good reasons for certain licensing laws 100 years ago but that doesn't mean those reasons are still valid today.
The dictionary definition of singular they is, quite literally, “he” so you haven’t really improved on the concerns some have with he in using they.
I once had to debug code where the code was in English, but the comments were all in Cyrillic.

Oddly (to me, anyway), the software house that made the program was located in Africa.
Endometrial Receptivity Test Uses Genetics to Opitimize Embryo Implantation
Minnesota and Oregon move to end single-family zoning
It is not front running. These HFT are called market makers. Essentially, brokers show you the NBBO - National Best Bid and Offer. When you place an order on that price, one of the many market makers will pick it up. At any given point of time they will hold multiple buys/sells. So, they make money by collecting the spreads.

Nearly all brokers tend to sell order information to one or many market makers. It is neither illegal nor harm retail customers, not unless these customers are trying to run some HFT algos on their own.
DIY 3d Christmas Wreath Easy Making Instruction for You
"Here's some math I made up."

Yes. They lost me at that point. Why do people feel inventing some cargo cult mathematical formula enhances their point?
>All the surveillance in the world won't keep your stuff from being stolen.

Maybe not but if the thieves are recognized automatically the police have a much better chance at recovery.
Sure, but at least you won't find statues of traitorous, racist war criminals lording over you when you go to file paperwork at your local county seat, or Confederate flags proudly displayed at your local state parks.

There's something different about it when it's government sanctioned.
There aren't two different words, you'd just casually say big city, small city, or "miasteczko", a diminutive from city / miasto.

But English still does distinguish between the two, so when you read about a "town" in Poland, what you imagine probably isn't the 4th largest city in the country, home to over 600 thousand people.
To some, these might infuse some level of specific nostalgia[0], which is in many respects picking up steam in these regions in the last few years.

[0] https://en.m.wikipedia.org/wiki/Communist_nostalgia
What is Tokamak
Bloody hell, there were food stamps in 1980?! What did I miss?
Product safety is certainly an area where strong regulation is valuable, however this article is focused on occupational licensing.
In the early nineties. The implosion of the USSR caused hyperinflation and disrupted the supply chain. Luckily it went back on track quite quickly, at least on the European side.
> searching through the dictionary.

Sounds like they explicitly forbid this.

> Fails to reward those who have built up a large vocabulary

You need to know the word exists to search for it, and larger vocabs will still be an advantage.
Not sure where you've been but it looks nothing like the countries I've seen (Lithuania, Slovenia, Czechia, Slovakia, Croatia, Hungary, Former GDR)
Yeah... look, with our Government passing far reaching anti-encryption laws (that impact the entire world) without the need for judicial oversight[1] and planning to move our embassy from Tel Aviv to Jerusalem after officially recognising the latter as the capital of Israel[2], and the general Australian population paying no bloody attention at all; gag orders are pretty low down on the list of stupid shit going on.

It's getting down-right depressing to be an Australian citizen.

[1] https://www.itnews.com.au/news/australias-encryption-bill-fa...
[2] https://www.theguardian.com/world/2018/dec/14/australian-gov...
Show HN: A rap song about stereotypical tech startups
Song URL: https://www.youtube.com/watch?v=JjjUj1ypVmI

Quick background on the project: I'm a full time programmer and I love making rap music. I see a lot of humor in the profession/industry, and thought it would be fun to combine the two.

Here is what I'm planning on for next steps. I'm always open to feedback! Let me know if you have any other ideas for getting exposure.

1. Make a song on a custom tech-themed beat

2. Paid ad on a popular Twitter account(s)

3. Record a music video for an existing song
That 100% branch coverage does not include indirect calls via functional pointers or jumps to signal handlers caused by devision by zero or invalid memory access, right?
Indistinguishable aside from the clothing.

http://chrisniedenthal.com/en/works/slub-1982

https://static.polskieszlaki.pl/zdjecia/wycieczki/2015-03/ry...
It was proposed in July (https://github.com/cncf/toc/issues/136) and voted on in September (https://github.com/cncf/toc/pull/143), all before the IBM/Red Hat deal was announced or known to the staff.

The announcement was held for publicity at KubeCon.
How is an issue you had a long time ago relevant now? And why do you say "fix X first" if you don't even know whether it's still a problem?
You really fail to see the irony in investing in a strong padlock for a building with thin glass windows? You have defensive replies to everybody here so please don't project your attitude onto those of us who are legitimately curious about what's giving you trouble. Note the name of the website.
No, actually, it doesn’t. Warsaw, for example, makes many western cities look dirty, old and outdated. Compare the Warsaw metro to the Parisian one sometime.
Reflection is the least of the problems this solves.

The majority of the issues and gotchas listed in the generics FAQ for Java do not happen in C# at all. It is liberating.

Reflection is an advanced use case that some people use, but it is rare.

The lack of flourish in. NET overtime more to what happens when a company takes the reins of a stack and later stops working on it.

Microsoft for a while invested and designed JavaScript, Python and Ruby versions for .NET. But when conditions changed, there was no interest to keep the projects going. These are all observations from an outsider at the time the projects were defunded.

Because of the siloed approach to development at the time, and the lack of an external county around those efforts, bootstrapping a community to drive those on their own proved to be very hard. Ruby mostly died, Python is barely surviving.

The mood in the ecosystem went from "we can build these and speed them up" to "this is an ongoing cost, let us rather interop with the real implementations rather than find constant catch up".

Meanwhile, languages that Microsoft did not build did flourish, like PHP

This corporate phenomenon deserves a blog post on its own
The bigger question is - what happens if you get the price 20% wrong? This might look like a winning strategy in a normal and calm market. But, it'll take only one day to wipe out all the gains.
Completely agree. I’ve seen several legitimate instances of theft and porch piracy on my local Nextdoor and the government police seem to do little about it. Something like this would support private policing which is desperately needed in many areas of the US
People need to do that for fear of losing their jobs or damaging their career prospects I think. Is it possible to be a Trump supporter at any of these big bay area tech firms? Many of my friends tell me they pretend to be apolitical for fear of being fired, but I don't know how exaggerated their stories are.
The photo caption says Food stamps, Warsaw, 1980s, Poland.
GE Powered the American Century – Then It Burned Out
I didin't really understand it either. I think the problem is taking in an array that's already been partitioned around a pivot, and then trying to figure out how many numbers could have been the pivot. The reason why this isn't just the length of the array is because the array is already pivoted. The reason why you have to use a linear scan is because the array is still in unsorted order.

For [1, 2, 3, 4, 5] there are 5 pivots.

For [1, 2, 3, 5, 4] there are 3 pivots (1, 2, and 3)

For [2, 1, 3, 5, 4] there is only 1 (3).
For those who get a paywall, here's[0] an Outline link.

[0] https://outline.com/M22bbL
The 100 Websites That Rule the Internet
What feels bizarre to me is that you can't get the package from npmjs.com, there are no links to code etc. on there. Instead, use the API as a human (https://registry.npmjs.org/trim) to find the download link (https://registry.npmjs.org/trim/-/trim-0.0.1.tgz), extract it locally, then find the source.
This is 100% correct. We're in the process of doing this now with our products (and our internal systems, also), and it works well.

When you have products and systems that have been around for a decade or more, major portions of them become outdated and need to be rewritten (or largely rewritten, the two are synonymous to me). Best practices in crypto change, operating systems and hardware improve/change, etc., and if you want to keep generating value, you had better change along with it. You can see where organizations don't do this: the developers force weird constraints on IT like needing to use old, obsolete versions of operating systems because the software won't run on newer versions.

Along these lines, one of the problems that I think exists with the software industry today is an inability among developers to recognize that software sticks around a lot longer than one might originally envision. And this phenomenon only gets worse (better, for the end user) as the value provided by the software increases. It's a bit of a Faustian bargain: everyone wants their software to be used and provide value, but often don't realize the "soft commitments" being made in the background that can tie you (or the business) to the code for years (or decades).
I think you're assuming the target is a browser, but my question was how this might affects servers. Does the attack use malicious SQL statements, API calls, or encoded data?
Except then you have the issue about compilers complaining about double-declarations of the function, meaning you'll either have a lot of warning spam on every #include or now hard require some kind of header defines for HAVE_STRSEP. Once you go that way, there's no going back and it's only gonna become more and more.
Another solution is to check them in as git Large File Storage files.

https://git-lfs.github.com/
AFAIK strtok has restrict on both args since C99. And the safe variants strtok_s and esp. wcstok_s are missing. Strings are unicode nowadays, not ASCII.

https://en.cppreference.com/w/c/string/byte/strtok
Even the clothing - such as the uniforms that people are wearing (military and civilian), the older fleet of cars present on the roads in many post-Eastern Bloc nations, the wonderful architecture from the pre-1990's still extant, and more, there are large similarities between the photos and the what things look like today.

Of course, things have changed, but to a large degree, the images presented have so much in common with the present.
Not this kind. You didn't pay for food with them. You paid normally but also had to provide the stamps, as a sort of a rationing mechanism.
Well obiously they aren’t showing “stake” and “soup” those are binary classifications. They are showing stake-like, soup-like and salate-like, which you can normalize to one. If you actually want to keep the last axis which is essentially a comment on how much the item fits within the space you can use dot color or size though I’d argue that it’s actually pretty much irrelevant for this comparison.
Did I mention kernels anywhere? I simply shared my experience.

If that doesn't fit neatly into your delusions it's really not my problem.
Ask HN: How lengthy should a technology book be?
I am writing a book in technology. Something like 'The Learn Startup.' I see usually books are around 300 pages. Do people get time to read in that much depth or books like "Bootstrapper's Bible" that are very short (103 pages) and to the point are read more? The one I am writing is around starting companies.
strncat is another good example. It's a buffer overflow waiting to happen, and worse it's the 'safe' version of strcat. The trick is the parameter you pass is not the length of the destination buffer, but the remaining length of the destination buffer. Most people really want the behaviour of strlcat.
If you take the position that every codebase everywhere must be available to and understood by every programmer everywhere, sure, you have to settle on a common language. Luckily, I don't think anybody takes that position, or at least takes it seriously.

But there are plenty of monolingual dev teams out there whose shared language isn't English and isn't written in ASCII. Why should they be forced to write code in English if nobody who works with it is an English speaker?

I already regularly see people post questions to Stack Overflow and mailing lists and IRC where names of classes and functions and variables are ASCII but not English (i.e., someone writes a class called "Utilisateur", not "User"). Why not let them just use their language fully?
Building Full Stack Vertical AI Products
Billions of Dollars U.S. Economy Loses to Occupational Licensing
The history of the United States as a Caucasian ethnostate looms large here. When people talk about diversity, what that's code for is essentially "not racist," because the legacy of those explicit laws enforcing white supremacy takes generations to untangle - and diversity of population (and integration) is one of the important ways to slowly grind down the residual attitudes.
strtok is there for things like and similar to /etc/hosts and /etc/fstab
...And then the application is required to implement variable length characters, a la Unicode, and you start your strings logic all over...
sorry, 490 euros? what?
As many have commented, there are two Scrabbles.

Below a certain level, it is a fun “beer and pretzels” game, where having a good vocabulary helps, and when someone plays an unusual word, the other players “ooh” and”aah.”

Abive a certain level, it is a strategy game requiring a large memorized list of allowable combinations of tiles to play, and the correspondance to actual words has no more significance than the shape of a rook in chess resembling a tower.

The gap between the two games is tremendous, and this is, in my opinion, the game’s only fault. It’s very intimidating to enjoy the beer and pretzels game, but discover that in order to play seriously, it’s not just 10,000 hours of study, but much of that will be rote memorization.

But nevrtheless, the beer and pretzels version of the game is also a valid pursuit. It’s just not the Scrabble you choose to play.
That's what I was thinking about. The Java ecosystem solved this problem 20 years ago!
Poland is racially and culturally homogeneous. France, especially Paris, is not.
I don’t see it either. The paper specifically talked about modifying the source of the “root” compiler, and then using it to compile the system compiler.

This can be generalized to N compilers, so to truly claim that your compiler is safe, you’ll need to verify the source of all compilers in the chain.

I’m not an expert, so please correct me if I’m off here!
In Perestroika times there was a brief period when there were _vodka_ stamps in Russia. There were problems with both food and spirits, but only the latter was rationed through stamps.
The Eastern Bloc was a big bloc. Some countries are completely changed, some not that much.
To save others searching; The mentioned NLL is: https://github.com/rust-lang/rfcs/blob/master/text/2094-nll....

“non-lexical lifetimes”
Shoptiques (YC W12) Is Hiring Junior E-Commerce Merchandising Manager
It comes out of the ground naturally in many places and accumulates to dangerous levels in buildings with poor ventilation. There is very little industrial use of radon.
>I'm so very glad I deleted my account months ago.

I did as well. One thing that stood out to me in the article was that users who were impacted by the breach would be notified via a Facebook message. What about people who were impacted by the breach who no longer have an account?
Thanks. A lot of the articles breaking the gag order did not mention this. It makes them look rather shabby.
I like this collection. They complement the more recent series like Simon Roberts' Motherland (mid Aughts). Also some have an echo of Chris Killip's In Flagrante's aesthetic.

Wonder if any of it might get published by Steidl, as a collection.
> The packages won't change on npm and you'll always get the same version for all sub-dependencies.

Until they decide to stop hosting old versions you need, because reasons.
the central planned economy just ground to a halt
That wouldn't affect the balances though. So if you simplify to liabilities (as you say, non-discounted) + assets = 0, that would be true.
"Just yet another reason for common law countries to adopt constitutions that are explicitly not open to interpretation"

I don't think that's possible. Do you have an example for this?
I believe that nostalgia about the (supposedly) better times is a constant in most cultures.
What’s the relevance of that to the modernity of their subway?
perfect. Just got a monthly pass at

https://sovietmoviesonline.com

for the holidays.
It's certainly also ACL overkill. They lookup ACL inheritance by default on every single file call, unless you turn it off in your directory. That's uncached and recursive up to the root, extremely slow.
Amazon pay a living wage now because they were shamed into doing so.
Too late to edit, but I meant “that doesn’t make it a good decision” not “bad decision”
Similar experience while working for Sony in Japan: all the code is in English, all the comments are in Kanji. Oddly, the variable names were always and only the variable names used in the code examples, as if they thought they were the only allowed variables.
Are you arguing that racial diversity is the reason Paris' metro is dirtier than Warsaw's?
I say force the new maintainer to fork and then leave a note in your README that the currently maintained version is (here).

This way anyone who decides to trust the new maintainer will be able to act as a "canary in the coal mine", notifying others if they run into issues. This also delays the gratification to the new maintainer. If they're truly malicious they'll need to spend maybe months / years maintaining the code / fixing bugs until they'll be able to hit pay dirt. I think most malicious devs will not want to pay this price.

EDIT: This would also act as a window for (a) folks to find other alternatives for their projects, and (b) inspire folks to build alternative options.

I think the willingness to fork over access to widely used packages isn't just a reflection on your desire to move on from the project, but it also reflects your blatant disregard of the thousands, maybe millions, of people who depend on what you've built.
Be more vulnerable in our lives
Socialism, Modern Talking, Iron Maiden, and Mullet haircuts. I thought nothing can go worse than the 80s, but now we have the EU, Auto-Tune, and lip injections.
Managing Access to Multiple AWS Accounts with OpenID
It makes me think of a dual of modular system design, a rewrite should aim at finding or validating minimal interfaces so a subsystem can be rewritten (the goal of modules I believe) at minimal cost and uncertainty.
Huh. Great idea. I'll let you know when it's done.
I can give you both, an extreme example of a country whose judiciary champions the trollishly named concept of "legal realism" (better to be called legal surrealism,) and a number that continue to uphold the rationality that law was written to a rule to follow.

The first one is USA, whose judiciary gladly swallowed the executive order 6102, and the entirety of nonsense surrounding domestic surveillance programs. One whose supreme court said that a man has "in fact gained" wealth from surrendering his gold for less than half of its price, and managed to validate FISA courts whose very existence goes prima fascie against the word of 10+ constitutional statutes.

The second, the best example I know of is Pakistan, and to some extend India. British legal process, as well as German empire's one was textualist for quite long time. A very famous case of late British empire law, if not the most known one was when a man sentenced to hanging was pulled out of the noose in the very last moment, when a lawyer argued that "a sentence of hanging, gives no permission for murder." Even today, a supreme justice of Pakistan, a man known for the thunderous legal activism, is bound by hands and legs by the word of constitution, and hits the stone wall of SJC's opposition when his actions diverge even by a single letter from his formal legal mandate.
Found something weird with codes posted in the links. I am getting different outputs for the intermediate and the final codes for the input of "5; 1,2,3,4,4". Can someone help?

1. https://imgur.com/a/u8O65AF

2. https://imgur.com/a/uHniZof
The code of StarOffice probably wasn't meant to be shared outside Germany. I think LibreOffice recently finished translating everything to English.
>I've heard certain cleaning products can mimic cat pheromones (not sure how true that is, though), or at the very least affect the cats sense of smell which would affect a cat more than a human.

Not all cats, but I did had more than one that liked a lot the smell of bleach (NOT sniffing from pure bleach but if you wash something with bleach and then wash your hands without soap it remains a little on your hands), my cats went mad, sniffing my hands, self-striking against them, etc.