skysight-inc/HackerNews huggingface dataset:
I built a simple bash/javascript to get the AMP URL for a given URL, did reduce my data usage by tons. Look here:

https://developers.google.com/apis-explorer/?hl=en_US#p/acce...

curl -X POST -H "Content-Type: application/json" -d "{urls: ['$1'] }"
https://content-acceleratedmobilepageurl.googleapis.com
/v1/ampUrls:batchGet?key=YOUR_AMP_API_KEY

For android app use:

public static String GET(String url){
String result = "";
String ampString = "https://content-acceleratedmobilepageurl.googleapis.com/v1/ampUrls:batchGet?key=YOUR_AMP_API_KEY";
HttpURLConnection conn = null;
try {
URL ampurl = new URL(ampString);
conn = (HttpURLConnection) ampurl.openConnection();
conn.setReadTimeout(10000);
conn.setConnectTimeout(15000);
conn.setRequestProperty("Content-Type", "application/json");
conn.setRequestMethod("POST");
conn.setDoInput(true);
conn.setDoOutput(true);

JSONObject jsonObject = new JSONObject();
jsonObject.accumulate("urls", url);

OutputStream os = conn.getOutputStream();
os.write(jsonObject.toString().getBytes("UTF-8"));
os.close();

InputStream istream = null;
istream = conn.getInputStream();
InputStream in = new BufferedInputStream(istream);
if(in != null){
result = convertInputStreamToString(in);
}
}
catch (Exception e) {
Log.d("News exception", result);
}finally {
// Close Stream TODO
// and disconnect HTTPS connection.
if (conn != null) {
conn.disconnect();
}
}

private static String convertInputStreamToString(InputStream inputStream) throws IOException {
BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(inputStream));
String line = "";
String result = "";
String id = "";
String ampUrls = "";

while((line = bufferedReader.readLine()) != null){
result += line;
}
inputStream.close();
try {
JSONObject jsonObj = new JSONObject(result);
// check if jsonObj has ampUrls string - how to do it?

if (!jsonObj.isNull("ampUrls")){
JSONArray contacts = jsonObj.getJSONArray("ampUrls");
for (int i = 0; i < contacts.length(); i++) {
JSONObject c = contacts.getJSONObject(i);
id = c.getString("cdnAmpUrl");
}
}

} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return id;

} //end of convertInputStreamToString
Yes it’s feggari but I think that with two gammas, it’s pronounced fengari. Could be wrong I’m not greek. But it’s too late to change :)
Exactly, and a lot of Spring discussions conflate the things and blurry the image a lot.

Inversion of Control is really good and there are no reasons not to use it. When you have something that can be done in multiple ways, make a small interface and several implementations for it.

The trick now is how to decide what to use. The simplest way is just to parse your configuration file or application flags/arguments in main and instantiate the concrete implementation of your classes there, then pass them down all the way until you need them. This is explicit, simple and clean.

Spring makes you (at least) do two things wrong:

1. Configure the concrete implementations the wrong way. You don't want your users to decide which class implements a certain interface. You want them to decide something higher level, like for example "get crash data via e-mail" or "get crash data in logs". The rest is implementation details.

2. Annotations for autowiring: my feeling is that those are just to go around Java verboseness. Instead of typing "VeryLongName veryLongName = new VeryLongName()", "@autowire" it easier to type. I have always seen it misused (used for stuff that is not Inverted/Configurable) and it makes code more magic. Even worse, you are back at having classes pick their dependencies, even if they are interface implementations. If your classes take their dependencies as constructor parameters, everything is much more explicit.
"And look at these ping times ..."

I would be interested to hear from google (8.8.8.8) how much ping traffic that address gets ...

I know that I will quickly ping 8.8.8.8 as a very quick and dirty test of network up ... its just faster to type than any other address I could test with.
Don't have a video but: packed a bit in a green room backstage (a room with water and snacks), about 25 startups at a time, either muttering the pitches to ourselves or watching the startup on stage on a small TV. High-fiving and congratulating the startups as they come out with their faces of relief. For them, it's over! The room begins to empty. You get mic'ed up, go on stand-by by the stage in front of the dark audience, watch one last startup pitch, and then you're on!
After a multi-hour fight with imgur, which has some of the most BROKEN website design I have experienced (so. many. bugs.), I uploaded the tiny album of snapshots I took.

https://imgur.com/a/CWkeP
Harsh because I said what you said in about 1/20th of the space? In this case curl is the tool for the job and, for many reasons, it's best to keep such tools to a bare minimum, as you correctly point out. I would file a bug report to remove the HTTP parts and update the documentation to show using curl.
The article cites AvE's youtube video and brings up some skepticism about his hypothesis. His explanation is one of several and it's not yet conclusive.
So essentially, the holy grail of a purely "abstraction of an abstraction of an abstraction ad infinitum" AI is mostly a pipe dream? Everyone loves to hope that everything that matters can be built from [insert object here]. Physicists want strings. Programmers want s-expressions or combinators or [choose your poison]. And AI researchers want the post-TLU artificial neuron model to learn it all..

I have always thought that machine learning is the less likely path to artificial human-level intelligence. It makes more sense to create a universe. I know your laughing now - but please hear me out. A digital universe can be merely a bunch of cells on a grid with specified rules for state-space updates. Cellular automata are the most well known example ie. Game of Life.

If we look at the requirements for evolution and the requirements for information stability and movement, we can then proceed to create a 2d universe, tinker enough until we get life. Information stability and movement is mostly just the entities of matter and energy, and their conversion and total conservation. The life may not be all that remarkable at first but we run the universe more cycles, throw more compute at it, and we can push the clock forward quite a large amount. The trick of course, is not to try to make OUR universe. Too much information. Too much compute power required. Too much space...likely without life -- so wasted resources for our goal. And lastly, too many layers - even going from bosons and fermions we have: Protons/Neutrons/Electrons/Atoms/Molecules/Amino Acids/Proteins/RNA/DNA/Single Cells/Multicellular Life Forms/Mammals/Primates/Humans. The last 3 could be considered as evolution - so not all have to be present at the same time. However, all the other abstractions are a real dimensionality crusher. Are they totally necessary for an intelligent being? I doubt it.

Once we find the local cluster of life we are interested in, in our digital universe, we could even do procedural generation instead of full state-space updates. So we can speed up the evolution of our target even quicker.

There's nothing I haven't said here but here's my blog post about this idea if you're interested in reading more: https://scrollto.com/life-a-universe-simulation/
MealSquares. Solid and no soy. 800-1600 Cal per day.
EU overhaul gives tech companies 10 days to share ‘e-evidence’ data with police
> The optical/radar combo can’t see stationary objects well when the car is going more than 30 MPH

That seems pretty damning.
Excellent idea! Congrats on launching, and I love the minimalist website.

Quick note, /ar/ and /zh/ don’t currently seem to work.
If it makes you feel any better I don’t update my windows display drivers unless ive 3 days free either, for exactly the same reason...
I suggest you switch to btrfs and use volume snapshots. That way you can take a snapshot just before you do a major upgrade (like a driver update) and if things don't work out you can instantly restore your system so you can keep working.
Well, unless your sub isn’t dedicated to some “obscure craft practiced in one specific valley in the eastern Alps” (you catch my drift) nuking “things that aren’t wante” is borderline squatting, particularly if the sub is something as generic as “diy”... demanding that one read an FAQ as lawyerly as an EULA on penalty of deletion is not necessary.
Some of my friends are fed via naso-gastric tube. This would be for a maybe a week.

Some of them also take Ensure Plus.

Both are ad-hoc, when needed, under medical supervision, in settings where they don't have much choice.
Just thinking about how many simultaneous breakthroughs occur, and expertise in so many areas is mind boggling. In contrast there are slower periods/cultures too, ie hunter gatherer societies.

You could spend one life to become an expert doctor only to have all that knowledge made obsolete by time.
Non-rooted android, you have to set a static IP for every network and then there will be an option to enter DNS names. They default to Google DNS
Static IP settings are under advanced.
Double: is it opensource?
During development, you can throw money(=hardware) at the problem and get pretty decent results. In production, the startup time should not matter much, as warming of caches etc will take longer than tens of secs anyway.

I guess the biggest issue is restarting services in production, but that is mostly alleviated by not having singular copies of crucial services.
Here's how people interpret his statements:

https://www.youtube.com/watch?v=2vNH-Q7fu7A

Yes, I'd say there's a problem.
Um, support for more than 4GiB of RAM was never the main reason for 64-bit mode. x86 CPUs ran wih PAE just fine. The only reason why you think you needed 64-bit OS was because Microsoft decided to disable PAE on 32-bit Windows.
Agreed, their bluetooth speaker reviews were lackluster. Ended up getting a UE Boom 2 after researching it myself and have been very happy. But for their other guides like travel gear, bluetooth headphones, monitors I've generally been happy with their picks. I usually pick the upgrade option when possible.
> Presumably, Pearlman said, the space station is carrying all manner of hazardous materials not safe for human contact, including fuel tanks with noxious fuel inside.

I buy this argument when it comes to radioactive materials but I never heard Tiangong-1 had a source for them on board. Everything organic (like fuel) should be made harmlessly by the reentry heat. This leaves us with inorganic compounds like asbestos which are dangerous, but still ubiquitous in most parts of the world. So I think this warning is a bit sensationalist.
April Fool's Day: 10 stories that look like pranks but aren't
I agree with you.

The other point that the deletionists miss is that sending people elsewhere just doesn't work; it's never worked. All those mods need to keep /r/diy as a dump for everything they don't like, and setup /r/truediy as their pure diy sub.
Tesla does cosmetic body work they don’t do it in house but they do handle it for you anything more than that they will refuse to touch it and it will likely get totaled by your insurer.

You can ry to repair it on your own and recertify it with Tesla but it takes quite a bit of time and it ain’t free.
This is a cool bot. I wonder how well this concept can work for two way communication: not just GETting webpages but also allowing messaging when it’s blocked.
At macro scale not everyone can retire early. It's a pyramid of sorts. Who is going to wash the rich person's car? Until we have very advance tech, the answer is the person who didn't get lucky and cash out at 25.
No. I mean most businesses that are based on sharing data. They are low margin and not very interesting. I was thinking about businesses like Axicom when I wrote the comment.

Have a ton of respect for David Ulevitch and the whole OpenDNS team. While OpenDNS started with an ad-supported business model, they've completely pivoted away from that. Now that they're part of Cisco, I believe their nearly exclusive revenue stream today is their Umbrella product which is a network security product aimed at businesses. While I don't know for sure, I'd be highly surprised if OpenDNS were selling browsing data.
Fibers (coroutines) solves most of the criticism for JS. Although not part of the language and you need to extend v8, it's a viable option for webservers. I believe that's how the Meteor framework has been doing it years before async/await or even promises was a thing.
For Ponzi scheme, alternative is banks and stock exchanges, not "nothing".
With PHP frameworks, I can monkey patch things by grabbing a text editor and just editing the functions I need fixed.

On the other end of the spectrum, looking at the Windows compile instructions for popular C++ products makes me reach for a bottle, of Advil or Absinthe.

Yes, I can customize any component assuming I have the source (and modification rights), but for some components, the customization comes naturally, with others, just getting a runnable binary is a whole-week ordeal.
Me too. I really don't want built in speakers. They would be a waste of space.

The closest thing I've found to what I want is a projector. But those are inconvenient for other reasons and I can't stand the visual corruption that occurs on a single-cell (affordable) projector.
I have also been running many large scale simulations, using commodity hardware and software. The most likely explanation for this object and its motion and trajectory is a combination of "unlimited fuel cheat" followed by extended asymmetric RCS burn in order to create artificial gravity for Jebedia Kerman, the object's only occupant.

The object is dynamically unstable, creating the wobble observed. However, my data indicates that Jeb actually prefers the "gerbil in a washing machine" experience - and is capable of enjoying it for trillions of years, without interruption.

However, we should be hesitant to approach this object. It is likely armed to the gills with deadly missiles and lasers that serve no useful end other than being fired willy-nilly at anything nearby, "for scientific purposes". This phenomenon is often seen in my models, and its causes remains stubbornly inscrutable. Why fire weaponry into gas giants? Why deploy nuclear warheads into stars? Further study is required.
No, I complain that mods are too eager establishing excessively draconian - and rather elaborate, probably subjective - rules on a general and broad topic sub. Keep it to the minimum (behave, be civil) and that’s that.

Not this:

1 try. No direct images, only Imgur links (first auto-delete)

2 try. No request for advice. (Second delete)

3 try. No what’s this (we have decided that it goes to another sub, there it’s documented in article nn of our faq)

4... (whatever, take your meds, I’ve wasted enough time...)
As far as I know Tesla handles minor cosmetic damage for you they will hand it off to a local body shop but the problem is that anything that won’t buff out can’t be repaired as you for example as a body shop even a certified one can’t get say a buy a new door from Tesla.

The only way to fix a Tesla is essentially via salvage and there are plenty of people who buy scrapped Tesla’s and make a frankencar some might opt to recertify it with Tesla so they can’t get updates and service but you don’t have to do so for the car to drive and even charge from the network.
Dhoni ends India's 28-year wait
See also this reply: The Function Colour Myth (https://lukasa.co.uk/2016/07/The_Function_Colour_Myth/).
Some early driverless vehicle systems experimented with magnets embedded in the road, so it's definitely an option to install helpers to the current infrastructure to improve the safety of the autonomous vehicles.

But who should do that? Should the government allocate budget for that? If so, which manufacturers systems they should target?

Hmm maybe tech companies should not be developing competing standards or they should form some kind of consortium and agree on some guidelines that the government can use to improve safety.

Anyway, this defeats the purpose of driverless cars though because it will turn cars into trains with personal pods instead of wagons.

Just build a mass transit system with trains then, they can be made driverless easily and probably much more efficient than running each pod with its own systems. It works fine in Europe.
would the 3rd-party database be natively open to 4rth party apps, like an open API ? Given that no third-party actor has offered a tracability solution from source to consumer (the only one that comes to my mind is the beef tracability in Europe following mad cow disease, very paper intensive), what has changed that makes you think the industry can pull it?
The corporation vs workers comment seems off.

Tariffs on X generally help domestic X producers and hurt domestic X consumers. For most values of X, production is done by companies which are mostly owned by a small number of people, whereas consumption is done by a much broader group. So one would generally expect tariffs to help businesses at the expense of workers. And aren't tariffs usually advertised as helping American businesses? To say now that it hurts them seems like a weird change of tack.
Tesla handles that for you afaik and even then it’s limited as those body shops can’t get replacement parts form Tesla other than windshields and lights so if you need to replace a body part you’re out of luck.
Airplane autopilot is designed to drive cars into solid barriers? That's news to me.
"I wish that they talked a bit more about their stance regarding censorship. They have a small paragraph talking about the problem, but they don't talk about the "solution"."

I think there's a good way to put this to the test - establish a DNS "mixer" that will randomly direct DNS requests to either 1.1.1.1 or 8.8.8.8 or (whatever) and let the public have access to it.

In this way, Cloudflare would bear some small expense from processing these DNS requests (essentially zero) but would receive no information about the initial requestor.

It would be interesting to run this experiment and perhaps see some real traffic on the DNS mixer ... and then see how cloudflare responds.

Would they block the mixer ?
Using async iteration natively in Node.js
Thank you for expressing all this much better than I could
Nowadays people downvote because they disagree. It's sad because it pointlessly frustrates the poster and kills discussions.
I think China is aware of that. Let's be spectators of this battle.
> Why not use a VPN like PIA?

A VPN gives you little protection against browser fingerprinting, which may alone leak enough information about you to identify you. Also privacy-by-policy is in no way near privacy-by-design. If you want privacy, use the Tor Browser.
I've found unit tests for system libraries like this before. The idea is that you run them each time you upgrade your framework, but in practise you run them every time (slowing down your debug loop) and managers use them to inflate the effectiveness of your actual tests, which is obviously measured in "number of unit tests" rather than %coverage (or, better still, %possible input values to each line)
How do you know it's BS? It is possible to be genuine and honest (I'm not claiming that's the case here).

I'd ask what proportion of recommendations didn't have affiliate links, as a marker.
If all the PR and the CEO keep saying “autopilot”, users will use it as auto pilot. If it isn’t autopilot, it should have a different name.

That is exactly my point.
I will pay you 10K in USD if you make a smart contract on Git. Publicly committed
> "It's just not trendy."

The "thread-per-connection" model doesn't scale. It's simply not resource-efficient in any way.
Harsh because it became negative about the person, rather than the tool. Being immediately negative and critical of the tool is already quite harsh in the real world, but engineers (and especially HN) have a tendency to do this and find it normal. I don't know why, but that horse seems out of the barn. But a glib dismissal of an emotional being's knowledge after they make themselves vulnerable is just that: harsh.

I appreciate your relentless cutting through the bullshit and fluff attitude. I get it, and I do see the value: say it like it is, don't sugar coat it. But in this case, you cut right down to and through a person's flesh. It's different when you talk about established culture or faceless companies, from when you talk about a human being who is literally reading this right now.

Edit: just to add, it seems to me, your attitude is precisely what would make you a good engineer. Bam, here's the problem, fix this, the system is better. It wasn't intended as personal, I don't think. But yeah, at the end of the day, we're all vulnerable emotional beings who crave love and affection. We can be honest and clear, and still a little supportive and loving at the same time :)
Please add a 2015 tag, this is old and has previously been extensively discussed.
Bundler for non-Ruby dependencies from Homebrew
> And there is no better entity in all society than the family unit when it comes to social control

You say that like it's a good thing, when a lot of people believe that the final frontier of liberation is within the family - from domestic violence to the dismantling of anti-LGBT attitudes.

And, just to return to the original topic, the original article does not actually mention children. Even if we constrained social networks to those over 18 (they're currently supposed to be constrained to over-13), it wouldn't put much of a dent in the big problems. It's not (just) kids that are sharing antisemitic memes or fake news about immigrants. The dysfunctional politics of social media is an adult problem.
Everytimee I have to wade into Node, I feel like they are reinventing the early days of programming with cooperative multi-tasking.
Static websites definitely has the advantage of being simple, and stay away from security issues. They are fast in loading too.

But, there are several disadvantages.
Its a pain when you want to grow your website, want content from users. Profile management, login etc.
In Bendigo Australia, and Steve Gibson's DNSBenchmark tells me that of my 50 optimised resolvers (with 1.1.1.1 and 9.9.9.9 added), the two fastest public DNS services I should use are 9.9.9.9 followed by 8.8.8.8. I also add a couple of others for redundancy..
I suspect it scales plenty for what most people are actually trying to do. Especially if the cost of throwing a few more web servers at the problem is less than the extra developer time that it costs to live in the async world. You can have quite a lot of threads on a fairly cheap machine these days.
This is my weekend project hack to learn React.

How algorithm works.
The system calculates Life Path Number and Zodiac sign for your birthdate. The same code is calculated for movie’s crew(for directors, writers, and 3 top stars). Then based on compatibility rules (got them from one of the book about numerology) system calculates match for you and the movie. There are different matching rules but it is not that important. What is important is that sorting is the same for you(not random) and different for other users. In total there are 12 * 9 = 108 personalities.

The formula is following:

(Sum(match(directors))/directors_count * 3 + Sum(match(writers))/writers_count*2 + Sum(match(stars))/stars_count)/6

In case a person has no birthday available — this person is skipped in the formula, so instead of three stars we only count two with birthdays.
As for the formula we use personality codes, we can search for movies with different criteria: director like me, or perfect match(100%).

I do not call it recommendations but sorting. Being a crazy combination of technology and magic still could be a fun way to find a movie to watch.
The bonus feature is a sorting using two dates — so that find something interesting for you and your partner.
AI spy in the workplace of the future