11
0.19.4 Prerequisites (tkohhh.social)
submitted 4 months ago by tko@tkohhh.social to c/lemmy_support@lemmy.ml

The release notes for 0.19.4 mention that this version requires an upgrade to both pictrs and postgres, but there isn't any information about what versions of those are supported. Is there someplace else I should be looking for this information? Or should I just YOLO with the latest version of each?

[-] tko@tkohhh.social 14 points 8 months ago

Can you clarify exactly what you mean by a "dumb car"? Do you just mean that it doesn't have a screen in the cockpit? Or something else?

[-] tko@tkohhh.social 47 points 9 months ago
[-] tko@tkohhh.social 32 points 11 months ago

Clarification question: Why would you expect somebody to DM you?

8
submitted 11 months ago by tko@tkohhh.social to c/unraid@reddthat.com
18
submitted 11 months ago by tko@tkohhh.social to c/unraid@reddthat.com
1
submitted 1 year ago by tko@tkohhh.social to c/unraid@reddthat.com
[-] tko@tkohhh.social 15 points 1 year ago

The engagement is what's valuable. You can't have engagement without content, that's true. However, content without engagement is worthless.

With that in mind, if you "steal" a post from reddit and it generates engagement over here, nobody will have any problems with that. However, if you "steal" a bunch of posts from reddit and spam them over here, they probably won't get engagement and therefore only serve to clutter the feed with empty content.

It's important to remember that Lemmy and the Fediverse is a community, just like reddit is a community. Each of those communities behaves differently and has different expectations. Once you learn the community and the expectations, it becomes a lot easier to understand what you should and should not post.

[-] tko@tkohhh.social 20 points 1 year ago

I think the logic is that you, by virtue of the fact that you made the comment (or post), agree with the contents. If you comment or post but don't agree with what you wrote, you could manually remove the upvote. Alternately, you could just not make the comment to begin with.

16
Report Function? (tkohhh.social)

I'm a little confused as to how the "report" function works. I'm an instance admin, but if I report a post on another instance, that report shows up in MY report queue. If I mark that report as "resolved" to get rid of the notification count, does it resolve it on the home instance?

35
submitted 1 year ago by tko@tkohhh.social to c/food@beehaw.org

I'm curious what everyone thinks about the posts that have shown up here that are simply a link to purchase an item on Amazon?

These posts are coming from users that don't have any other engagement other than these posts. This does not seem like a good-faith effort to engage with the community, but rather a cheap attempt to generate clicks and sales.

I would like to see these posts banned, but I'm curious how the rest of the community feels.

15
submitted 1 year ago by tko@tkohhh.social to c/lemmy_admin@lemmy.ml
[-] tko@tkohhh.social 16 points 1 year ago

I would say he overpaid by exactly the right amount.

[-] tko@tkohhh.social 16 points 1 year ago

The question is not "is it better than a normal vacation?" where of course the answer is "no." Rather, the question is "is it better than your regular work routine?" The answer to that depends on a lot of factors: your specific job, personality, personal finances, family obligations, etc. I think there are lots of circumstances where it could make sense for some people.

5
submitted 1 year ago by tko@tkohhh.social to c/lemmy_admin@lemmy.ml
[-] tko@tkohhh.social 20 points 1 year ago

I'm not familiar with lateral thinking, but this reads like a joke... Is it intended to be funny, or are you actually expected to come up with all of those answers?

[-] tko@tkohhh.social 34 points 1 year ago

This is a question for Randall Munroe. I wish I knew how to summon him.

[-] tko@tkohhh.social 69 points 1 year ago

Selling is an art... and this is why I'm not in sales. I have absolutely no interest in trying to convince somebody to buy something.

24
submitted 1 year ago by tko@tkohhh.social to c/usnews@beehaw.org
35

cross-posted from: https://tkohhh.social/post/4829

Unfortunately, the official documentation on theming lemmy is severely lacking. I made some progress on getting it figured out today, so I wanted to share that with you all.

This is by no means meant to be an exhaustive guide, but my hope is that it will at least get you going. I'm sure that I will say things that are incorrect, so please correct me if you know better!

Background

Lemmy uses Bootstrap-compatible theming. As far as I can tell, this means that it uses a pre-defined set of CSS classes. This is important because if you provide a CSS file that doesn't have all of the correct classes defined, it will break the layout of your lemmy.

Your custom CSS needs to be saved in the bind mount for your lemmy-ui container. If you followed the install instructions on join-lemmy.org, the location will be /lemmy/volumes/lemmy-ui/extra_themes/.

Prerequisites

In order to generate the correct CSS, you need a couple of things:

  • your customized Bootstrap variables, saved in an scss file
  • the Bootstrap scss files
  • the SASS compiler

Let's go through each of these (last to first):

The SASS compiler

The SASS compiler needs to be installed on the machine you will use to generate your CSS files (it doesn't NEED to be the computer that lemmy is installed on, but it can be). Follow the install instructions relevant to you. I used the "Install Anywhere (Standalone)" instructions and installed SASS on the Ubuntu machine that is running my lemmy instance.

The Bootstrap scss files

These files need to be saved on the same machine as the SASS compiler. The Bootstrap download page has a button to download the source files ("Download source"). This will give you a zip folder, so unzip it. Within the unzipped files, the only directory you need to keep is /bootstrap-5.3.0/scss. Save that folder in a place that makes sense for you. I put it in my home directory, so the path looks like ~/bootstrap-5.3.0/scss. You'll need to reference this directory when you're creating your custom scss file.

Your customized Bootstrap variables, saved in an scss file

This is the fun part... you define your Bootstrap variables. I'm still a little unclear on which version of Bootstrap lemmy is using (and therefore which variables are valid), so I chose to start with one of lemmy's default themes as a starting point. I grabbed _variables.litely.scss and litely.scss from the lemmy-ui github repo as a starting point.

You'll notice that litely.scss is just importing variables.litely as well as the Bootstrap scss files. You'll need to change the path of the Bootstrap scss files to the path where you saved your copy of the files. However, leave bootstrap at the end of the file path, as this is actually referring to the bootstrap.scss file within the Bootstrap scss directory.

It wasn't obvious to me initially, but you can also add your own CSS styles at the bottom of your scss file. These will be merged with the styles defined in the Bootstrap files. For instance, I wanted my navbar to have a different font from the body, so I added this:

#navbar {
  font-family: sans-serif;
}

Generating the CSS file

Once you have all of the prerequisites satisfied, you can generate your CSS files using the SASS compiler. Go to the directory where your customized scss file(s) are saved, and run this command (you added the SASS install directory to your PATH, right??):

sass [inputfile.scss] [outputfile.css]

This will generate a CSS file. However, pay attention, as there might be errors. If so, fix the errors until you can run SASS without any errors.

Finally, drop the generated CSS file into your "extra_themes" directory. You'll now see your theme show up in the list of themes on your profile (it'll be the filename of your CSS file).


And that's it! I hope somebody finds this helpful. Please let me know if there's anything I can clarify!

2
submitted 1 year ago* (last edited 1 year ago) by tko@tkohhh.social to c/lemmy_admin@lemmy.ml

Unfortunately, the official documentation on theming lemmy is severely lacking. I made some progress on getting it figured out today, so I wanted to share that with you all.

This is by no means meant to be an exhaustive guide, but my hope is that it will at least get you going. I'm sure that I will say things that are incorrect, so please correct me if you know better!

Background

Lemmy uses Bootstrap-compatible theming. As far as I can tell, this means that it uses a pre-defined set of CSS classes. This is important because if you provide a CSS file that doesn't have all of the correct classes defined, it will break the layout of your lemmy.

Your custom CSS needs to be saved in the bind mount for your lemmy-ui container. If you followed the install instructions on join-lemmy.org, the location will be /lemmy/volumes/lemmy-ui/extra_themes/.

Prerequisites

In order to generate the correct CSS, you need a couple of things:

  • your customized Bootstrap variables, saved in an scss file
  • the Bootstrap scss files
  • the SASS compiler

Let's go through each of these (last to first):

The SASS compiler

The SASS compiler needs to be installed on the machine you will use to generate your CSS files (it doesn't NEED to be the computer that lemmy is installed on, but it can be). Follow the install instructions relevant to you. I used the "Install Anywhere (Standalone)" instructions and installed SASS on the Ubuntu machine that is running my lemmy instance.

The Bootstrap scss files

These files need to be saved on the same machine as the SASS compiler. The Bootstrap download page has a button to download the source files ("Download source"). This will give you a zip folder, so unzip it. Within the unzipped files, the only directory you need to keep is /bootstrap-5.3.0/scss. Save that folder in a place that makes sense for you. I put it in my home directory, so the path looks like ~/bootstrap-5.3.0/scss. You'll need to reference this directory when you're creating your custom scss file.

Your customized Bootstrap variables, saved in an scss file

This is the fun part... you define your Bootstrap variables. I'm still a little unclear on which version of Bootstrap lemmy is using (and therefore which variables are valid), so I chose to start with one of lemmy's default themes as a starting point. I grabbed _variables.litely.scss and litely.scss from the lemmy-ui github repo as a starting point.

You'll notice that litely.scss is just importing variables.litely as well as the Bootstrap scss files. You'll need to change the path of the Bootstrap scss files to the path where you saved your copy of the files. However, leave bootstrap at the end of the file path, as this is actually referring to the bootstrap.scss file within the Bootstrap scss directory.

It wasn't obvious to me initially, but you can also add your own CSS styles at the bottom of your scss file. These will be merged with the styles defined in the Bootstrap files. For instance, I wanted my navbar to have a different font from the body, so I added this:

#navbar {
  font-family: sans-serif;
}

Generating the CSS file

Once you have all of the prerequisites satisfied, you can generate your CSS files using the SASS compiler. Go to the directory where your customized scss file(s) are saved, and run this command (you added the SASS install directory to your PATH, right??):

sass [inputfile.scss] [outputfile.css]

This will generate a CSS file. However, pay attention, as there might be errors. If so, fix the errors until you can run SASS without any errors.

Finally, drop the generated CSS file into your "extra_themes" directory. You'll now see your theme show up in the list of themes on your profile (it'll be the filename of your CSS file).


And that's it! I hope somebody finds this helpful. Please let me know if there's anything I can clarify!

6

I'm hoping one of the developers can help point me in the right direction.

I'm trying to create a theme, and I started by downloading the litely.scss and _variables.litely.scss files from the github repo. I renamed the files and made some changes, and then used https://bootstrap.build to generate a css file. I dropped that file (along with my scss files) into the extra_themes directory on my server.

Sure enough, my new theme was available in the list of available themes. However, when I applied the theme, I found that the layout was broken (see screenshot).

So, my question is: how can I generate the css file in the proper manner so as not to break the layout? Is there a specific Bootstrap tool that we should be using to generate the css? Are there additional input files that need to be included in order to generate the correct css?

Thanks for any help you can provide!

[-] tko@tkohhh.social 14 points 1 year ago

Do I understand correctly that you're asking us to give you a good reason to hack wireless signals because you yourself cannot think of a good reason?

If so, I can't think of a good reason either, unless of course you want to be a white hat for somebody.

view more: next ›

tko

joined 1 year ago