XKlondike
  • Home
  • Category
    • Programming
      • Python
      • Go
      • Other
    • Software
      • Windows
      • Linux
    • Advanced Python Course
  • About Author
  • Login
23 Sep
Card Image
Python

Using types.MappingProxyType to create immutable mappings

types.MappingProxyType is a wrapper object that allows you to create an immutable mapping based on an existing dictionary. It provides …

Read More
by Xor0x
23 Sep
Card Image
Python

How to implement a queue in Python

Queues are a data structure used to store collections of elements in a first-in, first-out (FIFO) order. Just like in …

Read More
by Xor0x
23 Sep
Card Image
Python

What does the takewhile() function from the itertools module do?

The takewhile() function from the itertools module creates an iterator that returns elements from an iterable as long as the …

Read More
by Xor0x
23 Sep
Card Image
Python

Starmap()

`starmap()` accepts another function and an iterable object as arguments, where the elements of the iterable are tuples. The passed …

Read More
by Xor0x
20 Sep
Card Image
Python

Peewee is a lightweight ORM (Object-Relational Mapping) for Python

Peewee is a compact and easy-to-use ORM library for working with databases. It supports SQLite, MySQL, and PostgreSQL, providing a …

Read More
by Xor0x
20 Sep
Card Image
Python

DABL

DABL (Data Analytics in Business Language) is a Python library that simplifies the use of machine learning for data analysis. …

Read More
by Xor0x
20 Sep
Card Image
Advanced Python Course

Lecture 3: Working with files, processing and implementation of exceptions

Files The built-in method is used to open files. The path to the file is passed to this method as …

Read More
by Xor0x
13 Sep
Card Image
Python

Using defaultdict to simplify working with dictionaries

When working with dictionaries where you need to initialize default values for new keys, defaultdict from the collections module greatly …

Read More
by Xor0x
13 Sep
Card Image
Python

Why use namedtuple instead of a regular dictionary?

The main advantage of namedtuple is that it takes up less space (memory) than an equivalent dictionary. Therefore, for large …

Read More
by Xor0x
13 Sep
Card Image
Python

Sorting a list of dictionaries

There are tasks where it is necessary to sort a list of dictionaries in order to obtain a list sorted …

Read More
by Xor0x
13 Sep
Card Image
Other

Automatic shutdown of a computer when the battery is low

The script checks the battery level and automatically shuts down the computer if the charge is below the specified threshold. …

Read More
by Xor0x
09 Sep
Card Image
Python

Compress function

The compress function from itertools is used to filter elements from the input sequence based on the corresponding elements in …

Read More
by Xor0x
06 Sep
Card Image
Python

Green threads

Green threads are execution threads that are managed by a virtual machine (VM) instead of the operating system.  Green threads …

Read More
by Xor0x
06 Sep
Card Image
Python

Shallow Copying

Object copying can be performed as either "shallow" copying or "deep" copying. The difference between them lies in how nested …

Read More
by Xor0x
05 Sep
Card Image
Advanced Python Course

Lecture 2: OOP: everything about inheritance, magic methods + metaclasses

Hello everyone! Let's talk about Object-Oriented Programming (OOP), but we're not going to delve into theoretical concepts, as some familiar …

Read More
by Xor0x
28 Aug
Card Image
Python

NetworkX

NetworkX is a Python library for analyzing complex networks. It provides data structures for working with graphs (networks) and implements …

Read More
by Xor0x
26 Aug
Card Image
Python

Asynchronous code

Asynchronous code is an approach to writing code that allows multiple tasks to be executed simultaneously within a single process. …

Read More
by Xor0x
26 Aug
Card Image
Python

Why shouldn't you use an empty list as a default argument?

Default values for function arguments are evaluated only once when the function is defined, not each time it's called. Therefore, …

Read More
by Xor0x
25 Aug
Card Image
Windows

Reg Organizer – Complete Removal of Programs

Reg Organizer is a pretty cool program that allows you to do two useful things at once. First, it can …

Read More
by Xor0x
25 Aug
Card Image
Python

Removing the background from an image

rembg is a useful library that easily removes the background from any photograph. Installation: pip install rembg

Read More
by Xor0x
25 Aug
Card Image
Python

Dynamic module loading

Dynamic module loading in Python is the process of importing a module at runtime, as opposed to static imports that …

Read More
by Xor0x
  • 1
  • 2
  • 3

Built with Django, PostgreSQL, Redis, and Cloudinary

XKlondike - © Copyright 2025. All Rights Reserved.