Better HN
topnewbestaskshowjobs
Log inSign up

reyan

65 karma · joined Apr 2, 2012 (14y ago) · 52 submissions

Submissions

comment 6y ago · link · parent

This is just too much. Nobody wants to have a linter for their code “documentation”! Oh we’re gonna have the linter in our CI pipeline too probably.

2.

China's netizens get creative to share censored article on whistleblower(straitstimes.com ↗)

1 points · by reyan · 6y ago · discuss

comment 11y ago · link · parent

Please don't use inline CSS in your page. In order to read the cached version [1] I had to manually remove the sidebar because it overlayed the main content with inline 'position: fixed'.

[1] http://webcache.googleusercontent.com/search?q=cache:9UMu5i7...

comment 11y ago · link · parent

Run this in your browser's JavaScript console:

  socket.destroy()

comment 12y ago · link · parent

How do you deal with interoperability? You Android clients use your Shiny frontend over HTTP? Have you used rserve?

comment 12y ago · link · parent

This is the correct xkcd for this analogy http://xkcd.com/882/, not #1132.

comment 12y ago · link · parent

Great progress. I think it would be better if you replace those pie charts with bar plots. Better use of the space, much better for comparison.

comment 12y ago · link · parent

I think many of us want Go to be something it doesn't want to and will never be. There is potential for a fast, simple, statically typed language; borrowing good ideas from Lisp, ML and others (and NOT resulting in something like Scala).

comment 12y ago · link · parent

Yes I have watched Bret Victor's talk. Narrow minded or not, Brooks's predictions held true for more than a decade after the time of writing. I'd like to read your counter-arguments.

I'd say architecture and advances in neuroscience are tangential here. I think the core of the problem is still somewhere else.

* sidenote: Lisp machines weren't at least completely _ignored_ by academia.

comment 12y ago · link · parent

I think the author should read Fred Brooks's "No Silver Bullet". Many of his arguments are still valid after 28 years. "There is no single development, in either technology or in management technique, that by itself promises even one order-of-magnitude improvement in productivity, in reliability, in simplicity."

comment 12y ago · link · parent

I don't argue the merits, but the BMW case is obviously different (BMW core business, dependency on Google results, etc.), hence the disproportionate reaction.

comment 12y ago · link · parent

This (rather old) paper is still worth reading: Cleveland, W. S. (1984), "Graphical Perception and Graphical Methods for Analyzing Scientific Data"

http://courses.ischool.berkeley.edu/i247/f05/readings/Clevel...

comment 13y ago · link · parent

Soot is the first known environmental carcinogen (https://en.wikipedia.org/wiki/Chimney_sweeps'_carcinoma).

comment 13y ago · link · parent

Another invaluable resource is 'Ruby Best Practices' by Gregory Brown. You can download the pdf for free (http://majesticseacreature.com/rbp-book/pdfs/rbp_1-0.pdf).

comment 13y ago · link · parent

You can easily squash those experimental commits and have "incremental, atomic" commits in history. What it gives you is the freedom with a clean slate after each commit. And no stashing doesn't work because the next experiment might depend on the last one. Not happy? Interactively rebase HEAD~n and get rid of all the experimental stuff. Changed your mind? Git reflog is your friend.

comment 13y ago · link · parent

Isn't Murphy's book more up to date and comprehensive as a reference?

Edit: Andrew Ng's Coursera course is CS229A (http://cs229a.stanford.edu/), not really watered down.

comment 13y ago · link · parent

This is great. I suggest adding fallthrough statement in one of the switch cases.

comment 13y ago · link · parent

Original blog post: https://www.webkit.org/blog/2910/improved-support-for-high-r...

> Note that at the moment WebKit only supports the resolution modifiers (e.g. 1x, 2x, 3x).

The official [draft] specification: http://www.w3.org/html/wg/drafts/srcset/w3c-srcset/

The dimensions in the srcset attribute are the maximum (viewport) dimensions that an image is intended for. e.g.:

    <img src="pear-mobile.jpeg" srcset="pear-mobile.jpeg 720w, pear-tablet.jpeg 1280w, pear-desktop.jpeg 1x" alt="The pear is juicy.">

comment 13y ago · link · parent

It's interesting that you talk about others' logical fallacies, yet you started the thread with a fallacy (appeal to majority).

comment 13y ago · link · parent

A short and nice read is Unix for Poets by Kenneth Ward Church: http://www.stanford.edu/class/cs124/kwc-unix-for-poets.pdf

comment 13y ago · link · parent

You don't really need to completely uninstall homebrewed python. Just `brew unlink python` and after installation `brew link python`.

22.

The Science of Why We Don’t Believe Science(medium.com ↗)

14 points · by reyan · 13y ago · 13 comments

comment 13y ago · link · parent

Or use git-smart (https://github.com/geelen/git-smart). It adds three commands to git. One of them 'smart-pull' which "will detect the best way to grab the changes from the server and update your local branch, using a git rebase -p if there's no easier way. It'll also stash/pop local changes if need be."

comment 13y ago · link · parent

Did you use Python bindings for libsvm?

comment 13y ago · link · parent

In iTerm2 I use command+f and expand the selection using tab/shift+tab.

comment 13y ago · link · parent

Hotlinking raw.github.com assets has a rate limit. The demo is not working properly (apparently because of jquery.hotkeys.js).

comment 13y ago · link · parent

More on zsh globbing http://openclassroom.stanford.edu/MainFolder/VideoPage.php?c...

comment 13y ago · link · parent

Another book which I really liked is JavaScript Patterns by Stoyan Stefanov.

comment 13y ago · link · parent

Even better with the new syntax:

    expect(article.slug).to match(/[^\w-]/)

comment 13y ago · link · parent

Not really. At least RSpec's creator doesn't think so (http://blog.davidchelimsky.net/2012/05/13/spec-smell-explici...).
12