skysight-inc/HackerNews huggingface dataset:
I fear you've contrived to miss both underlying points.

In order to access a JSON endpoint in Django, I need to install DRF, integrate it with Django, configure it, edit my urls.py and perhaps set up a serialiser. I won't detail the procedure in your first link because I think you very well know that is simply a response object with a crude serialiser and a content header set. The inclusion of both misses the point, which is that in Rails, I would simply navigate to /model-name.json (so in fact, yes, it is absolutely a burden to go through that when you compare the two). That's it. No parsing. No route configuration. No concerning myself with edge-cases unless I'm doing something odd. Requirement satisfied, and I can sleep soundly knowing I'm not bequeathing some custom car-crash on whoever inherits my codebase. Debate aside, I wholeheartedly encourage you to try out this framework sometime - I've found going from Django to Rails to be an absolute joy to develop with.

Generic Views. Ah. Well that has its own set of problems. Why am I wading through the docs (or more accurately ccbv.co.uk because the actual docs are a verbose, time-sinking miasma; recall that in my previous comment, I am championing the development-velocity of Rails in contrast to Django) to discover which method from which class I need to override to implement the functionality I need? I can intuit a lot more now, after doing this for years, but why do I need this knowledge at all? It is the job of the framework to abstract and ameliorate bullshit. Corollary: why is it that every Django codebase I inherit has at some point converged on its natural state of 'car-crash' because of the combination of a bunch of rigid inheritance chains and my predecessors not putting in an escape hatch? At risk of being a bit of a zealot, MI is almost always an anti-pattern and I would prefer the flexibility afforded to me by composing things in the traditional fashion.

In Rails, I would build a model like this in my shell: `rails g scaffold Blog title:string content:text`. That's again, literally it. From that, I now have a Blog model with title and content, created and updated fields, controllers (or 'Views' in Django parlance for some reason) and both HTML and JSON views ('Templates', in Django-land), unit tests, assets for my asset pipeline (we don't have to run collect static btw - it seamlessly transitions into production because it was designed on the basis that people might actually be deploying their projects), my equivalent of urls.py has been updated to accommodate my new model and I have full CRUD functionality at this point. Genuinely, I implore you to try this framework. Django has come a long way since I first used it but it's nowhere near the level that modern frameworks like Phoenix [1] (you should give this a go too - the third party libs aren't quite there yet but it's a really well thought-out framework) are at, and I'm genuinely curious as to why.

[1] - https://phoenixframework.org/
Google does not have an effective monopoly on search, and they've been very transparent about how you receive news on news.google.com.
Los Angeles had the water supply from Owens Lake, which enabled it to dictate terms to a lot of surrounding land whose owners wanted to develop (e.g. the San Fernando Valley).

It's a huge, fairly flat coastal basin, and although the city limits don't cover the whole area, Los Angeles itself is 500 sq mi, which is larger than Phoenix, or 50% more land than New York City. It's really, really big.
The word write is pretty generic.
Double great because it only cools using water that the city was planning on using anyway. If they heated the water up and sent it back into Lake Ontario, the temperature differential would have a drastic impact on the wildlife in the area.
I don't see how that changes things at all... The payment gateway still gets the info, you still need to enter the info somehow, and in most proper e-commerce implementations these days they don't have access to the cc # anyway.

What changes except adding more work/failure-states/encryption at the one point where it does not matter?
Really wish they'd consider looking at some of the more fun things TypeScript types can do. Like specifying a return type as being Pick<SomeType, 'x' | 'y'>. Imagine this in combination with Go interfaces.
But it makes sense if you think about it: it's a highly risky, not very rewarding experience to bike to work in the US so only the people really into it/passionate about it do it. I would expect a large overlap between people passionate about biking and those that dress in lycra and ride road bikes.

Other reasons that I could see for that:
- longer average commute distance for US bike commuters vs other places (which means, you want a nicer/faster bike and comfortable/aerodynamic clothing)
- there is a cultural element to it, especially for a certain age group (aka MAMILs) plus the higher relative price of racing equipment isn't an issue for this group

Plus, racing bikes are really very nice bikes. I like to compare it like driving a Ferrari to work, sure, it's not the best place to take advantage of such a car/engine, but it's still a better experience than a regular car (but YMMV, depends on the quality of the road).
Well, you walked into a bike lane. If you walk into a car lane in the US, if the comments on that Uber crash are any indication, a good number of people are perfectly fine with you dieing under the wheels of an inattentive motorist and the police will blame you on the statement of the same motorist alone.

The good news is that people don't generally die from pedestrian-bike collisions; it's a freak event and you are much better off watching your step in the rain unless you slip and fall, a much more common cause of death.
A lot of kids do this in The Netherlands. And as far as I can tell, not a lot have a problem with it. It's part of the culture. And as said by another commenter, most kids ride in groups. I think it's healthy to let kids ride on their own and take responsibility, both physically and mentally.
We are thinking about Bitcoin energy usage in all the wrong ways
Here is a list of features: https://en.wikipedia.org/wiki/Julia_(programming_language)#L...
Right. Last I checked it was being brought into the fold but it hasn't been - I still have to install a third-party library to get what is rapidly becoming a normal thing to have in a web-framework. My point was more "why isn't this in my kitchen-sink framework" more than "I don't know how I would go about integrating websockets in Django"
This story is flagged to death every time it’s posted.

Pretty fucking shocking when the President of the United States threatens to regulate Google results (because he doesn’t like his own) and HN has nothing to say about it.

Maybe they’ll put up a black bar for his impeachment.
I've exclusively used DDG for all mobile and desktop searches for years now. I haven't looked back at Google nor have I ever used !g.
His bike was electric assisted. No need to be a jerk.
Maybe I'm crazy but I'd much prefer that as:

const temp = await foo;
const bar = await temp.bar;
const baz = await bar.baz;

But then again it looks like in this example we are returning promises from getters on objects which is something I would avoid.
Juliet Anderson 1
Wikipedia says DuckDuckGo generates "results from over 400 individual sources, including crowdsourced sites such as Wikipedia, and other search engines like Bing, Yahoo!, and Yandex." Even if it was just a proxy to the Bing Search API, DDG users would be unseen by Bing servers.

https://en.wikipedia.org/wiki/DuckDuckGo
Crafting good macro error messages is really hard. Naively, they point into the expansion which is user-hostile. It's a fair bit easier (though still difficult) with certain implementations of generics.
Earn Extra Money? Join Us to Spread iBET Get as Much as You Want
I think we had this before a few months ago. It is no different than any other regional transit provider (in the case of their fiber loop) or wireless ISP. You still have to pay for decent peering and you still have to deal with the laws of physics and claude shannon when deploying wireless networks.
As a sport cyclist and bike commuter in the UK I’m able to separate these two activities in my mind.

If I’m pootling to the shops a mile away on my Brompton I generally don’t even bother with a helmet.

If however, I’m off for a 60-100 mile training ride with my club mates I wouldn’t dream of doing it in anything other than bib shorts, jersey and cleated shoes.

I mean you wouldn’t wear a business suit to the gym or jeans to go swimming would you?

Padded shorts and tight fitting lycra are the most comfortable things to wear if you’re going to cycle a long way, long time or just want to go fast on a bike.

If you don’t want to do those things wear what you like, that’s fine too.
I'm not totally certain that K-2 spending less time in front of a screen while at school would be a bad thing. I'm sure they get plenty of touchscreen time at home.
Thanks for the advice.

When should I dive into frameworks? What concepts should I be familiar with apart from the basic building blocks (var, loops, control flows, etc)?
Do you mean that you put it in a spray bottle with water?

Hmmmmmmmmmmmmmmmmmmm, I think I used it like normal shampoo. To be fair, my hair would be decently oily by that point.
Without SSL, I can inject code directly into the main HTML, in the same origin context as yours.
"supraconductors"?

Edit: apparently an older term for "superconductors"
This post doesn’t really explain what is so great about iPads for small children, and as far as I can tell doesn’t link to much external explanation about it. Maybe the author had some previous posts explaining this that regular blog readers know about as context?

Is there some report [anecdotal, peer-reviewed, whatever] comparing kids’ trying to learn using an iPad vs. physical materials? What specific ideas or subjects are effectively learned on the iPad?

Is the iPad being used as a substitute for television? As a way to scale teacher time better when there are many students per teacher? As a tool which a teacher and student will use together? ...

My personal bias would be to generally occupy small children with something tangible (sand toys, climbing equipment, blocks, balls, toy cars, marbles, chalk, scissors and paper, pattern blocks, dice, index cards, yarn, popsicle sticks, pipe cleaners, gears, pulleys, springs, ..., and lots of paper books) until they are a bit older.

If there are many students per teacher and the teacher’s attention is limited, students can often entertain themselves while learning a great deal by working/playing in groups using physical materials.
> Well, except that we were only able to built flying machines (rather than floating ones) when we figured out why birds can fly [1].

> [1] I mean, a boomerang is really an airfoil so I guess Australian Aborigines had figured out flight long before the Wright brothers, but I guess they didn't need flying vehicles back then?

What? I'm not sure anyone would count a boomerang as "figuring out" flight let alone how birds fly.

I'm no historian but I'm pretty sure flight was first figured out mechanically through trial and error well before we had a good theoretical model for flight, let alone figuring out how birds fly. Either that or we have drastically different meaning for what it means to figure something out.

It took ages for us to fully understand how flight worked, well after we could fly. That's the basis of the apocryphal story:

https://www.snopes.com/fact-check/bumblebees-cant-fly/
https://rationalwiki.org/wiki/Bumblebee_argument
Maybe you don’t mind being in wrecks where people are significantly injured. But I do mind if some poor misguided soul splatters themselves on the side of my truck. I almost gunned it to get out of his way, but thankfully noticed the pedestrians in front of me.
Because OP wanted to "switch" to European socialized insurance, without also "switching" to their levels of incomes and taxes as well. Of course their cost of labor is lower: they socialize a bunch of costs that would otherwise need to be recouped through the earnings of doctors, nurses, administrative personnel, etc. On top of that they get US drugs for a fraction of the cost, and don’t do any serious pharma research (because there’s quite literally no money in it, given the cost of drugs). It’s not a valid comparison. My point wasn't that US healthcare is not expensive, anyone with any brain at all can tell that it is. It was that you can't pick and choose, and on balance, even with the more expensive healthcare, the US is a "better deal" for the vast majority of people who comment on this site.
> generally is because they chose to use unsafe public access points

It sounds like you are penalizing users for not using a vpn or some other method when out of their homes. Yes, people can do that, but in 2018 having https on the sites you manage is a lot easier than asking every possible visitor to use a vpn.
I hope you would reconsider and enable https on all the sites you are an admin.

> If your ISP is MITMing you, I think you have bigger problems then whether they change the content of my static site when you visit it. If they were, they could potentially target your initial download of your browser and downgrade to http to infect your browser so that you never realize after that that https is faked out...

They could, and maybe in countries other than the US you have plenty of ISP choices, but in many places in the US, you are stuck with just one ISP.

And so far, we know that ISPs are manipulating http traffic but so far they haven't gone all the way to give you an infected browser. Again, it is possible, but I think that a better approach is if we all do as much as we can to help each other, the internet could be a better place.
Agreed. I'm sure they're aware of that. But they needed to get a device to developers given that they've "built a whole new operating system" (As Lucky explained, just built stuff on Android).

Also from Palmer Lucky: They need to fix the controller. Either compromise on it or make something custom that works. Commercial applications will bring a lot of funding here and a wonky controller, when others exist which are not, will hamper that.

They have the chicken, now they need developers to make eggs. Day One of a consumer Magic Leap device needs that for anyone to say "wow, I need to have one of those in my life."
Annoying and the performance is terrible, since pretty much every instance ends up being an allocation, and allocations in Go are quite a lot more expensive than in other GC languages. Further, it doesn't quite have the same semantics--if you return one of these interfaces, your caller still doesn't know what all of the permutations they have to check for.
The best way to do it is probably laser+radio with additional fiber on high-traffic routes. That way you normally have the bandwidth of laser and radio combined, with slower "just radio" as a backup when there's bad weather, and the fiber bandwidth for backbone connections.
>They have absolutely changed the direction of television in pretty much all respects, from release cycle, to delivery to even marketing.

A lot of this is the classic play of using investor money to buy users. Netflix has been burning billions because they don't charge enough for the content they provide. That problem is getting worse as the streaming market becomes more of a primary distribution channel driving the cost of streaming rights up. We've already seen that happen as Netflix catalog shrinks despite all of their original programming.

Basically, Netflix's product is getting steadily worse while their costs are going through the roof.
The "NO WARRANTIES" and "LIMITATION OF LIABILITY" sections?

The ones which appear (to a layperson) to match the MIT license "NO WARRANTY" section, or the Mozilla Public License "indemnify all Contributers" and "disclaimer of warranty", and sections 7, 8 of the Apache License 2, and sections 15, 16 of the GPL v3?

If so, there's a lot of people stating "it's impossible to build better software than ours", and while I disagree that's what it communicates, if that is what it means, it's bad-faith to try and single Microsoft out on that count, isn't it?
previously: https://news.ycombinator.com/item?id=16978544 (230 comments)
Wait, they used the magnet-based tracking system?? Those DO NOT WORK, and has been proved over and over again - having a tube-light in the same room will make them not work.
The bay area seems to have one such Mesh network, in Oakland:
https://peoplesopen.net/

It would be great to see something like this on the Peninsula
> My interest in doing that is that in my life it is unreasonable to expect change without letting the other party know of your discontent.

It is unreasonable to expect bad service without personal involvement to make it better. They could check "does a user search for [something], then they search for !g [something]? If yes, we are doing something wrong."

It's not rocket science.
They cite Bing, Yahoo, and Yandex as "sourced from," and they do list DuckDuckBot as its own thing -- although I am pretty sure they don't have the same resources for running their own distributed crawls as the 3 sources they list:

https://duck.co/help/results/sources
I think the OP was using "machines" as reinforcement learning (or whatever the best general learning algorithm). It doesn't count if you program a solution for each individual game. These are learning algorithm benchmarks not programmer benchmarks.

For generalized reinforcement learning algorithms. Humans almost always beat the "machine". The only cases where machine wins is on 100% hand eye coordination and duration.

All ML algorithms are terrible at figuring out how to plan de-novo. So anything that requires multiple contexts or planning is a fail.
I guess it comes down to having less visitors click on an ad means fewer dollars spent. The few who do click are closer to being customers compared to contexual clicks which get more interest but more the browsing type.

It feels like we are wasting so much page space with ineffective ads and too few clickthroughs.
Kava kava root. It’s the only thing I’ve found that helps. I can feel it turning how my mind processes social situations completely 180.
I cover this a bit in my reply to Eli. https://www.kickscondor.com/2018/08/28/caution-chromebooks/

I agree that there should be a limit (and have practiced this in my classes) but there are some incredible uses of touchscreens that I can't ignore.
I always found the best combination was a photo resist method, with a small CNC machine for drilling and routing the PCB.

precision and accuracy is all about alignment, so i built alignment guides into all my printouts.

I uploaded some photos of a one + the alignment guides I used, i even did nickel plating and a silkscreen on this one...

https://imgur.com/a/GNZKaMK

heres a short video of the CNC drilling machine too, it was homemade

https://www.youtube.com/watch?v=NiIWB1PsAg8

used to take maybe 1-2 hours start to finish to manufacture a full PCB
If the pavement below your feet is red, move off of it.
Pretend it is hot lava, or stained red with the
spilled blood of other naive visitors, if that helps. :-)

I recall red pavement from Hamburg, as well - is it
a pattern/standard only for the more coastal/flat places,
or common throughout Northern EU countries?
if evil.com is listed in the CORS http header from the legitimate domain.

That's not how CORS works; the header is read from the domain being called from JavaScript, not from the domain where the JavaScript came from. So in this case, the injected JS will call evil.com, and so the CORS headers will be read from evil.com.
I don't have kids yet, but when I do I am so glad I won't have to buy them a dog that craps all over everything. So worth 3k.

Thank god to SNE.
The problem is there will never be a truly competitive market in most health care products and services. Necessary regulation creates too many barriers to entry and competition, and the ultimate consumer has very little demand flexibility or even choice of provider.

What is needed is a monopsony buyer who can negotiate in this arena on a more even footing. In other words, single-payer.
The problem with the SUAS concept is energy and scale. You can't have something very small (small enough to fit a dozen in a C-130, so several metres in length at most) which has a powerful turbofan engine and significant range and excellent manoeuvrability and compact stowage.

Recovery especially is rather implausible due to the complex aerodynamics and risk to the people on the mothership. C-130s are fine for a demo I guess, but are particularly terrible tactically, as the adversary SUAS systems would easily be able to take them out.
I do cite one paper (and there are more) - I will flesh these ideas out in the blog over the next little while. You are understandably skeptical.
Yes, I've read it breifly, it's a good description but I always prefer human feedback, with languages, the devil is in the details :)
This kind of automated testing sounds like it would be a fantastic idea.
Hi, is your product based on the Necto offering?

https://apply.nectolab.io
Okay. I guess the quotation wasn’t that exciting to me.

> Children as young as 24 months can complete items requiring cognitive engagement on a touch screen device, with no verbal instruction and minimal child–administrator interaction. This paves the way for using touch screen technology for language and administrator independent developmental assessment in toddlers.

This sounds like a way of handing a child off to a device so that adults can otherwise ignore them. (Which, to be fair, will unfortunately happen a lot anyway in schools.) And the focus is on “assessment” rather than teaching/learning.

Did you find that there were ideas or subjects that could be taught better on an iPad than using alternative materials (with a teacher standing by to explain in either case)?
Thanks we went to Fu unji and it was great too. My wife got the dipping noodles and I got the regular. I did like the pork at menya musashi a lot and the overall flavor of Ichiran the most though. Can’t believe I got some random shinjuku advice when I just happened to be visiting.

Annoyingly some other americans next to us at Fu unji were complaining about the pork in the ramen.
Why can't I highlight / select text from the web page?
Sorry, it's not obsolete in the U.S., it's used every day by hundreds of millions of people. How is Fahrenheit more difficult to calculate with than Celsius, and what does it have to do with space probes?
I am not sure that's true. I (a Dutchman) know plenty of motorists who won't touch a bicycle.
What does Al Gore do?
Cycling fast in the city centre is just too dangerous. The (big) city centres are small and crowded. Cycling really fast would result in grave accidents. Cycling for exercise is almost exclusively done outside the cities. Another reason to keep the pace down when commuting, is to minimize sweating.
The Alchemy of Madness: Understanding a Seventeenth-Century “Brain Scan” (2015)
Julia can handle rational numbers, with a special syntax: 3//5 + 2//3 returns 19//15, while 3/5 + 2/3 gets you the floating-point answer 1.2666666666666666.

Why not allow a/b + c/d = (a.d + c.b)/(b.d)? It's what happens when I get my pen and paper out in the real world (along with my tongue sticking out and much perspiration and perhaps a few doodles.) Why does Julia use / to cause one of those weird repeated decimal expansion things to appear but // is needed to keep things pure?

Yes I am partially taking the piss but I'm also interested into the design decision into why // is needed to avoid a type conversion. I note that 1/2 = 0.5 was also a design decision.
Fukuyama was an Iraq war cheerleader and one of the icons of the neocons.

Doesn't mean he's wrong for disliking both identity politics and presumably Trump but he's no liberal.
This is why Amazon no longer lists all of your purchases in your email receipt. It just says "your order of XXX and N more items".