skysight-inc/HackerNews huggingface dataset:
If you don't know, then I can't tell you :P

Seriously, the biggest problem with php is that fundamentally it's a templating language. One thing I've seen with templating libraries in general, is that they are meant to take a template and a data structure and display output based on these 2, but what ends up happening is they end up converging on turing completeness. It starts with the need for some kind of looping structure in the template. And then someone needs some random logic that is easier to do in the template than before the model, and so another feature gets added to the templating engine. And so it goes, things get kind of bolted on, without a grand vision, and you end up with an API that is inconsistent, where the order of inputs is never the same (is the first parameter haystack or needle??).

Also, the basic shape of the code that tends to get written in PHP is heavily influenced by it's being a templating language. PHP applications tend to end up having a lot of code in the template, that should be done before rendering the model. Rather than a sane 2 pass system, where all the data is gathered and the logic handled to produce a simple data structure that is passed to a very simple template, you end up with crazy monstrosities where there's opening and closing <?php> tags everywhere. And you render part of the page, then grab some more data, then render some more page, then maybe do a curl to a 3rd party vendor, then render some more of the page, and it's actually very hard to keep switching mental state to match the context of the code you're looking at.

Anyhoooo, you're getting downvoted because there's lots of literature on why PHP is a terrible language. I'm only replying because it's sort of cathartic, since I maintain a wordpress codebase, and any time I have to interact with core, instead of being able to sanely intercept the underlying data, modify it then pass it along in one place, I have to constantly add lots of random hooks in lots of random places to catch the data just before it's being rendered. It's a total mess, and far more complicated than it needs to be (though there is some debate whether this style made it more approachable from a novice plugin development perspective).
Ask HN: How to organize a website has both online and offline locations. (SEO)
I'm a founder that has a business that takes online bookings for a physical location. I have multiple locations and customers will want to book for their city (think fitness classes or escape rooms). I have asked lots of SEO people and no one has been able to give me good direction yet. So I'm asking the hive mind of HN for help. How do I figure this out?
> Their investor called them "The Youtube of Audio"

And now, of course, (and for quite a while) YouTube is the YouTube of audio.

It should have been apparent that it was foolish to try and beat google on that turf. Google beat them easily with a simpler interface and raw performance. The biggest difference, though: The audio quality on YouTube is actually better. Nail after nail in the coffin.
The funny part (to me) is that it was already obvious you use Linux or mac -- some flavor of (star)nix -- because you said you keep a Windows install at the ready. That implies to me that Windows isn't your primary OS. I keep a Windows install at the ready too, for a whole bunch of reasons that have nothing to do with how much I like or dislike Windows.

I would love to be able to remember regex specifics from lib to lib and app to app, but try as I might, I can't. I never know if I have lookaheads or backrefs or named captures available and what the syntax is, I can't remember if there are named character classes. I end up reading the docs, again, almost every time I dig into a regex problem. Same reason for me- I use too many flavors of regex libs. If I could stick to one language, I'd have some hope.

I haven't tried RegexBuddy, but now I'm going to because of your comment, thanks for sharing!
GS12 w/ DC metro COLA and no engineering band bonus gets just across the line into 6 figures (103K).

Most senior technical folks (not just out of school/military, and not supervisor/team lead level) are going to be GS12-13.

Still, (almost) no one is making 200K as a federal employee.
Evolving a Digitally Enabled Nigerian Public Service
Why does Hacker News url preview suggest .com when site is .ie ? Is the author Irish?
Read this:

https://news.ycombinator.com/item?id=14712546
Whether is is "normal" or "happens normally" is not important from an insurance standpoint because from their end its nothing more than a bunch of expensive claims, even "normal" births are just a bunch of expensive claims. Childbirth is a far cry from "pretty cheap," an uncomplicated vaginal birth costs tens of thousands of dollars minimum. You seem to be ignoring months of prenatal care and the care for any pregnancy complications that may come up, of which there are many. Childbirth costs are much more than just the cost of "labor."

The fact you couldn't purchase individual plans that covered these expenses is a huge testament to that. It was so expensive that it required the force of law to get insurance companies to cover them.
Great post! Do you use semi-synchronous or asynchronous replication? If you use asynchronous replication, when a server crashes and this triggers the automated failover, do you lose the last transactions?
This is one of the reasons why the kubernetes network model[0] is kinda neat. Every service running in each pod can bind to port 80 without any conflicts because every pod gets a dedicated ip address.

[0] https://kubernetes.io/docs/concepts/cluster-administration/n...
I'd probably do it with a transistor amplifier for fade-in and an RC network for fade-out, because it'd be an easy opportunity to learn how not to suck at analog quite as much as I currently do. But not everyone has parts bins as deep as mine.
Yeah me too, Hype Machine is fantastic for that. Such an undervalued service nowadays. If you haven't subscribed as a supporter I'd recommend it http://hypem.com/supporters
Stage 3 Systems is hiring in London!: https://stage3systems.bamboohr.com/jobs/view.php?id=5

Some highlights:

- You ideally have 4+ years of full-time experience and a salary expectation of $90-110k

- You have worked with or are interested in Unix, functional programming, Elixir, Elm, JavaScript, PostgreSQL

- We build cloud software for the marine shipping industry; thousands of people at companies like BC Ferries, Seaspan and many others use our products to build ships, reduce fuel consumption and manage their day-to-day operations

- We have a disparate stack with technologies like Rails, Meteor, Angular and React in production, but are standardizing our product line on Elixir/Elm

- We have group benefits, flexible time off, flexible work hours, working from home, and will buy you the tools you need to do your job well
I will never understand people who publish technical articles with code examples in variable width font.
Well if it vector data, the "tiles" can simply be a region of a sphere. That alone is not a reason for Mercator.

There may be efficiencies of panning a flat projection, but that is becoming a smaller and smaller issue as devices get more capable.

Also, even when in "map mode", you will often notice that google maps is doing more than that. Go to a place where there are tall buildings (I'm looking at downtown san francisco) and you can see the perspective shift on the buildings as it pans.
Again, that creates implicit behaviours that can be extremely surprising.

You can deal with multiple Closeables by enhancing syntax.

But tying deallocation to disposal creates action at a distance that I'm really not a fan of, personally.

Resource allocation and deallocation can take time, can block, and can fail. Those semantics make them a terrible fit for constructors and destructors.
How Google Seemingly Cut My Audience in Half Overnight
There are two major differences between mental diseases and typical physical diseases.

First, "sick days" generally are a policy for handling acute disorders; e.g. last week I didn't have disease X, today I do, and next week I'll be healthy again. You can't "wait out" a mental disease; taking a day or two off may reduce elevated stress levels but that is not the disease, the underlying problems aren't going to be solved when you come back.

The second issue is that many common physical issues are contagious, and there's a strong benefit for the employer and the society for sick people to "quarantine" themselves instead of going to offices and infecting coworkers and customers.

Mental diseases generally all are chronic and not contagious, and so they're similar in workplace (mis)treatment to things like arthritis or diabetes complications; things that don't map neatly to "x days to get cured" but instead need ongoing maintenance and unscheduled downtime forever.
Blogspot will redirect you to the country-specific domain based on your IP. It's not that the author is Irish, but the reader is Irish.
Slightly off-topic, but there's some pretty fascinating work that's been done recently on using neural networks for style transfer:

https://arxiv.org/pdf/1603.08155v1.pdf

http://www.anishathalye.com/2015/12/19/an-ai-that-can-mimic-...
I did. I don't think it's constructive to tell people to google it in that case either.
Not if they were never committed in the first place. It sounds like if you made changes without committing them (new files or modified committed files), and then branch switch, that content is gone with no warning.
Basically they want to align sick leave with FMLA. It's not really evil.

The alternative is PTO, which is usually worse because sick leave gets mashed with vacation.
Why not?

(I started my career shipping C code, FWIW.)
Database migrations are a thing. Many languages' database libraries have built-in or bolt-on schema migration tools for this very purpose.
Way back when I started reading HN, one thing that really struck me was seeing PHP discussed in a practical fashion rather than merely bashing it whenever it's mentioned as was the case in Proggit those days (often, the bashers obviously having very little experience building software).

By that time I was doing most of my coding in Ruby and Python, but this businesslike approach to PHP made me realize this is a place where people really get their hands dirty and build things, rather than care about fads.

Things have really changed, the tone & level of discussion here are now very different. Seems like PHP is kind of a canary in the coal mine in that regard.
Hey Aaron, sorry to hear and thanks for posting. We're hiring at Instagram for roles in NYC, SF and Menlo Park; if you/folks on your team want a direct line feel free to email me and I'll connect them to the right folks on the team.

mike [at] instagram [dot] com.
Findings of the Shared Task on Computing Semantic Textual Similarity (STS 2017) [pdf]
LinkedIn is not working for me, What to do?
Living in coastal California, I wish I could buy a reasonable house in a decent neighborhood for close to 1/2 million dollars. In the neighborhood where i'm currently renting it's strictly 800k+, and I'm in one of the least desired elementary-school districts in town.
Alto Pharmacy is hiring in SF! We are a tech-focused pharmacy, and we are focused on building software that makes a meaningful impact on people's lives by providing a better pharmacy experience. We've raise $23 million to work toward our mission of building the best pharmacy for everybody, and we're looking for other caring, scrappy, humble engineers to join us! We are looking for full stack generalists, and our tech stack is Rails, React, and Go.

https://alto.com/careers/software_engineer?gh_jid=737797
If a tool allows you to easily destroy something, the tool needs a safety switch.
Ah, thanks for the reference. I only did restart because I had a vague recollection of reading that reload doesn't do the trick.
I wrote an AWS Lambda thing that automatically pirates soundcloud tracks you like:

https://github.com/josephecombs/automated_soundcloud_downloa...

EDIT: I think it's broken right now for some reason but this should give you an idea of what to do.
As a person who just recently turned down an offer to write an ArangoDB book, Mongo is not worth it. I think most needs are met between Arango and PostgreSQL. Arango provides a scalable NoSQL option over PostgreSQL (let's see what version 10 holds). PostgreSQL provides a solid, efficient SQL solution.

Mongo provides no benefits of transactions or solid design. If you want either, look to Arango or PostgreSQL.
Schizophrenia had one on the market briefly, and there is one for bipolar disorder that is (or was, as of last year) in clinical trials.

See, e.g., http://www.thedailybeast.com/can-a-blood-test-diagnose-menta...
You can do NoSQL with Postgres...
I don't think he's leaving it plugged into his computer. He's just using the USB to serial connection for programming the board. Once that is done, he's probably plugging the USB cord in for power (although I bet he could have gotten it to last a decent amount of time on battery power).
AFAIK ANY distribution that supports secure boot does this, it's entirely pointless to sign the bootloader and kernel but then allow arbitrary kmod's to load in and harm your trusted system.
Just because IntelliJ is using 2GB of RAM doesn't mean they have a memory leak. As long as that 2GB profile is stable, it isn't going to bring down the system.
What? So in other universes the interference pattern is wrong?

A photon isn't a computer. It doesn't compute. It acts according to some nature which we equate with computation.
Probably worth jumping up a level in the URL to: http://warp.povusers.org/grrr/ —and noting that this comes from the guy's "What grinds my gears" page, which also links to a "Why I hate C" article.
> With a secure database that starts for free and runs at global scale, web applications hosted on Neocities can come alive with custom data.
— Kyle Drake, Founder of Neocities

Holy shit Kyle, that is a HUGE about face for you!
Sure, but what would act as the stable ground for the shielding? You need to avoid anything physical crossing the skin/skull/etc. to avoid cleanliness issues, remember.
I have no idea how you got that notion, but as a previous paying spotify customer I quit because they consistently screwed up their UI, made pointless changes and kept forcing "social" into something that shouldn't be social in the first place.

I now use google music. It is still no way near as good as groveshark was (especially when it comes to having all the music and a simple interface) but it works pretty okay.

And of course they can afford to pay the artists: I get to pay way more to the music industry now, than I ever did before.
Speaking of electric, how efficient are those solar panels on the top of some priuses? Is there any way of getting to the point of them having a significant impact on the battery charge? Is Tesla thinking of adding this sort of thing to their cars?
Angular Material Status Update
> Living with ADHD and OCD as a computer programmer is a daily struggle.

I've struggled with this for as long as I remember, but I didn't really understand what was wrong with me until I was diagnosed a couple of years ago after having a particularly difficult time.

I was as open with my manager about it as I felt I could be, and they gave the impression of being supportive. When I got a new manager, I laid it all out (which my therapist encouraged me to do), and explained how I was trying new medications and that some of them had negatively affected me. He said he understood and that he'd make sure I got the support I needed. When review time came, he said things hadn't been perfect, but he considered that to be because I hadn't received the appropriate support from my previous manager. Things improved: he made sure I was assigned longer-term work that didn't involve having to switch between tasks too often. Unfortunately, everything I'd done suddenly became irrelevant when they decided to reboot a project, invalidating nine months of work.

Then one day, out of the blue, just as I was getting into the restarted project, I was called into a Hangout and told that that would be my last day, with no formal explanation given, other than that they were suddenly no longer happy with the quality of my work. I was devastated. My son had just started at a private school (because of his own problems with ADHD), and I was due to lease a new car later that day. We ended up homeschooling him for the rest of the year.

What really gets to me, though, is that there was no process. The VP of People had given a talk not longer before about "How to get fired from <company>", and one of the key takeaways was that no one should be fired without knowing it was coming, but for some reason I was treated differently. And all this from a company that preaches "love" as a core value. I'm not naive: I understand that it's all about the bottom line, not caring about people, but this was a company that wanted us to believe it cared about things like mental health.

I've learned my lesson, though. In future, I'll keep personal things to myself, and just try to do my best. I've learned not to think of colleagues as friends, and I will never again fill out a self-assessment except in the blandest, most generic of terms.
If you're interested in solving problems in transportation and connected cars, we're hiring at Smartcar. We're based out of Mountain View and are looking for Frontend and Backend engineers, as well as Sales/Business Development.

https://smartcar.com | sanketh@smartcar.com
Monetizing and Spam-Filtering Public APIs with Bitcoin
Ask HN: What gadgets/apps do you use to stay healthy?
The only tech thing I currently use for health is a 7 minute workout app. I'm curious, what are some latest consumer devices and apps that can help to track/support/improve health and how did they help you in your particular case.
Git can totally screw you over if you're learning and you're not careful.

But what's nice is you can also (usually) revert your Git oopsie.

Still, I don't usually run into the problems described because I try to keep Git as simple as possible.
SC had a unique product and at one point I really enjoyed discovering music. In fact, I had a music blog where I reviewed indie and folk music I found there. I found some incredible talents. For example, this dude Packwood from Australia. I ended up buying his albums on Bandcamp, but never would've found him without SC. Looking back it's surprising that SC never tried to get into selling music. I would've bought download for lots of the indie music I found; if for no other reason than I wanted to be able to listen to it in the event that SC folded.

I switched to Amazon music, which I pay ~ $6/mo. I couldn't be happier. I'm actually happy to pay money to have access to almost anything I ever want to listen to. they even have obscure Drum n bass albums (which surprised me). As great as AM is, it doesn't fully replace SC for me. No podcasts or indie music by random Australian dude without record deals.
Git usually aborts any checkouts or merges that destroy the working directory. You can however use `git reset --hard HEAD` (which I aliased nuke) and it will happily oblige.
Thanks for requiring Javascript to view your static blog page. /s
> Since the clipboard is part of Win32k.sys, you’ll need to use a kernel debugger.

I'll never understand why they ruined the perfectly good design of Windows NT 3.x by moving everything + kitchen sink into the kernel.

A bug in the clipboard functions shouldn't be a kernel exploit vector.
I'm hiring in London for Time Out.

I would like to think that engineers from Sound Cloud may be excited by the music, theater, film, and event domain.

Drop me a line at [hn_username]@timeout.com
OAuth 2.0 Threat Landscapes
FWIW, the OP is responding to a July 1 piece by the co-founder of Slideshare, and both pieces were published before the later, more unsettling revelations and allegations about McClure. The piece being responded to has an update and link to a mea culpa, which states that she would have never posted her original apologia for McClure had she known about the newer allegations: https://medium.com/@rashmi/i-stand-in-support-of-the-victims...
Symantec to Buy Fireglass
Marketing aside, MongoDB is just really easy to pick up and use. In a small project, its weaknesses don't really show up (at least in my limited experience), if it gets big you often end up rebuilding anyway.
follow the money: http://philcalcado.com/2017/06/26/on_leaving_digitalocean.ht...
No only most expensive, but most business unfriendly.
It looks like the answer to my question is here: https://githubengineering.com/orchestrator-github/
>you typically don't get mentally ill from being in proximity to a mentally ill person. (At least, I never have.)

You also don't get physically ill from being in proximity to someone with a non-contagious disease or a sprained ankle, so that's an irrelevant distinction.

Sick days are not just for flus and colds that are contagious...
For us, the reason to run with MongoDB in 2009 were twofold: a) for one of our products which was consuming the Twitter gardenhose, unverified writes were a blessing. We got away with a single dedicated server running mongodb (and it was not a particularly expensive server). I would need to do serious research again whether there's a better solution for this today. It was using Stanford NLP to highlight breaking news before anyone realized. We never got a single subscriber because every newsdesk that saw it wanted to acquire us immediately LOL. Eventually one did. b) For another, the ability to store and index complex documents which in SQL would've needed JOINs and you couldn't index across JOINs at least in MySQL and our previous experience in PostgreSQL vs MySQL support didn't favor PostgreSQL at the time at all. It worked -- although it didn't have a journal back then. We were ready for a failure but the failure never came. The landscape today is much different with PostgreSQL and MySQL and SQLite all embracing JSON storage and indexing on expressions are there for all three.
Anyone with proper unbiased DB knowledge knows without trying or reading anything that it is hype. DBs are all about trade-offs you can't have it all
There are plenty of cases where Disposables are used in non-simple scopes enabled by using statements, and where it is better to call dispose explicitly rather than using an explicit using statement.
Do they account for potential variations in gravity where they've been doing the measurements? Given how ridiculously sensitive the equipment is the position of the moon probably has an impact on the readings they're getting.
Wait, are you suggesting the person with the brain implant wear a literal tin-foil hat?
Anecdotal, and on the opposite end of the spectrum, I've a friend who works in healthcare in the UK. Even though the official line is that they're not to come in to work while ill, not turning up ends up putting them under an incredible amount of pressure, and they have to justify every sick day to the post where even when she had some quite serious issues she was still working rather than face up to her management
I run a private git repo and anywhere between 0-6 additional instances and lambdas for development and testing. I haven't gone over $50 in a month.
> Besides the fact expressed by others that physically illness is more diagnosable, you typically don't get mentally ill from being in proximity to a mentally ill person.

Contagious diseases (and, a fortiori, those that are contagious on casual contact) are a distinct subset of so-called “physical” illness.

You don't get cancer from being in proximity to someone with cancer, either.