News for hackers. Stuff that matters.
Re:Anvil - a Mac app for Pow by dekz on Saturday October 06, 2012 @03:45AM (#4620043)
Your "Install Pow" doesn't work with a drive name which has spaces. eg. /bin/sh /Volumes/Macintosh HD/Downloads/Anvil.app/Contents/Resources/InstallPow.sh; exit

needs to escape the space. App itself looks polished, checking it out now!

Re:Anvil - a Mac app for Pow by elliottkember on Saturday October 06, 2012 @04:14AM (#4620082)
Rats. Thanks for the report - I'll push a new version shortly. I sure hope nobody minds all the updates. (Edit: fixed!)
Re:Anvil - a Mac app for Pow by TheGateKeeper on Saturday October 06, 2012 @07:37AM (#4620294)
I for one think it's great you're doing updates quickly and often as things come up that warrant pushing updates in the first place. Keep up the good work. This looks like a nifty little tool!
Re:Anvil - a Mac app for Pow by Evbn on Sunday October 07, 2012 @12:53AM (#4622652)
Wow, that is the sort of bug that leads to installers accidentally wiping hard drives.
Re:Anvil - a Mac app for Pow by mintplant on Sunday October 07, 2012 @01:45AM (#4622726)
How so? I'm honestly curious.
Re:Anvil - a Mac app for Pow by elyasali on Sunday October 07, 2012 @05:02AM (#4622931)
Re:Anvil - a Mac app for Pow by Evbn on Sunday October 07, 2012 @12:06PM (#4623570)
Thx. I think Apple had a famous one too.
Re:Anvil - a Mac app for Pow by nikcub on Sunday October 07, 2012 @01:20AM (#4622699)
Note that .dev is one of the new TLD's being handed out[1]. I also used .dev as my local environment and switched them all over to .local a while ago.

.local[2] was specifically set aside just for this task, and is recognized as a local address by the major browsers (instead of .dev, which often results in a search hit).

[1] http://www.newgtldsite.com/dot-dev-tld-domain-name-extension...

[2] http://en.wikipedia.org/wiki/.local

Edit: just noticed that the .dev hostnames come from Pow, the underlying server. probably not a good idea.

Re:Anvil - a Mac app for Pow by Evbn on Sunday October 07, 2012 @12:05PM (#4623567)
Where did the .dev fad come from? Why is the web being taken over by folks who don't try to begin to understand how the internet works?
Re:Anvil - a Mac app for Pow by elektronaut on Saturday October 06, 2012 @08:19AM (#4620339)
This looks really nice.

I have 67 apps symlinked into ~/.pow, but only the top 29 are shown on my laptop screen, and scrolling sadly doesn't work.

Any chance of adding "Open in $EDITOR" to the context menu? And .xip.io URLs?

Re:Anvil - a Mac app for Pow by elliottkember on Saturday October 06, 2012 @09:18AM (#4620431)
More than 29 apps is Doing It Wrong.

Just kidding! I'll add this to the to-do list.

Re:Anvil - a Mac app for Pow by sudhirj on Saturday October 06, 2012 @10:17AM (#4620578)
I love the app already :D

Little bits of feedback:

* The Anvil icon on the menu bar doesn't show itself as being active when I click it.

* When I click on the + to add a new app, make anvil lose focus to the file dialog.

* The "About Anvil" dialog insists on hiding behind all other windows.

Re:Anvil - a Mac app for Pow by elliottkember on Saturday October 06, 2012 @05:54PM (#4621876)
The first point is a menu bar app thing. Seems weird to activate it for a popover type window. The other two are fixed in the latest update. Thanks for the feedback! <3
Re:Anvil - a Mac app for Pow by Axsuul on Saturday October 06, 2012 @04:14AM (#4620080)
We need something like this for vagrant.
Re:Anvil - a Mac app for Pow by ericclemmons on Saturday October 06, 2012 @11:44PM (#4622540)
Be sure to checkout Vagrant Hostmaster, which will automatically add your VM's host name and aliases to your /etc/hosts!
Re:Anvil - a Mac app for Pow by dorian-graph on Saturday October 06, 2012 @08:59AM (#4620400)
That is exactly what I thought as well.
Re:Anvil - a Mac app for Pow by b2rock on Saturday October 06, 2012 @05:15PM (#4621737)
wouldn't that be nice.
Re:Anvil - a Mac app for Pow by niggler on Saturday October 06, 2012 @03:53AM (#4620051)
I'm very glad you didn't decide to go the Mac App Store route -- as sad as it sounds, MAS has incredible friction compared to an old fashioned zip
Re:Anvil - a Mac app for Pow by elliottkember on Saturday October 06, 2012 @04:14AM (#4620078)
Our hands were tied. Installing 3rd party code, using the ~/.pow/ directory, and running on port 80 are all things that are frowned-upon. So it's easier to make it free!
Re:Anvil - a Mac app for Pow by ryantownsend on Saturday October 06, 2012 @07:06AM (#4620268)
I'm curious as to whether you can submit an app to the MAS which integrates with non-MAS apps? Any idea whether Apple allows that?

e.g. so you could offload any frowned-upon functionality into external apps/services, and maybe promote or offer automated download & install functionality within your own app...

Re:Anvil - a Mac app for Pow by pkamb on Saturday October 06, 2012 @02:45PM (#4621311)
> 2.16 Apps that download or install additional code or resources to add functionality or change their primary purpose will be rejected
Re:Anvil - a Mac app for Pow by kurige on Saturday October 06, 2012 @07:44PM (#4622139)
I've wondered how certain programs get around these restrictions. I use Boom[1] on my ridiculously quiet laptop. The program you download from MAS is more or less a shell. It guides you to download and install the actual sound drivers that do all the work.

[1]: http://www.globaldelight.com/boom/

Re:Anvil - a Mac app for Pow by nuttendorfer on Saturday October 06, 2012 @04:22AM (#4620093)
What does the on/off slider do? Another handy tool for managing Pow is the ruby gem "powder". It's command line only however.
Re:Anvil - a Mac app for Pow by elliottkember on Saturday October 06, 2012 @04:32AM (#4620104)
The on/off slider turns Pow on and off. We love powder too!
Re:Anvil - a Mac app for Pow by Sjinsj on Saturday October 06, 2012 @07:28AM (#4620280)
Why does the on/off functionality look like a slider when it functions like a button?
Re:Anvil - a Mac app for Pow by angli on Saturday October 06, 2012 @08:18AM (#4620338)
I don't think it does. It mimics the look of the iOS "switches" which are universally used for on/off commands
Re:Anvil - a Mac app for Pow by fudged71 on Wednesday October 10, 2012 @10:34AM (#4636464)
What is the functional difference between a slider and a button?
Re:Anvil - a Mac app for Pow by Evbn on Sunday October 07, 2012 @12:54AM (#4622656)
Because iOS brain damaged the industry.
Re:Anvil - a Mac app for Pow by phinze on Saturday October 06, 2012 @12:59PM (#4620996)
Wow this is nicely done. I added a homebrew cask for it so it can be installed via `brew cask install anvil`. https://github.com/phinze/homebrew-cask/commit/aff3777759dfc...
Re:Anvil - a Mac app for Pow by elliottkember on Saturday October 06, 2012 @02:12PM (#4621202)
Left you a message there, but just in case you miss it - Very cool! Would you mind linking to http://anvilformac.com/download so this automatically downloads the latest version?
Re:Anvil - a Mac app for Pow by shabble on Saturday October 06, 2012 @03:11PM (#4621382)
Never heard of Pow before, but on inspection it looks very interesting and could save a bunch of time.

Anyone know if there's any way to make it work with python (WSGI or similar) services? It's kinda hard to search 'pow' without ending up at various exponentiation functions :/

Re:Anvil - a Mac app for Pow by mossity on Saturday October 06, 2012 @03:30PM (#4621437)
Looks like it should be possible: http://pow.cx/manual.html#section_2.1.4
Re:Anvil - a Mac app for Pow by shabble on Saturday October 06, 2012 @04:27PM (#4621601)
I totally missed that, thanks. Tested and working now.
Re:Anvil - a Mac app for Pow by themanr on Saturday October 06, 2012 @05:28AM (#4620178)
Does anyone know why pow uses the .dev tld rather than .test? .test is reserved for local testing. http://en.wikipedia.org/wiki/.test
Re:Anvil - a Mac app for Pow by rehashed on Saturday October 06, 2012 @06:35AM (#4620237)
I was also confused at the choice of default. Fortunately you can update your config to support any TLD:

http://pow.cx/manual#section_3.1

Re:Anvil - a Mac app for Pow by Evbn on Sunday October 07, 2012 @12:22PM (#4623598)
Really, the whole manual is published in engraved-in-stone visual style? That is enough to convince me not to let this software run on my machine, especially not with admin privileges.
Re:Anvil - a Mac app for Pow by tomjakubowski on Sunday October 07, 2012 @02:50PM (#4624003)
Why would does that convince you that this software shouldn't have admin privileges on your machine? It seems awfully arbitrary to me.
Re:Anvil - a Mac app for Pow by zenstealth on Saturday October 06, 2012 @11:04AM (#4620689)
I've tried the app for only 5 minutes and I love it already - it's a much more elegant solution than having to use "jekyll --server -auto" and localhost:4000. The thing that bugs me though is that the list of websites doesn't expand beyond three sites- you have to scroll to see the fourth site. Shouldn't the list dialog expand to fit all the sites?
Re:Anvil - a Mac app for Pow by imagetic on Tuesday October 09, 2012 @03:57AM (#4630484)
How did you get Jekyll working with pow/anvil? Just symlink _site to a public dir? I get a 404 when trying to use pow/anvil on jekyll sites.
Re:Anvil - a Mac app for Pow by kodisha on Saturday October 06, 2012 @12:01PM (#4620830)
Well, it took me 15 minutes to figure out the cause of 404 error.

If you DON'T have index.html in your root folder it will return this error, python's SimpleHTTPServer module does much better job and gives you list of your folders.

Re:Anvil - a Mac app for Pow by Goopplesoft on Saturday October 06, 2012 @11:11AM (#4620705)
Something like this with Django (i.e run the runserver command would be tight).
Re:Anvil - a Mac app for Pow by btully on Sunday October 07, 2012 @04:30AM (#4622899)
Any reason why the Pow installer turns off my Wi-Fi? Also I get the following error from the installer: "!!! Couldn't resolve configured domains (dev)"

Novel idea. Too bad it doesn't work :/

Re:Anvil - a Mac app for Pow by bennyfreshness on Sunday October 07, 2012 @09:58AM (#4623325)
I already have Pow installed but its asking me to install again. Will it conflict w/ my existing install and configuration if I reinstall Pow through Anvil?
Re:Anvil - a Mac app for Pow by kposehn on Saturday October 06, 2012 @03:21PM (#4621412)
Love it.

It really is a simple, elegant way to handle pow - I would pay for this happily.

Put up a donate link via Stripe and I will :)

Re:Anvil - a Mac app for Pow by elliottkember on Saturday October 06, 2012 @05:55PM (#4621880)
We're in the UK so it might have to be PayPal for now :( but we might do that at some point once we've fixed all the bugs!
Re:Anvil - a Mac app for Pow by marcomonteiro on Saturday October 06, 2012 @03:23PM (#4621418)
I really like the simple UI to this. Great work! Just curious what the future plans of this project are. Any plans of open sourcing it?
Re:Anvil - a Mac app for Pow by Sjinsj on Saturday October 06, 2012 @07:31AM (#4620283)
Very nice app. It would be nice if you could optionally view the files in a directory when no index file is provided.
Re:Anvil - a Mac app for Pow by kenips on Sunday October 07, 2012 @07:47PM (#4624833)
Pow is great - except when you need to fall back on debugging multiple apps. Even with powder it's flaky at best.
Re:Anvil - a Mac app for Pow by greenwalls on Saturday October 06, 2012 @10:40AM (#4620631)
Love the website design also. The site design is simple but gives you all the info you need to make a decision.
Re:Anvil - a Mac app for Pow by hellosmithy on Saturday October 06, 2012 @03:41AM (#4620036)
Nice little app. Would be handy to be able to edit the generated .dev URL to be different from the folder.
Re:Anvil - a Mac app for Pow by rktjmp on Saturday October 06, 2012 @03:57AM (#4620053)
Thats not really how Pow[1] works. It's weird that there isn't any mention of Pow on that page if that's what it's using in the backend. I didn't download it since I'm not on 10.7, maybe it mentions it later.

I wrote something similar (https://github.com/rktjmp/ker-pow) a while ago but never considered using it to actually make new ~/.pow/ links, I might add that in. Anvil is probably much more useful!

[1] http://pow.cx

Re:Anvil - a Mac app for Pow by davidlumley on Saturday October 06, 2012 @04:13AM (#4620077)
> Thats not really how Pow[1] works.

I think you will find that is _exactly_ how Pow works. Because you're just creating a symlink (ln -s source_name link_name) you can name it whatever you want. (i.e. ln -s ~/sites/my_full_url.com.au ~/.pow/blog)

Re:Anvil - a Mac app for Pow by rktjmp on Saturday October 06, 2012 @04:33AM (#4620105)
Whoops, yeah – you're 100% correct. Not sure what I was actually thinking...
Re:Anvil - a Mac app for Pow by elliottkember on Saturday October 06, 2012 @04:13AM (#4620074)
You can - right-click on the row to edit the name, as well as open in Finder or Terminal.
Re:Anvil - a Mac app for Pow by _frog on Saturday October 06, 2012 @04:37AM (#4620109)
Maybe just make it so double clicking a site lets you rename it?
Re:Anvil - a Mac app for Pow by elliottkember on Saturday October 06, 2012 @04:43AM (#4620121)
Right-click -> rename.
Re:Anvil - a Mac app for Pow by hellosmithy on Saturday October 06, 2012 @06:08AM (#4620210)
Doesn't work for me on Macbook Air with Ctrl + Click
Re:Anvil - a Mac app for Pow by tvladeck on Saturday October 06, 2012 @01:20PM (#4621046)
Thank you, this is really great. I love simple little things like this that just make life better.
Re:Anvil - a Mac app for Pow by jorisw on Monday October 08, 2012 @10:12AM (#4626907)
I think your webpage should tell the visitor what Pow is, and/or what Anvil is a front end to.
Re:Anvil - a Mac app for Pow by dubcanada on Sunday October 07, 2012 @12:51AM (#4622641)
You should open source it :) I'd love to modify it to work with PHP by default.
Re:Anvil - a Mac app for Pow by elliottkember on Sunday October 07, 2012 @04:15AM (#4622884)
Pow is open-source (pow.cx) - feel free to try adding PHP to it. In my experience, PHP is far more complicated due to php.ini configurations and installation. Rack lends itself a bit better to this kind of hosting.
Re:Anvil - a Mac app for Pow by FootballMuse on Saturday October 06, 2012 @01:16PM (#4621042)
Suggestions on getting the favicon to show up?
Re:Anvil - a Mac app for Pow by elliottkember on Saturday October 06, 2012 @02:03PM (#4621177)
If it's a static site, put the favicon in the root directory. We're planning a fix that finds favicons no matter where they are. Sorry!
Re:Anvil - a Mac app for Pow by ignar on Saturday October 06, 2012 @06:39PM (#4621984)
Oh-e It's just works. Perfect. Thank you
Re:Anvil - a Mac app for Pow by francov88 on Saturday October 06, 2012 @05:21PM (#4621749)
pretty cool app - seems to work really well. Thanks Anvil!
Re:Anvil - a Mac app for Pow by instakill on Saturday October 06, 2012 @07:27AM (#4620279)
Thank you!
Re:Anvil - a Mac app for Pow by D3 on Sunday October 07, 2012 @10:22AM (#4623370)
Wait, what? So instead of typing file:///home/username/site/index.html this program lets you type http://site.dev? If there was ever undeniable proof that Mac users are clinically retarded...
Re:Anvil - a Mac app for Pow by elliottkember on Sunday October 07, 2012 @12:12PM (#4623585)
Subdomains. Rails apps. Multiple apps running at the same time together. There are a few reasons this is useful. Please be more constructive with your feedback.
Re:Anvil - a Mac app for Pow by Evbn on Sunday October 07, 2012 @12:07PM (#4623575)
Go learn about Cross-domain origin policies and then come back.
Re:Anvil - a Mac app for Pow by Evbn on Sunday October 07, 2012 @12:56AM (#4622663)
What is a Rack app?
Re:Anvil - a Mac app for Pow by iSnow on Sunday October 07, 2012 @09:15AM (#4623257)
http://rack.github.com/ - basically a Rails adapter for a webserver.