skysight-inc/HackerNews huggingface dataset:
In 2013 I briefly contracted for a PHP shop. The hiring manager would invite people in for an interview and present them with the following code:

mysql_query('
INSERT INTO `products` (`name`, `descriptions`, `price`)
VALUES ( '.$_GET["name"].', '.$_GET["description"].', '.$_GET["price"].');
');

Then he would ask, "how do you feel about that?" He claimed this question weeded out a lot of potential candidates.
Goto for cleanup is not bad IMHO. I use it extensively...

$ cd redis; grep goto *.c | wc -l
251

All the instances are like:

goto cleanup;
goto error;
goto badfmt;
goto numargserr;

In this context is easy to read and makes the code structure better.
"inject TCP FIN packets"? really?? that would be like making a public statement saying "HI WE ARE THE NSA FUCK YOUR INTERNETS"

Sorry but no, that's not the way they do it....
Those are easy to block with a firewall policy. DDOS is the only way to sustain an attack.
You know that apple has been baning every bitcoin wallet app right?[0]

[0]http://www.pcworld.com/article/2095060/apple-removes-blockch...
It's also about gearing. I used to own '99 and '01 Corvettes about 10 years ago; I could easily cruise at 80-100mph on Illinois interstates with the engine almost at idle because of the transmission's gear ratios (6-speed manual).
The Questions That Computers Can Never Answer
Here's the auth mechanism the parent is referring to:
https://www.quakenet.org/development/challengeauth

mIRC and irssi can handle it through scripts.

Contrast SASL, which is supported in every client I've used: https://freenode.net/sasl/
Very good question. Quite interested in this too and I get the sense Apple would nuke the app even if they didn't specifically write a rule against this.
Fortunately people aren't rational.
Well here is one alternative: allocate temporary strings on a stack basis. Have some higher level functions reset the stack pointer. So now things are allocated temporarily by default, and only in the (hopefully) rare case where you need a long-lived item do you promote it to long lived. Promoting could mean copying the string to the heap, or it could just mean marking it so that the stack cleanup mechanism skips it (so perhaps you have a linked list of temporary items or something similar).
Hey Bemmu! Glad things are going well, man.
I have a suggestion for your time-to-first-product problem. Find a candy that has a long shelf life, and during your normal packing process, pack and set aside shipments to be used as 'Welcome Bags'. Then, all you need to do when a new customer signs up is label and ship them. Even doing this once per week on your non-shipping weeks would significantly improve the average purchase-to-candy delay. Then, to avoid shipping them 3 packs in one month, you can just omit them from the very next ship list. What you're effectively doing is splitting the purchase delay into two chunks instead of one long one. This also means people's experience will improve over the first two months - they'll be getting candy more and more frequently for the first 3 - 4 shipments.
FBI Looking to Buy Malware From Security Vendors
Rather than smashing $500 into oblivion, wouldn't it be better to sell it and donate the money to some worthy cause, you'd probably be able to get better publicity coverage for that too. I can't help but feel disgusted with people smashing their iPhones out of rage over an app, throwing away hundreds of dollars, while many families can't even afford to eat. Sig, first world problems.
The Power Of Kendo UI And Straight Up HTML
Thanks for the update! I've seen this as a pretty inspirational "lifestyle business," particularly since you seem to be doing well with it despite having to deal with a physical product.

The "welcome envelope" was what immediately came to mind while reading about your initial delivery delay, but you make a good point, that extra cost could definitely cause margin problems. Also, it potentially opens you up to people taking advantage of that up-front freebie by signing up multiple times with different information.

Since it sounds like people are interested in potentially paying more for premium candy, perhaps rather than (or in addition to) multiple subscription levels, you could consider allowing customers to purchase much pricier one-off high-end products. Running those once a week, assuming the volume was fairly low, would only add a couple relatively mild days of work per month, for something with a potentially higher margin.
They always have, these just happened to slip through the net. If it were a real effort by Apple they would have all been done simultaneously. Blockchain.info evaded the reviewers by presenting them with a version of the app that did not allow spending (allowed) and then changing the server behind it to re-enable the sending features. This is certainly breaking the rules, which is why they didn't update their app again- they knew it wouldn't work a second time.

If it was a systematic ban, there wouldn't be some left — https://itunes.apple.com/au/app/coinjar-for-iphone/id7252098...

> Sadly, Coinbase, Gliph, and CoinJar have all been sacrificed on the altar of innovation.

Interestingly enough, nobody bothered to check this before putting it in their blog post.
I honestly don't see an issue. if you're sharing links to images on imgur, you're denying them ad revenue and just leaching bandwidth. I'm all for adblockers, but complaining you can't direct link images is kinda...
What makes attachments a pain?
I mean social, as in pre-Facebook social, you know, >1 person interacting and engaging with each other, their environment, and sharing an experience in the real world, e.g., looking at the same screen, seeing the same thing, implicitly sharing their mutual interests through queues like "click on the details for {movie title}, I would like to see what it's about". I know it's confusing that I didn't mention pushing each movement and thought to Twitter and Facebook and Tumblr, but there used to be a time when social meant a singular level interaction between humans within physical proximity to each other.

Your rebuttal does nothing to improve my original point. You and all those around you are digging in their phones doing things unseen by everyone else, and also maybe even excluding those who do not have a device, or even just haven't downloaded that specific app.

I have a perfect solution to bridge that gap. But that's for another time.
> SDS is a string library for C [...]

Function overloading does not exist in C.
agree, these practices were standard and around before microsoft, but doesn't mean we still can't dislike companies for doing it.
I think you're making a rather tenuous argument here. Just because existing monetary systems involve work, and a new alternative system also involves work, doesn't imply that such systems always must.
Implementing, Abstracting and Benchmarking Lightweight Threads on the JVM
> how the hell did Microsoft go so wrong

Well, at some point the software becomes too big for one person to understand, or even a small team of wicked smart architects to understand.

Think about how complex Windows 8 is compared to MS-DOS. How much more it does, how much more hardware it supports. It's many orders of magnitude more complicated.

When a high-quality software program gets beyond a certain size, you by necessity start to lose the uniformly high quality that marked its earlier days.
XCP would rely on the blockchain, and therefore it's atomic transactions are executed. However, the ones putting the transactions in the chain, are not XCP miners. They're bitcoin miners, they don't care what extra information you attach. And by extension, they don't care if they violate some rule in your protocol.

This basically means that XCP-looking transactions will appear in the blockchain, however, they will be invalid, because by the rules of XCP their outputs would already be spent.

In Bitcoin this is an invalid transaction, and it never enters the public ledger. This important because, it allows you to shortcut the path to figure out if an address has unspent outputs. Figuring out quickly if an address has unspent outputs or not is important for miners (they need to produce valid blocks), and it's important for participants to transactions, because it means the recepient can quickly verify that the sender is intending to make the transaction, and that a transaction, sufficiently confirmed, is not double spent. The recepient relies on the work of everybody who produced a block. And in turn, everybody who produces a block relies on the work of everybody before AND on the work of everybody after (who bases their block on his).

This is what I mean by iron-clad guarantee against a double spend.

But if nobody can reject an invalid TX for XCP, that means verifying that something has unspent outputs is an extremely expensive task. And the longer transactions go on, the more expensive this task becomes. And nobody can put in some kind of "block" that could be rejected by others to "proove" that some balances on addresses are now valid up to that point.

This means that in a short time, XCP will become unusable for everybody as the XCP-TX spam rises and everybody is checking the entire bitcoin blockchain over and over and over for XCP-looking TXes to figure out if the coin he thinks he got, aren't actually double spends.
Tim-Berners Lee: We need to re-decentralize the web
US, please take note.
Churchill described Atlee as a modest man with much to be modest about.
Other good text analysis tools from Stanford: http://nlp.stanford.edu/software/index.shtml
The first rotten thing there is DRM. There are no DRM-free video services where you can buy anything (Headweb doesn't count because it's regionally restricted). So there simply is nothing to chose from. Failure at step 0. It's not just rotten - it's completely decomposed.
Well, at this point, yes. We haven't used that to go farther.

While the knowledge will hopefully be useful in the future, and we can spread humanity to more than one relatively small, condensed point, at present it's not really helping us, and was pretty much a waste of money. At present.
Thanks & totally agree: E-mail is neither broken or bad and we need to construct better email clients. Airmail is really good for your individual addresses. Here at Front we try to create the first collaborative email client for companies.
It arguably contravenes the Google Play Store policies too.

"Developers must not attempt to change the placement of any Product in the Store, or manipulate any product ratings or reviews by unauthorized means such as fraudulent installs, paid or fake reviews or ratings, or by offering incentives to rate products." [1]

[1] http://play.google.com/about/developer-content-policy.html
I actually used to write book arbitrage software, and this person has managed to completely misunderstand it.

I'm not arguing here for its societal value, just that dan appears to have misunderstood some fundamental bits about how it works.

> Robot 1 offers Book A for $10. It probably doesn't have it in stock, but it knows where it can buy it for, say, $9, drop-ship it to the customer without ever seeing the acutal product, and make a buck on the arbitrage. Robot 2 notices this and lists the same book for $11, hoping to do the same thing. Robot 1 notices Robot 2's listing, doesn't know or care that Robot 2 is another arbitrage trader, and reprices its listing for the book to $12. Robot 2 notices this and goes to $13, and away we go.

This makes no sense; the fundamental rule of amazon bots is that consumers buying used books almost always buy the lowest-priced used book available. So the bot war would send the price down, not up.

Why in the world would bot 2 offer the book for $11? It would know that nobody would buy it when there was one already listed for $10.

The silly-high-priced books that I saw when I was working for the book company were rare long-tail books. One of the discoveries that many people have made is that for rare books, whether or not you understand what the heck it is, some % of them will get bought even if they're listed for silly high prices. Enough people will pay thousands of dollars (not an exaggeration) for a used copy of a book that they can't find elsewhere that stocking the long tail of books can in fact be very valuable.

That means that, when you find lots of rare books, your incentive is to throw out some crazy-high price for each, because some % of them will, in fact, get paid, making the whole enterprise worthwhile.

edit: Arbitrage on the same market Does Not Work, in my experience, and to just claim that it does with no evidence doesn't make it any more likely to do so.
For Smaller Projects, Try Renting an MBA
Two New Link Analysis Tools Available: OpenLinkProfiler.org and WebMeUp.com
Our Love Affair With the Tablet Is Over
Why stop at two pivots? At what point does adding pivots reduce speed? Is there an easy to compute heuristic to determine how many pivots makes sense?

These would be my follow up questions.
Getting 100% uptime on public cloud. An interview with T.Luu, Nephoscale CTO
Why do people still design pages unreadable on mobile? This sounded interesting but it's unreadable.
Better not to pun, and use an actual optional where you want it...
The title sounds awesome, and then I read that it's being created by a centralized company that's organizing the entire thing.

I'll bet they're organizing a hefty personal profit into their ploy as well.
Actually, no. That is not what happiness is. We don't know exactly what happiness is. But ironically, those who are happiest are often those who we would say are least productive and haven't achieved anything.

Case in point, one of the happiest families measured is an old family that lives in the Louisiana bayou. They're poor. They don't work much. They hunt and fish for a lot of their food and they all still live pretty close. They spend their days wandering the bayou and hanging out.

And they're happy.
If I toss a coin into the air and then it lands on tails, there is a visible cause and effect. The velocity of my arm, the position of the coin in my hand, the moment of release, the air currents in the room all affect the outcome. If I could measure these to a high degree of accuracy and plug the measurements into a detailed enough simulation, I could predict the outcome. However, I can't. So I am unable to predict the outcome (hence the outcome is random).
Red herring fallacy. Why are you typing and reading this instead of volunteering right now?

It's a symbolic protest. Baudrillard noted the opacity of Americans to perceive symbolic protest. It points out that Apple will no longer have the privilege of revenue from these particular devices.
MyCords App
Email is not just IMAP and SMTP. It's much much more (even thought technically speaking the following doesn't have anything to do with email).

Pretty much the only way to invite someone to a meeting at work is to send invite over email. To figure out the place for your meeting, you use "email" client for that. Because you have not sent emails previously to all participants, you use "email" client to figure out the email address of those persons. And the recipients use their "email" client to update their calendar so they remember to come to the meeting.

So to disrupt email, you need to disrupt calendaring and address books and what ever it is called when you search your co-workers email address by their partial name or some wacky username.

It's a mess and a huge beast.
Reminds me of the Comcast situation with Bitorrent in 2007 [0].

I have little doubt that ISPs will continue to escalate this game of service degradation and denial without strict regulation.

0: http://consumerist.com/2007/10/27/damning-proof-comcast-cont...
This is not unique to EA. It's a well-known pattern:

http://www.90percentofeverything.com/2012/05/21/manipulating...
The Secret of Raising Money
I always chuckle when the title of the article was obviously changed after first putting it online because the slug uses a different word:

"Tim Berners-Lee: we need to re-decentralise the web"

vs

"tim-berners-lee-reclaim-the-web"
Wikipedia had to go through a push around that time to excise any references to such books from Wikipedia itself, because some had crept in, mostly by unsuspecting users who believed they had found an actual third-party book on an obscure subject, and didn't notice it was suspiciously similar to the Wikipedia article. It defeats the purpose of citing sources, of course, if Wikipedia "bootstraps" its own sources by citing print-outs of previous versions of Wikipedia articles as the source.

This does leave a more subtle problem than literal printouts of Wikipedia articles, which is harder to solve. Sometimes journalists and even scholars consult a Wikipedia article for background, and then just repeat something similar uncritically, without independently verifying whether the Wikipedia article is correct. If the Wikipedia article then at some point ends up citing that writing as a source, a hidden reference-loop is created, with Wikipedia effectively "laundering" a self-reference (unintentionally) through a third party repeating something they read on Wikipedia. (Not a phenomenon unique to Wikipedia admittedly.)
Flappy Bird nets developer 50k USD per day
Amazing considering the simplicity of the app.
Smashing your iPhone to protest Apple after they already have your money. Not sure how this really effects Apple...
you can't attach more than 25MB... And even if you send "just" 20MB you have to wait for it to upload entirely. And sometimes the receiver will have zipped attachments blocked by her own mail client... Terrible experiences :)
One, how the heck did I end up with a negative score for my comment? Didn't even know that was possible.

Two, granted, the fuzzy content usually clears up somewhat nicely after a few seconds of progressive reconstruction of the stream, but am I the only one that has noticed rather striking image quality issues? So it's technically "1080p" but if that image has been optimized and compressed and is washed-out looking, which I find is the case, then what does it matter.

I was also referring to the main "screensaver" images on Chrome. Can those not be higher quality and resolution? They sure as heck don't seem 1080p and they are static images, why can't they be high resolution? I want eye-candy damn it? Ever seen the seemingly higher resolution images on Apple TV? Especially when you tie it to Flickr? (no, I'm not in the Apple cult)
TERROR!!!111!1
Why Tim Berners-Lee is wrong about DRM in HTML5

http://craphound.com/?p=4651
C99 doesn't support function overloading. I guess that style is used by everything that wants to expose a C compatible API.

Come to think of it, it might be possible to do that with C11 _Generic.
Because you have to upload them, wait for them to upload, limited by size, zero control over files once they're sent, etc.
Even if everythings in the cloud, its still sometimes convenient to carry one device around - current state of work, open tabs, half written emails etc
Can you make transactions from this application? My guess is that Apple wants a cut of it.
Google's First Data Center
But this wouldn't affect Apple as much. By destroying the phone, they're effectively reducing the number of users. If they sold it, the number of iPhone users stays the same. Not to mention that it makes quite a dramatic statement: "I'm so upset, I'd rather lose $xxx dollars than continue passively supporting Apple's policies"
You still have to 'free' in destructors in C++. Destructors don't free your memory for your custom types for you.
China's imperiled Jade Rabbit moon rover: 'Goodnight, humanity'
Not only easy, but also fast and reliable enough to compete with centralized services.
I think if you could do some detection of what connectivity is being used, and other sorts of relevant connection data, it would be a valuable motivator to see, "We've detected you are 30% slower than other customers with x and y differences in service"

This is super hand wavy, but I think with proper data it could be a useful tool.
If you like the idea of this sort of thing, you might also check out https://github.com/csquared/checkcheckit. It lets you make checklists in Markdown, execute code in code blocks, and share progress live on the web with your team.
And... SDS and plain strings are both char pointers so even with _Generic it is probably not possible to do that.
That's why I dock it via USB
Maybe I misunderstand something, but I thought the whole point of selecting two pivots in Quicksort was to reduce impact of particularly bad pivot selection.

In this case, I don't know.. Unlike in Quicksort, there is no huge cost after selecting the pivot depending on it's value.

I guess it could be useful if you could expect you're searching for items with a different random distributions than are the items in the list, e.g. you search for uniformly distributed elements in a list with non-uniform distribution (like a highly skewed one).
That doesn't imply the title was changed. Shorter slugs are nicer, and there could be some policy involved in keeping them short. It doesn't mean anything.
5 Essential and memorable steps in successful Content Marketing
>isn't NASA's budget a drop in the bucket compared to what the United States spent on maintaining and improving its Navy fleet in 2009?

It's a pittance, but, it's what we get to spend on space programs; and we're spending it on NASA. I'm glad to see a criticism that isn't criticism of what we think NASA'a mission is, but instead a criticism of how NASA executes that mission.
The security consultant is on Twitter[1]. It looks like he's explaining things weren't "automatic"[2] and it was FUD ("TV's goal is to make it interesting.")[3] and "tv magic"[4]

1. https://twitter.com/lowcalspam

2. https://twitter.com/lowcalspam/status/431086164905181184

3. https://twitter.com/lowcalspam/status/431114615893028864

4. https://twitter.com/lowcalspam/status/430883194380881920
God, I remember the pre-drobox era, when I would e-mail myself different versions of .doc files... the "early days cloud" was just e-mail!!
Thanks, NBC, for not giving me an option to stop from playing the next clip.
Unfortunate that the testing only covers the performance impact of the recursive calls used by the main implementation - a tuned binary search function would probably not recurse and simply maintain a tiny stack of indices. The increased number of comparisons would probably matter a lot more in that case.
Can't have those poor people taking over our streets, now can we? Feet don't make rich people money, cars do.
Fighting Amongst Yourselves is a Great Way to Die
Bot 2 sells higher because it needs to buy the book from Bot 1. It's either in the article on in the links inside.
Unencrypted password storage. Easily reversible (or bruteforced) authentication. Easily MITMed protocol.

What year is this?
I think that the biggest thing email clients lack today is a decent open source web client. There is SquirrelMail and Roundcube and as far as I know, that's it. SquirrelMail is way outdated (UI wise) so that leaves us with Roundcube. That front definitely needs some competition.
I don't see the difference between this and

cleanup(state);
error(state);

etc.

Just pull them each out into a function. You're still DRY and don't lose flow control.

In my honest opinion, there is never a need for goto.
What they're doing violates none of the aforementioned clauses.
Andreessen 360
Can we stop using "disruption" as a stand-in for "improvement"?
If you read much of the original discussion around the "Go To Statement Considered Harmful", this pattern is frequently pointed out as a reasonable use case absent proper exception handling.

Indeed, from the original editorial: "I remember having read the explicit recommendation to restrict the use of the go to statement to alarm exits, but I have not been able to trace it[.]"

It is the right way to handle exceptional conditions in modern C.