So, I'm trying to write a custom sync/backup tool for my laptop and desktop
So that I can just run a command and sync them up, and work on a project on whichever device I feel like
And Docker is trying to kill me
I want to use OverlayFS for incremental backups/syncing
So I have a known stable point, and whenever I sync one computer to the server, it creates a directory containing only the changes to the filesystem, so that once I sync the other computer the system can negotiate how to merge the changes
But if I have Docker files on my computer, since Docker uses OverlayFS too, it would break things since you can't put an OverlayFS filesystem inside an OverlayFS filesystem due to some weirdness with how they work
(If I ever become a billionaire and make that OS, a filesystem that natively supports (potentially nested) overlays/unions will be a part of it)
One consideration: the best option I have for the server to host these backups on is rto_wolf...which has pretty limited storage space and also will be hosting untrusted code (which shouldn't be able to break out, but if it does, maybe it shouldn't have access to my files :p)
Ooh unrelated but I just had a great idea
I should make a bootable thumb drive that, on a fresh Fedora install, will go through all of the steps necessary to install RTO
So if I ever need to start from a clean slate or someone else wants to spin up an instance, there'd be no mucking around with trying to get it running
I guess I could just run this on my droplet
Given that what I'll be backing up will mostly be code and screenshots and stuff, so it won't be more than a few gigabytes
> No matter your role, or what your automation goals are, Ansible can help you demonstrate value, connect teams, and deliver efficiencies for your organization. Built on open source, Red Hat® Ansible® Automation Platform is a hardened, tested subscription product that offers full life cycle support for organizations. Explore how Ansible can help you automate today—and scale for the future.
@RydwolfPrograms yes, of course, but I'm not sure how to define that in my grammar file (or more accurately I'm worried that the way I'd do it is wrong, because I've never used this tool before)
evaluating them from left to right makes sense, but what about the mathematical operators, which everyone expects to have a set priority? Should in be an infix function?
So that you can define things like a nor or xor operator
You'd need it to be determinable at tokenization-time whether it's a tight or loose custom op tho, so I'd suggest using capitalization or something to differentiate them
I suppose in theory you could pre-parse the code and ignore every non-class-defintion statement, and throw an error if there's conflicting operator precedences within the same scope, but that could cause all sorts of weirdness and slows your interpreter down
I would suggest just having a single precedence for custom ops
if you don't like the different-capitalization option
I'm still not sure why I can't handle this in tokenization, seeing as I can basically do whatever I want while turning the parse tree into a set of nodes
...oh, right
yeah I see what you mean :/
it looks like Kotlin has predefined precedence for symbolic operators
ok, so there will be a fixed and overridable set of custom symbolic operators, and you can define custom named operators which will all have the same (left-to-right) precedence
I'm just baaarely above the 110 pounds minimum limit and I was apparently pretty dehydrated (despite drinking a whole water bottle of water before donating), so I felt preeetty bad afterward
I'm talking like, crazy lightheaded and arm-fell-asleep across my whole body (which I'm pretty sure I was supposed to tell them about but I'm good now so meh :p)
Probably the first time I've ever been truly thankful to be given a grape juice box lol
Yeah but like...if I do the same thing in Rust, it gives me way more information and stuff
error[E0412]: cannot find type `RiprState` in this scope
--> src/cipr.rs:140:12
|
8 | struct CiprState {
| ---------------- similarly named struct `CiprState` defined here
...
140 | type Xyz = RiprState;
| ^^^^^^^^^ help: a struct with a similar name exists: `CiprState`
|
I was thinking of random series, popping up in mind, when I thought of one possible series in my head. It is as follows:
The basic idea is, take a line of natural numbers $\mathbb{N}$ which goes till infinity, and add them. One visible thing here is that the most maximum highest number $\mathbb{...
One thing that might help is finding a formula for the diagonals. If you can figure out a formula for going up the diagonals and down the antidiagonals, you just need to switch between those periodically
@AiraThunberg Well, if during the part where you're going upward you remember which numbers you're passing, you can add specific multiples of powers of two to find the numbers on the downhill part
Idk, I think the fact that you're coming up with sequences and trying to reason about them shows that you have the sort of mathematical curiosity that matters way more than whether you're naturally "good" at it :)
Ooh interesting, the indices of the bumping in the triangle, ignoring the actual value of the triangle's contents, isn't in the OEIS either
Here's some code to generate it
var rc_to_i = (r, c) => r * (r - 1) / 2 + c;
function* bumping_indices() {
var r = 1;
for (var k, i = 2;; i++) {
for (k = 1; k < i; k++)
yield rc_to_i(r++, k);
for (k = i; k > 1; k--)
yield rc_to_i(r++, k);
}
}
I have a follow-up question here from my previous question on Math SE. I am lazy enough to explain the content again, so I have used a paraphraser to explain it below:
I was considering arbitrary series, springing up as a top priority, when I considered one potential series in my mind. It is as p...
as far as I can tell if the visitor sees an RPAREN while processing an expression rule it just interprets the contents as an expression, but your grammar file only has RPAREN in the expression rule in the context of a function call