7 ms·
Updating my website from my iPad
- progbits 3y agoGetting 403. Mirror: https://web.archive.org/web/20230517173906/https://dddiaz.com/post/blog-from-ipad/ https://web.archive.org/web/20230517173906/https://dddiaz.co...
- jeroenhd 3y agoI know VS Code is Electron anyway, but why would you need an online editor? Couldn't Microsoft (or anyone who's forked it) just release VS Code for tablets? Surely something as powerful as the iPad Pro can handle a fancy text editor.
- mattkevan 3y agoThere's already a bunch of good code editors for iOS, such as Textastic, Koder and Buffer. Working Copy is a fantastic combined Git client and text editor, which I've used extensively to edit my own website, and Secure ShellFish from the same developer is a great SSH client, file manager and editor.
- cloin 3y agoIf you just combine Working Copy (of which I'm a huge fan) and github actions to build the site on merge to main, you get simple setup that really should do the trick for updates to a static site.
- mattkevan 3y agoYep, I use Working Copy with both Jekyll and 11ty sites on Netlify to do the same thing. Even made a Shortcuts action to create new posts - it formats the YAML frontmatter, inserts the date, asks for title, then creates a new document in Working Copy with the proper file path. Super useful.
- fmajid 3y agoAnd using Working Copy allows you to work offline. If your blog is based on Markdown, e.g. Hugo, then Working Copy will even give you a reasonably reliable preview of the article.
- darrenf 3y agoSupposedly you can use VS Code inside Blink already: https://docs.blink.sh/advanced/code https://docs.blink.sh/advanced/code
- quickthrower2 3y agoOr for a simple site update, use the file edit function in Github
- ja27 3y agoOr hit . to start a browser-based VSCode for that repo.
- nmpennypacker 3y agoYep, I've updated GitHub pages sites from my phone with the editor many times. Not ideal, but works in a pinch.
- moondev 3y agoI think you answered your own question. Electron doesn't support iOS as a build target due to imposed sdk restrictions. So it's not a hardware issue but a platform limitation. https://en.m.wikipedia.org/wiki/Electron_(software_framework) https://en.m.wikipedia.org/wiki/Electron_(software_framework...
- pmontra 3y agoWell, I wrote some Ruby on Rails code on my Samsung tablet some years ago. I mean, I was running the editor and Rails on the tablet, inside Dex for Linux which is an Ubuntu 16.04 container (LXC?) sharing the kernel with Android. Samsung and Canonical worked together to port X11 to the tablet so I had a Unity desktop. I remember it came with VSCode preinstalled inside the container. It was a little slow but probably not much slower than my laptop back in 2005 when I started coding in Rails, if it was any slower at all.
- krimpenrik 3y agoI was yesterday researching options to use my tablet for upcoming extended trip and found that the Linux stuff Samsung had is sunsetted and couldn't find any alternative. Think I'll just bring a 13inch laptop.
- pmontra 3y agoYes, Samsung killed Dex for Linux with the update to the next major Android version. I think they decided that the sales it added to their bottom line were not worth the maintenance cost. Too bad, because a local and almost real Linux environment is great.
- pcardoso 3y agoI did something similar with some configuration to apache, mod_vhost_alias and dropbox. I was able to quickly update some tiny websites I keep. I just edit the files locally and a few secs later they are updated. In my dropbox folder I created a Sites folder, where I keep some websites to serve. This folder is shared with another dropbox account syncing on the server, from where the contents are served. To add a new website, I just create a new folder under Sites and point the DNS records to the VPS IP address.
- wildrhythms 3y agoGod I wish iPad OS was a better developer experience. Github's Codespaces feature is awesome, but as a front-end dev there is no way I could use iPad/iOS to build a website. There is no dev tools. The OS keeps trying to suspend apps/tabs in the background when I switch between them. I use the Vim extension in the VS Code remote editor but certain key combos on iOS straight up didn't register. Maybe I'm asking for too much.
- mattrighetti 3y agoWhy don't you use Termius and SSH into the Codespaces instance? That way you could just use vim directly from there.
- galleywest200 3y agoAlso could install a browser based VSCode on that remote server and access that. https://github.com/coder/code-server https://github.com/coder/code-server
- ja27 3y agoOr Blink Code which runs VSCode in it's own browser control and has a filesystem extension. https://docs.blink.sh/advanced/code https://docs.blink.sh/advanced/code
- jwrallie 3y agoMosh on server and blink shell on iPad with a VPS running the actual Vim (or NeoVim) is a much better experience. I am using LunarVim with LSP support, so I can get functionality close to what Vscode provides. I still wish I could run things locally without an internet connection, I am considering some portable SBC but it seems a waste of potential, as the iPad is much more powerful.
- weikju 3y agore: tabs suspending in the background It's not talked about much, but one of the benefits of Stage Manager from iOS 16 is that all apps in the same "app set" are running concurrently and not getting suspended. So if you have your editor/ssh/browser in one app set, you can freely switch between them without fear of them suspending. And they can still be full screen, so no need to suffer the lessened screen real-estate, if you don't need to display 2+ windows at once.
- leephillips 3y agoThis is what I see when I visit the link: The Amazon CloudFront distribution is configured to block access from your country. So I did learn something from the article, if I ever want to exclude visitors to my site from certain countries.
- throwaway67743 3y ago"The Amazon CloudFront distribution is configured to block access from your country. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner. If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation. " People are strange
- tenderfault 3y ago"The Amazon CloudFront distribution is configured to block access from your country" I feel offended by this message. I don't know why, i shouldn't care. I just click every article that makes it to nyc top
- can16358p 3y agoSame here. This should be illegal: not really different from racism in my opinion.
- throwaway67743 3y agoSecurity! Only those pesky mainland Europeans and Chinese are out to get me
- deleted 3y ago[deleted]
- hunter2_ 3y agoPresumably this isn't about things people are stuck with (skin color, etc.) but things they choose (laws, etc.) and while discriminating on the former should be illegal, discriminating on the latter generally shouldn't be. Although when scaled up to such a large group, I can understand the perception of being almost entirely stuck in a situation (because it's not an individual choice for practical purposes) even when it's not a protected class.
- 3y ago
- lloydatkinson 3y agoI'd say use GitPod over Codespaces. Originally Microsoft had VS Code Online before they migrated it over to GitHub's ownership. When it was under Microsoft it was rock solid stable. I never had issues with it. When they migrated it to GitHub they removed access to everyone that had been using it for months and failed to migrate users across. Months went by of waiting in the GitHub beta list (for something I'd already been using...) and by the time I got access to it again I couldn't believe how much worse the service had become. It has degraded a lot. Sometimes ports get "stuck" and require a full container restart, which took time, so I ended up writing a script to randomise which port the service I was writing would use. Sometimes it had errors with saving files and they'd just vanish. I've found GitPod to just work. I only use these services when I'm on the move, and use my desktop when at home. I couldn't imagine relying on Codespaces at all.
- villgax 3y agoCode-server for life, just one command to install & one file to config the auth/ports & boom after a service restart you are freed from your desk
- lucidphreak 3y agoUse GoCoEdit on your ipad - its a FANTASTIC code editor with connectivity options that actually work well. ( I have no affiliation with the product - I just find it remarkably well done )..
- pjmlp 3y agoTimesharing is dead, long live timesharing!
- sharedptr 3y agoOverengineering for HTML pages.
- reidjs 3y agoIf you just have a static webpage (html, css, js), I have found Working Copy + GitHub Pages to work perfectly for updating website copy/markup from iOS.