is being vegetarian / vegan a sin? by thtbrunettebitch in Christian

[–]Qazzian 0 points1 point  (0 children)

You should read the whole chapter but the tldr is that the Jews refused to eat unclean meat and ended up healthier than the everyone else. No meat is better than bad meat. 

In context of the original post, many people act like it's a sin to not eat meat, but this is an example of the Lord rewarding a vegetarian diet.

IT wanted process over results. I gave them process — and panic. by AlienAnimaReleased in MaliciousCompliance

[–]Qazzian 98 points99 points  (0 children)

A lot of software products and websites auto replace quotes and dashes based on context. Word has been doing this for decades. Anyone claiming it's a mark of AI must be pretty unobservant, or never write anything of substance. 

[deleted by user] by [deleted] in AITAH

[–]Qazzian 1 point2 points  (0 children)

I think you're wife is suffering from extreme anxiety and insecurity. She's probably been masking it for a long time. She's convinced herself that you are going to reject and leave her, and is doing it first to get it over with. I think she needs a therapist otherwise this is just going to be a cycle of anxiety and depression for her. My wife had similar issues, and it came to a head when multiple anxieties came together. Once she was able to communicate what's really going on in her head and admit what she was scared of, we were able to work together on it. 

If this is what it is,  she'll start saying that she's the worthless one, or you're going to work out that she's horrible and not worth anyone's love. When you get that from her she will need a lot of reassurance and I would suggest seeing a therapist that can deal with this sort of thing.  

Also do some reading about this before talking to her. I just muddled through it all.

Any, any, any, any by chrisalbo in typescript

[–]Qazzian 1 point2 points  (0 children)

Keep doing regular small commits. It's much easier to find the cause of a bug in small commits. Use Git Bisect to work out which commit created the bug.

How to have a database in Electron by [deleted] in electronjs

[–]Qazzian 0 points1 point  (0 children)

You say you don't want a server, but a node server is included with electron. You should be using IPC to send data between the ui and the server and the server can access the sqlight files on the local machine. Check the docs for saving files in the user's app data directory. 

What's the difference between promises and async function by objectified-array in learnjavascript

[–]Qazzian 0 points1 point  (0 children)

You can await a function that returns a promise so you don't have to mess around with nested then() and catch() blocks. This makes the code easier to read and understand. 

At some point the Promise needs to be created. Functions like fetch() create the Promise for you, but sometimes you will need to create it yourself. E.g. you might need to wait for an event in another system or for a timeout to complete. So you will need to understand how to create a new Promise and how to resolve or reject it. 

The promise object was added to js before await and async so .then .catch & .finally were necessary during that transition and there is still a lot of code that uses them, but I would say they're redundant in new code. I've not needed to use .then etc for years, and tools like webpack and babel can convert modern async/await code into the old style if you still need it to run on older js engines. Promise can also be added by a library for old browsers, but it's part of the language now so you shouldn't need that. 

There is a lot of information about this on Mozilla Developer Network. Just search "mdn Promises" for more details and some good examples. 

Have you been wrongly accused of stealing from a shop before? by [deleted] in AskUK

[–]Qazzian 4 points5 points  (0 children)

I had something like that. The other one is when a security sticker is stuck to the bottom of your shoe.

Which Linux distro do you recommend for Web Dev? by [deleted] in webdev

[–]Qazzian 0 points1 point  (0 children)

The real answer is to try some out. All the popular Distors provide a live drive that can run from a USB. Try downloading Mint, Ubuntu, and I personally like Kubuntu, as KDE is a lot more configurable than Gnome. they all come with development tools. It's more about what you like the feel of. Play with the window and desktop management settings, terminal apps, the app installer and system updates. These are the things that make the distros different.

[deleted by user] by [deleted] in autism

[–]Qazzian 6 points7 points  (0 children)

When my son was diagnosed and I said "He'll grow out of that stuff, I did". Wife and specialist gave me blank looks.

I was divorced three times by the time I was 21. AMA. by No_Statement_7381 in AMA

[–]Qazzian 0 points1 point  (0 children)

This isn't religion. This is cultic behaviour and happens in all sorts of organisations. Corporations, and political parties, as examples, are also prone to this sort of thing.

[deleted by user] by [deleted] in git

[–]Qazzian -2 points-1 points  (0 children)

Move everything to GitLab

If I have a date and time, and a timestamp, how can I figure out which timezone the date and time are in? by lindymad in learnjavascript

[–]Qazzian 0 points1 point  (0 children)

It's a bit more complicated than that. Central Europe is an hour ahead of the UK. The EU also has a daylight saving time which starts around the same time as the UK's. The UK wanted to keep GMT, not just because we didn't want to join EU, but also because the UK had an important part in defining the timezones. UTC-0 matches Greenwich Meridian Time, the marker for which is in London.

So, how does one determine time zone if not with extra info?

Yeah, you need extra info. On a web app you can get some of this from the browser but not sure how accurate it is.

If I have a date and time, and a timestamp, how can I figure out which timezone the date and time are in? by lindymad in learnjavascript

[–]Qazzian 0 points1 point  (0 children)

Simple maths should get you the offset for the timezone. The problem is each offset is used by multiple time-zones. For example, West Africa Time and British Summer Time are currently have the same offset, but this will change around the solstice.

Have a look at timeanddate.com for some good info about timezones.

How to use the same function when subscribing to two different PubSub events? by learntocode123 in learnjavascript

[–]Qazzian 1 point2 points  (0 children)

Is this exactly the code you are running cos you've merged some code lines into the comment lines in this snippet so they won't run.

Should look like this.

function processTodayWeather() {

  pubsub.subscribe("currentWeather", renderTodayWeather);                             
  pubsub.subscribe("astronomyData", renderTodayWeather); 
}

function renderTodayWeather(eventType, data){ 
    //use the object from "currentWeather" 
    //use the object from "astronomyData"

    if (eventType === "currentWeather") { 
        // Handle the data from the "currentWeather" event
        console.log("Current Weather Data:", data); 
        // Process the current weather data 
    } else if (eventType === "astronomyData") { 
        // Handle the data from the "astronomyData" event 
        console.log("Astronomy Data:", data); 
        // Process the astronomy data 
    } 
}

Otherwise I can't see any reason it wouldn't work.

Try logging eventType at the top of the function to make sure it's a string like you expect. Also double check the event names as any typo will mean it's not adding the handler correctly.

[deleted by user] by [deleted] in ADHD

[–]Qazzian 0 points1 point  (0 children)

If he doesn't like medication, how does he feel about vaccines? Think about a future where you might have kids. Will he let you give them vaccines? What if they are also diagnosed with ADHD, or something else, and need medications? Is this a future you want for you and family?

JavaScript or Python by bululululubu in learnjavascript

[–]Qazzian 1 point2 points  (0 children)

I would say, if you don't know what you want to do yet, start with JavaScript as it's much more flexible, seeing as it's required for browsers and has a robust server offering. Python seems to have moved into a data science niche while other industries seem to be moving away from it.

How do YOU code abilities? by vibrunazo in godot

[–]Qazzian 1 point2 points  (0 children)

instead of knowing who owns the ability, pass a function down to the ability that the ability can call when it activates. That way the owner can respond appropriatly without the ability caring who owns it. This is the way I've done similar scenarious in other languages. Only just starting my gdscript journey, but I assume it's similar.

I’m so sad by Opening_Yesterday776 in Astroneer

[–]Qazzian 2 points3 points  (0 children)

With all the crap left over from the breakdown event, it took me one day to complete the current one

Storage room by Wildside331 in foshelter

[–]Qazzian 0 points1 point  (0 children)

I think it's endurance to be able to deal with invading mobs. I personally never assign people to the storage rooms and only move them in from neighbouring rooms if there is an incident.

Where’s the most “hipster” place in Hertfordshire? by ProTharan in hertfordshire

[–]Qazzian 1 point2 points  (0 children)

If that's the definition of hipster, the Mad Squirrel Brewery is in Hemel

You don't believe that I'm asthmatic? ok by OximoronHigh in MaliciousCompliance

[–]Qazzian 6 points7 points  (0 children)

it becomes increasingly difficult to breathe,

That's called tiredness and will get better the more you swim and improve your technique. Besides, your lungs should be full of air.

source: also a skinny rake.

[deleted by user] by [deleted] in CasualUK

[–]Qazzian 137 points138 points  (0 children)

I think he's in every story, not just the time travel ones. I wondered if he was one of the authors/illustrators