My Hardware and Software Development Setup

Blog Home Index & Contents

AmesHigh.org My Setup

Background

If you are interested technically in my hardware and the software I am using to migrate this old website to new 11ty

hardware

SSD Hard drive

Atom.io
Bulma
Syncthing

Update: 1/27/2022 I still use syncthing to keep my code on 2 or 3 devices, but I don't use it to edit on one device and have it sync to another and build there. Instead I'm using Network File sharing. I edit files that are stored on the faster MacBook Pro thru the netowkr from the iMAC with the larger screen. I had a problem were once in a while it would not let me save the file and I would get a permissions error. I think the problem is my main user account edh has a UID of 501 on the macbook pro and a UID of 502 on the iMac. It iwas too hard to change the UID's so insteal I chmod 547 all the files in my src directory. This is probbably not the best or safest method, but it was the only way I could get ATOM editor to save. In fact I also installed Visual Studio Code and it had the same permissions problem. Doing the chmod in terminal on all my src files seems to have solved the unable to save problem. Back to coding again.

Teletype for Atom.io

Update: 1/27/2022 I still use syncthing but am not using Teletype now. It was too much work to keep joining and sharing files and keeping track which ones were being shared with teletype. What I needed was to be able to Teletype any file in the src folder without so much typing and joining. Instead I'm using Network File sharing. I edit files that are stored on the faster MacBook Pro thru the netowkr from the iMAC with the larger screen. I had a problem were once in a while it would not let me save the file and I would get a permissions error. I think the problem is my main user account edh has a UID of 501 on the macbook pro and a UID of 502 on the iMac. It iwas too hard to change the UID's so insteal I chmod 547 all the files in my src directory. This is probbably not the best or safest method, but it was the only way I could get ATOM editor to save. In fact I also installed Visual Studio Code and it had the same permissions problem. Doing the chmod in terminal on all my src files seems to have solved the unable to save problem. Back to coding again.

Discovered a faster way to edit and syncronize using multiple computers. I use Atom editor. It has many many packages that can be installed. I discovered the Teletype package and it designed to enable editing and collaborating from 2, 3, 4 or more computers in real time from different developers, instantaneously. It is still in Beta. I found that it works for multiple devices with one user. I made my fastest computer the host and share it to my other 2 computers via the Teletype package. Then edit using my 21.5" iMac because it has the largest screen. When I save, it saves on the host instantaneously. Super fast compared to waiting the 10 seconds for Syncthing to syncronize. I still have syncthing enabled. Important to me to keep files the same across the 3 devices, although there are more conficts usually in the build directory. The only issue I have now is that when I open the file on the host computer it does show up on the other computers, then when I edit another file from the host it does not show up unless I leave Teletype and rejoin. Sometimes that works without leaving and rejoining and sometimes not. Maybe I don't know the proper order to open the files? If that happens I can fall back to Syncthing or I can leave and join Teletype which only takes 10 seconds.

Screen Sharing

OSX has built in screen sharing. I tried it and IMHO it isn't as nice as Teletype (above) at least for me. It might work well for you so I'm putting that here as a suggestion. Simple to setup, in OSX System Preferences click on Screen Sharing in the sharing tab. Then on the remote computer browser type vnc://192.168.xx.xx/ into the URL bar or something similar of course replacing the xx.xx with the IP of the host computer, then type in the username and password to authenticate and you can control the screen of the host computer. It does work good.

backup
Eleventy setup
Follow docs at 11ty.dev or https://www.11ty.dev/docs/getting-started/ to install eleventy
  1. Open a Terminal
  2. pwd ← to see where you are
  3. ls ← to see what folder you want to go into
  4. cd Sites ← I keep all my code in the Sites folder because I have multiple sites
  5. cd 11ty-ahs ← this is where I keep my ahs code on my local machine, your folder name will be different
  6. npx @11ty/eleventy --serve ← run this command from inside the directory where your code lives --serve keeps a webserver running usually on 192.158.68.148:8080 or port 8081 which I can access from any browser on my local network, even from my android cell phone.