skysight-inc/HackerNews huggingface dataset:
> When I attempted to link without that, the linker complained that it couldn't find main. Interesting that it worked for you without that.

My guess would be because I also had main.o on the command line? It looks like yours didn't have that.

> LLVM's lld has some support for linker scripts, plenty enough to do things like this

Hmmm, well just throwing out alternative ideas ... I could try something like this:

__attribute__((aligned(4096)))
static const unsigned char co_swap_function[4096] = { ... };
VirtualProtect((void*)co_swap_function, sizeof co_swap_function, PAGE_EXECUTE_READ, &old_privileges);
//or
mprotect((void*)base, size, PROT_READ | PROT_EXEC);

The theory being that the const will put it into either .rdata or .rodata (since nobody can decide on one or the other it seems); and then by forcing the alignment to a page boundary and also filling a page boundary, we make sure the VirtualProtect or mprotect call won't affect anything other than our co_swap function. But even if it does, it'll most likely be more read-only data, and it's not the end of the world if that gets marked executable.

The downside is of course that the page size isn't really known at compile-time. On ?nix, it's a run-time call to sysconf(_SC_PAGESIZE); but on Windows I'm not sure how to get that value. However, I'm pretty sure it's going to be 4K on any x86/amd64 systems.

So, these seem to be all of our possible options:

1. we use inline assembly; and now you require a specific assembler (MSVC and GCC inline ASM syntax are totally different) or additional tools like nasm/yasm. I really don't understand why at least three people have favored this solution now; but since they haven't elaborated any reasons, I'll just have to politely agree to disagree here :/

2. we use __attribute__((section)), and get unsuppressible warning messages, and the command also won't work with MSVC.

3. we use __attribute__((section)) with our own name, and use a linker script to suppress the warning message, losing compatibility with MSVC.

4. we use __attribute__((aligned(4096))), risk the page size being wrong, and the attribute won't work with MSVC.

5. we use #include <stdalign.h> [when _MSC_VER isn't defined] + alignas(4096), risk the page size being wrong, and require C11 instead of C89 to compile. [_Alignas probably isn't going to be in MSVC due to their hatred of C99 and above.]

For the latter two, we can have #ifndef/#define LIBCO_PAGE_SIZE 4096, for convenient command-line overrides.

Probably the most pragmatic route will be to support multiple options and let the user override if one of them doesn't work out on their platform for some reason.

EDIT: here we go:

SYSTEM_INFO si;
GetSystemInfo(&si);
int page_size = si.dwPageSize;

Then for good measure, we throw in:

assert(LIBCO_PAGE_SIZE == si.dwPageSize); //or for ?nix, == sysconf(_SC_PAGESIZE)
TL;DR The health of the economy is more important than your moral high ground.

Same reason we let people walk away from homes (or not walk away, simply not be able to afford them), but we'll still give them a mortgage 3 years after their foreclosure; the economy needs the monetary velocity to survive.
The security vulnerability is very real. Should this same treatment be applied to the people who write code? If a software vulnerability allows an attacker into the business should that developer be fired? What if it's a UI bug that causes the company to lose sales. Should they be on the hook?

I think a more constructive reaction would be to say that phishing training is important and should be implemented or revised. In addition technical solutions should be investigated. Perhaps some of the infallible people who never fall for phishing attacks can automate part of their brilliance for the mere mortals.
Does PHP have similar issues? I think it shouldn't.
All the same, is your adversary really going to use this to attack your machine? They'd have to predict a number of things quite in advance, as well as sneak an attack into the blob.
The age of Apple is over – it's become the new Microsoft
Ask HN: Will i need separate earphones for my iPhone 7 and my Macbook?
Well I'd argue you do see it on reddit. But its on sub reddits that often have more discussion than say /r/pics. /r/Science and /r/AdvancedFitness are the two subreddits i'm thinking of here.

As to why you see it here, it probably has to do with the topics that this site likes. Business, for better or worse, gets a fair bit of air time here. That's one area that has typically charged for access to its news/research.

Secondly, I'd argue that there is an element of "you get what you pay for". I pay alot more than the average person for access to news, and I strongly believe that this is true.

Thirdly, many of us make our living by having others directly pay for what we produce. This can make you a bit more sympathetic to the idea of paying for the work of others.
Campus Services: Moving Campus Portals to the Cloud
I would guess that over 90% of the YC crowd know what MOOC stands for.
yeah, i know. when a new TV series is coming out, i want to read about it in the newspaper.

you're all idiots.
One has already made it this year: https://www.bloomberg.com/features/2016-crystal-serenity-nor...
Just a little heads-up, your account appears to have been shadowbanned.
I suspect the real issue is the "It could be good for Ontario" problem. There is no global climate change catastrophe, rather there are a lot of local changes some of which are completely catastrophic, as in good bye Bangladesh, and some of which are improvements - shorter northern hemisphere winters, longer growing seasons etc.

Flip the switch, because if the fresh water influx in the North Atlantic shuts down the global conveyer currents, it won´t be warming we´re looking at, and it´s great news for India, and Bangladesh, and a catastrophe in the Northern Hemisphere, Europe in particular.

A great empire is always about to fall...
I meant it seems like black magic to get it set up properly. Especially on windows.

> Any FTP server and a script to push artifacts at the end of a build

The binaries in this case aren't produced by the build, they are test input data, test output data, graphics files etc., and without them a developers' build or tests will likely fail.

So any time a developer updates his working copy (git pull, svn update, whatever) the the binaries need to be in sync, preferably automatically, since otherwise the source code itself is useless. It seems to me that LFS was designed to allow the user to not download all the binaries, but instead leave the small pointer files. That might be handy, but in my scenario I need ALL the binaries in place and up to date all the time. Basically I need to alias any syncing to also do the git lfs fetch.

Any time the user commits changes (svn commit, git push etc) the binaries must also be pushed.

I'd be very happy to adopt git but for acceptance within the organization it needs that seamless integration of binary versioning without extra steps, and also file locking.
Tips and Trick to Speed Up Your Wordpress Website
> Also, charge-offs are typically treated as a form of taxable income

That's not much consolation. I wouldn't be happy if the government decided to simply pay people for making poor financial decisions, even if we recovered x% of those payments through taxes.

I'd still be paying for it with my massively higher taxes.

Just get the government out of the student loan industry. Let the market signal which degrees are valuable and allow students to discharge through bankruptcy (but ruin their credit).
>>When the Fed could just poof more money into existence?

I hope you realize it doesn't quite work like that.
They are not the organization that conducted the investigation.
The Defense Department Wants to Spin Off the NSA
Are higher-kinded types scheduled for inclusion? If so when?
Have you open-sourced any of these components?

`module-fs` is mentioned in the article, is the source for this available?
Why do you stay clear?
> What other cultures consider just fine, many Americans would consider unacceptably collectivist.

It's odd to focus on that one conflict of 'cultures', of the almost infinite possibilities. As one tiny example, some things other cultures do would also seem unacceptably individualistic and lawless.
The phrase "Youtube Community" does not bring positive images to mind when I hear it.
It's my understanding the only reason they cross-license today is both have big enough patent warchests as to place them in MAD. So it's probably quite unlikely Joe Startup could ever get a license.
This is kind of bullshit.

The problem is assuming that borrowers are fiscally competent. We know this to be false, even among home buyers. 18 year olds, who have every adult that they trust telling them they must go to college and take these loans, don't stand a chance.

The loan industry not only knows this, but they optimize the system to capitalize on it. I don't think the student was represented when laws were passed to prevent discharges in bankruptcy.

A professional loan officer just has to fool some kid one time, and closing that 15 minute deal often destroys that kid's entire adult life.

We provide Donald Fucking Trump more protections from financial disasters than well-meaning students who have never had a loan or investment in their life.

Coincidentally, he is one of the many who are exploiting this system, with Trump University existing for little other purpose than siphoning this taxpayer-guaranteed free money.

Then when the cards inevitably collapse, half of the population eats up the propaganda about "personal responsibility".

Personal Responsibility would be not taking idiotic risks and getting the government to pay for it.

I can assure you that approximately zero students took out loans thinking they wouldn't be able to repay them. But we know the lenders knew better, because they won't give out these loans without a cosigner and/or a government guarantee.
Here's a description of Russian state sponsored trolling. It's worth a read, even though it's long.

http://www.stratcomcoe.org/internet-trolling-hybrid-warfare-...

Especially page 60 onwards is useful.
Usually I trust Kaspersky to ID the correct Advanced Persistent Threat when it's Western and FireEye when it's non-Western, in this case APT28 a.k.a Fancy Bear.

APT28 is pretty obviously Russia, due to character encodings in the files, timestamps, etc. etc. etc. If I'm not mistaken, the attacks almost always also leak the location of a particular Russian government building. The technical evidence for their previous attacks is so extensive it seems they want to be caught.

They're who the Russian government sends when they want to make it obvious it was them to other governments, but don't want to start an open conflict.
You may be right that it's a poor financial decision, but I still hope to one day live in a country where people can pursue education in any subject matter (not just STEM/other money makers) for the pure purpose of educational fulfillment. That can only be done with a system that helps pay for education instead of letting the market decide which degrees are most valuable in terms of pure capitalistic measures
hook.io supports something similar to TonicDev ( albeit with no reverse or rewind ), but with a lot more features and 13+ programming languages. It's also open-source.

Here is a simple multi-language scratch pad that can be saved to a URL endpoint: https://hook.io/editor
What does the morality of my bank account have to do with yours? Why does a bank account have morality?
You're equivocating. A random person knows his culture in a general way and is competent to make comparisons. The op was essentially saying his overall observation of espresso in the US does not overlap with his experience in Italy.

Having lived in Europe myself, I also know this to be true. Further, that it happens in many food categories gives credence to the espresso observation: cheese, wine, bread, etc. It goes both ways: hamburgers, Mexican food, Japanese food, etc, in Europe are not the same as you find in the US, Mexico, and Japan. It's not so much a critique as an observation about how hard it is to replicate cultural foods.

But I do have to add that people in the US have this attitude that they can borrow and replicate a cultural food, and then they hype it and get smug about--without realizing they haven't captured the essence of the original. How hard can it be to operate an espresso machine after all? Well, very hard if you include selecting and blending beans from around the world, roasting them right, grinding them just so, and dosing and tamping it right.
https://news.ycombinator.com/item?id=11961034

https://news.ycombinator.com/item?id=11973232
Maintaining the attitude that you are not susceptible to being phished is a great way to get phished.
I suppose it uses Isotope (http://isotope.metafizzy.co/), since it's the same author.
Bring it on! The more in this party the merrier.

If other countries want to create competing systems in similar markets, fantastic, it can only create more innovation and ideas.
I removed that part because it wasn't relevant, but it does work exactly that way. The Federal Reserve simply credits the bank's reserve account from thin air.

Fiat currency is a shared delusion of value with invisible hands exerting forces to enforce certain behaviors (the Federal Reserve attempts to stoke inflation in order for the economy to reach full employment, arguably unsuccessfully, while technology and cheap Chinese labor is having enormous deflationary effects, with the result being real estate and equities turning yet again into asset bubbles); never be fooled that we're somehow "losing" value by forgiving debts at the national government level.
To clarify: the ads migrated from being served to my work PC (where I never log into a personal Google account), to my phone (on the same network), to my home PCs (including other people who aren't using my personal Google account).
For privacy reasons, I don't want to share my bookmarks with the owners of any website or corporation.

I've been meaning to import all of my bookmarks in to an emacs org-mode file, and just use its more sophisticated tag management, and possibly build on that to write other features that I may need.
Were Facebook or Google able to pay themselves and their employees a living wage before they got venture capital?
Concur buys Hipmunk to add search to its travel and expense management platform
> However, there is a line to draw on how much debt to put on someone.

Yes, people should decide how much debt they want to take on.

There are vast differences in the value of different degrees (cost and earnings). It's people's responsibility to educate themselves. The rest of us shouldn't have to subsidize someone's terrible decision to go into debt for a degree in basket-weaving.
> "within 25-30 feet" at least has it being the truth in its favor

From what I've read, there is no basis for it.
So, what are the most common methods for this?
You can use a CDN like CoralCDN.
Yes, those who start a successful company make great money. Most don't.
thanks @alex_hirner. I have applied for EB-1 EA. Doing whatever I can to get it and will find out the result next year.

However I have significant resources at my disposal right now, which many other entrepreneurs wouldn't have - supporting the point raised by Vivek Wadhwa. If I had a Green Card, I wouldn't have sold to Dropbox and would be doing running a startup right now :)

Didn't quite understand your last line. Did it mean that 50% of YC batch applicants for EB-1 got it?

Thanks once again!
That feels dangerous. For example, on Swedish keyboards the character ; is one key away from :
I don't think we should rule out the US, as they conduct defense drills all of the time.

In this case, they don't overtly control the assets under attack, but would still want to know how resilient our networks are "in the real world" -- not always as a "friendly" drill, a la Red Cell.

https://en.wikipedia.org/wiki/Red_Cell
This is why I worry about the centralization of all communications as we've done over the entirety of human history. Letting the Internet be centralized as it has been might be make economic sense but as for sustaining the world economy through a potentially global conflict it doesn't make any sense to put all our eggs in one basket here. It's like I mentioned on the "napalm girl" post that we've become too complacent with having ease of use trump reliability of communication. This is just one of the larger consequences of our individual and collective choices coming to bite us in the butt. I hope this spurs people to get smarter and put together p2p solutions that can weather such a conflict at least for regional and/or city-wide communications.
Those cheap plastic coffee machines actually are pretty poor, and tend to break fast -- planned obsolescence at its finest. I recommend going a step up and buying something like a Rancilio Silva [1]. All metal, has replaceable, serviceable parts, has a good community of tweakers who document mods for things like temperature control, lasts practically for ever.

[1] https://www.amazon.com/Rancilio-Espresso-Machine-Stainless-1...
How I became a minor celebrity in China
Can you provide this data to enlighten the rest of us?
Jeff Bezos’ New Rocket Could Send the First People to Mars
This is kind of old news, I found references in late 1990's to tides influencing earthquakes around volcanos while doing a high school science project. The problem is the effect size is tiny. I thought it was a cool project, but someone else at that science fair did the same thing. I suspect a lot of people have looked into it over the years.

PS: USGS has a great database if earthquake data going back decades, it was downloadable as a ~100 meg txt file. Just remember there is a lot of different kinds of faults, and volcanos cause a lot of earthquakes. Modern version looks rate limited to 20,000 events though.
I was just explaining how possible it is. I am skeptical that anything like it will ever actually be built on Earth.

Other non-rocket launch technologies do seem more promising. If you could build a mass driver launcher between Galapagos and Ecuador, you could likely build a launch loop in the same spot for less capital, less operating cost, and higher capacity.
Blaming China or Russia is lazy writing. It could be just about anyone, including a rogue internal agency doing a spoof-attack to precisely cause the blame to go towards the obvious "state actors".

Cyber-warfare is the 'new' war and just like any war, misinformation plays an important role.
A few years ago I tried really, really hard to get an interview at GitHub, because I had the same vision and wanted to see them expand into new products like CI, and all the stuff that Gitlab is doing now.

Why has GitHub been so stagnant, even though they have so many employees?
Extremely large scale instrumentation of endpoints and networks that unpack and fingerprint every transmitted executable across a decent sized fraction of the whole planet.

Attack tools are deployed cliquishly, and different groups have different tradecraft; they leave fingerprints.
What you mean to say: JavaScript is not class-oriented.

Sure, there are features that JavaScript lacks compared to other object-oriented languages, but saying that it's not object-oriented is like saying that it's statically typed. It's just wrong, the language is full of objects.
Within niche areas of interest, there actually are communities between content creators. I've seen some neat collaborations. But I'd say there is no community at all in the comments.
I'm aware of the theorem, but I was being willfully ignorant to achieve a primary goal of making a joke. The secondary goal was to point out that the engineers the Chinese are hiring are probably better at programming than Shakespeare was. Regardless, the tone of my comment was in line with that of the comment I was responding to -- surely anybody hiring engineers would not judge the venture a success if they found the engineers had reproduced a number of plays from a particular Victorian playwright.
... And manage without the Barnett Formula money, and low oil prices, and somehow manage your pension obligations, and the Shetlands which actually own the oilfields want to stay British anyway, and...

Still, I love Freedom, so whatever you democratically decide :-)
Anthropic Density
I am fascinated by this - is there no where that is leading the charge to develop personal computing devices that are truly open? What cost level are we really talking here?
Ask HN: Anyone attending YC Startup School 2016? Let's know each other
Hey! My name is Grigor. I'm full stack developer. Haven't funded any startup yet but looking forward to. Worked on many side projects. The current one is: stackweek.com (news service for developers). I'm interested in creating better developer experiences by using the latest technologies.
I agree with the conclusion, but:

> other people's bad financial decisions?

This is different than someone taking a bad loan on their own. This is the case of your parents and grandparents, your government, the schools, the newspapers, etc. all effectively telling you that it's a good idea to invest in education. So good that in a country that loves its liberties and independence so much people will fight against public health care, the government will do the work to guarantee that you can get your education loan.

Surely they can't be all wrong... I cannot honestly blame people for believing the lie in this case.
This particular APT is also not exactly subtle. Their attacks appear to be political maneuverings that the Russians want the American security establishment, which includes many reputable attribution analysts, to recognize as Russian activities.
Deconvolution is pretty hard since it's basically inverting a very poorly-conditioned matrix - that's also assuming you know the kernel. The solution is generally to use some kind of prior on the recovered image. While a normal compressive sensing technique would use, say, some sort of wavelet sparsity as a prior, this paper's approach is effectively imposing a far stricter prior - that the face is one of 530 individuals. If you can model face transformations arbitrarily well (pretrained deep model) then that prior is going to make the face recovery much easier. Of course they're only saying which face, not recovering the actual image, but close enough.

That's one of the things I'm most interested in about deep learning - priors can be far better than simple linear transformations + norms. This means potentially recovering useful information from far noisier/smaller data sources than current compressive sensing techniques are capable of.
That sounds like the descriptions of the IPO purchasers (being the cash out providers for insiders) just before the last dotcom crash. They didn't know what it was but they wanted to be invested in tech.. anything they couldn't understand was going to have an absurd ROI, putting them in the rich crowd.

Like the nature of the dot com crash, if it ends like a pyramid scheme, that reflects worse on the state of finance and analysis of our industry than on the last "suckers" in another tulip season.
What we really want is a system that classifies your query as being one of "forum/blog/shopping" and then makes a scan only over that class of pages.

So on launch-day you would have checkboxes. On the one-year anniversary you´d have those checkboxes removed.

Google probably implemented this a couple of decades ago, though, so what we _really_ need is someone to come up with a new business model more attractive than Google's.

Ad-free is quite refreshing.
being connected does help people get in:

-Connected people can more easily get an interview slot

-Connected people can get feedback on their application before submission

-Connected people can more easily coaching and advice before their interview from alumni and partners