Categories
Uncategorized

JavaScript Lab 0 (test)

Students can play around with JavaScript code using CodePen. We can embed lessons in a blog post just like this one. For example, here’s a tip calculator: See the Pen xxVpOgO by Steve (@stephengrice) on CodePen. Here’s an example of using the canvas, which could eventually make a fun little game. See the Pen JSLab0.1 […]

Categories
How To Python

How to Implement a Binary Search Tree in Python

Decisions, decisions… Life is all about choices! Usually there are so many ways to go. An infinite expanse of roads and pathways stretches in front of you, an endless gradient of details; as you consider them, your head starts to spin, your eyes start to droop, your mind races, your head pounds – Wait a […]

Categories
Linux

Push Out Your SSH Keys – Jump Nodes in a Jiffy!

Every day, system administrators, students, professors, and everyday computer users struggle with entering their password on the command line. With each passing jump from one system to another, ten seconds tick by. Whoops, that’s a mistake – make it 30! Over time, entering your password every time you want to move between nodes using SSH […]

Categories
Programming

Ruby Gems: How to Make Your Own (Just Write, Build, and Push)

Anyone who has used Ruby before knows that gems are the spice of life. They are easy to install and distribute, even easier to use, and most importantly, they provide useful functionality. It’s not uncommon to see entire software projects centered around a single well-made gem. Take any Ruby on Rails project, and you’ll see […]

Categories
Linux

Breaking Free from User Space: Writing Your First Kernel Module

This post is Part 3 of a series on the Linux kernel. Part 1 – Part 2 So we’ve already built the kernel from source and even modified the source code. While these were some pretty cool parlor tricks, isn’t it about time we learned something useful? Well, I can’t promise that, but today we’ll take a step in the right […]

Categories
Linux

Making Simple Modifications to the Linux Source

This post is Part 2 of a series on the Linux kernel. Part 1 – Part 3 The Linux kernel is one of the most complex open-source projects available to the public, and the source code that comprises it is highly intricate, to say the least. Knowing this, I wondered what it would take to pick apart […]

Categories
Linux

How to Compile the Linux Kernel from Source

This post is Part 1 of a series on the Linux kernel. Part 2 – Part 3 Linux is everywhere, and there are plenty of Linux distributions available providing great out-of-the-box features. But what happens when you need to make an intricate, low-level change to system functionality? What if you wanted to get into kernel development and […]

Categories
How To Python

How to Implement a Custom Hash Table in Python

This tutorial will show you how to implement a hash table with separate chaining. It’s not the most efficient method, but it is the simplest way to get started and create a fully functioning hash table. Background Hash tables are indispensable tools for solving a wide assortment for so many interesting programming problems. I always love […]

Categories
How To Python

How to Implement a Queue From Scratch Using Python

You may hate the line at the DMV, but without it, things might turn into a rough-and-tumble free for all! In the same way that a line keeps raging motorists from getting out of hand, a Queue helps your computer keep its ducks in a row. The Queue functions very much like a line of […]

Categories
How To Python

How to Implement a Custom Linked List in Python

Need a quick run down on a classic data structure? Look no further. Click here for the full LinkedList source code. Also, here is the test code. A linked list is an ordered collection of elements. The thing that makes it special is how it stores data. Behind the scenes, each number, string, object, or other value you may […]