skysight-inc/HackerNews huggingface dataset:
But two site owners decided that they can benefit each other if they provide links to each other's site.

As I said, I am asking my friend to link my Python's and I link his C++.

I can treat him a lunch when I get some ad revenue later. Or just a bro hug.

I understand it may not actually be showing what is happening here, but there is some gray area I want to explore.

I can also be a celebrity and every week I feature a couple links showing what my friends and my other celebrity friends are doing or writing or making. I may or may not get $$. Maybe just to be friendly (think Youtube, how channel owners help other owners...) Will that violate Google's ToS? I am famous and so helping a few people out shouldn't hurt, right?
> The fact that I wasn't aware of a corner-case scenario where dst does not contain a string to begin with has in no way impeded my ability to type the above line correctly.

True. And again I was hesitant to say that, so I hope you didn't take any offense. These functions surprised me as well at first (I was personally bitten by that strlcpy() running full strlen(source) issue in my own XML parser.)

> I would be interested in a concrete example.

Well I don't really have a super-secure version. Honestly 99% of string stuff I do is using a C++ library that keeps track of the allocation size (and also has small-string optimization.)

What I came up with in place of strlcpy/cat, which worked better for my own purposes, is below, which I call strmcpy/cat:

//return = strlen(target)
unsigned strmcpy(char *target, const char *source, unsigned length) {
const char *origin = target;
if(length) { while(*source && --length) *target++ = *source++; *target = 0; }
return target - origin;
}

//return = strlen(target)
unsigned strmcat(char *target, const char *source, unsigned length) {
const char *origin = target;
while(*target && length) target++, length--;
return (target - origin) + strmcpy(target, source, length);
}

Truncation is detected by seeing if source[strmcpy/cat(...)] != 0, and very easy to wrap with another function. And in general, I find strcat functions kind of unpleasant (eg Schlemel the painter), so for that a strpcpy() that writes to a pointer will let you chain those, eg:

void strpcpy(char *&target, const char *source, unsigned &length) {
unsigned offset = strmcpy(target, source, length);
target += offset, length -= offset;
}

Now I am sure you can point out a myriad of serious problems with these functions, just as I have for strlcpy/cat.

Hell they're probably much worse than strl, but they work for me at least. If nothing else, they are at least easier to read =)

Full info on these functions is at the bottom of this dead article: http://web.archive.org/web/20130121234920/http://byuu.org/ar...
Why Programming Language X Is Unambiguously Better than Programming Language Y
What does financial independence have to do with that number? The article is about "happiness" and "enough". Fuck-you money is not required for either of those things.
Macros are available but still experimental. They're already used in stable branches in a number of projects though, including the Play Framework.
"Hey Frank, you test this?"

"Naw, Larry, government contract."

"Shit, I think this one's important though."

"We'll fix it later. It's easier to beg forgiveness than permission to change spec."
The NSA does not investigate crimes. It is part of the U.S. national intelligence apparatus, so it focuses on targets and topics of interest to military and diplomatic leaders.

The FBI would be investigating this, and they are probably actively following these transactions right now. But since they are a criminal investigation agency, they will be focused mostly on carefully collecting evidence, so that it can be used in trials to obtain convictions.

So: this exposes a gap in how the U.S. federal government approaches the Internet. The NSA is willing to react in real time to threats, but they don't care about crimes like carding. The FBI cares, but they seek to collect evidence, not react in real time.

The result is that when it comes to real-time reaction to cybercrime, companies are largely on their own. I'm sure Target is spending a good bit of money on cybercrime and cybersecurity consulting firms right now.
The parable of the fisherman and the investment banker.

http://popculturemeetspsychology.blogspot.com/2011/06/invest...
Will 2014 bring the death of the patent troll?
The chart at the bottom is the most interesting part of this blog post.

Rap Genius has raised $15M from a group of premier investors including Andreesen Horowitz and yet their comps (according to Rap Genius, themselves!) are a bunch of black hat, spammy link farms containing music lyrics.
A Missionary’s Quest to Remake Motor City
I've learned to not bet against the ingenuity of Google engineers, particularly those building web browsers and development tools. :) Given that they've added very basic support for editing to Developer Tools in Chrome already, once Dart lands in Chrome, I could see a push to make Chrome the editor-of-choice for Dart, if not web-based editors in general. And it's true, there's more to development than type-and-run interactive shells, but that sure makes web development easier, doesn't it? asm.js benefits Dart as well, since they can target the same approaches for their JS target code gen.

The real question is when will Google add development alternatives to Android? Chrome's nice, but it takes a mobile platform to sustain an ecosystem of client-side developers these days. Perhaps Chrome-on-Android will eventually become the new PhoneGap?
"With limited tools (Open Site Explorer), we found some suspicious backlinks to some of our competitors:"

I thought snitching wasn't cool in the hip hop community?
Of course it is otherwise PHP wouldn't have been so popular as it is even for more complex solutions.
There are some similar ugly workarounds of that nature in Play's JSON macros. Quite ugly but also transparent to anyone not writing library code.
>In the long run they're actually more expensive. You don't change your PC every two years. Actually, if you don't play video games you don't even need to change it for five years or more. Most smartphone users I know change devices every 18 months.

I suspect this is a short term phenomena. Smartphones have been getting better at an exceptional rate, wheras computers have recently reached the point of 'good enough', where people do not need to upgrade as often. Combined with the free upgrade system that a lot of companies have, and the connection with contracts, it is easy to imagine that the current state is not long term. Also, the poor are exactly the people who would continue to use an old device that is good enough, even after a shinier model comes out.
How shameful of salon.com
why would i give you my twitter acct, and even if i wanted to, i can't until i try to publish. wtf?
Ulbricht Admits Seized Bitcoins Are His and Wants Them Back
Follow Santa's journey around the world with Google Maps
The example images they use are the ideal use cases for each of these techniques. The rocks photo has no hard edges. Wood texture by nature is similar to what posterization does. These tricks won't help in many cases. Although if you do happen to have something that fits the criteria, these should be quite useful.
I know your feeling, I've programming in Clojure for one year now (although I don't have time to program with it full time). I think your kind of problems are more related on "how" you use Clojure rather than Clojure itself. Errors are obscure only if you try to do too much things in one function. Try to keep functions as simple as possible and to do one task per function, no more. Then message errors are not that hard to figure out, although yes, I agree that for example in Java errors are easier to figure out (but definitely not fixing them...). And anyway using the REPL you can test one function at a time, given it's a pure function, which is also a new state of mind: eliminate all possible mutable state.

I've found that when using Clojure you have to think in a different way about the problems to be able to "see" how your problem can be resolved in Clojure in a more elegant and concise way. This is hardest task I've found when moving to Clojure from Java: change your mind. With the right mindset, everything (in my case at least) seems like pretty trivial in Clojure, and definitely much faster to code and test than Java.
Really, Hacker News?
Indian Scientists developed Insulin Pill for diabetics
1. If Google would penalize their own sites for link schemes (i.e. Chrome) done by third party agencies, certainly they should for Rap Genius. This isn't about whats the best site, this is about maintaining credibility in their index. The moment Google plays favorites manually is the moment I switch to another search engine.

2. Gaming SEO is attractive to almost everybody. Google needs to make it so painful to get caught, that people won't bother risking it in the future. The way I see it is...even if Googles algorithms havent caught up just yet to surface the best quality content, they will eventually, why not speed up the process of meeting them in the middle and focus on legit link acquisition and traffic acquisition strategies...

3. I have no opinions about Rap Genius or their founders, I think their actions deserve a massive penalty...let them run ppc for those long tail lyric lines, I doubt those clicks cost more than a nickel. Let them clean up their act, and go through the channels to request a reinclusion in the index.

The game is the game is a poor excuse. give me $15mm and a site like Rap Genius and I'll get it outranking everybody in the space in 9 months, with only legit strategies.
This is hilarious. They thought no one would notice. I have no opinion on any of this but I found this detail amusingly ironic.
Cold storage in the context of Facebook
McDonald's Tells Workers To Avoid Fast Food
What do we do if they honestly thought this was the easiest way to pro-rate?

(I get the idea that they generally wanted to be able to report the remaining subscription in terms of days)
It probably says more about the courting culture and independence in America than anything else. I suspect (but have zero proof or support for) that fewer marriages are formed from high school sweethearts than was the case in the 50s, which means that many relationships start with 2 cars vs 1.

Beyond that, cars were still a relative novelty in the 50s, and ownership was more sparse. I'd have to research to see, percentage-wise, what the cost equated to. It's possible that their rarity meant that purchasing one car was equivalent to purchasing two, in today's age, but again, I don't have figures on that.

And, of course, I think you're dramatically underestimating the role of gender equality on the work force. Women work, many times because they choose to, not necessarily because they have to.

Regardless, the point you made simply isn't supportable by the raw facts that you presented, nor were necessarily the facts that you presented even factual. I don't disagree necessarily that the upper middle class of today is disadvantaged relative to the upper middle class of the 50s, but if that's the case, it's not because they worked less hours or owned larger homes.
this article is more interesting to me because of the development paradigm it outlines: make the mobile phone the hub of the internet of things. this is in contrast to the smart fridges and thermostats that I thought were going to be the manifestation.
> You are in a high interest sector with SO MANY LEGIT STRATEGIES TO ATTRACT HIGH VALUE LINKS NATURALLY... Why are you wasting time with spammy strategies that haven't worked in several years?

When you know your competition is playing dirty, you can join them or choose to rise above. There are legitimate arguments for both. They chose to play dirty, and I wouldn't be surprised if this weakened their position in the long term
I don't understand. If I want to use AdWords and if Google is still selling from Ireland,what do I do? Buying ads from Italianads.com is not going to make my ads appear on Google.
Of course expensive hobbies require more money. However the point of that article is (vaguely and generally across the people they studied) your expensive hobbies and traveling do not increase your happiness as much as the pursuit of the extra money decreases it. In other words, you get some combination of diminishing returns on happiness per dollar, and increasing cost of happiness per dollar. $75k is the proposed sweet-spot, where happiness gained per dollar spent is still high and happiness lost per dollar earned is still low to moderate.
One of the big features of erlang is intelligent hotswapping for building robust telecom systems that never go down, but can be bug fixed/upgraded on the fly. Just because something is not commonly done with current tools doesn't mean its a bad idea, just that it is a bad idea with current tools.

My understanding is that built in java hot swapping is very limited, and indeed would be a bad idea to try hotswapping in production.

If the clojure repl brings us closer to the erlang world isn't that a good thing?
Note the part of the article about "split personality" cultures. A lot of the policies that this article was about were for the engineering team, and do not apply at all to what the author calls "hourly employees", which may well include customer service.
Hyperminimal UI theme for Sublime Text
Only an unwashed pleb would live in anything less than 20,000sq-ft, eh?
For the punishment of free speech, Steve should do a free concert in NYC, and all the members of his band should wear Lasonia shoes.

http://www.lasonia.com/
Scala.xml and scala.actors are both deprecated. XML has been moved out of the language and scala.actors has been replaced with Akka actors (which are awesome, BTW).
The magnetic track data was compromised, which means once the data trickles back through the black market crooks can write the cards back out and use them as card-present. Definitely harder than sitting around ordering things online, but there's no reason to need the CSC to use the data they stole.
There is an orthogonal Clojure/Scala axis of interest for code bases of appreciating size: Mutability.

Clojure programmers choose immutability by default. Scala, however, makes it just as easy to write "var" as it is to write "val", and just as easy to create a mutable collection as it is to create an immutable one.

In my experience, this is far more important for larger code bases than static typing. Luckily, Scala offers immutability as a feature, which is more than can be said about Java/C++/Go/etc.
Goal Setting Vs. Timeboxing: Why One Sucks
You focus on one example to say "not very convincing"? Please elaborate more on why Clojure features are "not very convincing", I would like to hear your opinion.
30 Ways Interns are Just Like Minions
Isn't that part of why that Supreme Court decision was such a big deal? It's possible to make so little that you won't qualify for Obamacare subsidies, but the assumption was that those people would always qualify for Medicaid due to the Medicaid expansions. However, the Court ruled that states couldn't be forced to expand Medicaid. So for many of those states that are refusing to accept the Medicaid expansion, there are people that make too much to qualify for Medicaid, yet not enough to qualify for ACA.
There's always a choice, but in this case... They chose WRONG. Their strategy most likely wouldnt even work if they didnt get caught. lots of exact match anchor text links around content that is completely irrelevant at the bottom of a blog post, without social sharing matching their backlink profile. (yes, search engines can look at your social sharing pattern with your backlinks and see if something is getting artificial backlinks.)

They chose the short long way... They should have chosen the long short way.
What makes you think the NSA has stopped doing its job?
The biggest problem with this law is not its effect on google: the way it's written now forbids any Italian internet user from visualizing ads that were not purchased from an Italian company, and this applies to all websites.

So while Google might be forced to comply, most international websites won't, rendering them automatically illegal in Italy, which is probably unenforceable. While I agree with the spirit of making these large multinational companies pay their fair share of taxes I think this is a rather ham fisted attempt.
In Cincinnati, Tampa, etc., one would have to assume so. Regardless, that wasn't the point -- the point was that

> The lower middle classes can't own any house at all with just one wage earner

is not a true statement. If you'd like to qualify it further, feel free. I suspect I'd have to research more to answer, and I don't necessarily disagree with the sentiment you're suggesting, but presenting falsities as facts doesn't do any argument any particular good.
Thats not what i meant but fair enough I could have been more clear. I was talking about setting up as in getting started.

Download MAMP or create a folder with your web host.

That's it you are ready to create a web application.

Now find me one other system that makes it just as easy.
Ya that seemed really unprofessional. It goes the way of nasty politics. Not matter how screwed up your competitors are, its a cheapshot to point it out, especially in a message trying to justify your own evil doings.
I am fascinated how the black market operates. With law enforcement probing every corner, going undercover, I can't imagine myself getting involved in a blackmarket at all. Well, I guess there is always the risk which says high risk yields high return.
That may be true. I think the more general point (which you seem to agree with) is that touting simplistic indicators and claiming that people are better off today, is inconclusive and by no means the 'given truth' that many here assert.
That's a nicely done apology. No, "I'm sorry you were offended" bullshit, no "freedom of speech" foolishness, no blaming the media for things he actually did. Instead, we get a clear recounting of events, a reasonable explanation for how it happened, a full apology, a reasonable defense against the false accusations, and closing with "it's my job to know".

He's right; the Internet is a treacherous medium. But he's also right that it's the speaker's responsibility to own that. I'm going to bookmark this for reference next time I screw something up.
You think that's bad? You should see the adverts [1].

[1]: https://www.youtube.com/watch?v=P-3P6z8ij0I
I love how at the end, they're all like "hey, our competitors do it too!"
I didn't say at all that C is bad, as a matter of fact I write most of my code in C. It is, however a low-level programming language not much different from assembly.

The reason it is that it operates on concepts that are not abstract but are of register machines. A high completely abstracts underlying architecture so the code can be executed in any possible environment by means of translation, be it a $10MM Cray or a cellular automaton or a mechanical computer. In essence, a high level language provides an abstract notation for computation.

C, however, is not abstract at all. Variables? How those will map to a dataflow computation? Pointers? Would not work beyond register CPUs (e.g. it is very cumbersome to translate C programs to Javascript as a result and usually leads to a memory array emulation). Fixed-width types? Volatile pointers? Returns from the middle of a procedure? Gotos? Come on, how those are even going to run on a non-conventional architecture?

C also does not completely define the language semantics leaving certain operations implementation-specific or undefined. It also (before C11) didn't define any memory model, thus making it impossible to even describe an algorithm that depends on specific properties of memory accesses in a way that will be portable across different register machines. C algorithms are close to impossible to translate to be run on memory-less computation devices as the whole concept of C is based around having local memory and a stack space with certain properties (unless one wants to emulate a register machine, see JavaScript remark above).

In certain areas it lead to some ugly solutions like Cuda where the language looks like C but semantics is completely different and GPUs are the closest thing to he original C target as you can get.
When you put it like that, paying for such oversight is well worth it. Would the military request less if it was more efficient or would it keep its budget and just fight (== exchange GDP for the "benefit" of additional limitless risk) on more simultaneous fronts?

Really, I don't see that many private sector companies competing on the big contracts no matter what you do. But for the smaller profit and more general purpose projects, the problem is that their purchasers interfere with the process to get what they want/need as the buyer. For example, they needed our systems and we didn't much care about learning their processes, so an Aerospace seemed to take the bulk of the profits by making a package that depended on us.

If the system were equally complex yet more transparent/published and tamper resistant then I don't think corruption would be so rampant and cost may at least be allocated to regular companies that choose to navigate them alone. But with no system at all, I think the Aerospace that took most of the profits would have taken even more and delivered still less.
Those two sentences are completely unrelated. The first sentence is false if the two companies have the same name. The second is true.
Seems relevant to me. I'm fascinated by the way the internet has created a medium that is simultaneously an intimate chat and publishing to the entire world. We are, collectively and individually, learning how to handle it.
Is welfare mom an insult I wasn't aware of? Assuming someone has shoddy clothes because they can't afford better seems reasonable to me. It would be insulting only to imply that they're wasting their money and neglecting important things on purpose.

Edit: I mean I'm aware of 'welfare queen' as an insult but I've never seen 'welfare mom' have that same meaning, or anything other than 'mom on welfare'. And when you're talking about socioeconomic status 'welfare' doesn't have to be quite literal, just signifying a level of income.
Most Americans, and I'd wager most people in this world don't understand/care about privacy as much as is reflected on HN.

Given how pervasive surveillance is in most European countries, the only real difference between us "lost" Americans and the "found" European countries is that we didn't know it was going on.
This essay is one of the easiest and simplest ways to show in clear terms that your opinion on money and wealth is simply incorrect:

http://paulgraham.com/wealth.html
By 3 letter pin, do you mean the CVC code?

Many merchants require the CVC code to protect themselves against fraud/chargebacks and because they can get lower processing fees, but strictly speaking, it's not necessary to make a transaction (IIRC, the only thing you need is the card number and expiration date).

Notably, Amazon does this for their 1-click checkout. Saving CVC codes is against PCI compliance, so in order to provide that low-friction experience, they simply post the saved card information without it.
Yeah! He should check his privilege in comparison to... oh wait he's not allowed to compare because that would be assuming.

And you assume that generalpf has privilege based on significant but not-certain attributes they show... interesting.