tko

joined 1 year ago
MODERATOR OF
[–] [email protected] 0 points 6 months ago

I have server2 (which replaced server1). I also have 'nvr1'.

[–] [email protected] 1 points 8 months ago

Understood, but OP mentioned that he wanted something without a backup camera, so that's why I was asking for clarification.

[–] [email protected] 1 points 8 months ago

My favorite is plain old wordle.

[–] [email protected] 4 points 8 months ago (1 children)

This game is not fun. It's not at all clear how the words relate, to the point where I got a top 10 word in the first 10 guesses, and it still took over 100 guesses to find the keyword.

I found it to be an unrewarding waste of time.

[–] [email protected] 13 points 8 months ago (4 children)

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?

[–] [email protected] 1 points 8 months ago

I think it depends on the airline. On my recent trip I noticed that American Airlines was charging to pick ANY seat. You could avoid the charge by letting it auto-assign the seat. Your idea to check in physically and request a certain seat MIGHT work, but you have to consider the timing. Most other passengers will have checked in online earlier and already have a seat assigned... If you wait until you arrive at the airport the seat selection might be limited. I like to check in online as early as possible so I can decide if I want to pay for a specific seat.

Good luck!

[–] [email protected] 9 points 8 months ago (1 children)

I'm not sure what caused your problem, but I can tell you that I am using the Venstar integration with https, and it works fine for me. With that in mind, have you tried removing the thermostat from home assistant entirely, and then adding it back fresh?

[–] [email protected] 10 points 8 months ago (1 children)

I've been a best man twice and both times I quoted from "The Prophet" by Kahlil Gibran, specifically the "On Love" section. "On Marriage" and "On Children" also have appropriate words for a wedding.

[–] [email protected] 4 points 9 months ago

telegraf is so easy to use and extend

Definitely... you can write custom scripts that Telegraf will run and write that data to Influx. For instance, I have one that writes the Gateway status information from pfSense so I can track and graph any internet downtime.

[–] [email protected] 11 points 9 months ago (2 children)

CPU/RAM/Disk/Network etc. get written to Influxdb via Telegraf, and visualized with Grafana.

Logging and errors go to Graylog stack (Mongodb, Opensearch, Graylog).

[–] [email protected] 1 points 9 months ago

Yeah... I think Shanahan basically called him out in a press conference after the Bengals loss, and the next week he was down on the field.

[–] [email protected] 2 points 9 months ago (3 children)

I didn't think he was terrible, but the defense was a little inconsistent throughout the season. His temperament was SO even, it almost seemed like he didn't fit with the team culture. It's like a night and day difference between Wilks and Ryans/Saleh.

So who's next? I know it's unlikely, but how great would it be if we could convince Belichick?

 

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!

13
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

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!

 

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!

 

The server has been updated to version 0.18.2

See the release notes here: https://join-lemmy.org/news/2023-07-11_-_Lemmy_Release_v0.18.2

1
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

In response to the XSS exploit (described here), I have updated the server UI to version 0.18.2-rc.2, which fixes the vulnerability.

 

I currently have NSFW enabled, because I don't really want to block legit content that might be tagged NSFW. That said, I really don't want to see porn showing up in the "All" feed. If you subscribe to a porn community, it WILL show in "All", so please don't do that.

view more: ‹ prev next ›