Blog
Page 551 of my articles, tutorials, and thoughts
Latest Articles
How to understand nil vs. empty vs. blank in Ruby
# Understanding `nil` vs. `empty` vs. `blank` in Ruby š¤ Are you feeling confused about the differences between `nil`, `empty`, and `blank` in Ruby? Don't worry, you're not alone! It's a common source of confusion for many developers. In this blog post, w
How to find patterns across multiple lines using grep?
# How to find patterns across multiple lines using grep? šš” Welcome to another tech blog post! Today we are going to tackle the question of finding patterns across multiple lines using `grep`. š¤ Have you ever had a situation where you needed to searc
Regex not operator
## Regex NOT Operator: Deleting Unwanted Patterns While Retaining Specific Ones Have you ever found yourself struggling to delete specific patterns in a string using regular expressions (regex), but not quite getting the desired results? š¤ Well, you're n
How to check for valid email address?
# š§ How to Check for a Valid Email Address Are you tired of receiving emails from "noreply@dontbother.com" or dealing with invalid email addresses? Look no further! In this blog post, we will explore common issues and provide easy solutions for checking
Is there a version of JavaScript"s String.indexOf() that allows for regular expressions?
š Finding a Regular Expression-Friendly String.indexOf() Have you ever wondered if there's a way to use regular expressions with JavaScript's String.indexOf() function? š¤ It's a common question, and fortunately, there are solutions available. In this bl
How do I negate a test with regular expressions in a bash script?
ššš»šāļøš£ššā ššš Title: Mastering Regular Expressions in Bash: How to Negate a Test Introduction: Have you ever found yourself struggling to negate a test with regular expressions in a bash script? š¤ Fear no more, as we'll dive into this topic an
Regular expression to limit number of characters to 10
š**Tech Blog Post: Limiting Number of Characters in Regular Expression to 10** šš¢ Are you struggling to create a regular expression that limits the number of characters to 10 while only allowing lowercase letters? Don't worry, you're not alone! š š*
How to use "-prune" option of "find" in sh?
# How to Use the '-prune' Option of 'find' in sh? Are you struggling with understanding how to use the '-prune' option in 'find' command in sh? Don't worry, you're not alone! Many people find the example provided in the 'man find' documentation confusing
Rails: Default sort order for a rails model?
# š Rails: Default Sort Order for a Rails Model? Are you tired of manually specifying the sort order every time you query a Rails model? Wouldn't it be great if you could set a default sort order that is applied automatically, but still have the flexibil
Android: Go back to previous activity
# Android: Going Back to Previous Activity šš” Are you feeling lost in your Android app and want to go back to a previous activity? Don't worry, we've got you covered! In this blog post, we will address common issues related to navigating back to a previ