232 karma · joined May 10, 2012
Congrats to the folks at hasura for the raise, long live postgres and graphql.
Another plus is easier ajustable ground clearance since there's only 2 points of contact; for an off-road-able vehicle that's a big plus; while at highway speeds you want a low center of gravity and less drag.
Will we see a 2 wheeled pickup truck reveal tomorrow? A BUV? (Battery Ultimate Vehicle) That would be "cyber from the future" alright. Dreaming out loud, but a ppl carrier (8-10 seater based on this would be totally out of this world)
Since there's no lock or anything this vanishing new file just after creation is a possibility. I just wrote this yesterday, I'll be using it extensively, I'll see how annoying this is, and if there's something to do about it.
As a side note, ssh failure has not been a problem (yet), since the script does the same strategy when starting up. In fact I kill and restart this script a lot. I havent played with archive extraction, this is mainly for source code editing.
edit
It would seem that a small modification to the --delete behaviour of rsync to only delete files at the other end that are older than say 30 seconds would handle this edge case. I'll see how annoying it is and if it warrants the time to investigate this.
edit for clarity The trick is every sync step is with -u (not replacing updated files) and done again in the other direction before restarting the watch.
For iOS coda is pretty good. I've used Codeanywhere for android; 2-way sync would need to be integrated in the app itself on these platforms, I would think...
With regards to fswatch, from what I gather, it blocks a iotcl call on all the files in your watched folder. This script fires rsync (always from the local end to prevent confusion) as soon as a change is detected on either end, starting with the end where the change has been detected. Pretty simple. I guess if you change files and delete files at the same time on both ends, some deleted files might get recreated. At this point this is the worse I can see, but I could be very wrong... :-)
OK over and out you guys, Done with your echo chamber. So long and thanks for all the fish.