Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
grayrest
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
52 ms
·
421.
▲
by
grayrest
14y ago
isNaN will return true for NaN and all values that coerce to it. The equals check will test ONLY for NaN itself: var x = "a"; isNaN(x); // true (x === x) === false // false x = NaN isNaN(x); // true (x === x) === false // true
422.
▲
by
grayrest
14y ago
Strings that arent numeric are type coerced into NaN. Using unary plus to coerce to number: +"2" is the primitive number 2 while +"a" is NaN and per the floating point spec, any arithmetic operation on NaN results in NaN. The correct though
423.
▲
by
grayrest
14y ago
> Any developer version that we could buy? Like all Mozilla projects, this is developed completely in the open. You can get an original Galaxy Nexus and flash it over to the latest nightly relatively easily. It probably works on other p
424.
▲
by
grayrest
14y ago
In addition to the responses from the Mozilla guys, I'll also point out that the limiting factor in speed for most web applications is not javascript runtime speed but dom manipulation, reflow, and repaint. The tricks for optimizing these t
425.
▲
by
grayrest
14y ago
If you're a developer, this is what you need to know when writing javascript: http://bonsaiden.github.com/JavaScript-Garden/ It's not that long and it covers all the major points of confusion. Edit: Also, ignore point 4 of the linked arti
426.
▲
by
grayrest
14y ago
I'm on Aurora (16.0a2 (2012-07-23)) on OS X 10.7 and the two examples look identical.
427.
▲
by
grayrest
14y ago
Does anybody have a term for the phenomenon where a technology achieves enough critical mass among early adopters for network effects to arise only to have the technology improve as it matures so the late adopters wind up leapfrogging the e
428.
▲
by
grayrest
14y ago
The problem with answering this question is what exact subset of Vim features you use and whether you're willing to learn replacement commands or hack your missing features in. Of the features you list, you can record macros into a buffer (
429.
▲
by
grayrest
14y ago
The setting applies to all maps. :help timeoutlen
430.
▲
by
grayrest
14y ago
Just need to make sure pedal down is idempotent. Having the pedal send something like Shift+F2 and then `nmap <s-F2> i` `imap <s-F2> <Nop>` takes care of that. Escape is always idempotent so no issues there.
431.
▲
by
grayrest
14y ago
> Has anyone thought of this before? The 1992 paper "The Prevention of Mode Errors Through Sensory Feedback" [1] uses this exact mechanism. [1] http://research.microsoft.com/en-us/um/people/asellen/public... I've argued for years that
432.
▲
by
grayrest
14y ago
I talked with one of the devs at BackboneConf (Vojta) and this project started as a 20% project that became fulltime for 3 devs. Apparently a team had been working on an internal project for 3 months and there was a bet that it could be rew
433.
▲
by
grayrest
14y ago
You do feature based branches that get rebased against master on a regular basis and push -f your dev branch in the evening so your changes are backed up. When two devs are working on the same branch they coordinate via chat who (or whoever
434.
▲
by
grayrest
14y ago
I don't develop phonegap apps but I'll have a go at answering this: > I'm still confused why this matters if you are packaging your assets with the phonegap build which I would expect most people do. Ignoring download time, loading, par
435.
▲
by
grayrest
14y ago
I'd like an easy interface to events around the phone being at rest (no accelerometer input). For the rest state: I assume that most people have their phone by their beds at night. I have a locale rule that puts my phone into airplane mode
436.
▲
by
grayrest
14y ago
I haven't used iBooks Author, but you may want to check out Squarespace 6 when we launch in the next few days. I'm very proud of our editing and layout system. http://new.squarespace.com/ <- about halfway through demo video.
437.
▲
by
grayrest
14y ago
If you're considering this, be aware that writing JS that takes advantage of new JS language features in v8 and not present in IE/Rhino is not considered bad form in the node.js community. Also, Rhino is ~50x slower than v8, which doesn't s
438.
▲
by
grayrest
14y ago
At JSConf Alexis was wishing someone would take over project maintenance and free him up entirely for LESS project direction & language design. The relative commits are quite relevant.
439.
▲
by
grayrest
14y ago
https://bugzilla.mozilla.org/show_bug.cgi?id=698919
440.
▲
by
grayrest
14y ago
I don't know about the Opera version of tabs but in Mozilla 0.9.3 I used tabs because the new window delay was ~2s due to excessive XUL overlays and I installed the save tabs extension because the browser crashed every 2 hours or so and I w
441.
▲
by
grayrest
14y ago
Some day was two years ago: https://github.com/tmpvar/jsdom https://github.com/andreasgal/dom.js
442.
▲
by
grayrest
14y ago
My first thought when reading this was the possibility of removing Clojurescript's compile time Java dependency.
443.
▲
by
grayrest
15y ago
Having poked around with Jeremy's compiler (I forget if I've sent in patches or not), I'm curious about some of the technical details behind the project. I've thought about this topic for a while and this is a rather disorganized brain dump
444.
▲
by
grayrest
15y ago
> (See also, editing rich text.) I've spent months on this problem. The challenge is that the behavior you want (text ranges) does not map well onto the DOM (trees). This takes some thought but isn't THAT bad. Browser bugs also play a r
445.
▲
by
grayrest
15y ago
I think it'd look a lot like Resolver One: http://www.resolversystems.com/products/resolver-one/ It's not necessarily clear but the spreadsheet UI generates an IronPython program and you can hack the Python if you so desire. I've only use
446.
▲
by
grayrest
15y ago
Lots of smart design choices. I have equivalent bits and pieces scattered all over the place that I've been meaning to put together to get the "wow" that this package delivers. Kudos for actually making it happen.
447.
▲
by
grayrest
15y ago
Do you have an overview of how the async macro works? The presentation wasn't long enough to fit in but I'm hoping you have a written explanation somewhere. Cursory search didn't turn up anything. I've seen flows of roughly the same complex
448.
▲
by
grayrest
15y ago
I get absolutely nothing done between noon and 3PM or so. I try to schedule all meetings/interactions in those hours to compensate. I write the best code when I first wake up. Combined with the above, it means my ideal work day starts aroun
449.
▲
by
grayrest
15y ago
Is this in Canary? I know you said "soon" but I'm always unsure if soon means soon in stable/dev or soon in canary.
450.
▲
by
grayrest
15y ago
Unless you're 37Signals and then it's Javascript and naming things. https://37signals.com/svn/posts/3112-how-basecamp-next-got-t...
More ›