Blog


Quickly Open a File in the Browser from WSL

Mac users have this magic convenience of typing open index.html into their terminal to open a file from their current directory in the browser. Those of us on WSL aren’t so lucky. If you’re lucky, then open command will open a windows directory. Cool, I guess? But not exactly super helpful. The internet abounds with recommendations — from trying xdg-open to browse to even more convoluted methods. But the question remains: what’s the easiest way to open an HTML file in the browser from WSL?


Debugging Rails by automatically displaying params inside your views

Here’s a fun and easy little trick. Let’s throw a debug(params) into our view, and then we can see what our params are for every page! In Rails, this means seeing the controller/action for every page you visit as well as any dynamic content that was used for each view — nifty!


The New WSL 2 is 20x Faster?! A User's Installation Guide

Windows has finally released WSL 2, and it’s smooooooooth. Microsoft describes it as such: “WSL 2 is a major overhaul of the underlying architecture and uses virtualization technology and a Linux kernel to enable its new features.”


A Primer on Databases for Beginners (Written by a Total Beginner)

The content of your bloToday terms like SQL, Oracle, MongoDB are all commonplace in software engineering and web development. On the back-end, we expect a full-stack engineer to have a firm grasp on database management. So let’s talk about what a database management system entails, starting from the very basics.


Deploying your Sinatra project with Heroku

One of the most satisfying parts of your Sinatra project is finally getting to make something that you can send your family and friends to, and — what’s more — something they might even use! The first step to getting your Sinatra app on the web is to deploy it. The quickest way to do that, and the cheapest (can you say FREE?!) is to use Heroku. However, the process for deploying your code straigt from GitHub to Heroku is not so straightfroward. In Flatiron, we used Sinatra, ActiveRecord, and SQLite3 to develop our apps. Heroku, however, doesn’t support SQLite3… that means you’ll have to set up your app to run with PostgreSQL! Before you panic, don’t worry. It’s not as hard as it seems, and I’ll be with you every step of the way (metaphorically speaking). Let’s jump right in!