[01:33:54]
hays:
ok, I've writing basically a diff function between two dicts, where the return value is a report of what items are different. the dict is pretty heterogeneous--it has strings, ints, floats, dicts of strings, ints and floats.. and because of this right now i have a huge block of repetetive code where i check each item individually. im trying to figure out how to structure this so i am less repetetive

[05:33:16]
matthewd:
The short version is that `gem` on its own will install gems globally, and then ruby will use them as needed -- by default, by just activating the latest version of whatever gem provides the file you're trying to require

[05:36:20]
matthewd:
By default bundler still installs the gems globally and is just picky about which ones it uses, because that's most convenient for most people, especially if they have multiple projects with similar deps

[10:22:43]
tobiasvl:
as _why said: "Think of it as an accordion which has been squeezed down for carrying. (Sure, you can build a great sense of self-worth by carrying around an unfolded accordion, but sometimes a person needs to wallow in self-doubt, carefully concealing the squeeze-box.) The parentheses are the handles on the sides of a smaller, handheld accordion. The dots are the chain, keeping the folds tightly closed.

[10:22:52]
tobiasvl:
... is used, the last value in the range is excluded. When you see that third dot, imagine opening the accordion slightly. Just enough to let one note from its chamber. The note is that end value. We’ll let the sky eat it."

[11:08:55]
Prutheus:
Hello. I have following array: ["Dema", "Cdl3BlackCrows", "Acos", "Price ROCR", "Volume ROCR", "24hr Volume"] I want to sort it so, that the first element is "24hr Volume", second is "Volume ROCR", third is "Price ROCR" and the others are sorted by alphabet after these 3

[11:14:29]
elomatreb:
Are the the elements always "24hr Volume", "Volume ROCR", etc., or do they change? Because if they are static you can just remove them from the array before sorting, then add them back to the front again

[11:15:18]
Prutheus:
yes okay that would be a possible solution, but i thought i can write a custom sort function (block) which can handle that?

[19:40:28]
matthewd:
But I guess it depends on your threat model -- if you're *only* concerned about shoulder-surfing, and you trust that no-one will run `ps` while this command is executing, then maybe you're okay