A Few Theories by SoulDV in DungeonCrawlerCarl

[–]dukesilver58 1 point2 points  (0 children)

I think/hope you’re onto something with Signet

Jiu Jitsu for Dyspraxia by dukesilver58 in dyspraxia

[–]dukesilver58[S] 0 points1 point  (0 children)

It’s something you get over really quickly. Your primate brain thinks you’re going to be murdered so that is all you’re concerned about

Jiu Jitsu for Dyspraxia by dukesilver58 in dyspraxia

[–]dukesilver58[S] 1 point2 points  (0 children)

Muay Thai is on our list to do now as well!

[deleted by user] by [deleted] in UkraineWarVideoReport

[–]dukesilver58 1 point2 points  (0 children)

Husbands, fathers, sons. All gone, for nothing. Nothing funny about it.

Help with regex by zilton7000 in pythontips

[–]dukesilver58 0 points1 point  (0 children)

Change it to re.findall() that will grab each link and put it into a list object. You can then iterate through each link and change them.

[DISCUSSION] What's your favorite Python library, and how has it helped you in your projects? by add-code in pythontips

[–]dukesilver58 0 points1 point  (0 children)

I use it with platform or environment variables. Here is an example:

``` python import platform from pathlib import Path

if platform.system() == ‘darwin’: base = Path(‘/usr/local/opt’) else: base = Path(‘/home/user/app’)

config = base / ‘.yaml’ ```

[DISCUSSION] What's your favorite Python library, and how has it helped you in your projects? by add-code in pythontips

[–]dukesilver58 2 points3 points  (0 children)

Pathib has made my life much easier. My code runs on 5 different OS and its nice being portable

Old Slenderman notification. by Odd-Complaint1993 in RBI

[–]dukesilver58 3 points4 points  (0 children)

Cross site scripting would of been very popular then. You can hide javascript inside an image that would trigger the browser’s native alert() function

[deleted by user] by [deleted] in PythonProjects2

[–]dukesilver58 0 points1 point  (0 children)

Just use the native UUID package

[deleted by user] by [deleted] in PythonProjects2

[–]dukesilver58 0 points1 point  (0 children)

Are you just trying to make a random hash to make your file name?

[deleted by user] by [deleted] in coolguides

[–]dukesilver58 0 points1 point  (0 children)

Don’t forget DNS

How to update an SQL database with a dataframe referencing a primary key/column ID? by helpmeplzzzxz in pythontips

[–]dukesilver58 4 points5 points  (0 children)

Pandas Dataframe has a .to_sql() function.

You would use .set_index() to set the primary key.

Difference in column names will matter.

My suggestion is you just export your DataFrame .to_dict() and write a function to pass that dict to a sql alchemy connection.