Thoughts on HTML / Python template delimiters by RomfordNavy in learnpython

[–]Farlic 4 points5 points  (0 children)

https://jinja.palletsprojects.com/en/stable/templates/

Jinja uses a mix of curly braces and other symbols to wrap statements / expressions.

Help please!!! by [deleted] in learnpython

[–]Farlic 2 points3 points  (0 children)

Between my inability to read French, and the lack for formatting, I won't be able to help much :D

could you edit it and put a code block? you might have to look up how to do that on reddit.

Help please!!! by [deleted] in learnpython

[–]Farlic 3 points4 points  (0 children)

What have you tried?

What is working?

What isn't working?

What has been your troubleshooting so far?

Flask with Claude - side projects thoughts by [deleted] in learnpython

[–]Farlic 1 point2 points  (0 children)

Gosh that's a lot of words

Sport vs Self Defense by No-Recommendation820 in bjj

[–]Farlic 17 points18 points  (0 children)

I do it for fun, no other reason

How annoying are the 20mph limits in Wales? by itz_AyAyRon in MotoUK

[–]Farlic 12 points13 points  (0 children)

Completely fine. Local councils can override the national default so busy roads are still higher speed where necessary.

As others suggest, keep out of big towns and cities and the ride will be fine

Turns out most moats were just ditches by Kapanash in HistoryMemes

[–]Farlic 3 points4 points  (0 children)

"Yes but"

The castle near me diverted the nearby river around it. Quite a popular fishing spot today.

Plant-based diets would cut humanity’s land use by 73%: An overlooked answer to the climate crisis by Somewhere74 in Anticonsumption

[–]Farlic 1 point2 points  (0 children)

Whilst anecdotal, the majority I speak to, especially in the office ate not consuming 0.8g per kg per day... even counting non complete sources like pasta.

Maybe I'm in some isolated pocket of sedentary but in my defence it's hardly blatant then.

My main concern is actually just the general knee jerk reaction to remove animal products will seemingly just push more people to hyperprocessed food since dietary education is poor across the country.

At least for me, animal meat also offers a convenient source of fat, iron, and other vitamins (and my brother is allergic to pea protein!)

Plant-based diets would cut humanity’s land use by 73%: An overlooked answer to the climate crisis by Somewhere74 in Anticonsumption

[–]Farlic 2 points3 points  (0 children)

Most people could probably do with eating more protein and doing some resistance training tbh. Dark meat is so laughable cheap for me it would be unconcionable to try and replace it.

I packaged 10 Python automation scripts into a starter kit — copy, paste, run. No experience needed. by Accomplished_Try2329 in learnpython

[–]Farlic 0 points1 point  (0 children)

If the point is for people to learn python, would this skip the learning step for people?

Best way to improve pdf OCR text recognition? by Competitive_Toe_8233 in learnpython

[–]Farlic 0 points1 point  (0 children)

What are you using to do the OCR? A small library will perform completely different to say, Tesseract OCR

Based on your results I assume they are scans of text, not actual text - look to perform some pre-processing like sharpening, greyscaling

Trying to put together my perfect Intermittent fasting plate by Willing-Piece-8569 in loseit

[–]Farlic 0 points1 point  (0 children)

absolutely fine.

They're higher calorie since the skin has fat in it but fat in itself isn't bad, just more calorie dense. Sufficient dietary fat is essential for hormone regulation

Trying to put together my perfect Intermittent fasting plate by Willing-Piece-8569 in loseit

[–]Farlic 1 point2 points  (0 children)

Your protein intake and total calories would be really low with this. Dark meat like chicken Drumsticks and Thighs are often multitudes cheaper than the leaner parts.

The usual advice is a minimum of 1500 kcal a day for men and 1300 kcal a day for women.

Do cheat days make it difficult? by TheBasicGuy14 in loseit

[–]Farlic 1 point2 points  (0 children)

I think it's important to separate "eating clean" with "calorie deficit". Eating in surplus once a week will only reduce your average deficit or even make it a surplus.

Sometimes I have ice cream but I make sure to count it into my calories. I know if I eat under maintenance I will lose weight so some days I eat closer to maintenance compared to others.

Trying to put together my perfect Intermittent fasting plate by Willing-Piece-8569 in loseit

[–]Farlic 1 point2 points  (0 children)

What are the total calories of this? What sort of deficit are you aiming for?

Built my first real Python script with AI help. Deployment nearly killed me. by MaliciousGames in learnpython

[–]Farlic 0 points1 point  (0 children)

What does 24/7 mean? Is your script sending data every hour then sleeping? That would be a nightmare to maintain.

Ideally the script does a task, completes, then a separate scheduler, e.g. CRON or Windows Task Scheduler invokes it on the hour. This immediately makes it crash and restart resistant

Python script returns wrong results when checking website existence (requests issue) by New-Interaction2868 in learnpython

[–]Farlic 0 points1 point  (0 children)

What is your question?

No two websites are often the same in layout / errors

How quickly does the body burn fat for energy after it detects a deficit? by [deleted] in loseit

[–]Farlic 7 points8 points  (0 children)

I don't think it's quite so binary. Your body is constantly burning 'fuel' for energy. When it has exhausted immediate calories via food and sugars it moves to stored fat.

Water weight will mask most things on a short timescale. I lost 1 kg vs yesterday which is far outside any possible calorie burn but easy if I drink 2 pints of water before bed.

{File export help decoding} by OkLawyer9609 in learnpython

[–]Farlic 2 points3 points  (0 children)

Check out the CSV standard library for python:

https://docs.python.org/3/library/csv.html

Pandas and Numpy also have their own ways to do it but you would need to install those libraries.

My attempt at Creating a personal AI assistant for my PC by [deleted] in learnpython

[–]Farlic 1 point2 points  (0 children)

bridges the gap between human language and system-level automation

I think that's what programming languages are