2020
How Ruby on Rails Forms and Nested Forms Work.
Forms are a huge part of a dynamic website. It’s through forms that you take user input and do something with it. It’s worth taking time to understand how to build different types of forms with rails.
Tips on importing fonts in Ruby on Rails
I had a problem where fonts were loading fine in development environment but were failing to load in staging / production.
How HTTP Request / Response Works
To know how the internet works, we looked at how the HTTP protocol worked. Let’s take a look at the two parts of HTTP: Request and Response.
How to use the Command Line Interface
Becoming a software developer forced me to learn the command line interface. At first, I strongly resisted. Coming from windows GUI — the command line looked like an ugly remnant of 1980s computing.
How Objects Work in Object Oriented Languages — Ruby Edition.
It took me a while to comprehend how objects worked in Ruby. If I had to explain it to my younger self again, here’s how I would do it.
How to setup Wireguard VPN from a private VPS.
Bottom Line — using a VPN is great for online privacy. Hosting it on a VPS ensures your IP won’t be blacklisted. It’s easy to setup with an automated script.
How to find out if software development is worth switching to
After switching from petroleum engineering to software development, I have folks ask whether they should do the same.
Parable — BS is not enough.
A turkey was chatting with a bull.
How to overcome the imposter syndrome through teaching.
Bottom Line — Imposter syndrome will kill your self-confidence in your craft. The solution is to teach your craft. Teach through writing or video work. You don’t have to be an expert to begin.
Use video backgrounds during video calls
Bottom Line — With a video background, I could move around and other people can be behind me without being seen on video.
Why specify ruby version in your gemfile
Bottom Line — Specify a ruby version and RVM will automatically switch them for you when you open a different project.
Why I switched careers from Petroleum Engineering to Software Development
Bottom Line — My heart wasn’t in it. The cyclical downturns got old. I jumped to software. No regrets about starting with petroleum engineering.
How HTTP Works
The internet is made up of millions of interconnected computers that send and receive messages. That’s it.
How I stack skills to overcome the scarcity mindset.
Bottom Line — Worried about being replaced? If you stack your above average skills, they’ll be worth more than the value of a single highly valued skill. Here are examples where stacked skills helped me overcome fierce competition.
Why I switched from wordpress to Jekyll (Static Site)
Bottom Line — My blog is meant for writing. A Jekyll static site allows me to write with ease and avoid friction I experienced with WordPress.
Fix GitHub missing green boxes on commits
When I setup a new development environment, I’ll commit my code to GitHub but the green boxes won’t show my contribution for that day.
Using Ajax in Rails Forms
Sometimes you want to update a form and not refresh the page. This is where AJAX (Asynchronous Javascript) comes handy.
Ruby nil, && operand, and no method error
I wanted to show a link in a Rails application based on whether a person was current_user.admin?
and signed_in?
Using HAML in Rails Helpers
Using HAML in Rails views is great because its more succinct than ERB.
Interact with JQuery from the browser console
I recently stumbled on this technique where you can load JQuery for ANY page and write JQuery commands right in the browser console. This is great for debugging and exploration.
Cleaning data and writing 14,000 rows to the database
I needed car data for a Ruby on Rails project. I found a GitHub repository where someone generously shared 14,000 rows of car model, makes, and year.
Troubleshooting undefined method error when updating database rows
Sometimes I need to make changes to a Ruby on Rails table in production.
How to submit PDUs to PMI to renew your PMP
Here’s exactly how I submitted my PDUs to PMI to renew my PMP (Project Management Professional) certificate in 2020.
2019
Drop big rocks in the Jar first
This analogy is about putting important things first. Sounds like the same old crap you hear from self-help books. However, I admire a good analogy that sticks in my head and this is one of those. This analogy comes from Stephen Covey.
How objects send messages in Ruby
If open IRB (interactive ruby) and type in the following expression 2 + 3
, you’ll get 5
. If you reverse that with 3 + 2
, you’ll still get 5
.
Review: Pragmatic Studio Rails I Course
I finished Pragmatic Studio’s Rails I course and it gave me the skills to build a CRUD Rails app from scratch. That speaks volumes about how great this course truly is
Why skip testing if you’re new to software development
Doing Test Driven Development (TDD) and learning Ruby simultaneously is a problem for brand new developers.
How to install RubyMine and setup a Ruby environment on Linux
You’re going to need a text editor to write Ruby. Although there are many options I prefer using a dedicated Ruby IDE such as RubyMine because it comes with debugging and autocomplete.
ASDF VM Version Manager for Ruby Tutorial
Bottom Line — You’ll need a Ruby version manager if you plan on working with Ruby and Rails.
How to Run Ruby on Windows 10 with VirtualBox
It’s hard enough to learn a new programming language by itself and it’s miserable when you run into avoidable system errors.
2018
How to hide your online traffic with a VPN.
Post Updated on October 2020.
Myth of the 5 year roadmap in software
Bottom Line — 5 year roadmaps are as successful as fast weight loss programs.
The heroes journey in a MuckFEST 2018 obstacle course
I went to MuckFest MS 2018 5K obstacle course in Denver. It was my third time running it. A friend, my girlfriend, and I went together and were part of a bigger team of at least 20 people that started the run at 9 am.
You don’t need to boil the ocean to make a hot cup of tea
Bottom Line — You don’t need to be as ambitious as Bill Gates to have a worthwhile life.
2017
Everybody wanna be a bodybuilder — nobody wants to lift heavy ass weights
When I heard Ronnie Coleman — an eight time Mr. Olympia Champion — utter these words, I was dumbfounded by the profoundness in one single sentence.
What knuckles taught me about life’s peaks and valleys
Bottom Line — I look at my knuckles often to remind myself that this hard moment — It too, shall pass.
Make PowerPoint file size 4 times smaller
Bottom Line — Your powerpoint file doesn’t need to be 100 megabytes. You can quickly batch compress images within it to a reasonable size.
How using a voice recorder helps me generate creative ideas
Bottom Line — Ideas come to my head randomly. If I don’t jot them down, I forget them. I use a voice recorder app to collect them and transcribe them later. That’s how I generate creative ideas and reduce the stress of having to remember a lot.
How taking action got me unstuck from a parking garage
I’m on my way to meet a friend for dinner. It’s a 15 minute drive but I hit traffic — in a parking garage.
Fedor Emelianenko on Life, Sport, and Fitness
Fedor “The Last Emperor” Emelianenko is a Russian MMA fighter. There’s no doubt he’s a great fighter, but that’s just one piece that makes up his total package.
2016
A simple guide to getting high credit scores
Bottom Line — Life is easier when you have a solid credit history. Start building it sooner rather than later. Here’s how to do it.
How I failed physics and started teaching it
Bottom Line — I initially failed physics. Here’s how I made my come back and ended up teaching physics to others.
Too cool for earplugs, too deaf to hear.
Bottom Line — Our generation will have a record number of those who will be hard of hearing. It’ll be our own fault. Use ear plugs!
On Traveling Anxiety
It’s easier to sit in one spot rather than get up and do something different. That one spot is familiar and it is safe. A soldier friend of mine told me that during his time in the military, his unit would move locations as often as every 48 hours. His unit lived and breathed with the ability to change their location often.
Specialization is for insects — or why knowing a lot matters.
A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.
Why I love Cold Showers (Restoring Will Power)
Bottom Line — Cold showers will jolt you out of a funky mood. I take them from time to time.
Permission to give up on dreams
It’s okay to give up on a dream. Nikita, what are you talking about man? I thought you had to persevere, fight, and never give up. That’s true if you feel strongly about that dream. Are you fooling yourself?
On Freedom of Time
While visiting Mexico in May 2016, I found out that a normal work week consists of 6 working days at 8 hours per day. In the US and Europe, we typically have 5 working days, 8 hours per day. I might be spoiled but sometimes two days are not enough. Imagine only having 1 day off. Imagine not having any days off. It’s nerve-racking unless your full-time work is what you feel strongly about. If it’s not, then do you have enough time to engage with projects that you feel destined to do? That’s where freedom of time is an important asset.
Life is a multi-laned highway
I was driving to work on I-25 and a realization hit me as I was switching lanes. I noticed that during my 25 mile drive, I’ll switch lanes several times before arriving at the destination. You probably do the same thing. So what? It can teach us a thing or two about looking at life. Let’s look at some scenarios.
Why you’re afraid and the Amygdala
I stumbled upon a really great video that went into describing how the Navy Seals train their troops to handle high stress situations. They have a unique approach which is focused on exposing the soldiers to fearful situations, and having them react in a sensible matter. I highly recommend watching the video below, but if you’re short on time, I’ll summarize some of the things I got out of it:
The comfortably numb trap
I went to Mexico in May 2016. One of my best friends was getting married, and I went down to attend the ceremony and also to get away and relax for a week. I booked an all inclusive resort that was really a dream to stay at. All inclusive includes breakfast, lunch, dinner, and entertainment. Everything is done for you; you are there to relax.
On lending money and minimizing the chances of getting screwed.
Bottom Line — Here’s what I learned about lending money and how to minimize the chances of getting screwed.
Scarface — The Rise and Fall of Tony Montana
I watched Scarface (1983) several years ago and thought that it was just a violent action movie. I didn’t give it a second thought and was satisfied with just watching it once. I saw it on Netflix and decided to give it another chance. This time around, the movie had a deeper meaning to me and it wasn’t about the violence and the 1980’s drug wave, but it was instead a deeper look into human nature. I’m not sure if that was the intention that Brian De Palma and Oliver Stone had when making this movie, but this is what I felt.
What is a reliable car and how to find one.
Gist: I bought 3 cars for people in 2 years. It might be pretty but it’s going to cost you an arm and a leg in repairs. Research and get a dependable vehicle.
How I renewed my PMP certification
Bottom Line — You don’t need to spend money on courses to renew your PMP certification. Here’s exactly how to do it on the cheap.
PMP Exam Lessons Learned
Bottom Line — I took the PMP exam in 2015. Not much changed today in the exam world in 2020. Here are all the strategies I used to pass the exam. Here’s what I would teach my younger self.
Getting started with wet shaving
Bottom Line — Tired of using triple blade blades? You don’t have to. Here’s how you can shave just like your grandfather did.
2015
Clearing your mind with closed-eye walking meditation
Bottom Line — Close your eyes and pace a known room. My mind stops thinking and relaxes.
Why public speaking builds effective communication
Bottom Line — Speaking skills will greatly amplify your other skills. Here are examples from my life and the lives of others.
Using Jade (Pug) to preprocess HTML
Bottom Line — Pug makes HTML tags look a lot less messy.
Smaller image files with TinyPNG
Bottom Line — “Don’t be that person who uploads a 10mb thumbnail image. Compress it!”
What handstands taught me about life
Bottom Line — Handstand progress is not linear. Neither are learning other skills in life. I don’t want it to be that way but that is the way it is.
Each hour of sleep before midnight is worth two
Over time, I’ve noticed that if I go to sleep closer to 10:30 pm, and sleep until 6:00 am (7.5 hours total), I wake up feeling refreshed in the morning. If I go to bed closer to 12 am, and sleep until 7:30 am, I have a harder time waking up and have a greater propensity to continue sleeping. The total time spent sleeping stays the same at 7.5 hours, but the time intervals change. Let’s take a closer look.
Why you sleep poorly after bright screens at night.
Bottom Line — Get f.lux / night mode on your PC / tablet / smartphone.”
2014
No perfect time to call — do it now!
Bottom Line — There is no perfect time to call someone. When you think about calling that person, just call them and stop over thinking it.
Use larger font size for readability
Bottom Line — Content begs for easy readability. Think about if your text size is too small and therefore hard to read for the average reader.
Parkinson’s Law — Questioning Procrastination
Bottom Line — If you give yourself 3 weeks to do a project, you’ll start it on the last day and finish it in a few hours. That’s Parkinson’s Law.
Improve your public speaking skills with Toastmasters
Bottom Line — Speaking and presenting is an underrated skill. Toastmasters is a cheap and effective way to work on it. It will greatly enhance your other skills.
Why get a custom domain (www.yourname.com) to control your brand.
Bottom Line — With a custom domain, you have a better chance of ending up on the first page of search engines instead of your facebook page.
What does your email address say about you?
Bottom Line — Using toughdude23xx1@aol.com or user@phonecompany.com is a bad idea. Skip the stereotypes.