driving_crooner

joined 1 year ago
MODERATOR OF
[–] driving_crooner@lemmy.eco.br 32 points 4 hours ago

They're defunding the library to pay for that tank

[–] driving_crooner@lemmy.eco.br 6 points 4 hours ago* (last edited 3 hours ago)

The company I work for recently rolled up copilot and is have been a mixed bag of reactions, the less savvy user were first blowed up by the demonstration but then got exasperated when it didn't worked as they tough (one of them uploaded an excel file and asked to some analysis it couldn't do, and came to me to complain about it), but for me, and my team had worked great. I've been uploading some of my python and SQL scripts and asking for refactoring and adding comments, or uploading my SQL script and some example I found on stackoverflow and asking for it to apply the example method on my script.

I say to everyone that if they don't know shit, the AI isn't not going to help a lot, but if you have at least the basic, the AI would help you.

[–] driving_crooner@lemmy.eco.br 4 points 7 hours ago

In the same way that a developer should program things that are user proof, language developers should program languages that are dev proof.

[–] driving_crooner@lemmy.eco.br 4 points 8 hours ago

Nor exclusive of the US, Brazil is loosing billions of dollars each year to that.

[–] driving_crooner@lemmy.eco.br 6 points 8 hours ago

Of all the bad shit Temer (who came to power after Dilma's coup) did in Brazil, legalizing sports betting without any kind of regulation is probably the worst.

Any economic gain Brazil had after COVID have been funneled out to those sites. Can only hope Lula do something about it soon.

Hitting chuds on the head with a copy of The Capital until they get class consciousness or a concussion.

There's this shit that younger people in São Paulo do in techno parties that is that they start screaming "hue hue hue hue..." and interrupt the music the DJ is playing and is fucking annoying, but I can't really complain, I love to clap with the folding hand fan, I know some people don't like it but I found that in general it gave good reactions (have never talked about it with DJs to know what they think about it).

The real tickled down economic.

Love Soma, defcon radio used to be my favorite. Going to check out where are they now

The canary bird of activism.

 
 
 
 

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.

 
 
20
submitted 5 months ago* (last edited 5 months ago) by driving_crooner@lemmy.eco.br to c/thelyricsgame@lemmy.ca
 
12
submitted 5 months ago* (last edited 5 months ago) by driving_crooner@lemmy.eco.br to c/thelyricsgame@lemmy.ca
 
 

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.

 
 

E[S] = μE[N]

😳

view more: next ›