Questions & Answers
17
votes
1
answers
245
views
How to use screen or tmux for persistent sessions
My SSH session disconnects and kills my running processes. How can I keep them running?
50
votes
1
answers
135
views
How to check system uptime and reboot history
How can I see how long my server has been running and when it was last rebooted?
50
votes
1
answers
439
views
How to install software from source on Linux
I need to install a program that is not available in the package manager. How do I compile from source?
11
votes
1
answers
1358
views
How to backup and restore PostgreSQL database
What is the command to backup and restore a PostgreSQL database?
2
votes
1
answers
1536
views
How to create PostgreSQL database and user
I need to set up a new PostgreSQL database for my Django project.
45
votes
1
answers
1479
views
How to configure Celery with Django
I need to run background tasks in Django. How do I set up Celery?
31
votes
1
answers
1629
views
How to use Django signals
How can I run code automatically when a model is saved or deleted?
43
votes
1
answers
82
views
How to create Django forms
What is the difference between Form and ModelForm in Django?
27
votes
1
answers
1588
views
How to create Django model relationships
How do I create ForeignKey, OneToOne, and ManyToMany relationships?
13
votes
1
answers
1836
views
How to create a class in Python
What is the proper way to define a class with methods and properties?
11
votes
1
answers
712
views
How to read CSV files in Python
What is the best way to read and process CSV files?
28
votes
1
answers
1404
views
How to format strings in Python
What are the different ways to format strings in Python?
3
votes
1
answers
478
views
How to remove duplicates from a list in Python
I have a list with duplicate values. How do I remove them?
33
votes
1
answers
496
views
How to check if file exists in Python
I need to check if a file or directory exists before processing it.
7
votes
1
answers
533
views
How to merge two dictionaries in Python
What is the cleanest way to combine two dictionaries?
30
votes
1
answers
1166
views
How to sort a list of dictionaries in Python
I have a list of dictionaries and want to sort by a specific key.
36
votes
1
answers
1676
views
How to iterate over dictionary in Python
What is the best way to loop through a dictionary keys and values?
50
votes
1
answers
1338
views
How to redirect output to file in bash
How do I save command output to a file? Also how to redirect errors?
39
votes
1
answers
378
views
How to check and free up RAM on Linux
My server is running slow. How do I check memory usage and free up RAM?
15
votes
1
answers
1835
views
How to mount and unmount drives on Linux
I connected a new drive. How do I mount it and access the files?