skysight-inc/HackerNews huggingface dataset:
OK, I'm actually wrong here. You still have to write headers to get it to go into the edge cache. So from the Python API for webapp2:

self.response.cache_control = 'public'
self.response.cache_control.max_age = 300

Does the trick
Dick Grune - Modern Compiler Design
Any suggestions for good places to read up on these? I am a 90% back end dev that needs to delve into front end from time to time. I never feel like I understand CSS.
Interesting idea. It makes me think of the indirect blocks used in Unix style file systems. But I'm unclear on some points. Should the 253 in the second case (s[0] == 254) be 255? It's not clear why it ends at 253. Second, how is the end of the string found in the cases two and three? I'm assuming the last part of the chain would be a string segment of type 1, with the length of the final segment given in the first byte.
I guess it's persistence.

You want to remember playlists across machines? no longer static
You want to modify song info / update cover art? no longer static

But gosh a static music player would be incredibly fast. Put it up on gh-pages and watch it fly!
AnonVPN
This is it too. We use Netflix on the SmartTv, but everything else runs through Kodi on a little HTPC I built. It's updated automatically, has plugins to access internet content, and works nicely with my HDHomeRun for Comcrap cable. I want my TV to just be a dumb monitor, I want my car's stereo system to just be an amp with speakers, and I want my fridge to keep food cold. I'll supply the hardware and software for internet/content/whatever so I can update and control it myself.
I just wanted to put it upfront rather than a link at the bottom.
appliances and the like should have no more hardware that go gather and display information which is sent and received from one central point in the home. you should be able to ask about anything you want from anywhere and get the information you want where you are.

home, do I have milk?
home, turn off the stove

or whatever control word is used to indicate you want to talk to your system.
Elon Musk worries third World War would ruin Mars mission
There was lots of fun stuff to read on the web before advertising and paywalls came along, and there will still be lots of fun stuff to read on the web should those awkward business models finally wither away. I'm not worried about it.
Ask HN: New Macbook issues, best way to get resolved?
Hey all, I figured I'd ask here because I feel like I go through a similar process each time this happens...

So I have the new Macbook and I'm experiencing a Bluetooth issue where sometimes, randomly, the keyboard and mouse don't pair. I have to restart the computer to fix this, just restarting blued (bluetooth daemon on the mac) doesn't fix it.

Secondly, sometimes the internet will just randomly cut out. Putting it off and on again fixes this.

I would normally schedule a genius bar appointment but these are hard issues to replicate and I have a feeling they're just going to give me the run-around. When this happens, I just go back 2 times more and they replace the entire machine. I have Applecare.

What's the most time-efficient way to deal with this problem? Any advice is appreciated!
Clearly audiences moving to other platforms is a problem for all networks, but that's not a "sports" problem, that's a cable TV problem.

NBC is not bidding $1 billion because there are people who are forced to subscribe to ESPN that don't want to. They are bidding $1 billion because there is a high demand for sports programming.

I'm arguing against the guy who said that sports leagues are going to go under because people are no longer forced to subscribe to programming they don't want.
Episodes:

1. It's Happening Now:
https://www.youtube.com/watch?v=jtMWEiCdsfc

2. Getting Down to Basic:
https://www.youtube.com/watch?v=TYetKjaVl6k

3. Micro Live [with visit to Alan Turing play]: https://www.youtube.com/watch?v=wR08vi64GDQ

4. Clive Sinclair and Alan Sugar:
https://www.youtube.com/watch?v=fX01PUVyvHU

A very good look at changing markets.

5. -- Compilation

6. Blocked by YouTube.
The US health care system sucks. I'm generally happy to be back in the US, but not about this particular aspect of it.

It's more bureaucratic than Italy, costs more, isn't appreciably better, and wastes people's time more.

What's more, even though Italy has a single payer system, there is also private care available that is quick, cheap and efficient - which it has to be, since the competition is "free" (tax funded).

The US has neither a free market, nor a good government provisioned system, but some mess that's neither fish nor fowl.
Everyone always nitpicks the title, because titles are the bikesheds of HN: it's easy to have something to say.
5 Productivity Tools I Can’t Live Without
I've been happy using Subsonic, though just this week I upgraded the server and got jetty db corruption. The forums have a few other people complaining of this (on Linux) and no solutions. Very frustrating.
IoT problems...
I fear that some hacker groups from communist states DDoS smart thermostats. We’ll call it Cold War 2.0
I've got no problem with model checkers, though I'm not sure I agree with your effort ratings. Different tools for different jobs, eh?

I think I also have a different conception of proof than you're naming. You don't need to prove your entire program. 10 small proofs strung together can go an enormous distance with low weight.
I went from a spinny disk to a larger SSD on my MacBook Pro. The process was roughly:

1) Hook SSD up to an external adapter.

2) Plug it in.

3) Format it.

4) Use CarbonCopyCloner to clone it.

5) Shut down, swap drives, restart.

At this point I had spent a couple of hours and everything worked except for TimeMachine backups. There was some commandline thing I found to fix that, but that wasn't a big deal.

On a Windows machine I would have cloned the disk with dd (from a LiveCD of some Linux), then used the Disk Management thing to expand the partition once I had booted from the new drive.
Same reason why GPS feature in a car is useless. I'm using google maps on my phone anyway due to the better interface and constant updates.
We changed the title from "Self-Hosted Spotify Clone", which was arguably both misleading and baity. Since the original title was neither of those, the submitter should have used it:

https://news.ycombinator.com/newsguidelines.html
Spotify radio is the worst recommendation system I've ever used in any software product ever.It's just that bad and my music tastes are not really esoteric. Do you have any suggestions for music discovery?
This is why I love my Chromecast so much. In the past I had a bulky media PC or a game console. I'd dig around for remotes, turn on the box, make sure everything was charged, etc. Now I just fire up whatever I want to watch on my phone, press cast, and off I go.

I think centralizing smartdevices on your phone makes a lot of sense. I don't need yet another remote or config to worry about. If IoT happens correctly, it'll be mostly headless. The head end will be your phone or smartwatch.

As a side note, the Amazon reviews for this thing are pretty terrible in regards to loud buzzing, ice maker issues, etc. We bought a new place three years ago and I was really tempted by the shiny Samsung fridges (LED lighting, little smart display, etc), but ended up going with a more conservative and pricier GE which has been rock-solid. Feels like I dodged a bullet here.
> overthrown

Have you seen Episodes 1-3? Palpatine has real support of the public.

(Look, dude, of course he's evil as hell, I don't deny that. It's just that arguments that you choose to prove that are not working.)
Yes, functional side of things is interesting and rarely covered in the standard compilers courses.

There is an old but good book, often overlooked: "Functional Programming" by Anthony J. Field and Peter G. Harrison (1988). Despite the title, it's more about various compilation techniques.

Also an old but still relevant (it is missing the STG, but otherwise full of interesting stuff): http://research.microsoft.com/en-us/um/people/simonpj/papers...

It also worth following this blog: https://wingolog.org/
I guess we know our place socially don't we?

"The upper-class kitchen, designed to be entered only by servants, is identifiable at once: it's beat-up, inconvenient, and out-of-date, with lots of wood, no Formica whatever, and a minimum of accessories and labor-saving appliances like dishwashers and garbage disposals. Why tolerate these noisy things when you can have a silent servant do precisely what they do? The upper-class kitchen does have a refrigerator, but so antique that it has rounded corners and a big white coil on top. Neatness and modernity enter as we move down toward the middle class, and the more your kitchen resembles a lab, the worse for you socially." -- Class, a Guide to the American Status System
Criticizing someone for exercising their right to privacy is not going to win you many friends.

Also, a simple curtain is plenty. The article's talk about frosted glass pods are obviously a cherry-picked example intended to make millenials seem more absurd. It's simple capitalism, you very likely wouldn't see any change in your rates at all, and if you did then the gym down the street will undercut your gym with a "Strut Friendly" locker room.
> Any choice of touchscreen, OS or even network connection technology would probably be a "bad idea" in 5-10 years.

Ethernet via RJ45 has really good staying power; IEEE standard in 1990. A refrigerator at 10Mbps is probably sufficient, but if not, 10GBase-T is approaching affordability, and a standard for 40GBase-T is expected next year, although you may need to pull new wires.
Yay, I'm going to put "FAA registered pilot" in my profiles :)
One difference, in the 18th century, they cared about the format.

Now if only ebook publishers (a) hired proofreaders (b) could figure out how to properly render diagrams, specialized fonts and pictures such that reading an ebook containing such was anything other than a disappointment.

I thought the "sloppy" era would be over by now as the technology and acceptance increased, but for whatever reason, ebooks still are given lesser priority than printed matter when it comes to editing and layout (and still are kind of a ripoff compared to the printed edition because of that).
> What numbers are we talking about?

In 2015 there were 41,000+ applicants for ~30,000 residency positions[0]. I don't have the 2015 numbers for medical schools, but in 2014, there were 18,000 graduates in the US[1].

Increasing the number of medical school graduates in the US would mean that a larger percentage of residency slots are taken by people who went to school in the US but not the total number of residents. Ironically, this would actually be a bad thing cost-wise, since foreign medical schools are usually cheaper and students carry a lower debt load[2].

> Does this mean there is an ever-growing population of "post-doc" physicians, stuck in labs or other non-patient-facing situations?

Yes. You are likely to see them take jobs in industry - e.g. at a pharmaceutical or insurance company, but on the business side, since they're not licensed to practice. (Nor are they even qualified - medical school teaches essential knowledge for doctors, but they receive basically no training on actual clinical practice. All of that happens during residency).

It's worth noting that not all doctors want to practice medicine - for example, people in an MD/PhD program often go into research, and that's a good thing. But if we're talking about increasing the supply of practicing physicians, increasing the number of medical school applicants in the US makes literally zero difference.

[0] http://www.nrmp.org/press-release-2015-residency-match-large...

[1] https://www.aamc.org/download/321532/data/factstable27-2.pdf

[2] These aren't necessarily "foreign" students either; it's quite common for people in the US to go to medical school in the Caribbean and then come back for their residency.
This is what I thought in response to the "first world problems" comments. I grew up with a calendar on my fridge that kept the family in sync (as much as anything else) and think a family calendar that works with everyone's online calendars is a fine idea.

In a discussion about this kind of technology integration, FWP comments aren't constructive.
Terminal velocity of a 250g aircraft is much slower than terminal velocity of a 250g rock.
Android Auto and CarPlay don't completely replace the head-unit functionality. Most units have standard functions built in, with the additional option of Android Auto/CarPlay features.

In fact, the Android Auto/Carplay functionality is largely driven by the software on the phone, the headunit really just acts a dumb terminal when entering that mode.

If anything, this is a WAY more future proof design than the current in-car entertainment and navigation functions which rarely see updates. It is likely that Android/Apple will be around in a few years with regular updates you can take advantage of in your car, vs a navigation system that will never see a change, even a security update.

If the fridge for example, used "Android Fridge" or "Apple Chillplay" it is likely this problem wouldn't exist. An OTA on the phone which pushes the calendar to the fridge would solve this. This is how Android Auto and Apple Carplay work.
Top Chef brothers? Or do you mean HGTV brothers?
It does the code reviews in a distributed way. It just needs a central Git repo, but not a central code review server.

CI tests could work in a similar way! Each CI runner is polling for new commits, running tests against them, and pushing the results as git-notes in the Git repo, just like for the reviews.
Nah. Pop open the cover and install an aftermarket control board that runs Free software. Eventually, this will be more user-friendly (better interface one doesn't have to relearn every monthly update), convenient (better software features), and economical (how many appliances are thrown out due to software malfunctions).
Here’s the 9-step plan to save Yahoo
I use iCloud for my 30k+ songs music library and it works great. Genius mixes fill the void when it comes to music discovery. I have a lot of albums I have never listened to.
That's what I want to try next time. There are pros and cons in using the parser generator, but the tool seems to be useful at least if you want to create a small compiler which don't aim Clang-level diagnostics.
Sup, Sally!
On Windows, just use dism (formerly imagex). /capture-image the old drive, and /apply-image the new drive. It uses volume shadow copy and can run on an online system.

Not sure what tools were tried in the article, but using the official one from the OS vendor seems like it should have been the first choice.

Coincidentally, I did it this weekend to upgrade my SSD, the exact situation described in the article. Worked fine with no issues.

https://technet.microsoft.com/en-us/library/hh825258.aspx
I too think the OO paradigm, at least as implemented in popular OO languages (mainly through classes and inheritance), has few benefits, though not necessarily none. Certainly the idea of modeling real world objects has failed miserably while still being taught to inexperienced developers who then make everything a descendant of a class like Thing (or some nonsense like that). On the other hand, interfaces (protocols in Clojure) are the one good idea that's implemented in a lot of OO languages, though really that's just part of a type system and not an OO concept.

The real problem comes from completely ignoring data structures. By mixing in functions with data, proper data structures are virtually nonexistent in the OO world and manipulating data properly becomes an exercise in frustration and working around the limitations of the OO implementation (data that should be together isn't; data that shouldn't be is; easy access to the data, etc.). In this regard, I'd say procedural programming is on roughly equal footing with functional programming in as much as they both tend to focus heavily on data structures first. As they say, show me your data structures and I don't need to see the code; show me your code and I won't know shit.

Your point that OO's main advantage is popularity is spot on. It certainly is possible to build large, maintainable systems in an OO fashion, but it is very difficult and requires a lot of experience. That's why there is so much terrible OO code out there. It's virtually impossible to write decent code without a lot of experience. This mammoth learning curve is not as steep in languages that focus on data structures first, whether they be procedural or functional.
Onboarding teardowns
i'm on the older side of the millennial generation (born in 1980) and since I was 22, I've been going to one of those nicer gyms where there's lots of old men walking around with their junk hanging out.

it bothered me for about 6 months, then i got over it.

also realized that it was an amazing place to network. putting up walls would have been bad for my career.
I don't really gt the mass adoption of smartphones for everything either. Touchscreen keyboard combined with a miniscule display is just painful usability wise. If I need to send much more than a few lines I will usually wait until I can get to a proper computer.
Or these are the inevitable situations that will (hopefully) lead to the standards and software/product being raised so this sort of thing happens less frequently.

At some point IOT products will emerge with well designed features that solve important problems (i.e. electric water heaters that cycle on to absorb intermittent renewable electricity when it is available).
Well written article. I kinda fear for some people I used to work with. They've got a "model" that turns over the portfolio 1.5 times a year, backtested since around 2000. Sometimes it's hard to get people to understand that what they're doing is totally crazy.

What the article is hinting at is a very specific part of the scientific method: mechanism.

When you hypothesise about something, you are also guessing at how exactly the effect comes to pass. So for instance you surmise that incident radiation induces a current in conductors, lessening the amount of radiation beyond the point of incidence. This mechanism would have some interesting experimental results, namely that non conductors would not shield anything, whereas conductors can be used to shield say a phone from EM radiation. It also means if your shield was conducting but very thin, it might not work.

In the financial sphere, you rarely have the luxury of being able to test mechanisms. There's a huge amount of data, and it's quite easy to find structure, but the apparatus itself is rarely exposed.

This leaves you with two areas of research: arbitrage, as in what Chollida1 says, and presumed mechanisms.

Since the first area has been explored by him, I'll look at the second.

So let's say you used to work in a large pension fund, and that pension fund always did its trades starting at 3pm, and filled whatever wasn't done in the auction. You meet some colleagues, who do the same. Since you now have a glimpse into a causal mechanism, it's pretty reasonable for you to look at a model where things that have traded a lot since 3pm continue in the way they were going.

There could be lots of similar mechanisms in play, coming on and off as the market evolved.
Pearl Harbor advance-knowledge conspiracy theory
Bullet holes, brown M&Ms, it is all about attention to detail.
Google's Gift to Women
Though I generally use Waze for plotting a course to an unfamiliar destination, I still heavily use my car's GPS nav system.

Rather than relying on it for guidance, I use it as a reference for routing around small inconveniences (road work/construction, accidents, etc.) on familiar routes. I've found it quite useful in this regard, and the large screen size definitely comes in handy for at-a-glance usage.
> the large amount of health insurance in the U.S. not necessarily free market vs. regulation

Erm, health insurance companies are essentially the opposite of a free market. They're as close you can get to government run without actually being called "government". With USG's recent push to make patronizing these behemoths mandatory, even the last little sliver of "exit" has been lost.
Thanks! Did not know of this one.
New results from world's most sensitive dark matter detector
Especially when the code is changed and the comment is now incorrect...
Because the transit systems do not have that as a tool. Look at other countries and see that where the system is used by more hostages, the number of times a ransom is demanded anecdotally appears higher.

In the last 15 years for U.S. transit:

* 2005 New York City transit strike

* 2007 Orange County transit strike

* 2010 Spirit Airlines Pilot Strike (U.S.)

What does private enterprise need to improve as it currently stands? The government subsidizes transit to such an extent that private players stay out and any hint of a profitable line is look unfavorably upon by government players that they ban it or try to robustly oppose it; examples include Google Bus', and Jitney's in New York.
Well, that's the news from Lake Wobegon, where all the women are strong, all the men are good looking, and all the children are above average.
Nobody ever hears about this. British were adept at keeping their own atrocities under wraps, all the while decrying the actions of Germans - the so called "moral whipping boy" of Europe.
Take up whitewate kayaking. Rain = high water = more excitement and the sport at its best (in Scotland at least where the rivers are fairly small).
Was like this a few years ago.
Why do US Americans always skip right past the live-fire reality of the Vietnam War?
> What do you base that on?

I explained that in the rest of my post. Did you have a specific question about it?
My tip is to avoid the use of tag names to style your page. Use classes instead.

Go further and investigate BEM naming conventions or better. Start creating components ( React, Web components, etc. ) that have encapsulated CSS.
I did some googling a while back and saw some very similar. Same stack even. I've on multiple occasions seen ideas I've had created in the same exact stack I'm using. I probably have even seen your project, I'm thinking of open-sourcing mine since it's not being used at the moment but it's a tad-bit incomplete.
No TLS requirement (that I can find). That's a shame. If they're going to be forcing publishers to get their shit together, you would think they would at least add basic TLS (if not full http/2.0 or something). I suppose since it's going through their CDN it's encrypted when it reaches the end user, but there's still the connection from their CDN to the publisher
I started reading Class over the weekend. I feel depressed because it described all of my middle class insecurities. I earn almost as much money as my doctor friends, but I'm desperate to prove that I am an equal.
Implementing the Bitcoin Lightning Network on Stellar
You're correct.

Having no power in a model airplane is definitely an issue.

My main point being, however, it's arguably far easier to manuver an airplane after motor failure than a drone/quadcopter.
Are you currently being compensated with stock/options/RSUs in addition to your salary/bonus? What do you mean when you say "my 'just a job' contribution will not be enough?"
Mostly the expectation that it would function as advertised, I assume. I imagine that flies in the face of the experience of a lot of people on HN. ;)

It's also a little funny that the report ends up on the Google product forums, given that Google doesn't make refrigerators. Such is life in the Internet of Things world though; when the network breaks, everyone and no-one is to blame.
Sorry, we are not talking about the same product. I am talking about rolls of strong double-sided foam tape.
did you reboot your refrigerator ? maybe you need a firmware upgrade.
This looks great, could you please integrate youtube and soundcloud search for streaming?

EDIT: https://github.com/embedly/player.js may save you some time!