TL;DR: Use .verbose
before calling .pages
on a MiniMagick::Image
object.
Continue reading “Overcoming MiniMagick’s Incorrect Count of Pages”
TL;DR: Use .verbose
before calling .pages
on a MiniMagick::Image
object.
Continue reading “Overcoming MiniMagick’s Incorrect Count of Pages”
Most of the websites you visit look professional. They even have their own icon sized down to appear as part of the tabs you see across the top of your browser, with the name of the website to boot. The default for a Rails project doesn’t look so pretty. Continue reading “Adding a Favicon to Your Website”
When deploying a Rails application to Heroku, the default settings will usually break the pretty icons that we use in conjunction with our gem, Bootstrap. However, a quick fix will make those icons load as normal. Continue reading “Glyphicons on Heroku”
Working on a group project as part of the Building the Toolbelt of a Junior Ruby on Rails course that I am taking, I implemented the use of OmniAuth. I followed the example that we had learned in class. We have been using Rspec for our TDD, however, we had not learned the specific tests to write for OmniAuth. How hard could those be?
After reading the first article in the Finding Your Inner Programmer series by Jeff Casimir, I am interested to read the rest of the series.
Ruby has many styles of handling conditional statements. You can use big, indented blocks of code if your program has complex statements. However, if you can say it all on one line, this often saves you time, and saves the time of people who may be reading your code later. It’s time to use the Ternary Operator.
Continue reading “Easiest Way to Display a Short If/Then/Else Statement”
A week ago, I posted my solution (along with some of my preferences) to the common interview challenge, FizzBuzz. However, after having it reviewed by my instructor, I simplified the resulting code.
So, Jason wants us to pick a random module out of RuboCop to check out and see what it does. I let IRB choose which RuboCop module to investigate.
It chose indent_hash.rb. Continue reading “RuboCop Module: Indent_Hash”
As a way of pruning applicants, a common challenge in computer programming interviews is “FizzBuzz.” Since there are multiple solutions, interviewers can see the style of a particular programmer.
Git and Github are ways of keeping track of software changes over the course of its development. Git helps keep track of changes to a project on your local device. Github manages the project online, and allows multiple developers to work on the same files together.
Continue reading “Basic Program Iteration Management Using Git”