skysight-inc/HackerNews huggingface dataset:
Maybe a better lesson to be learned: don't be scum
It seems as if the "github resume" is becoming more commonplace. I am married with a 2yo son. I currently do not have time to contribute to open source projects, and my company does not use git for versioning its codebase. Will having an empty github account effect me adversely these days?
At the very least, it's going to be an interesting time for BTC when new sites accepting it stops being news. That's going to be the next test for whether BTC can carry itself on its merits rather than on hype.
Let me preface this with the fact that I am a Flex dev who ventured into the HTML/JS/CSS stack during the "Flexodus". Cleary, ExtJS seemed to suit my fancy more than the other libraries in the JS world.

As far as why it doesn't have traction, I would attribute this to 2 things. The first being that the JS community isn't really into app development. What I mean by that, is when you look at JS, and you look at languages like Flex and Silverlight, you notice a massive disconnect in ideas. In the JS world, visual components are rarely if ever first class citizens, simple layout tasks are far more difficult than they need to be, and SPA paradigms are also second class citizens. After noticing this and poking around, you find out that the main JS community either doesn't want the solution to begin with, or they seem to be re-inventing the wheel.

The second strike against ExtJS is the cost. I got a license for it a few years ago when I was delusional and thought I could use it to replace Flex. Dropping $1,000 on something when virtually every other tech out there is free is hard to choke down.

Also, it seemed like a major step down for those of us coming from the Flex community. Like I said, with JS app paradigms seem like afterthoughts and each peculiarity wore me down further and further. For instance, if you have a button and you declare a listener function but misspell it, you don't get an error complaining that the listener doesn't exist, you get a blank white screen. Another issue was marshalling data into objects. Whenever I brought back a Classroom JSON representation, the Student objects in the students collection remained unmarshalled. I had to use ANOTHER store to get those to behave as objects. All of these "why on earth is this acceptable" moments led me to believe such features weren't really in demand in the JS community if not resented altogether.
Infographic: Super Bowl XLVIII Matchup
I love that you went to the trouble of using a Unicode black circle character (⚫) rather than a bullet (•). That's some dedication to your circles.
I am Unbabel's CTO. Thanks for your comment. Our goal is exactly to use that feedback to improve our MT systems. We are currently outsourcing our MT, while training our own models (using Moses). Besides generating parallel text, the types of data we will be collecting (e.g. chain of editions performed by each editor on a task), will allow new and interesting algorithms to update the translation models.
Debugging Varnish Segfaults
Opening files in Node.js considered harmful
I am aware that original articles should be submitted, but I think there is a whole new article with added value from a domain expert.
So I hope, in this case it is OK to submit article from thedomains.com instead from the forbes.com.
Coming from the webapp world: How do you work with a team of people committing to the same repository? How do you review code? How do you find solutions to problems when they're not being spoon-fed to you in a bootcamp? What makes an application reliable? Well-designed? Scalable? When should something be improved upon, and when should it be chucked and rewritten? How can an application be hacked? How do you design DB schemas, and query them efficiently?

These are the sorts of things you implicitly trust a developer to know. The bootcamp students I've seen fail to realize that these are even issues, and get a big wake-up call to when they come up short in their first job. As a result, they struggle at the lowest rung in the ladder, as their coworkers cannot trust them to do any reliable work.
Mark Zuckerberg may be the richest 20-something ever
If you have the capability to inject pollutants into the aquifer, don't you already have 80% of what you need to use it as a water source--namely, the big pipe connecting it to the surface? You just need to add pumps, right?

If someone needs a big hole to store poisons in, I'd sort of prefer that it not already be filled with nature's favorite nearly-universal solvent. The water got down there somehow, and geology makes you no guarantees that it will never move that water again.

Also, professional polluters sometimes cut corners on measures to ensure that their pollutants don't actually end up somewhere other than the planned and approved place.
I have a post on the CTF infrastructure that I'm working on; should be out in the next few days hopefully.

Looks like the original level sources have been published, though perhaps we'll do something official as well.
That redevelopment would have been extremely reasonable if they were the mayor of Sunnydale.

Also, unless that were the only school in the area, your question may have been unproductive. The marginal value to society of a commercial installation can be greater than that of a school.
Refactoring Computer Engineer Barbie
Are you arguing that squatting with your knees close together is better for you than squatting with your knees spread apart?
New 3d printer can print in carbon fibre.
> Who says that you have to be able to mock C? Not every class should be mockable. In case described by OP, why would we want to mock cache anyways?

Well it isn't really a unit test if you don't, is it? If you don't mock it then you're not only testing classes under unit tests, but also C's methods. And you're doing that not just in one place but in several different places in your testbase. The same methods. Over and over again.
The book is out of print and difficult to find, so I reproduce an extract here; I hope this is Fair Use:

The ILLIAC IV was a gigantic machine built in the 1970s at the University of Illinois. It had sixty-four processors, each as big as an upright piano because it was built before its time. In fact, they had to use a forklift to plug in the units. It took seven or eight years to build, and the machine was obsolete by the time it was finished. The university gave it to NASA, which promised to use it but had difficulty doing so.

That the project was too ambitious, given the available technology, was not what Minsky meant by the ILLIAC IV mistake. He told Hillis that the concept itself was flawed; it was a mistake, he said, to restrict all the sixty-four processors to doing exactly the same thing at the same time, an expanded electronic version of the Olympic event synchronized swimming. Minsky told Hillis that the processors should be able to operate independently.

"About a month later," Minsky recalls, "Danny came back to me and said, 'Well, I've decided to make the ILLIAC IV mistake.'" Hillis told Minsky that the problem was not in what the processors did but in how they communicated. He said that intraprocessor signals got stuck in traffic jams because, among other things, the connecting wires were restricted to two dimensions. Hillis recognized that a richer connection scheme was required, all the more so since he wanted to hook up not 64 processors but 65,536. The signal traffic would be equivalent to a telephone network serving 65,536 customers who placed a quarter of a billion calls per second. That was the chief technical problem Hillis faced in designing the Connection Machine.

In the end, Hillis and his co-workers at Thinking Machines settled on a three-dimensional architecture in which the processors were connected as if they formed a sixteen-dimensional cube. What this means is that each processor, although directly connected to only 16 others, was never more than sixteen steps away from any of the other 65,536 processors. Moreover, the possibility of a traffic jam was reduced because in sixteen dimensions there are numerous possible routes between any two processors. [1]

[1] From the book Archimedes' Revenge: The Joys and Perils of Mathematics by Paul Hoffman (New York: Ballantine Books, 1988), pp. 203--4.
>I'm one of those developers who thinks that marketing in general is 'scummy' and this article has done nothing to change that perception. I'm willing to acknowledge that there can exist marketing that is not scummy but it's hard for me to think of real world examples.

If you cannot understand it as it is already, you'll only understand it when you stop being merely a paid developer and become a developer that needs to sell the software he writes.

"If you build it they will come" does not hold. The best product can fail (and often has) because people have not known about it, or it was not presented to them in an appropriate way. That's what marketing does.
Yeah, that is a common mistake. Customers are experts on their problems. We are experts on solutions. Good products are found at the intersection of those two circles.

I never believe uncritically what customers say about solutions. And I never believe what developers say about customer problems. Especially when that developer is me.
http://i1.ytimg.com/vi/xECUrlnXCqk/hqdefault.jpg
Nope, I didn't hear anything further on it. Still seems like an interesting event to me, though finding time might be hard. (FWIW, we do similar things within my employer all the time.)
Of course, its cheap advertising...
Bourbon Neat http://neat.bourbon.io has been my grid of choice for the past year or so. It's stupid easy to use, plus I get the lightweight power of Bourbon mixing.

Beyond that, the js portions of Bootstrap are nice, but they're certainly not unique.

My opinion of things like Bootstrap and Foundation is that they're nice, but they serve a purpose that I think isn't appropriate for a lot of uses. I think if you need to put together something fast, they're great.

If you're investing tens or hundreds of thousands of dollars in design, I think it behooves you to build a lot of your components from scratch. I might take a few components from Bootstrap, but I can't really see it being my starting point.

As for an alternative, I think doing it yourself to suit your own needs is the alternative.
Because the nature of the subject requires a fair amount of background. To truly understand the subject and a lot of the approaches a firm understand of statistics, data structures, and even some calculus. Usually by the time someone these subjects down enough for anything substantial in ML then they've seen enough different languages to suss out the general idea of most algorithm sample code.

I'm not saying there isn't room for the easier to understand and easier to read guides to ML. More the better, Mitchell was a beast to read through. Its just the language isn't the hard part of the subject. You are the author of the link, correct? I read through some of it, and its approaches the theory and subject matter in a gentle way which is what matters. The sample code is easy to read. I've written maybe 100 lines of js in my life and avoid all web dev like the plague. Your guide is well written and useful. I am not dogging it at all and please don't take it that way. I think its great!

What I'm saying is if someone is saying to themselves "I would be able to learn machine learning if only their was a guide in X" then they are probably mistaken. The code is easy, the math and theory is what is hard.
Neil Young Concert Video Made Entirely with Mobile Phones
My thought exactly!

Is this accurate, deep water reserves are allowed to be polluted? That doesn't make sense at all, and it's completely insane if it's true...

Even Russia has laws protecting deep aquifers, in fact they're considered cleaner than the surface reserves (that may actually be true seeing as Baikal has a goddamn paper mill on its shore).
If that's true, you probably need to spread your knees apart more, and bend at the hip joint more to achieve full squat depth. Rounding your back == bad.
Because they squat with their weight on their toes and their heels off the ground.
Security issues come on top. But interoperability comes even before, hindering basic ability to communicate.
Honest question as I'm wondering if I could have done something differently.

I have a third-party library that has expensive initialization done inside of its class's parameterless constructor. Once created the library's instance is fully thread safe. Because I only wish to incur the initialization cost once I have a straightforward singleton to wrap the instance:

GetInstance():
hold mutex
if instance is null:
instance = ExpensiveLibraryConstructor()
return instance

Now the code I'm writing code plugs into a framework I don't control. I create a class that conforms to the framework's client interface and the framework creates instances of my class and calls a Run() method. My Run() method needs to be able to make use of the third-party library, so I'm calling my singleton's GetInstance() method there.

Not that it would make much practical difference but ExpensiveLibraryConstructor() needs some environment initialization done before it will succeed so I cannot invoke the constructor in global scope.

Do you know of a better way?
Lighter, Faster, Prettier WebGL
Post-secret differs in a few important respects I think.

1) Its curated. There is someone to separate out the drivel. And because its curated and people know that, they're less likely to send in complete crap.

2) It relies on physical media. It takes some level of effort to make a card and send it in not to mention a small but non-zero cost. It also means that its not instantaneous like most things online.

3) There is no real feedback. There is no direct comment system, so theres no way to feed the trolls.
Get 35k (Equity Free) for your Startup
The mobi version looks great on my Kindle. This is awesome. Great work!
Well, I see what you are saying, but I still don't think this is a strong case against singletons.
Coal plants (and their supply chain) are just as dirty without having to blow up...
Dear Product Hunt, please fix "switch to weekly emails or unsubscribe" feature.
I was trying to switch to weekly emails 3 times and unsubscribe as well.
It doesn't work at all.
This is the answer I've been hoping to hear.
Well worth reading, if only to be someone else for a moment and also to remember that internet is a harsh place. I really feel for this person.
Facebook launches Paper
Looking for mobile app developer
Hi,

I'm part of team working out of Vancouver and Toronto. We are looking for someone to work with us to develop mock prototype for an app concept for humanitarian disaster relief. We have already had meetings with Plan International and other major relief orgs. Would be open to offering partnership stake in future business. Email me at aphillips24@gmail.com
>If PINs are hashed, they can only be issued once — if you forget your PIN, you will have to ask for a new one. But this is a lot more secure:

This is what I was talking about, if an encrypted pin can be decrypted by bank staffs then it can be decrypted by others as well. I was surprised to hear they'll send me the same pin by post in readable format. Its something like, I am the admin of this website and I will know whatever password users will enter, so when users forget their password I'll send it to them via email.

I believe Bank and Financial institutes should apply as secure method as possible. Sending the Pin by post in readable format is not secure at all (given that you cannot change the pin again)
This Is the World's Top-Earning App
Kurzweil believes that being very very small allows you to circumvent the laws of thermodynamics. There's no physics to back this up...
http://en.wikipedia.org/wiki/Heisenbug
WeChat uses Chinese New Year app as a trojan for mobile payments
Zuckerberg makes $3B in one day as Facebook stock surges
I think this is great, i was also thinking of replacing jquery functionality in some of my scripts with native methods and this helps me alot.

One question though, what is the pure javascript equivalent of $(document).on('click', '.selector', function() { // do something });

This is the new jquery .live() replacement and i need it because normal events stop working after async postbacks (eg. from an asp.net UpdatePanel).

Will this code do the trick if i attach it to the document element? Also i need IE8+ support :)

function addEventListener(el, eventName, handler) {
if (el.addEventListener)
el.addEventListener(eventName, handler)
else
el.attachEvent('on' + eventName, handler)
}

addEventListener(el, eventName, handler)
I want to learn web apps. What language should I learn and how?
I'm a business student who has interacted a lot with devs and hackers over the last few years and am sick of not having the skillset to get stuff done myself. What should I learn, and what do you think is a good way to go about learning and practicing so that I can begin building web applications/sites?<p>From what I've read, the following are highly recommended:
Django
Ruby on Rails
Javascript<p>I have some experience with python, css, and html - but none of it is what you would call 'practical' [hasn't been applied to any real projects].<p>Thanks for any advice you can provide :)
Ignorance is definitely bliss because unless we know the facts about how we dispose of waste and what the limits of our natural resources are, we tend believe they are infinite. However, the sad part is also that even when people do KNOW, some don't seem interested in what will happen 100+ yrs from now and instead live the moment. I was shocked to read that we "allow a uranium mine to inject more than 200,000 gallons of toxic and radioactive waste every day into the underground reservoirs", it's troubling.

What we do to this Earth needs to be evaluated on a regular basis by our Gov. officials and in this case, hopefully we can all agree that "deep, unknown potential sources of drinking water [DO] matter" and matter right now.
You know a great way to get a good workout in a short period of time is? Running. You should run for 25 minutes 3 to 4 times a week. There are three types of workouts you should do within this time. Long Slow Distance (LSD), Continuous High Intensity (CHI), and Interval (INT). For LSD, you run the entire time for a long distance slow enough such that you can talk comfortably the entire time. For CHI, you run 15 minutes at 90-95% of your maximum speed and then recover. For INT, you run for 2.5 minutes at maximum speed followed by 5 minutes of recovery, repeating until done. Congratulations, you're now more physically fit than most of the population in less time than the typical nerd spends caffeinating each week.

Source: http://www.sealswcc.com/pdf/naval-special-warfare-physical-t...
You want to mock cache so you can replace it with a trivial implementation that always contains precisely what the test expects it to contain.
... And actually emit more radiation, traces of uranium in coal just go straight up the chimney...
I feel empathy for the OP, for two main reasons:

1) The fact that some people don't realize that JavaScript != jQuery scares me.

2) jQuery born when cross-browser compatibility was a mess and today it still carries that weight. I think nowadays it needs to be more modular and less monolithic.
To be fair though, there was an update to the level 3 README published on 1/25 which made some of the requirements (substring matching) a bit clearer.
Thank you, that's a great answer! I hadn't considered the different community mindset.

I'm curious what you settled on instead of Flex?

You've got me thinking wider than HTML/JS, for something which could be more satisfying (for me): mobile apps could be the way but I need desktop/browser/cross-platform support; Silverlight I've heard good things about but again isn't widely used I believe.
Ahh but that is a mere expression, not an idiom :-)
Manage/upload github releases from the commandline
I would like to add a thought about the dispute about the need of using jQuery.

Let's say we know a consultant, let's call him Bob, who works on client projects. He needs to implement new features fast, and does not want to worry about low level stuff. Once he's done with a project, he moves on to another.

Then, we meet a JS-framework developer, let's call her Alice. She has to weight every line of code she writes because her decision can have have a huge impact on thousand of developers using her stuff. She needs to understand a lot of low-level details in order to make good decisions and ship rock solid stuff.

Now, both Bob and Alice have to decide whether they need to include jQuery in their projects or not. Heck, they need to justify their decisions to their teams / managers.

What's Bob going to say? He will start thinking about what will happen if he does not include jQuery to his project. Well, he will have to implement some of the low-level stuff by himself, and later maintain the code. Probably, in a month he's going to be working on another project and will have to copy & paste the same stuff over. And if there was a bug? Is he going to update all the previous projects he is not getting paid for anymore? If he's smart, he's going to say: we'll take jQuery, as it provides a nice, stable, robust and battle-hardened API. We're going to move faster if we use it, as we don't want to reinvent the wheel.

What about Alice? She will probably have to consider introducing a new dependency to her framework. Is it OK to add those additional hundreds of lines of jQuery code to an already large codebase? Is she going to be able to provide a consistent experience between different (and future) versions of jQuery? Is the core of her application going to rely on an external tool, even if it is rock-solid and lose the potential to make low-level optimizations and have full control? Maybe, she's going to say: well, I'm going to identify the elements that need some of jQuery's stuff and implement it by myself. She will be taking the time and effort needed to test it well and be sure that it works across different platforms.

At the end of the day, both will have made the right decision, even if in absolute terms they took the exact opposite action.

Software engineering is about making decisions, in a given context and moment, for a given purpose. As software engineers, we should not generalize about some of the decisions people have to make. There is no one single truth, it all depends on a variety of variables and factors. Let's be Bob and Alice, be smart and make the best decisions for our projects.
Scientists create peanut butter and jellyfish
Free Dogecoin + Become Founding Member
I don't think you should be downvoted. You raised a valid point and people are downvoting you because they are disagreeing with you. I think pg should clean up downvote abilities for people who do this often via moderation. Like moderators should see a list of people who downvoted what and just one click nuke their downvote privileges.
Box To Host Dedicated Developer Event In March
I gave up on the last level, as I didn't have the time to commit. I'd say this CTF was too difficult/too much work for me. Last time with smaller challenges was more fun. The challenges were interesting in their respective subjects, but maybe they should have been a little bit more condensed in scope, particularly the last 2 levels. Although learning Scala and Go beforehand would have helped a bit.
> I believe the point is that many libraries use about 1% of jQuery. That hardly justifies pulling in the entire thing.

Sure, but if you use a few libraries that all use a couple features of jQuery you still only need to load jQuery one time and everything just works. You may not care if it only works on the most modern browsers, but someone who uses your library probably will.
Would they be as highly regarded if they didn't have his name and personal problems/history attached to them?
Like if they were in a gallery credited to "an unknown artist" next to Picasso's paintings?