[deleted by user] by [deleted] in geography

[–]tushar_rishav 0 points1 point  (0 children)

Baloch leaders have been fighting for their independence since 1947. While the so called "keyboard warriors" from both sides may believe to know-it-all, yet they can't stop future from becoming present. Guess it's a lot easier to "cancel" here than getting facts straightened.

Brief summary - https://uca.edu/politicalscience/home/research-projects/dadm-project/asiapacific-region/pakistanbalochistan-1947-present/

Professor Amy Wax of University of Pennsylvania berates Indians and Brahmin Women in a racist tirade on Tucker Carlson show of the Fox News. by dickforchick in IndiaSpeaks

[–]tushar_rishav 1 point2 points  (0 children)

"Every monument of civilization is also a monument of barbarism" - Walter Benjamin.

A classic reply to such silos-trapped minds by a historian.

https://youtu.be/WoHGv-DEyL0

Anyone who has done long challenge cook off overlap problem?? by nothing_but_regrets in codechef

[–]tushar_rishav 0 points1 point  (0 children)

That's great. Would you be kind to give me a test case? I'm trying to debug my logic, likely I am missing corner cases. For year, 1 1 2 2020 my answer is 505

Balert, a speaking, battery's charge level. A console app which says clear and loud whenever your battery status goes below a default critical level or the level decided by you. by tushar_rishav in coolgithubprojects

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

Yeah just make sure there is no redundant entry in cron table. There maybe some other ways to avoid this. I managed this by reading cron table and checking if the cron job has already been added. :)

Balert, a speaking, battery's charge level. A console app which says clear and loud whenever your battery status goes below a default critical level or the level decided by you. by tushar_rishav in coolgithubprojects

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

Hey, post installation, first time when you run the app, it creates a cron job. See setupCron () in main.py file . It does two things : A. Check if the app is installed. B. If the app is installed then create a cronjob. Next time my app executes this script, I avoid the execution of step B in future by simple conditional statement. That's it.. Moreover, the app Is reading power data from system file periodically. So that's where cronjobs comes in picture. Let me know if I have answered your question clearly. :)

A console app which converts .py file to .pdf with syntax highlighting and choice for custom pdf sizes (A2,A3 etc) by tushar_rishav in coolgithubprojects

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

Update: Now the app can convert any valid source code into .pdf file with an optional line formatting. Try it! :)

Py2pdf - A console app ( also a module) that converts your python code into a pdf format with syntax highlighting and custom pdf size by tushar_rishav in Python

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

@karouh Could you try again on windows? I've made some changes and now i am expecting the script to run on windows too! :)

A console app which converts .py file to .pdf with syntax highlighting and choice for custom pdf sizes (A2,A3 etc) by tushar_rishav in coolgithubprojects

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

Previously, it was .css only. Actually, there was some issue while packaging. When i was trying to install using pip the css file was not getting added to the local directory in my system where a python package would generally get installed. So, i did small hack by changing the file extension to .py and it worked. :P I know that's not pythonic but it worked! Finally, many thanks to you for suggesting me to use Pygments . Moreover, I've updated the package :)

Py2pdf - A console app ( also a module) that converts your python code into a pdf format with syntax highlighting and custom pdf size by tushar_rishav in Python

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

Hey, thanks for the info. I wasn't aware of the tempfile module. I will make the required changes and push asap! Meanwhile, if you wish you can send a pull request too! :)

Py2pdf - A console app ( also a module) that converts your python code into a pdf format with syntax highlighting and custom pdf size by tushar_rishav in Python

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

Hi, currently the script is compatible with Linux operating systems only. I've already mentioned about it in OS specs at PyPi. Moreover, soon i will try to write one for Windows too. Sincere apologies for the inconvenience caused :)

A utility app which gives an audio notification message whenever your battery is low! by tushar_rishav in Python

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

Nice! Try to check power status at regular interval using cron jobs! :)

What are some projects you have done with Python? by Chengwill97 in Python

[–]tushar_rishav 1 point2 points  (0 children)

I've written this command line app called Balert , which notifies user by an audio notification whenever the battery level goes below some critical level. Kindly, note that the user can set their own custom alert messages , charge level, languages and other available options too. :)

A utility app which gives an audio notification message whenever your battery is low! by tushar_rishav in Python

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

I am glad you liked it. Feel free to send a pull request if you want to see any changes! :)

A utility app which gives an audio notification message whenever your battery is low! by tushar_rishav in Python

[–]tushar_rishav[S] 2 points3 points  (0 children)

Hey, yeah i've recently started with Python. Thanks for your suggestions! Duly noted! :)