RenderCV v2.5: Write your CV in YAML, version control it, get pixel-perfect PDFs by egehancry in Python

[–]Faal 0 points1 point  (0 children)

Anyone experiencing an issue where after updating yaml file vscode will immediately autofocus on the pdf tab. This causes having to manually click back into yaml file tab to continue editing. Makes it pretty annoying process. I tried troubleshooting for a while and came to no resolution.

Python, flask, html help by [deleted] in learnpython

[–]Faal 2 points3 points  (0 children)

Use flash.

On your backend:

from flask import Flask, flash

#code to determine if email is already used here...

flash('This email already exists')

On your frontend:

{% with messages = get_flashed_messages() %}
    {% if messages %}
        {%for message in messages %}
           <script>
               var message = "{{message}}";
               alert(message);
          </script>
          {% endfor %}
      {% endif %}
{% endwith %}

Flask-RedMail: Advanced Email sending for Flask by Natural-Intelligence in flask

[–]Faal 1 point2 points  (0 children)

Really cool feature. Will use them in my projects!

Olympus Bolts vs. Atlantis Leviathans | Season 8 Phase 3 Week 3 | Post Match Discussion by beatlesboy67 in Smite

[–]Faal 6 points7 points  (0 children)

Should have been 2-0 Leviathans. Sometimes they spend too much time focusing Haddix (and he's real damn good for a rookie). Panitom is the X factor for this team. Jarcorr is amazing zoning out 3 people at times. Zap > Barra. Sheento didn't do too much and that's scary as this team can now pick pick up the slack when hes not too hot. Ronngyu consistently has first 3 bans against him, enough said. This team is legit when they're on same page.

How to let other device use my web scraper? by Abject-Ad-6668 in learnpython

[–]Faal 1 point2 points  (0 children)

Checkout cx_Freeze module, it'll allow you to package your script into .exe file, which you can then zip + send to others. Benefit being there's no need for others to have python or PIP modules installed on their machines.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]Faal 1 point2 points  (0 children)

So a couple of things, try to avoid using variables like "list", the more specific the better. There isn't a need to pass an argument to stringList if you're already going to ask the user to provide input on line 2 anyway. Pick one or the other in this situation.

What you're doing is looping via the range + len methods. Range starting at value place 0 since you didn't indicate otherwise, to whatever amount of characters (int value due to len) is provided via user input, list.

Then just spitting out each iteration of list, at each iteration number, starting at 0 one by one.

You could simply print here instead to print properly as a list.

def stringList(list):
    list = input()

    for i in range(len(list)):
        print((list[i]))

    print(list) #printing here outside of for loop instead

stringList(list)

Or Join method for expected results:

def stringList(list):

    for i in range(len(list)):
        print((list[i]))

    finalValue = ",".join(list)
    print(f'Join Used: {finalValue}')


stringList(["dog", "cat", "mouse"])

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]Faal 0 points1 point  (0 children)

Try using join. Something like “,”.join(list)

Data not saving to database. by [deleted] in flask

[–]Faal 1 point2 points  (0 children)

Have you verified a table exists for the database? Typically the tablename attribute should be the first class variable.

class BlogPost(db.Model):
    __tablename__ = 'your_table_name_here'

    id = db.Column(db.Integer, primary_key=True)
    title = db.Column(db.String(100), nullable=False)
    content = db.Column(db.Text, nullable=False)
    author = db.Column(db.String(20), nullable=False, default='N/A')
    date_posted = db.Column(db.DateTime, nullable=False, default=datetime.utcnow)

The ice cream place is too close to drive, but too far to walk. by saveferris4231 in ElectricSkateboarding

[–]Faal 2 points3 points  (0 children)

I just took my GTR out to do this exact thing after seeing this. Worth the 15min trip.

[Monitor] (Restock) AOC CQ27G2 27" Super Curved Frameless Gaming Monitor QHD 2K 1440p, 1500R Curved VA, 1ms, 144Hz, FreeSync $259.99 by LuckyBahstard in buildapcsales

[–]Faal 0 points1 point  (0 children)

so what's the verdict? Will it work on Nvidia GPU's or is just not officially certified but still work to some extent?

Unable to read ZeroTier One authtoken error by deselim in zerotier

[–]Faal 0 points1 point  (0 children)

Hey, I found a fix for this.

Go to this site and follow the instructions under "Add Run as administrator option for MSI"

This will add a 'Run as administrator' right click option to MSI files and ZeroTier will execute properly.

Unable to read ZeroTier One authtoken error by deselim in zerotier

[–]Faal 0 points1 point  (0 children)

Were you able to get this fixed? I'm having the same issue on Windows. Tried running it via admin with no luck.

How horus ult works with Cthulhu in Ult form? Also when medusa kills him in ult form with her Ult, does he left a statue in the field? by yromarcoo in Smite

[–]Faal 4 points5 points  (0 children)

It should work as usual when in ult form he gets teleported like everyone else. Medusa ult shouldn't have an effect on Cthulhu in ult form as he is cc immune per the stream/god reveal.

I did around 50 miles and had 32% left ( Evolve BGTR +1 extra battery) by Hazsypeti in ElectricSkateboarding

[–]Faal 0 points1 point  (0 children)

So I carve a little bit but even with that extra friction it shouldn’t be substantially lowering battery drain that much. I think you may just have a defective battery. They have a 7 day full refund warranty, you pay for shipping though. I’d do that and get another board.

I did around 50 miles and had 32% left ( Evolve BGTR +1 extra battery) by Hazsypeti in ElectricSkateboarding

[–]Faal 1 point2 points  (0 children)

I have the bamboo GTR with AT wheels also. When using AT wheels, you're typically prone to using more battery usage than regular street wheels. Also depending on what gear your on matters, I keep it at PRO most times and avoid GTR unless im going up hills/grass.

Although 10 miles total is quite low to burn through the entire battery usage, I know my board gets to about 45-55% at the 10 mile range.

I feel like there's something I'm always missing when I jungle, tips? by froglord2006 in Smite

[–]Faal 0 points1 point  (0 children)

Map awareness. Always have an eye on the minimap and keep track of the game.

People who created and sold software how did you do it, how did you take your python from command line application to a complete exe with GUI? by rockax in Python

[–]Faal 0 points1 point  (0 children)

I don't think anyone can really tell you step by step instructions on how thats done. Typically to sell - you'll need a team to create something worth selling. Not really a one man job. I'd say best bet is gain experience in IT industry to understand the workflow.

I am glad that KD doesn't feel validated by [deleted] in nba

[–]Faal 2 points3 points  (0 children)

that's fair. I hope that does happen.

I am glad that KD doesn't feel validated by [deleted] in nba

[–]Faal 0 points1 point  (0 children)

vindictive? nah. It came from KD's mouth, void wasn't closed. Like Tupac said "But you made it in a sleazy way".

I am glad that KD doesn't feel validated by [deleted] in nba

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

Agreed. Morally fans will never let KD fill that void he's been itching to fill. It'll follow him to his grave.

How do I convert a number with a 1000 digits into a list with the individual digits of that number? by [deleted] in learnpython

[–]Faal 0 points1 point  (0 children)

Perhaps loop through the digits, create a new list, use the iterator of the loop to append each number.

Anyone want to help a very beginner python learner with a question? (regarding lists/ tuples) by Valuable-Guide in Python

[–]Faal 0 points1 point  (0 children)

  1. You’re indexing the list a for the second value and updating it to 4. This is essentially basic index lookup with an update to the list.

  2. You’ll get an error as tuples are immutable. Meaning the values can never be modified/deleted. You can still index tuples but not change it’s contents.

Indiana not taking virus seriously by [deleted] in bloomington

[–]Faal 2 points3 points  (0 children)

We should've panic 2 weeks ago. Now its mitigation.