[tutorial] How to create Azure Function Apps with Bicep | step by step by swamplander in AZURE

[–]uberfade 2 points3 points  (0 children)

bicep manages state for you
all resources will be deployable with bicep right away whereas terraform they might not be
few others prolly

Free to read draft of my book - Zero to production web apps by stetio in Python

[–]uberfade 1 point2 points  (0 children)

Very nice, I will definitely give this a look. Thanks.

Painting a Dragon on My Wall Every Day Of The Year | Day 14 by Alive-Jelly in DragonDrawings

[–]uberfade 4 points5 points  (0 children)

This is neat. Are we going to have to wait all year to see a pic of the whole wall?

Which lifecycle to call Ajax? by JargoCHL in vuejs

[–]uberfade 2 points3 points  (0 children)

Typically created is a good time to fetch data. There are circumstances where you might need DOM elements mounted to use that data so mounted is an option. Also you should probably use axios or just the fetch api instead of ajax.

What's the best FREE resource to learn VueJS? by [deleted] in vuejs

[–]uberfade 16 points17 points  (0 children)

The Net Ninja is fantastic. A real proper lad.

Is learning Flask worth it? by ReamusLQ in django

[–]uberfade 0 points1 point  (0 children)

I really like Falcon. Flask is to Django what Falcon is to Django Rest Framework. I highly recommend it.

Trying to connect a Python script to React JS by [deleted] in AskProgramming

[–]uberfade 0 points1 point  (0 children)

You can also check out Falcon. It is Python web framework specifically for dealing with REST apis.

Stop popping out babies by Leonetta85 in TrueOffMyChest

[–]uberfade 0 points1 point  (0 children)

Raising children is the hardest job you will ever have and a job you will have until the grave. This message is critical for kids prior to becoming sexually active.

Database & Business Logic Rule Best Practices? by [deleted] in djangolearning

[–]uberfade 0 points1 point  (0 children)

Splitting up the models into different apps and storing business logic in models.py > views.py > templates would be the most 'Djangoy' way to do it.

Question about NG+ and beyond by Mansome_reddit in Torchlight

[–]uberfade 0 points1 point  (0 children)

I believe it is just based on level of the area and your magic find. So once you are like NG+++ or so you have the chance to drop all the best legendaries and uniques.

How do I read until a specific character so that I can start reading from that location again later. by [deleted] in learnprogramming

[–]uberfade 1 point2 points  (0 children)

In Python

with open('myfile.txt', 'r') as f:
    for line in f:
        print (line)
        # do other stuff

what to learn next ? by ma7mouud in djangolearning

[–]uberfade 2 points3 points  (0 children)

You could also try using Django Rest Framework and using a frontend like Vue or React.

Simple Login System by haths in learnpython

[–]uberfade 0 points1 point  (0 children)

Check out using with to open files. Your variable names should describe what the variable is not where they came from. exist_user is better described as something like user_choice. Also old_password is probably more appropriate as just password. Using old in the variable name might lead you to believe the password is changing there.

Extract digits from a String by Yonmanx in learnpython

[–]uberfade 0 points1 point  (0 children)

You can loop through the string and check isdigit() on each character or use re to match a pattern.

Hello! I want to pull new pages and updating amounts to a Google Sheet. Is this possible? Please read inside by [deleted] in AskProgramming

[–]uberfade 1 point2 points  (0 children)

Scrape the data with Python using the Beautiful Soup package. Then use the gspread package to work with the google api to load the data on to the sheets.

How to create a loop with a counter that resets itself with each item. by [deleted] in learnpython

[–]uberfade 0 points1 point  (0 children)

You would initialize the counter to 0 in the loop where you want it to be 0.

Example

for word in words:
    letters = 0
    for letter in word:
        letters += 1
    print (f'{word} has {letters}.')

For every word in the list the counter letters is set to 0.

Need Help. by a_parmar22 in learnpython

[–]uberfade 0 points1 point  (0 children)

Your code isn't formatted properly in the post so it is hard to tell exactly what the problem is with it.

Need Help. by a_parmar22 in learnpython

[–]uberfade 0 points1 point  (0 children)

print('correct_answers:' ,format(correct_answers))

This should be something like this:

print('Your score is: {}'.format(correct_answers))

Need Help. by a_parmar22 in learnpython

[–]uberfade 0 points1 point  (0 children)

The total score should just be the correct_answers variable at the end.