Live data from Hacker News

Dotjs — hack the web

defunkt.io

51–60 of 66 posts

Re: Dotjs — hack the web

#53
post #38
post #16

Earlier quoted context omitted.

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 the best I've found.

ahahahahah what? Dude, do you work for Microsoft? "Well see, we just have to run MS-SQL server (DESKTOP OMG EXPRESS ENGINE) here, and then we run IIS on top of it to serve this file listing..."

It's a limitation of Chrome. This isn't the first time that someone tried to use a local webserver to do something that Chrome doesn't allow. IIRC, there was someone that used a webserver to implement a hacky version of It'sAllText! for Chrome.

Re: Dotjs — hack the web

#54
post #30

Earlier quoted context omitted.

But Ruby is the language the developer uses when doing something basic like this?

Python usually, as far as I can tell. Either language is fine, I just think these things should be done in something that comes pre-installed on more systems.

Installing ruby on Ubuntu is easy. Most users of this kind of extension would probably know how.

Re: Dotjs — hack the web

#57
Great work! But I had some trouble getting it to run on my Mac.

I think it might be because I use VirtualHostX - http://clickontyler.com/virtualhostx/ - which alters my hosts file. I had to create a host - http://dotjs/ - pointing to my ~/.js/ folder - then edit the Extension JS to point the Ajax to http://dotjs/ instead of http://localhost:3131. A bit of pain but it might just be who this affects.

Post reply on HN