driving_crooner

joined 1 year ago
MODERATOR OF
[–] [email protected] 3 points 16 hours ago (1 children)

Idk if anywhere else is like this, but in Colombia meat is so shit that people have hammers to hit the meat to soft it.

[–] [email protected] 4 points 16 hours ago

Knives are sharp, but they aren't going to pierce a shoe, or a croc (without the holes), for falling down a meter. Also, they have to constantly move around they would get tired af with heavy shoes with metal plates on it.

[–] [email protected] 8 points 18 hours ago (5 children)

Nah, lmao, they don't use hammers or shit like that.

[–] [email protected] 15 points 20 hours ago* (last edited 19 hours ago) (8 children)

Medical personnel love crocs, but not sure if they use those ones with holes on it. My wife is a chef and she loves them too.

[–] [email protected] 1 points 1 day ago

Don't remember what language uses === to check if two objects have the same memory id assigned. Like a = 1, b= 1 would give true to a == b but false to a === b; while a = 1, b = a, would give true to both.

[–] [email protected] 38 points 1 day ago (2 children)

Tomato keep being casted as fruit, even that for any practical purpose it should be as vegetable

[–] [email protected] 22 points 1 day ago

Extremely cute:

[–] [email protected] 4 points 1 day ago

Good nerd idea: check the variance of weight, if is bigger than 1.5x, that mean the kid took more that one and activate the eyes lights and scream to the kid.

[–] [email protected] 0 points 1 day ago

Can confirm, had a shitty childhood but drugs work really good.

[–] [email protected] 4 points 1 day ago* (last edited 1 day ago) (1 children)

It's also a common destination for upper middle class families on latinamerica, because you can pay in doing an MBA and getting a job.

[–] [email protected] 9 points 1 day ago (1 children)

Argentina have a lot of immigration from Perú, Bolivia and Paraguay, but the important part, I think, is that Milei campaign were pretty much "illegal immigrants are destroying our country" and proposing a lot of shit that already exists, like background checks to get work and studying permits.

[–] [email protected] 49 points 1 day ago (1 children)

Classic "bait and switch" tactic. Guess OP isn't an used car's seller.

 

Estou com bondade de um PC novo, mas gostaria de uma thinkpad pra instalar um Arch nele.

Obrigado pelas dicas.

 
 
 
 
 
 

Hi, I want to know what is the best way to keep the databases I use in different projects? I use a lot of CSVs that I need to prepare every time I'm working with them (I just copy paste the code from other projects) but would like to make some module that I can import and it have all the processes of the databases for example for this database I usually do columns = [(configuration of, my columns)], names = [names], dates = [list of columns dates], dtypes ={column: type},

then database_1 = pd.read_fwf(**kwargs), database_2 = pd.read_fwf(**kwargs), database_3 = pd.read_fwf(**kwargs)...

Then database = pd.concat([database_1...])

But I would like to have a module that I could import and have all my databases and configuration of ETL in it so I could just do something like 'database = my_module.dabase' to import the database, without all that process everytime.

Thanks for any help.

797
submitted 4 months ago* (last edited 4 months ago) by [email protected] to c/[email protected]
 
 

Hi, I'm currently using this to log my python process

logging.basicConfig(filename='filename.log', level=logging.DEBUG)

logger = logging.getLogger()

sys.stderr.write = logger.error

sys.stdout.write = logger.info

And then using print(f'{datetime.now()} log message') where I want to log.

It's working OK, buy I would like to live it to ic, but can't find any info on how to send the ic output to the logger.

Thanks for any help.

 
53
submitted 9 months ago* (last edited 9 months ago) by [email protected] to c/[email protected]
 

E[S] = μE[N]

😳

view more: next ›