Wander

joined 2 years ago
MODERATOR OF
[–] Wander@yiffit.net 2 points 2 years ago (1 children)

Thanks! Of course you can feel some minor temperature change when pulling back the foreskin, but that's just the contrast. No idea if the base temperature feeling is different.

[–] Wander@yiffit.net 1 points 2 years ago (3 children)

I wouldn't know. I can't compare.

[–] Wander@yiffit.net 1 points 2 years ago

Thank you <3 There's no rush, although I'm pretty excited about the potential!

[–] Wander@yiffit.net 1 points 2 years ago (2 children)

Right now the blur is controlled via css. Disableblur is a theme that is set by default and which incorporates the css classes that override the default behavior. The problem is that blur is enabled again when a user chooses a different theme.

What I was thinking of doing was having a script that would fetch your preference from local storage and then dynamically change CSS. I agree to keep it light, but there's a lot of potential. Doing things serverside is possible, but I'd have to learn how to compile and dockerize from source, which might be complicated because the site is written in inferno and would also break future updates.

[–] Wander@yiffit.net 8 points 2 years ago

They're suing for not allowing the sale of refurbished articles, which was contrary to the agreement signed by the people who sold the refurbished articles.

[–] Wander@yiffit.net 5 points 2 years ago (1 children)

Panem et circenses to calm the masses and also to improve search results for the term 'reddit'.

[–] Wander@yiffit.net 5 points 2 years ago

What I do is create a new live snapshot before doing any changes to the server. I don't use digitalocean, but I think their snapshots cost 6 cents per GB/month, and are only charged like that if you retain them the whole month.

If everything goes well after a change and you delete the snapshot a day or two later (or after the next backup), it's basically free or very cheap. I think it's just a minimum of $0.01 per snapshot.

[–] Wander@yiffit.net 4 points 2 years ago* (last edited 2 years ago)

Yes, let me logging to my server and try to retrieve the exact query I used. BRB

Edit: here it is, the table is actually called activity

DELETE FROM activity where published < '2023-06-27'; Just make sure to change the date to whatever you need. Leaving two weeks is more than enough to detect and refuse duplicates.

In order to get access to the database you should probably be able to run docker exec -it midwestsocial_postgres_1 busybox /bin/sh. And then access postgres with psql -U username, the default username is 'lemmy'.

Then connect to the database with \c lemmy

You can list tables with \dt and view definitions for each table with \d+ tablename. For example \d+ activity.

You can get some sample data from the table with select * from activity LIMIT 10; You'll see that the activity table holds activitypub logs and should be cleared out regularly as mentioned by dessalines in this post: https://github.com/LemmyNet/lemmy/issues/1133

Important

After deleting the entries (which could take some minutes depending on how much data it holds) you will not see a difference in the filesystem. The database keeps that freed up space for itself but you should see backups being much lighter and of course, the file system itself will stop growing so fare until it has reached the previous levels.

If you want to free up that space to the filesystem you need to do a "vacuum full" but that will require downtime and could take several minutes depending on the space that was used up and the space that is still free. It could take up to an hour. I haven't done this myself since backups have gone down in size and I don't need extra free space in the filesystem as long as I stop the database from growing out of control again.

[–] Wander@yiffit.net 5 points 2 years ago* (last edited 2 years ago)

Test:


by fffox [1][2].

Edit, by the way, good choice in loading only e621 sources. A potential vulnerability could have come from loading images from external non-trusted sources, but from checking the code and decoding the bookmarklet encoding everything checks out! Good work <3

[–] Wander@yiffit.net 2 points 2 years ago (1 children)

Did you find a solution. The above comment with the database query should work. You can access the docker container where the database is running with docker exec -it instancedomain_postgres_1 busybox /bin/sh and then run psql -U databaseuser which by default is 'lemmy'.

Check docker ps to know the exact name of the postgres container which in your case likely is lemmytalungorg_postgres_1

[–] Wander@yiffit.net 2 points 2 years ago

I can imagine this being a problem for low effort youtube kid shows, like the ones that caused the whole elsagate controversy.

[–] Wander@yiffit.net 4 points 2 years ago (4 children)

Hello! Thank you a lot for this ^^

I'll give it a try in a moment. But before I do, can I propose something to you?

I noticed that I'm able to insert an arbitrary html header into lemmy-ui as part of the environment variables. This could include a type of header linking to a javascript file of our choice which I could host myself so that there's no problems with same-origin policies.

I have already started working on a script that creates a "unblur nsfw content" setting in the user's settings and stores the value in the browser's localstorage. This is just an example of the type of customization that could be done.

If you ever come up with any interesting "user scripts" for the lemmy ui, I might be able to include them into the site itself. I'm using greasemonkey for the development since it loads automatically every time you open a page and you can also do url filtering, but the idea is to insert the end scripts into the page itself (after publishing them for peer review).

So, if you ever come up with an interesting script idea, feel free to let me know or send me the result. You might also be interested in this lemmy communty: !plugins@sh.itjust.works

 

Let's say you find a subreddit with a very interesting guide that contains no private information.

What's the legality of copy / pasting that text over here? And if it is reworded, manually or with chat gpt?

The assumption here is that it would be done manually without scraping.

Edit: it looks like Reddit does not help the copyright and there wouldn't be massive issues if we created a community to copy over posts with useful guides and tutorials. I can't create it since I'm not on lemmy.world and wouldn't have time to moderate it, but I would contribute if a community like that existed.

 

Artist: patreon.com/jrgonzalez

 

I just had to do this myself and found this handy guide on reddit created about a year ago. So I don't claim credit, but I wouldn't want such useful content to be available only on reddit, so I'll share it over here:

Credit goes to /u/walllable.

Original POST:

Title's pretty self explanatory I think! This will be using VirtualHere, a program that connects one computer's USB devices to another computer via Wi-Fi, and will also let you access this functionality via Game Mode, so you don't have to go into the desktop in order to do this. This might use less battery power than controlling your PC via Steam Link as well since the Deck doesn't have to decode a video/audio stream and all that. This involves installing the program on both your Deck, and on your PC. I'll be providing instructions for both.

Skip step 1 if you've already set the desktop deck account's password. If you don't know if you have or not, go ahead and follow it.

  1. Go into desktop mode (Open the Steam Menu, go to Power, select "Switch to Desktop,") open System Settings, and go to the Users section, then click "Change Password." Set it to whatever you'd like, though ideally something easy to type with the On-Screen Keyboard, since you'll be typing it every time you want to use the Deck as a controller.

  2. Open the file browser, and make a folder in the Documents folder named "virtualhere" (all lowercase, no quotes)

  3. Download the VirtualHere Linux Server. The specific one you'll want is "VirtualHere USB Server for Linux (x86_64)," under "Generic VirtualHere USB Server Builds"

  4. Save the file you're downloading to the virtualhere folder you made in your documents earlier.

  5. In the file browser, right click on the "vhusbdx86_64" file that you downloaded, and click on "Properties." In the window that opens, go to the "Permissions" tab and tick the "Is executable" checkbox.

  6. Open Steam on your desktop, and click "Add a Game" on the bottom left corner, then click "Add Non-Steam Game." (You can add pretty much whatever application you want for this step, it doesn't matter much since we'll be changing all of its settings later anyway.)

  7. Find the application you just added in your list of games, right-click it, then click "Properties"

  8. Replace whatever text is in "Target" with env, whatever's in "Start in" with "./" (with quotes,) and "Launch options" with -u LD_PRELOAD konsole --fullscreen --notransparency --hold -e sudo /home/deck/Documents/virtualhere/vhusbdx86_64 You can also change the name of the application and set an icon, if you'd like (I set mine to "PC Controller.) The end result should look like this.

  9. Close the Properties window, and go ahead and launch it from Steam, then enter the password that you set earlier (The terminal not showing any changes as you type is normal.) If you see text that says VirtualHere USB Server is running...press CTRL-C to stop then you're all set on the Deck side of things!

You can now exit Desktop Mode, and go back into Game Mode on your deck, we're pretty much done here.

Now let's get the PC side of things set up, this won't take as many steps as getting it set up on the Deck.

  1. Download the VirtualHere Client for your respective platform. In my case I'm on Windows, but the process should be pretty similar for other platforms? I'm not sure about Linux, but assume if you're using Linux you probably know what to do.

  2. Open the file that you just downloaded, you should see a window like this pop up.

  3. Open the application you added on your Deck, and enter your password with the On-Screen Keyboard (Old down the Steam button, and press the X button to bring it up.)

  4. Once you've done that, the window on your desktop should have its list populated like this. If not, try double-clicking on the "USB Hubs" text in the window. That seems to help it appear faster for me, I think?

  5. Double-click on the "Steam Controller" entry, and you should hear a noise indicating a USB device got connected, and a popup similar to this from Steam in the bottom-right corner.

And you should be all set! Your Deck will now behave like a Steam Controller does, including being able to do stuff on the desktop, per-game bindings (that use your custom bindings from your Deck if you've got any set up!) and gyro functionality.

To disconnect the Deck from your PC, show the VirtualHere window from the status section thing on your taskbar, and just double-click on the Steam Controller entry again. You should hear Windows' "USB Disconnect" sound, and regain control on the Deck itself so you can exit the application.

Some notes that I think can be handy:

  1. If you don't regain control on your Deck after exiting VirtualHere, don't worry, this isn't permanent! Just hold down the power button on the top, and select "Restart." Once the Deck's back up and running, you should be all good.

  2. If you're having problems with latency or the connection dropping out, try connecting your Deck to the 5ghz band of your router (Or the 2.4ghz band if 5 ghz is screwing you over!)

  3. Lowering the screen brightness on your Deck before you connect it to your PC will help your battery last longer, if you plan on using it for an extended period of time.

Hopefully Valve adds this as native functionality someday, but until then I've really been liking this, since I don't really have any other controllers to use other than a Steam Controller, and I figured "Well, I paid $400 for this thing with a good controller in it, I might as well use it for my PC." Hope this guide came in handy!

 

From when it was still cool and niche to be a redditor and you needed to identify each other in public, you could use that sentence.

Lemmy / Kbin is getting to the point where it's cool and niche. Want it or not, you're one of the cool counter-mainstream kids now.

So, what's our secret code phrase?

maybe... (meta reference)


Package dropping in T minus 72h

 

This is hilarious. Not only is today the first day of reddit without third party apps, but Elon shoots himself in the foot by making Twitter unusable.

self-promo in case you need a Twitter replacement(By the way, if you need a Mastodon account to replace your Twitter, feel free to sign up at packmates.org which is also run by me.)

42
submitted 2 years ago* (last edited 2 years ago) by Wander@yiffit.net to c/chat@yiffit.net
 

Also, feel free to share your first impressions <3

Awooing is officially allowed!

 

Try it out. Save your comment even if it doesn't show up as a link. It will be converted into a link upon saving the comment.

For example /c/tech@pawb.social

 

cross-posted from: https://yiffit.net/post/221160

I wish I had the skill to make a cover.

 

I wish I had the skill to make a cover.

 

Something with big colorful tiles I believe. Was recommended as the way forward for self hosting in general, but I can't find it now.

Thank you <3

EDIT: It was Yunohost! Thank you everyone. This helped me out a lot.

 
view more: ‹ prev next ›