havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.2, 2.3.5 & 2.2.8: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
jrabe has quit []
jrabe has joined #ruby
SeepingN has quit [Ping timeout: 240 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
serhart has joined #ruby
Cohedrin_ has quit [Read error: Connection reset by peer]
dviola has quit [Quit: WeeChat 1.9.1]
serhart has quit [Read error: Connection reset by peer]
Cohedrin_ has joined #ruby
hinbody has joined #ruby
Devalo has quit [Ping timeout: 258 seconds]
goyox86_ has quit [Quit: goyox86_]
workmad3 has joined #ruby
ap4y has quit [Quit: WeeChat 1.9.1]
__Yiota has joined #ruby
marr has quit [Ping timeout: 246 seconds]
jenrzzz_ has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
TomyLobo2 has quit [Ping timeout: 255 seconds]
ap4y has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dc3 has quit [Ping timeout: 240 seconds]
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
weaksauce has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
twosevenzero has joined #ruby
twosevenzero has quit [Client Quit]
serhart has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Cohedrin_ has quit [Read error: Connection reset by peer]
serhart has quit [Read error: Connection reset by peer]
dc3 has joined #ruby
santi has quit [Remote host closed the connection]
Cohedrin_ has joined #ruby
gusrub has quit [Remote host closed the connection]
raynold has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
weaksauce has joined #ruby
lagweezle is now known as lagweezle_away
TheDracle has quit [Ping timeout: 252 seconds]
kiswe has joined #ruby
kiswe has left #ruby [#ruby]
marxarelli is now known as marxarelli|afk
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
mson has joined #ruby
cagomez has quit [Remote host closed the connection]
gizmore has quit [Ping timeout: 255 seconds]
GodFather has joined #ruby
vikaton has joined #ruby
bruce_lee has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
bmurt has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 252 seconds]
tamouse__ has quit [Ping timeout: 260 seconds]
quobo has quit [Quit: Connection closed for inactivity]
xuanrui has joined #ruby
Cohedrin_ has quit [Read error: Connection reset by peer]
rexb0t has joined #ruby
Cohedrin_ has joined #ruby
hays has joined #ruby
d^sh_ has joined #ruby
serhart has joined #ruby
<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
whippythellama has quit [Ping timeout: 255 seconds]
yCrazyEdd has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 248 seconds]
d^sh has quit [Ping timeout: 240 seconds]
serhart has quit [Client Quit]
fullstack has quit [Ping timeout: 264 seconds]
fullstack has joined #ruby
<hays> here's a basic idea of the structure https://bpaste.net/show/cd7c477bad40
serhart has joined #ruby
rexb0t has quit [Remote host closed the connection]
<hays> some things i have to convert to string, some things are nested.. its just at that level of difficulty where im not sure how to generalize
ramfjord has quit [Ping timeout: 258 seconds]
vee__ has quit [Ping timeout: 248 seconds]
ta has joined #ruby
kies has quit [Ping timeout: 240 seconds]
ta has quit [Ping timeout: 258 seconds]
ogres has quit [Quit: Connection closed for inactivity]
serhart_ has joined #ruby
whippythellama has joined #ruby
serhart has quit [Ping timeout: 252 seconds]
serhart_ is now known as serhart
hays has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
John__ has quit [Read error: Connection reset by peer]
serhart has quit [Ping timeout: 252 seconds]
mtkd has quit [Ping timeout: 240 seconds]
devyn has quit [Ping timeout: 240 seconds]
dnewkerk has joined #ruby
vee__ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
serhart has joined #ruby
raynold has joined #ruby
chopin has joined #ruby
Qiong` is now known as Qiong
workmad3 has joined #ruby
jenrzzz has joined #ruby
hays has joined #ruby
chopin has quit [Ping timeout: 252 seconds]
kapil___ has joined #ruby
chopin has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
ap4y has quit [Quit: WeeChat 1.9.1]
ap4y has joined #ruby
chopin has quit [Ping timeout: 255 seconds]
astrobunny has joined #ruby
chouhoul_ has joined #ruby
govg has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 260 seconds]
eckhardt_ has quit [Read error: Connection reset by peer]
eckhardt has joined #ruby
renatosilva has joined #ruby
serhart_ has joined #ruby
serhart has quit [Read error: Connection reset by peer]
rhyselsmore has quit [Read error: Connection reset by peer]
renatosilva has left #ruby ["http://renatosilva.net"]
naquad has quit [Ping timeout: 248 seconds]
tris has quit [Ping timeout: 240 seconds]
miah has quit [Ping timeout: 240 seconds]
rt has quit [Ping timeout: 260 seconds]
miah has joined #ruby
kenichi has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
uneeb has joined #ruby
guardianx has joined #ruby
kenichi has joined #ruby
mjolnird has quit [Quit: Leaving]
naquad has joined #ruby
rt has joined #ruby
serhart_ has quit [Read error: Connection reset by peer]
tris has joined #ruby
Technodrome has joined #ruby
workmad3 has joined #ruby
_whitelogger has joined #ruby
serhart_ has joined #ruby
workmad3 has quit [Ping timeout: 258 seconds]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
soifr has joined #ruby
soifr has left #ruby [#ruby]
serhart_ has quit [Quit: serhart_]
serhart has joined #ruby
ozcanesen has joined #ruby
cadillac_ has quit [Quit: I quit]
Cohedrin_ has joined #ruby
amevaash has joined #ruby
amevaash has left #ruby [#ruby]
serhart has quit [Client Quit]
ta has joined #ruby
alnewkirk has joined #ruby
odroi has joined #ruby
odroi has left #ruby [#ruby]
ta has quit [Ping timeout: 248 seconds]
gix has quit [Ping timeout: 255 seconds]
alnewkirk has quit [Ping timeout: 246 seconds]
etoigh has joined #ruby
etoigh has left #ruby [#ruby]
gix has joined #ruby
igheeph has joined #ruby
igheeph has left #ruby [#ruby]
ResidentBiscuit has quit [Remote host closed the connection]
cagmz_ has joined #ruby
cagmz has quit [Ping timeout: 260 seconds]
Technaton has quit [Ping timeout: 258 seconds]
uZiel has joined #ruby
ogres has joined #ruby
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technaton has joined #ruby
truenito has joined #ruby
howdoi has joined #ruby
truenito has quit [Ping timeout: 248 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cohedrin_ has joined #ruby
Cohedrin_ has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
Cohedrin_ has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nyuszika7h has quit [Ping timeout: 246 seconds]
mson has quit [Quit: Connection closed for inactivity]
eghaoquof has joined #ruby
eghaoquof has left #ruby [#ruby]
jphase has quit []
s2013 has joined #ruby
jphase has joined #ruby
nyuszika7h has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xuanrui has quit [Remote host closed the connection]
__Yiota has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elcontrastador has joined #ruby
orbyt_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
tamouse__ has joined #ruby
Devalo has joined #ruby
ta has joined #ruby
tamouse__ has quit [Ping timeout: 240 seconds]
QualityAddict has quit [Quit: Leaving]
Devalo has quit [Ping timeout: 240 seconds]
Cohedrin_ has quit [Read error: Connection reset by peer]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cohedrin_ has joined #ruby
ta has quit [Ping timeout: 240 seconds]
zautomata1 has joined #ruby
soyeomul has joined #ruby
ozcanesen has quit [Ping timeout: 252 seconds]
tamouse__ has joined #ruby
xuanrui has joined #ruby
soyeomul has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
Cohedrin_ has quit [Read error: Connection reset by peer]
Cohedrin_ has joined #ruby
conta has joined #ruby
corporatus has joined #ruby
Dimik has joined #ruby
ta has joined #ruby
corporatus has quit [Client Quit]
cdg has joined #ruby
ta has quit [Ping timeout: 248 seconds]
shinnya has quit [Ping timeout: 248 seconds]
eckhardt has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
cosimo_ has joined #ruby
jinie has quit [Ping timeout: 252 seconds]
jinie has joined #ruby
cosimo_ is now known as Cosimo_
Cosimo_ is now known as cosmo
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
cosmo has left #ruby [#ruby]
jenrzzz has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
astrobunny has quit [Read error: Connection reset by peer]
cosimou has joined #ruby
ta has joined #ruby
NightMonkey has quit [Ping timeout: 240 seconds]
alex`` has joined #ruby
ta has quit [Ping timeout: 252 seconds]
elcontrastador has joined #ruby
tristanp has quit [Remote host closed the connection]
tamouse__ has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
jrheaton has quit [Remote host closed the connection]
ta has joined #ruby
jrheaton has joined #ruby
<matthewd> hays: You might want to consider https://github.com/liufengyun/hashdiff
NightMonkey has joined #ruby
ta has quit [Ping timeout: 252 seconds]
latemus has joined #ruby
<latemus> how do i bringan external module such as mysql into the scope of my program. require 'mysql' is not doing it
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<matthewd> latemus: What are you doing, and what's not working?
jenrzzz has quit [Ping timeout: 252 seconds]
enterprisey has joined #ruby
<latemus> matthewd: i'm writing a script to learn how to connect to a mysql database, and im getting an error 'cannot load such file -- mysql (LoadError)'
<matthewd> Are you following a tutorial or something?
<latemus> is it a third-party packagage, like ruby-mysql or something
<matthewd> mysql is a gem you need to install first, yes
<latemus> yeah matthewd i am.
<matthewd> But note mysql2 is more popular these days
<latemus> okay, thanks. i think my question is, once i install the gem will require just work
<matthewd> If the tutorial is old enough, it might tell you to `gem install mysql` (and then yes, the require will just work)
<matthewd> Something more modern should recommend using bundler, so you'd add `gem "mysql"` to your Gemfile, then `bundle install`
<latemus> matthewd: that's good to know, i'll definitely use mysql2 instead, i've been wondering if what i was using was the ruby equivalent of the mysql php extensions (obsoleted by mysqli)
<latemus> matthewd: i could stand to learn abount bundle, i dont understand it
<latemus> but i used it with rails a while back
<latemus> i guess i assumed it was a railsism
<latemus> like activerecord
<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
<latemus> perfect
ur5us has quit [Remote host closed the connection]
<matthewd> Bundler is a wrapper that uses a local Gemfile to track which gems are used by the current project, and automatically load a coherent (and consistent) set of versions
<latemus> i love ruby but it bothers me to install things outside my OS's package manager
ur5us has joined #ruby
<latemus> Okay bundler will be useful
Mia has quit [Ping timeout: 240 seconds]
<latemus> Thx matthewd
ur5us has quit [Read error: No route to host]
<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
jgt has joined #ruby
ur5us has joined #ruby
<matthewd> But it can also be told to install the gems entirely inside a subdirectory of the project, if that feels like less of a package management violation
raynold has quit [Quit: Connection closed for inactivity]
<latemus> Yes that feels much better
<latemus> Seems more portable also
<matthewd> The point of the Gemfile (and Gemfile.lock) is that you don't need to portably move around the actual gem contents, just the list of specific versions required
<latemus> I see
<latemus> Do gems include any documentation on their use?
biberu has joined #ruby
jgt has quit [Ping timeout: 260 seconds]
<latemus> I noticed that typing help in irb is extremely useful. Somehow i had not learned about that
<latemus> And didn't ruby forge shutdown or was that something else?
<matthewd> Yes, rubyforge shut down some time ago
NightMonkey has quit [Ping timeout: 260 seconds]
ta has joined #ruby
<latemus> Too bad
zarubin has quit [Remote host closed the connection]
ta has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
DTZUZU2 has joined #ruby
Qiong has quit [Read error: Connection reset by peer]
Qiong` has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
postmodern has quit [Quit: Leaving]
rippa has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
ta has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
ur5us has quit [Remote host closed the connection]
jphase has quit [Ping timeout: 252 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DTZUZU2 has quit [Quit: WeeChat 1.7]
dionysus69 has joined #ruby
DTZUZU2 has joined #ruby
conta1 has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
ta has quit [Remote host closed the connection]
Joufflu has quit [Ping timeout: 252 seconds]
NightMonkey has joined #ruby
Qiong` has quit [Ping timeout: 240 seconds]
zarubin1 has joined #ruby
tvw has joined #ruby
anisha has quit [Read error: No route to host]
Qiong` has joined #ruby
Antiarc has quit [Read error: Connection reset by peer]
Antiarc has joined #ruby
xuanrui has quit [Quit: Leaving]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
guardianx has quit [Remote host closed the connection]
anisha has joined #ruby
andikr has joined #ruby
ap4y has quit [Quit: WeeChat 1.9.1]
workmad3 has joined #ruby
mjolnird has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jgt has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
djbkd has joined #ruby
govg has joined #ruby
TomyWork has joined #ruby
tristanp has joined #ruby
hs366 has joined #ruby
Immune has quit [Ping timeout: 240 seconds]
truenito has joined #ruby
tristanp has quit [Ping timeout: 248 seconds]
mark_66 has joined #ruby
idiocrash has joined #ruby
megamos has joined #ruby
kies has joined #ruby
guardianx has joined #ruby
truenito has quit [Ping timeout: 248 seconds]
claudiuinberlin has joined #ruby
Burgestrand has joined #ruby
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta has joined #ruby
Silthias1 has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
Silthias has quit [Ping timeout: 240 seconds]
rgr has joined #ruby
DoubleMalt has joined #ruby
aufi has joined #ruby
whippythellama has quit [Ping timeout: 258 seconds]
BubonicPestilenc has joined #ruby
sysvalve has joined #ruby
rabajaj has joined #ruby
fmcgeough has joined #ruby
uneeb has quit [Remote host closed the connection]
kliq has joined #ruby
whippythellama has joined #ruby
DoubleMalt has quit [Quit: Leaving]
sniffer has quit [Quit: No Ping reply in 180 seconds.]
claudiuinberlin has quit [Ping timeout: 240 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
baweaver is now known as baweaver_away
sniffer has joined #ruby
sysvalve has quit [Read error: Connection reset by peer]
imode has quit [Ping timeout: 255 seconds]
danieli has quit [Remote host closed the connection]
danieli has joined #ruby
danieli has quit [Changing host]
danieli has joined #ruby
Dimik has quit [Ping timeout: 248 seconds]
guardianx has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
guardianx has joined #ruby
sysvalve has joined #ruby
gusrub has joined #ruby
guardianx has quit [Remote host closed the connection]
fumk has quit [Quit: It wasn't me, it was the papers :(]
fumk has joined #ruby
quobo has joined #ruby
ana_ has joined #ruby
anisha has quit [Read error: Connection reset by peer]
Burgestrand has quit [Quit: Closing time!]
Burgestrand has joined #ruby
Silthias has joined #ruby
mim1k has joined #ruby
rgr has quit [Quit: rgr]
Silthias1 has quit [Ping timeout: 260 seconds]
anisha has joined #ruby
ramfjord has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
jgt has quit [Ping timeout: 248 seconds]
BubonicPestilenc has quit [Quit: Textual IRC Client: www.textualapp.com]
ramfjord has quit [Ping timeout: 240 seconds]
jrheaton has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kassav_ has joined #ruby
jgt has joined #ruby
guille-moe has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
djbjd has joined #ruby
djbjd has quit [Client Quit]
marr has joined #ruby
cdg has joined #ruby
jan4 has joined #ruby
mim1k has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
megamos has quit [Ping timeout: 258 seconds]
workmad3 has joined #ruby
kassav__ has joined #ruby
Beams has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
kassav_ has quit [Ping timeout: 248 seconds]
lxsameer has joined #ruby
dnewkerk has quit [Quit: dnewkerk]
guardianx has joined #ruby
dhollin3 has joined #ruby
gusrub has quit [Remote host closed the connection]
enterprisey has quit [Ping timeout: 240 seconds]
dhollinger has quit [Ping timeout: 248 seconds]
guardianx has quit [Read error: Connection reset by peer]
kliq has quit [Ping timeout: 240 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
konsolebox has quit [Ping timeout: 248 seconds]
enterprisey has joined #ruby
erlend has quit [Read error: Connection reset by peer]
erlend has joined #ruby
b100s has joined #ruby
<b100s> hi2all
<b100s> what's wring with second example? why ther re only 2 elems? expected all three http://paste.org.ru/?fektyg
megamos has joined #ruby
jan41 has joined #ruby
<matthewd> b100s: The second argument isn't an index
jan41 has quit [Client Quit]
jan41 has joined #ruby
jan4 is now known as Guest55242
jan41 has quit [Client Quit]
<b100s> matthewd, why? there is syntax which allow me to say left and right border of indexes like [0..2]
jan41 has joined #ruby
<b100s> arr[2, 3] #=> [3, 4, 5]
<matthewd> I'm not sure what you're asking
<matthewd> Yes, that documentation matches the behaviour you're seeing
alnewkirk has joined #ruby
<tobiasvl> [0..2] is not inclusive. 0 and 1 are returned, not 2
<tobiasvl> other way around...
jan41 is now known as jan4
<tobiasvl> thought the second example was ...
<tobiasvl> which one are you asking about? you asked about the syntax [0..2] but you're asking about [0,2]?
<b100s> tobiasvl, yes, [0,2] actually all array; but i've gotten only 2 elems
<matthewd> >> (0..20).to_a[7..9]
<ruby[bot]> matthewd: # => [7, 8, 9] (https://eval.in/881422)
<b100s> need all using syntax [0,2]
<matthewd> >> (0..20).to_a[7, 3]
<ruby[bot]> matthewd: # => [7, 8, 9] (https://eval.in/881423)
<matthewd> Does that help?
<elomatreb> arr[0, 2] means "two elements starting from index 0"
<elomatreb> arr[0..2] means "all indices in the (inclusive) range 0..2 (0, 1, 2)"
<b100s> sorry, thanks; yes, my wrong
<b100s> pair of arguments (start and length)
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Freshnuts has quit [Quit: Leaving]
Serpent7776 has joined #ruby
Serpent has joined #ruby
_Serpent_ has joined #ruby
Serpent has quit [Read error: Connection reset by peer]
_Serpent_ has quit [Read error: Connection reset by peer]
alnewkirk has quit [Ping timeout: 248 seconds]
zarubin1 has quit [Quit: Leaving.]
enterprisey has quit [Ping timeout: 246 seconds]
paranoicsan has joined #ruby
fullstack has quit [Ping timeout: 252 seconds]
<fizzycola> 0...2 is exclusive of 2.
b100s has quit [Quit: Leaving]
fullstack has joined #ruby
huyderman has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
dc3 has quit [Ping timeout: 258 seconds]
alnewkirk has joined #ruby
Technodrome has joined #ruby
jgt has quit [Ping timeout: 240 seconds]
alnewkirk has quit [Ping timeout: 240 seconds]
Yxhuvud has quit [Remote host closed the connection]
Yxhuvud has joined #ruby
ramfjord has joined #ruby
<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.
<tobiasvl> Normally, only two dots are used. If a third dot ...
<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."
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]
ldnunes has joined #ruby
tcopeland has quit [Quit: tcopeland]
kliq has joined #ruby
Technodrome has joined #ruby
jgt has joined #ruby
kliq has quit [Ping timeout: 248 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase has joined #ruby
Burgestrand has quit [Quit: Closing time!]
kliq has joined #ruby
tristanp has joined #ruby
jphase has quit [Ping timeout: 246 seconds]
prutheus has joined #ruby
<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
<prutheus> how to do this?
<rob_> prutheus: Array#sort
<elomatreb> Are the exceptional (non-alphabetic) elements static or dynamic in some way?
tristanp has quit [Ping timeout: 248 seconds]
<prutheus> rob_: yes but i don't know how to use it
<prutheus> elomatreb: what do you mean?
<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
<prutheus> yes okay that would be a possible solution, but i thought i can write a custom sort function (block) which can handle that?
<prutheus> yes, they are static
<elomatreb> You *can*, but it's probably cleaner (more obvious) the way I described
<prutheus> elomatreb: ok, but could you laos show me a possible sorting block? just for interest
<elomatreb> Because that's what you're doing - You sort the array alphabetically, but also want some elements breaking that ordering
bha1 has joined #ruby
<prutheus> ok
apparition has joined #ruby
<bha1> Hi. I have a list called dates, which has multiple dates some of which may be duplicate. I was a sorted unique list. Which is more efficient? `dates.uniq.sort` or `dates.sort.uniq` ?
<bha1> *want
prutheus has quit [Quit: Page closed]
<matthewd> bha1: You could measure it, but I'd expect the first one
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 258 seconds]
sepp2k has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
raynold has joined #ruby
cdg has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 255 seconds]
cdg has quit [Ping timeout: 252 seconds]
megamos has quit [Ping timeout: 248 seconds]
alibby has joined #ruby
alibby has left #ruby [#ruby]
kliq has quit [Quit: Leaving]
kliq has joined #ruby
tcopeland has joined #ruby
vee__ has quit [Ping timeout: 255 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
InfinityFye has joined #ruby
fullstack has quit [Ping timeout: 255 seconds]
shinnya has joined #ruby
dupondje has joined #ruby
<dupondje> https://rubygems.org/gems/activesupport/versions/3.2.22.5 => Then I try to install => gem install activesupport -v=3.2.22.5 => concurrent-ruby requires Ruby version >= 1.9.3.
kassav_ has joined #ruby
<dupondje> but why does it try to install concurrent-ruby? its not listed as dependency there?
synthroid has joined #ruby
fullstack has joined #ruby
alfiemax has joined #ruby
simmaniac has joined #ruby
kassav__ has quit [Ping timeout: 246 seconds]
jamesaxl has quit [Ping timeout: 255 seconds]
Qiong`` has joined #ruby
fullstack has quit [Ping timeout: 255 seconds]
sysvalve has quit [Ping timeout: 258 seconds]
Qiong` has quit [Ping timeout: 248 seconds]
simmaniac is now known as sysvalve
<dupondje> # gem dependency activesupport -v=3.2.22.5
<dupondje> Gem activesupport-3.2.22.5
<dupondje> i18n (~> 0.6, >= 0.6.4, runtime)
<dupondje> multi_json (~> 1.0, runtime)
<dupondje> y
<dupondje> and i18n (0.6.11) & multi_json (1.12.2) are installed. So it should just install no?
fullstack has joined #ruby
<matthewd> dupondje: I recall seeing something weird about a concurrent-ruby dep appearing unexpectedly before
<matthewd> dupondje: Are you using the latest rubygems? (And are you using bundler?)
<dupondje> rubygems-1.3.7-5.el6.noarch => centos 6 rubygems :)
vee__ has joined #ruby
<dupondje> no bundler
charliesome has joined #ruby
<matthewd> I'd try bundler for a little more explicit control
encounter_ekamba has joined #ruby
Guest55242 has quit [Quit: WeeChat 1.4]
megamos has joined #ruby
ramfjord has joined #ruby
someuser_ has joined #ruby
andikr has quit [Remote host closed the connection]
Emmanuel_Chanel has joined #ruby
ShalokShalom_ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
bha11 has joined #ruby
bha1 has quit [Read error: Connection reset by peer]
ShalokShalom has quit [Ping timeout: 240 seconds]
bha11 has left #ruby [#ruby]
minimalism has quit [Quit: minimalism]
Technodrome has joined #ruby
Macaveli has joined #ruby
<Bish> there should be a shortcut for .select { |x| x[:shortcut] }
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has quit [Ping timeout: 248 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<matthewd> Bish: There is in Rails :)
tvw has quit []
encounter_ekamba has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has joined #ruby
jphase has joined #ruby
John__ has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Bish> mahlon: how does that look?
Macaveli has joined #ruby
<dminuoso> Bish: It's trivial if you just make a lens helper function.
Macaveli has quit [Max SendQ exceeded]
<Bish> that word i only hard in haskell
<Bish> heard*
<dminuoso> Bish: def at(sym); -> (e) { e[sym] }; end; .select(&at(:shortcut))
Macaveli has joined #ruby
<Bish> that'd be a lens?
<dminuoso> Bish: at creates a lens, yes.
<Bish> i mean is is the same thing as the haskelleers talk about?
<dminuoso> Not in the real haskell sense, but its close enough
<Bish> :(
<dminuoso> Bish: Conceptually, yes.
<Bish> thought i grasp it
<Bish> well thats easy.
<Bish> but i was rather searching for something like
<Bish> &:h_shortcut
<Bish> i know.. that is ambigious
<dminuoso> Bish: that also constructs a lens so-to-speak :)
encounter_ekamba has joined #ruby
<Bish> but maybe &&:shortcut, &?:shortcut
<dminuoso> It's equivalent to Ramda's R.prop('h_shortcut')
<Bish> the fuck is ramda
milardovich has joined #ruby
<dminuoso> Bish: A few days ago I came up with this concept: class Integer; def to_proc() ->(e) { e[self] }; end; end
encounter_ekamba has quit [Client Quit]
milardovich has quit [Client Quit]
<Bish> [1,2,3].instance_eval(&1)
<Bish> :D or what
<dminuoso> >> class Integer; def to_proc() ->(e) { e[self] }; end; end; [[1,2],[3,4],[5,6]].map(&0)
<ruby[bot]> dminuoso: # => [1, 3, 5] (https://eval.in/881627)
Psybur has joined #ruby
<Bish> lol
<dminuoso> Bish: The reason it's sexy is when you define Proc#* as function composition, you can do something like &0 * &:foo
<Bish> hilarious
conta has quit [Ping timeout: 260 seconds]
conta1 is now known as conta
<Bish> how would &0 * &:foo look like
<dminuoso> Bish: thing when you want to conceptualize the access pattern as a function: obj.foo[0]
<dminuoso> *think
<dminuoso> or perhaps obj.foo.bar[0]
<dminuoso> then it becomes &0 * &:bar * &:foo
<Bish> i should become a haskell monk
encounter_ekamba has joined #ruby
<dminuoso> Bish: A lens combines a reader *and* a writer function into a composable object.
cdg has joined #ruby
<dminuoso> Though it's part of a more general concept called optics
mson has joined #ruby
alnewkirk has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
zehbax has joined #ruby
<dminuoso> Bish: https://eval.in/881640
<dminuoso> It's really simple :)
skotchpine has quit [Ping timeout: 252 seconds]
skotchpine has joined #ruby
<Bish> yeah i understand that.. but those are justs shortcuts
<Bish> didnt you say something about writing?
<Bish> ahh, wait i get it... what.
<Bish> thats cool.
zapata has quit [Quit: WeeChat 1.9.1]
<Bish> you get a language that way, kinda.
<matthewd> Bish: The Rails method is .pluck(:shortcut)
<Bish> .. horrible name
<dminuoso> Bish: The language you are referring to is called "functional programming" :-)
skotchpine has quit [Ping timeout: 252 seconds]
skotchpine has joined #ruby
<Bish> well, yes i know that, but this particular case of using * "overloading"
<Bish> for that gives u ruby. kinda.
<Bish> gives u a language * in ruby
<Bish> would be super useful when having the user define stuff
<dminuoso> Bish: One of the most fundamental building blocks of functional programming is composing two functions.
<Bish> when starting my current project, i was scared of "letting the user program"
<Bish> horrified*
simmaniac has joined #ruby
<Bish> now i did it several times.. its still terrifying but somehow works
<Bish> dminuoso: i read alot about functional programming, wish i had the brain capacity
<dminuoso> Bish: In Mathematics you denote this as f ∘ g, in haskell you write f . g
<dminuoso> So it's just logical to find a way to do this as short and concise in Ruby.
<Bish> ? wouldnt you just write
<Bish> a = b c
DLSteve has joined #ruby
<dminuoso> No that's something else, that's applying c to the function b.
ShalokShalom_ is now known as ShalokShalom
<Bish> oh, really?
<dminuoso> composition is constructing a chain of functions, where the output of one is piped to the next.
<Bish> whats the differene?
<Bish> guessing . is just a infix function chaining them?
<dminuoso> Yes precisely.
<Bish> so i could do the same with parenthesis?
<dminuoso> Nope.
<dminuoso> The point is you construct a new function that is not yet called.
<dminuoso> i.e.: def compose(a, b); ->(*args) { a(b(*args)) }
<Bish> yeah i get it, but thats true for everything in haskell
<dminuoso> i.e.: def compose(a, b); ->(*args) { a(b(*args)) }; end
<Bish> hm, thats what i meant whent alking about the brain capacity
<dminuoso> Bish: the point is to construct a new function from two functions.
<Bish> i understand what youre saying.. i dont grasp it completely
<Bish> i mean, i know about functors, which implies having function as parameters
<dminuoso> Not really :P
charliesome has quit [Ping timeout: 258 seconds]
<dminuoso> Accepting functions as parameters is called higher order functions.
<dminuoso> Functors are.. well anything where .map makes sense on.
<Bish> well.. functors always need those, dont they?
<Bish> ahh, i see.
sysvalve has quit [Ping timeout: 260 seconds]
rfoust has joined #ruby
<Bish> i remember map being the functor
<dminuoso> Bish: Well it's rather the type + map
Genya has left #ruby ["Textual IRC Client: www.textualapp.com"]
<dminuoso> those two are a functor.
<dminuoso> it's a pair :)
<dminuoso> So Array + map is a functor.
charliesome has joined #ruby
<dminuoso> Or (Tree, map)
<Bish> reverse . sort is equivalent to \x -> reverse (sort x)
<Bish> isn't that what i meant?
<dminuoso> Yes precisely.
<Bish> with parenthesis
duckpuppy has joined #ruby
encounter_ekamba has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> Bish: If that's what you meant then nevermind.
paranoicsan has quit [Quit: paranoicsan]
<Bish> cool!, so there is no difference
<dminuoso> Bish: But you also need that lambda surrounding it :)
<Bish> that lambda is -> ?
<dminuoso> \x -> ...
<dminuoso> is equivalent to rubys: -> (x) { ... }
<Bish> what does it do in haskell?
<dminuoso> Yes.
<Bish> just anonymous function?
<dminuoso> yup
<Bish> so no difference at all, it just doesnt have a name?
<dminuoso> Yup.
skotchpine has quit [Ping timeout: 252 seconds]
<Bish> lol.
<Bish> for what do i need it for ?
<Bish> in that case
<dminuoso> Bish: The idea is to not call a function.
bmurt has joined #ruby
<Bish> well, do functions ever get called in functional languages?
<Bish> i mean.. arent they all evaluated like a huge ass cascade
<Bish> if they language is completely pure.. there is only that option..
<dminuoso> The point is to construct a new function from other functions.
<dminuoso> By chaining them together. But chaining does not invoke them.
<Bish> i understand that
<Bish> but i dont understand why
<Bish> f x = g h x
<Bish> doesnt do that
<dminuoso> Bish: Yes it does that exactly.
<Bish> but f = g h
<Bish> doesnt?
<dminuoso> f x = g h x ≡ f = \x -> g h x
<Bish> because it would just give h to g
<dminuoso> Bish: f x = ... is syntax sugar for: f = \x -> ...
<dminuoso> well its a bit more actually, since it also allows you to do things like pattern matching
<Bish> i started to read a haskell book, thats why i know the syntax
<Bish> f y = ... had pattern matching too
<Bish> if i remember correclty?
sunrunner20 has quit [Read error: Connection reset by peer]
<dminuoso> sure if you do: f (x:xs) = ... for example
sunrunner20 has joined #ruby
<dminuoso> Bish: at any rate, the concept of composing functions is the same that you write methods in imperative ruby style.
<dminuoso> Bish: it encapsulates the notion that when you have: "first to a. then b. then c" you can put that whole thing into a single function.
ramfjord has joined #ruby
<Bish> yeh i get it, my problems of understanding lie deeper ^^
skotchpine has joined #ruby
<dminuoso> It doesn't require you to become a haskell expert though. If you are comfortable with JavaScript, you can use this to study functional programming too.
<dminuoso> After a while you may even notice that Ruby has lots of these ideas incorporated in not-immediately-obvious ways.
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnoda has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
<dminuoso> Enumerable is packed with pure functional ideas for example. :)
fmcgeough has joined #ruby
jrafanie has joined #ruby
encounter_ekamba has joined #ruby
sylario has joined #ruby
dnoda has left #ruby [#ruby]
charliesome has quit [Ping timeout: 248 seconds]
ShekharReddy has joined #ruby
jinie has quit [Ping timeout: 240 seconds]
dnoda has joined #ruby
kobain has joined #ruby
jinie has joined #ruby
dnoda has quit []
Burgestrand has joined #ruby
rfoust has quit [Quit: Textual IRC Client: www.textualapp.com]
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 255 seconds]
jamesaxl has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
polishdub has joined #ruby
sysvalve has joined #ruby
phate408 has joined #ruby
bmurt has joined #ruby
d^sh_ is now known as d^sh
jrafanie has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta has quit [Remote host closed the connection]
bmurt has joined #ruby
jrheaton has joined #ruby
dhollin3 is now known as dhollinger
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
Rapture has joined #ruby
ResidentBiscuit has joined #ruby
__Yiota has joined #ruby
workmad3 has joined #ruby
hs366 has quit [Quit: Leaving]
Technodrome has joined #ruby
tristanp has joined #ruby
workmad3 has quit [Ping timeout: 258 seconds]
jrheaton has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 246 seconds]
<Bish> dminuoso: i get that, but pure functional ideas wont let you have the full spectrum on what is cool about that
<Bish> starting with fukin STM
<Bish> i would kill to have something like that
<Bish> or even HTM that is
<Bish> well technicially htm could bring stm-like features everyhwere.. not sure though
alfiemax_ has quit [Remote host closed the connection]
dc3 has joined #ruby
jrheaton has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
megamos has quit [Ping timeout: 252 seconds]
shinnya has quit [Ping timeout: 240 seconds]
eaxxae has joined #ruby
gregf_ has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
mtkd has joined #ruby
alfiemax has quit [Remote host closed the connection]
anisha has quit [Quit: This computer has gone to sleep]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
renfri has joined #ruby
renfri has quit [Client Quit]
fumk has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
zehbax has quit [Ping timeout: 246 seconds]
fumk has joined #ruby
ana_ has quit [Quit: Leaving]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
idiocrash has quit [Quit: Textual IRC Client: www.textualapp.com]
cdg has joined #ruby
TheDracle has joined #ruby
eaxxae has quit []
gusrub has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
Burgestrand has quit [Quit: Good bye and have a nice day!]
Macaveli has joined #ruby
guacamole has joined #ruby
sagax has quit [Quit: Konversation terminated!]
rabajaj has quit [Quit: Leaving]
encounter_ekamba has quit [Quit: Textual IRC Client: www.textualapp.com]
bruno- has joined #ruby
conta has quit [Ping timeout: 248 seconds]
synthroid has quit [Remote host closed the connection]
elcontrastador has joined #ruby
tristanp has quit []
gizmore has joined #ruby
d10n-work has joined #ruby
<dminuoso> Bish: Lack of side effects lets you reason about code much more strongly. In fact the notion that values can "change" ("mutability") is generally poor.
aufi has quit [Quit: Leaving]
<dminuoso> Bish: I realized this the first time I tried to debug a bison generated parser (which is basically a big huge freaking state machine).
<dminuoso> Writing or debugging handcrafted recursive descent parsers is a different thing entirely.
Qiong``` has joined #ruby
apparition has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Qiong`` has quit [Read error: Connection reset by peer]
orbyt_ has joined #ruby
dinfuehr has quit [Ping timeout: 258 seconds]
dinfuehr has joined #ruby
cagomez has joined #ruby
TomyWork has quit [Ping timeout: 240 seconds]
jobewan has joined #ruby
synthroid has joined #ruby
sysvalve has quit [Ping timeout: 240 seconds]
simmaniac has quit [Ping timeout: 252 seconds]
TheDracle has quit [Ping timeout: 248 seconds]
TheDracle has joined #ruby
alfiemax has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
cloutz has quit [Ping timeout: 240 seconds]
uZiel has joined #ruby
mark_66 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
vee__ has quit [Ping timeout: 240 seconds]
Serpent7776 has quit [Quit: Leaving]
Junaos has quit [Quit: ZNC - http://znc.in]
mim1k has joined #ruby
Cohedrin_ has joined #ruby
Junaos has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tolerablyjake has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 260 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vee__ has joined #ruby
guacamole has joined #ruby
TomyLobo2 has joined #ruby
jaruga has quit [Quit: jaruga]
lxsameer has quit [Quit: WeeChat 1.7]
jaruga has joined #ruby
s2013 has joined #ruby
cschneid_ has joined #ruby
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit []
kassav_ has quit [Quit: kassav_]
shinnya has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
swills has quit [Remote host closed the connection]
lagweezle_away is now known as lagweezle
workmad3 has joined #ruby
jaruga has quit [Quit: jaruga]
lacour has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vee__ has quit [Ping timeout: 240 seconds]
thinkpad has quit [Ping timeout: 248 seconds]
Beams has quit [Quit: .]
guacamole has joined #ruby
dc3 has quit [Ping timeout: 258 seconds]
nikivi has quit [Ping timeout: 264 seconds]
mim1k has quit [Ping timeout: 258 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
arup_r has joined #ruby
chouhoul_ has joined #ruby
<arup_r> Any idea why am I am getting syntax error https://gist.github.com/aruprakshit/acebb9e1c81cb5bc74e15fa27db7c9fb ? I am on 2.4.2
chouhou__ has joined #ruby
chouho___ has joined #ruby
<tbuehlmann> why's there a space in `playlist_items_list_by_playlist_id (`?
shinnya has quit [Ping timeout: 240 seconds]
chouh____ has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
swills has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<skotchpine> looks like a syntax error
chouhoulis has joined #ruby
swills_ has joined #ruby
chouhoul_ has quit [Ping timeout: 255 seconds]
swills_ has quit [Client Quit]
chouhoul_ has joined #ruby
chouhou__ has quit [Ping timeout: 248 seconds]
vee__ has joined #ruby
chouhou__ has joined #ruby
chouho___ has quit [Ping timeout: 258 seconds]
[Butch] has joined #ruby
chouho___ has joined #ruby
chouh____ has quit [Ping timeout: 252 seconds]
<arup_r> thanks. that is it. Eye was not able to catch that.. so needed another pairs of eyes :D
chouh____ has joined #ruby
chouhoulis has quit [Ping timeout: 252 seconds]
__Yiota has joined #ruby
chouhoulis has joined #ruby
chouhoul_ has quit [Ping timeout: 258 seconds]
kies has quit [Ping timeout: 255 seconds]
chouhoul_ has joined #ruby
chouhou__ has quit [Ping timeout: 240 seconds]
Ltem has joined #ruby
chouhou__ has joined #ruby
chouho___ has quit [Ping timeout: 258 seconds]
chouho___ has joined #ruby
chouh____ has quit [Ping timeout: 258 seconds]
chouh____ has joined #ruby
chouhoulis has quit [Ping timeout: 258 seconds]
chouhoulis has joined #ruby
chouhoul_ has quit [Ping timeout: 252 seconds]
nikivi has joined #ruby
chouhoul_ has joined #ruby
selim has quit [Ping timeout: 240 seconds]
chouhou__ has quit [Ping timeout: 240 seconds]
chouhou__ has joined #ruby
chouho___ has quit [Ping timeout: 258 seconds]
chouho___ has joined #ruby
chouh____ has quit [Ping timeout: 255 seconds]
arup_r has quit []
chouh____ has joined #ruby
selim has joined #ruby
chouhoulis has quit [Ping timeout: 255 seconds]
chouhoulis has joined #ruby
chouhoul_ has quit [Ping timeout: 260 seconds]
dc3 has joined #ruby
chouhou__ has quit [Ping timeout: 240 seconds]
chouhoul_ has joined #ruby
chouhou__ has joined #ruby
chouho___ has quit [Ping timeout: 255 seconds]
chouho___ has joined #ruby
chouh____ has quit [Ping timeout: 240 seconds]
chouh____ has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
chouhoul_ has quit [Ping timeout: 255 seconds]
chouhoul_ has joined #ruby
chouhou__ has quit [Ping timeout: 240 seconds]
chouhou__ has joined #ruby
chouho___ has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 240 seconds]
guille-moe has quit [Ping timeout: 240 seconds]
chouh____ has quit [Ping timeout: 240 seconds]
chouho___ has joined #ruby
guacamole has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
chouhoul_ has quit [Ping timeout: 240 seconds]
chouh____ has joined #ruby
code_zombie has joined #ruby
weaksauce has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouhoul_ has joined #ruby
chouhou__ has quit [Ping timeout: 260 seconds]
chouho___ has quit [Ping timeout: 246 seconds]
chouhou__ has joined #ruby
goyox86 has joined #ruby
chouho___ has joined #ruby
jphase has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 248 seconds]
chouho___ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
zautomata1 has quit [Quit: WeeChat 1.4]
ta has joined #ruby
chouh____ has quit [Ping timeout: 246 seconds]
jrheaton has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
InfinityFye has quit [Quit: Leaving]
chouhoul_ has quit [Ping timeout: 248 seconds]
chouhou__ has quit [Ping timeout: 240 seconds]
synthroid has quit [Remote host closed the connection]
hahuang65 has joined #ruby
synthroid has joined #ruby
ta has quit [Remote host closed the connection]
jamesaxl has quit [Read error: Connection reset by peer]
mjuszczak has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
jamesaxl has joined #ruby
ldnunes has quit [Read error: Connection reset by peer]
jrheaton has joined #ruby
DTZUZU2 has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
jrafanie has joined #ruby
xuanrui has joined #ruby
goyox86 has quit [Quit: goyox86]
ldnunes has joined #ruby
imode has joined #ruby
marxarelli|afk is now known as marxarelli
jphase has joined #ruby
ivanskie has joined #ruby
Psybur has quit [Read error: Connection reset by peer]
jrheaton has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Psybur has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kies has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
cagomez has quit [Remote host closed the connection]
guacamole has joined #ruby
cagomez has joined #ruby
uZiel has joined #ruby
uZiel has quit [Remote host closed the connection]
goyox86 has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
weaksauce has joined #ruby
cagomez has quit [Ping timeout: 248 seconds]
Cohedrin_ has joined #ruby
synthroid has quit [Remote host closed the connection]
weaksauce has quit [Read error: Connection reset by peer]
claudiuinberlin has joined #ruby
snath has joined #ruby
snath has left #ruby [#ruby]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skre has joined #ruby
ForeignBiscuit has joined #ruby
bmurt has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mostlybadfly has joined #ruby
Technodrome has joined #ruby
vee__ has quit [Ping timeout: 240 seconds]
xuanrui has quit [Ping timeout: 258 seconds]
JR042444__ has joined #ruby
ResidentBiscuit has quit [Ping timeout: 258 seconds]
enterprisey has joined #ruby
vee__ has joined #ruby
uZiel has joined #ruby
tolerablyjake has joined #ruby
ForeignBiscuit has quit [Ping timeout: 240 seconds]
ForeignBiscuit has joined #ruby
ResidentBiscuit has joined #ruby
Puffball_ has joined #ruby
JR042444__ has quit [Ping timeout: 260 seconds]
Puffball has quit [Ping timeout: 240 seconds]
ForeignBiscuit has quit [Ping timeout: 260 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mjuszczak has quit []
TheDracle has quit [Ping timeout: 240 seconds]
DTZUZU2 has joined #ruby
ramfjord has joined #ruby
claudiuinberlin has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
moei has quit [Quit: Leaving...]
goyox86 has quit [Quit: goyox86]
SeepingN has joined #ruby
LoRez has quit [Ping timeout: 248 seconds]
Technodrome has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Bock has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
chouhoul_ has joined #ruby
Joufflu has joined #ruby
rabajaj has joined #ruby
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
chouhoulis has quit [Ping timeout: 240 seconds]
mjuszczak has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
__Yiota has joined #ruby
cdg has quit [Remote host closed the connection]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LoRez has joined #ruby
guacamole has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nopolitica has quit [Ping timeout: 252 seconds]
Guest97372 has joined #ruby
goyox86 has joined #ruby
ResidentBiscuit has quit [Ping timeout: 246 seconds]
SegFaultAX has joined #ruby
DTZUZU2 has quit [Quit: WeeChat 1.7]
John__ has quit [Ping timeout: 258 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TheDracle has joined #ruby
Technodrome has joined #ruby
goyox86 has quit [Quit: goyox86]
3NAABQA8W has joined #ruby
ta has joined #ruby
Dimik has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ltem has quit [Ping timeout: 248 seconds]
ShekharReddy has quit [Quit: Connection closed for inactivity]
cagomez has joined #ruby
ResidentBiscuit has joined #ruby
cliq has joined #ruby
hahuang65 has quit [Ping timeout: 252 seconds]
ta has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 260 seconds]
claudiuinberlin has joined #ruby
_sfiguser has joined #ruby
kliq has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
nopolitica has joined #ruby
kliq has joined #ruby
conta has joined #ruby
sspreitz has quit [Remote host closed the connection]
cliq has quit [Ping timeout: 248 seconds]
alex`` has quit [Ping timeout: 246 seconds]
skre has quit [Quit: leaving]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has quit [Ping timeout: 258 seconds]
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
nowhere_man has quit [Ping timeout: 258 seconds]
ta has joined #ruby
marxarelli has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jgt has quit [Ping timeout: 246 seconds]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
ta has quit [Remote host closed the connection]
ta has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
Ltem has joined #ruby
blackmesa has joined #ruby
chouhoulis has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
swirlsMD has joined #ruby
<swirlsMD> Howdy folks, wondering if anyone had some tricks / tips on how to supress output while running Rake?
<havenwood> swirlsMD: redirect output to /dev/null
cagomez has quit [Remote host closed the connection]
<swirlsMD> havenwood: Not a bad thought, will that work for when Rake outputs its commands?
<havenwood> swirlsMD: or `$stdout` and `$stderr` to /dev/null
<swirlsMD> havenwood: trying to prevent some creds from getting posted
<havenwood> swirlsMD: for example, try: rails -h > /dev/null 2>&1
ramfjord has quit [Ping timeout: 248 seconds]
<swirlsMD> havenwood: Will do, thanks!
ur5us has joined #ruby
jrheaton has joined #ruby
claudiuinberlin has joined #ruby
gix has quit [Ping timeout: 248 seconds]
blackmesa has quit [Quit: WeeChat 1.9.1]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<swirlsMD> havenwood: How about when using 'sh' in the rakefile itself? Or should I just avoid using 'sh'
cschneid_ has quit [Remote host closed the connection]
<havenwood> swirlsMD: Here's an example of redirecting stdout to /dev/null then back again to what it was:
<havenwood> dev_null = File.open File::NULL, 'w'; $stdout = dev_null; puts 'hi'; $stdout = STDOUT; dev_null.close
cschneid_ has joined #ruby
gix has joined #ruby
<swirlsMD> havenwood: cooool, much thanks
<havenwood> swirlsMD: i'm not sure i follow about sh
<matthewd> You should probably avoid using 'sh' in a way that reveals secrets, at least
GodFather has joined #ruby
<matthewd> Because that implies said secrets are also visible as parameters to the subprocess while it's running
<swirlsMD> havenwood: Agree, found a stack post about using sh for shelling out in a rake. We're doing weird stuff
<swirlsMD> matthewd: Totally agree, trying to keep them out
jamesaxl has quit [Read error: Connection reset by peer]
<swirlsMD> I guess the question should be, what is best practice for shelling out when using rake?
jamesaxl has joined #ruby
ramfjord has joined #ruby
<matthewd> We might be able to help more if you shift up a layer, and describe what you're trying to do at a higher level
<swirlsMD> Certainly, its kind of muddy, so don't judge too harshly.
<matthewd> The best practice to run shell commands from rake is to use the #sh helper; that's what it's there for. But it sounds like you have some other constraints.
<swirlsMD> Working with another team on a build pipeline. They've standardized on using make or rake files to run tasks
<swirlsMD> We opted for rake
<swirlsMD> Some of the tasks we need to run are around docker or terraform
<swirlsMD> Of which, a few of those needs creds
cschneid_ has quit [Ping timeout: 255 seconds]
<swirlsMD> Trying to come up with a way to essentially have rake run a terraform plan/apply (which needs AWS creds)
<swirlsMD> Hence the "trying supress output question"
swirlsMD has quit [Quit: WeeChat 1.9]
bmurt has joined #ruby
swirlsMD has joined #ruby
<swirlsMD> and back, thanks computer.
<matthewd> Can you pass them via environment variables instead?
<swirlsMD> Potentially, its a bit of a debate on that front
<swirlsMD> Ultimately we will use Vault to handle the creds, but currently thats not ready, we are trying to work around it
baweaver_away is now known as baweaver
<matthewd> Putting secrets in command line arguments is generally a bad idea, regardless of whether the command is being logged by rake
ramfjord has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<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
ledestin has joined #ruby
<swirlsMD> matthewd: good points, since were iterating, first part is keeping out of output (since that gets logged somewhere...) Ideally we will have a better solution for this
<swirlsMD> Appreciate the responses, very helpful
ta has quit [Remote host closed the connection]
TomyLobo2 has quit [Read error: Connection reset by peer]
mson has quit [Quit: Connection closed for inactivity]
<matthewd> At a glance, it sounds like you can `sh('your', 'command', 'here', verbose: false)`
postmodern has joined #ruby
mson has joined #ruby
hahuang65 has joined #ruby
3NAABQA8W has quit [Quit: 3NAABQA8W]
goyox86 has joined #ruby
jgt has joined #ruby
biberu has quit []
goyox86 has quit [Client Quit]
cschneid_ has joined #ruby
nowhere_man has joined #ruby
gusrub has quit [Remote host closed the connection]
imode has quit [Ping timeout: 258 seconds]
ramfjord has joined #ruby
imode has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.9.1]
goyox86 has joined #ruby
eckhardt has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
gr33n7007h has joined #ruby
goyox86 has quit [Client Quit]
imode has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
goyox86 has joined #ruby
charliesome has joined #ruby
PaulCapestany has quit [Quit: .]
cschneid_ has quit [Read error: Connection reset by peer]
<zacts> if I author a ruby gem, what license is conventional for it?
cschneid_ has joined #ruby
<zacts> 'same terms as ruby' or something like that?
rob_ has left #ruby [#ruby]
PaulCapestany has joined #ruby
duckpuppy has quit [Ping timeout: 258 seconds]
ramfjord has joined #ruby
<matthewd> zacts: MIT
<matthewd> I think `bundle gem` suggests it, actually
<zacts> ok, thanks :-)
oded has joined #ruby
ahrs has quit [Remote host closed the connection]
cdg has joined #ruby
ahrs has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
cdg_ has joined #ruby
bperry_ has joined #ruby
<bperry_> hi, i'm looking for an equivalent ruby class (probably in the openssl wrapper) for this RSAPublicNumbers class from the python code
<bperry_> I am being given a modulus and an exponent for a public key in a non-standard way
<bperry_> I would like to use the OpenSSL::PKey:RSA class but it only accepts PEM/DER format certs
ldnunes has quit [Quit: Leaving]
Psybur has quit [Ping timeout: 260 seconds]
<bperry_> I know the two numbers that make up the public key though
swirlsMD has quit [Ping timeout: 255 seconds]
cdg has quit [Ping timeout: 252 seconds]
s2013 has joined #ruby
swirlsMD has joined #ruby
<bperry_> it's a stupid problem that I get the two numbers in a non-standard format instead of a regular cert but I have zero power over that :/
goyox86 has quit [Ping timeout: 258 seconds]
ramfjord has quit [Ping timeout: 258 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
<bperry_> aha
ramfjord has joined #ruby
someuser_ has quit [Ping timeout: 252 seconds]
s2013 has quit [Read error: Connection reset by peer]
sniffer has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
goyox86 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
murosai has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
<murosai> how can i iterate over the fields of a dictionary in the same order they were specified in code?
<elomatreb> If by dictionary you mean hash you can just use each, Ruby hashes are enumerated in the order the keys were inserted
cagomez has joined #ruby
dionysus69 has quit [Ping timeout: 258 seconds]
charliesome_ has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 248 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
charliesome has joined #ruby
<murosai> what i actually want to do is add the values of the hash separated by '+' sign, like hash[:key1] '+' + hash[:key2], i suspect there is more elegant way to do this
oded has quit [Quit: Konversation terminated!]
<murosai> like string.join(hash.values(), '+') or something
<matthewd> Yeah; hash.values.join("+")
charliesome_ has quit [Read error: Connection reset by peer]
<murosai> and values also list values always in same order?
<murosai> order of insertion
<matthewd> Yes
xuanrui has joined #ruby
mjuszczak has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
swirlsMD has quit [Ping timeout: 252 seconds]
mjuszczak has joined #ruby
John__ has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
hahuang65 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
gr33n7007h is now known as al2o3-cr
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome_ has joined #ruby
synthroid has quit []
jgt has quit [Ping timeout: 240 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
jgt has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
goyox86 has quit [Quit: goyox86]
larcara has joined #ruby
larcara has quit [Client Quit]
jrheaton has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 248 seconds]
pwnd_nsfw has quit [Quit: Leaving]
rabajaj has quit [Quit: Leaving]
<lagweezle> Is there an equivalent Ruby-ism to Python's "if thing in collection:" or "if substring in string:" statement/check ?
hahuang65 has quit [Ping timeout: 252 seconds]
Pierreb has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<elomatreb> lagweezle: collection/string.include?(thing)
<lagweezle> Oh. Yeah. Duh. :facepalms: Thank you, elomatreb!
<elomatreb> But you'll often see regex operations for the substring check as well
Technodrome has joined #ruby
RavinduL has joined #ruby
<lagweezle> Noooow I just have to remember what the hell I was doing that prompted the question. >.<
<elomatreb> :)
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamesaxl has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
jamesaxl has joined #ruby
whippythellama has quit [Ping timeout: 255 seconds]
alnewkirk has quit [Ping timeout: 240 seconds]
RavinduL has left #ruby ["KTHXBAI"]
sepp2k has quit [Quit: Leaving.]
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
ozcanesen has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
mtkd has quit [Read error: Connection reset by peer]
dviola has joined #ruby
kapil___ has joined #ruby
mtkd has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
whippythellama has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has joined #ruby
kliq has quit [Read error: Connection reset by peer]
[Butch] has quit [Quit: I'm out . . .]
drcode has quit [Ping timeout: 240 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
Immune has joined #ruby
ta has joined #ruby
xuanrui has quit [Ping timeout: 255 seconds]
jamesaxl has joined #ruby
nwm has quit [Read error: Connection reset by peer]
FrostCandy has joined #ruby
ta has quit [Remote host closed the connection]
nofxx has quit [Remote host closed the connection]
ta has joined #ruby
nopolitica has quit [Ping timeout: 255 seconds]
chouhoulis has quit []
nofxx has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tcopeland has quit [Quit: tcopeland]
sepp2k has joined #ruby
mim1k has joined #ruby
kus_ubuntui686 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 258 seconds]
xuanrui has joined #ruby
swirlsMD has joined #ruby
nopolitica has joined #ruby
Rapture has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
marxarelli is now known as marxarelli|afk
ozcanesen has quit [Quit: ozcanesen]
chopin has joined #ruby
jamesaxl has joined #ruby
chopin has quit [Client Quit]
ozcanesen has joined #ruby
badrsahla has joined #ruby
xuanrui has quit [Ping timeout: 252 seconds]
ramfjord has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
rhyselsmore has joined #ruby
serhart has joined #ruby
FrostCandy has quit []
minimalism has joined #ruby
<baweaver> Why is it that Array doesn't have a === defined? Array#include? makes sense.
serhart has quit [Quit: serhart]
serhart has joined #ruby
goyox86_ has joined #ruby
orbyt_ has joined #ruby
<elomatreb> You can sort of get that in case statements by splatting an array, fwiw
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
serhart has quit [Ping timeout: 258 seconds]
badrsahla has quit [Remote host closed the connection]
badrsahla has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
<cagomez> If I want to execute a lambda or proc inside a method, does it matter which I use if I won't use `return`?
ozcanesen has quit [Quit: ozcanesen]
dn` has quit [Quit: dn`]
jphase has quit [Ping timeout: 252 seconds]
serhart has joined #ruby
whippythellama has quit [Ping timeout: 252 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ltem has quit [Quit: Leaving]
serhart has quit [Client Quit]
swirlsMD has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
mjuszcza_ has joined #ruby
mjuszcza_ has quit [Max SendQ exceeded]
whippythellama has joined #ruby
mjuszcza_ has joined #ruby
mjuszczak has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
mjuszcza_ has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
Hien has quit [Ping timeout: 264 seconds]
<havenwood> cagomez: lambda has strict arity with it's arguments, you have to pass the number of arguments that it expects
<havenwood> proc will let you just do it wrong and proceed
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> *most* lambdas have strict arity, I should say
ramfjord has joined #ruby
Hien has joined #ruby
swirlsMD has joined #ruby
bperry_ has left #ruby [#ruby]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
enterprisey has quit [Remote host closed the connection]
badrsahla has quit [Remote host closed the connection]
badrsahla has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
<havenwood> and a proc can have strict arity: https://bugs.ruby-lang.org/issues/12671
ramfjord has joined #ruby
kus_ubuntui686 has quit [Ping timeout: 240 seconds]
badrsahla has quit [Ping timeout: 255 seconds]
<havenwood> I guess it's much easier to make a proc that checks its arguments than a lambda that doesn't.
cagomez has quit [Remote host closed the connection]
<havenwood> cagmz_: But no, it doesn't really matter.
<havenwood> Since lambdas are stricter with arguments by default and don't have block-absorbing magic, I typically use them.
tcopeland has joined #ruby
zehbax has joined #ruby
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang65 has quit [Quit: WeeChat 1.9.1]
guacamole has joined #ruby
cagomez has joined #ruby
hahuang65 has joined #ruby
postmodern has quit [Remote host closed the connection]
postmodern has joined #ruby
jphase has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
zapata has joined #ruby
badrsahla has joined #ruby
marxarelli|afk is now known as marxarelli
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
thinkpad has joined #ruby
cdg has joined #ruby
AndBobsYourUncle has joined #ruby
jphase has quit [Ping timeout: 252 seconds]
postmodern has quit [Remote host closed the connection]
postmodern has joined #ruby
cdg_ has quit [Ping timeout: 252 seconds]
Technodrome has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
megamos has joined #ruby
<cagomez> havenwood: can I pass a function around like so: Proc.new { myFunc } and pass it different variables in other classes?
cagomez has quit []
badrsahla has quit [Remote host closed the connection]
badrsahla has joined #ruby
jobewan has quit [Ping timeout: 255 seconds]
badrsahla has quit [Ping timeout: 255 seconds]
jgt has quit [Read error: Connection reset by peer]
cschneid_ has quit [Remote host closed the connection]
badrsahla has joined #ruby
jgt has joined #ruby
cschneid_ has joined #ruby
goyox86_ has quit [Ping timeout: 255 seconds]
zehbax has quit [Remote host closed the connection]
cschneid_ has quit [Ping timeout: 252 seconds]
sepp2k has quit [Read error: Connection reset by peer]
ghormoon has quit [Remote host closed the connection]
mim1k has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
dkam has joined #ruby
TheDracle has quit [Ping timeout: 260 seconds]
basket has joined #ruby
<dkam> I'm trying to Marshal.load some data - but I get an error: TypeError: incompatible marshal file format (can't be read) ; format version 4.8 required; 99.111 given.
<dkam> That's from the same system that created the dump
mim1k has quit [Ping timeout: 260 seconds]
dkam has quit [Client Quit]
shinnya has joined #ruby
dkam has joined #ruby
jinie has quit [Ping timeout: 252 seconds]
techn1cs has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 252 seconds]
Cohedrin_ has quit [Read error: Connection reset by peer]
jinie has joined #ruby
bruno- has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
Cohedrin_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
megamos has quit [Ping timeout: 248 seconds]
phlebas_ has joined #ruby
Dimik has quit [Ping timeout: 248 seconds]
whippythellama has quit [Ping timeout: 255 seconds]
ghormoon has joined #ruby
Guest97372 has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 258 seconds]
ramfjord has joined #ruby
whippythellama has joined #ruby
polishdub has quit [Quit: leaving]
ramfjord has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
Cohedrin_ has quit [Read error: Connection reset by peer]