skysight-inc/HackerNews huggingface dataset:
I've always loved the PHP.net site for documentation.

Let's say we wanted to know about the `explode` function, right at the top of their page is a search box. Type in the function and a dropdown populates with a brief description of the function, adding confidence that you're on the right result.

You click the function and right there it gives you the function signature in easily readable text that's color coded. Just at a glance I know that explode will return an array, I must pass it a delimiter first, then the string I want to split and then there is an optional argument in square braces.

If that wasn't enough it goes on to explain each parameter down below as well as the return values.

Further down is the change log on what changed between versions.

Next up are what really makes the PHP documentation shine for me: examples.

Succinct and to the point examples with comments that have always been enough to get me started with the basics.

This would have been good enough, but they go a step further to give me related functions in the "See Also" section. Sometimes I'm looking for one function, but then find a function that can do it better, or I realize that hey after I perform this action, I'm probably going to need to use another one of these related functions such as the `implode` function.

User comments at the bottom are also great! They are usually insightful and have been very helpful in the past.

The writing for classes and extensions is also equally as good: well written, quick start guides, installation settings for Windows and Linux.

I've always felt that the website was very user friendly and accessible. When you go to the landing page you're not overwhelmed with information. Just a quick blurb about what PHP is, the news of releases, easy to find download options, and documentation and search are all above the fold and prominently featured.
Sadly, if I were a Muslim (or just brown) I would be afraid to write code on my laptop while flying. I can hear it now...

"He's trying to hack the plane!"
Well, ignoring the concerns about government intervention vs individual responsibility, the reality is daily fantasy companies advertise in such a way that it makes it appear anyone can be a winner, when in fact the vast majority of winnings go to the same set of elite players.

That's just flat out false advertising. At least Vegas is up-front about the fact that the odds are in their favour. And I think it's perfectly reasonable to have the government enforce basic standards about advertising and communication by companies to the public.
> The KDE was the shortest test. I spen an hour just rying to change the wallpaper and gave up. (sic)

http://lmgtfy.com/?q=how+to+change+kde+wallpaper&l=1

* Edit after down votes:
Sarcasm is specially regarded as negative behavior in HN, but negativeness for negativeness, this article shouldn't even be here. It's filled with destructive criticism and unjustified claims. I'd accept the wallpaper argument from any person who hardly sits in front of a computer, not from someone whose primary occupation is to write about technology, not from someone who's been using Linux for 20 years (first thing to do? check man pages, do your research). I understand the down votes, but seriously, this article only makes me angry - maybe that's why John Dvorak is widely regarded as a troll.
Show HN: Pokemon Sniffer – Rarest Pokemon Location
Building 42 games within a year – Insane game development
Submitted this as I just found it and was fascinated that it targets a specific niche -- as a language to make PHP extensions in while being a full-fledged programming language with a type system and memory safety and compiled to C!
Why Is Uber Investing $500M to Reinvent the Whole Wheel?
Using NPM to distribute a Java application?

...interesting.
How to implement a online store?
Which technologies, tools and programming languages would you use?

This seems to be quite common interview question and i would like to know how would HN people answer to this!
> The vast majority of all code you write will not invoke UB, most people tend to stick to an 'easy' subset of syntax, unlike say C++ where everyone uses a different subset of features making it in effect multiple languages.

Even integer addition very easily leads to undefined behaviour.

> It used to be that people used dynamic memory allocation to beat C with, but that is just a resource management issue. TBH, this is not rocket science. If you need dynamic memory allocation, you had damn well better know how to use it properly.

If you're going to solve a quadratic equation you should damn well know how to do it properly, by completing the square. But once you know that you should use the formula, because it makes it a lot easier. If you complete the square every time out of pride, you're just wasting everyone's time.

> A combination of testing the known edge cases, wraparound issues, size issues, static analysis and tooling means running into an example of UB is extremely rare in most cases.

Sure. You can do enough work to eliminate it. Or you can use a language where you don't need to.

> Its an example of laziness and people ignoring the machine.

Laziness is one of the cardinal virtues of a programmer

> Another example is performance; saying that a language comes within a factor of 2 of C's performance and therefore is fast is absolutely ridiculous. a factor of 2 is huge.

A factor of 2 is irrelevant most of the time. If you're growing exponentially, a factor of 2 will let you put off the point where you have to start scaling out by maybe a few months. If you're not growing exponentially, you probably won't hit performance limits at all.

> Basically, we're much more aware of the machine than higher-level softies, so what would normally be UB is actually DB in most cases, its defined by the compiler and hardware that we're intimately familiar with.

Until the compiler adds new optimizations. Sure, if you're never going to upgrade the compiler maybe you can get away with C.

> ...and that isn't to say that you can't write high level abstracted code in C, the simplicity of the language lends itself to (properly) efficient implementation, not efficient in the sense of Java or Ruby ;o)

Without native tagged unions you won't get far up the abstraction ladder. You can write your own with macros sure, but they won't interoperate with anyone else's or any libraries you'd want to use.
[video] Elizabeth Holmes addresses the AACC and introduces new technology
There were no federal income taxes in the US ~100 years ago. Prior to WWI, they rarely exceeded 10%.

http://taxfoundation.org/sites/taxfoundation.org/files/docs/...

I'm not necessarily arguing against raising taxes, I'm pointing out that it would be a huge change in the program.
Most of the sacrifices I make for my kids feel like the exact opposite of self-gain. "Do something I want to do" vs "do something the kid would benefit from" is a choice presented to every parent every day.

I don't think that the possibility that the latter might have some indirect self-benefit keeps it from being an act of altruism, for any reasonable definition of altruism. I mean, "some kind of evolutionary advantage" is a plausible explanation for pretty much any behavior by any animal on Earth.
The nice thing was that there was no "main program" or parser, it just extended the Logo interpreter top level to be an adventure game!
The state of QA, if there is such a concept

There is, it just rarely applies to software. What all but a tiny fraction of a percentage of shops do is Quality Control. Were it actually quality assurance, when I file a bug on the 35 empty catch statements littering our code, there would be absolutely no debate on fixing it. But because we do quality control, dev has the option to say "no" when told to fix Pokémon-style try/catch statements.

But on to your point, yeah, software testing is not in a good place and probably won't be for a while. For starters, software development is still quite young, and formal testing is even younger than that. So give it time. But as long as job descriptions for software testers start with "we're looking for people to break software!", we're not there yet. Because if it were up to me, we'd collectively be looking for people to tell us whether or not our shit works, not find esoteric bugs. Software verification can include finding esoteric bugs, but not limited to that. The difference is subtle, but very important.

An anecdote to back my point: for junior testers I will often describe a blender, coffee grinder, what have you, and then ask them to describe a list of tests with bonus points for a rough outline of a test plan. 90% of the time a candidate will come up with creative ways to break the blender (put rocks in it, flip the switch 1000x), and yet fail to come up with a test case that tests what happens when I put ordinary food in the blender and flip the switch. Because we have, as an industry, fostered this idea of the tester's role as breaking things. That is an extremely naive, immature, and limited view of the software tester's role. When we can expand beyond that view, then we might begin to stand a chance of actually verifying software instead of throwing rocks in a blender.
Αληθινές ιστορίες από escorts girls – escorts| athens escorts |call girls
Nucleus Anywhere Intercom with Alexa Voice
And has terrible contrast on the main page content's text making it hard to read if you have poor eyesight, poor light conditions or a poor monitor.

This would probably fail a basic Universal Accessibility test based on that alone.
There are also ads that make it appear that if I drink a certain brand of beer then hot women will instantly flock to me. Should that be illegal too?
I just bought a new laptop (GE62 6QD MSI Apache Pro), and I spent the last few days trying to get Ubuntu 16 to run on it. I'm in pretty good shape now, but there are still issues with the microphone and camera (I wrote about the process here http://blog.robertelder.org/installing-ubuntu-16-linux-ge62-...). I've only installed Ubuntu/Linux on a few different laptops, but the process does seem to be getting worse the few times I've done it. The worst part tends to be getting the video cards and wifi to work.

It really makes me wonder what the future will be like. Will we reach a breaking point where someone (or some group) takes on the responsibility of making this stuff work? I can't see people abandoning Linux for Windows, because Windows seems to be decreasing in quality as well. Are we doomed to just have computers that don't work properly?
Harassing people getting their Nth drink at a bar about who is driving them home would though. Too bad that doesn't grip political support like buzzwords and slogans about the threat of terrorism.
The term "load inbalance" is most commonly used in three phase systems where ideally the currents on all three phase/outer/hot conductors should add to zero, having no current on the neutral conductor. Having significantly different loading on the three phases will create changes in voltages on the individual conductors and generally not make efficient use of transmission capacity.

Interestingly, having a lot of switching power supplies with poor power factor correction on a three phase network (e.g. in an office building) will also create currents on the neutral, but with three times the network frequency (and harmonics), as during one cycle, the current for the peaks caused by...

+L1 -L3 +L2 -L1 +L3 -L2

...will be returned.
Finding Bitfinex's Bits
Too many people are talking
And that's the last iPhone they try to steal.
In case you aren't trolling, the reason you are getting downvoted is probably because you are comparing apples to oranges. ZSNES is not an accurate emulator. byuu's goal is to emulate the systems perfectly. Here is an article he wrote about it:

http://arstechnica.com/gaming/2011/08/accuracy-takes-power-o...

So yes, ZSNES feels a lot more responsive than higan. But that's because it cuts a lot of corners with regards to accuracy of emulation. It is probably the least accurate emulator for this reason. It prioritizes speed. In light of that, your comment doesn't really add anything to the discussion.
I've spent a decent chunk of time trading volatile assets, and this is really bad advice.

Sure, you can make money. Odds are, you won't, and if the information you have comes from NPR you almost certainly won't.
> The average sales price of a home in my county is $2,000,000

Why not buy a single apartment? Or buy and afterwards inhabit a house together with a small group of friends so that the amount of money is shared between the group?
The Political Process Isn’t Rigged – It Has Much Bigger Problems
The file dialogs and random bugs really deter the experience on WINE. I'd say the best way to go is to get Windows Enterprise/Server edition installed in a qemu virtio box, set up Remote Apps and use rdp. The server you can run headless I believe, the Enterprise will still being running a gui instance though.

http://www.abstractstudio.co/ looked real promising but the project died and they never shared source (atleast the last I checked)
If that's the case, their estimated profit is completely bogus. I've been running BOINC pretty much 24/7 on my 2-GPU, 4-core gaming rig for the past 2 months and made about $2.50 so far.

Here's my !stats from the #gridcoin IRC channel:

fediverse> your next staked block will get you: 17 GRC (research owed)
<fediverse> per day, average: 5.7 GRC
<fediverse> (BTC (per day): 0.00005062 / $ (per day): $0.03 / $ (per 30 days): $0.88 / RAC (estimated): 136287.5 / magnitude (estimated): 28.60)

There's NO way that you're going to make $40/month with a 980 crunching BOINC projects, at least not with gridcoin. Gridcoin is $0.50 - $0.75, depending on where you look, and even the best rigs won't make more than 100 a day at best.
How did the thief obtain the owner's email address and phone number?
Canonical Plans to Unify and Clean Up Networking Configuration in Ubuntu Linux
Apache OpenOffice and CVE-2016-1513
I think it is easy to come up with examples of people doing purely altruistic things. One simple example would be an atheist that sacrifices himself for his country. He knows there is no reward at the end of the tunnel and may not even particularly want to do it but maybe feels it is his duty for the "greater good". Purely altruistic behavior can be justified by anyone who is fully committed to, say, utilitarianism and I'm sure there are other moral philosophies that can justify it without any consideration for personal reward.

I think you have to distinguish the case between someone doing a kind deed and feeling good versus someone doing a kind deed because they expect to feel good. Feeling good because you did something good is involuntary and for most people unavoidable. It can be a side-effect of the deed, rather than the cause.
> that's not "fashion"

It most certainly is.

You acknowledge in your parent comment that you are not the target audience for this site. I assure you that the sort of crowd that's into Linux kernel development by and large prefers web design that other audiences would find archaic.

Conversely, were LWN to have switched to Bootstrap five years ago, or some Medium-like look today, or whatever the next transient fad will be five years from now... their audience would by and large viscerally hate it.

Designer types indulge too much in the fantasy of OBJECTIVE standards for "organized", "hard to access", etc. It's all subjective. Hence, fashion. For people who enjoy working on green-screen terminal applications, switching to a web app version is like giving their workflow a lobotomy. For people who prefer mobile-first minimalist web apps, the reverse is true.

LWN, and it's related subculture, happens to not be your scene. That's okay. But it's perfectly fine to just, well, not comment. Because it is so painfully lame how whenever a deep technical topic comes up on HN, half of the comment section deals with website aesthetics. Hey guys, if some topics just aren't for you, then it's... just... not... for... you... and... that's... okay.
Please see my relatedresponse above to laksjd. We're about to publish our technical blog and will expand on the technical details.
I'd say if it comes up in an interview you should answer it how you'd answer it. That'll save a lot of time.
The main difference there is: You can control the timing of when to pay that penalty. With a full blown GC, if you run into performance issues because of it, you basically have to rearchtect the whole app (with something like memory pools, which you pay by needing more RAM than strictly necessary and with a vastly more complex code). With ARC I can track down a slow memory operation to a single line of code and deal with it there (e.g. by moving the complex object into a singleton). IMO a full GC is just the wrong level of abstraction for anything that's timing relevant, which includes all UI threads.
Dual EC has nothing to do with the NIST curves.
> The first time you access a local template, it will take a while to load as the server fetches the site content. However, once the content has been cached, subsequent requests will complete more quickly until you terminate the server. If you need to invalidate the cache (because you’ve updated your website in the online editor, for example) you can use the ?nocache=true query parameter on any URL.

Why would a developer want to see a cached version of a page? A developer using this is actively developing the look and feel of the site so presumably would want to see the live version. This makes no sense and would only cause issues ("But it looked fine when I tested it locally a minute ago?!").

> The Development Server is built with Java using the Dropwizard framework. It takes advantage of our open-sourced JSON-T compiler and Less compiler. It’s packaged and distributed over NPM using a set of install scripts that detect the target platform and ensure Java is configured correctly. It’s built to be cross-platform, so Windows, Linux, and Mac developers can all take advantage of the efficiencies the Dev Server provides.

If this is really targeted for developers why not just make it a portable executable for each platform (rather than requiring a node install to just fetch the server)?

Alternatively, npm should install pip, use that to install cpan, use that to install gem, use that to install docker, and finally load the server from a container (which does the same series of npm/pip/cpan/gem installers run on Ubuntu 16.04 and then downloads a binary tarball of the app).
Use stackdriver to monitor your docker container cluster
>As far as I can guess (and if the phone doesn’t reveal the iCloud email when you turn it on), they used the “Medical ID” feature on the phone to see who it belongs to and thanks to my strange name found me on wunderkraut.com along with my email address and phone number (for sending the messages to) — in fact, I did check the site analytics and found that my profile had one hit from Google the next day the phone was stolen.

From the article
> Harassing

Honest question: how is stopping someone for 15 minute of polite questioning is "harassing"?
#holyfuck #sciencebitches
Looking a gift horse in the mouth, eh?
I had been using an open source variant of this the last few months, which ironically has a similar approach - https://github.com/NodeSquarespace/node-squarespace-server

This is amazing news though! Hoping the next step is to expose a content manipulation api :)
I noticed that the user-agent string still reveals my device type and build number. Searching the device type reveals that the device was only sold in the country I am in, defeating a lot of what this browser is supposed to be about.

Where is the privacy aspect when you're leaking my country, device type, and even what build of Android my phone is using to literally every website I visit?
I believe we're in agreement then.
We don't want to move to it because it's "more trusted". We want it because it's a better curve. Most critically: for the most common applications, Curve25519 avoids the need for point validation, eliminating a class of vulnerabilities. It's also much easier to implement in constant time.
Yeah but it was 2D which is quite different.
The first year or two of math (and physics, and to some degree, CS) are roughly standardized. There are variations, not only across colleges, but within the same college (honors vs. non-honors, calculus for business, calculus for pre-meds who won't take any more math), and among professors teaching different sections of the same class even. But to a first order of magnitude...roughly the same stuff.

Many American students have often taken a year or so of calculus (sometimes more) before starting. But these are so-called "Advanced Placement" (or AP) classes which are considered "college-level" (even though at top colleges, this is basically a requirement to get in). At less competitive/less technically focused colleges/programs however, most students may not have taken it.

You can think of AP as an equivalent of A-levels in the UK. I'm not sure if calculus concepts are A-level or not? But either way, from what I know of UK education, you can get by not taking mathematics A-level...it's the same for AP mathematics here.
Tbh there needs to be a better and respectful transition for old people. Someone who is 60+ and demands to be employed in a job that a younger person can do than I am sorry to say this but the younger person deserves a chance at that opportunity. You had 40 something years to save and build for your better future. It would be unfair to argue that "no the younger 20 something person has many more years to come to save and pave for his/her future". What most people seem to ignore is that 25-35 years in ones life are the prime and career pivoting years for people, make or break kind of years.

The similar problem is with the old people stubbornly not leaving government and policy making jobs. Someone who is 70+ does not have the right to make a policy for a generation who is in 20s and such policy can be (potentially ie.g. climate change policies) badly implemented for years to come. Why 70 something are even allowed to run for an office, heck currently both presidential candidates are touching their 70s. Please go retire to Florida or spend time with your grand kids or travel the world.

Also, there is a large number of well off old population living in dense urban cities. Take Manhattan borough in NYC for example. The city is very unique and always bursting with opportunities. Say a twenty something moves to NYC after college to work for an ad agency or a famous designer or a start-up but limited funds force her to live in eastern Brooklyn just to make ends meet. She spends and waste 2+ hours everyday on useless commutes. If the rent would have been cheaper and more affordable in the Manhattan borough then more young people can live nearby to the opportunities and make better use of their time. At the end of the day it is the game of money. Whoever has more money is always in the lead, where the young ones don't get fair opportunities in order to get ahead in this game. Unless daddy and mommy loans you their city condo (which many do).

Also, well off old people do not (frequently) invest in order to create opportunities for younger generation. We don't hate you, we just want you to adhere to natural, sociological and economical cycles.
I don't know why you're marketing this outside of your background. If the average internet user cared very much about state/company privacy we'd have riots in the streets. But alas, we don't. The average HN reader is going to care a lot more about privacy, but they're going to want you to give tech specifics, they won't blindly adopt this based on marketing whizzbang.

Since you're from the adult background, why not market this browser to people wanting to view porn at work and not get caught? I'm sure it'd get a lot more adoption since legitimate use case, realistic goals.
This is not an especially useful analysis. In particular, few specialists in 2016 would make decisions based on which standards bodies support a given curve.