Skip to content

Instantly share code, notes, and snippets.

Brian Holland bhollan

  • Belize City, Belize
View GitHub Profile
View SO-spam-filtered-full-question.txt
I'm trying to set up my local Dev Environment to match my team's. I can't upgrade Ruby/Rails/Mysql2 (for the time being).
I know my local mysql config is good (enough?) because I can create a new Rails project and run it just fine. I'm getting the same error if I run `rake db:create` or `rails s` or even start IRB and run `require 'mysql2'`.
I've googled the hell out of this. I was initially using MariaDB as my Mysql implementation locally. So I thought that might be screwing with the mysql2 gem. So I ripped out MariaDB and finally got Mysql 5.6 working (another team version we're locked into at the moment). After successfully upgrading to Mysql 5.6, I'm confident that's 100% not the issue.
I would expect if I had the wrong password for it to complain about the config somehow. But it's always the same.
`uninitialized constant Mysql2::Client::SECURE_CONNECTION`
bhollan / techcoach.txt
Created Feb 26, 2018
Agenda for Tech Coach AMA
View techcoach.txt
Chrome Extensions
Online Tools
Best Practices
Debugging techniques
Career Paths
bhollan / index_card.txt
Created Aug 11, 2017
Personal Finance Index Card
View index_card.txt
Index card financial rules:
1) Strive to save 10-20% of your income
2) Pay your credit card bill in full at the end of every month
3) Max out 401k and/or other tax advantaged investments
4) Never buy or sell individual stocks/bonds/securities
5) Buy cheap index/mutual/ETF funds
6) Make any financial advisor commit in writing to the fiduciary standard
7) Buy a home when you're financially ready
8) Insurance. Make sure you're protected
9) Do what you can towards the social safety nets
  • How often do you notice it disconnecting? Once a day? Once a week? 3 times an hour?

  • Packet loss summary

    Mac/Linux: Open up terminal and run ping -c 25 and get the response

    Windows: Go to the start menu and search for CMD to open up the command prompt. Have them run ping -n 25 and get the response.

    We only need that last part:

    25 packets transmitted, 25 packets received, 0.0% packet loss
View ide-tree-error.txt
Installing “learn-ide-tree@1.0.17” failed.Hide output…
INFO: Could not find files for the given pattern(s).
The system cannot find the file specified.
> runas@3.1.1 install C:\Users\SWAKE\AppData\Local\Temp\apm-install-dir-116117-4136-wo3ojp\node_modules\learn-ide-tree\node_modules\runas
> node-gyp rebuild
View ide2-2-error.txt
[Enter steps to reproduce below:]
1. ...
2. ...
**Atom Version**: 2.2.0
**Electron Version**: 1.3.6
**System**: Microsoft Windows 7 Professional
**Thrown From**: [learn-ide]( package, v2.2.0

Keybase proof

I hereby claim:

  • I am bhollan on github.
  • I am bhollan ( on keybase.
  • I have a public key whose fingerprint is 263F BC85 9C77 5AD1 9E0B 1778 1F68 184B 5BAF EC8B

To claim this, I am signing this object:

View ide-syncing.txt
[The way the IDE works]("How the IDE works" article), when a student saves changes to a file in the IDE, those changes are uploaded to the Learn IDE Server. This process is known as "Syncing". This can happen for a number of reasons, and can also manifest itself as many different symptoms. The fixes for these different symptoms vary a little bit, but are essentially the same thing: repairing the synchronization between the IDE and the IDE Server.
Lab Folder With Wrong Contents
Sometimes when a lab repo is cloned to the IDE Server (and the to your computer), the contents of the folder on your computer will not match the contents of that same folder on the IDE Server as it should. This can look like an empty folder in the file tree. This can look like having only a few files instead of all the files. In this case, you should be able to right-cick on the lab's folder and choose `ReSync with Learn IDE Server` (screenshot?).
Lab Folder Completely Missing
Sometimes when the cloning or a repo to the
bhollan / cirtus_byte.rb
Created Aug 17, 2016
Flattens array of integers without using Array.flatten
View cirtus_byte.rb
# require 'pry'
# puddle = [5, [3, [2]]]
# deep = [5, [4, 3, [2, 2, 2, [1, [1], 0, 0]],4, 2, [1], [4]], [0]]
def make_flat(ary)
out = []
ary.each do |el|
if el.kind_of?(Array)
You can’t perform that action at this time.