WorldWideWeb.app
blog.iconfactory.com
blog.iconfactory.com
If so, that's a great way of sharing files from iOS to Windows on a local network
Edit: just downloaded and tested, it works on Debian Linux out of the box, zero conf stuff is installed by default, I guess. This is very cool. The app is stupendous in every way. Major kudos.
I have it set up on my Linux box and it is very convenient. But the lack of Android support is very annoying.
I wonder what it would take to get live-reloading into this without anything special added by the user.
I think you'd be able to add a JS snippet that listens for server pushes (you'd push when the file system changed, I guess), then reload using window.location? Not ideal though, you'd need to inject that into the page or do something weird like output everything in an iframe.
People love their live reloads though, and a lot of people who benefit from it aren't really sure how to implement it. It would be cool to have an opt-in, no-code solution.
If vite seems a little too complex browsersync will do nice life reloading for all HTML it serves too: https://browsersync.io/
You’d run into the same issues as Create React App for more able users, but you might not encounter that as much with the type of people who would want this.
Edit: also have to say I love vite. Such awesome work being done by those devs
Very useful for LAN parties or sharing over home network, when windows network discovery just wont work.
Until web bundles are supported in all browsers, this is a great way to share/run a folder of files as a website directly from your phone.
Thank you for this.
Unfortunately this is going to break in macOS 12.3, but it was available for a long time.
I remember times when each mac came with not just Python, but also Java and Adobe Flash Player pre-installed. Of course I'm not saying they should do that again, but there was something wonderfull about powering it on and being able to e.g. play YouTube videos right away instead of having to set everything up like on a PC.
Yes. The versions they shipped with macOS were typically outdated, and shipping them with macOS would basically mean that they only get updated with macOS, so a lot of people were/are running old and vulnerable versions of those tools, and they decided to scrap them altogether.
chrisseaton@Chriss-MacBook-Pro ~ % python --version
zsh: command not found: python
chrisseaton@Chriss-MacBook-Pro ~ % ruby --version
ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21] ᐅ /usr/bin/python3 --version
Python 3.8.9php -S localhost:8000 -t webdir/
https://www.php.net/manual/en/features.commandline.webserver...
[edit] More specifically, they've already stopped shipping with Python 2, and stated their intention to stop including any scripting language runtimes at all, including Python, Ruby, and Perl.[1]
[0]: https://twitter.com/chockenberry/status/1511388397855645703
[1]: https://developer.apple.com/documentation/macos-release-note...
The system Python and Ruby installs on macOS at this point are more of a hindrance to newbies than a help. You have to explain the differences between versions and hope they don't have to deal with any conflicts.
> The system Python and Ruby installs on macOS at this point are more of a hindrance to newbies than a help
true, though it wouldn't be so bad if macos had a built-in package manager instead of needing to reach for homebrew (as great as it is)Apple is no small startup that can’t maintain an update system (could have been just part of the xcode tools), so I kinda resent them for dropping the ball completely.
For the real coffin nails, I look to the gradually-increasing difficulty of installing software that isn't signed by a developer registered with Apple. Fellow frogs, is it not warm in here?
python3 -m http.server [optional port]
instead(it's python -m http.server on python 3)
do shell script "python –m SimpleHTTPServer"
(No idea if this will work, there's probably some stupid restriction somewhere).
edit: now that I think about it, I did use "bitbar" for a while which is actually a little bit more powerful still. I can't find it any more but this looks similar - https://github.com/matryer/xbar#get-started
Just add live push/reload, you're good to go!
Like other commenters, there are a million ways to run a web server nowadays npm, python, ruby, etc
On iOS can this listen on IPv6? Some cell providers allow incoming connections on IPv6.
This coupled with a dynamic DNS service could make for a cheap, always-on and portable server. Maybe put Cloudflare in front of it for IPv4 access and use their cache to smooth out TTL expiration between IP changes.
Also path interpretation is different when you’re in “file” mode and “http” mode
Installing a Web server AND a database AND a programming language may well be too much for the impatient & low-attention span generation before trying out a 4-line "hello, world!" Web page, so some folks may never try to get into programming (which today is typically Web dev), full stop.
(Putting on old grumpy man voice) These kids today couldn't enter 15 pages of machine code in hex from game magazines as we once did. (end ranting voice)