PinnedJasenko Krejić·Sep 22, 2024Quick guide to customize command line prompt in LinuxIn this article, I am going to talk about changing the default prompt for the Linux command line. I will be using Ubuntu 24.04 on an AWS…
PinnedJasenko Krejić·Aug 5, 2024Simple bash scripts to uninstall dependencies when uninstalling package with pipWhen we use pip to install packages with Python, when we uninstall it with it, dependencies that are installed are not automatically…
Jasenko Krejić·Oct 22How I Passed the PCPP1 ExamI am glad and proud to announce that last week, I passed my PCPP1 exam!
Jasenko Krejić·Sep 24Python Generators: A Practical ExplanationGenerators are not, as you might first think, some kind of electrical device that generates electrical energy. In Python, a generator is a…
Jasenko Krejić·Sep 2The Slash and Other Strange Things in Python Function DefinitionsI am currently preparing for a PCPP1 exam, and among the questions I encountered in preparation exam, was the following:
Jasenko Krejić·Sep 2Using Tkinter Listbox WidgetThe Tkinter Listbox widget is used to display a collection of items from which the user can select one or more entries. It is useful in…
Jasenko Krejić·Aug 31Binding Mouse Actions to Tkinter WidgetsTkinter widgets can react to much more than just commands associated with a Button. By using the bind() method, we can connect functions to…
Jasenko Krejić·Aug 27Subnet Port Scanner in Python Using the socket and ipaddress ModulesWhen you manage or troubleshoot a network, you may need to determine which hosts in a subnet are listening on a particular TCP port. For…
Jasenko Krejić·Aug 25Python sqlite3: From execute() to fetchall()Python makes working with SQLite straightforward through the built-in sqlite3 module. SQLite does not require a separate database server…
Jasenko Krejić·Aug 24Working with Message Boxes in TkinterTkinter has many different widgets, and messagebox provides a collection of ready-made dialog boxes. Remember those small pop-up windows…