It's the #1 thing I want to convince my coworkers of
class Animal initialize(type) @type = type end def bark return unless 'dog' == @type puts "woof!" end def meow return unless 'cat' == @type puts "meow." end end
class Dog def bark puts "woof!" end . . .
The problem I’m trying to solve: 1 machine with X amount of ram. I have to run N tasks on it, each of which take more than X/N memory. So, they can’t run at the same time. Luckily, the time they run is not particularlyimportant, as long as they run regularly.
Here's one that took me a surprising amount of digging to find an answer deep in a lone comment in a thread.
You're running your chrome/chromedriver-driven test suite and start getting mysterious errors, which might be related to problems that were previously solved by setting particular options. After some . . .
Sometimes after rebasing and force pushing, github will show commits in a different order from what you expect.
git rebase -i master --exec 'git commit --amend --date="$(date -R)"' git push --force origin my-branch
If I remember correctly, some solutions to this problem . . .
- Confident Ruby https://shiprise.dpdcart.com/
- Objects on Rails https://shiprise.dpdcart.com/
- Working With UNIX Processes https://www.jstorimer.com/pages/books
- Working With Ruby Threads https://www.jstorimer.com/pages/books
- Don’t Make Me Think http://sensible.com/dmmt.html . . .