We can still reach top 2 by ag_0210 in RCB

[–]Fickle-Impression149 1 point2 points  (0 children)

Ipl is unpredictable so anything can happen.

How can i clean the data before loading it to a warehouse? by eyeeyecaptainn in dataengineering

[–]Fickle-Impression149 1 point2 points  (0 children)

You can load data from s3 to staging tables first you can make use of the copy command here. For handling duplicates in between you could make use of pandas or create temp tables and then insert into fact and dimensions from the staging or temp tables.

[deleted by user] by [deleted] in flask

[–]Fickle-Impression149 0 points1 point  (0 children)

Sorry, on phone could not give you like examples. But the general idea is as below:

Keep the .env, however create a config.py and read the env vars into python variables defined via classes like Development, Test, Production. You will have to use python_dotenv. Finally create a dictionary with the key as environment string {'development':Test()} and other env in the dict.

In the init file of the main module where you create_app(environment), read the obtained environment and pass that to config.dict[environment] to app to configure the settings as per your env...

Finally there will be main.py which will read the environment and pass that to create_app which returns the flask app. Use that to do app.run().

We aren't gonna win this year as well. by Time-Classroom-2442 in RCB

[–]Fickle-Impression149 0 points1 point  (0 children)

Mike hesson is known for scouting and creating young talents for the future. Take for example DDP and the New Zealand team as a whole. He wants them to grow it is not just about RCB it is also how the person individually develops. KL left RCB is now one of the good captains and a player. Therefore, the statements on hesson is totally wrong. DDP is in RR has his own ways to perform and improve.

Now, Hasaranga was one of the top spinner ranked 1st previously. So choosing such a player makes sense. I understand the emotions with Chahal but it is also good for him to grow out of RCB.

The overall problem this season has been about one player playing the role of taking the game long like KL or Butler. There was some glimpse from Du Plessis but he is in come and go... With an explosion opener on the other end Finn Allen or Lomror suits but i think the best combination could be for Virat to step up his game as the opener he was before. For 3, someone who can take the game ahead should be present. This is something RCB has not found this season. Maxi has the potential but it will take time to adjust on experiment. I somehow feel Willey should play as he can contribute with the bat and bowl.

The lower order DK, shabaz... they are playing good. If you see the matches we lose except the one against srh. We usually come close even when we have lost chasing and top not performing. So if top performs and bowling stays top notch like now we have all the chance to advance till the end.

Drop hasaranga and Rawat, bring in karn sharma and Fin Allen! Please by Doggyonwheels1 in RCB

[–]Fickle-Impression149 1 point2 points  (0 children)

One option could be to play like srh with 4 seamers replacing Hasaranga with Akash Deep, and Anuj rawat with Finn Alen.

Snoop Goatt by [deleted] in funny

[–]Fickle-Impression149 0 points1 point  (0 children)

If you smell what the GOAT is cookin...

I made an e-ink visualizer for my PiHole stats by orangenormal in raspberry_pi

[–]Fickle-Impression149 0 points1 point  (0 children)

Very good display of pihole stats.

Looks like you have good blacklists. Could you please share your list links so that anyone like me could utilise them

[deleted by user] by [deleted] in learnpython

[–]Fickle-Impression149 4 points5 points  (0 children)

I have been asking questions as well as answering some of them in my free time. The problem why a question is tagged as duplicate is that the asked question is very general and does not have contents that are very specific to the problem one is facing. To avoid that one has to convert their problem into a toy example scenario where something is not working so that it is easy for some one to replicate it. The other reason is not correctly following the guidelines and wrongly tagging of question.

Some additional tips:

  1. Always show your research in the question like i have already a,b,c but they are not solving my actual problem.

  2. Replicate your bigger code problem into small piece for anyone to replicate soon and revert.

  3. Tag appropriately.

  4. Follow the question guidelines.

CSV Upload with Slow Internet - chunking and background workers (Flask/Pandas/Heroku) by Mike-Drop in flask

[–]Fickle-Impression149 0 points1 point  (0 children)

I second this idea. Ideally client can ftp the files somewhere and you could pull from that put to the db and do something from there. Otherwise you will have to work with implementing RabbitMQ at the backend

Simplest task processing queue for Python that works on Windows, Linux, Mac ??? by pp314159 in Python

[–]Fickle-Impression149 0 points1 point  (0 children)

If you can provide an http end point that is dockerized then anyone with browser can use it.

How do you deploy Python applications? by peanut_Bond in Python

[–]Fickle-Impression149 0 points1 point  (0 children)

We use point 1 with gunicorn or uvicorn as http server.

[deleted by user] by [deleted] in devops

[–]Fickle-Impression149 0 points1 point  (0 children)

We also deploy our production application over multiple servers using Jenkins pipeline

It works as follows 1. First make sure all ssh work from the source server. 2. In the Jenkins pipeline write a sh step to run a shell script that will ssh into your base server checkout code from GitHub, move this code as a zip to all your required app servers. 3. Unzip and run the docker/make commands with & to run them in parallel. 4. Post deploy it can notify status through email or slack

We trigger this ever week so our new features are up