Kartones Blog

Be the change you want to see in this world

Word prediction using a trie data structure

Summary: Explores word prediction/autocomplete using a trie data structure. Includes a demo and the source code of the trie implementation.


Python Imports 101

Summary: Explains Python import basics, relative vs. absolute imports, import resolution, and provides examples to clarify common import scenarios.


Two Testing Anti-Patterns

Summary: Discusses the anti-patterns of testing private methods and mocking class under test methods. It emphasizes the importance of focusing on behavior, refactoring when necessary, and testing in line with production conditions.


Markov Model Python Example

Summary: A Python example of a Markov model. How to implemented a Markov chain to generate sentences based on a given text file. Describes the process of building a dictionary of word chains and demonstrate how the model can generate sentences.


Browser Automation via Chromium

Summary: How to set up browser automation using Google browsers, emphasizing Chromium, which has advantages over Chrome, including the ability to access previous builds. Also covers the use of ChromeDriver and automation frameworks like WebDriverIO, as well setting up the Widevine DRM library and command-line switches.


Previous entries