freeskier

joined 1 year ago
[–] [email protected] 3 points 1 year ago

Been using Zoho for years, cheap and reliable.

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

Split beam torque wrenches are where it's at, especially for home use where it's going to sit for long periods of time. Split beam is easier to set, and you don't have to leave it at 0 when not in use. I have ruined many traditional clickers because I forgot to set it back to 0 for storage, then it sits like that for months.

They aren't as cheap as a traditional clicker, but they are so much better.

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

Some satellites and rovers have used Radioisotope Thermoelectric Generators (RTGs), which are very different from a nuclear reactor. They use polonium-210, which generates heat, and that heat is converted to electricity with thermocouples. They are low power and inefficient.

To my knowledge no satellite, with an RTG, has ever used ion propulsion. Few interplanetary satellites have ever even used ion thrusters. Dawn, Hayabusa, and Deep Space 1 are the only I can think of, and they all used solar arrays.

Ion thrusters are super efficient, but produce extremely small amounts of thrust. They aren't practical for getting large spacecraft to Mars. These proposed nuclear engines produce large thrust while have efficiency somewhere between regular chemical propulsion and ion propulsion.

[–] [email protected] 5 points 1 year ago

For large instances pictures is probably the bigger consumer of space, but for small instances the database size is the bigger issue because of federation. Also, mass storage for media is cheap, fast storage for databases is not. With my host I can get 1TB of object storage for $5 a month. Attached NVMe storage is $1 per month per 10 GB.

For my small instance the database is almost 4x as large as pictrs, and growing fast.

[–] [email protected] 1 points 1 year ago

If you have open registration you should reduce the account creation rate.

[–] [email protected] 4 points 1 year ago* (last edited 1 year ago) (3 children)

It runs /e/OS, which is very much a privacy focussed OS.

https://e.foundation/e-os/

[–] [email protected] 7 points 1 year ago

I don't think most people even know honeybees aren't native to North America. Native bees are the ones at risk, and non-native honeybees aren't helping.

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (1 children)

Sure, depends on what you want to do, that's just the command I used to purge unverified accounts. My instance doesn't really have any users so not a big deal.

Yeah, unless you are deleting hundreds of users you can't really tell, but I deleted 6k+ bots and can confirm user count automatically updates.

[–] [email protected] 12 points 1 year ago* (last edited 1 year ago) (3 children)

Don't delete from the local_user table. You only need to delete from the person table, the rest of the tables will be updated automatically and user count will update automatically.

Edit: The below command will delete all unverified users. NOTE: If you do not have email verification turned on then all users are unverified, therefore all users will be deleted. It also appears with v18 when you enable email verification all existing users remain unverified.

This is a destructive command, use at your own risk and don't go fucking with the database if you don't have backups.

DELETE FROM person WHERE local = 'true' AND id IN (SELECT person_id FROM local_user WHERE email_verified = 'false');

In the parenthesis you can add your AND to only select unverified accounts of a certain age.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (3 children)

Yes, person table is top level. Delete from person table and it cascades down and deletes from other tables. User count also automatically updates. Just be careful because person table also contains federated users. There is a "local" column to determine if they are local users or not.

I had about 6k bot accounts, but they were all unverified, so I just deleted all local unverified accounts from the person table.

Just don't go messing with the database without backups. My host supports snapshots so I did a quick snapshot before messing with anything.

1
Colorado Lemmy Server (centennialstate.social)
 

Hi everyone, just wanted to make people aware of a Colorado instance I’m trying to get going. If anyone is interested feel free to join!

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

What I ended up doing is getting the person_ids, from the local_user table, that had verified emails. Since my instance literally only has 4 real users I then just deleted all the rows in the person table that were local users and weren't the 4 real users. It took almost 2 hours to run but it worked. User count automatically updated and corresponding rows in all the other tables were automatically deleted.

This is the command for getting person_ids of verified users:

SELECT person_id FROM local_user WHERE email_verified = 'true';

Then to delete all the local users, except for those with verified emails:

DELETE FROM person WHERE local = 'true' AND id NOT IN (<ID1>,<ID2>,<ID3>);

Unfortunately, this isn't really helpful for anyone with lots of real users. Unless a SQL wizard knows how to do this, making a python script that queries all the person_ids of unverified users then deletes those from the person table is probably easiest.

I'll copy this to the Matrix room too since it might help admins there.

[–] [email protected] 1 points 1 year ago

I still think instances should be largely region based, which is why I started one for Colorado. As far as sharing it I'm not really sure either other than spamming it everywhere (which I also don't want to do). Instance discovery kind of sucks, you can't even search on the main join Lemmy page.

view more: next ›