skaarl

joined 3 weeks ago
[–] [email protected] 1 points 23 hours ago

Yes, I see your point. Very true about "moving to the right".

"People need to vote, and they need to vote effectively. If you’ve got ranked choice, great, vote for the candidates that represent your views the best. If you have a first past the post system, then you need to vote for the least worst candidate that can actually win, even if they don’t align with your morals or ethics."

This I think is one thing what Progressives in America have been working on, without the help of the Democrats (also healthcare, labour protection etc.). Then when the election comes, Democrats are surprised they did not get more votes and did not motivate people to the polls. Then they blame Progressives, who they have been ignoring, for not voting for them even though Republicans have a worse guy. So, Democrats don't serve the poeple and are sad when they don't get votes, is that right? Also, Democrats only listen to campaign advice from donors, even though donors are not a majority of the base... and then surprised when they get less votes? It just seems absurd to blame anyone but the Party. It is plain and simple bad politicking. Even blaming Trump supporters makes more sense, but they might actually fight back.

[–] [email protected] 2 points 23 hours ago (1 children)

Did you vote for Kamala? Or did you allow trump to get elected? Guess what, your hands are stained with innocent blood either way.

What is the point of this? You are saying the vote didn't matter and berating the person for (your assumption) their vote at the same time.

You Americans need to unite, not squabble like this. Unless of course you are supporting Trump's agenda, then it is good to squabble and make sure people stay divided.

[–] [email protected] 3 points 23 hours ago

Isn't this like shouting at the cashier because the supplier raised the prices?

Fortunately I don't live under Democracy with American Characteristics (and may be I am missing something here) but I am pretty sure there is a huge machination behind the "sacrifice countless numbers of people to do it" that has nothing to with you or the person you comment to. Seems like you are on the same side.

[–] [email protected] 2 points 23 hours ago

A lot of these comments in this post seem insane but what it looks like is that non-principled people just can not understand principled people. The non-principled people hurt themselves (and many others) in their confusion.

[–] [email protected] 18 points 1 day ago (5 children)

This is such a strange take, but a popular one among Americans it seems. There are many more elements to why Trump is president, structural incentives especially money in politics and the specific democratic process that involves the Electoral College, districts etc. I'm not American yet even I know about these... don't you guys? It's sad because it seems like you guys are fucked, and have no idea what you did wrong. The burgler is in the house and you all are trying to wrestle down a potted plant.

It's also absurd because the US markets itself as the world leader of democracy, but Democratic voters are saying, "Why didn't you vote with the Party? You shouldn't have exercised democracy!"

I know you don't speak for all Americans, but maybe you can shed some light on this.

 

My blockchain is 5 years behind and my friend is bringing over an up to date chain. Can I just rsync lmdb and it adds the new blocks or is it better to just paste the new chain in place of the old one? I don’t think the up to date one is pruned but if it is will that cause problems if I try to rsync it?

On Linux. Thanks.

[–] [email protected] 2 points 5 days ago (1 children)

Hey I finally got to try this out and tbh I hit Enter without understanding the whole thing 🤭🤫 but anyway it's perfect! And it left me with a lot to study, your explanation was really helpful. Thanks so much for all your help! I really appreciate the time you spent :)

[–] [email protected] 2 points 1 week ago (5 children)

Yea, I just came back to say this. Since cp overwrites by default (I tried copying first before trying moving) and each folder has files named index001 index002 etc then then folder where they all go has only ONE of index001.html, ONE of index002.html etc. So I think what I need to do is find each html file, rename it with a unique integer in front of the name, move it to the common folder.

[–] [email protected] 2 points 1 week ago

Ok, thanks for the tip. I'm still getting used to Lemmy.

I ended up using

for f in *; do find ./"$f" -type f | sort | tail -n 2 | xargs -n 1 rm; done

and it worked perfectly. For the bonus question, I'm moving the html files from 127 subfolders. They are the only content of the subfolders. I want to prepend an integer to each and copy them to a different folder, so instead of

  • folder1/file1
  • folder1/file2
  • folder2/file1
  • folder2/file2
  • folder2/file3

I'll have

  • 001file1
  • 002file2
  • 003file1
  • 004file2
  • 005file3
[–] [email protected] 1 points 1 week ago* (last edited 1 week ago) (7 children)

😍😍😍😍 thanks harsh!! I'll study this and report back. I really appreciate your time and effort. There is a lot to learn here, and actually the padding is on my list of things to learn, so thank you sensei! As to your question about the integers, the files need to be in alphabetical order before getting the integer prepended to them, so like

  • folder1/file1
  • folder1/file2
  • folder2/file1
  • folder2/file2
  • folder2/file3

turns to

  • folder1/001file1
  • folder1/002file2
  • folder2/003file1
  • folder2/004file2
  • folder2/005file3

that way in the folder when it's all said and done I'll have

  • 001file1
  • 002file2
  • 003file1
  • 004file2
  • 005file3

I'll check if your method works out of the box for that or if I have to use the sort function like you showed me last time. Thanks again!

[–] [email protected] 2 points 1 week ago (10 children)

That was it! Thank you. I got rid of over 150 files in 127 directories with a lot less clicks than through the file explorer.

Luckily this time there were no spaces in the names. Spaces in names are a PITA at my stage of learning, and I'm never sure if I should use ' or ".

Btw, new challenge in the edited original post, if you haven't yet exhausted your thinking quota for the day lol.

[–] [email protected] 2 points 1 week ago

Great tip, thank you!

[–] [email protected] 2 points 1 week ago (12 children)

Thanks so much harsh!!! I will study this and hit Enter after I understand it.

Thanks again, that's epic.

 

As the title says, I just started with linux mint and am falling in love with bash scripts 😍 Actually I'm not sure if it's considered a script, but I want to delete the last 2 files in all subfolders in a folder. So far I've (after great effort) got the terminal to list the files, but I want to delete them. Here is how I get them listed:

for f in *; do ls $f | tail -n 2; done

All their names come satisfyingly up in the terminal. Now what? I tried adding | xargs rm but that didn't delete them. I also tried something with find command but that didn't work either. Some folders have 3 items, so I want to delete #2 and 3. Some folders have 15 items so I want to delete #14 and 15. Folders are arranged by name, so it's always the last 2 that I want to delete.

It's frustrating to be sooooo clooooose, but also very fun. Any help is appreciated!



EDIT: Thanks for the awesome help guys! The next part of this is to move all the .html files into one folder (named "done"), prepending their name with an integer. So far I got:

n=1; for f in *; do find ./"$f" -type f | sort | xargs mv done/"$n$f"; n=$((n+1)); done

but that is... not really doing anything. The closest I have gotten so far is some error like

mv: Missing destination file operand

Any help is again appreciated!

 
 

* wages increase with productivity

Original image credit

 

I have to update a phone that currently has LOS, and degoogle it at the same time. If I just upgrade to the latest version (by flashing) and not install mind the gapps, is it basically a degoogled phone? It seems that installing /e/ over the current LOS would require me to flash stock rom first, which takes more time. The current LOS version on the phone was just 1 or 2 iterations below the latest version, 20 or 21 I don't remember.

TIA

view more: next ›