Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
defunkt
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
defunkt
15y ago
If you use your own server make sure you set the Access-Control-Allow-Origin header: https://github.com/defunkt/dotjs/blob/master/bin/djsd#L26 (Also, Ruby comes with OS X (just like Python) so it seemed a sane choice.)
2.
▲
by
defunkt
15y ago
That's all true, but dotjs is only for Google Chrome on OS X. Google Chrome on OS X has no such filesystem-based model for managing scripts.
3.
▲
by
defunkt
15y ago
Chrome extensions can't access the local filesystem so we have to start a tiny webserver in the background. If someone knows a way around this limitation, or a simpler webserver to require / embed, I would be thrilled. But so far this is th
4.
▲
by
defunkt
15y ago
Try https://github.com/glenbot/dotjs/tree/ubuntu-support-merged
5.
▲
by
defunkt
16y ago
GitHub now owns the octocat art.
6.
▲
by
defunkt
16y ago
Sorry about that. It should show up in 'germany' and some others now, like 'rails' in the first search field and 'europe' in the second (location).
7.
▲
by
defunkt
16y ago
I want to do all of this stuff. Great post.
8.
▲
by
defunkt
17y ago
GitHub's similar functionality is open source: https://github.com/pjhyett/github-services/blob/master/servi...
9.
▲
by
defunkt
17y ago
If each Unicorn worker listened on a different port, we'd have to use one of nginx's load balancing strategies (unless I'm misreading your comment). We have not had success with them in the past which is why we employed HAProxy with mongrel
10.
▲
by
defunkt
17y ago
Unicorn is not for slow clients or static assets. That's what nginx is for. See http://unicorn.bogomips.org/PHILOSOPHY.html for info on Unicorn and slow clients. nginx also has features like ESI, serving from memcached, and rate limiting
11.
▲
by
defunkt
17y ago
Also it doubles as documentation for the members of our team who aren't familiar with this part of the system :)
12.
▲
by
defunkt
17y ago
nginx relies heavily on system calls at the expense of portability.
13.
▲
by
defunkt
17y ago
Counter example: nginx, which uses fork(), and seems to smoke Apache while offering features like binary reloading without dropping connections (not sure if Apache supports this but I seem to remember no - please correct me if I'm wrong). P
14.
▲
by
defunkt
17y ago
It's not just the GIL. Check out Joe Damato and Aman Gupta's awesome presentation from this year's Hoedown for more info on concurrency in Ruby: http://timetobleed.com/ruby-hoedown-slides/
15.
▲
by
defunkt
17y ago
But if you're already taking that memory hit with separate processes, ala mongrel cluster, fork() still provides a number of juicy advantages (which the article explains).
16.
▲
by
defunkt
17y ago
Posterous supports Gist: http://blog.posterous.com/posterous-now-supports-traileraddi...
17.
▲
Mustache: Logic free views in Ruby (based on Google's ctemplate)
(github.com)
1 points
by
defunkt
17y ago
|
0 comments
18.
▲
by
defunkt
17y ago
We have mentioned Anchor: http://twitter.com/github/status/4433287458 We'll talk about them more in the future, too.
19.
▲
by
defunkt
17y ago
http://github.com/petdance/ack#readme
20.
▲
by
defunkt
17y ago
Definitely needed fast synchronous requests. I know you can fake this in RabbitMQ but am not sure why we didn't go with it... guess you'll have to wait for Tom's presentation :)
21.
▲
by
defunkt
17y ago
You could use BERT with amqp, as it's just a data format (like JSON). Ernie and BERT-RPC are libraries which build on that.
22.
▲
by
defunkt
17y ago
We were constrained by network our file system and could not add more machines. We needed an RPC solution to shard the data and move away from our network file system. delayed_job, Amazon SQS, etc are not RPC systems. You can't block waitin
23.
▲
by
defunkt
17y ago
You can do ACL with a DVCS by way of a pre-receive hook. It's just a matter of time before tools make this dead-simple.
24.
▲
by
defunkt
17y ago
Yeah you guys crashed it :P I'm workin' on bringing it back up.
25.
▲
by
defunkt
17y ago
Yeah, it does. Sounds like we should change this: Hurl makes HTTP requests. Enter a URL, set some headers, then view the response. Perfect for APIs. To something like this: Hurl makes HTTP requests. Enter a URL, set some he
26.
▲
by
defunkt
17y ago
We plan to open source Hurl so you can run it somewhere if you want (for auth reasons).
27.
▲
by
defunkt
17y ago
I commented about this further down but the main idea is you can share Hurls which others can modify and play with, e.g. http://hurl.me/ufsmb1
28.
▲
by
defunkt
17y ago
HTTPClient is great and was a big influence on Hurl (for instance we auto-complete headers just like HTTPClient does).
29.
▲
by
defunkt
17y ago
Thanks for the comments everyone! The main idea here is that you can share Hurl URLs which others can modify and play with. For example I can give you this URL: http://hurl.me/ufsmb1 And you can change 'json' to 'xml' to see what changes.
30.
▲
by
defunkt
17y ago
Coming soon.
More ›