jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
hotpancakes has joined #ruby
jottr has quit [Quit: WeeChat 1.4]
nando293921 has joined #ruby
Xiti has joined #ruby
p0p0pr37 has quit [Ping timeout: 268 seconds]
spintronic has joined #ruby
htmldrum has joined #ruby
bronson has joined #ruby
Trynemjoel has joined #ruby
jdawgaz has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
htmldrum has quit [Ping timeout: 244 seconds]
kirun has quit [Quit: Client exiting]
KnownSyntax has quit [Ping timeout: 248 seconds]
nando293921 has quit [Ping timeout: 240 seconds]
davee_ has quit [Quit: Leaving]
spintronic has quit [Ping timeout: 244 seconds]
halfamind has joined #ruby
Yzguy has quit [Quit: Zzz...]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
halfamind has quit [Ping timeout: 264 seconds]
mallu has joined #ruby
skweek has quit [Remote host closed the connection]
mallu has quit [Client Quit]
theRealGent has quit [Ping timeout: 276 seconds]
intrigueD has quit [Remote host closed the connection]
saneax is now known as saneax_AFK
halfamind has joined #ruby
halfamind1 has joined #ruby
halfamind has quit [Read error: Connection reset by peer]
mallu has joined #ruby
samuelkadolph has quit [Quit: Quitting]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mallu has quit [Client Quit]
ta_ has joined #ruby
mhoungbo has quit [Ping timeout: 240 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
last_staff has quit [Quit: last_staff]
samuelka- has joined #ruby
LoneHerm_ has joined #ruby
johnny56_ has joined #ruby
ta_ has quit [Ping timeout: 246 seconds]
johnny56 has quit [Ping timeout: 264 seconds]
samuelka- is now known as samuelkadolph
kellenevan has left #ruby ["WeeChat 1.4"]
LoneHerm_ has quit [Ping timeout: 240 seconds]
RegulationD has joined #ruby
mbff has joined #ruby
samuelkadolph has quit [Quit: Quitting]
jpfuentes2 has joined #ruby
stannard has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
hotpancakes has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 244 seconds]
ss_much has quit [Quit: Connection closed for inactivity]
mallu has joined #ruby
mallu has quit [Client Quit]
mallu has joined #ruby
nettoweb has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mallu has quit [Client Quit]
mistermocha has joined #ruby
hotpancakes has joined #ruby
Jardayn has joined #ruby
x77686d has quit [Quit: x77686d]
gregf has joined #ruby
sp4rrow has joined #ruby
halfamind1 has quit [Quit: Leaving.]
ninjaaron has joined #ruby
bronson has joined #ruby
mallu has joined #ruby
rattatmatt has quit []
mallu has quit [Client Quit]
mallu has joined #ruby
mallu has quit [Client Quit]
bronson has quit [Ping timeout: 252 seconds]
stannard has quit [Read error: Connection reset by peer]
stannard has joined #ruby
mistermocha has quit [Ping timeout: 248 seconds]
rbennacer has joined #ruby
Suntzu has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
lkba_ has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 240 seconds]
bollullera has quit [Quit: Leaving.]
devbug has joined #ruby
biberu has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
Sucks has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
Pupeno has quit [Quit: Leaving...]
spider-mario has quit [Remote host closed the connection]
devbug has quit [Ping timeout: 248 seconds]
mbff has quit [Quit: Leaving]
samuelkadolph has joined #ruby
skweek has joined #ruby
ensyde_ has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
samuelkadolph_ has joined #ruby
bob434 has joined #ruby
SCHAAP137 has joined #ruby
symm- has quit [Ping timeout: 250 seconds]
samuelkadolph has quit [Ping timeout: 244 seconds]
samuelkadolph_ is now known as samuelkadolph
ta_ has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
halfamind has joined #ruby
ta_ has quit [Ping timeout: 246 seconds]
Xeago has quit [Ping timeout: 264 seconds]
Chagel has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
bob434 has joined #ruby
RegulationD has joined #ruby
chouhoulis has quit [Remote host closed the connection]
Suntzu has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
samuelkadolph has quit [Quit: Quitting]
BtcBen has joined #ruby
ensyde_ has quit [Ping timeout: 240 seconds]
fullofcaffeine has joined #ruby
Jardayn_two has joined #ruby
samuelkadolph has joined #ruby
skweek has quit [Remote host closed the connection]
<ninjaaron> what's the ruby equivalent for this perl thing:`i ~= s/pattern/\U$&/g`?
samuelkadolph_ has joined #ruby
Jardayn has quit [Ping timeout: 240 seconds]
stannard_ has joined #ruby
Gasher has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
htmldrum has joined #ruby
<al2o3-cr> thats sum sed shit
samuelkadolph has quit [Ping timeout: 276 seconds]
samuelkadolph_ is now known as samuelkadolph
<al2o3-cr> 3 s's
<monoprotic> ninjaaron im a ruby novice but there is gsub http://ruby-doc.org/core-2.1.4/String.html#method-i-gsub
stannard has quit [Ping timeout: 250 seconds]
<al2o3-cr> for single sub use 'sub' global sub use 'gsub'
samuelkadolph has quit [Quit: Quitting]
<al2o3-cr> for translation use 'tr'
stannard_ has quit [Remote host closed the connection]
Jardayn_two has quit [Read error: Connection reset by peer]
stannard has joined #ruby
bronson has joined #ruby
tristanp has joined #ruby
tristanp has quit [Remote host closed the connection]
samuelkadolph has joined #ruby
rbennacer has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 276 seconds]
baweaver has joined #ruby
mistermocha has joined #ruby
samuelkadolph_ has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
<ninjaaron> got it. `i = i.gsub(/pattern/){|m| m.upper}
bricker has joined #ruby
<ninjaaron> I like blocks.
rhg135 has quit [Quit: ZNC - http://znc.in - making IRC 20% cooler]
<ninjaaron> I'm more of a python person, but I often lust after ruby blocks.
Gasher has quit [Quit: Leaving]
<monoprotic> same
<systemsgotyou> rbenv vs rvm which one?
rhg135 has joined #ruby
stannard has quit [Ping timeout: 268 seconds]
samuelkadolph has quit [Ping timeout: 244 seconds]
samuelkadolph_ is now known as samuelkadolph
<al2o3-cr> systemsgotyou: neither chruby + ruby_install
<al2o3-cr> systemsgotyou: do you need mutiple rubies?
<systemsgotyou> no
<al2o3-cr> then stick to you system ruby
<systemsgotyou> ok
<al2o3-cr> *your
<al2o3-cr> *multiple
<al2o3-cr> systemsgotyou: what version is your system variant?
onechr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<al2o3-cr> systemsgotyou: ruby -v?
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
bronson has quit [Remote host closed the connection]
sp4rrow has quit [Quit: Textual]
ninjaaron has quit [Ping timeout: 248 seconds]
a11 has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
a11 has joined #ruby
halfamind has quit [Quit: Leaving.]
DmitryBochkarev has joined #ruby
`tim` has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
<al2o3-cr> isn't ruby brilliant
SCHAAP137 has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
claw has quit [Read error: Connection reset by peer]
bob434 has quit [Quit: This computer has gone to sleep]
norc_ has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
claw has joined #ruby
TomyLobo has quit [Ping timeout: 244 seconds]
avarsh has joined #ruby
davedev24 has quit []
arescorpio has joined #ruby
norc has quit [Ping timeout: 244 seconds]
duncannz has joined #ruby
x77686d has joined #ruby
onechr has joined #ruby
ta_ has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
onechr has quit [Client Quit]
onechr has joined #ruby
ta_ has quit [Ping timeout: 246 seconds]
quakephil has quit [Ping timeout: 244 seconds]
LoneHermit has joined #ruby
Synthead has quit [Ping timeout: 252 seconds]
chouhoulis has joined #ruby
mistermocha has joined #ruby
safe has joined #ruby
safe has quit [Client Quit]
adgtl has quit [Quit: EliteBNC - http://www.elitebnc.net/]
LoneHermit has quit [Ping timeout: 252 seconds]
safe has joined #ruby
adgtl has joined #ruby
chouhoulis has quit [Ping timeout: 244 seconds]
Tempesta has quit [Quit: AdiIRC is updating to v2.3 Beta Build (2016/03/19) 32 Bit]
Tempesta has joined #ruby
jdawgaz has joined #ruby
Chagel has quit [Ping timeout: 276 seconds]
Synthead has joined #ruby
htmldrum has joined #ruby
a11 has quit [Remote host closed the connection]
sesquipedalian has quit [Ping timeout: 240 seconds]
johnny56_ has quit [Quit: WeeChat 1.4-dev]
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
onechr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
Spami has quit [Remote host closed the connection]
Spami has joined #ruby
jaequery has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
<jaequery> hi guys, i'm working on a cms , anyone care to try it out?
bronson has joined #ruby
fexilal has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby
Karix has joined #ruby
mistermocha has joined #ruby
jpfuentes2 has quit [Read error: Connection reset by peer]
jpfuentes2 has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
a11 has joined #ruby
baweaver has quit [Ping timeout: 276 seconds]
skweek has joined #ruby
oliver__ has joined #ruby
FooMunki has quit [Quit: FooMunki]
Karix has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SCHAAP137 has quit [Quit: Leaving]
Don_John has joined #ruby
LoneHerm_ has joined #ruby
Lucky_ABA has joined #ruby
Lucky_ABA has quit [Client Quit]
krz has joined #ruby
oliver__ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 244 seconds]
Rickmasta has joined #ruby
Chagel has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
montyboy has quit [Quit: WeeChat 0.4.2]
jaequery_ has joined #ruby
xlegoman has quit [Quit: Leaving]
jaequery_ has quit [Client Quit]
Spami has quit [Quit: This computer has gone to sleep]
jaequery has quit [Ping timeout: 248 seconds]
hotpancakes has quit [Remote host closed the connection]
braincras has quit [Quit: bye bye]
graffix has quit [Read error: Connection reset by peer]
gbgdev_ has quit [Remote host closed the connection]
mistermocha has joined #ruby
montyboy has joined #ruby
graffix has joined #ruby
nerium_ has joined #ruby
Chagel has quit [Ping timeout: 260 seconds]
htmldrum has quit [Ping timeout: 248 seconds]
htmldrum has joined #ruby
baweaver has joined #ruby
LoneHerm_ has quit [Read error: Connection reset by peer]
braincrash has joined #ruby
LoneHermit has joined #ruby
htmldrum has quit [Ping timeout: 240 seconds]
`tim` is now known as justbleed
mostlybadfly has joined #ruby
pawnbox has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
hotpancakes has joined #ruby
treaki__ has joined #ruby
PedramT has joined #ruby
hk238 has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
treaki_ has quit [Ping timeout: 260 seconds]
jaequery has joined #ruby
freerobby has quit [Quit: Leaving.]
jdawgaz has joined #ruby
PedramT has quit [Remote host closed the connection]
uglybandersnatch has joined #ruby
Ropeney has quit [Remote host closed the connection]
lkba has joined #ruby
pawnbox has quit [Remote host closed the connection]
PedramT has joined #ruby
pawnbox has joined #ruby
uglybandersnatch has quit [Ping timeout: 240 seconds]
arescorpio has quit [Excess Flood]
PedramT has quit [Remote host closed the connection]
ta_ has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 244 seconds]
theRoUS has quit [Ping timeout: 240 seconds]
PedramT has joined #ruby
halfamind has joined #ruby
PedramT has quit [Remote host closed the connection]
rmulligan has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
halfamind has quit [Client Quit]
theRoUS has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
PedramT has joined #ruby
PedramT has quit [Remote host closed the connection]
yfeldblum has joined #ruby
hotpancakes has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
hotpancakes has joined #ruby
chouhoulis has joined #ruby
gix has quit [Ping timeout: 264 seconds]
olimpop has joined #ruby
olimpop has quit []
gix has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
LoneHermit has quit [Read error: Connection reset by peer]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LoneHerm_ has joined #ruby
nertzy has quit [Read error: Connection reset by peer]
nertzy has joined #ruby
Dimik has joined #ruby
solocshaw has joined #ruby
rmulligan has quit [Remote host closed the connection]
Musashi007 has joined #ruby
Guest34101 has quit [Ping timeout: 268 seconds]
LoneHerm_ has quit [Remote host closed the connection]
mallu has joined #ruby
a11 has quit []
tristanp has joined #ruby
nerium_ has quit [Quit: nerium_]
frustrum has quit [Ping timeout: 248 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistermocha has quit [Read error: Connection reset by peer]
johnny56 has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
bricker has quit [Ping timeout: 276 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
awasum has joined #ruby
fedexo has joined #ruby
mistermocha has joined #ruby
pawnbox has joined #ruby
<clorisu> hey, anyone know why i'm getting this error: http://pastie.org/10766829 ?
fullofcaffeine has joined #ruby
KnownSyntax has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 268 seconds]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
Synthead has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
safe has quit [Quit: Leaving]
darkxploit has quit [Ping timeout: 268 seconds]
Xeago has quit [Ping timeout: 248 seconds]
jaequery has joined #ruby
<sneep> clorisu: You need semicolons
Helheim has quit [Remote host closed the connection]
<clorisu> ah sneep
aeterne has quit [Read error: Connection reset by peer]
<clorisu> is his code incorrect or different in some way? (box 3)
<sneep> E.g.: s = "foo"; if s.empty?; "The string is empty"; else; "The string is nonempty"; end
<clorisu> oh theyre separate lines
<sneep> Yeah
tonyynot has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<clorisu> thanks
dcunit3d has joined #ruby
chouhoulis has joined #ruby
hotpancakes has quit [Remote host closed the connection]
Synthead has joined #ruby
johnny56 has quit [Quit: WeeChat 1.4-dev]
justbleed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bricker has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
moeabdol has quit [Ping timeout: 240 seconds]
guideX has joined #ruby
tubuliferous has quit [Ping timeout: 246 seconds]
mistermocha has quit [Read error: Connection reset by peer]
fullofcaffeine has quit [Remote host closed the connection]
hotpancakes has joined #ruby
Synthead has quit [Read error: Connection reset by peer]
Synthead has joined #ruby
fullofcaffeine has joined #ruby
johnny56 has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 268 seconds]
rkazak has joined #ruby
LoneHermit has joined #ruby
sysodaff has joined #ruby
htmldrum has joined #ruby
SuperDave has joined #ruby
frustrum has joined #ruby
sysodaff has quit [Remote host closed the connection]
LoneHermit has quit [Ping timeout: 252 seconds]
bezhermoso has joined #ruby
<SuperDave> test
htmldrum has quit [Ping timeout: 244 seconds]
<SuperDave> wow i am impressed with changes here
<SuperDave> sorry, wrong channel lol
SuperDave has left #ruby [#ruby]
kentnl has joined #ruby
kent\n has quit [Ping timeout: 268 seconds]
SuperDave has joined #ruby
<SuperDave> this is very professional
frustrum has quit [Ping timeout: 244 seconds]
<SuperDave> the rules are clearly stated - thank you for that
SuperDave has left #ruby [#ruby]
bronson has joined #ruby
sysodaff has joined #ruby
sysodaff has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
rkazak has quit [Quit: Sleep.....ing....]
bronson has quit [Ping timeout: 252 seconds]
bezhermo_ has joined #ruby
avarsh has quit [Quit: Leaving]
Marsjan has joined #ruby
marsjaninzmarsa has quit [Ping timeout: 244 seconds]
Marsjan is now known as marsjaninzmarsa
x77686d has quit [Quit: x77686d]
bezhermoso has quit [Ping timeout: 252 seconds]
xue_ has joined #ruby
CloCkWeRX has joined #ruby
xue_ has quit [Client Quit]
xue has joined #ruby
tristanp has quit [Remote host closed the connection]
CloCkWeRX has quit [Quit: Leaving.]
rmulligan has joined #ruby
kentnl has quit [Quit: Quitting]
kent\n has joined #ruby
bob434 has joined #ruby
Musashi007 has quit [Quit: Musashi007]
bob434 has quit [Max SendQ exceeded]
bob434 has joined #ruby
ta_ has joined #ruby
hotpancakes has joined #ruby
houhouli_ has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
the_drow has joined #ruby
ta_ has quit [Ping timeout: 246 seconds]
houhoulis has quit [Ping timeout: 276 seconds]
dionysus69 has joined #ruby
chouhoulis has joined #ruby
polyidus has joined #ruby
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
xue has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 248 seconds]
bob434 has quit [Quit: Leaving]
infra-red has joined #ruby
intrigueD has joined #ruby
intrigueD has quit [Changing host]
intrigueD has joined #ruby
jpfuentes2 has joined #ruby
mistermocha has joined #ruby
xue has joined #ruby
awasum has quit [Ping timeout: 260 seconds]
hotpancakes has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 246 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mahk has joined #ruby
mahk has quit [Client Quit]
trosborn has joined #ruby
trosborn has quit [Client Quit]
infra-re_ has joined #ruby
infra-red has quit [Read error: Connection reset by peer]
infra-re_ has quit [Read error: Connection reset by peer]
mondok has joined #ruby
infra-red has joined #ruby
tildes has joined #ruby
infra-red has quit [Read error: Connection reset by peer]
infra-red has joined #ruby
kentnl has joined #ruby
fexilal has joined #ruby
Musashi007 has joined #ruby
kent\n has quit [Ping timeout: 268 seconds]
oliver__ has joined #ruby
skade has joined #ruby
jkahn has quit [Ping timeout: 250 seconds]
hotpancakes has joined #ruby
hotpancakes has quit [Ping timeout: 260 seconds]
thegunbuster has joined #ruby
rippa has joined #ruby
bezhermo_ has quit [Quit: Zzzzz...]
samgerber has joined #ruby
sand_bird has joined #ruby
fedexo has quit [Ping timeout: 268 seconds]
LoneHermit has joined #ruby
intrigueD has quit [Remote host closed the connection]
djbkd_ has joined #ruby
RegulationD has joined #ruby
infra-re_ has joined #ruby
LoneHermit has quit [Ping timeout: 252 seconds]
chouhoulis has joined #ruby
baweaver has quit [Remote host closed the connection]
<guideX> how do you get ruby working with iis
RegulationD has quit [Ping timeout: 252 seconds]
infra-red has quit [Ping timeout: 264 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
p0p0pr37 has joined #ruby
chouhoulis has quit [Ping timeout: 248 seconds]
BtcBen has quit [Ping timeout: 252 seconds]
scepticulous has joined #ruby
sol has joined #ruby
Dimik has quit [Ping timeout: 264 seconds]
sol is now known as Guest9744
PedramT has joined #ruby
ta_ has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coffeecupp has joined #ruby
PedramT has quit [Ping timeout: 240 seconds]
coffeecupp has quit [Remote host closed the connection]
coffeecupp has joined #ruby
Suntzu has quit [Read error: Connection reset by peer]
htmldrum has joined #ruby
frustrum has joined #ruby
scepticulous has quit [Ping timeout: 244 seconds]
htmldrum has quit [Ping timeout: 250 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
coffeecupp has quit [Quit: Lingo: www.lingoirc.com]
frustrum has quit [Ping timeout: 240 seconds]
yqt has joined #ruby
rmulligan has quit [Ping timeout: 268 seconds]
bronson has joined #ruby
n008f4g_ has joined #ruby
ta__ has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
rmulligan has joined #ruby
ta_ has quit [Ping timeout: 246 seconds]
minimalism has quit [Quit: minimalism]
onechr has joined #ruby
uglybandersnatch has joined #ruby
rmulligan has quit [Ping timeout: 240 seconds]
tristanp has joined #ruby
tubuliferous has joined #ruby
uglybandersnatch has quit [Ping timeout: 252 seconds]
djbkd_ has quit [Remote host closed the connection]
merida_ has joined #ruby
merida has joined #ruby
Suntzu has joined #ruby
arup_r has joined #ruby
<samgerber> Anyone know why Enumerable's #count no longer tries to call #size?
<hanmac> samgerber: why should it?
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp has quit [Ping timeout: 244 seconds]
bezhermoso has joined #ruby
tubuliferous has quit [Ping timeout: 240 seconds]
<arup_r> any idea how can I print content of heredoc by doing left align in stdout. I can do it by writing the heredoc manually like that, but the indentation will not look good. Any programmatic way? link: https://gist.github.com/aruprakshit/e49156e63976ecb007aa#file-a-rb-L28-L34
<clorisu> im so confused. whats the difference between an object and a method?
th0m_ has joined #ruby
<forcer> clorisu: An object is a collection of methods (code) and data
<clorisu> could you give me an example forcer
thegunbuster has quit [Quit: thegunbuster]
<arup_r> samgerber: oh, I see ruby 2.3 made my day. Let me install it first :D
<forcer> clorisu: This seems to be an ok intro: http://www.tutorialspoint.com/ruby/ruby_classes.htm
bezhermoso has quit [Ping timeout: 260 seconds]
patrick_star has joined #ruby
<samgerber> hanmac: I think it used to...between 1.8.7 and 2.0.0. I guess it seems odd to me that Array#count would operate in constant time while Hash and Set #count are relegated to linear time. (all this assuming no argument or block is passed)
lessless has joined #ruby
<hanmac> samgerber: if you want size then use it ... specially Enumerator also has a #size method
<clorisu> thanks forcer ill read it and get back to you
chouhoulis has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
firstdayonthejob has joined #ruby
<samgerber> hanmac: thank you. I think I understand. What I'm looking to learn is a case when it would be useful to have a count method that traverses the collection even when no block or argument is given.
<forcer> So I'm curious. Class#method seems a common way of referencing methods in a class, but that's not Ruby syntax. Where did that syntax come from? :-)
chouhoulis has quit [Ping timeout: 250 seconds]
<hanmac> forcer: because Class.method is ambiguous
yardenbar has joined #ruby
<forcer> hanmac: That would be a class method, right?
<hanmac> forcer: hm yes and no, because if you do: "ri File.size" it will show you both instance and class method
<forcer> hanmac: Ah! Well, it would at least *also* refer to class methods. Do you know where the # syntax came from? Or is that just something that was used and stuck around?
<Ox0dea> forcer: But yes, `Foo.bar` is the orthography used for class methods. You'll see `Foo::bar` sometimes used as well, but that's better reserved for constants.
<Ox0dea> I'm reasonably certain Foo#bar is just a convention that managed to stick.
<hanmac> Ox0dea: thats the prob Foo::bar is a method, Foo::Bar is a constant, but Foo::Bar() is a method too ;P
<forcer> :-)
<forcer> hanmac, Ox0dea: Thank you!
<Ox0dea> Sure thing.
<Ox0dea> samgerber: Never.
<Ox0dea> But why special-case #count when #size is already available?
Guest34101 has joined #ruby
onechr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
marr has joined #ruby
bakedb has quit [Ping timeout: 248 seconds]
arup_r has left #ruby [#ruby]
<samgerber> Ox0dea: Consistency, I suppose. Array#count defers to #length and #size when no argument is given. Why isn't there a Hash#count that does the same thing? This isn't an attack, or anything, just curiosity. It seems like the behavior was implemented at one point and then was removed, so I was wondering what issues it had caused.
Guest9744 has left #ruby ["WeeChat 0.4.2"]
<forcer> They probably started to wonder if they need all of #count, #count_pair, #count_key and #count_value, and then thought meh, never mind.
<Ox0dea> samgerber: I grant that it's inconsistent, but specializing various Enumerable methods for all the classes that include Enumerable is a slippery slope.
rmulligan has joined #ruby
hotpancakes has joined #ruby
<Ox0dea> >> Enumerable.instance_methods.select { |m| Hash.instance_method(m).owner == Hash }
<ruby[bot]> Ox0dea: # => [:to_a, :to_h, :include?, :select, :reject, :any?, :member?] (https://eval.in/539448)
<Ox0dea> Adding #count to that list opens the door for pretty much all the others, and that kinda defeats the purpose of Enumerable.
<samgerber> Ox0dea: That makes sense. It would kind of defeat the point of having a module, eh?
<Ox0dea> samgerber: Well, it would certainly be antithetical to the goal of mixins.
<samgerber> Ox0dea: It was on that list for 1.8.7 until 2.0.0, though, right?
<Ox0dea> samgerber: https://eval.in/539449
hotpancakes has quit [Ping timeout: 276 seconds]
<samgerber> Ox0dea: Ah, thanks, sorry, I'm a bit new to all of this. These are methods that are defined in Enumerable and then over-ridden in Hash, right?
<Ox0dea> samgerber: That's right.
PedramT has joined #ruby
Chagel has joined #ruby
<Ox0dea> 1.9.3 is when Array#count got specialized, but I don't see anything specific to Hash in the change logs.
rmulligan has quit [Ping timeout: 248 seconds]
<Ox0dea> And I imagine that only happened because so many people were using it incorrectly. :/
PedramT has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
<samgerber> Ox0dea: I think I've been sloppy in my research, sorry. I looked at the source here: http://ruby-doc.org/core-1.8.7/Enumerable.html#method-i-count
<samgerber> and then saw that the documentation says this: "...where size is called if it responds to it..." and then when I was looking at future versions, I just looked at documentation without again checking the source
<samgerber> so I think I'm all off on when I think changes happened
dgncn has quit [Excess Flood]
<samgerber> It looks like 1.9.2 is where the attempt to call size was removed, but the documentation wasn't updated at that time?
<samgerber> Is there a better place to try to learn the reason for a change occurring?
yardenbar has quit [Quit: Leaving]
dgncn has joined #ruby
baweaver has quit [Ping timeout: 252 seconds]
<Ox0dea> I'm not sure I understand the justification.
<samgerber> Ox0dea: Is the thought that some people might define #size on a custom class using Enumerable#count?
LoneHermit has joined #ruby
<Ox0dea> samgerber: Well, that'd certainly get ugly.
nofxx has quit [Ping timeout: 240 seconds]
<hanmac> might have something to do if a size is something different than a integer (like the 2d size of a window)
<Ox0dea> hanmac: Why would Window include Enumerable?
<clorisu> is .map basically the .each for strings?
<clorisu> or arrays?
<hanmac> Ox0dea: to interate over the child window/widget elements?
the_drow has joined #ruby
<Ox0dea> clorisu: #each is for "doing something" with each element of a collection; #map is for transforming the collection into a new one.
<hanmac> clorisu: no String doenst have #map anymore
<Ox0dea> hanmac: Yes, that's a fair assessment.
<clorisu> Ox0dea: by doing something do you mean applying a block?
skade has joined #ruby
<Ox0dea> clorisu: Yes, more or less.
danielwzd has quit [Quit: Leaving]
<clorisu> Ox0dea: what do you mean by transforming the collection?
<clorisu> isn't 'doing something' transforming it?
<hanmac> samgerber: the difference between #size and #count with sized Enumerators:
<hanmac> >> [1].cycle.size
<ruby[bot]> hanmac: # => Infinity (https://eval.in/539451)
<hanmac> >> [1].cycle.count
<ruby[bot]> hanmac: # => (https://eval.in/539452)
the_drow has quit [Client Quit]
djellemah_ has joined #ruby
n008f4g_ has quit [Ping timeout: 250 seconds]
<Ox0dea> >> e = [].to_enum; [e.size, e.count] # the difference for unsized ones
<ruby[bot]> Ox0dea: # => [nil, 0] (https://eval.in/539453)
<clorisu> also Ox0dea and hanmac : why the # before the method? does it signify something?
DoubleMalt has joined #ruby
<Ox0dea> clorisu: It's used to signify "instance method".
LoneHermit has quit [Ping timeout: 252 seconds]
<clorisu> ah
<Ox0dea> File.size and File#size are different methods and we need a way to distinguish between them.
n008f4g_ has joined #ruby
<samgerber> hanmac Ox0dea: thanks a bunch. You have both given me a lot to think about and a new resource for learning about the history of ruby! (bugs.ruby-lang.org). I really appreciate both of your time and everyone else putting up with my spam.
merida_ has quit [Remote host closed the connection]
<Ox0dea> samgerber: Any time, especially if this is the standard quality of your "spam". :P
bezhermoso has joined #ruby
merida_ has joined #ruby
<hanmac> clorisu: for array:
<hanmac> #each: might change the objects, keep the array intact
<hanmac> #map: mostly does not change the objects, return a new array with or without new objects
<hanmac> #map!: does replace the objects with new ones, does not change the array
<Ox0dea> clorisu: https://eval.in/539455
_blizzy_ has quit [Quit: Leaving]
bezhermoso has quit [Ping timeout: 260 seconds]
darkf has quit [Quit: Leaving]
the_drow has joined #ruby
tildes has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
djellemah_ has quit [Ping timeout: 264 seconds]
skade has joined #ruby
chouhoulis has quit [Ping timeout: 244 seconds]
skade has quit [Client Quit]
beawesomeinstead has quit [Ping timeout: 268 seconds]
<clorisu> oh Ox0dea
<clorisu> so they function the same, but each is basically explicit whereas map is implicit?
<clorisu> sort of like <% code %> vs <%= code %> ?
<clorisu> map/ %= has an output?
<clorisu> or prints?
beawesomeinstead has joined #ruby
kam270 has joined #ruby
kam270 has quit [Remote host closed the connection]
rmulligan has joined #ruby
adgtl has quit [Changing host]
adgtl has joined #ruby
adgtl has joined #ruby
duncannz has quit [Remote host closed the connection]
onechr has joined #ruby
rmulligan has quit [Ping timeout: 260 seconds]
onechr has quit [Client Quit]
nerium has joined #ruby
samgerber has quit [Remote host closed the connection]
<apeiros> clorisu: neither map nor each print or have output. they yield and have return values.
<apeiros> each always returns the receiver
<apeiros> map returns a new array
mondok has quit [Quit: Leaving]
<apeiros> map! returns the receiver, but applies the return value of the block to the array in-place.
bricker has quit [Ping timeout: 260 seconds]
onechr has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
tildes has joined #ruby
frustrum has joined #ruby
n008f4g_ has quit [Ping timeout: 268 seconds]
arup_r has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
<arup_r> Why my `ensure` code not trigerring? https://gist.github.com/aruprakshit/e49156e63976ecb007aa ... head paining now.. :/
onechr has quit [Client Quit]
edwinvdgraaf has joined #ruby
Chagel has quit [Ping timeout: 248 seconds]
mhoungbo has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
edwinvdgraaf has quit [Client Quit]
edwinvdgraaf has joined #ruby
frustrum has quit [Ping timeout: 264 seconds]
<hanmac> arup_r: you forgot the put in the ensure clause
bronson has joined #ruby
<arup_r> :(
<arup_r> thanks hanmac
zenlot has joined #ruby
Mon_Ouie has joined #ruby
marr has quit [Ping timeout: 264 seconds]
zenlot6 has quit [Ping timeout: 268 seconds]
bronson has quit [Ping timeout: 252 seconds]
devbug has joined #ruby
Don_John has quit [Ping timeout: 276 seconds]
merida__ has joined #ruby
merida___ has joined #ruby
merida has quit [Ping timeout: 246 seconds]
merida_ has quit [Ping timeout: 240 seconds]
arup_r has quit [Remote host closed the connection]
DmitryBochkarev has joined #ruby
spider-mario has joined #ruby
rmulligan has joined #ruby
yfeldblum has joined #ruby
* adaedra waves
devbug has quit [Ping timeout: 248 seconds]
bakedb has joined #ruby
rmulligan has quit [Ping timeout: 246 seconds]
onechr has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
djellemah_ has joined #ruby
onechr has quit [Client Quit]
RegulationD has quit [Ping timeout: 252 seconds]
gagrio_ has joined #ruby
cd-rum has joined #ruby
infra-re_ has quit []
krz has quit [Ping timeout: 248 seconds]
dixie_rebel has joined #ruby
yqt has quit [Ping timeout: 244 seconds]
millerti has joined #ruby
hotpancakes has joined #ruby
dixie_rebel has quit [Disconnected by services]
Musashi007 has quit [Quit: Musashi007]
onechr has joined #ruby
hotpancakes has quit [Ping timeout: 248 seconds]
lkba has quit [Ping timeout: 264 seconds]
hanmac has quit [Ping timeout: 268 seconds]
mistermocha has joined #ruby
tildes has quit [Ping timeout: 244 seconds]
onechr has quit [Client Quit]
hanmac has joined #ruby
mistermocha has quit [Ping timeout: 252 seconds]
krz has joined #ruby
n008f4g_ has joined #ruby
onechr has joined #ruby
anjen has joined #ruby
frustrum has joined #ruby
LoneHerm_ has joined #ruby
Spami has joined #ruby
frustrum has quit [Ping timeout: 250 seconds]
LoneHerm_ has quit [Ping timeout: 244 seconds]
SCHAAP137 has joined #ruby
nerium has quit [Quit: nerium]
baweaver has joined #ruby
sdothum has joined #ruby
gagrio has quit [Ping timeout: 260 seconds]
quakephil has joined #ruby
bezhermoso has joined #ruby
nerium has joined #ruby
baweaver has quit [Ping timeout: 252 seconds]
moeabdol has joined #ruby
rmulligan has joined #ruby
bezhermoso has quit [Ping timeout: 260 seconds]
tildes has joined #ruby
krz has quit [Ping timeout: 276 seconds]
reprazent has joined #ruby
reprazen_ has joined #ruby
reprazen_ has quit [Client Quit]
rmulligan has quit [Ping timeout: 264 seconds]
reprazent has quit [Ping timeout: 264 seconds]
reprazent has joined #ruby
krz has joined #ruby
bricker has joined #ruby
adaedra has quit [Quit: ZNC 1.6.3 - http://znc.in]
last_staff has joined #ruby
adaedra has joined #ruby
adaedra is now known as Guest59473
Guest59473 is now known as adaedra
CloCkWeRX has joined #ruby
Ropeney has joined #ruby
polyidus has quit [Quit: Later]
tubuliferous has joined #ruby
reprazent has quit [Ping timeout: 276 seconds]
reprazen_ has joined #ruby
bricker has quit [Ping timeout: 244 seconds]
polyidus has joined #ruby
tubuliferous has quit [Ping timeout: 244 seconds]
adaedra has quit [Quit: ZNC 1.6.3 - http://znc.in]
Chagel has joined #ruby
dionysus69 has joined #ruby
chouhoulis has joined #ruby
roshanavand has joined #ruby
patrick_star has quit [Quit: Leaving]
jdawgaz has joined #ruby
chouhoulis has quit [Ping timeout: 264 seconds]
jdawgaz has quit [Client Quit]
polyidus has quit [Quit: Textual IRC Client: www.textualapp.com]
CloCkWeRX has quit [Ping timeout: 252 seconds]
reprazen_ has quit [Ping timeout: 240 seconds]
solocshaw has quit [Ping timeout: 244 seconds]
skade has joined #ruby
matp_ has joined #ruby
CloCkWeRX has joined #ruby
matp has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
intrigueD has joined #ruby
intrigueD has joined #ruby
rbennacer has joined #ruby
bezhermoso has joined #ruby
rmulligan has joined #ruby
bronson has joined #ruby
bezhermoso has quit [Ping timeout: 260 seconds]
adaedra has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
rmulligan has quit [Ping timeout: 250 seconds]
bronson has quit [Ping timeout: 252 seconds]
slackbotgz has joined #ruby
Suntzu has quit [Read error: Connection reset by peer]
ltd_ has quit [Ping timeout: 244 seconds]
ltd has joined #ruby
Silox| has joined #ruby
tvw has joined #ruby
BrunoSaboia has joined #ruby
marsjaninzmarsa has quit [Quit: ZNC 1.7.x-git-487-cbf5c38 - http://znc.in]
Guest34101 has quit [Ping timeout: 276 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
BSaboia has quit [Ping timeout: 244 seconds]
millerti has joined #ruby
marsjaninzmarsa has joined #ruby
tristanp has joined #ruby
bricker has joined #ruby
TomyLobo has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has joined #ruby
tristanp has quit [Ping timeout: 264 seconds]
BrunoSaboia has quit [Ping timeout: 244 seconds]
bricker has quit [Ping timeout: 248 seconds]
matp_ is now known as matp
nennes has joined #ruby
nerium has quit [Quit: nerium]
nennes has quit [Client Quit]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
stannard has joined #ruby
nerium has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
stannard_ has joined #ruby
Suntzu has joined #ruby
stannard has quit [Ping timeout: 250 seconds]
hotpancakes has joined #ruby
lkba has joined #ruby
thegunbuster has joined #ruby
evidex has joined #ruby
jdawgaz has joined #ruby
p0p0pr37 has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Ping timeout: 248 seconds]
slackbotgz has quit [Remote host closed the connection]
SCHAAP137 has quit [Quit: Leaving]
tk___ has joined #ruby
skweek has quit [Ping timeout: 244 seconds]
nerium has quit [Quit: nerium]
tvw has quit [Remote host closed the connection]
mistermocha has joined #ruby
nerium has joined #ruby
mistermocha has quit [Ping timeout: 248 seconds]
frustrum has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
rmulligan has joined #ruby
triangles has quit [Quit: Leaving]
tjohnson has quit [Quit: Connection closed for inactivity]
frustrum has quit [Ping timeout: 248 seconds]
DmitryBochkarev has quit [Quit: Leaving]
moeabdol has quit [Ping timeout: 246 seconds]
rmulligan has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
xue has quit [Ping timeout: 252 seconds]
houhouli_ has quit [Remote host closed the connection]
codecop_ has joined #ruby
baweaver has quit [Ping timeout: 276 seconds]
Gasher has joined #ruby
charlemagne has joined #ruby
tonyynot has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
cd-rum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
intrigueD has quit [Remote host closed the connection]
hotpancakes has joined #ruby
binaryplease has joined #ruby
xue has joined #ruby
charlema_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
charlemagne has quit [Ping timeout: 248 seconds]
hotpancakes has quit [Ping timeout: 260 seconds]
binaryplease has quit [Quit: WeeChat 1.4]
charlema_ has quit [Ping timeout: 268 seconds]
RedNifre has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
<RedNifre> Heya. I'm not quite clear on the "falsiness" of nil. I wanted to check two variables for not nil so I did if(a && b)... that works, but I get a "string used in condition" warning. Is there a better way to do this?
<RedNifre> ...or should I write the conventional if((a != nil) && (b != nil)) ?
pestilence has joined #ruby
Tempesta has quit [Quit: AdiIRC is updating to v2.3 Beta Build (2016/03/20) 32 Bit]
warprobot has joined #ruby
warprobot has left #ruby [#ruby]
Tempesta has joined #ruby
<pestilence> I would like to put a ruby script into the bin directory of a gem so that you can run it from the command line post-gem install
<pestilence> is it possible to do this in a cross-platform manner?
<pestilence> i.e. I would like it to work on both windows and linux
bricker has joined #ruby
yeticry has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
yeticry has joined #ruby
<n1colas> Hello
the_drow has joined #ruby
Azure has quit [Remote host closed the connection]
mtkd has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
<Papierkorb> RedNifre: What's the exact code you're trying? That warning only appears for me (as expected) when I use string literals in the condition, not with string variables
skade has joined #ruby
warprobot has joined #ruby
<Papierkorb> RedNifre: (a && b) is fine, if you really want to test for nil use #nil?
evidex has quit [Ping timeout: 260 seconds]
warprobot has quit [Remote host closed the connection]
warprobot has joined #ruby
idletask has quit [Ping timeout: 240 seconds]
warprobot has left #ruby [#ruby]
idle_task has joined #ruby
<RedNifre> Papierkorb the actual code uses first,second = ARGV, I got the warning when I tested if(nil && "bla") in the REPL.
<Papierkorb> RedNifre: then your test is the issue, the code works fine
<apeiros> ruby knows that && "blah" is pointless and tells you so
freerobby has joined #ruby
Snowy has joined #ruby
<RedNifre> Makes sense, thanks.
evidex has joined #ruby
<djellemah> >> a = "string"; b = "condition"; if a && b then :yes else :no end # RedNifre, although then is just for the single-line
<ruby[bot]> djellemah: # => :yes (https://eval.in/539468)
hotpancakes has joined #ruby
mistermocha has joined #ruby
JJM has joined #ruby
dcunit3d has quit [Ping timeout: 244 seconds]
rmulligan has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdg_ has joined #ruby
mistermocha has quit [Ping timeout: 252 seconds]
rmulligan has quit [Ping timeout: 248 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
intrigueD has joined #ruby
Snowy has quit [Remote host closed the connection]
houhoulis has joined #ruby
Chagel has quit [Ping timeout: 248 seconds]
blandflakes has joined #ruby
dcunit3d has joined #ruby
pestilence has quit [Quit: leaving]
tildes has quit [Ping timeout: 244 seconds]
pestilence has joined #ruby
pestilence has quit [Changing host]
pestilence has joined #ruby
tk___ has quit [Quit: ばいばい]
the_drow has quit [Quit: This computer has gone to sleep]
biberu has joined #ruby
Ropeney has quit [Quit: Leaving]
<djellemah> Is there a way to get the same value as ::Kernel.raise(*args) rescue $! but without the rescue? TIA
<apeiros> djellemah: what are you trying to achieve by that?
<apeiros> ?xy
<ruby[bot]> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
vdamewood has joined #ruby
<pestilence> these instructions: http://guides.rubygems.org/make-your-own-gem/#adding-an-executable are specific for linux. do you just have to create two scripts, one for windows and one for linux?
Xeago has joined #ruby
BrunoSaboia has joined #ruby
the_drow has joined #ruby
<pestilence> is there a way to change what happens during gem installation based on the platform? maybe have it install one bin if you're on windows and one bin if you're on linux?
<apeiros> pestilence: not using windows, so I can't verify. but as far as I understood it - if ruby is properly installed on windows, then executables from gems will just work (assuming they scripts themselves don't have platform dependent stuff in it)
stannard_ has quit [Ping timeout: 248 seconds]
<pestilence> apeiros: ok
<djellemah> apeiros: I'll take that as "I don't know of a way" :-p
<apeiros> djellemah: that'd be stupid. but you're free to not answer follow up questions.
tristanp has joined #ruby
<djellemah> Why would it be stupid?
hightower4 has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 244 seconds]
<apeiros> djellemah: I'm not interested in a meta discussion. want a solution? answer the question. otherwise: good luck.
_djbkd has joined #ruby
rkazak has joined #ruby
freerobby1 has joined #ruby
freerobby has quit [Ping timeout: 260 seconds]
<djellemah> Think about it for a while, you might find that all the information a potential answerer needs is already in the question. Thanks anyway ;-)
Karix has joined #ruby
<apeiros> ok, seems you're more interested in pissing off potential helpers than actually getting help.
<apeiros> welcome in my /ignore
Karix has quit [Client Quit]
tristanp has quit [Ping timeout: 240 seconds]
evidex has quit [Remote host closed the connection]
merida___ has quit [Ping timeout: 244 seconds]
merida__ has quit [Ping timeout: 244 seconds]
_djbkd has quit [Ping timeout: 268 seconds]
jaruga has joined #ruby
jaruga is now known as jaruga_
oliver__ has quit [Remote host closed the connection]
hotpancakes has quit [Remote host closed the connection]
<pestilence> look like this is a possible solution to my problem: http://code.activestate.com/lists/ruby-talk/35687/
<pestilence> branch on RUBY_PLATFORM
RegulationD has joined #ruby
Xeago has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 240 seconds]
bricker has joined #ruby
tp_ has left #ruby [#ruby]
chouhoulis has joined #ruby
LoneHerm_ has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
marcofernandez has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
merida has joined #ruby
merida_ has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
LoneHerm_ has quit [Ping timeout: 252 seconds]
yqt has joined #ruby
hotpancakes has joined #ruby
Snowy has joined #ruby
bluOxigen has joined #ruby
rmulligan has joined #ruby
hotpancakes has quit [Ping timeout: 252 seconds]
thegunbuster has quit [Ping timeout: 240 seconds]
tubuliferous has joined #ruby
x77686d has joined #ruby
sand_bird has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
David27 has joined #ruby
rmulligan has quit [Ping timeout: 260 seconds]
xue has quit [Ping timeout: 250 seconds]
idle_task is now known as idletask
evidex has joined #ruby
mistermocha has quit [Ping timeout: 252 seconds]
merida has quit [Remote host closed the connection]
frustrum has joined #ruby
nerium has quit [Quit: nerium]
jdawgaz has joined #ruby
Morrolan has quit [Quit: ZNC: Shutting down.]
hotpancakes has joined #ruby
merida_ has quit [Ping timeout: 244 seconds]
frustrum has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Remote host closed the connection]
baweaver has joined #ruby
xue has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
awasum has joined #ruby
stannard has joined #ruby
Karix has joined #ruby
zapata has quit [Quit: WeeChat 1.4]
intrigueD has quit [Remote host closed the connection]
zapata has joined #ruby
fexilal has quit [Ping timeout: 244 seconds]
dstrunk has joined #ruby
dstrunk is now known as silentpost
silentpost has quit [Client Quit]
merida has joined #ruby
merida_ has joined #ruby
hotpancakes has joined #ruby
baweaver has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has joined #ruby
<havenwood> good morn'
Jackneill has joined #ruby
<TheCubeLord> if your channel has ItsLuke or zz on your channel please ban him, he has been ban evading
dstrunk has joined #ruby
Silox| has quit [Quit: Connection closed for inactivity]
the_drow has quit [Quit: This computer has gone to sleep]
hotpancakes has quit [Ping timeout: 246 seconds]
silentpost has quit [Client Quit]
dstrunk has joined #ruby
baweaver has quit [Remote host closed the connection]
RegulationD has joined #ruby
rmulligan has joined #ruby
chouhoulis has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
gagrio_ has quit [Quit: Leaving...]
dstrunk has quit [Quit: leaving]
<shevy> yo havenwood
<Papierkorb> Hm is it possible to figure out what refinements are active for a class?
rmulligan has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
<shevy> good question
<apeiros> Papierkorb: since they're lexically scoped: just read the code?
<Papierkorb> apeiros: I'd like to auto inject them into templates
<apeiros> the templates are evaled?
<Papierkorb> Basically they are.
<havenwood> Papierkorb: Triple refine for higher purity.
<Papierkorb> Though I'm wondering why 'using' alone doesn't work in HAML
unreal has quit [Ping timeout: 260 seconds]
<Papierkorb> complains that there's no method named "using"
<apeiros> probably because they're evaled in the scope of an instance method
silentpost has joined #ruby
tildes has joined #ruby
the_drow has joined #ruby
p0p0pr37 has joined #ruby
rbennacer has quit [Remote host closed the connection]
kfpratt has joined #ruby
stannard has quit [Remote host closed the connection]
workmad3 has quit [Quit: Lost terminal]
workmad3 has joined #ruby
symm- has joined #ruby
d0nn1e has quit [Ping timeout: 246 seconds]
jaequery has joined #ruby
<havenwood> Pure Ruby SHA3 Now FIPS PUB 202 compliant: https://github.com/havenwood/sha3-pure-ruby
<havenwood> (Not that anyone uses it.) :)
<havenwood> One of the C-ext SHA3s is too it seems: https://github.com/johanns/sha3#readme
<havenwood> And the other needs a maintainer to fix it from the original C spec to take into account PUB 202 padding: https://github.com/phusion/digest-sha3-ruby/issues/5
d0nn1e has joined #ruby
<havenwood> I could probably port over the changes from the NPM version despite how bad I am at C. :O
<havenwood> Somebody else do it! ;)
<havenwood> It's a nice gem.
<havenwood> I kinda expected that one to make it into the Ruby stdlib but instead it's unmaintained.
fedexo has joined #ruby
<djellemah_> havenwood: digressing slightly: do you know of a fast stable digest for non-cryptographic purposes? The closest I could find was xxhash, but I need something that also works with jruby.
jaequery has quit [Ping timeout: 260 seconds]
Gasher has quit [Quit: Leaving]
Mon_Ouie has quit [Ping timeout: 276 seconds]
<havenwood> djellemah_: You could jump on the "Pure Ruby" bandwagon :D https://github.com/justinwsmith/ruby-xxhash#readme
<havenwood> djellemah_: Looking for a native Java ext one?
frustrum has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
awasum has quit [Quit: Leaving]
the_drow has quit [Quit: This computer has gone to sleep]
dionysus69 has quit [Ping timeout: 244 seconds]
kfpratt has quit [Remote host closed the connection]
hightower3 has quit [Ping timeout: 276 seconds]
evidex_ has joined #ruby
uglybandersnatch has joined #ruby
evidex has quit [Ping timeout: 244 seconds]
uglybandersnatch has quit [Ping timeout: 260 seconds]
frustrum has quit [Ping timeout: 260 seconds]
Vingador has joined #ruby
LoneHermit has joined #ruby
marcofernandez has quit [Ping timeout: 276 seconds]
evidex_ has quit [Remote host closed the connection]
hightower3 has joined #ruby
vikaton has joined #ruby
TheCubeLord has quit [Changing host]
TheCubeLord has joined #ruby
_whitelogger has joined #ruby
LoneHermit has quit [Ping timeout: 264 seconds]
rmulligan has joined #ruby
TomyLobo has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
yqt has quit [Ping timeout: 240 seconds]
onechr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<djellemah_> havenwood: The pure ruby one would probably be fine. Thanks :-D
rmulligan has quit [Ping timeout: 244 seconds]
mikecmpbll has joined #ruby
tristanp has joined #ruby
onechr has joined #ruby
chouhoulis has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
bronson has joined #ruby
nettoweb has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
sameerynho has joined #ruby
mikecmpbll has quit [Remote host closed the connection]
sameerynho has quit [Read error: Connection reset by peer]
TheCubeLord has quit [Quit: Leaving]
TheCubeLord has joined #ruby
chouhoulis has quit [Ping timeout: 248 seconds]
TheCubeLord_ has joined #ruby
TheCubeLord11 has joined #ruby
Aviio has joined #ruby
Xeago has joined #ruby
merida_ has quit [Remote host closed the connection]
TheCubeLord11 has quit [Client Quit]
TheCubeLord_ has quit [Client Quit]
TheCubeLord11 has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
intrigueD has joined #ruby
Xeago has quit [Ping timeout: 248 seconds]
merida has quit [Ping timeout: 276 seconds]
TheCubeLord11 has quit [Quit: Leaving]
jaequery has joined #ruby
dikaio has joined #ruby
Snowy has quit [Remote host closed the connection]
sphex_ has quit [Ping timeout: 252 seconds]
djbkd_ has joined #ruby
bricker has quit [Ping timeout: 260 seconds]
sphex has joined #ruby
TheCubeLord has quit [Quit: Leaving]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skade has joined #ruby
_stu_ has joined #ruby
nando293921 has joined #ruby
codecop_ has quit [Remote host closed the connection]
danielwzd has joined #ruby
TomyLobo has joined #ruby
houhoulis has quit [Remote host closed the connection]
tinnvec has quit [Remote host closed the connection]
tinnvec has joined #ruby
chouhoulis has joined #ruby
Ishido has joined #ruby
xue has quit [Quit: Leaving]
Morrolan has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Azure has joined #ruby
chouhoul_ has joined #ruby
unreal has joined #ruby
moeabdol has joined #ruby
bronson has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 260 seconds]
moeabdol has quit [Client Quit]
gbgdev has joined #ruby
solocshaw has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
LoneHerm_ has joined #ruby
skweek has joined #ruby
jaequery has joined #ruby
uglybandersnatch has joined #ruby
rmulligan has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
BtcBen has joined #ruby
tildes has quit [Ping timeout: 246 seconds]
dcunit3d has quit [Ping timeout: 248 seconds]
rmulligan has quit [Ping timeout: 246 seconds]
nofxx has joined #ruby
scepticulous has joined #ruby
RegulationD has joined #ruby
<morfin> hello, can anybody explain one thing - if i have private method foo then do :foo.to_proc.call(self) who calls that method?
<morfin> it says that i call private method foo(raise exception?)
edwinvdg_ has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
djbkd_ has quit [Remote host closed the connection]
Guest34101 has joined #ruby
ruurd has quit [Quit: LayerBNC - https://LayerBNC.org/]
surial has joined #ruby
<surial> I have a question related to ruby and a gem itself, not the language. Is this the right place?
Vingador has quit [Ping timeout: 244 seconds]
RegulationD has quit [Ping timeout: 264 seconds]
<surial> (Specifically, mac os x and ruby from homebrew, gem install gtk2, and a factor 10,000% slowness).
Karix has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> morfin: the proc created by Symbol#to_proc does
<apeiros> surial: yeah, just ask
<surial> Okay. I ran 'gem install gtk2' which seems like it works but it does not. I then ran sudo gem install gtk2 and this works, but then when I start a gtk2-using app, ruby slows down.. a lot. As in, CTRL+C takes 3 minutes (!!) to process just to shut down ruby.
<surial> (as does sending a normal sigkill).
<apeiros> "but it does not" - how do you figure?
<surial> sigterm works fine, and the CPU is not going haywire.
<surial> apeiros: gtk2 bindings fail to load.
<shevy> surial I have no delay using ctrl-c when I use ruby-gtk programs
<surial> Right. So, something is messed up with the installation. All I did was brew install ruby / gem install gtk2 / run a ruby gtk app.
<shevy> I use linux though
<surial> I also get a warning from gtk about missing locales.
LoneHerm_ has quit [Read error: Connection reset by peer]
<surial> Yeah, on linux this would have been easier.
<surial> I have a little ruby experience, but not with GTK2, and this isn't my app. Possibly I'm in the wrong channel.
griffindy has joined #ruby
dmr8 has joined #ruby
<shevy> it sorta sounds as if you have a bug
yqt has joined #ruby
fullofcaffeine has joined #ruby
LoneHerm_ has joined #ruby
<shevy> here is a hello world example in ruby-gtk https://gist.github.com/shevegen/9be59482aa9ee7dec196
<shevy> you may have to try to find someone who uses osx too, to try that example
TheCubeLord has joined #ruby
<shevy> I myself tend to install the gtk/gnome bindings differently. I use https://sourceforge.net/projects/ruby-gnome2/files/ruby-gnome2/ latest variant always, extract it, then batch-install the components of the subdirectories in that extracted directory
<surial> Still pretty slow.
scepticulous has quit [Ping timeout: 276 seconds]
<surial> As in, CTRL+C takes about 10 seconds to process.
<surial> also, I gem unisntalled.. and it still works. so, how the heck is that possible.
elifoster has joined #ruby
<surial> oh, nevermind. It kinda worked but then failed when trying to write docs.
scepticulous has joined #ruby
<surial> Yeah, it's happening. This is idiotically slow. As in, 20seconds + complete frozen.
_stu_ has quit [Quit: _stu_]
jaequery has joined #ruby
<shevy> sounds as if something blocks the main glib loop
<surial> Yes, and it's not the ruby code. Hmm..
<surial> I'm gonna try a reboot just in case.
Vingador has joined #ruby
<shevy> we may have to find another heroic osx user :)
intrigueD has quit [Read error: Connection reset by peer]
intrigueD has joined #ruby
tildes has joined #ruby
jgt has joined #ruby
arup_r has joined #ruby
codecop has joined #ruby
<arup_r> Hi.. I am writing a code. Where I can't sort the random numbers array before hand. I have to output in sorted order through. I did, https://gist.github.com/aruprakshit/7a4a13be1a6f84df4b99#file-histogram-rb-L9. But making a Hash, then sorting it, and then converting back to Hash looks overkill. What is the better way?
<surial> reboot did not help.
nofxx has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
benzrf_irssi has joined #ruby
<benzrf_irssi> hey!
edwinvdgraaf has joined #ruby
<benzrf_irssi> is chruby still preferred for multi-impl ruby stuff?
Suntzu has quit [Read error: Connection reset by peer]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
frustrum has joined #ruby
tildes has quit [Ping timeout: 246 seconds]
edwinvdgraaf has quit [Read error: Connection reset by peer]
<apeiros> arup_r: in your example, the to_h is unnecessary
<apeiros> benzrf_irssi: chruby is still considered to be a good choice
<shevy> benzrf_irssi !!! you are BACK!!!!!!!
edwinvdgraaf has joined #ruby
Xeago has joined #ruby
<benzrf_irssi> hmm
<benzrf_irssi> sup shevy
infernix has quit [Remote host closed the connection]
<benzrf_irssi> i have mixed feelings about ruby these days :}
<shevy> you were gone like 10 years!
<benzrf_irssi> but i'm looking into gsoc with celluloid
<benzrf_irssi> shevy: more like 2-3 :]
IanMalcolm has quit [Quit: ZNC 1.6.1 - http://znc.in]
<shevy> I wasn't so quite off :D
IanMalcolm has joined #ruby
<shevy> you settled for haskell?
<arup_r> apeiros: sort_by breaks Hash to Array..
<arup_r> Oh I see
<arup_r> what you meant
<benzrf_irssi> looks i stopped idling in #ruby on 2014-12-19
<apeiros> yes, if you actually want a hash back after sort, you need to_h.
<benzrf_irssi> so about a year and a half ago
bronson has joined #ruby
<benzrf_irssi> shevy: actually i hadn't been programming so much up until fairly recently
dionysus69 has joined #ruby
frustrum has quit [Ping timeout: 246 seconds]
IanMalcolm has quit [Client Quit]
<benzrf_irssi> doing more math
IanMalcolm has joined #ruby
<surial> Downgraded to GTK2 2.2.5. Same problem, but now killing it eventually leads to this: [BUG] pthread_mutex_unlock: Invalid argument (EINVAL)
<arup_r> nah, hash I needed to count frequency, so I no need any more it. thanks apeiros
<benzrf_irssi> since a month or two ago ive been getting back into doing more programming but mostly in python and a little bit of javascript
<benzrf_irssi> :>
IanMalcolm has quit [Client Quit]
<surial> and it then tries to tell me where to find the crash log. The thing that tries to tell me where the crash log is.. crashed.
<benzrf_irssi> (haskell is still best though)
<surial> Boy, I don't know who maintains these, but clearly this is more of a hobby than a job for em huh.
IanMalcolm has joined #ruby
benzrf has joined #ruby
IanMalcolm has quit [Client Quit]
IanMalcolm has joined #ruby
ruurd has joined #ruby
pelegreno has quit [Remote host closed the connection]
ruurd is now known as Guest60834
<shevy> surial I think they all use linux ;)
<surial> yeah :/
Xeago has quit [Remote host closed the connection]
<benzrf_irssi> shevy: what do you use, windows?
<benzrf_irssi> * surial
infernix has joined #ruby
uglybandersnatch has quit [Ping timeout: 276 seconds]
bronson has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
<benzrf_irssi> does anybody know,
gbgdev_ has joined #ruby
<benzrf_irssi> if i install rubies using my package manager (on Arch), will that work with chruby
jaequery has joined #ruby
<benzrf_irssi> or should i get ruby-install
rmulligan has joined #ruby
gbgdev has quit [Ping timeout: 260 seconds]
pelegreno has joined #ruby
nando293921 has quit [Ping timeout: 240 seconds]
yqt has quit [Ping timeout: 264 seconds]
Xeago has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
Zipdot has joined #ruby
darkf has joined #ruby
<Zipdot> Ahh, great! big channel. first time here! <--
<benzrf_irssi> hello Zipdot!
<Zipdot> hello!
<benzrf_irssi> havenwood: neat, ty
Xeago_ has quit [Remote host closed the connection]
Dimik has joined #ruby
nando293921 has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
<morfin> apeiros, that means "external" object calls that method
<havenwood> Zipdot: welcome
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rmulligan has quit [Ping timeout: 240 seconds]
jaequery has quit [Ping timeout: 260 seconds]
Spami has quit [Quit: This computer has gone to sleep]
_blizzy_ has joined #ruby
marsjaninzmarsa is now known as Marsjan
Marsjan is now known as marsjaninzmarsa
hotpancakes has joined #ruby
rikai has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
fedexo has quit [Ping timeout: 250 seconds]
xlegoman has joined #ruby
<surial> benzrf: mac os x.
<benzrf_irssi> oh
<benzrf_irssi> shouldve guessed from the channel :P
BDA has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<arup_r> I am trying to understand the difference between rand(10) and rand(srand(10)) I see srand version gives always same numbers,, how it rand works with srand to produce same output multiple times? https://gist.github.com/aruprakshit/7a4a13be1a6f84df4b99
hotpanca_ has joined #ruby
BDA has quit [Remote host closed the connection]
<apeiros> somebody calling rand(srand(10)) seems to be somebody who doesn't know what they're doing.
hotpancakes has quit [Remote host closed the connection]
<shevy> looks like php code!
<apeiros> you only call srand when you want to ensure a repeatable series of numbers from rand()
nerium has joined #ruby
<apeiros> and its return value is the old seed, which makes it rather unsuitable as input for rand()
circ-user-woeWP has joined #ruby
circ-user-woeWP has quit [Remote host closed the connection]
elifoster has quit [Ping timeout: 244 seconds]
<arup_r> ok.. so.. if I use srand with rand, it will give me the same number all the time.. the number can be any number.. I am confused because in each turn it gives 9,9.. and then when I changed the seed always 8..
baweaver has joined #ruby
<arup_r> apeiros: what do you mean by old seed?
<apeiros> arup_r: I suggest you read the docs of srand and rand. all I'd do is repeat them.
<arup_r> and I have no connection with this https://gist.github.com/aruprakshit/7a4a13be1a6f84df4b99#file-rand-rb-L7 and my understanding.. How such a huge number came
<arup_r> read 3 times.. have little confusion, so thought to ask here
blandflakes has joined #ruby
<havenwood> >> Random.new_seed
Suntzu has joined #ruby
Xeago has quit [Remote host closed the connection]
tinnvec has quit [Remote host closed the connection]
tinnvec has joined #ruby
tinnvec has quit [Remote host closed the connection]
tinnvec has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
<havenwood> arup_r: ^ meditate on the meaning of the first line of the docs: srand(number = Random.new_seed) → old_seed
<havenwood> arup_r: In your REPL, try `Random.new_seed` a few times.
tinnvec has quit [Remote host closed the connection]
tinnvec has joined #ruby
majjoha has quit [Ping timeout: 248 seconds]
<havenwood> arup_r: Then check `Random::DEFAULT.seed` a few times, restart your REPL and try that again.
LoneHerm_ has quit [Remote host closed the connection]
<benzrf_irssi> >> 1
<havenwood> arup_r: Then try `Random::DEFAULT.seed` a few times followed by `srand` then another few `Random::DEFAULT.seed`s.
<benzrf_irssi> nope, doesnt work
xlegoman has quit [Quit: xlegoman]
<arup_r> yes doing here exactly what you said
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scepticulous has quit [Ping timeout: 252 seconds]
xlegoman has joined #ruby
millerti has joined #ruby
<havenwood> arup_r: Next `srand 42`, check `Random::DEFAULT.seed` and try `rand 100` and `rand 1000`. Restart your REPL and do it again.
Disavowed has joined #ruby
Mon_Ouie has joined #ruby
<arup_r> havenwood: that's the excercise I was needed.. Thanks havenwood thanks. Got it now, what docs meant by old seed.
elifoster has joined #ruby
<arup_r> havenwood: you know what.. you made my day :D
Aviio has quit [Remote host closed the connection]
tinnvec has quit [Remote host closed the connection]
Aviio has joined #ruby
gbgdev_ has quit [Remote host closed the connection]
TheCubeLord has quit [Quit: Leaving]
onechr has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> arup_r: Glad to help. Happy coding!
Vingador has quit [Ping timeout: 264 seconds]
<arup_r> thanks once again havenwood
<arup_r> you got the pain of mine.. and gave exact hints I needed
tinnvec has joined #ruby
mistermocha has joined #ruby
BtcBen has quit [Ping timeout: 252 seconds]
Don_John has joined #ruby
sphex has quit [Read error: Connection reset by peer]
fedexo has joined #ruby
<morfin> >> srand 42; rand 100
tinnvec has quit [Remote host closed the connection]
<morfin> hm
tinnvec has joined #ruby
<xpt> ruby[bot]: alive?
<morfin> i am registered
<morfin> and identified
<apeiros> it has a bug with its user bookkeeping
ruby[bot] has left #ruby ["leaving"]
ruby[bot] has joined #ruby
<apeiros> try again
<benzrf_irssi> >> hi
<morfin> i thought you fixed that : )
<apeiros> no, didn't get around to it yet. and won't anytime soon.
floatingpoint has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
intrigueD has quit [Remote host closed the connection]
<apeiros> I guess I restart is in order. part/rejoin doesn't seem to do it.
<morfin> :(
<morfin> >> nil
<ruby[bot]> morfin: # => nil (https://eval.in/539494)
<morfin> ha
sphex has joined #ruby
tinnvec has quit [Read error: Connection reset by peer]
tinnvec has joined #ruby
<morfin> btw there should be MT for Ruby i guess
<morfin> almost any language have own MT implementation :)
<morfin> even PHP
tinnvec has quit [Remote host closed the connection]
ruby[bot] has quit [Remote host closed the connection]
<benzrf_irssi> MT?
tinnvec has joined #ruby
Spami has joined #ruby
<morfin> Mersenne Twister
n008f4g_ has joined #ruby
<morfin> fast but not safe for crypting pseudorandom number generator
<apeiros> good thing ruby has one too then
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<apeiros> and good thing ruby has a crypto prng too
xlegoman has quit [Quit: xlegoman]
chouhoul_ has joined #ruby
<morfin> is that using urandom?
<morfin> ah yes i knew
chouhoul_ has quit [Remote host closed the connection]
<morfin> OpenSSL/urandom/Win32
ruby[bot] has joined #ruby
chouhoulis has quit [Ping timeout: 264 seconds]
dikaio_ has joined #ruby
dikaio has quit [Ping timeout: 250 seconds]
rrrepsaj has joined #ruby
krz has quit [Quit: WeeChat 1.2]
Mattx has joined #ruby
cejodrake_ has joined #ruby
vdamewood has quit [Quit: Life beckons.]
<Mattx> Hey guys. What's the correct syntax to do something like this? { callbacks: { success: {|msg| ... }, error: {|msg| ...} }}
cejodrake_ has left #ruby [#ruby]
<Mattx> I want to pass a hash as a param, with some callbacks inside
[dmp] has quit [Quit: WeeChat 1.3]
xlegoman has joined #ruby
[dmp] has joined #ruby
arup_r has left #ruby [#ruby]
dcunit3d has joined #ruby
rubyx9 has joined #ruby
<rubyx9> can someone help me with my syntax - speed > 60 || speed < 40 ? return true : return false
<rubyx9> I am attempting to use the Ternary Operator
<adaedra> it's not really needed here
mdw has joined #ruby
<adaedra> return speed > 60 || speed < 40 # should suffice
danielwzd has quit [Quit: Leaving]
hanmac has quit [Ping timeout: 268 seconds]
xlegoman has quit [Quit: xlegoman]
cd-rum has joined #ruby
<Mattx> return speed.between? 40, 60
<rubyx9> adaedra: you are absolutely correct but I am doing a ruby course, and per the course instructions, i have to use a Ternary Operator
<adaedra> aha
<rubyx9> I put my working code here - http://pastebin.ca/3406929
<Mattx> err, return !speed.between?(40, 60)
<apeiros> between? is >=, <=, not >, <
<rubyx9> Mattix: the course wants the ?:
<apeiros> ah, the expression is negated, so it actually works
frustrum has joined #ruby
<Mattx> I forgot the ! :P
<adaedra> rubyx9: the expression your wrote seems correct, even if you can put the return out of the expression
<Mattx> so talking about syntax, what about putting a block inside a hash?
<Mattx> Something like this: { callbacks: { success: {|msg| ... }, error: {|msg| ...} }}
<adaedra> Mattx: use proc.
<adaedra> { callbacks: { success: proc { |msg| ... } }
<adaedra> or lambda, or ->, for this matter.
fullofcaffeine has quit [Remote host closed the connection]
<rubyx9> this dang course man
<rubyx9> its weird
<Mattx> yeah, not sure if it's the same. because I'm passing that to a function that expect a block
<Mattx> I'll check anyway
Gasher has joined #ruby
diegoviola has joined #ruby
mallu has joined #ruby
<adaedra> Mattx: blocks are just an application case of procs. You can, with the thing above, then call a method waiting for a block with something like method(&callbacks[:success])
<morfin> >> ->() {puts "hello"}.call()
<ruby[bot]> morfin: # => hello ...check link for more (https://eval.in/539501)
<morfin> lambdas
<rubyx9> adaedra: ok how about this one - http://pastebin.ca/3406937
<rubyx9> adaedra: instead of using if/else, how can i use ?:
vikaton has quit [Quit: Connection closed for inactivity]
<rubyx9> I came back with this:
<rubyx9> speed > 60 || speed < 40 ? return true : speed > 40 || speed < 60 return false
Gasher has quit [Quit: Leaving]
RegulationD has joined #ruby
vikaton has joined #ruby
hotpanca_ has quit []
rikai has joined #ruby
<rubyx9> anyone
<mtkd> what you doing rubyx9?
<mtkd> you don't need the else part at all from that pastie
<mtkd> the if can be written on a single line
ljames has quit []
Siflyn has joined #ruby
ixti has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
<shevy> I guess he wants to use ternary, for some strange reason
<mtkd> in fact you don't even need an if - speed > 60 || speed < 40 alone will return what you want
<rubyx9> its my COURSE
RegulationD has quit [Ping timeout: 250 seconds]
solars has joined #ruby
bricker has joined #ruby
TheCubeLord has joined #ruby
TheCubeLord has joined #ruby
<rubyx9> shevy: yes I want to use ternary instead of if/else
hanmac has joined #ruby
<shevy> puts x = 5 < 4 ? 'hi' : 'bye'
Musashi007 has joined #ruby
<shevy> x will be assigned to the string 'bye', puts will output x and thus output bye
<rubyx9> shevy: I understand your syntax
<rubyx9> thats the not the issue
pawnbox has joined #ruby
kirillzh has joined #ruby
<rubyx9> the COURSE wants you do it like this
<shevy> no please
<mtkd> something like that?
<mtkd> not sure the last return is needed but can't be arsed running it
cpup has quit [Ping timeout: 252 seconds]
<mtkd> I'm missing an end too
<rubyx9> mtkd: yes EXACTLY like that but I need that same code to use ?:
<rubyx9> they use a checker script, and it has to have a :? to pass
<shevy> my code has a ? !!!
<shevy> even the strange course shows the general syntax conditional ? action_if_true : action_if_false
<rubyx9> jesus christ i understand the syntax but its not passing
<shevy> your journey has come to an end
skade has joined #ruby
cpup has joined #ruby
<rubyx9> 4) Operations #not_safe? uses the ternary operator
<rubyx9> Failure/Error: expect(match).to include("?")
futilegames has joined #ruby
DoubleMalt has joined #ruby
futilegames has quit [Client Quit]
bezhermoso has joined #ruby
<mtkd> (0..40).cover?(speed) || speed > 60 ? true : false
TheCubeLord_ has joined #ruby
<mtkd> does that work?
Disavowed has quit [Ping timeout: 268 seconds]
rrrepsaj has quit [Remote host closed the connection]
<al2o3-cr> speed.between?(40,60) ? false : true
<mtkd> nice, didn't know about between
francesc has joined #ruby
<rubyx9> al203-cr: yes that works
<rubyx9> hehe
diego1 has joined #ruby
<rubyx9> thanks
TheCubeLord_ has quit [Client Quit]
LoneHermit has joined #ruby
diegoviola has quit [Ping timeout: 276 seconds]
blandflakes has joined #ruby
dcunit3d has quit [Ping timeout: 244 seconds]
codecop has quit [Remote host closed the connection]
LoneHermit has quit [Ping timeout: 252 seconds]
fedexo has quit [Ping timeout: 240 seconds]
theRealGent has joined #ruby
b|ackwolf has quit [Ping timeout: 264 seconds]
SenpaiSilver has quit [Read error: Connection reset by peer]
SenpaiSilver has joined #ruby
lianj has quit [Ping timeout: 276 seconds]
lkba has quit [Ping timeout: 240 seconds]
Disavowed has joined #ruby
Mattx has quit [Quit: Leaving]
lkba has joined #ruby
chouhoulis has joined #ruby
pawnbox has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
jaruga_ has quit [Quit: jaruga_]
i8igmac has joined #ruby
Gasher has joined #ruby
lianj has joined #ruby
lianj has joined #ruby
havenwood has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 244 seconds]
Musashi007 has quit [Quit: Musashi007]
Musashi007 has joined #ruby
bronson has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
Musashi007 has quit [Client Quit]
fullofcaffeine has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
warprobot has joined #ruby
warprobot has quit [Remote host closed the connection]
mtkd has quit [Ping timeout: 248 seconds]
bluOxigen has quit [Ping timeout: 276 seconds]
fullofca_ has joined #ruby
mtkd has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
bezhermoso has quit [Quit: Zzzzz...]
fullofc__ has joined #ruby
mdw_ has joined #ruby
mdw has quit [Ping timeout: 244 seconds]
nofxx has quit [Ping timeout: 248 seconds]
fullofcaffeine has quit [Ping timeout: 264 seconds]
nofxx has joined #ruby
Yzguy has joined #ruby
mdw has joined #ruby
mdw__ has joined #ruby
moeabdol has joined #ruby
fullofcaffeine has joined #ruby
fullofca_ has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
FooMunki has joined #ruby
mdw_ has quit [Ping timeout: 276 seconds]
diegoviola has quit [Read error: Connection reset by peer]
diego1 has joined #ruby
norc_ has quit [Ping timeout: 260 seconds]
mdw has quit [Ping timeout: 240 seconds]
LoneHerm_ has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
moeabdol1 has joined #ruby
fullofc__ has quit [Ping timeout: 264 seconds]
Spami has joined #ruby
cHolthi has joined #ruby
moeabdol has quit [Ping timeout: 248 seconds]
rikkipitt has joined #ruby
diego2 has joined #ruby
cHolthi1 has joined #ruby
baweaver has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
<mallu> Can someone please tell me the correct regex for replace this AMI id in this line "ImageId" : "ami-1ec6257e"
cHolthi has quit [Ping timeout: 246 seconds]
cHolthi has joined #ruby
diego1 has quit [Ping timeout: 252 seconds]
<apeiros> mallu: I see "ami" in there, no "AMI". you mean that? or why the lapse in casing?
TheCubeLord has quit [Quit: Leaving]
diego3 has joined #ruby
sneakerhax has quit [Quit: back later]
sneakerhax has joined #ruby
cHolthi1 has quit [Ping timeout: 246 seconds]
<mallu> apeiros: I want to replace that to "ImageId" : "aim-new"
<apeiros> your notation is confusing.
<apeiros> is '"ImageId" : "ami-1ec6257e"' as a whole a string?
<apeiros> or are you showing us part of a hash? or what?
<mallu> apeiros: I have json file and one of the line is "ImageId" : "ami-1ec6257e" I want to search for that line and change it to "ImageId" : "ami-something"
diego2 has quit [Ping timeout: 276 seconds]
FooMunki has quit [Read error: Connection reset by peer]
<apeiros> IMO you should parse the json then, and not use a regex on the serialization
<apeiros> gsub(/ami-[^"]*"/, "ami-new")
baweaver has quit [Ping timeout: 250 seconds]
TheCubeLord has joined #ruby
<mallu> apeiros: ok thanks
rikkipitt has quit [Quit: Leaving...]
tjohnson has joined #ruby
jpfuentes2 has joined #ruby
cHolthi1 has joined #ruby
yqt has joined #ruby
cHolthi has quit [Ping timeout: 240 seconds]
mleung has joined #ruby
mleung has quit [Client Quit]
Spami has quit [Quit: This computer has gone to sleep]
mleung has joined #ruby
RedNifre has left #ruby ["WeeChat 0.4.2"]
<mallu> apeiros: I am getting this "ImageId" : "aim-new. Missing " after new
diego3 has quit [Changing host]
diego3 has joined #ruby
diego3 is now known as diegoviola
cHolthi1 has quit [Ping timeout: 244 seconds]
cHolthi has joined #ruby
<apeiros> mallu: aaaand did you try to fix that?
<mallu> apeiros: can you please explain this to me [^"]*"
<jidar> not quotes
<apeiros> [^] is a negated character class. so [^"] means "any character except a quote"
<apeiros> * means zero-or-more
<mallu> apeiros: ok thanks
matp has quit [Remote host closed the connection]
ready has quit [Ping timeout: 240 seconds]
<mallu> apeiros: this will add trailing "? (/ami-[^"]*"/, "ami-new\"")
cHolthi has quit [Ping timeout: 244 seconds]
Spami has joined #ruby
cHolthi has joined #ruby
vdamewood has joined #ruby
dcunit3d has joined #ruby
nando293921 has quit [Quit: Lost terminal]
Riviera- has joined #ruby
yqt has quit [Ping timeout: 276 seconds]
Dreamer3_ has quit [Quit: Computer has gone to sleep.]
skade has quit [Quit: Computer has gone to sleep.]
cd-rum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cd-rum has joined #ruby
skade has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
roshanavand has quit [Quit: This computer has gone to sleep]
roshanavand has joined #ruby
the_drow has joined #ruby
cHolthi has quit [Ping timeout: 276 seconds]
Marsupermammal has joined #ruby
spacedev has joined #ruby
<spacedev> hi
chouhoulis has joined #ruby
<spacedev> i have installed cocoapods with "sudo gem install cocoapods", but when I "pod init" command, zsh return me command not found
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<spacedev> i running with ZSH
Sucks has joined #ruby
the_drow has quit [Client Quit]
<shevy> spacedev you must have installed ruby in a strange way right?
<spacedev> no ?
<shevy> it must be
diegoviola has quit [Quit: WeeChat 1.4]
<spacedev> maybe its a path issue
<spacedev> im using zsh
<shevy> cocoapods has two executables in bin/ which is bin/pod and bin/sandbox-pod
<shevy> so you can not have a ruby that has the /usr prefix OR you must use something that installs in some other directory
uglybandersnatch has joined #ruby
<benzrf_irssi> spacedev: what OS are you using
<spacedev> yosemite (10.10.5)
ready has joined #ruby
dikaio_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<spacedev> cocoapods is in my gem list
<shevy> look at "gem env" output too
<spacedev> but pod not accessible in my terminal
<spacedev> what i have to do with the gem env ?
mleung has quit [Quit: mleung]
sneakerhax has quit [Ping timeout: 276 seconds]
<shevy> it may show the unusual path
chouhoulis has quit [Ping timeout: 244 seconds]
<spacedev> im really not friendly with path notion
cd-rum has quit [Quit: Textual IRC Client: www.textualapp.com]
<ruby[bot]> spacedev: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/5c860d5dfc0d6940af14
<ruby[bot]> spacedev: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<spacedev> this is the output of my gem env
uglybandersnatch has quit [Ping timeout: 248 seconds]
<shevy> so yeah you installed ruby in a strange way - rbenv :)
PaulCape_ has joined #ruby
blt has joined #ruby
<spacedev> so what ?
<shevy> I am not sure what rbenv recommends to have bin/ files work as-is
Jesperhead has joined #ruby
<spacedev> im totally lost$
uglybandersnatch has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
<shevy> it should be either in /Users/kirgansomville/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0 or in /Users/kirgansomville/.gem/ruby/2.1.0
intrigueD has joined #ruby
<shevy> just find where the "pod" executable is there, you can then either add it to a $PATH or provide a symlink to it but I am sure that rbenv has some way too so you might find that in its documentation
PaulCapestany has quit [Ping timeout: 244 seconds]
mhoungbo has quit [Remote host closed the connection]
* TheCubeLord i have to relog
<Jesperhead> hey all, helping a friend get genieacs up and running on their home machine. They seem to be having problems which look *very* similar to https://github.com/flori/json/issues/229. I attempted to follow Anatol's comment (jan 5th, 2015) and replaced line 175 in /ext/fbuffer/fbuffer.h to include the second argument. Attempting to install still yields the same error. im very new to ruby/gem...
<Jesperhead> ...installer and friend even less so. do we need to compile the gem manually?
TheCubeLord has quit [Quit: Leaving]
TheCubeLord has joined #ruby
biberu has quit [Read error: Connection reset by peer]
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> Jesperhead did you read the description at https://github.com/flori/json/ ?
<Jesperhead> no i have not
<shevy> I see three means; rake install_pure or ruby install.rb or using ragel for creating parser.c from parser.rl
dmr8 has quit [Quit: Leaving]
<shevy> but you could try the pure ruby variant first
<Jesperhead> okay ill get the elders to use the village runestone to decrypt all that
jgt has quit [Quit: WeeChat 1.4]
cd-rum has joined #ruby
n008f4g_ has quit [Ping timeout: 276 seconds]
kentnl has quit [Changing host]
kentnl has joined #ruby
<spacedev> YES I GET IT
<spacedev> foudn it after 4hours of research
<spacedev> just had to run
<spacedev> eval “$(rbenv init -)”
<Radar> That should be in your ~/.bashrc
<spacedev> dont get exactly what it did..
<Radar> or ~/.bash_profile. I am not sure which one.
jdawgaz has joined #ruby
nerium has quit [Quit: nerium]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
Cohedrin has joined #ruby
axisys has quit [Remote host closed the connection]
binaryplease has joined #ruby
stannard has joined #ruby
dikaio has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
silentpost has quit [Quit: Lost terminal]
n008f4g_ has joined #ruby
mnrmnaugh is now known as thatbracket[
silentpost has joined #ruby
djbkd has joined #ruby
stannard_ has joined #ruby
stannard has quit [Ping timeout: 250 seconds]
spacedev has quit [Ping timeout: 252 seconds]
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
RegulationD has joined #ruby
mdw has joined #ruby
mdw has quit [Max SendQ exceeded]
mdw has joined #ruby
mdw has quit [Max SendQ exceeded]
mdw__ has quit [Ping timeout: 240 seconds]
djellemah_ has quit [Ping timeout: 246 seconds]
mdw has joined #ruby
<Jesperhead> shevy: thanks for you earlier input and forgive my smarmy-ness. we're gonna shelve the issue for today. maybe we can get it working in the coming weeks
Mattx has joined #ruby
bricker has quit [Ping timeout: 250 seconds]
nerium has joined #ruby
RegulationD has quit [Ping timeout: 248 seconds]
<Mattx> Is there a way to stop the interpreter exactly when the exception occurs? It would be really time saving. For instance if I do foo/bar and bar=0, I want to stop the code right there before it throw the exception so I check what's wrong, instead of adding a "debugger" line and running the code again. Possible?
<Radar> Mattx: No. Put a debugger.
<darix> Mattx: there is a pry wrapper that will catch any exception
<Mattx> that's what I'm doing, but it takes a lot of time and effort
cpup has quit [Ping timeout: 244 seconds]
cHolthi has joined #ruby
<Mattx> because I'm developing a tool that takes random rows from the DB and process them, but sometimes it crashes, and it's hard to reproduce the error
wilbert has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
vikaton has quit [Quit: Connection closed for inactivity]
marr has joined #ruby
cHolthi1 has joined #ruby
blackmesa has joined #ruby
cpup has joined #ruby
Aviio has quit [Remote host closed the connection]
cHolthi has quit [Ping timeout: 276 seconds]
sesquipedalian has joined #ruby
<Mattx> darix, seriously awesome, thanks!
cHolthi has joined #ruby
ss_much has joined #ruby
BtcBen has joined #ruby
<darix> Mattx: normally i dont put debugger statements into files anymore. rescue Exception => ex ; binding.pry ; end
<darix> and you can tinker
mdw has quit [Quit: Sleeping Zzzzz]
cHolthi1 has quit [Ping timeout: 248 seconds]
ensyde_ has joined #ruby
<Mattx> sure, but you have to know where the bugs will be
<Mattx> the only problem I've found so far with pry-rescue is that when you're running more than one thread, it'll stop the thread with the exception while the other keeps running
<Mattx> so the output gets messed up
<Mattx> (or so I think, I'm still figuring it out)
anjen has quit [Quit: anjen]
Aviio has joined #ruby
B4daBing73 has joined #ruby
B4daBing73 has quit [Changing host]
B4daBing73 has joined #ruby
marcofernandez has joined #ruby
cHolthi has quit [Ping timeout: 248 seconds]
<benzrf_irssi> Tfw no happy medium between js, ruby, & python
Aviio has quit [Ping timeout: 244 seconds]
bezhermoso has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
TheCubeLord has quit [Quit: Leaving]
TheCubeLord has joined #ruby
nando293921 has joined #ruby
<shevy> you have too much in your stack!
<shevy> throw out js :)
bezhermoso has quit [Client Quit]
<benzrf_irssi> eh
<benzrf_irssi> you're right, i should've said between ruby and python
<Mattx> darix, do you happen to know how you you move up into the stack? I've got an exception witin a gem, I want to see the code that called that method
<benzrf_irssi> i only mentioned js because some aspects of it already reach the happy medium i want, but others are much worse than either of ruby or python
TheCubeLord has quit [Client Quit]
TheCubeLord has joined #ruby
BtcBen has quit [Ping timeout: 252 seconds]
_blizzy_ has quit [Quit: Leaving]
DoubleMalt has quit [Remote host closed the connection]
<darix> Mattx: up/down maybe?
<Mattx> yeah, I thought so but I needed to install pry-stack_explorer for up/down to work
<Mattx> There will be a time for me to wonder how I could code without pry-rescue and pry-stack_explorer :P
<benzrf_irssi> like, if you threw away js's syntax, just keeping the abstract syntax trees, and you stripped out almost all of its builtins and standard library, you'd get something pretty close to my ideal dynlang
<benzrf_irssi> er, rather, something pretty close to what you'd get by doing the same thing to my ideal dynlang
<benzrf_irssi> but of course the syntax and builtins and standard library are awful ;-;
chouhoulis has joined #ruby
diegoviola has joined #ruby
cd-rum has quit [Quit: Textual IRC Client: www.textualapp.com]
sneakerhax has joined #ruby
ensyde_ has quit [Quit: Leaving]
cd-rum has joined #ruby
workmad3 has quit [Quit: leaving]
workmad3 has joined #ruby
workmad3 has quit [Client Quit]
nettoweb has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
tomatoes has joined #ruby
workmad3 has joined #ruby
bronson has joined #ruby
ensyde_ has joined #ruby
zenlot6 has joined #ruby
cd-rum_ has joined #ruby
zenlot has quit [Ping timeout: 244 seconds]
sneakerhax has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 252 seconds]
workmad3 has quit [Client Quit]
Inside has joined #ruby
workmad3 has joined #ruby
hightower3 has quit [Ping timeout: 276 seconds]
workmad3 has quit [Client Quit]
Jesperhead has quit [Quit: ChatZilla 0.9.92 [Firefox 45.0.1/20160315153207]]
cd-rum has quit [Ping timeout: 252 seconds]
wilbert has quit [Ping timeout: 260 seconds]
htmldrum has joined #ruby
workmad3 has joined #ruby
JoshGlzBrk has joined #ruby
workmad3 has quit [Client Quit]
workmad3 has joined #ruby
jcdesimp has joined #ruby
phage has left #ruby ["WeeChat 1.4"]
last_staff has quit [Quit: last_staff]
workmad3 has quit [Client Quit]
ready has quit [Quit: Leaving]
francesc has quit [Quit: Konversation terminated!]
workmad3 has joined #ruby
workmad3 has quit [Client Quit]
workmad3 has joined #ruby
workmad3 has quit [Client Quit]
workmad3 has joined #ruby
hightower3 has joined #ruby
intrigueD has quit [Read error: Connection reset by peer]
intrigueD has joined #ruby
<benzrf_irssi> augh
<shevy> not much you seem to wanna keep from javascript :D
<benzrf_irssi> who EVER decided that abandoning explicitness in favor of conciseness was a good idea
<benzrf_irssi> even moderately cleverly written ruby is IMPOSSIBLE to read compared to, say, python
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
<Papierkorb> I always found python to be unreadable
<shevy> it sorta depends
<shevy> I'd like to have an optional way to write a given .rb file without any "end"
rkoller has joined #ruby
mlehrer has quit [Ping timeout: 246 seconds]
<Papierkorb> Please no.
nertzy has quit [Read error: Connection reset by peer]
<benzrf_irssi> Papierkorb: do you mean syntactically?
BtcBen has joined #ruby
<Papierkorb> mostly yes.
<benzrf_irssi> alright
nertzy has joined #ruby
<benzrf_irssi> yeah, i meant semantically
<Papierkorb> I do need the end or } or whatever the language uses. I use them as visual skip markers to find end of branches all the time.
<benzrf_irssi> like, figuring out what a piece of code is doing, what other code it's making use of, etc
skade has quit [Quit: Computer has gone to sleep.]
<benzrf_irssi> ruby is not so syntactically unreadable
chipotle has quit [Quit: cheerio]
fullofcaffeine has quit [Ping timeout: 250 seconds]
matp has joined #ruby
`tim` has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
sysodaff has joined #ruby
Thomas-0725 has joined #ruby
Jackneill has quit [Ping timeout: 244 seconds]
sysodaff has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 244 seconds]
djbkd has quit [Remote host closed the connection]
<Ox0dea> benzrf_irssi: It can be. ^_^
otherj has joined #ruby
n008f4g_ has joined #ruby
cd-rum_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SCHAAP137 has joined #ruby
trosborn has joined #ruby
chipotle has joined #ruby
mistermocha has joined #ruby
Suntzu has quit [Read error: Connection reset by peer]
rikkipitt has joined #ruby
* rik ponders layout engines.
rikkipitt has quit [Remote host closed the connection]
marcdel has joined #ruby
cd-rum has joined #ruby
Marsupermammal has joined #ruby
<rik> i have to choose between everything Sinatra supports, and I'm thinking abot going with erb, becase it's included. Is that sensible, or does erb suck badly enough that i should pick another one?
rodfersou has joined #ruby
Aviio has joined #ruby
Karix has joined #ruby
<nickjj> rik, i never had any issues with erb
<benzrf> that's not what a layout engine is, is it?
Karix has quit [Client Quit]
<benzrf_irssi> aren't those called template engines?
<benzrf> or templating engines
mistermocha has quit [Ping timeout: 248 seconds]
solars has quit [Quit: WeeChat 0.4.2]
<rik> benzrf: no, to be fair, i did mean templating engine, in this case.
nettoweb has quit [Ping timeout: 244 seconds]
<riceandbeans> can you ensure data types in a struct?
rubyx9 has quit [Ping timeout: 264 seconds]
<riceandbeans> like Foo = Struct.new( :bar, :baz ) where :bar is Fixnum and :baz is Bool ?
<shevy> don't think so
tomatoes has quit [Ping timeout: 240 seconds]
Aviio has quit [Ping timeout: 250 seconds]
<shevy> structs are super primitive
Aviio has joined #ruby
<benzrf_irssi> riceandbeans: if you want correctness constraints on code, your best bet is to look elsewhere
<shevy> hmm perhaps you can patch it at runtime riceandbeans
havenwood has joined #ruby
havenwood has quit [Changing host]
havenwood has joined #ruby
SaintAardvark has quit [Ping timeout: 264 seconds]
bezhermoso has joined #ruby
<riceandbeans> what's the best way to do it if you want correctness constraints?
<riceandbeans> a class instead of a struct?
bezhermoso has quit [Client Quit]
Gasher^ has joined #ruby
Gasher has quit [Ping timeout: 240 seconds]
Anderson69s_Deb has quit [Quit: Leaving]
<shevy> yeah
<shevy> and use setter methods that ensure that these are always a fixnum or a bool and so on
chouhoulis has joined #ruby
sysodaff has joined #ruby
blt has quit [Ping timeout: 268 seconds]
chouhoulis has quit [Ping timeout: 276 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sysodaff has quit [Ping timeout: 246 seconds]
x77686d_ has joined #ruby
x77686d has quit [Ping timeout: 276 seconds]
x77686d_ is now known as x77686d
<riceandbeans> shevy: actually, I'm not sure how to go about this
<riceandbeans> shevy: if I'm receiving json data, is it worth taking it and making a struct/class out of it, then referring to attr in them, or just parse the json and refer to it as keys of the json and leave it like that?
BtcBen has quit [Ping timeout: 252 seconds]
jdawgaz has joined #ruby
uglybandersnatch has quit [Ping timeout: 240 seconds]
jaequery has joined #ruby
blt has joined #ruby
binaryplease has quit [Ping timeout: 268 seconds]
Suntzu has joined #ruby
weemsledeux has joined #ruby
otherj has quit [Quit: .]
Anderson69s_Deb has joined #ruby
<shevy> I dunno, I never was a big struct user
<shevy> I always end up writing a class that does the parsing for data, add methods to it etc..
<shevy> I mean it depends on what you want to be able to do
Guest60834 is now known as ruurd
<shevy> if you want fancy methods, than fancy up that json hash
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<riceandbeans> it's just dumb json being throw at an API
decoponyo has joined #ruby
firstdayonthejob has quit [Ping timeout: 244 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
decoponio has quit [Ping timeout: 260 seconds]
SCHAAP137 has quit [Quit: Leaving]
graffix has quit [Ping timeout: 276 seconds]