How to Upgrade RVM on Mac OS X
I had an old version of rvm installed and wanted to upgrade. So old in fact that the resource for upgrading no longer existed.
just returned a 301, redirect.
Luckily, the following worked
# checks out from repo
rvm update --head
# will re...
How to Remove Your Last Git Commit
Remove your last commit (if you haven't pushed yet)
git reset --hard HEAD~1
To see changes that have been committed and their position in HEAD
And to undo your previous reset and advance the cursor to the reference immediately behind the cu...
Parsing URL Parameters with Swift
Here is an extension you can use in your Swift (v4) projects that makes it easy to parse parameters from a url.
Given a url like, "http://example.com/?x=1&y=2", you can extract the x and y parameters into a key, value data structure.
Here is the s...
Rails Send_File in Production Delivers an Empty File
If you're running Rails in production it will by default be configured to let apache or nginx send files for you. If you're handling file downloads yourself with send_file
you will notice that the downloaded files are empty...
oh russian text, i thought you had something valuable to share...
but no, you were only clever enough to use your native tongue in an attempt to fool me into publishing your funny, spam comment! thanks to google.com/translate, you were foiled in your plot to usurp traffic from my site