Git Status: A Guide to Responses
The git status command can be a helpful tool when you need to know what state your local repository is in with respect to the remote repository. Basic Terms Some basic terms to be familiar with as we go forward: …
Inline CSS: How to Add CSS Inline to a Web Page
Inline CSS applies a CSS style inside an element's HTML tag. The style HTML attribute sets the style of an element. Inline CSS rules override styles from other CSS documents because they apply directly to an element. The HTML programming…
CSS Bold: A Guide to Using Font-Weight
To create a CSS bold text effect, you must use the font-weight property. The font-weight property determines the "weight" of a font, or how bold that font appears. You can use keywords or numeric values to instruct CSS on how…
SQL EXISTS: How to use this SQL Operator
There are many things you can do to define a query in SQL. One thing you can do to a WHERE clause is check to see if a row exists with the matching parameters in the database. We do this…
JavaScript: Refresh Page
Sometimes you need to refresh a webpage using JavaScript. If the need arises, use the location object to use the reload() method. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>repl.it</title> <link href="style.css" rel="stylesheet" type="text/css" /> </head> <body onload="handleLoad()">…
JavaScript Sleep Method Doesn’t Exist: What to Use Instead
If you’re an engineer or developer coming from different programming languages, you might have used a native method called sleep() to stall or pause a method from executing. JavaScript doesn’t have such a native method. In this article, we will…
JavaScript GET Request: Using the Fetch API
Developers often have to retrieve data from their own API or third-party API. This article talks about using your browser’s Fetch API to GET some data from an endpoint. What is the Fetch API? The Fetch API is an interface…
Git Error: untracked files would be overwritten by checkout
While using git to keep track of your changes in your project, many things can happen that cause an error. When you move from one branch to another, you might get this error: error: the following untracked working tree files…
Git Error: Pull is not possible…
When we use git, sometimes we come upon confusing errors. This article aims to take a look at one common error when using version control and provide a possible solution. Look at this error: Pull is not possible because you…
Git refusing to merge unrelated histories
There are several places in the git workflow that can cause errors. In this article, we’ll talk about one such error that is confusing to tackle and find a solution to! The Git Error The fatal: refusing to merge unrelated…
Error: Failed To Push Some Refs To Remote
When working with git, you may encounter various errors, especially when working on the same codebase with a team. The Error Message The error: failed to push some refs to remote git error occurs when new changes are pushed to…
C: How To Setup Your C Compiler
Let’s take a look at how to get started with learning C. C, unlike JavaScript, is a low-level language that needs to be compiled in advance, prior to execution. You need to download a compiler to get started, if you…
C Hello World: Step-By-Step Guide
To get started with your very first program in C, you must first be sure a C compiler is installed on your machine. Our article on C Compilers and How to Set Them Up will help you get started. Hello…
Uncaught Rangeerror: Maximum Call Stack Size Exceeded
It’s happened. You’ve been coding a bit and you receive an error in your console or in your chrome dev tools that says uncaught rangeerror: maximum call stack size exceeded… with a traceback. What does it mean? Reason: Recursive function…
Python Fundamentals: Capitalize First Letter of String
There are many methods to manipulate strings in Python. If you must capitalize the first letter of a string in Python in a code challenge, how will you do it? This article talks about one way you can manipulate strings…
Higher Order Functions in JavaScript: A Guide
As a developer, you have likely used regular JavaScript functions. Called first order functions, they don’t take in a function as a parameter or return a function. function hello(name) { return "Hello," + " " + name } console.log(hello("Career Karma"));…
Let vs Var vs Const: What’s the Difference?
New features have been added to the JavaScript language with the release of ECMAScript6 (ES6). One such feature affects how we declare variables. With the addition of let and const, came all sorts of questions about when to use each…
Using the Bootstrap Framework to Create a Carousel
When we think of a carousel, what usually comes to mind is the amusement park ride you may have ridden as a child – a big platform that rotates with colorful merry-go-round horses that go up and down as the…
Using the Bootstrap Framework to Create an Accordion
When we think of an accordion, what usually comes to mind is the musical instrument – a box shaped contraption that uses a keyboard or manual to push bellows – the “box” portion of the instrument – together and apart.…
Using the Bootstrap Framework to Create a Table
A table, in general, describes a relationship between a row with a set of columns. It’s a great way to organize and illustrate data. Bootstrap is a CSS framework that can help us create content super quickly. In this article,…
SyntaxError: Unexpected Tokens in JSON
When working with JSON (JavaScript Object Notation), sometimes you might encounter an error that mentions Unexpected token < in JSON at position 0 or Unexpected token o in JSON at position 1. These are just examples – you might encounter…
Using the Bootstrap Framework to Create a Navbar
A navbar is a user interface (UI) element that’s positioned at the top of a web page. It contains elements that make the navigational user experience more friendly by placing branding and navigational links that route to different components. In…
Error: Unexpected end of input
Uncaught SyntaxError: Unexpected end of input. I know this very error has kept me up at night sometimes. Don’t sweat it! This article will talk about ways to help you debug your code so you can conquer this error and…
A Guide to Remove Spaces from String in JavaScript
In JavaScript, there are several different ways to filter out whitespace from a string. This article attempts to illustrate ways you can do that with the whitespace characters in your strings by showing you how to do it in five…
JavaScript Date Object: How to Compare Dates
One thing we can do when solving coding problems is use the Date Object to compare dates and times to conditionally render certain logic in our code. This article takes a look at how to use the Date Object to…
Dynamic Programming: An Introduction
In computer science there are several ways that describe the approach to solving an algorithm. Greedy, Naive, Divide-and-Conquer are all ways to solve algorithms. One such way is called dynamic programming (DP). In this article, we’ll take a look at…
JavaScript – Hello World
One of the very first programs you can write to make sure your Node version works is the “Hello World” program. There are two ways to create the program: in the terminal or in your code editor of choice (i.e.…
Error: Cannot read property ‘setState’ of undefined
When you first start to write React components, you might encounter several different errors along the way. Two such errors are “Cannot read property ‘setState’ of undefined” and “this.setState is not a function”. This article takes a look at a…
Big O Notation, Part Two: Space Complexity
Note: If you haven’t read our article on time complexity, it’s recommended to start there. Part two of this series assumes you are familiar with different possible Big O values. In our first article about Big O Notation and time…
What Makes Up the LAMP Stack?
There are many ways to combine technologies to create a tech stack. One such stack is called the Linux, Apache, MySQL and PHP (LAMP) stack. For the last decade, using the Linux operating system, Apache Web Server, MySQL, and PHP…