skysight-inc/HackerNews huggingface dataset:
> The aspect of Ruby that frustrates me the most is over-use of anonymous blocks when a good name would help me enormously.

Ruby gives you enough tools to write code clearly with good names if you want to. I think your complaint might be more about the particular style of Ruby a certain programmer wrote than the language itself.
I love the idea of remastering old papers for the web. While SVG and MathJax allow to easily include diagrams and math, this work shows that you can get away with using only Unicode.

To make the most of the capabilities of HTML, I would have made citations hoverable, so a tooltip can show the reference next to it without the need to go to the bottom.
It's half the weight of the 1100. Dunno if having sharp edges is an advantage..
> EU regulations would have banned 31 pesticides containing endocrine disrupting chemicals (EDCs) that have been linked to testicular cancer and male infertility.

Obvious criticism of sweeping trade treaties aside, this is another blatant case where the health and well-being of males takes a back seat to political considerations.

I'll bet my bottom dollar that if these chemicals caused, say, ovarian cancer, Governments on both sides of the Atlantic would be racing to ban them and get political brownie points.
Magento Themes: The Revolution of Sliders
Outputting the data in your own format is actually remarkably simple from the command line - you could build up a complete JSON document by piping the input through `jq`. XML might be a bit harder, but with a bit of find and replace across a template (or by using xmllint), you can create pretty much any document you'd like.

In short, a cool tool, which I hope you had fun creating to fill your needs, but it's not something I could personally justify using at the moment. My lint tools (for Python) and `godoc` already alert me to "XXX" and "TODO" comments, letting me see them as part of my normal programming flow.

I wouldn't expend too much effort trying to convince others of it's utility - you'll get frustrated. Instead, let the tool's utility speak for itself (if its useful to you, it will also be useful to someone else), and move on and create more useful tools.
Can you name a few such outsourcing shops that seem too good to be true (and likely are).
You're unhappy with the readability of San Francisco? I've heard the opposite from most people who have seen it on the Watch.

I think it's quite a beautiful typeface, and I'm glad they're expanding its usage to their new keyboards and iOS/OS X. I think it will work out great for them.
It's syntax is just somewhat ugly in Python. (Compared to, say, Haskell.)
Leasot is written in Node.js.
Regarding pretty output - that could definitely be argued, but Leasot also allows for different reporters, say you want the output in JSON/XML for an external tool. That is extendable, whereas grep over regex in CLI is fast & powerful but not as flexible
It depends on context. For example, here is a function from a project I'm working on:

parseModifier : String -> Outcome Modifier
parseModifier s = case s of
"shift" -> Ok Shift
"ctrl" -> Ok Ctrl
"alt" -> Ok Alt
"meta" -> Ok Meta
"command" -> Ok Meta
"windows" -> Ok Meta
x -> Err <| "Unknown modifier: " ++ x

I find it easier to read as is rather than if I dropped the alignment:

parseModifier : String -> Outcome Modifier
parseModifier s = case s of
"shift" -> Ok Shift
"ctrl" -> Ok Ctrl
"alt" -> Ok Alt
"meta" -> Ok Meta
"command" -> Ok Meta
"windows" -> Ok Meta
x -> Err <| "Unknown modifier: " ++ x

As developers we spend more time reading code than editing it. Optimizing for readability seems like a better goal than optimizing for edit speed. Besides, most editors have functionality to align code. When I am looking over a file, the second example looks like a jumble of words to me, while the aligned version seems easier to parse (ha).
It wouldn't be your only source of income if you did try to earn a living as an independent musician. Look at Oddisee, an indy rapper and producer from Brooklyn, as an example. It's a full time job but he's doing it. He sells music, streams it on all the streaming platforms, tours, produces and cameos on other's work.
Strongly disagree with your disagreement. The scattered points are very readable. They present more data, data that's simply missing from the bar charts. I always feel a little bit bad presenting, say, just a box and whisker plot when the original data is so much richer.
Just after the official launch of the TTIP negotiations on 13 June 2013, a US business delegation visited EU officials to demand that the proposed regulations governing EDCs should be thrown out in favour of a further "impact study."

May I please know the names of those scumbags, or at least how can I find out? I want to know more about those brainacs, perhaps place a few phonecalls, express my disgust.
We basically set a cutoff when a party earned less than a two percent of votes. The table would be huge then :)
The developer is extremely responsive, you could probably reach out and ask. Typically for scp or ftp I just use a terminal session anyways. You can setup custom connection strings, so you could have a terminal session launch and connect with scp/ftp.
previous (11 days ago) submission with discussion:

https://news.ycombinator.com/item?id=9545180
Young Saudis, Bound by Conservative Strictures, Find Freedom on Their Phones
Not to mention Colossus, Baby and the Z series from Germany
Before sentencing, Ulbricht begs for leniency
Celebs use PR agencies, not marketing.

Currently in house for TS: http://www.adweek.com/prnewser/taylor-swift-breaks-up-with-h...
Never thought bout this, but it's clear that it's possible to have an "antibiotic" that target the mitochondria but leave the rest of the cell alive (for a while). That will be a poison, and be not useful as a actual antibiotic. I there a well know substance like this?
We’ve Got Issues: The Interoperability Challenge
> I had a lot of expenses and debt I was paying off ergo why I had not had much saved

This is me right now, and it's such a scary situation to be in. Yes, I am lucky enough to have a job that pays me more than I ever thought I'd make, but it could go away any minute -- and siphoning all my cash into my debts might look a lot worse then.
To install it now: https://github.com/supermarin/YosemiteSanFranciscoFont
High on hyperbole, low on content and nothing there new for HN users. Don't waste your time.
It is in the preview of Windows 10.
"Make the life of", I presume.
Why Today’s Teens Are More Entrepreneurial Than Their Parents
6-ways-to-qualify-your-prospects-like-a-pro
No, I'm unhappy with its style, which is clunky and clumsy.
> Whenever I bake something, time accelerates on the oven clock.

Bonus! You can make thirty minute brownies in twenty minutes. http://www.uffaz.com/entertainment/i-cook-thirty-minute-brow...
Thanks! We didn't even expect being on HN frontpage :). We tried to do an 'editorialized' newsapp rather than being a simple API of the results.
6-ways-to-know-who-is-ready-to-buy
Cycligent.com - layers on top of AWS. Allows for multiple simultaneous versions of an app on the same URL. Also, the easiest deployment I have ever seen.
Testing Your Software Properly
4 Data Driven Tools for Sales Success
For?

Our own products and for any programmatic file access, backups etc we use S3.

For simple file sharing internally and with clients we use box. We keep a dropbox account active for those clients that already have dropbox setup, but our preference is box. The reason for that is likely more personal preference over capabilities, but we just like box better overall. It works good, never had an issue and to me it feels more business friendly from the start.
Unity3D cloud uses OpenNebula
In typed functional programming the more general the type of a variable, the shorter it's name.

Eg in the following snippet

map :: (a -> b) -> [a] -> [b]
map f (x:xs) = f x : map f xs
map _ [] = []

there's nothing known about x (apart from that you can apply f to it). So there's no way to give it a more descriptive name. We just don't have more information.
The truth is that we like it as well.
He means "Make the life of people..." in each case. The phrasing without "the" sounds to me like Powerpoint-Speak... leaving out minor words in order to fit more bullets onto a slide. Those minor words are usually grammatically necessary, but in the context of a slide presentation the presenter's verbal part of the presentation clarifies ambiguities in the visual part.
@germanier and @babatong No, you are both wrong.

The democratic mandate for EU commissioners is less strong than for directly elected officials.

@matt4077 called out that even Cameron is not elected directly as PM, and that is correct. The problems with the existing parliamentary democracy in the UK are well understood.

So having a "somewhat undemocratically elected official" Cameron, nominate a person for the commission who has not been directly elected at all by the populous, is less democratic because it is one step further removed from direct election.

This is how we have all these "unknown faces" wielding immense power in Brussels - like Herman Van Rompuy, President of the European Council.

The democratically elected European Parliament then vote for the nominees, but at this point the nominees already have less mandate (for reasons given above) than the members of national parliaments (and the EU parliament). And, I might add, more power.

This is one of the main problems with the EU as a political union. It is a move away from grass-roots democracy towards a centralized monolith that disenfranchises millions and millions of people.
ah nice, I've done something similar that integrates with github issues and PRs, mine is not as polished tho https://sevki.org/joker
Patent dispute: Facebook sued over ‘like’ button
I voted Green, then I found they want to shut down ITER. Bastards! Should have stayed home.
Tables require sequences of structurally isomorphic operations. Columnized code can work very well for matrix calculations, for example.

But most code that has structural isomorphism should be replaced by a loop or a function composition; repeated structural isomorphism is a redundancy that can be eliminated.

Aligning the initialization of a bunch of unrelated variables is a bit of a mixed case. Sequences of initialization are much more common in older languages, like C, that don't permit delaying the declaration. I don't have a strong opinion either way. If the data being initialized is structural, a tabular format should definitely be used, if it isn't fighting the tool (some IDEs etc. autoformat, or lint complains on unnecessary whitespace). If data is not structural and the variables aren't strongly related to one another, I don't see a good argument in favour of alignment, particularly when variable names can have wildly different lengths, e.g.:

source = 10;
timeout = 20;
wait_count = 30;
ch = 0;
accumulator = 40;
access_denied_retry_callback_list = [];

I find this substantially harder to read (see name to value and vice versa) than non-tabulated initialization.

source = 10;
timeout = 20;
wait_count = 30;
ch = 0;
accumulator = 40;
access_denied_retry_callback_list = [];
This is untrue. Java is very fast once the JIT warms up. The biggest cost to java is the startup time, but for a long running application it's not really an issue.

In fact, Java can be faster than C for a long running application, because you avoid problems like memory fragmentation. Garbage collection can compact used objects into smaller sets of memory, improving cache utilization.
Proper sitting posture is something you can pick up in the next hour and its benefits can be felt for the rest of your life.
klacc
Well you can see my comment above, but overall ag|awk|pt will be much faster (but might be less accurate).
Leasot tries to weed out some false positive (by creating better comment for file type specific comment regexes).
Also provides several reporters (JSON, XML, Markdown...) if you want to integrate with other tools (jenkins, travis etc...)
> As long as RMS is in charge, I'm not worried about the contents of the next GPL dramatically differing from the current spirit.

You don't have to trust RMS. You can trust lawyers interpreting clause 14 of GPLv3 correctly. This clause says that later GPL versions must be "similar in spirit". It also says that newer versions cannot impose any more obligations or restrictions on authors or copyright holders.
I would assume a normal distribution where 68% of the population land between 85 and 115. Or a movement of .4 SD. [0]

Nearly 16% of people would lie between 97 and 103. [1]

It's 40% of a full letter grade[2]

[0]http://en.wikipedia.org/wiki/Standard_deviation
[1]http://www.wolframalpha.com/input/?i=area+e%5E%28-1%2F450+%2...
[2]http://en.wikipedia.org/wiki/Academic_grading_in_the_United_...
Google: Security questions across websites are very easy to guess – BGR
probably because of historical reasons and as a result of the last 30 years of immigration policy (especially the french-speaking countries)

Could you elaborate on this one? I worked for an international company in France, and even though engineering was pretty diverse, most of the management was French.
Why not? What other country goes around bombing civilians and pushing war on every front just in order to get resources in the name of 'democracy'.

The whole US law and political process is very corrupt from the view of an european citizen.

To tell the truth, I really hate the way US acts as if they're not the bad guys. US is the bad guys. I really hope somebody would do something about this, and ultimately this lies in the hands of US citizens to make a change.

I am also very concerned about this TTIP -agreement. They are already doing things in Finland in order to sell our water to companies like Coca Cola and Pepsi (sugar-caffeine drug peddlers). This really makes me mad that with money politicians can be bought, and laws can be reformed to fit those of big huge companies who only think about making a profit in the name of destroying our nature, people, animals and other living forms.

Actually, what I wanna say is: F*CK USA. The whole system is based around killing others and taking their resources. Native Americans know this very well, and US citizens don't seem to even realize that they live there only because the previous inhabitants were killed or driven away from their lands with agreements that were false to begin with.
Clunkier. Yep. Doesn't look near as good as the 'real' Spectrum R-Type.

https://www.youtube.com/watch?v=-6lvAXSGBpI

I think it's the blocky movement that kinda kills it for me.
4 out of 10 sites unaware of the Google’s new Mobile Ranking Signal
Thanks for the link. The question remains what's the difference between the original and the fork. The stencils page on the original project site shows some widgets[1].

[1] http://pencil.evolus.vn/Stencils-Templates.html
I played with Elm a little as well. Right now is not the time to start learning it by the way, because there will be a new website with new tutorials up soon. The last release (0.15) introduced some major changes, so it's better to just wait for them to update the docs and tutorials.
There is no need for your second line. Your first line is a valid, relevant opinion. The second one has no use but to belittle the OP (or anyone else who has written a TODO scanner). You're being a dick, and missing the forest for the trees while you're at it. This project can be integrated into a larger gulp workflow, for example. It also has the ability to write the output to custom formats.
The Apple Watch Design Resources license where the font seems to have originated is pretty strict about using this font:

Limited License. Subject to the terms of this License, you may use the Apple Font solely for purposes of design and development of applications for the Apple Watch. The foregoing right includes the right to show the Apple Font in screen shots, images or mock-ups of an Apple Watch application.

https://developer.apple.com/watchkit/ (after clicking on Apple Watch Design Resources)
I'm not an expert on these issues, but I haved heard mention of the Singapore treaty and that it already provides investment protection. Can anyone explain why these protections are deemed no longer suitable?
If you choose a Opentype typeface with Tabular figures as an option, you could have a high quality typeface that prints out the numbers that are fixed width, but might be significantly more aesthetically considered than standard monospaced font.

Here's some typefaces that are for the most part, only numbers, that I think might look rather nice for just tabbed numerical data: http://www.typography.com/fonts/numbers/inside/claimcheck
http://www.typography.com/fonts/numbers/inside/greenback
Will a Nicotine Patch Make You Smarter? (2014)
Worth noting is Doug Crockford's TDOP parser implementation in JavaScript, it's quite elegant: https://github.com/douglascrockford/TDOP/

As well as his accompanying talk, titled Syntaxation: https://www.youtube.com/watch?v=9e_oEE72d3U (sadly, the recording has gaps and is generally horrible; as far as I know he gave the talk only once).

Crockford's talk led me to the original paper and together they really expanded my horizon on how to make maintainable parsing engines. Thanks for putting in the effort and making it more accessible!
I've casually worked on MUDs for a while and whenever I help a friend, the first thing I do is put their game in a spreadsheet. It usually reveals several things they didn't realize about their game.

They tend to tweak their games over and over based upon feedback until they eventually don't know what their own game is doing.
It's sad to see a company with such engineering capacity to continue down the road of making shit vehicles. Their supply chain us also shit and as a result other manufacturers have to buy from the same shit. It's not all GMS fault, but they do have an immense power over other brands in terms of supply chains. This company will never die and will never reform. Don't buy GM.
This is a great solution. I would only use Leasot if you need to weed out some false positives (variable names, strings etc...) and perhaps want to output in a special format (JSON, XML, markdown...) for another tool (Think jenkins CI for example).

If CLI regex matching (grep, ag, git grep, pt, ack...) works for you, I would stick with it ;)
So,you think it's only the money or cost that matters? How about the fact that this means that pesticides will contain more harmful ingredients and might destroy parts of the agriculture? Oh yeah, but you can't really see immediate dollar results from that.
4 Customer Acquisition Hacks for Pre-Launch Mobile App Traction
Stop looking in a local area. Remote work is on remote work websites like wfh.io and remoteok. And upwork.

Also, this is a slow cultural transition as people learn about remote tools for collaboration and start to accept it. So within a few more years it will be different.
I think you're giving them too little credit. The government wouldn't have to confiscate property in that scenario, they could just buy it. They're not exactly short on money.
It does look good on the Watch. But that doesn't automatically mean it would be a good choice for other uses. In my subjective opinion it looks pretty bad as OS X system font. Take a look: http://9to5mac.com/2014/11/19/how-to-use-the-apple-watch-fon...
grep supports regular expressions as well (hence it's name: http://en.wikipedia.org/wiki/Grep). In fact GNU grep even has support for PCRE.

However it should be noted that regex isn't the right tool for parsing source code to begin with. There could be instances in that code where false positives are matched. And there are already known instances where positives are missed (namely "//" comments). So if you really want to exclude anything that isn't a comment then the only accurate way to do so would be full source code parsing. Failing that, it's better to match all instances since "TODO" generally isn't a string that occurs frequently outside of comments (unless it's a visual prompt to the user, eg

alert('TODO: this feature hasn't been implemented yet')

but in those instances you'd want the source code captured as well).
I think so, too.

My concern is that regulation can not advance because it would brake the treaty by losing the unification of standards.

The EU can not agree with Washington either, because it is not responsible in most cases. My understanding is, that the EU and the US are organized in the direct opposite way: In the US, Washington is responsible for the military and so on while every state has its own laws for protecting the environment or license plates and stuff like this. The EU tries to agree on standards for these things and has very limited rights in topics like foreign policies.

And I would hate to lose in a secret court against Phillip Morris.
I have spend a lot of time looking for some cool discussion stuff built over Tor! It looks like it.

If someone is looking for another address to add just to test this

ricochet:pp7kgrom5nhcox3y
They are decorative ligatures so they do serve no purpose other than visually disturbing you ;)
Genuine question: what trade agreements do we already have in place? Im not clear on what's wrong with the way things are right now.
I'm not sure if it will make you smarter, but I find that nicotine really helps to keep me focused when I'm working on tough problems. Unfortunately I smoke, but am considering getting on the patch.
In Finland at least this agreement and it's harmful effects are widely known, at least relatively when talking about pushing new laws.

And there have been numerous demonstrations against the agreement, and petitions calling to not let it pass. But they just keep pushing it.
It weirded me out, too.

The only image I tried (http://www.cs.toronto.edu/~nitish/nips2014demo/results/79355...) is tagged "lesbianism".
Roll your own Authorization in Rails
Would love to get some hints/tips on a refactoring for this. This is something I came up with a while back and I'm sure it could use some improvement.
> Why would you write something that the compiler will ignore eventually?

Because your real target for your code is not the compiler, it's your co-workers, who will have to go back and read and modify your code. Plus, they may not be able to contact you with questions about your code.

A single well written comment can save your co-workers from having to read a hundred lines of test code (and correspondingly, test code boilerplate). Why not give them that kindness?

> Comments are either obvious or they're lying.

This argument only applies to poor comments, which were not maintained alongside the code. If you just remember that the audience your code was written for is not the compiler, it makes more sense.
"when we made it a success" sounds about as ridiculous as every claim that Steve Job invented almost anything tech related.
I'm not the parent, but as someone who also doesn't prefer aligning variable initialisers I can say the reason is that declaring variables and initialising them is not something I see as being tabular --- they're just a sequence of statements, and I wouldn't align them just like I wouldn't do this with a series of function calls:

foo (5, 7);
barbar (j);
do_stuff(6, 1, 7);

or this with flow control statements:

if (x == y) {
...
}
for (...) {
...
}
while(...) {
...
}

Things like array initialisers, however, I do align.

int n[16] = {
15, 17, 22, 38,203,155, 7, 10,
255, 11, 44, 1, 0, 0, 5,227
};

To someone who reads code the way a computer parses it (as I do), the added space can completely throw them for a loop.

Actually, if you were really reading "the way a computer parses it", you'd ignore whitespace completely.