skysight-inc/HackerNews huggingface dataset:
The macro should be called select, since that's what Go calls it. (Of course I know there is a POSIX function (not C) by that name; so what).

This "choose {" "end }" business is an awful way to design the macro. If you need nesting that involves a block, with prolog and epilog material on either or both ends, you just have to hide that into the macro:

selbegin;

out(ch, int, 42):
foo();
in(ch, int, i):
bar(i);
otherwise:
baz();

selend;

I don't understand the downvotes. I have 30 years of (continous!) C experience. This is the best practice for doing a macro like this.

This "end }" business has improper nesting, visually. The choose is outside of the braces, the end is within; it is scatter-brained. There is no error checking for a forgotten end.

I'm looking at the implementation and it's looking quite weird! choose simply expands into mill_choose_init__, and end expands into mill_choose_end__. The definitions of these seem as if they should pair together:

#define mill_choose_init__ \
{\
mill_choose_init_(MILL_HERE_);\
int mill_idx = -2;\
while(1) {\
if(mill_idx != -2) {\
if(0)

#define mill_choose_end__ \
break;\
}\
}\
mill_idx = mill_choose_wait_();\
}

But, oops, look at the obvious lack of balance in the braces.

mill_choose_init__ {

mill_choose_end__ }

we are putting a brace after the if (0) which balances the one after break, and the final missing brace that balances the one opened internally in mill_choose_init__.

There are best practices to design this sort of macrology that don't require the user put braces in weird places to balance the inconsistencies in macro expansions.

Speaking as a professional, I would not pass this in a code review.

That we have to use a flaky preprocessor in order to get a half decent syntax is already a significant regret. We must not compound the regret by allowing the macrology to be less than as good as it can be.
I think it will be something like this app https://play.google.com/store/apps/details?id=nl.innovalor.n...
I don't mind paying for software. If it was a one-time payment for a royalty-free library, we'd pay a few thousand dollars, no problem. But this is a cost per device thereafter (in addition to the substantial up-front cost), which in embedded could mean crazy money. So we just hacked up GTK to meet our needs, for $0 per unit cost.
Google I/O 2019 – Geoffrey Hinton Says Machines Can Do Anything Humans Can
In other breaking news, some ants built an ant pile somewhere
True. I wonder how long that can continue before someone forks and takes the contributors with them.
It's pretty stupid that I have to pay $250 if I get locked out of my place, because only the landlord has the master key card.
I'm curious about this if you remember the reference. My gut reaction is UUID is better because the keys would be more uniformly distributed across the key-space. With sequential IDs, a binary tree would end up always being unbalanced -- though, this effect would be reduced as the database gets larger.
From a B2B side. I’ve been on both sides of a startup.

On one side we were a small company with a large company as a customer who demanded that our code be put in escrow in the case we went out of business. The company did, but the customer hired me as a contractor because I was one of a few people in the world who knew how to develop on the proprietary platform. Even better, I was one of only three people in the world who knew how to modify the C++/MFC platform itself.

On the other side, I was the dev lead for a company and our business consisted of 60-70% of the vendors revenue. We had them put the code in escrow as part of our contract.
Two things to consider:

1) The insurance company will more often than not sue the party responsible for the faulty workmanship that triggered the incident to recover the money (I've seen this happen). In this case the owner is that party.

2) One real example is enough to show it's not a legend and you provided it yourself:

> Some courts have upheld this rather cramped reading of the exclusion, while others construe it properly and require insurers to pay for the water damage

Since it's upheld in court I find your statement that it's an urban legend pretty confusing. It's like showing a picture of the night sky to prove the Sun is a myth.

YMMV of course, you should read your own contract to see what's stipulated and how comprehensive it is, and case law in your jurisdiction to see if courts would rule in your favor. But better be safe and start from the assumption that the "urban legend" is real since courts support it. It's the kind of legend that might cost you money.
Yeah, the first mistake was _and make them dependent on external services_. An internet-connected light bulb's failure mode should be "temporarily become a regular light bulb".

"I like an escalator, man, because an escalator can never break. It can only become stairs." --Mitch Hedberg
https://www.youtube.com/watch?v=7n1ryH3igKc
I never said I didn't have preferences about how the world should be. They are just a little more nuanced than "this class of living things should be kept alive and feeling happy and that class of living things should not"

In general I prefer life should go on living and creating more life in a sustainable fashion, but generally that does involve some amount of suffering for some life somewhere.
Comparing Uber to Amazon is just silly. Amazon had/has a sustainable, robust business model. They chose to re-invest.

Uber burns money like it's going out if style and has no clear path to profitability.
> The queen never leaves the swarm cluster, and has no bearing on the decision of hive location. The swarm sends out scout workers who inspect locations for suitability and report back to the cluster. Through a voting process, the workers decide and move as one to the permanent home.

> If you're interested in this topic (which is fascinating), there is a great book on it called 'Honeybee Democracy' by the bee researcher Thomas Seeley.

Fascinating! So it isn't a monarchy after all? :P Thanks for the recommendation.
This is why Google is pushing DNS-over-HTTPS into Chrome, so that DNS-based ad blocking will no longer work.
Or maybe we don't understand the field at a level where we can objectively say which tool is right for a particular problem domain.
I hope this doesn't raise the price of Harry's. I have a subscription and don't want to pay more.
> We know people act irrationally or apathetically in disasters.

This, times a million.

Brains don't work right sometimes, and you fixate on weird things, shut down, or fall into patterns that aren't useful in the situation in question. Afterwards, you'll be surprised by your behavior, shocked, embarrassed, and ashamed. Sometimes your behavior will seem brave to an outside observer, sometimes it will seem shameful, sometimes inane, but it's the same I-don't-understand-what's-happening disaster fugue state from the inside while it's happening.

I'd lay odds that for most of those people getting off the plane, it wasn't even any sort of "I need my stuff! It might get damaged!" thinking. From the inside of their head, they were getting off the airplane. When you get off the airplane, you put on your coat and grab your bag. What else would you do? You never leave your stuff on the airplane. When you are in a disaster and your brain shuts down, you fall into that sort of routine, even if it is the wrong thing to do in that situation.
Nice, this will be depreciated in 6 months
I assume an IPO is the easiest way foe private share holders to cash out. Then again, unless you are really asset heavy (manufacturing, etc..), I agree it might be a sign that less dumb money from the later rounds with dumber money. Or the company is burning cash faster than it is generated.

Case in point, when you cash flow positive and idealy profitable even banks would happily finance your expansions. So unless as a company you want to be growing really fast, I don't see the added benefit of an IPO other than cash flow issues. Add too that the increased scrutiny by the authorities and I d prefer to be private.

Of course the same argument could be made the other way round.
It's a nice exception to the rule. IBM has enough patents to crush anyone that messes with them. So, they're not as worried. Don't forget older PPC and SPARC boxes with Open Firmware, too. I have one at the house from 2003 that can run Youtube vids.

https://en.m.wikipedia.org/wiki/Open_Firmware

Gaisler had a GPL'd SPARC core to go with it, too. Oracle's T1 and T2 were open, too.
I really, really, really hope this is never supported by other browsers.
The Bitter Lesson of AI
1998-1999 was sooo crazy. Most stocks kept climbing, high profits dealing with options (calls/puts), almost every week me and my friends celebrated profits. I remember thinking "it cannot be this easy, but it looks like that it is". Then came the big surprise, hehe. Luckily I have always been defensive so I didn't lose a lot of money, but still... .
Giuliani defends going to Ukraine to press for investigations connected to Biden
It does, unless you want to create an echo chamber (which HN somewhat is)
They also started with selling media, which is the perfect industry to get people comfortable with shopping online as quality is nearly assured.
Org-Mode Hidden Gems: Document Structure
Honestly I'm not sure why safety razors aren't more common. They aren't that difficult to use after some practice, and they shave equally well. But the cost of razor blades is practically zero! It's such a huge win.
It's going to hurt small sites the most, because sources of traffic like Google, Facebook, and other large sites will eventually stop linking to websites, and load them as previews in frames ("portals") instead.

"No other browser vendor has expressed interest in supporting the Portals" -- but Google is releasing it in Chrome anyway.

It changes the fundamental nature of the WWW as linked documents. Embrace, Extend, Extinguish. The only conclusion I can come to about things like AMP and portals is that Google is actively trying to kill the Web.

> "Google engineers hope that their new Portals technology will take over the web and become the standard way in which websites transition between links."
SQL scripts. It is painful.
"(Don't) Think for a minute..."
Do you really think FB's problems are because of public investors? Zuck has never cared about user privacy. On the contrary, he has always display a "privacy is dead" mentality.
The debt is at managable levels now. Reducing it is actually not really all that difficult if the political game gets to a point where this is something they want to do.

Once you run a surplus and your bond yields go down while your economy continues to grow you can takle the debt.

We have seen this from other nations who executed such fiscal turn around.

However that requires some amount of political will.
At a loss without any notion of how to make it profitable in the near future? No, I don't.
You Don’t Need to Read Those Productivity Guides
And this is a much more nuanced breakdown. Double the blue water vs. the orders of magnitude that’s typically presented. Personally I believe that the health benefits of meat is well worth doubling the per kg blue water cost of my food.

On the discussion of green water, that depends on location and animal husbandry technique. It does appear that some places we let pasture raised cattle roam can help with the replenishment of soil layers and also sequester carbon to boot. Managed intensive rotational grazing in particular is very promising.

I think we desperately need to be having a discussion about better animal husbandry and land management (see: Brazil). But whenever I hear that all we need to do is “just” do one thing, my bullshit detector goes wild, and the idea that we can fix global warming by reducing meat consumption falls well into that category for me.
I remember they used to advertise heavily to Steve Gibson's podcast - Security Now! (no, not Laporte's). I have been listening to the podcast for a few years, and I remember they would be advertising in almost every episode.
It requires someone with knowledge of native gui toolkits on the three desktop platforms. That is a pretty high requirement.
I think in this market this is an opportunity of a lifetime to buy at these levels.
I agree with the overall sentiment of putting aside time for 'doing nothing'. However I read the first few chapters of her book and found it to insufferably epitomize the ramblings of an entitled millennial.
I've used Flyway[0] at my current and previous shops. It seems to work well.

[0] https://flywaydb.org/
Look for qt-doc as separate package in your distro. It's size 30Mb, so many distro split it into dedicated package.
Empathy Will Make You a Better Developer – The New Stack
At least in the conservative community where I grew up, the religious "mark-of-the-beast/new world order" narrative was the main anti-national ID narrative. I'd never heard the illegal immigrant angle before.
It has been a sentiment that is posted on here just about monthly, and this is surely not the first time you've seen it. Usually it yields a lot of cynical posts with clever new phrases for whatever is new, as if there are a lot of people feeling really defensive for whatever they're using.

HN is about the interesting parts of tech, pushing at the edges. Yet the vast majority of developers are developing vanilla IT processes in shops where they want it to be the most benign, easily transferable solution possible. The differential between the two isn't surprising or particularly interesting. It's an obvious outcome.

And in ten years the stuff that people talked about on HN become the normal stuff at those IT shops, and HN will be onto something else. And on your "legacy" shops you'll be using frameworks that incorporated the best of those ShinyNewThings. Or do people really think the Java ecosystem today (or the .NET ecosystem, etc) hasn't changed over that time.

And that's okay. It's okay to wait until it matured. What isn't okay is that it's usually coached in derisive, defensive terminology that denigrates whatever is "Trendy". That part isn't cool
If you install Qt through the installer (which would be the main way of getting it on Windows), your installation should have a "Docs" folder containing HTML files.

Many Linux distros package it separately, e.g. on OpenSuSE it's in "libqt5-qtdoc" and its subpackages.
If you’re joining a $60 billion company with thousands of employees expecting rocket-ship growth, that’s kind of on you, I think. You wouldn’t expect that from a public company; why would you from a similarly sized company that just happens to be pre-IPO?
Not just that, evolution is more about reproduction of the fittest, than survival of the fittest. Any health effects that don't manifest until 40 or later aren't likely to have much influence on evolution.
I've read and reread a great article titled "Evolutionary Database Design" on Martin Fowler's web-site [0]. This article describes database migrations as being a process. We've found that for complex changes, we'll often need a pre-migration and a post-migration (temporally being before the code change and after the code change respectively).

We commit the migrations along-side the application code and in our case we use FlywayDB [1]. The only down-side is that this tool doesn't perform roll-back operations automatically. You can always do them by writing another migration that goes forward to the past.

Another popular DB migration tool is Liquibase [2]. I don't have much experience with this tool as it doesn't fit our build pipe-line as well but it does support and encourage defining a roll-back for each migration.

[0] https://www.martinfowler.com/articles/evodb.html

[1] https://flywaydb.org/

[2] http://www.liquibase.org/

EDIT: HN is the new StackOverflow? I think this is a really important question for development teams and yet I could see it being closed due to the "Questions asking for tool or library recommendations are off-topic for Stack Overflow ..." rule. Sad!
A slight hair splitting here with your phrasing.

You've got it backwards. DNA doesn't "evolve to addapt". Variations get copied and passed down except for those within individuals that didn't reproduce. Sometimes an entire lineage doesn't reproduce, that's extinction. So, there's no "eventually".

Our bodies may not be "fully" understood. But there's no points for an argument from ignorance.

Still there may be people that live to 90 without getting dementia in heavily polluted cities. However, that's down to natural variation.
> sources of traffic like Google, Facebook, and other large sites will eventually stop linking to websites, and load them as previews in frames ("portals") instead.

That's already happening to an extent with local AMP caches of outbound links 3rd party links on AMP enabled pages at cloudflare.
Tried Harry's. Couldn't make it through one shave. Ended up back with the Big G.

For whatever reason, it's the only razor that doesn't 1) cut up my face, and 2) leave me with razor burn on my chin and neck.
Telegram desktop client app, dropbox.
India, Iran, and the Middle East are also parts of Asia, and it might feasibly be faster to transmit data through the Atlantic than the pacific to get to those places.
> This seems like Microsoft with IE6 all over again.

IE6 gave us XMLHttpRequest because they wanted it to build Outlook for the web. That seems like it turned out ok.

In general I think building browser-specific features, seeing what works, and only then standardizing is a much better path than starting with W3C.
Assistir~desportivo aves vs. moreirense ao vivo – Qiita
https://qiita.com/windihobe/items/906b4420fbabbf4fa721

https://qiita.com/windihobe/items/71190d6dfbfba061250e

https://qiita.com/windihobe/items/f1f724529e31ce62a634
taking nutrition advice from
our great-grandmas in the
old country, rather than the
mid 20th century scientific
analysis

Thing is, the two, taken together is even more powerful. Old world methodologies for eating are excellent, but knowing why they work, and founding those motivations toward certain tendencies on hard evidence, produces iron-clad strategies for guiding those classes of decision making.

Understanding essential nutrients, and then taking those facts and aligning the anecdotes with them is a powerful reveal for both. Now, we know so much more about the solubility of chemicals in oils and water, and full molecular turnover due to nuclear medicine and radio tracers, the blood brain barrier and glandular interactions and signaling, and so, to look back and find that combining sea salt and volcanic water filtration and trace sources of iodine, plus dealing with fermentation and gut flora, all works together for real reasons, not just because of karma or curses or saints or sinners.

The power of chicken soup and orange juice, and the neurological effect of cheese on cheese eaters all works together for fascinating reasons. It's sort of a more potent trust-but-verify feedback loop.
Honest points, though of course doesn't apply to all.

Of course, some people burn out, or were never focused enough on work to end up knowing much more about work at 45 than they did at 25.

Others at 45 are as sharp and energetic about work as they ever were, and constantly learning, with the added benefit of much more experience than they had at 25.

Some people in early 20s start families, or would prefer to spend all their time traveling and rock climbing.

Some people in 40s live to work, for the craft and/or bigger goals for the world, and, even if they were financially independent already, would be doing much the same work, even without being paid.
I would think there's a lot more free cash floating as the sell offs continue.
Chiming in as someone with identical twins, one of them is far more self-reliant, while the other one has her head in the clouds most of the time.
Or, regarding his other remark, a migration of hundreds of thousands of lines of code from gcc to something else.
It depends how near. I've read that living in the outer parts of the exclusion zone is likely to reduce your lifespan by a week or two. Depending on the city, that actually might be an improvement.
Same here. It was a epiphany for me when I could scrape off a week of growth with 1-2 passes without clogging up and with a better shave. Washing with something astringent like Dr Bronners before the Barbasol helps a bunch too.
Razors[1] must have been horrible if safety razors have the word “safety” in it, but needs practice and care to avoid cuts and nicks. Modern razors make it nigh impossible to hurt yourself, but point taken.

[1]I can picture old western movies, ala High Plains Drifter, with grizzled characters cleaning up before/after some event.
I couldn't possibly want to leave the city, drive down a logging road, tour around, and enjoy my personal freedom, right? Why would anyone want that, when someone might possibly have a small chance of dying because of it?
He's right, actually with some basic knowledge of Express/Pug you could probably work for DARPA
I can speak for me. I remember my father had been using one all his life. I think it is the risk/danger of handling the razors. Anyone with a small child at home would rather have a wilkinson/gilette that are safes (blade-wise). Also cinema has given those blades a bad name.

Now that you mentioned it though, and especially what temp1831 said ($5 for a year's shave), it just got my attention!
Minimum wage after all expenses (including depreciation) are subtracted seems like the absolute lowest wage that could be considered "fair". Or maybe whatever McDonald's/Walmart are paying in your area, since that is sometimes higher than minimum wage in urban markets.
You might not even need it if you are already using uBlock Origin. It can disable JavaScript both per-site and globally.
> They're not doing this as they see fit.

Sure they are. It's already part of Chromium.

https://cs.chromium.org/chromium/src/content/browser/portal/...

It's been there since at least last August.
> no fire

I didn't claim otherwise and yet the point still stands: as far as it is known the was no visible fire. only the final report will establish the absence of fire. can't really fathom how people can't tell the difference.
The ideal setup seems to be a move by journalism to editorial and logistics management, and the writing moving to freelancers.

Those freelancers can be subject matter experts and speak volumes more than a random journalist jumping into a topic. Also, these can be graduate students who are often world experts who would like more publications and extra cash.

I would rather move away from a system where the journalists are supposed to be polyglots.
> So Java is not only the safe choice for serious server-side software; it's also the bleeding edge.

Sure for core Java (OpenJDK), but what the future of JEE licensing and development? Even non-"enterprise" apps typically make use of some JEE stuff like servlets and JDBC. Is it really the "safe" choice when, apparently, the trademark agreements have just fallen apart?

https://headcrashing.wordpress.com/2019/05/03/negotiations-f...
After using Dollar Shave Club for a long time, I may start looking at trying a safety razor. Mostly because the shave quality is going downhill.

What’s kept me away from safety/straight razors are:
Learning/practice. I already nick myself with a regular shaving blade.

Time: while meditative, I am in a rush sometimes and don’t want to spend twenty minutes with lather/shaving (probably an exaggeration of time).

Choices: it seems too much like a hobby, where I can’t tell what a good “starter” is.

Apologies for formatting, this is phone posting.
It's been a few years, but IIRC I had poor reception on the Google Campus with AT&T. Some spots with poor coverage by SJC too. Probably folks are just always on wifi.
rails db:migrate

It’s always one of the first things I miss when I have to work on a non-rails codebase.