Blogs – Programming

Blogs - Programming

RSS Stack Abuse

  • Pagination in Vanilla JavaScript 2023-01-03
    In this comprehensive tutorial, we'll take a look at how to split the content up into individual pages in Vanilla JavaScript. We'll learn how to create pagination and how to navigate through the individual pages without the use of any external libraries.
    Guest Contributor
  • Bash: Check if Directory or File Exists 2023-01-02
    In this tutorial, learn how to check whether a file or directory exists in Bash, with practical examples, best practices and comparisons of methods.
    Dimitrije Stamenic
  • Bash: Difference Between [ and [[ Operators 2022-12-26
    In this in-depth guide - learn about the difference between the [ and [[ operators in Bash, and how to use the nuanced differences to your advantage.
    Dimitrije Stamenic
  • Guide to Parameter Expansion in Bash 2022-12-23
    In this in-depth guide, learn everything you need to know about parameter expansion in Bash, with practical code samples, best practices and lots of examples.
    Dimitrije Stamenic
  • Executing Shell Commands with Python 2022-12-22
    Instead of shell scripts, which can get complex and tedious, we can use Python to automate shell commands. In this tutorial, we'll learn how to run them for the sake of scalability and maintainability of Python projects.
    Sajjad Heydari
  • Converting Strings to datetime in Python 2022-12-21
    In this tutorial, we'll be converting Strings to datetime in Python, dealing with Timezones. We'll also use dateutil, Maya and Arrow to convert Strings to datetime with automatic format recognition.
    N Kaushik
  • Git: Merge Branch into Master 2022-12-20
    Quick Answer - Merge Branch into Master If you're looking for a quick answer, to merge a branch into the master branch - you checkout master and merge some_branch: $ git checkout new-branch # ...develop some code... $ git add . $ git commit –m "Some commit message" $ git checkout master Switched to branch
    Jacob Stopak
  • Read a File Line-by-Line in Python 2022-12-19
    In this tutorial, we'll be reading a file line by line in Python with the readline() and readlines() functions as well as a for loop - through hands-on examples.
    Adam McQuistan
  • How to Format Dates in Python 2022-12-16
    Introduction Python comes with a variety of useful objects that can be used out of the box. Date objects are examples of such objects. Date types are difficult to manipulate from scratch, due to the complexity of dates and times. However, Python date objects make it extremely easy to convert
    Nicholas Samuel
  • Extract Filename and Extension in Bash 2022-12-15
    In this short tutorial, learn how to extract the filename and extension using Bash.
    Dimitrije Stamenic
  • Comparing Strings using Python 2022-12-14
    In Python, strings are sequences of characters, which are effectively stored in memory as an object. Each object can be identified using the id() method, as you can see below. Python tries to re-use objects in memory that have the same value, which also makes comparing objects very fast in
    Frank Hofmann
  • Command Line Arguments in Python 2022-12-12
    In this tutorial, we're diving into Command Line Arguments in Python. Using the sys module, getopt module and argparse module, we'll parse and read arguments.
    Frank Hofmann
  • Python: Check if String Contains Substring 2022-12-09
    Checking whether a string contains a substring aids to generalize conditionals and create more flexible code. Additionally, depending on your domain model - checking if a string contains a substring may also allow you to infer fields of an object, if a string encodes a field in itself. In this
    Jacob Stopak
  • MySQL Check if Column is Null 2022-12-08
    In this short article - learn how to check whether a column's value is `NULL` in MySQL.
    Dimitrije Stamenic
  • Print Newline in Bash 2022-12-07
    In this article, learn how to print a newline in Bash, using echo and printf.
    Dimitrije Stamenic