skysight-inc/HackerNews huggingface dataset:
Perhaps it's because I come from a functional programming background, but I find your re-written version using the ternary operator is much easier to understand, and prettier to boot. Well done!

This is a great example of "factoring out" that satisfies both the computer science and the mathematical definitions of the term. The assignment "sides[i] = " is repeated inside the if block, and it can be "factored out" using the ternary operator, just like in math:

(a * x + a * y + a * z) = a * (x + y + z)

I'm even tempted to say that "assignment distributes over if", but that might be pushing the analogy too far. Any further and I might start thinking about monads, so I'll stop here.
I am sure everyone has had a slimy experience with desktop applications (usually windows based) sneaking or including advertising. I for sure have spent way too much time cleaning adware off family computers.

My comment about this startup would be: "what makes you any different, other than your promise to keep it professional and clean from the junk" - because its a slippery slope and %99 of the time the users won't know the difference between your ads and the slimy ones.
You can buy a copy of Shakespeare's works and then upload a copy of the text to Project Gutenberg.

Just because someone is selling something that is public domain doesn't mean that you can't give it away for free.
Without yielding useful information, const annotations can't hope to have any positive effect on compiler optimisations, fancy or not.

I agree that const is useful for the other reasons you mention.
John Hughes makes a good argument in favour of rigidity in "Why Functional Programming matter" (e.g. http://www.cs.kent.ac.uk/people/staff/dat/miranda/whyfp90.pd...)
Effort required to create something does not mean that something is necessarily copyrighted if there was no creative process involved. This is why databases are not copyright-able in the US.

Is scanning old journals a creative process? Maybe there is some case law that says so, but until I see that, I am inclined to say no, and everything that I can find agrees.

http://en.wikipedia.org/wiki/Database_right#United_States

http://en.wikipedia.org/wiki/Threshold_of_originality#Reprod...

http://en.wikipedia.org/wiki/Bridgeman_Art_Library_v._Corel_....
Aaron Swartz's prosecution too harsh, critics say
JavaScript Regular epxressions test and debug
"...that one of these prosecutors would also take their life?"

An eye for an eye. Being passive doesn't seem to bring any justice.

If you invade Iraq based on flimsy (at best) evidence, there are no consequences. If you sit in an office in Washington DC and order the torture of prisoners (which is still illegal in the US) there are no consequences. If you wreck the economy, there are no consequences. (This just in: HSBC gets a free pass for money-laundering.)

But if you're a low-level geek (Bradley Manning, John Kiriakou, Aaron Swartz) then you will be crushed under the full weight of the law.

Important People don't go to prison. Low-level geeks with a conscience go to prison. Or have their lives completely ruined.

They have no empathy or respect for us? I have no empathy or respect for them. Harass her until she commits suicide. Washington is full of sick-and-twisted freaks. We should stand as a perfect mirror to their moral crimes.
No, that's not the same.

Having a 5.x.x.x address assigned to your machine doesn't make all Internet traffic for that address go to your box. You either don't understand the concept of routing domains or you just feel like trashing Hamachi in general.
For those who were unaware this market existed: if you hypothetically distributed a downloadable application, you'd be bored to tears of sales reps (or spambots) from Pay Per Install advertising companies attempting to sign you up for their platform. The going rate was about $1 a download (n.b. that figure is very outdated -- probably less these days). This is -- again, not talking about the YC company here -- for encouraging customers to either change their search engine provider to one who pays the PPI network, install a toolbar in their browser or desktop which either shows ads or gets searches (more commonly), or just going ahead and rooting the user.

I'll confess that I haven't always been a model of politeness when responding to these sales pitches.

This is one of the many, many avenues on the Internet advertising chain by which billions of dollars is transferred between large, publicly well-regarded companies and six layers of intermediaries and... folks who the large, well-regarded companies would never, ever, ever do business with.
calling someone a douche is significantly less aggressive than telling a person who's obviously PLEADING for help that he's wrong and should man up - based on very limited information.
When a person has done enough self promotion to persuade a lot of people to uncritically accept whatever mantra they spout.
So are you saying that Apple is breaking the law or that the article is wrong?
Special translation prices in January – Italian, French and Russian 
Hieroglifs Translations offers you of a special present in January, giving you 20% discount to all translations from all languages to ITALIAN, FRENCH and RUSSIAN.
Let us remind that our translations are done by native speakers of the target language.
Send the projects by email to: jobs@hieroglifstranslations.ro and we will quote immediately. When sending the project please put in the e-mail subject the password: MONNEW20 and the discount will be applied.
Enjoy the beginning of the year with Hieroglifs Translations!!!
http://www.hieroglifstranslations.ro/en/translation_service_attractive_prices/
If you're having problems viewing the slides, visit
http://get.webgl.org

It's not what we designed it for, but turns out that our material editor in http://studio.verold.com is a really nice way to see and learn about render settings. Even if you just run our intro tutorial to grab the Standford bunny, then turn the dials on its one material. See some of these principles in action, in Three.js.
Apple, however, extends only a tiny wholesale discount on its Macs and iPads to your retailer of choice.

IIRC there was a discussion on Reddit involving a guy who has made an incredible profit acting as Apple's sole distributor in certain SE Asian countries. I'll see if I can dig up the link. His story tends to contradict the authors statement above.
Paymill, The Samwer Stripe Clone, Strikes Global Deal With PAY.ON
Apple CEO Tim Cook Says China Will Overtake U.S. As Apple’s Top Market
Even before this suspension there was recent evidence that in non-advertorials The Atlantic was willing to call out Scientology. Googling "scientology site:theatlantic.com" yields, for example:

http://www.theatlantic.com/national/archive/2013/01/a-wonder... (dated Jan 14, 2013. Weirdly uncritical, simple praise for a book on Scientology)

July 2012 The Atlantic: "Psychiatry vs. Scientology":

http://www.theatlantic.com/health/archive/2012/07/scientolog...
She may have been, but driving an sdmirable young man to suicide doesn't play well with voters.
Knowing coworkers' salaries in a salary negotiation?
Hi,

I have been working for about 2 years at a startup (<50 people). The company made a mistake and revealed how much everyone is making for a living. Some of my coworkers may also have this information.

Compare to them, I have about twice as much experience in the company but get paid the same.

How can I take advantage of this knowledge to raise my salary ?

PS: Obviously, I will also have to prove I have performed well as well.

Regards,
For those that might be, have a look at
http://www.hercules-390.org/
http://www.mapinc.org/drugnews/v08/n417/a04.html

Cites a New York Times article.

> Still, it is the length of sentences that truly distinguishes American prison policy. Indeed, the mere number of sentences imposed here would not place the United States at the top of the incarceration lists. If lists were compiled based on annual admissions to prison per capita, several European countries would outpace the United States. But American prison stays are much longer, so the total incarceration rate is higher.
Was that video about people who witness/reported a crime? I believe it's about people who are under investigation/a person of interest for a crime:

http://www.youtube.com/watch?v=6wXkI4t7nuc
As long as there isn't a way to buy directly from Apple in that market the retailer is free to raise prices to find his profit maximizing level. If you are in a market where Apple sells directly to customers then Apple's selling price acts as a hard upper limit to what you can charge and limits your profit maximizing opportunities.
Web applications suck and they’re not worth creating(2008)
China leads the race for Graphene-related patents
How to Optimize Your WordPress Theme for Search Engines
Many people forget about one very important factor when optimizing their website for search engines, the design. Here are some tips and tricks to help you bring the most out of your WordPress theme in front of search engines. Everything here is free and everybody can apply these changes.
How Google and Facebook Will Make the Leap to Lightspeed
He may not have been inspired by this particular magazine, but it's likely he was inspired by similar opening crawls that existed in cinema as early as the 30s, such as Flash Gordon: http://i.imgur.com/XNzi7.jpg. There are a whole bunch of things that Star Wars can be reasonably said to have copied and reused, and if you're at all interested in this you should definitely check out Kirby Ferguson's excellent ‘Everything is a Remix’ series, which looks at Star Wars in more detail here: http://vimeo.com/19447662
Well said. The distinction Americans (myself as one of them) seem to have lost is the one between "rehabilitation" and "revenge."

We call prisons "correctional facilities" because at one point in time their purpose was to correct the behavior of offenders so that they could be reintegrated into society. Today they would be better termed "revenge facilities", because 1) nobody who enters a run-of-the mill American prison for any appreciable length of time is going to leave a productive member of society, and 2) as the Swartz case aptly demonstrates, there's no longer a sense of just and fair punishment, only maximum, nuclear, life-crushing revenge. (30+ years for downloading academic documents, millions of dollars for sharing a handful of songs on Kazaa--and that's just the HN-flavor "crimes".)

I really applaud the Norwegians for staying true to their principles in the face of a monstrous tragedy.
The only reason RICO hasn't caused huge public outcry is that most of the victims are "bad people" -- John Gotti, other gangsters, etc. It's a sad fact of law that judges convict bad people on bad laws.

FISA has also mainly been used against "bad people" so far. It's really hard to defend a likely terrorist in the court of public opinion.

I'm not sure how many of these need to be in the toolbox to outmatch any defendant (including the innocent or substantially innocent) -- plea bargains seem adequate on their own in some cases, since as we saw with aaronsw, you can credibly threaten huge punishments even without RICO. But with RICO, you don't even need to go to the plea bargains.
Using the "colour of your bits"[0] metaphor, keeptrying is describing the bits, and you are describing the colour.

So, what was actually done, as keeptrying says, was download a few files on a semi-public network, but as you say, the "crimes" associated with that action can be much more significant than looking at what was done out of context.

[0] http://ansuz.sooke.bc.ca/entry/23
I remember being offered a local position that required me to maintain the company mainframe (with RPG2). It was quite interesting because they were doing a lot of things by hand that could simply be achieved with a little scripting (in this case, Python and Perl). Things like daily sales numbers were still added up in some obscure Excel spreadsheet (this is the biggest restaurant franchise operator in the Caribbean). The potential to innovate inside the company was huge. But no, their mainframe guy made it clear that the job was to continue on with his legacy of writing obscure job-securing (as he put it) code. I declined all the offers they made, and they are still looking for someone to fill in the position (and will be for a long time). It was sad to experience such situation. A new chance to inject some productivity inducing innovation being shut down by mediocrity. Still, it was fun talking to an old RPG programmer. Even C sounded like an exotic language to him. :)
The Future Called. It Wants Its Data Center Back
Aaron Swartz funeral, any live feeds?
Does anyone know if there'll be a live feed of his funeral/service? It's today, 10am local time (Illinois).
One Hell of an HTML5 Site
likewise: I'm in Sarajevo, and would love to be involved.
Anybody else nearby? [or even not-so-nearby: Zagreb? Vienna? Belgrade?]
The greatest grid: how Manhattan's famous street map came to be
Not to forget that in the German legal system it is, well common maybe to big a word, but at least possiblke to put people almost indeffinitaly in a psychiatric clinic. Needed for this is a criminal lawsuite and a psychiatric evaluation stating said individual is a threat for him or herself and others. If the court follows that evaluation, the defendant can be put in a forensic psychiatry without being judged guilty for the crime at all.

Just a different point, doesn't have to do something with the abuse potential of plea bargains. The biggest criticism I have regarding plea bargains in Germany is, that they usually apply for white collar crimes since these tend to be rather to complex for the average judge and state attorney to follow. Blue collar crimes are differrent matter all together.

The result is that a plea bargain benefits the state since the process is fast, the defendant since not the whole scope becomes public and the sentence tends to be rather short. While there are some public prosecution departments speciallized in white collar and financial crimes they are far between. So whenever there is one that can be settled out of court, it's tempting.

But that's just my personal view of it. One prominent example of a guy being in a psychiatry since 2006 is Gustl Mollath. And it turned out that he is not as guilty as initially believed...
I know a company registered as an Apple Reseller, and I can confirm the numbers; the margins are tiny. Apple also has a university program with some universities, where they offer their products with a special discount; to wit, these prices were (for the end user) were better than what the reseller got. Although they may give higher margins if the reseller buys huge amounts of products, the one I know is fairly small.
Strictly speaking this is true. For a number of (perfectly rational and moral) reasons, women on average bring home less money than men. This statistic is not terribly good evidence of discrimination, but it does make a bit of sense here, because we're talking average people.
Why are you mentioning the figure of 35 years? According to the WSJ, the prosecution was planning to push for seven years at trial, and were willing to offer six months in exchange for a guilty plea. It's also my impression that many people end up being released early, so the actual time spent in prison would've been shorter.
In memory of Aaron Swartz: a collection of PDFs from PDFtribute
Copywriting is UX? How many UX desginers can do copywriting?
Show HN: Our First Month Since Launching: Open Review
Ask HN: How do you pass the technical interview?
I like looking at things tick from the inside. I like keeping up to date about the field. I like making things work. I still get stumped by the technical interview. I usually fail miserably. The interviewer usually ends up saying something like "If you don't get this simple thing, I don't believe you'll understand anything more complex."

I'm not really sure what more I can do. I just don't have the brainpower to keep everything in my brain at once. It's so bad that I don't even remember how my old programs work even though I'm pretty sure I'm the one who wrote it.

Does anyone have any advice?
In an investigation, silence can be innocence.

Story on rape in India meant nothing to me. I start thinking about how all the news is about me and realize they might be talking about 2002, which never seemed related to rape to me.

Swartz? WTF? Pacer cats was related to Ticketmaster?
I have no idea... you think my operating system is Ticketmaster code?

You think cruel and unusual punishment is cool huh? Mock executions? God is just, rest assured.

------

God says...
C:\Text\QUIX.TXT

ing, the curate
gave Don Fernando and the others present an account of Don Quixote's
madness and of the stratagem they had made use of to withdraw him from
that Pena Pobre where he fancied himself stationed because of his lady's
scorn. He described to them also nearly all the adventures that Sancho
had mentioned, at which they marvelled and laughed not a little, thinking
it, as all did, the strangest form of madness a crazy intellect could be
capable of. But now, the curate said, that the lady Dorot

-----

If you've ever had sex, you might be prosecuted for rape. If you've ever been rejected, you might be prosecuted for rape.
Cool stuff, have you seen this yet?

http://pdftribute.net/
That doesn't matter. There are tons of things you could do depending on the goal of the hackathon. If there is one nearby to you I'm sure you can help.
Algorithms: Karatsuba Fast Multiplication
Ironically, we're all reading this on the web, where browsers merrily remove superfluous white space. If every browser can agree on that, given how much they all disagree on, I'll take that as a pretty good endorsement for single-spacing.
Yeah, there are some weird incentives if married. If one spouse makes $1mm/yr, it makes less sense for his wife who makes $0 to earn any marginal income than it would for a single woman to do so, since the first $0-10k of her own income will be taxed at a very high (~55% in California) marginal rate.

This has real consequences when people divorce -- since it's so disincented for one partner to work while married, professional skills are likely to have atrophied. There are also social/psychological/etc. issues why more equal incomes make more sense.
NYPD to hide GPS chips in pill bottles
Oh, I agree, but I'm just incredibly bitter and cynical, and I don't believe the institutions which run the show are capable of change from within.

I hope to high hell that I'm wrong.
Here's Matt Taibbi on Democracy Now talking about this:

http://www.youtube.com/watch?v=8OsqAhYb9Fc
Indeed in the EU a manufacturer can impose on its distributors a maximum resell price to consumers but absolutely no minimum price.

"Price maintenance" is an antitrust offence in the EU, any attempt by a large manufacturer to prevent consumer prices from being lower is an offence.

Still Apple prices in the EU are the same everywhere just as in the US, i always wondered how they manage to accomplish that
In most of the country this is political suicide anyway (there is probably 50% of the country where stripping non-heterosexuals of citizenship would be a winning political strategy).

I have a lot more faith in a judicial solution than a legislative one. March should be interesting.
The initial quote is wrong. It should be:

“There are only two hard things in Computer Science: cache invalidation, naming things and off by one errors.”
> I get the impression that the American system makes routine practice of increasing or decreasing people's punishment not for the severity of their crimes, but rather for their skill (or their lawyers') in navigating the legal system.

This seems to be a typical feature of a Common Law based system, and an incidental rather than intentional feature.

By its nature, such a system tends to become more complex over time and resist deep-reaching reform. The complexity then automatically rewards navigation skill.
Metrics are the only way to get your job done

God, I wish I'd known this sooner.
An attempt to answer the question, what is Loggable & why should I care [video]
Except it does. We're in our internet/hacker community filter bubble.

If you look at how it's being reported by the Fox, Yahoo, and the rest, they're talking about how he "downloaded files" and "infringed copyright". There's a wilful failure to mention what the files were. As a result, the majority of the comments on those sites, which are indicative of a large proportion of the voting population, are saying words to the effect of "good riddance".

:(
I think this website is different from PDFtribute.net because it actually collects and stores the PDFs rather than just having links to the Twitter posts.

From the 'About' section of the website, you can see it uses PDFtribute.net to help scrape links.
Plea bargaining in the UK is very different though, the bargain is around pleading to some charges to get others dropped - with the judge determining the sentence.

And with sentencing guidelines published for all common offences the prosecutor is not able to threaten you with massive sentences because you (or your lawyer) can know what the likely outcome is. For a first time offender the odds of jail for almost any offence is low.

The quality of legal representation provided, especially in trials facing major jail time is significantly better. For a big case you will have a Queens Council barrister defending you who is just as experienced as the prosecutor.

And finally the Crown Prosecution Service is far less interested in the sentence than it is in the successful outcome. In other words their statistics look just as good if you plead to one very minor charge compared to several major ones. So plea bargaining here is much more about reducing their workload than it is in scoring political points.

If you are truly innocent (or believe yourself to be in the case of Aaron) then trusting then plea bargains are not for you in the UK.
RIM's Developer Bribery is Working
Superbowl Appetizer Baked Cheesy Seafood Appetizer Recipe
TechStars Graduate DigitalOcean Switches To SSD For Its $5 Per Month VPS
I think consumption taxes combined with a basic income/negative income tax (to replace other government assistance) are more politically viable than strictly consumption taxes on the first dollar alone.

But then you have the "they're taking away your food stamps! your social security! and new taxes" etc., even though you're giving them net more money.
I can think of a few reasons why it might be like that: to lead the reader into the article; to provide context of a library; to fit with the visual flow. Easy to criticise (especially on the grounds of efficiency) more interesting to critique... which is why many of these books are worth reading. Every wonder why the design of everyday computers are designed to keep us so stationary?
Does Drug Rehabilitation really work?
I am not sure the title is appropriate... because this is just a list of things you do in your job doesn't mean this have nothing to do with UI work...there is something wrong with this article but I can't really explain what.
graphviz should be in this list.
http://learn.shayhowe.com/advanced-html-css/detailed-css-pos...

"For this to work within Internet Explorer 6 [...] in Internet Explorer on an Apple computer will also [...]"

Seriously, when was this written, in 2003? Totally irrelevant and makes newcomers confused.
The list breaks down UX in general not specifically for a designer.
ALL Software has a front end - a user has to use it at some point!
NRA Releases 'Practice Range' Shooting App for iOS
RICO also has a substantial civil portion. See the Palantir vs. I2 lawsuit.
In 1991 there was no Java to write an AI-based planning system for military logistics.

You may want to read what the software actually did and how it was developed. That would clear things up a bit for you.

http://en.wikipedia.org/wiki/Dynamic_Analysis_and_Replanning...