I’ve been toying around with JavaScript artwork and been having a lot of fun creating divs via loops and restyling them, rotating them, and making them move position across a DOM.


Solving that classic fibonacci problem…

If you’re like me and new to the world of Algorithmic problem solving, you might find yourself a bit overwhelmed to say the least. I recommend investing the time to watch Alvin Zablan’s lecture on tackling these types of problems. The lecture focuses more on learning how how to find strategies or “learning how to learn”, rather than memorizing the correct solution.

This blog will cover the first solution from this lecture. The Fibonacci problem.

Fibonacci

If you’re also like me and not a mathematician, all you need to know about the Fibonacci sequence is that…


If you read my friend and colleague’s Dmitry Sychev blog post, you understand the concepts of web scraping. If you’re working with a site that doesn’t have an API, web scraping is an effective tool for crawling a page to gather data.

Taking inspiration from that, it reminded me of another tool that some might not be aware of.

Enter Selenium.

Selenium is actually a driver, or a piece of software that you can use to launch and control an “automated browser” using an API of sorts. It can locate items on a DOM and manipulate them using virtual clicks…


In this blog, we’re going to go from a blank slate to a working Django REST API with full CRUD functionality. To keep things semi-simple, we’re going to use a single model called “tasks” with two attributes: “name” and “notes”. We will then migrate this model, create a route to it, and then finally setup an API serializer/view page. In the end, you’ll have something like this:


Once in a while you come across a technology and think “Man, I wish I had learned this sooner.” I’ve spent so many hours using the wrong tools to position elements on a DOM. Looking back it felt like I was using a rock to hammer in a nail.

CSS grid is intelligent, clean, and simple to learn and it will let you create beautiful websites in minutes.

CSS Grid Layout

You’ll need to create an index.html and index.css file to follow along. We’re going to start off with some basic HTML:

index.html

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8">…


They say necessity is the mother of invention. In my case, it was high power bills.

I have a bank of computer systems sitting on my desk that I use on occasion to host different web apps or to run experiments. (I mean, who doesn’t right?)

Although, they’re not particularly energy-guzzling individually, together, they can consume quite a bit of juice. Running them all together at full throttle would end up costing almost $2 a day in energy. That won’t do. I could have them go to sleep which would save some power, but that would mean I could no…


A Flatiron Student’s Guide

We learn a lot of concepts in a very short amount of time at Flatiron. Models, views, controllers, CRUD, Domain modeling, RESTful API’s, Active Record, the list goes on.

Flatiron starts students off with Rails as a backend framework since Ruby is an easy language to learn and Rails is very friendly for beginners. What we may not realize is that many of the concepts we learn in Rails can be transplanted into other frameworks pretty easily.

This article will attempt to bridge the gap between Rails and Django from a Flatiron student’s point of view. Ruby is to Rails…


A group of friends and I decided we wanted to play the lottery.

We found the closest convenience store and purchased a fistful of tickets. “If we buy more tickets, that doubles our chances to win!”

The numbers were called.

We lost.

I know… we were shocked as well.

That raised an interesting question though… what if we could have a computer play the lottery? More specifically, how long would it take for a computer to play itself and win?

Python makes this pretty easy. In this lab, we’re going to use Python’s random module and build two function. …

Ben Garlock

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store