Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
scriby
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
scriby
5y ago
The Japanese language actually does have an idiom for "in the red". It's written as 赤字, which literally means "red letter" or "red text". The opposite is 黒字, or "black letter" / "black
2.
▲
by
scriby
7y ago
Not sure about bananas, but in general products are individually wrapped due to the high humidity in Japan.
3.
▲
by
scriby
8y ago
I learned Dvorak in high school and was proficient in it after a couple weeks. In addition to actual practice, I found it helpful to just practice mentally during downtime. I used Dvorak exclusively and lost the ability to type on qwerty ke
4.
▲
by
scriby
10y ago
The .ts files will be compiled to AMD modules, so none of the declarations will be in the global scope.
5.
▲
by
scriby
10y ago
I used to use a project called now on npm that was abandoned a few years ago ( https://github.com/Flotype/now ). I was curious how this new project was using the same name on npm as the previous now that I had used. Look
6.
▲
by
scriby
10y ago
I think the branching factor is somewhat higher given that the order of actions makes a big difference. Also remember that when playing a card you have to choose where to place it, which can multiply the branching factor by up to 7. If both
7.
▲
by
scriby
10y ago
https://github.com/scriby/asyncblock-generators That's a control flow solution I wrote on top of generators to make it a little easier to manage parallel tasks, timeouts, error handling, and so on. I originally ma
8.
▲
by
scriby
11y ago
The browser's built-in same origin policy will prevent the iframed content from being able to access cookies in the containing frame because it is being hosted from a different domain.
9.
▲
Show HN: Write synchronous-style Node.js code using V8 harmony generators
(github.com)
1 points
by
scriby
11y ago
|
0 comments
10.
▲
by
scriby
13y ago
I think simply not using Safari will mitigate most of the impact for most users on OSX.
11.
▲
by
scriby
13y ago
The whole paragraph can be translated like this: "I didn't really think I'd be able to write this [program], but somehow I was able too. Ruby is scary, isn't it? I wonder if you could write this in another language?"
12.
▲
by
scriby
13y ago
Good point. Check out https://github.com/scriby/browser-harness-bootstrap-tests for a full example. Browser harness itself is just a conduit between node and a browser - you need to provide the test framework yourself
13.
▲
by
scriby
13y ago
I'm working on https://github.com/scriby/browser-harness . It's a little different in approach because it doesn't use selenium at all (rather it uses a websocket connection with the browser to control it)
14.
▲
by
scriby
13y ago
http://www.blackboard.com/sites/xplor/index.html
15.
▲
by
scriby
13y ago
I don't see anything fundamentally wrong with this programming question, except that it might be a little involved for a short interview. The purpose of this question isn't to tell you whether the candidate can program chess board
16.
▲
by
scriby
13y ago
It would be tough for Fibers to be totally abandoned, as http://www.meteor.com/ relies on it. I don't think it's really needed any code updates recently, as it works on Linux / OS X / Windows and all rec
17.
▲
by
scriby
13y ago
In response to your #4, check out the stopBindings option. It provides a pretty simple pattern where you can wrap your knockout bound components in a stopBindings, then you don't have to worry about other binds on the page interfering
18.
▲
by
scriby
13y ago
https://github.com/scriby/asyncblock I'll just leave this here. It's been my pet project for the last couple years, and is a fully featured version of this concept. There's also https://github
19.
▲
by
scriby
13y ago
Express does return a 500 on exception by default. This article showed details about how to customize the error page.
20.
▲
by
scriby
13y ago
It's probably because their free plan already didn't require a CC. I think there's a big difference between "no access" and "CC required", but less of a difference between "free access" and "
21.
▲
by
scriby
13y ago
Japanese is generally more compressed than English. For instance, consider "dragon" vs "龍". The exception is when polite/formal language is being used, in which case it can get more lengthy. Instructions and descriptions would generally use
22.
▲
by
scriby
14y ago
I don't think the attack as described would work in practice, because the modified javascript file would no longer be valid javascript and would just break the site. I think you'd have to both create a file that passed the hash check and wa
23.
▲
by
scriby
14y ago
Depends on the flavor of SQL. But also, might not be a totally missing where clause, but just an incomplete one.
24.
▲
by
scriby
14y ago
This kind of bug can happen when you have code like this in SQL: SELECT @id = id FROM table --Oops, forgot where clause. This selects a "random" row DELETE FROM table_2 WHERE id = @id
25.
▲
by
scriby
14y ago
Will these examples protect you from thrown exceptions? Null reference exception? Oops, your callback isn't getting called -- and you're probably leaking resources or leaving things in an inconsistent state. So the recommendation is to rest
26.
▲
by
scriby
14y ago
Not sure why I would use this when other solutions like LABjs are rock solid, fully featured, and small (~2k zipped). http://labjs.com/
27.
▲
by
scriby
14y ago
For those interested in the fibers way of doing things, I recommend checking out https://github.com/scriby/asyncblock . It provides an easy-to-use abstraction to get the best of both worlds (straight-line code without blocking). I don't th
28.
▲
by
scriby
14y ago
Chaining blocks works, for instance something like: var queryResult = getDatabase().sync(). getCollection().sync(). fetch({ query }).sync(); Assuming all those are asynchronous operations. Chaining wouldn't work with .defer() r
29.
▲
Show HN: asyncblock - Node.js async flow control built on fibers
(github.com)
3 points
by
scriby
14y ago
|
2 comments
30.
▲
by
scriby
15y ago
This problem was solved in SQL 2005. The solution in SQL 2000 was pretty terrible. You had to select from the start of the table to the end of the current page, reverse it, take a top of the page size, then reverse again.
More ›