skysight-inc/HackerNews huggingface dataset:
Very hopefull, thank's for informations shared
Nope I guess not.
How Software Mistakes Can Cost Real Users Real Money
Thank you for doing that.

I try to only ever apply to jobs with salary range posted. Although as a developer is becoming increasingly hard to find those posts
So many implementations of the same thing reminds me the JavaScript/Widget library rush several years ago, the majority of them will be forgotten very soon, long live the projects from the giants
I'd highly recommend not managing a hiring liar.
It is worth it though because of the much better error handling in Promises and the ability to use async/await which makes error handling even more easy to get correct.

I'd suggest making all functions that take callbacks also return Promises to make the transition easier:

async function fetchFirstUser(iswhatIwant, callback) {
const safeCallback = (user) => {
try {
callback(user);
} catch (e) {
console.error(e);
}
};

try {
const user = await knex.first().from("users");
safeCallback(user);
return user;
} catch (e) {
safeCallback(null);
throw e;
}
}

You can put this in a utility (and I'd recommend standardizing on Node's callback style):

async doWithCallback(promise, callback) {
const safeCallback = (error, result) => {
if (callback == null) {
return;
}
try {
callback(null, result);
} catch (e) {
console.error(e);
}
};
try {
const result = await promise;
safeCallback(null, result);
return result;
} catch (e) {
safeCallback(e);
throw e;
}
}

async function fetchFirstUser(iswhatIwant, callback) {
return doWithCallback(knex.first().from("users"), callback);
}

At some point you can start warning when callbacks are passed in, then throwing, then remove the argument.
Genius. Would be great for India.
Your comment got me thinking: in the past, the main ways of learning were through lecture and reading. I wonder if live lectures have always been as poorly efficient as they are now. With the invention of audio recording, video, internet etc... I could see how our modern ability to concentrate on one long topic have been reduced. I think back to Greek and Roman times when oratory was a larger part of education and I presume (perhaps without good reason) that the listening skills of the audience was greater.
This seems like such a "get off my lawn" tone for an article.

Audiobooks don't really work for me. Maybe they work for other people, if so good for them. Maybe it doesn't work as well for them as reading the actual book would, but surely it's better than not being exposed to the material at all no?

Perhaps there is something to be said for people spending more time letting their minds wander and ruminating about stuff rather than self-distraction. But that necessitates an argument for silence and boredom, not an argument against Audiobooks in particular.
Now I can kill those apps that kills my data, this is sure gonna save money.
I think people are getting hung up on the speedometer for little reason other than it's a departure from the usual placement of the cluster. In traffic you go with the flow. With little traffic you might keep an eye on the speed but most of the times it's in an area you know so you have a good idea of what speed you need to be driving at. On the highway you set the cruise control. With Tesla eventually having fully automated driving the speedometer won't matter at all.
or you don't hire them
The argument isn't that you can tax the people holding the debt.

The argument is that you can tax someone who owns valuable assets or productive capacity of some kind. That person will then need to acquire dollars to pay the taxes, boosting demand for dollars.
Terror attack in central Stockholm
I read somewhere about some sort of cuda or opencl transpiler, but not sure of the details.
The bill also makes it illegal to "rely on the salary history of an applicant in determining the salary, benefits or other compensation for such applicant during the hiring process, including the negotiation of a contract" even if you find out without asking.
But by your own words, access to private info was granted back then only because of where we had to store it while traveling. We now store our information on encrypted supercomputers that fit in our pockets instead of in our luggage, open for all to see.

If you truly feel we don't deserve and shouldn't expect privacy, I hereby demand that you immediately post your entire medical history, SSN, full contact list, passwords for all of your social media accounts, full text of every email and sms conversation you've ever had, your full browser history (porn and all), and links to every file in your cloud storage services, all to this public thread for everyone to see. Go ahead, I'm waiting. You have nothing to hide, right?

You see, it's not about expecting more privacy, it's about expecting them to fully respect the privacy we already enjoy when sitting at home.
This is kind of a tangent, but some of your examples (patch my roof, fix my plumbing, paint my house) touch on a topic I think about often. I think there's been a decline in "handiness" and self-sufficiency, at least among white-collar workers. But I'm not sure it's entirely bad; I think it's just a different mindset.

I'll use myself as an example. Growing up, I helped my dad do most of the maintenance on our house & 7-acre property. We brought in experts sometimes, but we'd typically take a crack at it first and could usually handle it ourselves. So many weekends and evenings were spent on these projects like replacing toilets, installing hardwood floors, building sheds, painting, cutting down trees, etc.

I've noticed that as an adult with a house and family, I am much more likely to call in a professional. I'll still do the quick and easy stuff, like replace a ceiling fan or maybe a bathroom faucet, hang some blinds, etc., but once a project looks like it'll take more than, say, 2 hours, I'll find a professional. For example, I use a yard service for my yard that is about 1/15 the size of my childhood yard.

Sometimes I feel stupid paying others to do things I can do. I know my ancestors (especially male ancestors) would find it ridiculous for me to pay someone else to do something so basic. But it comes down to a cost-benefit analysis.

For example, I recently paid someone $800 to install flooring. It took him and his helper 2 days to complete the job. I could saved that money by doing it myself, but to me, it was totally worth it. They're pros; so what took the two of them ~14 hours probably would have taken me at least 30-40 hours. That's roughly 4-5 days of non-working time, weekends or PTO. Like everyone else these days, I work a lot; so my personal free time is precious. $800 is worth less to me than 4-5 days of time to spend with my wife and kid, or I could spend that time working and at my billable rate, make a substantial multiple of $800. And the pros almost certainly did a better job than I would have.

If I had done it myself, I would have learned/honed a skill, but how many times will I need to install flooring in my life? I'm glad I could do it in a pinch, but it's not a skill I really care about mastering.

Of course, my dad was a c-level exec, and he came to a different conclusion. I can respect the self-sufficient approach, but I don't place a ton of value on it. And that shifting mindset seems to be true for many of my friends and acquaintances who are under 40 or so.
audiobooks are the best way for me to take in information, and thankfully my weirdo brain, while very very very bad at processing written words, can process spoken words quite well. I'm usually listening to an audiobook on 1.5 speed most of the day, in fact I'm listening to The End of Power by Moisés Naím as I write this. :)
The strongest pitch is when they turn the page and realize you've got numerous real world experiences in what they want. Even more than what's on the first page ;)
thanks. it helps you manage your data usage
Marissa Mayer has a nursery next to her office. If she were family friendly, she'd have her kids in the same daycare as the rest of the company.
NYTimes: https://mobile.nytimes.com/2017/04/07/world/europe/stockholm...
A friend of mine uses an app to read at the same time that he listens to the text for studying. He argues that in this way he doesn't loose concentration and that he can choose at which speed he wants to go.
At the time of joining - is usually for background verification. Most companies don't even care what your last pay was. Even if you are paid higher, they are going to play in their range.

However, during negotiation, if you lied about your previous pay just to get a better hike - you would get flagged, may get fired and get yourself listed into an unofficial blacklist. Its more of an ethics issue than just a pay mismatch.

> Some companies have a policy of NOT giving more than a 30% hike from your previous salary
These companies are telling you "loud and clear" - "we don't care about talent".

There are other companies that would pay "fairly" as per their bands - even if that means a 100-200% hike
Isn't the solution simple here - to build levees or damming the river? I know levees are expensive but given how critical this area is to China's development, the cost is justified. I mean, entire New Orleans region is below sea level and is supported by levees.
The iPhone 7 Has Arbitrary Software Locks That Prevent Repair
And that's how product hunt became unstable after reaching the critical mass
Couldn't agree more. Chernobyl killed 28 and both Three Mile and Fukushima killed 0. Still people are so afraid of nuclear reactors. This and the opposition to GMO food show that pseudoscientific scaremongering is extremely effective in a scientifically illiterate population.
It doesn't go that far, but this bill does specify that asking about salary history is allowed if at the same time you communicate a proposed salary range.
OP here. My first draft of the intro was a long-winded history that went all the way back to Win16 thunking. It was too long and detracted from the point of the article, so I cut it down.
Ultima VI
Well, Marissa Mayer can afford to pay someone to take care of her twins. The typical small company or early stage startup exec, not so much.
Ask HN: How do I launch my app without it being copied?
I've finally learned to make iOS apps and made a working (but buggy) demo of an app idea I've had since I was 13 - 5 years ago - that I believe has the potential to make a big difference in a certain industry. However, I am worried that if a beginner like me could make a demo of it in 2 weeks, with just below 1K lines of code, then as soon as I launch it it will be copied. I don't believe the idea is eligible for a software patent - so it's not protectable at all.

If I launch the app on the App Store by myself then a more experienced programmer/company will probably make a better version and I won't be able to stay ahead of them in features. I could ask investors for money before making it public, so I can scale it really rapidly before someone can copy it, but I'd probably get laughed at by most investors for saying an app with 1K lines of code is worth anything.

Because I'm naive, I thought I'd ask someone else who may have faced a similar problem. What should I do?
Considering the state of commercial operating systems in terms of respecting the rights of users and their privacy, both of which are security issues, our computer security is for the most part compromised and will be for the foreseeable future.
The Syrian Gas Attack Persuasion
I take it that by 'exploited' you mean 'circumvented'. I would like to be more assured than "has never happened before." And, "low-burnup is required?" Separation of Pu239 and Pu240 is physically impossible? It may be hazardous and difficult but seems possible. If there is a physical reason Pu240 depletion is impossible, please let it be known.
It's interesting that there aren't more companies doing 30-35hr weeks. With the amount of sentiment like this on HN alone, I'm surprised there aren't engineers going out and starting shorter-work-week companies.

I know of Treehouse which has a 4-day workweek[0], but I can't think of any others.

I can think of a few reasons why companies wouldn't do this ("leaving money on the table", force of habit, investors, scheduling with partner companies, ...) but it's still surprising there aren't more founders taking a Basecamp-like "think different" approach towards working hours.

[0] http://www.businessinsider.com/treehouse-ceos-32-hour-workwe...
Intercepting and modifying packet requests in lieu of the API is likely against Yelp ToS.
> the probability of them actually being in a weapons store the rebels held, to me seems if not equally probable

I'm far from an expert here but I read in one report that Assad generally doesn't store the Sarin gas in its final form as it's highly unstable but instead stores one of the precursor chemicals which takes little effort to convert. Doing this would mean a strike on a warehouse wouldn't release the deadly gas.

I think it's slightly less probably given that the rebels would have had to made a conscious choice to convert the chemical to Sarin and store it. Do the rebels have any history of using it?
He's making the point that this is a tool. A weapon, but a tool. It's a very targeted tool, requiring manual delivery to an individual system. Getting upset at the CIA having this is like getting upset that they have assault rifles. Sure, they can do horrible things with assault rifles, and agents could even storm a US household and kill citizens. But as much as that would reflect horribly on the CIA, the fact that assault rifles exist and they have access to them is not indicative of their intent to use them on US citizens, regardless of whether it has happened in the past. Their charter means that these tools have valid reasons for existence under their normal, expected operating parameters.
I Spent Two Years Botting on Instagram –  What I Learned
I find it very difficult to read physical on the subway -- too loud, too many distractions, too much shifting around when people enter/exit.

Audiobooks are perfect for public transport.
How do your kids adapt to social interactions with kids of their age, spending 24/7 with your family might be tiring and in young age there is a big difference between 3 and 5 year olds, I think they need to interact with kids of their age and different cultures to be better adapt in future life, that's just my opinion, I might be wrong?
The download page gives a brief summary:

http://dlang.org/download.html

More information on the wiki (also linked to from the download page):

https://wiki.dlang.org/Compilers
> I then show public examples of the CIA not only using hacking tools against Americans, but against the very oversight framework that's supposed to keep them in check.

Again, you're not arguing that the possession of the tools, which this article presents, is the bad thing. Your issue seems to be with the hacking of congressional computers, which I agree, is a bad thing.

The scope of this article (and the previous leak) is showcasing the tools and abilities of the CIA. I argue that we want the CIA, the espionage arm of the US government, to have the ability/tools to conduct espionage. Now how they apply those abilities/tools is up for debate and scrutany.

Good god people, this is literally the anti-encryption argument, with the tables flipped.
What modern operating system doesn't quite happily run Python 2.7?
You are correct that other offices matter and do not use the electoral college but the one office that does use it is exactly the one that we are discussing in this thread (recall, it began with "thanks Jill Stein voters").

It's also the case that many other offices are intentionally gerrymandered (US House, state congress) to ensure voters' choices do not matter, whereas the presidency is gerrymandered by happenstance due to a compromise made centuries ago that is no longer relevant.

And yes, opposition votes in deep red states or blue states are counted as cute protest votes much in the way votes for "Mickey Mouse" or "George Washington" or "Jill Stein" are. Votes in line with the state past 50% + 1 simply do not effect the final total or outcome of the election at all, they are thrown away, and what's important is that they never could assuming, e.g. California going blue is a foregone conclusion. Democrats have to do the bare minimum and show up to win California, and Republicans with Alabama, but voting for president doesn't really mean much in those states. We have a scheme were elections are extremely close most of the time, but as far as your vote is concerned it is with overwhelming probability literally thrown away and not counted towards that total. It essentially guarantees voter apathy.
It is the least encumbering, very permissive and very well regarded in both oss and corporate circles. Really a good choice to stick with it.
Just to be clear, this is a fork (takeover?) of http://pysolfc.sourceforge.net , which is an approved fork of http://www.pysol.org/ .
Walter, thank you so much for finally doing this! I am so happy that Symantec finally listened. It must have been really frustrating to have to wait so long for this to happen. I have really been enjoying D and I love all the innovation in it. I'm really looking forward to seeing the reference compiler packaged for free operating systems.

Thanks again, this news makes me very happy!
Now this really needs to be running Basilisk II and a System 7 ROM. Hook up a Bluetooth keyboard and mouse, and you're set.
I prefer the other one which converted human waste to clean drinkable water, electricity and ash.

They've gone quiet for too long
OrderedDict is just a stdlib import away in Py2.7.
Audible subscription and wireless, noise canceling headphones. Listening a book while taking one hour walk from office to home is a pleasure.

Noise canceling headphones are important for me as they cut down the traffic noise. Audible subscription makes buying easy and removes the "is this book worth this much" decision.

One problem with the audiobooks is that you can't flip through the pages or search to recall something. Would be nice if there was for example audio+kindle combo subscription availabe.

Multitasking does not work for me. If I don't rfocus on the book, I miss it completely. In a sense this is meditative experience. With regular book I just pause reading, with audio book I try to keep other thoughts away.
I have an invoice generation script that outputs html, and I unfortunately have to open it in Chrome and "print to pdf" manually. If you control styling, you can usually set it to look the way you want. Also browser HTML headers/footers can be disabled.

wkhtmltopdf output never looked quite right to me.
Fuck that. I make a living wage too, tyvm, and I like my career. Why shouldn't the dad be the stay at home parent?
Stockholm Truck Attack Kills 3; Terrorism Is Suspected
I'd argue that these are lagging indicators. The code that's deployed and being exploited now was written years ago, using languages and tools developed decades ago.

If you read to the end of the article, it discusses recent DARPA projects that are addressing the tools and languages component. And most of this stuff is still in heavy development. Even assuming that we get it sorted out soon, it will still be years and years before most deployed software is built on these improved foundations.

So yes, things are starting to get better. But it will take a long time before we see the results.
if net neutrality fails would google become an isp then?
This was something that always rubbed me the wrong way about the language, and it was an impediment for adoption for me (for D, but also Shen and a few others). In this era, there is no excuse for a closed source reference compiler (I could care less if it's not a reference compiler, I just won't use it). I'm surprised it took this long to do this, it seems like D has lost most of its relevance by now...relevance it could have kept with a little more adoption. I wonder if it can recover.
I promise I won't make more money. I promise, my word is my bond.
ScrumOps: Scrum.org and DevOps Institute Partner to Transform IT Organizations
DMD compiles really fast. At the level of Go. As the reference compiler it always has the latest features.

LDC compiles to fast code and only slightly lags behind the reference. It might even catch up soon.

GDC compiles to fast code and supports many architectures in theory. It lags behind the most and architecture support also requires a ported runtime.
In short: it is extremely permissive, very similar to the MIT license but even more so (the license does not need to be included with binary copies).
How Data Visibility Has Changed in the Age of Automation?
A few days ago, I had downloaded and installed Little Flocker, but I couldn't purchase a license -- I kept getting told that the page or site was under maintenance. So, every couple of days or so, I would check in to see if the page was back up.

Today, I went to the page at https://www.littleflocker.com/ and instead got redirected to https://campaigns.f-secure.com/xfence/

I was wondering what the heck was going on.

Now I know. Thanks!
That's the basic tutorial on their website.

No it isn't. The basic tutorial raises a dialog with a close button that the user clicks.

Try raising the dialog, advancing a progress bar, and closing the dialog - all without user interaction. Eg, you're showing progress for an activity that should block out all interaction. It just doesn't work.
Exactly. I have came to this conclusion thinking by myself. I do agree with what you said based on my personal analysis.

essence is :

"the patterns across fields that allows smart people to be good at more than one/many fields"
We liked Boost because it is "corporate lawyer approved". You can make both open and closed source derived works from it.
> Anyway, why would you be fine with such tools being used on non-US targets? Would you not be outraged if an equivalent tool was used on US targets by a non-US government?

This logic does not work.

Would you be okay getting shot if you broke into someone else's house? No. But other folks have a right to protect their houses.

The US has a right and constitutional duty to protect itself and it's citizens. You can argue about the best way to do that but it's a non-starter to say that we can only do the things that we would want other countries to do us.

Using that logic, we would get rid of all of our weapons.
This.

I've mainly worked for small companies, and have had two situations where way more than was appropriate (or, you know, legal) divulged.

Neither caused me problems, but I made a point of getting back to @last_employers to point out that the next person they do that to might actually sue them.
The cost of the extra lookups goes away entirely if one then extends the design in the ways already discussed elsewhere on this very page. Instead of the pipeline passing along a stream of bytes, which every program then parses into a stream of filenames, the pipeline passes along a stream of objects.

Then "sort" becomes a utility that sorts a stream of objects by a chosen set of fields; "slash" becomes a utility that inspects the "file type" and "file name" field of an object and makes an appropriate "display name" field; and "ls" becomes a utility that outputs a stream of objects that have "file type" and "file name" fields, straight out of the directory entry. "ls" is the only part of the pipeline that looks at the disc.
Developer-focussed Video Analytics
Knife-wielding robot may help forensic scientists
Thanks for pointing this out! Was due to some unfortunate scaling happening because the image was just slightly bigger than the CSS for the page would accomodate; now fixed.
Share You Desk “The Best Developer Desk” Contest
Primitive technology: termite clay kiln and pottery 11 minutes