Live data from Hacker News

Introducing Pow, a zero-configuration Rack server for Mac OS X

pow.cx

101–110 of 146 posts

Re: Introducing Pow, a zero-configuration Rack server for Mac OS X

#101
post #80

Earlier quoted context omitted.

I request one thing, you send me something completely different. I don't see how making the "something" an ASCII script makes it easier than a random binary (and there's no requirement that the random binary has any relationship with what I requested). Oddly, I'm more used to seeing arguments that distributing source code is better than distributing binaries because you can inspect source code.

The scenario isn't that I send you something different, but that somebody else gets in between us and tampers with the data. That's what https tries to avoid. We're arguing levels of badness here so it's a little hokey. But if you decide to open up your machine to run arbitrary code, a machine that can run shell will arguably get more infections than one that runs executables. To infect the ladder any script kiddies…

[deleted]

Re: Introducing Pow, a zero-configuration Rack server for Mac OS X

#102
post #80

Earlier quoted context omitted.

I request one thing, you send me something completely different. I don't see how making the "something" an ASCII script makes it easier than a random binary (and there's no requirement that the random binary has any relationship with what I requested). Oddly, I'm more used to seeing arguments that distributing source code is better than distributing binaries because you can inspect source code.

The scenario isn't that I send you something different, but that somebody else gets in between us and tampers with the data. That's what https tries to avoid. We're arguing levels of badness here so it's a little hokey. But if you decide to open up your machine to run arbitrary code, a machine that can run shell will arguably get more infections than one that runs executables. To infect the ladder any script kiddies…

"Tampers with the data" is functionally equivalent to sending me something different. There's not requirement that it looks like what I requested at all, and as long as it will execute when double-clicked, it'll do the trick.

We're already talking about running arbitrary code on a machine, compiled versus interpreted is irrelevant. And I think you have forgotten that a script with the appropriate hash-bang and file permissions is indistinguishable to most users from a compiled executable.

Re: Introducing Pow, a zero-configuration Rack server for Mac OS X

#105
post #6

This is a great web page, but I think it's borderline irresponsible to keep using this gimmick: curl get.pow.cx | sh for installation. Yes, it's easy and slick. Yes, you'd have to read the code itself to make sure Pow didn't own your machine up after a secure install. Yes, you can just read the shell script. But 0.0001% of people playing with Pow will do that. Why make things easier for attackers at all? This is an i…

I agree, if I put rm -rf / in that script you would be rightfully disappointed. Why would anyone trust someone to do this? When I download a script, I always read the code first.

Re: Introducing Pow, a zero-configuration Rack server for Mac OS X

#107
post #63
post #57

Earlier quoted context omitted.

It would improve the situation but I'm still not a fan of perpetuating the pipe-into-shell idiom.

The only meaningful difference between the two techniques is the extra step required to explicitly execute an installer. Is that your objection, that you don't like something being automatically executed upon download?

Rubygems at least has a post-install hook that gem authors can execute automatically.

Re: Introducing Pow, a zero-configuration Rack server for Mac OS X

#109

Earlier quoted context omitted.

yep, same thing here. I get this if I launch it manually on 10.6.7: launchctl load "$HOME/Library/LaunchAgents/cx.pow.powd.plist" Bug: launchctl.c:2325 (23930):13: (dbfd = open(g_job_overrides_db_path, O_RDONLY | O_EXLOCK | O_CREAT, S_IRUSR | S_IWUSR)) != -1 launch_msg(): Socket is not connected

yeah, that seemed to have fixed it. Terminal works, iTerm doesn't.

Same problem, but using Terminal.

Re: Introducing Pow, a zero-configuration Rack server for Mac OS X

#110
post #108

Pretty awesome. It took a restart to get it to work, but it's great now. As a minor aside, is there a way to get Chrome to treat .dev domain the same as .com? Whenever I type in my .dev app name, it tries to google search for it.

Nice, you can change the env variable POW_DOMAIN to ".local". Much better in my opinion (works better with chrome at least)

EDIT: scratch that. You can't do this.

Post reply on HN