All Posts Create a Post  
1
votes
271
views
How to make a notification when terminal process is complete
Posted at 6 months, 1 week ago / Oct. 11, 2020, 8:04 a.m.

I have started a long process through a terminal. Is it possible to make the Ubuntu terminal make a sound once the process is complete? This way, I don’t need …

105 2 2 0
1
votes
447
views
Django Standard API Response Middleware for DRF
Posted at 6 months, 1 week ago / Oct. 11, 2020, 8:04 a.m.

As you can see, if you using django-rest-framework, you will found many different response format. This middleware to solve all of these problems with implement the Standard API Response. All …

105 2 2 0
0
votes
327
views
IDGenerator
Posted at 6 months, 1 week ago / Oct. 11, 2020, 8:04 a.m.

Generate a unique identifier of a specified fixed length consisting of the characters 0-9 and a-z. For example: zcgst5od 9x2zgn0l qa44sp0z 61vv1nl5 umpprkbt ylg4lmcy dec0lu1t 38mhd8i5 rx00yf0e kc2qdc07 Here is …

105 2 2 0
0
votes
260
views
move multiple files using bash
Posted at 6 months, 1 week ago / Oct. 11, 2020, 8:04 a.m.

# This method if the files has no extentions. $ for file in *; do mv "$file" "$file.png"; done # This method if the files has extentions before. $ for …

105 2 2 0
0
votes
297
views
Deploy Django at Heroku
Posted at 6 months, 1 week ago / Oct. 11, 2020, 8:04 a.m.

1. Install heroku cli https://devcenter.heroku.com/articles/heroku-cli 2. Add Procfile to your project, and add this command below: $ cd yourenv/yourproject/ $ vim Procfile # then, add this command below to the …

105 2 2 0
0
votes
276
views
Markdown syntax to resize or styling the image
Posted at 6 months, 1 week ago / Oct. 11, 2020, 8:04 a.m.

This case was issued by muradaliyev88 in django-markdown-editor repository. as answered by rudolfbyker If you are writing MarkDown for PanDoc, you can do this: ![image-alt](drawing.jpg){height=100px} or ![image-alt](drawing.jpg){style="border: 1px solid;height:100px"} result …

105 2 2 0
0
votes
224
views
Python numberize until undefined or infinity numbers
Posted at 6 months, 1 week ago / Oct. 11, 2020, 8:04 a.m.

Something we need to create the function to convert the number into string number, for example: 1000 to 1.0 k, 1000000 to 1.0 m, etc. def numberize(number): scales = { …

105 2 2 0
0
votes
222
views
Upload to PyPi using twine
Posted at 6 months, 1 week ago / Oct. 11, 2020, 8:04 a.m.

The Python Package Index (PyPI) is a repository of software for the Python programming language. PyPI helps you find and install software developed and shared by the Python community. 1. …

105 2 2 0
0
votes
244
views
difflib similarity
Posted at 6 months, 1 week ago / Oct. 11, 2020, 8:04 a.m.

This module provides classes and functions for comparing sequences. It can be used for example, for comparing files, and can produce difference information in various formats, including HTML and context …

105 2 2 0
0
votes
345
views
changewords - Simply python tool to change or replace the text string in the files
Posted at 6 months, 1 week ago / Oct. 11, 2020, 8:04 a.m.

changewords is Simply python tool to change or replace the text string in the files. This tool pretty nice for programmers if somehow they want to replace/change their codes for …

105 2 2 0
  Page 2 of 11