Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
wging
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
40 ms
·
421.
▲
by
wging
11y ago
The Clojure in the article isn't idiomatic, as the author admits. You could do something very similar in Clojure, though the details are different. In fact when I tried this problem my solution was shaped about like yours.
422.
▲
by
wging
11y ago
I think I disagree. What he wanted can certainly be called a matrix. An m-by-n matrix has an entry for every (x, y), 0<=x<m 0<=y<n, but that's not a description of the way to represent a matrix in memory. That is an imple
423.
▲
by
wging
11y ago
> But I wanted to appear smart, so I didn’t express any confusion. In fact some interviews are intended to flush out behavior like this. Give a candidate an ambiguous problem statement, and see if they ask the necessary clarifying questi
424.
▲
by
wging
11y ago
Emacs is good for this. A buffer of clojure code in cider-mode can be (re-)compiled easily when you're jacked into a running session (as he does above). Of course, some of the issues the author faced can't be solved by Clojure
425.
▲
by
wging
11y ago
One can also achieve it in emacs using the multiple-cursors package. https://github.com/magnars/multiple-cursors.el But I wouldn't necessarily call emacs "great for non tech people". (I suppose it's
426.
▲
by
wging
12y ago
I think you may have confused "rational response" with "response that feels good to me".
427.
▲
by
wging
12y ago
It is a simple problem to explain, and the goal may be to use it to explore novel programming paradigms rather than to solve it optimally. I am sure Matt Might knows about the efficient solutions to this problem. By the way, there are plent
428.
▲
by
wging
12y ago
Why not instead do _.map(_.values(thingsGroupedById), function(thing) { // operate on thing } Then there's no need to do the property access yourself. Chaining makes this even nicer: _(thingsGrouped
429.
▲
by
wging
12y ago
I'm surprised it's so new. And wget is only a year older... what did people use before then?
430.
▲
by
wging
12y ago
It turns out stuff like that is already done. I just found out, by viewing that thread, that reddit responds to GET requests with the X-Moose:majestic header.
431.
▲
by
wging
12y ago
I think this is fixed in upcoming releases. It DOES NOT crash for me on Chrome Canary (43), on OS X 10.10. It DOES crash for me on Chrome 41, same OS.
432.
▲
by
wging
12y ago
Have you tried this? It runs on some BSDs, so I expect there's a chance it'll run on OS X too.
433.
▲
by
wging
12y ago
Seems to be pretty easy if all of your team members share a common letter :) if author.downcase.include?(guess.strip.downcase) && !guess.strip.empty?
434.
▲
by
wging
12y ago
For those who are wondering, you can still use an embedded webview, which does end up doing just-in-time compilation of javascript.
435.
▲
by
wging
12y ago
I typically see "[dead]" on dead posts. I don't see this on lawyeard's. Am I missing something, or did the post become alive again?
436.
▲
by
wging
12y ago
I think it has to be fairly new (at least in its current location) just because the .wiki TLD is under a year old. "[The top-level domain name]... became available to the general public on May 26, 2014" - https://en.wik
437.
▲
by
wging
12y ago
Any site that serves up content that will be interpreted by `sh`. Meaning, what happens if someone decides they want you to lose your home directory? They serve up the content "rm -rf ~". That doesn't even require privilege e
438.
▲
by
wging
12y ago
It still has profanity, in the form of a link to http://fuckinggodateformat.com/ :) Personally I see no problem with this being a WONTFIX. I wouldn't even have built the flipping thing in the first place. (I might have
439.
▲
by
wging
12y ago
Who says ((0 1) (1 0)) is a real matrix? It's a complex matrix whose entries all happen to have 0 as the value of their imaginary part :)
440.
▲
by
wging
12y ago
It was my understanding that people have already extended emacs in the usual way to do lots, using llvm or clang, and that this argument is only about trying to do things that can make it into emacs proper. Is that not right?
441.
▲
by
wging
12y ago
Merging of tweet shards is also possible via the same mechanism. Just tweeterate through the retrieved shards and merge them one by one. To merge two lists, compare elements pairwise. To compare elements pairwise, construct a two element li
442.
▲
by
wging
12y ago
Russell is one author. The other is Peter Norvig.
443.
▲
by
wging
12y ago
Previously: https://news.ycombinator.com/item?id=8831172 And previously: https://news.ycombinator.com/item?id=4746787
444.
▲
by
wging
12y ago
There are a few benchmarks where the difference is a factor of two or so, which is actually significant. It does require a careful reading and a healthy degree of skepticism about the close results (the majority) to get something useful fro
445.
▲
Don't Do This (PyCon Australia) [YouTube]
(youtube.com)
1 points
by
wging
12y ago
|
0 comments
446.
▲
by
wging
12y ago
This is RFC 5966, for those who wondered: http://tools.ietf.org/html/rfc5966
447.
▲
by
wging
12y ago
Yes.
448.
▲
by
wging
12y ago
Actually, it watches all of /etc/. Rachel wrote this: "If you poke around in the source, you can find that it actually registers watches for the entire directory of its config file for various reasons, so it winds up followin
449.
▲
by
wging
12y ago
I seem to be getting some good completions for files just from Company-mode. I typed "/us" and got a list including /usr/, /usr/bin, /usr/lib, etc. Also, tab-completion seems somewhat good. I typ
450.
▲
by
wging
12y ago
You'd also probably need to do some fairly precise calculations in order to manufacture accurate measurement tools. Chicken-and-egg sort of problem?
More ›