I love many things and coding is one of them!
Guide to Python's strip() Method
String manipulation in Python is achieved through a set of built-in methods, which return new strings since they're immutable. In this guide, we will look at methods to strip whitespace (in other languages it's also known as trimming) from strings in Python. Trim Methods - strip() In Python, the stripping...
Redis Queues & Redis Queue Dashboards for Python API Development
The in-memory data store - Redis is extensively used by developers as a database, cache layer, to manage job queues, and more. It comes in handy when you are building APIs with a job queue mechanism to handle tasks like running memory-intensive jobs in the background, counting page visits, or...
In this article, we will take a look at how to check if an element is hidden with JQuery. Here are the most common ways to check the visibility of an element: console.log($(myElement).is(":hidden")) console.log($(myElement).is(":visible")) console.log($(myElement).css(...
Guide to Elasticdump - Moving and Saving Elasticsearch Indices
Elasticsearch initially began as a custom search engine. These days, it has gone above and beyond that singular role as it's part of log aggregation stacks, security monitoring, and even as a datastore for performing exploratory analysis. Indices in Elasticsearch is where the data is stored, and there are often...
Checking Vulnerabilities in Your Python Code with Bandit
As developers, we're encouraged from the start of the journey to write clean code. Equally as important, but less talked about is writing and using secure code. In Python projects, we typically install modules and third-party packages to avoid developing solutions that already exist. However, this common practice is why...
How to Install Pip on Windows
Package managers are tools commonly created for programming languages that make the setup and management of third-party packages easier. Pip is the preferred package manager in Python for both the native Pip modules and the ones installed inside the virtual environments. When Pip is invoked, it automatically crawls against the...
JFugue Beginners Guide Part III: Rhythms, Reading and Writing to MIDI
In this tutorial, we will learn how to create rhythms using the Rhythm class, how to use JFugue's built-in RhythmKit to conveniently create rhythm, and how to apply different rhythm instruments to our song. We will also cover how to save our music to a MIDI file using the JFugue,...
JFugue Beginners Guide Part II: Chords and Chord Progressions
In this guide, we will learn how to create and manipulate chords and chord progressions, how to use setKey(), distribute() and allChordsAs()methods of the ChordProgression class, and how to play different patterns simultaneously by using voices in JFugue. This is the second part of the three-part tutorial series, in...
JFugue Beginners Guide Part I: Notes, Durations, Patterns
JFugue is an open-source Music library that allows you to play and compose MIDI music using the Java programming language. It uses their "Staccato" format to parse strings of musical instructions. By using JFugue, you can convert the Staccato strings into a MIDI file, as well as import...