I just looked up the man page, and actually head -n -2
means “everything up to but not including the last two lines”, so this should always leave two files remaining.
I just looked up the man page, and actually head -n -2
means “everything up to but not including the last two lines”, so this should always leave two files remaining.
Ah! This is a shell pipe! It’s composing several smaller commands together, cool stuff.
ls -1
is the grep-friendly version of ls, it prints one entry per line, like a shopping list.
head
takes a set number of entries from the head of a list, in this case 2 items. negative two, meaning “all but the last two.”
xargs
takes the incoming pipe and converts it into extra arguments, in this case applying those arguments to rm
.
So, combined, this says “list all the .dump files, pick the first two, all but the last two, and delete them.” Presumably the first are the oldest ones and the last are the newest, if the .dump files are named chronologically.
I agree with you but your tone is way too violent, we should be helping people learn from their mistakes, not infantilizing them.
True… the trouble with open source is that nobody’s getting paid to add features you want, huh.
I’m excited! But why not Minetest? :p
Like many open source games, it has that distinctly ‘alpha’ feel to it right now, but I do enjoy NodeCore on occasion. It’s a zen minimalist block game with a unique diagetic crafting system. Instead of a traditional “recipe book” or “crafting grid”, you produce new materials through in-world transformations. For instance, to make glass, you have to surround sand with fire, and to control fire, you basically want to build a deliberately-shaped dirt or stone pit… the whole thing feels a little like minecraft and a little like a sand physics sim or cellular automata.
I think part of the problem is just that there are a lot more good games that people know about! Unfortunately one of the tradeoffs for all the riches of heaven is that it’s a lot harder to cover them all.
I hope it gets a PC port. I’m done with Switch exclusives.
this is my current solution; I use Obsidian to manage my notes and I sync the folder with Syncthing. I still use Google Keep though for its whiteboard tool; is there a better app for that?
and what beautiful hair it is!!
Basically, repeat the experiment under a wide range of conditions, and show that the conditions for success, if any, are far beyond the original claim. I always loved the ‘mythbusters’ approach: if one bible can’t stop a bullet, how about two bibles? ten? where is the cutoff between true and false?
where do you find good sources to follow, then?
updated post here, includes section on networking! let me know if this looks good? https://lemmy.world/post/2444639
ah, thank you! it’s actually been long enough that I created a new post here: https://lemmy.world/post/2444639
Very high praise! Let me know what they find helpful or frustrating!
ah, well spotted! I’ll fix that, whoops
Ultimately I think it’s sort of like Python and C#. Python got big by being easy to use, with great community management, and it took decades to reach its peak of popularity. C# got big because Microsoft threw a ton of money at people to use it. Of the two, Python’s popularity seems to be lasting longer.
I suspect this will be the case for all the new sites and protocols popping up in The Web 2.0 Crash, or whatever the history books call it. We’ll see a few sites like TikTok and Threads that “buy their friends”, get a ton of overnight popularity and then fade away, and we’ll get a few “institutions” that take their time building healthy communities over tens of years. ActivityPub didn’t wow me with Mastodon but I’m pleasantly surprised by Lemmy, so maybe the Fediverse will be one of those institutions… but personally I still think there’s room in the market for RSS to make a comeback.
Hear hear! I thought I didn’t like the fediverse because Mastodon did such an awful job selling it to me. “Oh, I can’t view other instances’ local timelines without making accounts on them? What’s even the point of federation then?” But on Lemmy you can easily browse communities outside your own instance. So it’s not the fediverse’s fault, Mastodon just doesn’t have a clear audience.
And yeah, I can see how a lot of Mastodon’s features are “privacy-focused”, but I think it does TOO good a job, it’s so private that you can’t find anything!
in a word, intersectionality. you’re getting people who were already looking for an excuse to ditch reddit and twitter, and of that group, you’re selecting the ones with the most tech literacy. That tends to overlap people with progressive politics.
Won’t this delete the two newest files, as opposed to everything except the two newest files?