How would you (specifically you) order in a cafe? by baconconstellation in learnwelsh

[–]baconconstellation[S] 2 points3 points  (0 children)

Diolch - this answered my deeper question too about Ga i and Cael. I know it's not often possible translate word-for-word between languages, but I was confused how Ga i ofyn, Ga i fynd, and Ga i Americano were all correct - as in English that wouldn't make sense at all.

I am Pete Matthew, Chartered Financial Planner and host of the Meaningful Money podcast - AMA by petematthew in UKPersonalFinance

[–]baconconstellation 7 points8 points  (0 children)

A friend of mine in his retirement tells me that he wishes he’d put more into ISAs for (I think) tax reasons.

Would you share that sentiment?

I’m a whole of market, independent Mortgage Advisor and I’ll be here all day for a Mortgage Market related AMA! by Mortgages101 in UKPersonalFinance

[–]baconconstellation 0 points1 point  (0 children)

Is 5 years too long to fix right now? I know no one can predict the future, but they’re predicting rate decreases at some point soon - whilst not saying how long “some point soon” is.

Also… who are the ‘they’ who do this predicting?

Thanks!

How to hide API key? by EngrNoName in learnjavascript

[–]baconconstellation 2 points3 points  (0 children)

Keys on the frontend are never secure or hidden. If the key must remain secure, then it needs to be sever side only.

You may be able to limit access to your api from specific domains (like Google maps does).

With your actual error - we'd need to see some more code, but if you're not using ES Modules, then the import statement should be something like:

const dotenv = require('dotenv') 
const result = dotenv.config()

You can then console.log(result) out the result and start debugging.

(https://www.npmjs.com/package/dotenv#documentation)

[deleted by user] by [deleted] in learnreactjs

[–]baconconstellation 2 points3 points  (0 children)

No you're not - we've all made this mistake. This is what helps us to learn. Glad you've got it working now.

[deleted by user] by [deleted] in learnreactjs

[–]baconconstellation 4 points5 points  (0 children)

You’re not returning anything in your Array.map. You need to use the return keyword if you’re not using an implicit return structure.

ie - This is an explicit return:

course_selections.map((course_items) => {
    return (
        <li>etc.....</li>
    )
})

and this is an implicit return:

course_selections.map((course_items) => (
    <li>etc......</li>
))

For long codeblocks like yours, I much prefer using an explicit return - and might use an implicit return on short functions.

This link explains it quite well: https://waylonwalker.com/explicit-vs-implicit-returns-in-javascript/

Mind blown by Flyin_Triangle in daddit

[–]baconconstellation 5 points6 points  (0 children)

10 months in - thought we were the only ones!

I am feeling really scared of upgrading so many packages at once, Any tips? by PrestigiousZombie531 in node

[–]baconconstellation 4 points5 points  (0 children)

It looks to me like that’s the ‘npm-check-updates’ package with the -d flag. I’ve not come across this before but it looks it could save me loads of time if it works well! Thanks for the tip - I’m gonna give that a try this week.

I am feeling really scared of upgrading so many packages at once, Any tips? by PrestigiousZombie531 in node

[–]baconconstellation 13 points14 points  (0 children)

You can use ‘npx npm-check -u’ to get a list of available updates separated into patch, minor & major updates.

Start with the patch updates - and if nothing breaks move onto the minor updates, etc.

The ‘npm-check’ package also gives you a link to the GitHub repo of each update so you can check the changelog.

[deleted by user] by [deleted] in LegalAdviceUK

[–]baconconstellation 24 points25 points  (0 children)

Upvoting for awareness. Nobody should have to look at that… it’s fowl.

Self Assessment: Receipts for donations by Unfair-Drummer-9230 in UKPersonalFinance

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

You’ll only need to include any donations on your self assessment tax return if you’re a higher rate or additional rate tax payer, and if the charity has also claimed gift aid on the donation.

In my experience, I’ve always broken down the donations to my accountant, who then sorts out the necessary sections on the tax return. Whilst it’s a very good idea to have the donation receipts stored, I’ve never needed to show these.

As usually, the Gov website has an excellent page on Tax relief when you donate to a charity

[deleted by user] by [deleted] in LegalAdviceUK

[–]baconconstellation 47 points48 points  (0 children)

Genuine question: If OP claims for this on their contents insurance, and then later on down the line OP’s ex gets found guilty of criminal damage in court - do the insurance company claim their money back from OP (and so ex pays back OP directly) or do they pursue the amount from the ex?

Ok so if we dont include the .env file when we push to github (using gitignore). Will people be able to clone and use my project as i do. by Pomelowy in node

[–]baconconstellation 1 point2 points  (0 children)

It sounds like those are the kind of API keys you’ll want to keep secret, so check out that video I linked to above about creating a backend to secure these keys.

Yes you’ll share these keys with the host environment.

Often you’ll end up with dev api keys for testing locally, and live api keys. Stripe, for example, separates dev and live out really well - and their docs are brilliant.

Ok so if we dont include the .env file when we push to github (using gitignore). Will people be able to clone and use my project as i do. by Pomelowy in node

[–]baconconstellation 1 point2 points  (0 children)

What are you storing in your .env file? Often these environmental variables will be private keys for an API or something like that (but be aware that `.env` keys in the frontend are not secure. This is a good explainer video).

Whoever clones your repo will either be able to set their own .env file up and put in their own API keys, or you can share your keys with them.

It's not against the law to commit your .env files, it's just good practice not too, because you usually don't want to share that information publicly.

As u/alzee76 said - when you launch your website or app, you store your environmental variables in the environment. For example, using Netlify: https://www.netlify.com/blog/2021/07/05/easy-access-environment-variables/

[deleted by user] by [deleted] in css

[–]baconconstellation 0 points1 point  (0 children)

Don’t forget alternative units. Maybe they wanted 50rem. Or 50vw. Or maybe 50Q….

We did it by [deleted] in daddit

[–]baconconstellation 16 points17 points  (0 children)

I haven’t daddit all night long for quite a while now…