skysight-inc/HackerNews huggingface dataset:
Oh dear my table of effort censoring frequencies got all messed up and is annoying to read. Here is a slightly less garbled version:

isInconsistentDistances (difference of first and last 'distance' numbers in effort more than 2% away from official segment distance) : 442

isInadmissableAvgSpeed (journeys that are too slow) : 36

isInconsistentTimes (difference of first and last 'time' numbers in effort not equal to reported time for that effort) : 1

isNotAlwaysMoving ('elapsed_time' != 'moving_time' in Strava's effort summary) : 1164
C preprocessor macros that work on whole code blocks
I wrote a quick script to generate a list similar to (but not as deep or well-annotated as) Prof Palsberg's.

https://gist.github.com/shazeline/d9881d06be31a59a93d3

It's a BFS for Google Scholar seeded with Herbert Simon.
Actually I have a guy here in Shenzhen, also at Hua Qiang Bei who does board level repairs (with guarantee)on Macs for a fraction of what it costs to have the local Apple place swap out the whole thing. Shenzhen really is a Maker paradise.
I had that problem lately on a new box where "set -sg escape-time 0"[0] was not set in tmux. It feels so different and annoying I kept mashing the buttons.

[0]: http://superuser.com/questions/252214/slight-delay-when-swit...
Object-Oriented Java Adapter of Amazon S3 SDK
What social benefits does cannabis provide that are remotely comparable to those of alcohol?
AT&T and Verizon are usually the only carriers that bother locking bootloaders with no authorized unlock option. Most international/unlocked phones have some way of unlocking the bootloader. Samsung has recently started locking things down more with Knox I suppose, but I think the bootloader is still relatively open (my T-Mobile Note 3 and international Galaxy Note 10.1 2014 happily installed a custom recovery without any fiddling).
If there is a software that I use for the first time and it accepts commands my first command is usually "help".

Last time I had to debug a bash script so I found bashdb "from apt-cache search debug bash" and just ran it. I had no problem using the internal help.

Most of the time you don't have to look up things on the Internet and just RTFM.
Archive.org is also an option: https://archive.org/about/faqs.php#Uploading_Content
The Pocket Watch Was the World’s First Wearable Tech Game Changer
I wanted to share the parent URL but HN didn't allow me.

In "Why No-One’s Noticed This Before"[1] the author makes a distinction of `self-consistents` and `confabulators`. I've found this very similar to Robert Pirsig's `classical thinkers` vs `romantics`[2]. It is unfortunate that ZAMM devolves into rationalizing irrational behaviour and ends with a shrug after having raised the reader's expectations. I haven't read all of the material here yet, but so far it all makes sense.

1: http://the-programmers-stone.com/about/why-no-one%E2%80%99s-...

2: http://en.wikipedia.org/wiki/Zen_and_the_Art_of_Motorcycle_M...
Sometimes just the hardware.

I have a Kindle Fire HDX from Nov.2013 sitting around waiting for an unlocked bootloader to run custom ROMs. Why not just get a Nexus tablet? Because I don't like the design of those; Kindle Fire HDX is much prettier IMHO.
First find 10 people (business apps) or 100+ people (consumer apps) who need it like they need oxygen, then worry about meeting influencers.

After you have found people who need your app like they need oxygen, ask them where they hang out / who they listen to for advice on $YOUR_FIELD. Go there, meet people, show them the app that people in $YOUR_FIELD can't get enough of, explain why their audiences would be best served by hearing about it.

Some people think that Justin Bieber tweets about you and then, bam, business. This is not actually the way businesses are made.
> In fact, it’s the first in history that everyone actually reads, rather than just having fond high school memories of.

What an odd way of framing wikipedia. As a source of just information (the articles themselves) -- wikipedia is entirely unremarkable[1].

The fact that it is the first encyclopedia everyone can look into the editorial process of (history and talk facets), and contribute to (edit) -- is what makes it interesting.

Sadly, I have the impression wikipedia has been largely unsuccessful in challenging people to be more critical of what they read, and more confident in what they observe -- than it by rights should have been. Everyone that has a passing interest in encyclopedia knows that even Britannica contains errors and that it, like any other text, is shaped by sometimes ulterior motives in its editing process -- it's just that unless you go crazy with glue and scissors, you'll have a really hard time "fixing" an error in Britannica. And if you did, it'll be hard for readers to compare "your" version with earlier versions.

Consider the fact that Britannica has been in print since 1768 -- imagine how much many of the articles will have evolved since then -- and why. Now imagine wikipedia around the year 2200. You could go back an have a look at how the articles for "terrorism" and "surveillance" evolved from 2000 to 2050 for example.

[1] Entirely unremarkable might be a bit strong, it certainly is very vast -- but so is the Internet.
Ancient Unix were released by Caldera under a 4-clause BSD license.

See http://en.wikipedia.org/wiki/Ancient_UNIX

The source code for SysV is floating around the Internet, but adding it to this repo would amount to copyright infringement.
Simple CSV parsing and encoding
Yes it can.

We can already do it. Let me show you how.

Using a soft screwdriver handle, gently tap the top of your knee where your patellar is located. You're performing the patellar reflex procedure which will cause your hamstrings to contract and your leg to kick out gently.

Its not high tech ghost in the shell stuff but it is technically a hack!
What if there is #COMMA, in one of the fields (but no #COMMA#)?

Yes, the assumption you have to make is called the grammar, and you better have a parser that always does what the grammar says, and global text replacement is a technique that is easy to get wrong, difficult to prove correct, and completely unnecessary at that.
Quake-style dropdown Mintty console using AutoHotKey
Instagram is having a contemporary art moment thanks to an artist it once banned
Quick summary: Rheumatoid arthritis can be put into remission in some patients by stimulating the vagus nerve for some reason. Eventually it may be possible to stimulate the nerve more precisely using one of several exciting technologies.
I think it's great that some universities are asking doctorate students to include one or a few wikipedia articles as part of their published work.

We really do need more experts writing wikipedia articles. Even if they just spend a month or so writing a thorough (if biased in the sense of there being just one or very few authors) -- a good first draft is much easier for others to come in and comment on. And veterans in the field might not find the time to write an introductory article for scratch, but they might have the time to read one, and comment...
Looks great, but what about validation for the models? Didn't see that mentioned anywhere.
Doesn't do it. In other news, stylish-haskell appears to have been updated and now installs. :)

Still, as a first experience of haskell, it ain't great.
Samsung does, they don't care all that much, they sell devices. ATT/Verizon (carriers) are the ones locking the phones down here (and want to lock the users into their contracts).
I don't drink. Why? If I drink I have terrible hangovers and can't function the next day. I go to the gym 3 times a week and on weekends I do rock climbing. I'm trying to get a job as a fulltime developer and that requires me to try get as much programming as I can in a single day. If I go out to drink and get myself wasted then I'm wasting my precious time. I got drunk a lot of time already and seriously can't imagine why would I want to do that instead of working on myself in my free time.

But I guess I'm just one of unadventurous people.
Well, it's not unique to wikipedia, it's just more visible to everyone (you do have all the history there, with any luck, there's a comment in the talk page: 600 days ago "This fact was apparently made up out of thin air, then cited as..."). If editors do a bad job (some always will) -- errors will happen and be harder to fix.

It's text, it won't magically curate itself.

There might be a lot of room for improvement in how wp is curated, similar to how we have various workflows to deal with code (eg: move to a model in which every change has a "bug" filed in a bugtracker, and edits are only accepted with a proper "fixes:xxx" tag -- rather than just "free form" commit messages).

[edit: I just realized (it's probably not a novel idea) that the best way to look at wikipedia is not as a set of articles/"facts" and their history, but as a process of collecting "true statements"/"true articles". This process could be viewed along the lines of:

1. Ask a question (why are bees black and yellow?)

2. Look for an article that answers the question

3. If no article exist, try to write one (this perhaps should be moved to an "issue tracker"/"stack overflow" type thing -- 3.1 "file a bug against wikipedia"

4. If an article exist, read it

5. If the article appear to contain errors, investigate (for possible factual errors, look at talk page, history -- for spelling errors "file bug" 3.1)

6. If there are open bugs (such as errors you've just found) submit a patch

7. If there are pending patches vote yes/no/commment

Something along those lines could constitute what wikipedia is -- not merely the articles and a wiki-interface. Then it becomes something more than "just" a wiki or "just" an encyclopedia.]
I don't know much about neuroscience, but author's credibility can be doubted after he created his own "religion", described here:
http://buildfreedom.com/content/reciprocality/thirdage/

Most serious scientists treat his teories as pseudoscience.
Or ZZ.
Any one know how do I search for a shortcut in different modes?

For example, 'ctrl-r' in normal mode means redo, in insert mode means paste from register. However ':h ctrl-r' only shows the help for normal mode.
Rap Genius founder's annotations on Elliot Rodger's memoir draw controversy
Slant.co is still the appropriate place for that. A lot of the answers are minimal on detail but only because whoever created the answers wrote it that way. Some of their comparisons get a lot more in depth. They have a meta discussion site if you want to know more.
Flipkart raises $210 million led by the Russian investment firm DST Global
I have seen many sample projects included in full in final products. "It's from Apple, it must be good!"
While I do like what I can read on Medium, I do not want to login via Twitter or FB to write on my own.

I also would prefer to learn how a platform plans to make money before I use it, does that anyone know here by any chance?
Time to rest and relax
TL;DR: We have found that simple seasonal AR models that include relevant Google Trends variables tend to outperform models that exclude these predictors by 5% to 20%. We hope that these examples will encourage other researchers to experiment this data source in their own research.
Only usable for entries in English, as title and subtitle fields uses font with no non-English characters. There are bugs and then there are bugs that render service unusable for most part of world.
UX or User Experience
The process of developing a website
> The query language breaks down almost immediarely.

Agreed. We dropped an ORM completely and use SQL in functions (aka stored procedures). For models we use plain JS objects and for validation we use Joi (https://github.com/spumko/joi) from Walmart Labs.

Eliminating an ORM has been freeing. We did have to invest in upgrading our team's SQL skills, but we no longer run into limitations of an abstraction layer. Our queries are faster as there are fewer layers. Now that we're up to speed on SQL we find it to be expressive for our data access needs.
They are, and even talked about it at dconf 2014. The video will be uploaded within some days.
http://dconf.org/2014/talks/simpkins.html

Here's one of the projects written for Facebook by Walter Bright: https://github.com/facebook/warp
Ask HN: Are there any user-agent aware url shorteners out there?
I'd like to find a url shortener like goo.gl or tinyurl.com that is able to redirect to different urls for given different user agents. One reason to have a service is to be able to provide different download links of an app for different operating systems.
https://hn.algolia.com/?q=understanding+web+pages+better#!/s...
These guys really don't learn, they keep copying unattributed articles from other sites and translating them. Flagging this.
it's too much thinking to realize that
Is All the Universe from Nothing?
How can the company patent the broccoli when they received their seeds from the professor, an uninvolved 3rd party (To the point that their lawyers are asking him for more samples when they made their patent claims).

Isn't this de-facto prior art?
The bounty only explicitly mentions stock firmware but it is implied that the exploit should also not require disassembling your device and messing with its hardware. This makes me wonder: would a hardware exploit be easier? Modchips have been a staple of the console scene since at least the original PlayStation but I am unaware of their use in smartphones.
An example of a university that is doing what you suggest is Princeton: see Brian Kernighan's course "computers in our world" and the accompanying book D is for Digital. http://www.cs.princeton.edu/~bwk/
Sorry for the necro-reply, but here goes.

There are two things about syntax that I think are actually objective. One is that, when beginners read their own source code that isn't working, they often have more of a tendency to read what they intended to write instead of what they actually wrote, especially when it comes to punctuation symbols.

This means that, when the indentation is right, but there's a missing -- or extra -- brace or semicolon, it can be very, very difficult problem for a beginner to even see. It's also possible for a beginner to write a program with many instances of brace/semicolon issues, giving a frustrating (and sometimes bewildering) boatload of syntax errors.

The second problem is that it's difficult to remember the meaning of symbols. This is true not just for beginners, but also for experts learning a new language with different symbols. This means that the number of symbols in a language should be kept to a minimum. Furthermore, where possible, symbols identical to those used in other languages, or in mathematics, should be used. Where a language has novel ideas that don't exist in other languages, those ideas should usually be expressed by keywords, not symbols.

Ruby fails at this. See [1] for an example. I don't mean to pick on this particular project, rather this file is typical of Ruby code. The file contains the following symbols which seem to be used differently from any language I'm familiar with: Less-than sign used in class declaration, use of colons for thing(s) that are neither dictionary literals nor labels, "absolute value" bars in e.g. { |p| p.id }, shift-left operator used in class declaration, question mark used for something besides ternary operator, lines without side effects like "true" and "false" sprinkled throughout the code (is there some "empty operator" that's applied to these lines to give them side effects?).

My point is that neither a beginner, nor an expert in non-Ruby languages, can understand the above code without constantly consulting the documentation for the unfamiliar syntax elements (and good luck figuring out how to search for "meaning of -> operator in Ruby" without knowing what the -> operator is actually called!) Whereas most Python programs read like pseudocode and can be reasonably well interpreted even by someone quite unfamiliar with the language.

Good languages address that problem by limiting the number of symbols, and making the meaning of symbols as simple and intuitive as possible. Ruby fails utterly on both counts.

I think these facts should be simple and obvious to anyone who's ever attempted to learn either Ruby or Python, but I guess this is HN, where an amazing number of people think Ruby is the bees' knees for no reason I can make sense of.

[1] https://github.com/gitlabhq/gitlabhq/blob/2a8aa7429b6f489acd...
That one can get away from the default browser style, and edit in the same style as the site itself, is nothing short of a revelation to me—back in 2004, when I encountered this pattern for the first time on the website of Mediamatic, a small Amsterdam based arts institution.

Ever since I have been wondering why inline-editing is not seen more often. The separation between ‘front’ and ‘back-end’ seems unnecessary. ContentEditable came along to make things easier—yet it wasn’t really picked up.

My hypothesis is that programmers are not really interested in innovating for WYSIWYG interfaces, our culture being steeped in reverence for Unix’ plain text. The age-old WYSIWYG editors like CKEditors are tolerated but not loved.

On the other hand, I’ve seen lots of text-based editing solutions like Markdown-widgets and static-site generators.

The tide does seem to be changing a bit, with such recent announcements as the Guardian’s Scribe project showing more interest in rich text editing.

<plug> I wrote in more detail on this on my blog:
http://i.liketightpants.net/and/hackers-culture-and-the-fear... </plug>
Personally I know the pain of creating a CSV parser. In late 2006 I was working on a PHP project that required a CSV parser, and what was available at the time did not come close to cutting it. So I created my own parser/generator, which among many other things included automatic delimiter character detection. It was a rather painful project to create, but I learned a lot, and found the experience really fun.

Overall I agree with the article, there's no point in reinventing the wheel if there are libraries out there. And CSV specifically is a horribly complex format to deal with. But sometimes rolling your own is the best and/or only choice you have, and you might come out the other end enjoying the experience, and having learned a lot.

As for what happened to my old CSV parser? It ended up being quite popular, but stuck in the dark ages as I'd mostly moved on from PHP years ago. But thanks to a contributor, we've recently put renewed effort into bringing the project in to modern times: https://github.com/parsecsv/parsecsv-for-php
TL;DR :-(
You're right that people give professional favor based on personal affinity, what I'm not sure you're right about is that it's so wrong to do so. If I don't like you, then it's likely that your direct reports will feel the same way, as will potential clients or partners, which is a risk to the business, so I'm not likely to choose you for a position that puts you in a position to interact with many people. Most high senior positions require a ton of soft skills, so you're probably going to hit a ceiling unless you prove that you have them. Making your manager and peers like and trust you is step 1; the best people go far beyond that very quickly.

Nobody ever promised that career progression would be based on coding chops, especially when each jump up the ladder means less time coding and more time people-hacking.
The Eurosceptic Union
A bridge between Hoa\Console and Symfony (PHP)
I specifically put in a clause for that:

Third step, banning advertisement for bills except for public notices.

It's how they do it in many (if not most) countries. You still have political discourse but you can't spend to get it. It works quite well.
Well, SPDY might be a "prototype", but it's solving real problems today - I care less if it's perfect or not, if it solves all problems or not, as long as it's easy to implement, has a decent footprint, and offers significant improvements over HTTP/1.1. An imperfect working prototype is better than a perfect blueprint that materializes in distant future where problems and environment can differ greatly.
I said 'the sad thing is the idea that code is so expensive and rigid'. I personally don't think that code is particularly expensive or rigid at all, perhaps least of all this type of specialized task automation code.

I guess there are two ways that you "will often be wrong" when automating a specific task. 1) You could improperly or so incoherently automate the task that it actually is harder to for your users to accomplish the task with the tool -- failure to improve productivity of the stated task, or 2) you could successfully automate the task at hand, but either the improvement is too minimal, the task is too rare, or the code cannot be well leveraged when the task needs to change, meaning you never get to break-even on the investment. Both failure modes can be well defended against by a good PM.

Are you saying, that by shipping some automation code, now just by nature of having the tool in the workforce's hands, they are actually less able to understand the problem domain and come up with better ways of doing things in the future?

I think of it a bit differently; the automation of a given approach gets so good that a competing idea that could actually produce a better outcome, but must be done completely manually, is so inefficient compared to the automated workflow as to result in a negative effect, and so it's dismissed. (E.g. you earned an extra $10k on this client doing it your way, but if you used the automated fast-path, you could have just closed 5 more clients at $10k each in the same time).

One way I see this often manifest is the idea that sales always wants to be able to say YES to the prospect / client. If you have a large software automation toolset, you only say YES when the needs match the capabilities, because you lose money every time you work on the special-case clients. I think basically you sacrifice growth rate in this case in order to be a jack-of-all-trades.
4 Steps To Boost Your Content Marketing ROI In 2014
Why not just redirect to your own php redirect page, check the user agent there and redirect to the correct download page?
I am so glad there is at least one prominent name advocating this line, because I feel like this quote from another IETF discussion is becoming more and more relevant:

> Is there an IETF process in place for "The work we're doing would harm the Internet so maybe we should stop?"
- http://www.ietf.org/mail-archive/web/trans/current/msg00238....

HTTP/2.0 has been rammed through much faster than is reasonable for the next revision of the bedrock of the web. It was always clearly a single-bid tender for ideas, with the call for proposals geared towards SPDY and the timeline too short for any reasonable possibility of a competitive idea to come up.

There has never been any good reason that SPDY could not co-evolve with HTTP as it had already been doing quite successfully. If it was truly the next-step it would have been clear soon enough. All jamming it through to HTTP/2.0 does is create a barrier for entry for similar co-evolved ideas to come about and compete on even footing.