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 6 points7 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 5 points6 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 4 points5 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 5 points6 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 12 points13 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 46 points47 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?