skysight-inc/HackerNews huggingface dataset:
I'd disagree on one point. Being a business owner is not easier. We all intuitively know that. He knows that. Getting capital, having an idea, executing (even if you're failing) is difficult.

To get a job, I need to impress the hiring manager, and maybe a few of the engineers who interview me. To open a business, I need to impress a banker, or a VC, or an angel, then I need to impress each and every potential customer. And impressing them is beyond, hey this guy has roughly the right skillset. No I need a feasible idea, a plan. I need to be good with money, I need to know an industry enough to contribute to it, I need the inter personal skills to demonstrate to people I can actually do those things... and then to be successful, i have to be telling the truth.

I'm impressed by a "business owner" because its truly an impressive thing.
Well I know it's a contrived example, but I don't understand the motivation behind mocking an external library's code. That library should have its own tests.

Say I have three layers of custom code: A calls B, which calls C.

If I want to test B, then I want to mock C, and have my test call B similar to how A does. I want to mock C because C is also custom, and if my test fails, I want to know if it's because of bad B implementation, and not because a buggy C might be confusing matters.

But if B also calls D from an external open source or vendor-supplied library, I don't usually want to mock D. That just adds needless complexity to the test, and reduces my focus on my own custom code.

An exception would be if this library code makes its own network call or something - then you might want to mock it to save time.

Anyway, mocked unit tests become far simpler if you maintain the right focus. Use test A to call B (passing in canned fixtures if necessary), while B mocks C only to maintain focus on B's implementation. If you start getting involved in trying to mock external library code, or even internal private methods that B calls, you'll have a bad time.

The advantage to maintaining that kind of focus is that refactoring becomes easier. Want to change the name of C? Your IDE should handle refactoring your test, too. Want to change the implementation of B? You don't even need to change your test at all, just make sure the right values are still there in the return value. Maybe you'd need to add a couple of assertions, but that's it. If you're looking at having to do a serious refactoring of your unit test in those cases, then it probably just means you're still designing your code architecture and things are still really fluid. And in that case, it would make sense that you might have to throw away your test, because by definition it means you are still deciding on what your specifications are.
> isn't this industry slowly turning into just virtualized hardware leasing? After the management tools commoditize, and I think there's a solid risk of that, isn't it just price and DC-location that differentiate?

Well, I don't think it's like aircraft or auto leasing. More like apartment or office leasing -- there's also a property management, maintenance, and operation dimension.

You're not just paying for hardware in a rack. You're paying for electricity, cooling, fire prevention, connectivity, and some level of uptime. i.e. You're paying for not having to worry about a bunch of stuff, so you can focus on your core business problems.

Even with standardized management software, at some point a human needs to go into a cage, or deal with the backhoe emergency. (OK, unless someday Amazon drones are deployed in data centers, instead of doing residential delivery. :))
Shaq-Fu : A legend reborn on indie go go
> 1.5 Low-Risk Tests Have Low (even potentially negative) Payoff

That's the key point for me -- does this test add sufficient value to the test suite to justify it's creation and existence? If it's checking to see if a value got copied over from one object to another, then no. If it checks some logic, then probably yes. Is the code under test used in many many places? Then test the hell out of it.
He needs to do the exact opposite: instead of clearing his mind, he needs to preserve what is in his mind. I often have this problem, and in the middle of talking to my wife about the new drapes I have to sprint off and grab some graph paper, scribble out my thoughts and then go back - otherwise I know I won't be able to hold the conversation. Sometimes if I'm in the middle of a though I don't even realize someone's talking to me for several seconds, and I have to sort of rewind in my head. It's not that I need to say no, it's that I wasn't even expecting something and my brain wasn't ready to switch.
The Convergence of Big Data and Small Data
It is not a prime because every integer greater than 1, must be made by a unique product of prime numbers, or is a prime itself. If 1 were prime, that would not hold true.

proof: http://en.wikipedia.org/wiki/Fundamental_theorem_of_arithmet...

edited
Neat! This stuff actually works sometimes!
I really don't understand this. I would like to subscribe, but I can't because only the organizations I'm part of but not admin of are paying...
Nice! We just built a feature in our app using the deprecated chart service that Google offers. This looks like a much nicer implementation. But I lack a few things. Here are som ideas for improvement:

- Let me choose the colors

- Let me add or remove bullets on the line charts

- Let me control the axes

- Let me add a grid

Love it! Keep it up.
Medical Quotes | HallOfQuotes.com
Never go to a doctor whose office plants have died.
Schwarzkopf Products For Hair Care
My favorite example of English's willingness to do noun-noun compounding and Spanish's corresponding unwillingness is on the Boston subway:

Passenger emergency intercom unit at end of car

Sistema de intercomunicación para pasajeros en caso de emergencia situado al extremo del tren

There are several things going on there that make the Spanish longer than the English, but one is the obligatory use of explicit prepositions relating the nouns to one another in Spanish. In English terms, the Spanish says

System of intercommunication for passengers in case of emergency situated at the end of the train

See also this list written up by John Cowan of some languages that do noun-noun compounding and what the implicit meanings of such compounds can be:

http://recycledknowledge.blogspot.com/2009/12/noun-noun-comp...

Notice that not all types of compounds are understood in every language, even for languages that sometimes allow this!
Is Mobile Dead?
So? Nakamoto can spend money on security too if he feels like it. As a cryptographer he's surely familiar with the adage that 'tehre's no security in obscurity,' and I'm only surprised it's taken this long to ID him.
While the quote may not be verified, the guy directly said he was involved.
"Intrusive" implies that you have some knowledge about the context in which these ads would be displayed, which would certainly add to this story. What's your source?
What about good old Occam's Razor? Seems pretty obvious to me that if the details in this article are true (and they likely are) this is indeed "the" Satoshi.
Well, I don't see why Travis-CI, for example, would have to go on a paid plan to be part of the program. They are first class users of the GitHub APIs but it make no sense to be on a paid plan for them.
You missed the point. The magazine has already done as much damage to his privacy as it`s possible. Destroying this thread accomplishes nothing.

Thus, my next argument that you must be worried about his Bitcoin transactions (which might not remain anonymous for very long). Which is a valid concern but impossible given his notoriety now. There are just too many curious people already digging.

You're implying that, because of my initial argument, I do not care about his privacy. You're wrong.

Being realistic on the Internet seems to be an thankless task.
False.

The London Underground, the earliest subway system, was initially built as a patchwork of private railway systems that were later brought under government control.

Most of the subsequent systems (e.g. Paris, Moscow, St. Petersburg) used the London system as a reference.

So, mass transit did in fact arise as a result of private entrepreneurship. The reason subways don't exist in places where it would be 'desirable' is because of government interference, or simply poor economics.

And I'm not even a libertarian.
I remember seeing the gun at air shows as a kid. It was fascinating.
What about prime integers? Aren't they a product of 1 and themselves?
I think it's fine to do social login, as long you only request the most basic of permissions: email address, name. If I see "post on my behalf" from a company I don't already trust, I'm not giving you permission (even if you say "oh, I never will").
That is an odd story, any idea who the author is? I find it hard to lend any sort of credence to an anonymous blog posting. Or did I miss some giant "this is who I am" link somewhere?
I fully agree, UX-wise the replacement feels like a huge downgrade. No filtering comments vs. posts and no sorting options are my biggest gripes.
...sell to someone that isn't Spotify?
I like that it's free.
Corona Hints At a New Ad Network With New CoronaCards
+1, Great idea and execution. Wondering, do these charts work well when used in emails?
Given that San Bernardino county and its neighbor, Riverside county, have a reputation as a "meth capitol" of California, my guess is that a substantially higher number than average of people within easy driving distance of this man might fit into that category. Perhaps not "dumb", but "desperate" enough.
Maybe not entirely the same, but I'm a happy user of BitTorrent Sync (https://bittorrent.com/), it keeps all my machines in Sync flawlessly (Windows, Macs, iDevices ...) There's even a client for Synology, so you could create some folder on your NAS and sync it with your devices .
I think it deserves a little more explanation

That is probably why they included the hyperlink.
Does Angular.js slow down your site?
"It's a dumb ideology that falls apart with literally any amount of thought", except that it is not libertarianism. Before putting any amount of thought into demolishing a "dumb ideology" you should probably put some amount of thought into correctly defining and characterizing what that ideology is. In your terms, libertarian's view of government is more along the lines of 'Everybody should be allowed to do whatever they want as long as what they do doesn't violate the rights of others'.
No, in fact, it's not the same with bank deposits. Of course you don't get back the same dollar bills; frankly, that's an offensively specious false analogy. But when you deposit money into a bank account, you still own that money; if you were to close your bank account tomorrow, you'd get a cheque for the balance.

Social Security, on the other hand, is a "pay as you go" program. When you contribute money into the Social Security trust fund, it is used to satisfy payments to current recipients. If it's still solvent and operating when you retire or become disabled, then you can expect to receive benefits similarly (though, technically, retirement/"old age" and disability benefits come from different funds).

Moreover, if the fund were to go insolvent — or Congress were to shut the program down — tomorrow, you would have no recourse. (Whereas with bank deposits, you have recourse at least up to the FDIC insured maximum.) If you renounce your US citizenship, or decide to fund your retirement yourself, you don't somehow magically get back the money you contributed, and you're still subject to payroll taxes in the latter case.
Post an image using your Gmail account to tumblr
This is what I think of whenever someone talks to me about certifications...
Probably it has been flagged because it's full of speculation.
You really should make that clearer. We have a GH Ent. account, and I was curious about what this might offer me when building tooling that we use internally. Nothing on that page gives any real clue. And the link on the Registration page redirects you back to the same page you were just on moments ago. Or at least make a developer friendly page for those that don't grok marketing text.
Sorry, forgot about that type of shrinkwrap. When I said shrinkwrapped I had this in my mind: http://images.sodahead.com/polls/001669275/910390199_1_packa...

Not sure if there's a generic term for it.
I had a similar situation as @adrianpike. *have started a couple different things at hackathons that became side projects. They were honestly more of a distraction then a real project though. If you enjoy it and learn something by continuing to work on ish, then it's probably worth it.
Hi all! I’m currently working on a product called Betty (http://trybetty.com) that allows users to schedule completely within email without the back and forth.

I recently opened up the product to a public beta and I’d love to get some feedback (good or bad).

Try it out here: http://www.trybetty.com

1. What do you think of the product?
2. What is the one feature would you like it to have?

Thanks in advance!
And you can't just go:

struct code_reviewer *qualified_code_reviewer =
(struct code_reviewer *)malloc(
sizeof(struct code_reviewer));
assert(qualified_code_reviewer != NULL);
At first I thought this might be a developer program to help you run developer programs. Which might be interesting.

Instead it seems more like an airline affinity program. Like, congratulations you get baggage tags.
Surely the individual who set up the system for the Creperie would have done a test transaction first?
I'm gonna disagree with you! Well, I actually agree about ruby libraries, but the ruby standard library is the proper comparison here, which in my experience manages backwards compatibility and documentation of edge cases rather nicely. The (many) changes to the language itself since 1.8 have nearly all happened in backwards-compatible ways. So maybe the ruby community has a more flexible attitude (I've honestly never used enough external python libraries to have a good comparison point), but I don't think it's fair to say that the language itself is.
In this case, it's actually not hair-splitting; see my reply to your comment's sibling. You both demonstrate a fundamental misunderstanding of how Social Security works.
Rackspace Cloud has both persistent disks for VMs (on SSDs in RAID 10, so fast and reliable) and an S3 like storage system called Cloud Files. Sounds like that's the combination you want?
HomeMarks v3 Launches
Welcome to the 3rd iteration of HomeMarks! My personal bookmarking application that I hope changes the way you work on the Internet. Read the nerdy details...
I used Snap for an animation on my homepage[0], though that was a relatively simple thing. My impressions of it were generally good, although there was a bug or two with version 0.1 that I was using that caused issues in some browsers, requiring me to move to the dev branch. I see they've released 0.2 now, which should have the fixes.

[0] http://kronopath.net/
On the contrary. Unit testing is exactly for exposing that sort of thing. (Actually, I see more problems with cute off-by-one bugs than null pointers per se, but still.) They should not be thrown away.

There are ways to do it and ways not to do it, though. A good framework should be exhaustively unit tested. Individual components that use that framework should be lightly unit-tested (rather than having the framework heavily mocked) and more attention should be spent on integration/acceptance tests.
Any company that has both the economic ability and incentive to acquire The Echo Nest would have the same potential to be one-sided in their acquisition as Spotify.
This has been happening since the sixties.

As soon as you automate the current IT roles and responsibilities, a new layer of possibilities, heretofore impractical, becomes available.

Like an onion, each successive layer covers a larger surface area of activity, which actually INCREASES the amount of IT work available - plus there will still be jobs maintaining the "automatic" systems in the layers down below.

My only fear is that maybe one day people will be satisfied with the systems they have and declare "Enough!", halting any further enhancement.

Until that day the computer industry will continue to grow.

Fortunately human beings are rarely satisfied for long.

So maybe one day you won't be a programmer. You will be a technician who spends their day translating user requirements into a language the the AI has been trained to understand, dealing with ambiguities, resolving conflicting requirements, indiciating what's important and what's incidental.

Which isn't really that different from what we do today.
That glosses over things too much.

Tautological would be like testing the getters and setters of a DTO. Unnecessary.

But testing the return value of a function that accepts parameters is not tautological if the function actually has a nontrivial implementation.
Type-safe format strings should never be mixed with plain strings, constant strings, byte strings, unicode strings, batteries strings, byte array strings, char array strings, string buffers or any other type of string supported by ocaml. Keep your types pure and never mix them with any other types. Never. And you will never have any problem. And these python developers are lunatics. It is preposterous to use 'if' condition on a Date object and expect anything good. Idiots. They should have at least written a type-safe wrapper.
Only tangentially related, but when did DigitalOcean redesign their website?

I think my initial dislike is due to it being changed, but there are tons of minor usability issues that I never noticed on their old website.

I'm happy to see a view for new articles in the tutorials database [0], but at the moment it doesn't make any sense. When I hit it just now, an article from 11 minutes ago is above an article from 1 minute ago. Not only that, an article on the 52nd page says "less than a minute ago". From clicking around, it seems like some process has touched every article recently and all those times, and how they are sorted, are meaningless. Also, at the moment the new and tending view gives the exact same outcome, at least for the first page.

[0] https://www.digitalocean.com/community/articles
After an AC-130 was shot down in Iraq, they only fly at night.
I have essentially a static IP (A 'dynamic' IP with a 6month lease that stays the same on renewal and follows my account regardless of where I live), but you're super fucked if for some reason your IP changes. I usually set it to the /24 I'm assigned from.
Really appreciate the feedback. You're absolutely correct about the recruiting angle.

Hackathons are a great co-founder dating process until the idea gets pregnant.
Is it weird that police officers read the news?
"Tradecraft" is a general word meaning "the craft-knowledge involved in a trade"; it just isn't very well-used out of a few specific contexts.

"Craftwork" is another such word, being "the craft produced as the work of a trade, or the process of applying one's craftsmanship to produce work."

Both, I think, are useful in a programming context. As programmers, we do craftwork, and we need to know our tradecraft to do it well--where tradecraft is separate from plain fact-knowledge (it's more a set of intuitions picked up with experience), but is also separate from raw craftsmanship (which is composed of things like willingness-to-say-no-when-told-to-ship-something-unmaintainable, but which doesn't cover the trade-specific knowledge required to say what "unmaintainable" looks like.)

"Uncle" Bob Martin's writings about code craftsmanship (http://blog.8thlight.com/uncle-bob/archive.html) are exactly that--teaching coders about what craftsmanship, in general, is. He doesn't really talk about tradecraft, just about encouraging coders--who already have implicitly learned tradecraft--that they should be considering themselves craftsmen, and applying their tradecraft.

On the other hand, for all the twee style of The Codeless Code (http://thecodelesscode.com/), it's basically a set of parables that do teach tradecraft.
Unfortunately, people don't have the time or the energy to investigate the minor behavioral details of every company they buy from. Thus, even if you are a tremendous asshole, it's not overly difficult to conceal this from the public while you go about your business of crushing competitors.
Why? Travis has tons of closed stuff running their paid product. So they are probably paying customers anyways.
1 RPM HDD
Is it 1 RPM since you might rotate the entire tablet?
INADA Naoki's argument [1] is succinct and insightful.

I feel zero value of non abelian group should not mean
False in bool context.

() + () == ()
"" + "" == ""
0 + 0 == 0
timedelta() + timedelta() == timedelta()
time() + time() => TypeError

[1] https://mail.python.org/pipermail/python-ideas/2014-March/02...
Calculate your age in years, days, hours, minutes, seconds in ruby
You should aim to learn languages that are different. The point of learning very different languages is that you can start generalizing in ways that make mastery of future languages easier.

For example, Python has something called "list comprehensions". These might be interesting to a new programmer, but if you've used a functional programming language before, you have already used something more general (list comprehensions are essentially a syntatic sugar for a couple basic FP functions). Same with many other things like iterators/generators, which are a special case of coroutines. Etc.

So if you're familiar with functional programming, you can instantly understand Python's list comprehensions, whereas someone learning Python as one of their first languages might have trouble with them or might not be aware of the various constructs they can get away with.

So you really should seek out languages that are very different. As a point of comparison, I wouldn't consider Python, Ruby, Lua, Javascript to be very different from each other. You should try harder than that. But it does pay off and it does get easier as a result.
The sound of the GAU-8 main gun is something you have to hear to believe. If bad intentions have a sound it's that gun.

This is going in the quotes file. I logged in just to upvote you for that.
Everybody has varying levels of comfort with the amount of risk they're willing to take. There's no need for regulation. Let the companies operate how they want to operate and let people decide if they want to do business with them. We don't need bureaucrats telling us the level of risk we're allowed to get ourselves into.
Which means at least a year. Maybe two. Then there will be... changes. Little ones at first. Happens every time.
How are you screwed? You can always login to the console in the web admin and change it
https://developers.google.com/chart/terms

Again, Chartserver has had a number of stays of execution. Officially, we're killing it in 2015, but it would surprise me. Usage numbers just haven't been what you would expect from a deprecated product.
The complaint is about the system that allows to do that. While the system is in place, somebody's going to be the beneficiary. If the system were to be destroyed, then nobody - including the people complaining - would get fat off it. It's like if you just took your money out of your wallet and threw it on the street, I'd tell you it's not a sound financial behavior. Would then it be hypocritical for me to take some of that money laying in the street? I personally would be reluctant to work for government unless having no other option, but I understand people who do while still thinking government should be less invasive.
I've been using BigV for this -- http://www.bigv.io/ -- based in the UK and run by Bytemark (who are one of the few hacker friendly hosts out there -- they support projects like Debian, OpenStreetMap, XBMC and my own Libre.fm)