skysight-inc/HackerNews huggingface dataset:
It's a dynamic-typing thing. In some hypothetical static-strong-non-duck version of Python,

if name != '' and len(pets) > 0 and owners != {}

would tell you that name is a non-empty string, pets has values, and owners is a non-empty dict (except it doesn't work, as pdonis noticed).

But Python allows immoral implicit conversions, so that's not what that line means! If name is a function, pets is the value '7' and owners is a list, the test passes.

if name and pets and owners

Would pass as well, but it has the advantage of not implying it does more than it does: all you can infer from the test passing is that none of name,pets,owners are special falsy values.

If you actually wanted to test what the longer line is implying, you'd write something like

if isinstance(name, str) and isinstance(pets, list) and isinstance(owners, set) and name and pets and owners

(don't do this, it violates duck-typing and LBYL)
I agree about university data.

But there is a need for a way to distributed large datasets that come out of nonacademic projects.

For example, the DBPedia data dumps are very slow to download at the moment.
"dynamically typed, bytecode compiled"

I haven't followed Ruby development, but the last time I heard, Ruby 1.8 and prior was a tree-walking interpreter---simple to implement but not fast at all.
I'd agree about Parse, but I'm surprised you would respect Airbnb's marketing tactics. It's well known (http://davegooden.com/2011/05/how-airbnb-became-a-billion-do...) that they did some pretty shady Craigslist spamming.
Plastic bags last longer in landfills than nuclear waste will last in a repository; plastic photodegrades in about 500 years, multiply by a two-hundred-meter-deep landfill and that plastic will finish going away in about a million years [1]. Nuclear waste is fundamentally static; unlike tailings, it pretty much stays where you put it. Coal plants actually produce titanic amounts of radiation, vastly more than nuke plants, thanks to impurities in coal, and that radioactivity is going straight into the atmosphere [2]. Nuke plants don't produce that much waste in the first place; thirty tons a year, compared to millions of tons of radioactive, caustic fly ash [3, 4]. And, finally, the kinds of nuclear reactors we can build these days simply don't produce waste that lasts that long; a good breeder reactor eats anything that's immediately dangerous (short half-life -> lots of radiation) or long-term dangerous (long half-life -> not much radiation) [5].

[1] http://www.slate.com/articles/news_and_politics/explainer/20...
[2] http://en.wikipedia.org/wiki/Coal_plant#Radioactive_trace_el...
[3] http://en.wikipedia.org/wiki/Nuclear_waste#High-level_waste
[4] http://en.wikipedia.org/wiki/Fly_ash#Environmental_problems
[5] http://en.wikipedia.org/wiki/Breeder_reactor#Waste_reduction
http://en.wikipedia.org/wiki/Catfish_(film)

It originates from a movie, and is also now a TV show.
Pretty much every drop of the Colorado River
is owned by someone.

The river is actually overcommitted:

When the Colorado River Compact was drafted in
the 1920s, it was based on barely 30 years of
streamflow records that suggested an average
annual flow of 17.5 million acre feet past Lee's
Ferry. Modern studies of tree rings revealed
that those three decades were probably the
wettest in the past 500 to 1,200 years – and
that the natural long-term annual flow past
Lee's Ferry is probably closer to 13.5 million
acre feet, as compared to the natural flow at
the mouth of 16.3 million acre feet. This has
resulted in more water being allocated to river
users than actually flows through the Colorado.
I mostly use Extjs for admins and such. I would say that it offers little control over the design, structure and HTML compared to something like angular which allows full control over the presentation. Creativity room is important.

The licensing is pretty restrictive also and the prices are big.

I wouldn't say ext has no traction. I see sencha going pretty well and I've worked with extjs since the early days. It just looks more "business oriented"
Probably because security@ emails are routed through their normal helpdesk system which doesn't handle PGP properly.
I'm on the edge of my knowledge here, but your might look at the MQTT protocol [1]. Facebook uses this for Facebook Messenger [2].

MQTT, I believe can solve part of the power issue, as well others. However, I do not know how easy it is run XMPP over MQTT.

I've been evaluating this internally at my company as we explore M2M (machine to machine) communications in mobile.

[1] - http://mqtt.org
[2] - http://mqtt.org/2011/08/mqtt-used-by-facebook-messenger
Odd that the pair of you are nitpicking since I both said "in practice" and gave a command that could be used to produce that screenshot.
Arguing against nuclear is de facto arguing for coal. Current options for renewable baseload power generation are limited. This will with any luck change sometime in the future, but in the present less nuclear means more coal.

Using less power is not a realistic proposal. You should not expect that to be taken seriously.
DOM and CSS performance with Mobile Safari
Invoking init at the start of every method call won't be caught by the compiler if you forget to do it in one spot. Static safety is usually a win - on a big project, someone will do something wrong and it's best if it's caught right away when they try to compile.

I've actually been wanting ways of enforcing arbitrary rules on the structure of my code at compile time...
But your audience is your friends. For many (but certainly not all), that will limit the more extreme behavior still.
I think the point is that `man` pages usually don't have enough examples. I've started switching to `info` for commands I don't know the first thing about. But a step further in the direction of examples would be helpful, especially for newbies.
> Human Corrected Translations for 1 cent per word

"Per word" of the source language, or the target language? Sum of both? What about languages which have a different concept of "words" in written text (e.g. Chinese, Turkish, ...).

And by the way... "cent" of which currency? :)

Edit: I just saw that the list of supported languages does not contain languages with "exotic" types of word boundaries (yet).
> ...why would an hour at the gym be in any way superior to any number of inspiring and invigorating activities such as playing a musical instrument, learning a new language or learning how to draw, volunteering and so on?

...or playing with your kids. Or helping them with their homework. Or taking your SO on a date.

Let's be honest, especially for people with families, an hour is a decent-sized chunk of discretionary free time.
The exercise itself doesn't have to be "fun". Barbell isn't "fun", but I keep going back for the social aspect, spending time with my gym friends. Well, that and the moment of euphoria after deadlift.
For everybody who doesn't know where that catfish use comes from (I didn't):

http://en.wikipedia.org/wiki/Catfish_(film)

Probably itself a "fake documentary": "why the filmmakers would begin obsessively documenting Nev's online relationship so early on."
Yep I get that point. However, how would you avoid extra allocations and maintain safety (no nulls)?
Courage in the Face of Stupidity
Ridiculous. Twitter management needs to start acting like it wants to solve problems.

At this point, there should be a small department to deal with these sorts of issues, another to deal with abuse problems, etc. Way too many things go unchecked and it makes for an unpleasant user experience.

I barely even click on trending topics anymore, because it's spam city.
FBI Indicted Me to Get Source Code, Says Digital Currency Founder
FWIW, It was possible to pass Level 3 with ~5 lines of code changed - https://gist.github.com/ajtulloch/e05f75aaa6ba3b5b0241#file-... for my solution.
Cash costs both the employer and employee more than premiums or HSA contribution. Since cash is considered to be income for employees:

- Employers have to pay payroll taxes on the cash (~10-12% in taxes)
- Employees have to pay income taxes on the cash (~25%+ in taxes)

So an employer would effectively need to give $1.50 in cash to equal the same spending power as $1.00 in HSA contributions.
Let's break Cocoa
I think this particular bit says it all. To get blazingly fast results...

> I can say with great confidence that we all cheated.

But I disagree with the word used.

Pre-computing the hash-table and embedding that into the final binary to eliminate relatively expensive calculations when it matters? That's not cheating, that's effing brilliant.

Hard-core software engineering, that's what it is. There's also a saying that the only people who play fair are those who don't know how to cheat well enough.

Well done.

(edit: typos)
Oh I see. I have been using this https://github.com/jlong/sass-bootstrap
C.getX() is going to be called by many different methods in many classes. This means that each time you unit test any of these methods, you're also testing C.getX() when you should only be testing what the method does.
Imagine your net worth consists of 100k cash, and a lottery ticket which, by your reckoning, has 15% chance of being worth 1m, and an 85% chance of being worth zero. Imagine further that you won't know the outcome until 3-5 years from now.

Let's forget the time value of money for a moment. The expected value (mean value under all possible future scenarios) is 15% x 1m, i.e. 150k. This is more than half your net worth.

Wouldn't you give an investor a discount if he agrees to buy half of the lottery ticket? It would get rid of the 85% chance that you lose over half your net worth through an outcome over which you have only limited influence.

Also, you can buy stuff with cash. Today.
The domain 6minuteworkout.us is available...maybe I will buy it and undercut this guy.
Companies may not care as much about the derivatives. This doesn't add shareholders so it wouldn't trigger a reporting requirement. It does change the employee's incentives but so does a restrictive contract.
Solar thermal is much more efficient but it's expensive
and no one seems to be doing it in scale.

See https://en.wikipedia.org/wiki/Solar_Energy_Generating_System... or https://en.wikipedia.org/wiki/PS10_solar_power_plant
- 30-80 Euro a month for a German telephone answering service. Best decision ever.
- a book keep service, the price depends on the hours worked in that month, a couple of hundred Euro
I could be a bit off base, and to be honest am only now coming to grips with unit testing fully, but I find if something is painful to test my implementation wasn't good to begin with. I'm guessing this is where writing tests first really comes in handy as you have to implement in the right way from the start.
Article looks really good! Look forward to longer read tonight. Minor nit: I'd stick with idiomatic JS style/formatting. Looks like you mixed in styles from some of the other languages (tab indentation, braces, etc.) This is always a religious argument, but I write a lot of different languages, and always just try to stick with the most popular idiomatic way, regardless of whether I care for it or not.
I can see how this can be a really good morning wake me up kinda exercise.
Technical post about our learnings of optimising rendering performance of data-heavy Javascript apps for mobile. If you have any questions, post it here and we will do our best to answer them tomorrow.
I agree with this, as a student at a university that also uses a horrible system. Why add complexity with GPG key encryption or some other convoluted method simply for distributing grades? Just use Blackboard and be done with it in my opinion.
Cold calling conversion funnel metrics and benchmarks for startups
You might not need jquery
Thanks! -- I am intending to write more, but the pace is sloooowww.
Another Stripe CTF3 Writeup
Plato Emoticons Revisited
Have you guys looked at https://github.com/pksunkara/alpaca to generate API client libraries (SDK) instead of spending time on developing them?
Show HN: Typecorder – share replays of what you type
For me jquery is all about events. Making sure I get the event tree bubbling in the correct way across the entire universe of browsers and all its data being normalized is such a time saver. Even their support isn't perfect, but I'm sure its way better than any other event library out there in terms of breadth and depth of testing. The selectors bit is a nice to have, but that is getting easier since its inclusion in dom itself.

Since I code mostly in clojurescript in my home hours any functional idioms from jQuery I no longer use. A long time ago jresig joked about making an oo form of jQuery. It's not that funny now, as it might be slightly easier to wrap an object based lib for all the various compile down to js languages (typescript, coffeescript, clojurescript, scalajs, etc)
Ah -- good point; I forgot about the employer's payroll tax liability (Social Security and Medicare), and also about the fact that the employer's liability is effectively the employee's liability (because otherwise the employee would get all the cash including the employer's tax payment). Thanks for the correction.
How complicated your query have to be to run into these QSA bugs? Don't forget that you are paying a very high performance cost for compatibility. I mean, how many people are still on Chrome 21 and Firefox 3.5?
@carlosdp exactly. Blackboard is all that is necessary.
I have only seen a typewriter and used it once; and that was because it was my fathers and he wanted to show it off to me. I have never, ever, ever seen one in public.
Github starts bug bounty program
This has been established practise in Zope, Plone et al for many years.

http://developer.plone.org/i18n/internationalisation.html#ma...
Second for Real-Time Rendering. As far as I am aware, it's the closest thing to a foundational book on GPU programming for realtime 3D.
That's a joke. Name me one democratic government that voted a race of people into slavery?
Zynga Buys NaturalMotion For $527M
Instagram cofounder Mike Krieger killed a startup
JS isn't particularly slow any more, thanks to the massive efforts invested in the optimization of the various competing JS engines. It is generally faster than Python 3 (http://benchmarksgame.alioth.debian.org/u64/benchmark.php?te...) and not just a little. Just for the hell of it I compared node and python on naive fibonacci. That is anecdotal, of course, but node is 30 times faster. I do agree with you that JS has horrid, bug-prone semantics, but it's impressively well optimized.

I also agree that other languages offer better tools. For instance, Python has Numpy. However, that's written in C++, not in Python. You can write plugins for Node in C++ too, so nothing would stop someone from writing a Numpy equivalent for JS. You might even be able to run it in some browsers through something like Emscripten with a performance overhead of 2-3x (I think?)
Financial innovations that are changing the world more than Bitcoin
IIRC Google explicitly bans employees from trading in any derivatives of the company stock (other than incentive stock options issued by the company). I'd assume that is standard boilerplate at other companies as well.
Presenting: NumberTicker.js A Very Simple and Small NumberTicker script.
I vaguely remember seeing the trailers for this in the theaters and thinking at the time "oh great, another fake 'documentary', just what we need". So yeah, it does not surprise me in the least that it was most likely faked (or at least partially faked). It had been a while since I saw the trailer and I didn't remember the name of the movie, so thanks for putting these two together, I never would have connected the two otherwise.
Prebiotics – Possibly More Important than Probiotics
Simply that nanotech can accomplish miracles. You have to power your nanobots somehow, and you have to dump the heat they create by doing work.
PGP.
Well, that's just fooking great...
I'm not talking about a god damned laptop, I'm talking about digital data. And yes, if someone manages to copy a 4MB mp3 file that you sold to them or crack an executable file you put on their hard drive, then it is tough shit for you.

The government should keep it's greedy little nose out of affairs like this, and make piracy legal. Then maybe people will stop dedicating their careers to worthless games like Angry Birds and actually do something with real impact.

Thankfully, the tech will eventually get so good that the government literally can't do anything about it, so all we have to do is wait.
An Empirical Investigation into Programming Language Syntax
Unless you know every other digit in the card number, I don't see how knowing the luhn algorithm is going to narrow the possibilities of guessing just the two digits.
But what you're describing is "brand advertising". This approach is specifically for things people already use and already understand. If you are trying to sell a new experience people haven't had before, you do have to tell them what that experience is.
Ahhhhh..... Anarcho Capitalism. I remember when I used to believe in that hogwash.
Amid Layoffs, Zynga Acquires NaturalMotion for Half a Billion Dollars
Aside from the excellent reply by saulrh the waste not a problem because there is just so little of it.

(Plus with a bit of confidence and engineering we can burn all the waste to energy, leaving nothing at all.)
Suggestion. Add an option for women model and show some variation for the pushups. Most guys crank at least a few with poor form, but for girls it is much harder if they are not fit
> Brilliant in terms of monetization from the Facebook team.

I wouldn’t call it brilliant. It’s a good move, but not brilliant.
Face substitution – Chrome Experiments
Congrats vasco! Your pitches were very good
Oh I see. Yeah you can just include a badge at the bottom right "Best used/viewed on Mac Firefox or Chrome".

For anyone else, just use jQuery.
"evolving hacker techniques"?

I'm pretty sure that these fancy tactics can be found in The Art of Deception, which was released in 2002. Social engineering is nothing new.
High Fashion Meets Higher Mathematics
Show HN: Secretly – Speak Freely
I really enjoyed the parts of CTF I was able to work on. I didn't have enough time to finish, but I got through the first two levels and the second flag ( gitcoin ) was actually really fun to implement. I got a gitcoin hasher up to 2M hashes/second on a single machine, but even with that I was no where near fast enough to get any coins when competing against the rest of the field.

I limited myself to doing everything using only "C++11". I had to pull in boost_regex since no one has the c++11 regex support, but I am really liking the new standard and looking forwards to what we can get with c++14
The Settlers of Catanosphere
Hmm,

Of my 300+ Facebook friends, one guy consistently posts the stereotypical millenial thing described here of "beautiful hike on the coast with Sharon". If someone else started doing that, I'd probably have to cut one of them off.

Fewer friends seem to have real pictures of themselves and more have cartoons, cats and memes.

This format looks great for presenting what people imagine as a great Facebook post. But I actually think the majority of people don't use Facebook for this - the hippest are already off Facebook and, well, good riddance.
"low technical ability."
I don't think you understand the scale of the US economy.
If your use case simply involves editing text files so that they are in sync with the remote server then OpenAFS does seem to be overkill. SSHFS [1] would be the simplest solution to this. It works well for small files but not well with large ones due to its synchronous nature.

[1] http://fuse.sourceforge.net/sshfs.html
I tried the 7 minutes workout for a few weeks and I noticed significant weight loss and energy gain. The only problem is that my back started to hurt so much that I had to stop. It took me several weeks to recover.
Most ExtJS apps are probably internal admin apps, but I imagine it has decent usage throughout the corporate world. 5 Years ago if you were looking to create a SPA business oriented web-app extjs was the only option really, and at the time it also looked damn nice (against java generated web-apps).

It seems the ExtJS community has fallen off a bit as the company has (in my opinion) put it in the rear-view as they focus on Sencha and mobile. I also never really felt that I have seen what a true ExtJS app could be. The examples are the same as they were 5 years ago. Only the theme has been changed. You get a lot for free with the datagrid and charts but they aren't the only game in town for this.

No one wanted to build customer facing ExtJS apps because of performance issues, hard to style so that it doesn't look like some dull enterprise thing and at the time Rails was just getting popular. I havn't touched ExtJS in a while but building an admin CRUD in Rails would be much easier. The extra features of ExtJS can be gotten elsewhere and easily integrated.

Angular just seems like a breath of fresh air when comparing it to ExtJS, and again most of the components can be found elsewhere.
i agree with all but #2. this seems to embrace conciseness as simplicity or understandability. it forgets the more cardinal value that explicit is better than implicit.
There's so much more to Paper than your existing news feed.
To be more specific, you need progressive overload to gain strength over time, and you also need more time if you hope to get positive cardio benefits [such as improved heart health and endurance]. The time affects your cardio, the load affects your strength gains.

The minimum amount of time you need for good heart health is listed here: http://www.heart.org/HEARTORG/GettingHealthy/PhysicalActivit...

AHA Recommendation

At least 30 minutes of moderate-intensity aerobic activity at least 5 days per week for a total of 150

OR

At least 25 minutes of vigorous aerobic activity at least 3 days per week for a total of 75; or a combination of the two

AND

Moderate to high intensity muscle-strengthening activity at least 2 or more days per week for additional health benefits.

In addition, as your body gets stronger (or more used to a given exercise) you should increase the load, which means either more reps, more sets, or increased "difficulty" (which is usually adding weights, but could be a different bodyweight exercise that targets the same muscle areas but in different ways).

Doing this same set week after week will make you REALLY GOOD at those exercises, and you'll suddenly find yourself blasting through them, which is good. But then you're still weak in a number of other ways.
PC-BSD 10.0-RELEASE is Now Available
Such is life my friend. Developing a sense of authenticity and trustworthiness is what separates good marketing from bad marketing. Being opportunistic is bad marketing. But contrast the above post with someone like patio11. We all know him, we respect him (at least I do). If anyone ever needed appointment reminder software or bingo cards, well I know where I'm sending them. That is good marketing. Patrick doesn't end his posts on HN with a sales pitch. He offers quality content, is authentic and genuine....but at the same time, the work he does in the community here is a form of "marketing".
3D user inferface framework?
and support only a limited subset of the selectors jQuery supports.
In this particular situation, there was no else. I probably added an else clause with an assert return_value == False, as the function call was a virtual dispatch that could have many implementations. Of course, I wouldn't do that for every if/then/else statement in my code. In general, I'd prefer a stricter language that only permitted a boolean as a condition in the IF statement, avoiding this problem altogether.

If you are using truthy/falsey values, I think it can be a code smell that you are not doing enough to catch invalid values up front or should normalize the values closer to their creation point.