[-] tko@tkohhh.social 47 points 5 months ago
[-] tko@tkohhh.social 31 points 6 months ago

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

[-] tko@tkohhh.social 13 points 7 months ago

erm... 12am is midnight

[-] tko@tkohhh.social 13 points 10 months ago

Given the choice between RAID but no backup, and backup but no RAID, it's backup but no RAID by a mile.

[-] tko@tkohhh.social 15 points 10 months 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 16 points 11 months ago

I would say he overpaid by exactly the right amount.

[-] tko@tkohhh.social 16 points 11 months 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.

[-] tko@tkohhh.social 20 points 11 months 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 11 months ago

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

[-] tko@tkohhh.social 70 points 11 months 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.

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

I wrote my personal website in PHP, and I'm pretty happy with the security I've got going on. I'm not an expert, but I paid close attention to best practices to avoid pitfalls like SQL injection. My instinct is that it's certainly easy to code insecure applications in PHP (and probably many other languages as well), but the language does provide means by which to code safely.

34
submitted 11 months ago by tko@tkohhh.social to c/selfhosted@lemmy.world

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!

[-] 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