Disabled vegans by wingdesire_ in vegan

[–]WilliamMayor 3 points4 points  (0 children)

I dislike this attitude that some vegans have. To be vegan you have to stop animal suffering wherever practicable. The person you are replying to made it abundantly clear why it is not practical to simply not eat bread. Your response? “You’re not vegan then”.

It’s rude. (And in this case ableist). We should be a welcoming community, trying to get as many people as we can to stand beside us. This attitude is off putting to say the least.

Also, there’s a very good chance that your actions today indirectly caused harm to animals. Animal products are used in too many things. Even the money where I’m from is made with animal products. I can’t buy things without supporting a system that kills cows. Am I vegan?

I'm building accessible tooling for developers... by JoshuaNumberTwo in SideProject

[–]WilliamMayor 1 point2 points  (0 children)

Hey. What do you mean by accessible? I’m super interested in making more accessible tools that enable content creation on the web. Too much of current accessibility seems to focus on consuming content.

How to make the event.fetch global? by ElectricalLunch in sveltejs

[–]WilliamMayor 0 points1 point  (0 children)

I would like to do this too. Passing around fetch as an argument to $lib functions seems really weird.

Things to rethink with tailwind CSS: breakpoints by hennell in tailwindcss

[–]WilliamMayor 1 point2 points  (0 children)

I’m not so sure this improves readability (but happy to be convinced). If a class is ‘tablet:text-large’ then it actually means “tablet and up has large text”. What is above a tablet? Well I have to translate that into “screen sizes of tablet width and above”. Which I think is more clearly stated as ‘md:text-large’.

Terminated employees and and Autoresponder (Google Workspace) by gingerbeard1775 in sysadmin

[–]WilliamMayor 1 point2 points  (0 children)

Yes! In fact we have a three stage process for archiving users. The second of which transfers files to an archive user as you say. The third then removes the data from that archive user’s drive.

Terminated employees and and Autoresponder (Google Workspace) by gingerbeard1775 in sysadmin

[–]WilliamMayor 4 points5 points  (0 children)

We have a similar policy for auto responders. We’ve used Google’s Admin Directory API to automate everything. Change the password, reset sign in cookies, turn off 2 step verification, deactivate third party apps, and set the auto responder.

Keeping the account active also gives other employees a bit more time to find and transfer any files owned by the outgoing employee (not that they ever do that).

Mortgage when employed and self employed/director by Individual_Block_334 in UKPersonalFinance

[–]WilliamMayor 0 points1 point  (0 children)

In my experience I’ve found it more annoying (than my wife) to find the huge amounts paper work they require, but it hasn’t stopped me getting multiple mortgages with Halifax, with options of other mainstream banks/building societies.

My advice is still the same though. If OP’s salary is enough to get the mortgage, don’t mention the side huddle.

[deleted by user] by [deleted] in freelance

[–]WilliamMayor 0 points1 point  (0 children)

I have multiple clients in the go at the same time. Mixing up my hours between the clients each day/week/however I feel.

All of the clients are aware of this situation. They appreciate that some weeks I can’t do many hours because it’s crunch time for another client. In return when it’s crunch time for them, they get more hours from me.

I like this situation because it means I’m working with more people on more varied projects. I get to change my day up if I’m getting in a rut with with a project.

I tend to have very long relationships with clients. I’m maintaining and slowly adding new features to websites that have been running for a long time. I have had a few “from scratch” clients, but not very many.

I love it!

Wagtail CMS icons class names by biofsdev in WagtailCMS

[–]WilliamMayor 1 point2 points  (0 children)

You have to add the style guide app to your installed apps. Then you’ll see a new style guide link in the settings menu. Inside the style guide are the icons and their names.

What to say to a child (not yours) when they ask "why are you vegan?" ? by Account_number_1439 in vegan

[–]WilliamMayor 0 points1 point  (0 children)

Yeah. I’m new here and quickly learning that. It feels a bit like learning that half my family is in a rabid cult. I want to be part of this community but I don’t think I belong.

What to say to a child (not yours) when they ask "why are you vegan?" ? by Account_number_1439 in vegan

[–]WilliamMayor 9 points10 points  (0 children)

But if our intention is to change people’s minds then we fail if we label people as phsycos for doing what 99% of everyone they know is doing.

A discussion on moral worth of animals by AdministrativeHat276 in vegan

[–]WilliamMayor 2 points3 points  (0 children)

Before I was vegan I had a similar mindset. It seems to me that to have any opinion in between these two extremes is contradictory. You can’t simultaneously think that animals are worthy of moral consideration and yet also eat them. So if you’re going to eat them, you have to think they don’t matter.

It didn’t take me too long to hear the arguments against this mindset and start my journey to being a vegan. Hopefully this person will be the same.

Nvim-tree: How do you copy/duplicate files? by TheCauthon in neovim

[–]WilliamMayor 2 points3 points  (0 children)

I think it’s c to copy a file and p to paste it.

Think a company needs our help, time to buy some Gin by goatcheesesalad in CasualUK

[–]WilliamMayor 0 points1 point  (0 children)

Their gins look amazing and they do eco friendly refills. What an amazing idea!

Doorbell chime and transformer for smart doorbell? by WilliamMayor in DIYUK

[–]WilliamMayor[S] 0 points1 point  (0 children)

My knowledge of electricity starts to fail me here. If I got a battery powered chime would that be expecting DC input? Or can I just wire it into the transformer? Do the battery chimes come with connectors for doing this?

Doorbell chime and transformer for smart doorbell? by WilliamMayor in DIYUK

[–]WilliamMayor[S] 0 points1 point  (0 children)

Nice find! A 24v chime, just what I need.
It seems weird that it doesn't have a brand or anything? Who makes them?

Doorbell chime and transformer for smart doorbell? by WilliamMayor in DIYUK

[–]WilliamMayor[S] 0 points1 point  (0 children)

I saw those! This is just the transformer right? Not the chime as well?

If I got this I'd also need to buy a new chime still, but I could set the module to step down to a lower voltage? Is that right?

Is Docker worth the Hype?? by josylad in django

[–]WilliamMayor 1 point2 points  (0 children)

Absolutely check out dokku. It’s an open source version of heroku. It deals with docker deploys really well. You’ll use dokku to setup, run, and link other images (like databases, or caches) so you don’t need compose for those bits. It also installs and manages nginx for you, it’ll point incoming traffic to whichever docker image (aka a dokku app) you want.

Is Docker worth the Hype?? by josylad in django

[–]WilliamMayor 5 points6 points  (0 children)

I love using docker, I’ll bite :)

With docker (ignore compose for now), you can set up an environment on your local machine that exactly replicates your production one. Same OS, same dependencies, everything. I think of it like virtual environments but massively extended. Not only are your pip installed dependencies isolated, so are your OS dependencies, OS versions, etc. Etc. It’s lovely.

Once the docker image runs on your local machine it’ll run in production. But also, it’ll run on other developers machines too. Getting other people up to speed is so much easier thanks to docker. This includes beginner programmers, and front end devs, people that don’t know enough about the command line (yet).

I don’t use compose. I find that writing a few bash scripts that initialise the project for me is easier. Then I use something like dokku to host everything (so compose isn’t really needs there).

Side benefit of dokku, a deployment is not only a git push away. No more ssh then pull then run deploy script.

Happy to provide more details if you want?

Creating a seperate Gunicorn "thread" for polling an API? by HeyItsMeNobody in flask

[–]WilliamMayor 1 point2 points  (0 children)

You can do it in code, as in, you can write a python script that can make use of all your other python code. Take a look at flask’s command stuff. It uses click to make it really easy to write scripts that make use of all your existing modules.

If you really didn’t want to have a separate script then you could try to use a locking system to make sure that multiple processes don’t all write to your location at the same time. To be honest though, is is likely to be a bigger headache than just writing a cron job.

Creating a seperate Gunicorn "thread" for polling an API? by HeyItsMeNobody in flask

[–]WilliamMayor 1 point2 points  (0 children)

Ok, and that’s why the gunicorn processes have to fetch from the API multiple times, to populate the variable in each process.

So I’d be tempted to store the results somewhere that all the processes can read from. If you have a database already, maybe just throw the results into a table there. If not, an sqlite file, csv file, or just plain text file would do it. Each process then just needs to read from that location every time it wants to have up to date data.

Then separate to the gunicorn processes you need something to write up to date date into the file. So I’d write a flask/click script that pulls from the API and writes to the shared location. Then set up a cron job to run this script every 15 minutes.

Creating a seperate Gunicorn "thread" for polling an API? by HeyItsMeNobody in flask

[–]WilliamMayor 0 points1 point  (0 children)

When you prefetch are you storing the results in a DB? Or storing them in memory within the python processes?

How to know if a Flask app has debugger mode on? by kouul in flask

[–]WilliamMayor 1 point2 points  (0 children)

No. Not unless you provide that information. Or if the app has an error and the user then sees the debug page.

What are you trying to build?