skysight-inc/HackerNews huggingface dataset:
How long of a line are we talking here? Most coding standards are 80-120 with maybe some at 140.

If you are say 4 levels deep the additional characters used over 2 spaces is 8 characters. You got whopping 8 additional characters to make an even longer line of code (code to be interpreted or read) and screwed over the people who need the indenting.

If long lines are a problem than just refactor. I agree long lines are hard to read but there is a simple fix. Either refactor or just put in a line feed (or however the PL deal with long lines aka \ for bash or python).
Java implies it needs the JRE, so add that to it as well. Of course, Electron probably relies on OS-specific UI libraries as well (although only a little), which should also be considered I guess.
Is the benefit of making it a separate tool related to making better/more APIs or avoiding graphical shortcuts made in video games? Or other benefits?

I realize that Microsoft wouldn't have access to GTA5 source code, but Microsoft Studios could have other games, that have already made substantial work in terms of graphical representation and performance, thus saving time for more API work, if the platform could be reused.
Our goal is to put an end to that kind of crap, where publishers charge $100-300 for a text and then gouge students another $50 on top of that for a homework system.

Most content on Top Hat is free or around the $20-40 price range, with most of the money going back to the author (vs. publisher model of paying a 5-10% royalty)
Tesla P100D App v3.0 Review
It was quite common in Niklaus Wirth languages, for example:

PROCEDURE & Init(id: LONGINT);
BEGIN
IF id # NofPhilo-1 THEN
first := id; second := (id+1)
ELSE
first := 0; second := NofPhilo-1
END
END Init;
Sorry about that, my blog is self-hosted and never gets much traffic -- roughly 100x general volume
Magento CE is an absolute nightmare but very powerful once you get to grips with it.
> I don't see anything in your link, by the way.

Ah sorry about that; I am in China and internet is very slow & often broken (HN is very fast though). Probably the image did not (fully) upload. It was an error telling the application crashed. Just the empty default form after pressing run.
Wow private keys just sitting in plain sight o.O
ProductHunt has been a pretty interesting one. There are so many novel ideas floating around there that it's hard to not get inspired there!
Launch video, including onboard footage of stage seperations and satellite deploys: https://www.youtube.com/watch?v=sQMCw-jMQlo
They need to publish traditional textbooks as well if they are going to compete. Maybe with images and QR codes for the parts where video adds something to the text.

If they don't then they will be Just Another Multimedia Learning Company.
Reminiscing about days spent digging through http://www.blooberry.com/indexdot/html/index.html
AWS has a healthy profit margin, excellent growth prospects, recurring revenue, and significant lock-in. AWS is expected to do 15 billion or so in revenue for 2017. As an independent business it would trade on at least 10 times revenues, so that means AWS comprises 150bn out of the 400bn in market cap.
It's basically pure insult. It has no semantic content beyond "I wouldn't want to work with ESR, he has a massive ego and he supports gun rights".

(Adding a throwaway compliment does not significantly affect this.)

The gun rights thing in particular is... if you want to say "I don't like guns and I don't want to work with anyone who supports gun rights", that's up to you. If you want to say "anyone who supports gun rights is probably a bad person to work with", you need to back that up. "I don't want to analyze most of his views(1) and how they reflect his personality traits" is the second one, and does not back it up.

(It's hiding behind some ambiguity and hinting, but I think the broad intent is quite clear. Possibly it was intended as closer to: "ESR's position on guns is crazier than simply supporting gun rights, and this makes him probably a bad person to work with". In that case, there are two things that need to be backed up: what specifically does ESR believe that is crazy? There are a lot of links on that page. And why does that make him probably a bad person to work with?)
Show HN: Where to get beta users for your startup
Exploring the question: Remote vs. In-office engineering teams
Hi HN,

I made Neuron because as it took me two months to really have fun playing piano. Two months is too long for most people, but I suspect almost everyone would enjoy having fun with music. So I built a way for people who know nothing to express themselves musically. You don't have to learn anything to have fun with Neuron.

Every month the loops will refresh, guaranteeing that as I get better at producing the quality of Neuron will rise as well.

I wrote a little bit more than this on Medium, read that here: https://medium.com/@Jackrometty/neuron-68014073c2af#.7kjxhvu...

Also, I'm a new developer so this was actually a big project for me. I imagine HN will relate more than twitter when I say I had trouble learning CORS and understand requests better so I could link a simple database to github pages. I appreciate any feedback. :)
Nicely done!

Also, really love the idea behind Bolstat. You should consider building a competitor comparison page so visitors can quickly see the difference between Bolstat, Rollbar, PD, Runscope, etc.
Why do you change the way you write code with Scala? Scala is both functional and oo, Go is also like this except it is minimal at being both
Someone Created a Startup Just like Mine and Here Is Why That Is Awesome
Delphi is used a lot, desktop has first class Win10 support (store included) and mobile clients are cross-platform. Also fast server code -- now coming to Linux. Skype for Windows is still written in Delphi! But I'm very biased
Anything that suspends processing and waits for the OS to provide some data (file, time, socket, or piping usually) should be behind a callback. Beyond that benefit is more limited (in a single threaded app like NodeJS), since you are no longer using async to do othe stuff while you wait for resources. However, if the computation locks up the thread for too long, it cannot service callbacks, and so timers might be delayed, heartbeat messages might be skipped leading to dropped connections, and other bad stuff. If that's the case you want to either split your large computation into many smaller ones (allowing other callbacks to fire in between) or offload the computation into another process or thread.

In other words, it's an engineering decision, based on the expected consequences of the overall design in the context of understanding how the event reactor works.
The same way crypto obscures your text.
For home projects, the Starter edition is free.
Does your code look like the code in the example? With the useless else clauses? And without sensible extraction of standalone functions?
New Mac malware pinned on same Russian group blamed for election hacks
>As another commentator pointed out, it's a little unclear what blue team even should be doing.

If the primary tools of offence are making use of addictive technology and manipulation, the defencive move is making technology available to help people overcome addiction and give direction to their own lives.

As you say, self directed manipulation, and I would add introspection. Maybe FOSS tools for cognitive behavioral therapy.
B&M stores still have use cases, but the question is, after online retail has gobbled up all it can and people only go into a store for one of these edge cases, whether what's left is enough to sustain the fixed overhead of running a business like WalMart. I don't think so, and apparently Buffett doesn't think so either.
If you watch him critically, you'd see there's more depth than the cartoon character that you typically see. I don't agree with his politics and methods... but he isn't some bumpkin. He is genuine in his fakeness.

Supporters hear the (real) problems he describes and a commitment to fix it. The details are where it breaks down.

Many public people who are good at what they do are amazing at flattening complex problems and making people understand and agree. Bill Clinton in his prime was capable of that -- he had a Steve Jobs like magnetic force.

If you look at some of more right-wing political people, many of them lack charisma, but use speech and body language techniques that are taught to evangelical pastors and others and are really effective in those audiences, but come off creepy to others. Kinda like how Mormons are awesome telemarketers because of skills acquired on missionary work.
CMS with automatic JSON API for “thick client” front-ends, written in Go
This is where syntactic sugar can be helpful. CoffeeScript can make the example a lot more readable by removing the unnecessary braketing when the last argument of a function is a callback (common case in node.js). The only thing that's still ugly is the .bind() applied to a function, which somewhat messes with the style. Other than that, this makes callbacks flow a lot more naturally when reading source code.

(Of course, as it is for all stylistic considerations, it's a matter of taste, not absolutes.)

fs.readdir source, (err, files) ->
if err
console.log 'Error finding files: ' + err
else
files.forEach (filename, fileIndex) ->
console.log filename
gm(source + filename).size (err, values) ->
if err
console.log 'Error identifying file size: ' + err
else
console.log filename + ' : ' + values
aspect = values.width / values.height
widths
.forEach ((width, widthIndex) ->
height = Math.round(width / aspect)
console.log "resizing #{filename} to #{height}x#{height}"
this.resize width, height
.write "#{dest}w#{width}_#{filename}", (err) ->
if err then console.log 'Error writing file: ' + err
).bind this
“Talk to Your Friends About Zoning”: A PSA Campaign for Your NIMBY Neighbors
Ask HN: Moving on from web development
I'm a computer science student who has been working mostly on JavaScript(node and front end). I want to change paths as I feel too confined in the web dev space. I want to switch to something entirely unrelated to creating CRUD apps(including mobile apps).

I have tried to read the code of and contribute to Open Source projects like LLVM and MongoDB but its very tedious to get into. For almost the whole past year I haven't learnt anything new or atleast worthwhile. I tried getting into Machine learning but the Math was overwhelming.

What should I learn so that I can become competent for jobs other than web development?

EDIT:
GitHub: https://github.com/ayushgp
Ghostery is Acquired by Cliqz
"Because the FDA restricts the importing of drugs from overseas if a version is available domestically, patients are stuck with the new, expensive version"

They restrict the importing of drugs overseas because it takes around 3 billion and a decade to get a drug approved by the FDA. Drug companies also only have 7 years to make up the cost of the 3 billion (before the patent expires).

If they allowed the importing of drugs, overseas companies would just create generics based on all of the R&D the US company put into it and they would never be able to recoup their costs.

If you want cheaper drugs, make it cheaper to get FDA approval. This will also add more competing companies and market forces will push the prices down.
Yes, some are very easy to implement, just look at squarespace's customers. One could build an NLP interface (bot?) to configure squarespace sites and this would take you quite far. Not sure I'd call that AI though.
You're welcome.

My experience over the years with 'work for free/discount and I will tell all my friends about you' rather quickly led me to realize that having someone tell all their friends that I will work for free was not a good way to find paying work. Most gig people learn this pretty quick if they didn't know it intuitively already.

I don't think that profiles are a viable first order alternative to the time value and fungibility of money. My Twitter might be worth the investment required to curate and manage it over time because there is evidence to suggest possible positive effects.

On a site like CrowdRaising there's an long causal chain:

make profile -> volunteer on project -> complete projects -> solicit positive feedback -> update profile -> volunteer on project -> complete project ->..... get substantial benefit

It is lengthy, unproven, imagined, inherently fragile, and largely out of my control. I'm probably better served by investing in Github or Linkedin etc.

User stories that depend on high levels of commitment to the platform are probably not sound premises for business decisions. Crowdfunding sites are built around two sound psychological models: casual users who will swipe a credit card for something that looks cool and a few people who don't encounter much ethical friction taking their money.
Something that annoys me the most about top hat is not the product but the company:

1. almost every month they enter their info for the HN Who's Hiring thread.

2. BUT they don't seem to ever respond apart from something automated about receiving your resume (this is not just from personal experience, I've seen people generally comment about the no real response)

3. They advertise the same position over and over again (mobile developer, backend/frontend/fullstack dev)

and finally to top it all of, I don't think they really care about being called out on this at all.
Ask HN: Hash in url identifier?
I noticed on links to Medium and other posts like Backchannel they have some form of hash with an identifier at the suffix portion of the url

example #.3vyus8660

Why did they choose a hash and how is it used?
Thanks, good idea! Will definitely do that!
You're right that there are still too many profs who use Top Hat for really basic stuff like polls in class and taking attendance - thankfully that's in the minority these days.

Our goal is to get profs to at least take these baby steps to get started and then to swap out their $200 textbook with content on our platform, which would save students a ton of money and create a much better experience in the process.

Here are some representative examples of content that's on the platform:

https://tophat.com/marketplace/openstax/concepts-biology/

https://tophat.com/marketplace/english-composition-i/

https://tophat.com/marketplace/publicspeaking/

https://tophat.com/marketplace/generalchemistry/
Github provides a public firehose for events[0]. So it's possible to hook a process to read from the firehose, and look for commit events and then match file contents against the list of API keys.

[0] - https://developer.github.com/v3/activity/events/
A Model-Based Approach to Project Rescue
> The new application ELB supports HTTP2.

Do you mean the new DO LBs or something else? The DO LBs are not referred to as 'elastic' / ELBs.

I've just set up a DO LB and it's HTTP 1.1 all the way.

Edit: have confirmed with Digital Ocean: no HTTP/2 support (there's HTTP/2 passthrough, but you can't terminate there).

They do support ECC certs though.
The 3% is there due to the fact that Swift Demand is trying to be more than just another currency. It's also supposed to be able to act as a way to perform normal day to day commerce. This 3% fee is needed to provide buyer and seller protections as well as support the development of new features for Swift Demand. I'm assuming you are asking why you want to use this over Paypal from a vendors point of view and there are several reasons.

The first one being that Paypal isn't known to very trustable and often freezes funds. The second is that I intend to eventually make a very developer friendly API that lets vendors add Swift Demand to their websites very easily. Early merchant adopters will also have the potential to set it up by allowing people to essentially sign up for their service for free by letting people set up a Swift Demand account and automatically transferring Swift Coins to the vendor for a subscription based service (This means merchants can sell their products without ever requiring a user to break out a credit card which could be a potential large source of extra revenue).
> It is still possible to get tickets by buying them as early as you possibly can. You trade your time for money that you would have otherwise paid the scalper.

That's what this article is about though, that it isn't possible to compete when scalpers have bots, no matter how early you try to buy them.
Yep. Out of the starting gate, Apple forced tight constraints on background and multi-threaded processing---so tight that the first versions of the iPhone OS couldn't support some types of application that the Android OSs could unless Apple wrote the program and could take advantage of the private APIs in the OS. But the advantage to that B&D approach was responsiveness and battery life, relative to an Android OS where any developer could write an app that would spawn an ill-behaved background thread and suck your battery.
I'm sure you can find some philosophy professors that will appreciate bigger screens and faster computers; that wasn't the point.

This is about the semantics of the word 'professional' and avoiding confusing a 'professional' in the white-collar-job sense, and a 'professional computer user'.

Set by whom? Where?

Well, apple don't define their terms formally in a Dictionary, they're subject to interpretation. I would say they've historically marketed the Macbook pro as a computer for 'professional computer users', not 'professional' in the white-collar vs blue-collar sense of the word.
I've written tons and tons of code in Delphi and remember it fondly. A few issues I had with it toward the end included Hjelsberg turning it into a kitchen sink, me too language, much like IMO the direction C# has gone in, and walking into projects with tons of business logic right behind the forms, empty except blocks, and codebase full of warnings when compiled. Fix your warnings people.
Is it too much to ask NASA/ESA to launch a constellation of CubeSATs with LIDAR? Alternately let Google do it and add it as an overlay to Google Maps.
I used Clipper back in the day. CA ruined it when they bought it. I was waiting for CA's new product "visual objects" in the meantime Delphi shipped and I've been using it since Delphi 1. I think it's unparalleled for building desktop applications for Mac and windows.
Try building a few example CRUD apps and you'll be forced to learn everything you need to know along the way.
why doesn't the author get ALL of the money their content earns?

without content what good is your distribution platform?

tophat is run by greedy unskilled morons.

you're all idiots.
Heres a curated Dublin Tech Calendar: https://www.startupdigest.com/digests/dublin
Maybe it's because I'm a C programmer and not familiar with js but I felt this article did a very poor job of describing "callback hell." I still don't have a clear idea of what it is.

The author shows some code with lots of nested if/else clauses and claims this is bad because it blocks; fair enough. Then they explain what callbacks are and that some people have trouble understanding the asynchronous nature.

Then they immediately go into an explanation called 'How do I fix callback hell?' and meanwhile I'm scrolling up to see if I've missed something.

Perhaps people unfamiliar with this particular problem are not the target of this article, but that doesn't really make sense to me.
Your efforts in being reasonable will surely not be appreciated by the denizens of the internet. This is the era of "the accusation IS the evidence" for most.
Actually the PC market has stopped shrinking and is now about steady:
http://www.gartner.com/newsroom/id/3468817

'Running' can be pretty good, even when it's not a native app - there are plenty of successful web apps, including a few written by Google.
Learn C++ and low level programming, it's a good path! Fairly easy to get into when you already know JS and you can gradually begin to work on more complex systems.

If you want help getting started with some open-source C++ projects, maybe include a link to your github or something in your profile so maybe someone will reach out.
I encourage people to remember that we're peaking into a complex situation with no context and try avoid leaping to conclusions about either the company or the woman in question.

It could be as simple as a SJW crusade attempt that frustrated the CEO who wanted his team focused on delivering a product (Google itself can't fix its gender imbalance and it's throwing millions of dollars and dozens of staff at the problem) so he axed her for refusing to stay on point.

It could just as easily be serious sexual harrasment and abuse of power. I'm down here in Miami myself and let me tell you...the culture is no where near the progressive level of the other big cities I've lived in. I made my wife turn down a significant job offer because it would of required her to report to my boss and I refuse to let him in the same room as her.

The fascinating claim is that their promotional material was wishful thinking. I've personally been hoping that they were sitting on some cutting edge breakthroughs and have been following them closely hoping for something awesome after the disappointment that Occulus turned out to be. I'm deeply saddened by this news as regardless of which way the sexual stuff goes it seems unlikely she would be willing to make that allegation publicly if it wasn't true to her understanding. That leaves me hoping that she just wasn't in the loop on the good stuff.
There is no Wikipedia page for "Sanathan Dharma". The closest I can get is Sanātanī, but it appears this term does not cover significant elements of Hinduism. Wikipedia says that this term was popularized in 1921, but etymonline says "Hinduism" has been present in English since 1786.
https://en.wikipedia.org/wiki/San%C4%81tan%C4%AB

Hinduism is ancient, but a living, evolving, and extremely diverse religion. To an outsider, it looks more like a cluster of religions than a unified religion. So it's hard to name appropriately. "Vedic religion" is mostly used for historical traditions more than living ones.
HR: We hire the best of the best! Are you a passionate code ninja that lives and breathes code?! Show us your github and bitbucket profiles and enter the Craigslist Hackathon today! We promise we'll consider you.. and then go whine on HN about how hard it is to find a truly qualified candidate.
Please don't perpetuate the else silliness of the (intentionally bad) first example there. Stick a return in front of the log calls, lose the else, and unindent all following.
Not different from a full time working week of 40 hours when the boss asks to work 10 hours every single day, only more extreme.
Its rampant across FOSS these days. People should from the hilltops how many lines of "old" code they have eradicated.
Are there plans for implementing weather simulation? Things that might force course adjustments or reduce visibility would be a useful addon to the simulation. I know one team when I was in school would have loved something like that when they were making a drone meant to scout forest fires and navigate through smoke.
So Google is going with a DartVM on this one. Dart is cool and all, but why DartVM? It's the same restrictive model we have with Android (dalvikVM) where you can only develop with languages that can compile down to Java bytecode. In this case, however, we will be using languages that can transpile to Dart source instead! Why not JavaScript engine? With the current movement with WebAssembly, I see a lot potential use cases. The biggest point being the ability to code in any language that compiles to wasm. The engine could be exposed to communicate with the OS directly or sth. If they are going to consider V8 alongside DartVM, then that would be cool. I truly hope they don't repeat old mistakes.