<havenwood>
oops, I should have said: Array.new(5) { Array.new 5, 0 }
d^sh has joined #ruby
duckpuppy has quit [Ping timeout: 256 seconds]
lszhu has quit [Ping timeout: 272 seconds]
iogf has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 258 seconds]
duckpuppy has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
JeanCarloMachado has quit [Ping timeout: 248 seconds]
SpComb has quit [Ping timeout: 248 seconds]
SpComb has joined #ruby
Radar_ is now known as Radar
Radar has quit [Changing host]
Radar has joined #ruby
postmodern has joined #ruby
hanmac has joined #ruby
dc4 has quit [Ping timeout: 272 seconds]
ghr has quit [Ping timeout: 268 seconds]
ghr has joined #ruby
hotpancakes has joined #ruby
hutch34 has joined #ruby
charliesome has joined #ruby
zotherstupidguy has quit [Ping timeout: 246 seconds]
paul___ has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
boombox_ has joined #ruby
enilsen16 has quit [Quit: enilsen16]
hutch34 has quit [Ping timeout: 248 seconds]
hahuang61 has joined #ruby
moei has quit [Ping timeout: 248 seconds]
ddffg has quit [Quit: Leaving]
dc4 has joined #ruby
govg has quit [Ping timeout: 248 seconds]
hahuang61 has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AndBobsYourUncle has joined #ruby
milardovich has joined #ruby
aidalgol has joined #ruby
aidalgol is now known as Guest5561
Guest5561 has quit [Remote host closed the connection]
aremaref has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
milardovich has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
Dinnu has joined #ruby
nankyokusei has joined #ruby
jameser has joined #ruby
zotherstupidguy has joined #ruby
AndBobsYourUncle has joined #ruby
<paradisaeidae_>
hny Ruby! Upgrading from 2.2.0 to 2.4.0 here, attempting gem server, looks like Socket has moved a bit. socket.rb has 'become' socket.so
<paradisaeidae_>
Having skipped 2.3 this is new to me. So I'm getting undefined method `tcp_server_sockets' for Socket:Class
<paradisaeidae_>
This must be a known issue?
tpabla has quit [Quit: Lost terminal]
jameser has quit [Max SendQ exceeded]
astrobunny has quit [Remote host closed the connection]
jameser has joined #ruby
braincrash has quit [Ping timeout: 256 seconds]
milardovich has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
milardovich has quit [Ping timeout: 258 seconds]
saneax-_-|AFK is now known as saneax
toretore has quit [Ping timeout: 245 seconds]
agit0 has quit [Quit: zzzZZZ….]
<Radar>
paradisaeidae_: Can you show me how you're calling `tcp_server_sockets`? I'm doing `require 'socket'` to load the Socket class, and then `Socket.tcp_server_sockets` and it works for me.
<Radar>
Also, looks to me like `socket.rb` is in the same place in 2.4.0: /Users/ryanbigg/.rubies/ruby-2.4.0/lib/ruby/2.4.0/socket.rb as it is in 2.3: /Users/ryanbigg/.rubies/ruby-2.3.1/lib/ruby/2.3.0/socket.rb:750
<paradisaeidae_>
looks like I'm missing the 2.4.0/socket.rb file...
igniting has joined #ruby
<paradisaeidae_>
Ruby compiles so quickly now I don't see all the messages...
<paradisaeidae_>
maybe something happened there.
braincrash has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
snath has joined #ruby
aremaref has quit [Ping timeout: 248 seconds]
brent__ has joined #ruby
<paradisaeidae_>
manually copied socket.rb to ../lib and it passes that point
<paradisaeidae_>
thx!
<zenspider>
I miss the days when ruby would literally compile, link, and install in a minute. :(
<adam12>
:O
dc4 has quit [Quit: WeeChat 1.4]
aeontech has joined #ruby
dcunit3d has joined #ruby
enyo_ has joined #ruby
jenrzzz has joined #ruby
milardovich has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jhack has joined #ruby
enyo_ has quit [Ping timeout: 240 seconds]
milardovich has quit [Ping timeout: 245 seconds]
snath has left #ruby ["Leaving"]
Derperpe1 has quit [Ping timeout: 272 seconds]
polysics has joined #ruby
braincrash has quit [Ping timeout: 256 seconds]
Guest99633 is now known as bougyman
ledestin has joined #ruby
braincrash has joined #ruby
houhoulis has quit [Remote host closed the connection]
jhack has quit [Quit: jhack]
braincrash has quit [Client Quit]
AndBobsYourUncle has quit [Remote host closed the connection]
izaac has quit [Ping timeout: 245 seconds]
izaac has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
AndBobsYourUncle has joined #ruby
xall_ has joined #ruby
Coldblackice_ has quit [Ping timeout: 246 seconds]
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
s2013 has joined #ruby
xall_ has quit [Ping timeout: 256 seconds]
hotpancakes has quit [Remote host closed the connection]
eelster[USA] is now known as eelster[USA|GOLD
paradisaeidae has quit [Quit: ChatZilla 0.9.93 [Firefox 50.1.0/20161208153507]]
paradisaeidae_ has quit [Quit: ChatZilla 0.9.93 [Firefox 50.1.0/20161208153507]]
hotpancakes has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
eelster[USA|GOLD is now known as eelster[USA
eelster[USA is now known as eelster
eelster has quit [Quit: celebrating us victory]
testertsts has joined #ruby
nadir|mobile has quit [Quit: Connection closed for inactivity]
testertsts has quit [Client Quit]
igniting has quit [Ping timeout: 246 seconds]
milardovich has joined #ruby
whathappens has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
braincrash has joined #ruby
jackjackdripper has joined #ruby
polysics has quit [Remote host closed the connection]
aeontech has quit [Quit: aeontech]
blackbombay has quit [Ping timeout: 246 seconds]
milardovich has quit [Ping timeout: 256 seconds]
whathappens has quit [Ping timeout: 258 seconds]
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
aremaref has joined #ruby
blackbombay has joined #ruby
k13nox has joined #ruby
Channel6 has joined #ruby
igniting has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
k13nox has quit [Ping timeout: 258 seconds]
brent__ has quit [Remote host closed the connection]
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
boombox_ has quit [Remote host closed the connection]
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
bronson has joined #ruby
gix has quit [Ping timeout: 255 seconds]
dcunit3d has quit [Ping timeout: 256 seconds]
dcunit3d has joined #ruby
gix has joined #ruby
Derperpe1 has joined #ruby
igniting has quit [Ping timeout: 272 seconds]
xall_ has joined #ruby
reverberations has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
AKPWD has quit [Read error: Connection reset by peer]
nikivi has quit [Quit: irc]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
Derperpe1 has quit [Ping timeout: 255 seconds]
milardovich has joined #ruby
username_ has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
raul782 has joined #ruby
aries_liuxueyang has quit [Ping timeout: 258 seconds]
ruby-lang761 has joined #ruby
<ruby-lang761>
myarray = [1,2,3,4]
<ruby-lang761>
how to take random numbers from first element to last element?
aries_liuxueyang has joined #ruby
hahuang61 has joined #ruby
<ruby-lang761>
take command only takes from first element
ur5us has quit [Remote host closed the connection]
duckpuppy has joined #ruby
<Radar>
ruby-lang761: [1,2,3,4].shuffle
<Radar>
>> [1,2,3,4].shuffle
AndBobsYourUncle has joined #ruby
AKPWD has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
aupadhye has joined #ruby
<ruby-lang761>
thx @Radar :)
<ruby-lang761>
how come there's no shuffle in ruby docs?
hahuang61 has quit [Ping timeout: 255 seconds]
<ruby-lang761>
oh there is :)
duckpuppy has quit [Ping timeout: 255 seconds]
ARCADIVS has joined #ruby
Devalo has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
s2013 has quit [Client Quit]
bocaneri has joined #ruby
Anonymoose2 has joined #ruby
howdoi has joined #ruby
bronson has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
jackjackdripper has quit [Quit: Leaving.]
<ruby-lang761>
hi shuffle doesn't work for range ?
<ruby-lang761>
(first_no..second_no).shuffle
reverberations has quit [Ping timeout: 246 seconds]
<Radar>
Because it's not defined on Range. You would need to convert the Range to an Array first.
nankyokusei has joined #ruby
Devalo has quit [Ping timeout: 258 seconds]
<ruby-lang761>
thx bro
aremaref has quit [Ping timeout: 272 seconds]
reverberations has joined #ruby
hotpancakes has quit [Remote host closed the connection]
whathappens has joined #ruby
nikivi has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
Channel6 has quit [Quit: Leaving]
pawnbox has joined #ruby
polysics has joined #ruby
Anonymoose2 has quit [Ping timeout: 256 seconds]
whathappens has quit [Ping timeout: 256 seconds]
SJr has quit [Read error: Connection reset by peer]
SJr has joined #ruby
AndBobsYourUncle has joined #ruby
polysics has quit [Ping timeout: 256 seconds]
enyo has joined #ruby
k13nox has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
enyo has quit [Ping timeout: 240 seconds]
k13nox has quit [Ping timeout: 245 seconds]
maattdd__ has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
ruby-lang761 has quit [Ping timeout: 260 seconds]
cibs has joined #ruby
hutch34 has quit [Ping timeout: 272 seconds]
maattdd__ has quit [Ping timeout: 256 seconds]
zotherstupidguy has quit [Quit: WeeChat 1.6]
Derperpe1 has joined #ruby
renchan has joined #ruby
aremaref has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
milardovich has joined #ruby
brent__ has quit [Remote host closed the connection]
testuser1 has joined #ruby
pawnbox has quit [Remote host closed the connection]
Rufus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
milardovich has quit [Ping timeout: 246 seconds]
pawnbox has quit [Read error: No route to host]
pawnbox has joined #ruby
nikivi has quit [Quit: irc]
jameser_ has joined #ruby
igniting has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
jameser has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
FastJack has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
iMadper is now known as Madper|repeater
brent__ has joined #ruby
duckpuppy has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
hotpancakes has joined #ruby
cibs has joined #ruby
duckpuppy has quit [Ping timeout: 272 seconds]
hellerbarde2 has joined #ruby
hellerbarde2 has quit [Client Quit]
djbkd2 has joined #ruby
djbkd2 has quit [Client Quit]
djbkd2 has joined #ruby
aremaref has quit [Ping timeout: 240 seconds]
brent__ has quit [Remote host closed the connection]
mantis__ has joined #ruby
brent__ has joined #ruby
blackbombay has quit [Ping timeout: 258 seconds]
blackbom1 has joined #ruby
m_antis has quit [Ping timeout: 255 seconds]
Madper|repeater is now known as iMadper
reverberations has quit [Read error: Connection reset by peer]
username_ has quit [Ping timeout: 272 seconds]
brent__ has quit [Remote host closed the connection]
hahuang61 has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
symm- has quit [Ping timeout: 240 seconds]
symm- has joined #ruby
brent__ has joined #ruby
markholmes has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
k13nox has joined #ruby
pawnbox_ has joined #ruby
reverberations has joined #ruby
jameser_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
markholmes has quit [Ping timeout: 272 seconds]
pawnbox has quit [Ping timeout: 245 seconds]
jameser has joined #ruby
gatewarstrek has joined #ruby
k13nox has quit [Ping timeout: 248 seconds]
brent__ has quit [Remote host closed the connection]
muelleme has joined #ruby
hotpancakes has quit [Remote host closed the connection]
<gatewarstrek>
I have a gem (google-protobuf) that ships with native extension binaries, however they are built incorrectly for the environment I'm in. Is there a simple way to force the native extensions to build despite the included binaries?
AndBobsYourUncle has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
markholmes has joined #ruby
AndBobsYourUncle has joined #ruby
SpiffTR has joined #ruby
enterprisey has quit [Ping timeout: 255 seconds]
SpiffTR has quit [Client Quit]
vikaton has quit [Quit: Connection closed for inactivity]
agit0 has joined #ruby
agit0 has quit [Client Quit]
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
vuoto has joined #ruby
unshadow has quit [Ping timeout: 258 seconds]
voker57 has quit [Ping timeout: 240 seconds]
voker57 has joined #ruby
voker57 has joined #ruby
voker57 has quit [Changing host]
unshadow has joined #ruby
neuraload has joined #ruby
symm has joined #ruby
symm- has quit [Ping timeout: 248 seconds]
AndBobsYourUncle has joined #ruby
rippa has joined #ruby
ecksit has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
<Zarthus>
*shrugs*, maybe just me but my strings usually are split if they are multiple lines long :P
<Zarthus>
netsplits, probably.
<apeiros>
Zarthus: "are usually split" - not in any of the code bases I've ever read.
AndBobsYourUncle has joined #ruby
<apeiros>
and I've read quite a bit of code :)
<Zarthus>
maybe i'm just weird :(
hotpancakes has quit [Ping timeout: 255 seconds]
<Zarthus>
I try to avoid using regex on large strings :P
<apeiros>
anyway, ^$ makes for easy mistakes in validations
futilegames has quit [Quit: futilegames]
<Torrone>
hello, I'm having trouble making a valid request, always getting "OAuth signature does not match". I have two virtually identical requests, one works ( in Postman ) the other doesn't, the latter is sent from Ruby on Rails, I'm trying to request a token from a wordpress application.
jameser has quit [Read error: Connection reset by peer]
pawnbox has quit [Read error: No route to host]
pawnbox has joined #ruby
csk157 has joined #ruby
jameser has joined #ruby
gajus has joined #ruby
tk__ has joined #ruby
manjaro-kde5__ has quit [Ping timeout: 240 seconds]
Snowy has joined #ruby
d^sh_ has joined #ruby
raul782 has quit []
raul782 has joined #ruby
Devalo has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
d^sh has quit [Ping timeout: 240 seconds]
Kaze_FX has joined #ruby
Devalo has quit [Ping timeout: 258 seconds]
jameser has joined #ruby
juanda has joined #ruby
SesMan has joined #ruby
hahuang61 has joined #ruby
Tristan-Speccy has joined #ruby
jameser has quit [Client Quit]
Tristan-Speccy is now known as Guest1390
sepp2k has quit [Quit: Leaving.]
Kaze_FX has quit [Quit: leaving]
jlach has joined #ruby
sepp2k has joined #ruby
Kaze_FX has joined #ruby
Rich_Morin1 has joined #ruby
Rich_Morin has quit [Ping timeout: 256 seconds]
mikecmpbll has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
mikecmpb_ has quit [Ping timeout: 240 seconds]
nickjj has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
Guest72198 is now known as ged
ged is now known as Guest82179
JoshS has quit [Ping timeout: 272 seconds]
mikecmpbll has quit [Ping timeout: 248 seconds]
<jlach>
Can anyone give me a high level overview of what is the significance of a object being wrapped in a T_NODE(NODE_LIT)?
workmad3 has quit [Ping timeout: 256 seconds]
mikecmpb_ has joined #ruby
<jlach>
I'm seeing a TimeoutError("execution expired") being assigned to th->errinfo, but instead of a plain T_OBJECT it's wrapped in T_NODE(NODE_LIT) and then causes a segfault when it's passed, still wrapped, to rb_exc_raise
hutch34 has quit [Ping timeout: 258 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
whathappens has joined #ruby
conta has quit [Remote host closed the connection]
juanda has quit [Ping timeout: 248 seconds]
harfangk has joined #ruby
milardovich has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
milardovich has joined #ruby
whathappens has quit [Ping timeout: 246 seconds]
al2o3-cr has joined #ruby
synaps3 has joined #ruby
juanda has joined #ruby
synaps3 has left #ruby [#ruby]
csk157 has quit [Read error: Connection reset by peer]
csk157 has joined #ruby
c355e3b has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
Silox| has joined #ruby
matp has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rwb has quit [Ping timeout: 255 seconds]
iogf has joined #ruby
saneax is now known as saneax-_-|AFK
conta has joined #ruby
SesMan has joined #ruby
gnufied has quit [Quit: Leaving]
matp has quit [Quit: ZZzzzZz...]
Torrone_1 has joined #ruby
Torrone has quit [Ping timeout: 240 seconds]
jhack has joined #ruby
jhack has quit [Client Quit]
symm has quit [Ping timeout: 272 seconds]
SpiffTR has quit [Quit: Leaving.]
symm- has joined #ruby
Gasher has joined #ruby
tomphp has joined #ruby
nankyokusei has joined #ruby
pawnbox has quit [Remote host closed the connection]
workmad3 has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
siddart has joined #ruby
hutch34 has joined #ruby
jhack has joined #ruby
manjaro-kde5__ has joined #ruby
Torrone_1 has quit [Ping timeout: 256 seconds]
matp has joined #ruby
kareelee has quit [Remote host closed the connection]
kareelee has joined #ruby
Ax has joined #ruby
tyang has joined #ruby
h1fuelcell has joined #ruby
biberu has joined #ruby
emerson has quit [Quit: leaving]
pawnbox has joined #ruby
emerson has joined #ruby
SpiffTR has joined #ruby
<jlach>
(hm found out that the T_NODE(NODE_LIT) is coming from `rb_throw_obj`: `th->errinfo = NEW_THROW_OBJECT(tag, 0, TAG_THROW);`. The problem seems to be that this is then passed to rb_throw_obj *again*
synthroid has joined #ruby
hotpancakes has joined #ruby
OTORelic1 has joined #ruby
shinnya has joined #ruby
kareelee has quit [Remote host closed the connection]
kareelee has joined #ruby
symm- has quit [Ping timeout: 245 seconds]
sepp2k1 has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raul782 has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 248 seconds]
siddart has quit [Ping timeout: 256 seconds]
raul782 has joined #ruby
matp has quit [Quit: ZZzzzZz...]
kareelee_ has joined #ruby
tomphp has joined #ruby
OTORelic2 has joined #ruby
synthroi_ has joined #ruby
kareelee has quit [Read error: Connection reset by peer]
terens has joined #ruby
OTORelic1 has quit [Ping timeout: 240 seconds]
terens is now known as Bus
AndBobsYourUncle has joined #ruby
kareelee_ has quit [Client Quit]
Guest82179 is now known as ged
synthroid has quit [Ping timeout: 248 seconds]
ged is now known as Guest84631
kareelee has joined #ruby
gnufied has joined #ruby
kareelee has quit [Client Quit]
is_null has quit [Quit: github.com/jpic]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
whathappens has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
Toledo is now known as croberts
is_null has joined #ruby
malconis has joined #ruby
bronson has joined #ruby
rodfersou is now known as rodfersou|lunch
whathappens has quit [Ping timeout: 248 seconds]
csk157 has quit [Ping timeout: 255 seconds]
Ax has quit [Quit: Ax]
bronson has quit [Ping timeout: 272 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
ramortegui has joined #ruby
hotpancakes has quit [Ping timeout: 255 seconds]
Kaze_FX has quit [Quit: leaving]
siddart has joined #ruby
maattdd__ has quit [Quit: WeeChat 1.5]
Guest6346 has quit [Changing host]
Guest6346 has joined #ruby
Guest6346 is now known as rt
Torrone_1 has joined #ruby
alireza has joined #ruby
<alireza>
what's the better way to do this?
<alireza>
def role?(role) roles.any { |role| role.name.underscore.to_sym == role } end
dionysus70 has joined #ruby
matp has joined #ruby
<alireza>
to not shadowing outer scope variable role
dionysus69 has quit [Ping timeout: 245 seconds]
dionysus70 is now known as dionysus69
Luna_Moonfang has quit [Quit: upgrading kernel, here goes nothing!]
<ytti>
by better i guess you mean working?
<ytti>
i thnk any is any?
brendan- has joined #ruby
<ytti>
and umm, just give the variables differen name
<alireza>
ytti: i don't want to
csk157 has joined #ruby
<ytti>
def role?(role_want);roles.any? { |role| role.name.underscore.to_sym == role_want }; end
tk__ has quit [Quit: ばいばい]
<ytti>
you don't want to shadow them, but you want to have same variable name?
<ytti>
so essentially you want role and role to be different, but same
<ytti>
like coke new
<ytti>
unfortuantely i don't have solution for that problem, best of luck
Luna_Moonfang has joined #ruby
rt has quit [Quit: Life is too short to wait.]
igniting has quit [Ping timeout: 258 seconds]
__Yiota has joined #ruby
rt has joined #ruby
saltsa has quit [Ping timeout: 248 seconds]
TheWhip has joined #ruby
<apeiros>
alireza: "I want two times the same variable name with different content" - not possible. and does not make sense to boot.
saltsa has joined #ruby
<apeiros>
oh, + "i
<apeiros>
erg, premature enter
bloodwire has joined #ruby
hahuang61 has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
bloodwire has quit [Remote host closed the connection]
SpiffTR has quit [Quit: Leaving.]
DLSteve has joined #ruby
pawnbox has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 255 seconds]
d0nn1e has quit [Ping timeout: 255 seconds]
Torrone_1 has quit [Quit: This computer has gone to sleep]
VladGh has quit [Remote host closed the connection]
VladGh has joined #ruby
pawnbox has joined #ruby
d0nn1e has joined #ruby
saltsa has quit [Quit: reboot]
pawnbox has quit [Ping timeout: 248 seconds]
despai has joined #ruby
blackbombay has joined #ruby
raul782 has quit [Remote host closed the connection]
blackbom1 has quit [Ping timeout: 258 seconds]
raul782 has joined #ruby
siddart_ has joined #ruby
last_staff has quit [Quit: last_staff]
SpiffTR has joined #ruby
siddart has quit [Ping timeout: 240 seconds]
siddart_ has quit [Read error: Connection reset by peer]
raul782 has quit [Ping timeout: 256 seconds]
doubleemms has quit [Remote host closed the connection]
raul782 has joined #ruby
saltsa has joined #ruby
siddart_ has joined #ruby
AndBobsYourUncle has joined #ruby
Kaze_FX has joined #ruby
polishdub has joined #ruby
anisha has joined #ruby
bronson has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.6]
nettoweb has joined #ruby
Guest84631 is now known as ged
ged is now known as Guest71082
bronson has quit [Ping timeout: 246 seconds]
howdoi has joined #ruby
mello has quit [Ping timeout: 272 seconds]
petrichorx_ has joined #ruby
pawnbox has joined #ruby
StoneCyp1er has quit [Ping timeout: 240 seconds]
Guest36293 is now known as JoshL
nettoweb has quit [Ping timeout: 240 seconds]
Alina-malina has quit [Excess Flood]
chouhoulis has joined #ruby
kristofferR has joined #ruby
Alina-malina has joined #ruby
alireza has quit [Quit: Page closed]
matp has quit [Remote host closed the connection]
rwb has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
StoneCypher has joined #ruby
pawnbox has quit [Ping timeout: 248 seconds]
matp has joined #ruby
mello has joined #ruby
JoshL has quit [Quit: ZNC 1.6.1+deb1~ubuntu14.04.0 - http://znc.in]
Uber_yama has joined #ruby
prestorium has joined #ruby
Kug3lis has joined #ruby
JoshL has joined #ruby
hotpancakes has joined #ruby
conta has quit [Ping timeout: 258 seconds]
synthroid has joined #ruby
Uber_yama has quit []
vuoto has quit [Remote host closed the connection]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mello has quit [Ping timeout: 258 seconds]
aupadhye has quit [Ping timeout: 248 seconds]
renchan has quit [Quit: Leaving...]
StoneCyp1er has joined #ruby
synthroi_ has quit [Ping timeout: 258 seconds]
brendan- has joined #ruby
chouhoulis has quit [Remote host closed the connection]
StoneCypher has quit [Ping timeout: 255 seconds]
nankyokusei has joined #ruby
TomyWork has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 245 seconds]
Kug3lis has quit [Read error: Connection reset by peer]
Kug3lis has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
Kug3lis has quit [Client Quit]
Uber_yama has joined #ruby
rodfersou|lunch is now known as rodfersou
milardovich has quit []
Mortomes|Work has quit [Ping timeout: 260 seconds]
mwlang has joined #ruby
Kug3lis has joined #ruby
shinnya has quit [Ping timeout: 256 seconds]
Uber_yama has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
hotpancakes has quit [Ping timeout: 255 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
verumnost has joined #ruby
dionysus69 has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
hotpancakes has joined #ruby
brendan- has joined #ruby
gregf_ has quit [Ping timeout: 260 seconds]
dopamean_ has joined #ruby
enyo has quit [Ping timeout: 248 seconds]
h1fuelce_ has joined #ruby
Kug3lis has quit [Ping timeout: 245 seconds]
a7d7p has joined #ruby
TomyLobo has joined #ruby
h1fuelcell has quit [Ping timeout: 248 seconds]
troulouliou_div2 has joined #ruby
TheWhip has quit [Remote host closed the connection]
tvw has quit [Remote host closed the connection]
gagrio has quit [Quit: Leaving...]
despai has quit [Quit: This computer has gone to sleep]
Kug3lis has joined #ruby
whathappens has joined #ruby
aryaching has joined #ruby
pawnbox has joined #ruby
biberu has quit [Ping timeout: 248 seconds]
Torrone_1 has joined #ruby
enyo has joined #ruby
chouhoulis has joined #ruby
raul782 has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
bronson has joined #ruby
TvL2386 has quit [Remote host closed the connection]
raul782 has joined #ruby
chouhoul_ has joined #ruby
whathappens has quit [Ping timeout: 240 seconds]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
Kug3lis has joined #ruby
Mr_Pancake has quit [Ping timeout: 256 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
AndBobsYourUncle has joined #ruby
jhack has quit [Quit: jhack]
brent__ has joined #ruby
synthroi_ has joined #ruby
chouhoulis has quit [Ping timeout: 248 seconds]
brent__ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
verumnost has left #ruby [#ruby]
Mr_Pancake has joined #ruby
auxbuss has joined #ruby
auxbuss has quit [Client Quit]
synthroid has quit [Ping timeout: 248 seconds]
chouhoul_ has quit [Ping timeout: 246 seconds]
newbie1 has joined #ruby
brent__ has joined #ruby
Dinnu has joined #ruby
aufi has quit [Remote host closed the connection]
csk157 has quit [Ping timeout: 240 seconds]
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
Guest71082 is now known as ged
ged is now known as Guest49455
AndBobsYourUncle has joined #ruby
despai has joined #ruby
lmc has joined #ruby
JackMc has quit [Quit: Connection closed for inactivity]
vuoto has joined #ruby
rsalazar_ has joined #ruby
pawnbox has joined #ruby
<rsalazar_>
exit
<rsalazar_>
help
rsalazar_ has quit [Client Quit]
Torrone_1 has quit [Read error: Connection reset by peer]
Torrone has joined #ruby
Alayde has joined #ruby
enyo has quit [Ping timeout: 272 seconds]
is_null has joined #ruby
is_null has quit [Changing host]
SpiffTR has quit [Quit: Leaving.]
solocshaw has joined #ruby
aremaref has joined #ruby
duderonomy has quit [Ping timeout: 248 seconds]
Dinnu has quit [Remote host closed the connection]
Dinnu has joined #ruby
Dinnu has quit [Remote host closed the connection]
Dinnu has joined #ruby
Snowy has quit [Quit: ragequit]
s2013 has joined #ruby
Dinnu has quit [Remote host closed the connection]
Dinnu has joined #ruby
djbkd has joined #ruby
Dinnu has quit [Remote host closed the connection]
Alayde has quit [Ping timeout: 246 seconds]
[Butch] has joined #ruby
Dinnu has joined #ruby
mark_66 has quit [Remote host closed the connection]
Dinnu has quit [Remote host closed the connection]
aremaref has quit [Ping timeout: 248 seconds]
Dinnu has joined #ruby
verumnost has joined #ruby
Dinnu has quit [Remote host closed the connection]
Dinnu has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
csk157 has joined #ruby
Dinnu has quit [Remote host closed the connection]
raul782 has quit [Remote host closed the connection]
kassav has quit [Ping timeout: 248 seconds]
raul782 has joined #ruby
raul782_ has joined #ruby
hutch34 has quit [Ping timeout: 245 seconds]
csk157 has quit [Ping timeout: 246 seconds]
workmad3 has quit [Quit: Lost terminal]
arnovr has quit [Ping timeout: 245 seconds]
StoneCypher has joined #ruby
hahuang61 has joined #ruby
raul782 has quit [Ping timeout: 246 seconds]
phoo1234567 has joined #ruby
skweek has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
cdg has joined #ruby
chouhoulis has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
StoneCyp1er has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
chouhoulis has joined #ruby
AndBobsYourUncle has joined #ruby
zerun0 has quit [Ping timeout: 246 seconds]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Coldblackice_ has joined #ruby
hahuang61 has quit [Ping timeout: 255 seconds]
ramfjord has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raul782_ has quit [Remote host closed the connection]
synthroi_ has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 248 seconds]
csk157 has joined #ruby
username1 has joined #ruby
hotpancakes has quit [Remote host closed the connection]
pawnbox has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
juanda has quit [Ping timeout: 256 seconds]
csk157 has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
bronson has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
enyo has joined #ruby
hotpancakes has joined #ruby
rwb has quit [Remote host closed the connection]
enyo has quit [Ping timeout: 240 seconds]
jhack has joined #ruby
djbkd has joined #ruby
amclain has joined #ruby
jsrn has quit [Read error: Connection reset by peer]
synthroid has joined #ruby
mikecmpb_ has quit [Ping timeout: 255 seconds]
jhack has quit [Client Quit]
whathappens has joined #ruby
Dinnu has joined #ruby
rwb has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
Dinnu has quit [Remote host closed the connection]
leslie has joined #ruby
leslie has joined #ruby
leslie has quit [Changing host]
leslie has quit [Remote host closed the connection]
whathappens has quit [Ping timeout: 255 seconds]
rwb has quit [Remote host closed the connection]
Jayson_Virissimo has joined #ruby
aremaref has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
manjaro-kde5__ has quit [Ping timeout: 255 seconds]
Kug3lis has quit [Read error: Connection reset by peer]
hotpancakes has quit [Remote host closed the connection]
leslie has joined #ruby
leslie has quit [Changing host]
leslie has joined #ruby
rwb has joined #ruby
raul782 has joined #ruby
duckpuppy has quit [Ping timeout: 245 seconds]
Devalo has joined #ruby
[Butch] has quit [Quit: [Butch]]
Jayson_Virissimo has quit []
conta has joined #ruby
leslie has quit [Quit: Have you ever tried to eat a clock? It's very time consuming.]
raul782 has quit [Remote host closed the connection]
petrichorx_ has quit [Quit: Connection closed for inactivity]
Fernando-Basso has joined #ruby
Ishido has joined #ruby
s2013 has joined #ruby
Torrone has quit [Ping timeout: 248 seconds]
Guest49455 is now known as ged
gusrub_ has joined #ruby
ged is now known as Guest94418
Torrone has joined #ruby
spiette has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
SpComb has quit [Ping timeout: 240 seconds]
ifctj has quit [Ping timeout: 245 seconds]
AndBobsYourUncle has joined #ruby
JoshS has joined #ruby
testuser1 has joined #ruby
workmad3 has joined #ruby
SpiffTR has joined #ruby
testuser1 has quit [Client Quit]
enilsen16 has joined #ruby
AlexRussia has quit [Ping timeout: 268 seconds]
hotpancakes has joined #ruby
wrkrcoop has joined #ruby
nankyokusei has joined #ruby
ruby-lang509 has joined #ruby
Silthias has quit [Read error: Connection reset by peer]
AlexRussia has joined #ruby
<ruby-lang509>
File.exist?(<path to file>+"/") why this should return true?
jlach has quit [Quit: leaving]
<ruby-lang509>
Sorry I mean why File.exist?(<path to file>+"/") should return false?
__Yiota has quit [Remote host closed the connection]
<ruby-lang509>
@channel
nankyokusei has quit [Ping timeout: 240 seconds]
Kug3lis has quit [Read error: Connection reset by peer]
eelster has joined #ruby
<eelster>
Is ruby[bot] back?
<eelster>
>> puts 'test'
<eelster>
Nope :/
<ruby-lang509>
anyone?
mim1k|wo1k has joined #ruby
<eelster>
ruby-lang509: Hello!
<ruby-lang509>
Hey
<ruby-lang509>
I've question
<ruby-lang509>
why File.exist?(<path to file>+"/") should return false?
bronson has quit [Remote host closed the connection]
<eelster>
ruby-lang509: Because that's a directory at this point.
wrkrcoop has quit [Quit: wrkrcoop]
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
mim1k|work has quit [Ping timeout: 255 seconds]
<eelster>
Anything that ends with '/' is canonically a directory.
<ruby-lang509>
No if we've path to file which just ends with /
wrkrcoop has joined #ruby
<eelster>
But that's not a path to a file. That's a directory.
<ruby-lang509>
I'm seeing diff behaviour with Java
bmurt has joined #ruby
<eelster>
ruby-lang509: Java might cut ignore the trailing '/'
<ruby-lang509>
they actually result with true
<ruby-lang509>
yes
AndBobsYourUncle has joined #ruby
<ruby-lang509>
that's why asking ?
AndBobsYourUncle has quit [Remote host closed the connection]
<eelster>
ruby-lang509: Which Java method are you using?
<ruby-lang509>
1 min
<ruby-lang509>
this is snippet from jruby
<ruby-lang509>
jruby -e 'f = java.io.File.new("../snippets/cp2.rb/"); p f.exists?'
<ruby-lang509>
not sure
<ruby-lang509>
I'll have to debug which method is called for exists?
gajus has quit [Quit: Connection closed for inactivity]
<Rich_Morin1>
In Sinatra, whenever I get (say) a RuntimeError, I get a stack trace. Can someone tell me who is putting this out and how I might be able to abridge it?
AndBobsYourUncle has joined #ruby
<eelster>
ruby-lang509: It's likely the ruby method called for exists. I'm betting that java.io.File.new trims the trailing '/' in the constructor.
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
<eelster>
Rich_Morin1: What's the stack trace? That's unfortunately a very vague question.
<havenwood>
ruby-lang509: A filename can't contain a slash. Don't do that!
conta1 has joined #ruby
Kug3lis has joined #ruby
bronson has joined #ruby
<ruby-lang509>
@havenwood @eelster I see your point. My simple question are we following some conventions?
gusrub_ has quit [Remote host closed the connection]
<eelster>
ruby-lang509: Yes. The convention of file-naming is that a file name cannot end with a slash
<eelster>
Directories end with slashes, file names do not.
AndBobsYourUncle has joined #ruby
<havenwood>
ruby-lang509: POSIX forbids slash or NULL, even in filenames that are not fully portable.
<eelster>
Can you gist both the code and the error?
<havenwood>
ruby-lang509: Windows doesn't allow a forward slash in a filename either. I don't know of anything that does.
SpiffTR has quit [Quit: Leaving.]
<havenwood>
ruby-lang509: It's forbidden.
<havenwood>
ruby-lang509: Never put a slash in a filename. There can't be slashes in filenames.
<Rich_Morin1>
eelster: I could, but the exact error isn't the point. The point is that I don't need or want a full stack trace, just the first few lines.
conta1 has quit [Ping timeout: 255 seconds]
<eelster>
Rich_Morin1: Is the stack trace longer than usual? I don't really get what you're asking here.
<ruby-lang509>
Jruby uses JavaSecuredFile which internally uses java.io.File
<ruby-lang509>
which actually resolving to correct file name
<ruby-lang509>
even if it ends with /
<eelster>
ruby-lang509: Yes. I said that a while ago. It ignores the trailing slash.
<havenwood>
ruby-lang509: Why are you putting a slash on the end of a filename? That's not the name of the file...
<ruby-lang509>
I'm not
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jair has joined #ruby
<eelster>
ruby-lang509: I just don't understand this question. This seems like an XY.
<ruby-lang509>
actually this came out as a question because we see diff behaviour with Jruby
<ruby-lang509>
so asking who should fix the issue
<eelster>
ruby-lang509: There is actually a lot of different behavior with JRuby vs. Ruby.
<ruby-lang509>
which conventions we should follow
AndBobsYourUncle has quit [Remote host closed the connection]
<ruby-lang509>
to be consistent
<havenwood>
ruby-lang509: Check in the #jruby channel.
<eelster>
JRuby isn't guaranteed to have the same behavior as Ruby. For example, before 2.4.0, FixNum was portably 64 bits in JRuby but was machine dependent in Ruby.
<eelster>
Rich_Morin1: So you want a shorter stack trace?
<jair>
hello all, hope you are doing well and happy new year. I am here to get some recommendations from you guys in getting a book in amazon or following online content? I want to understand/learn Ruby because I will be using a lot of automation with a devops software called CHEF
<ruby-lang509>
Yes I agree. There are differences
<havenwood>
jair: So you're familiar with some other langs?
<eelster>
jair: _why's poignant guide is also my rec.
<jair>
comments are welcome and really appreciated
<eelster>
s/also/always
<eelster>
But, also, checkout the Pickax.
<jair>
havenwood: hmm little bit of python and bash only
<ruby-lang509>
So we should follow posix conventions right?
<eelster>
ruby-lang509: If you are working on POSIX compliant machiens.
<havenwood>
jair: Okay, with some background like that the Well-Grounded Rubyist, Second Edition is a good primer or so is the Ruby Programming Language, thought it's a bit outdated.
<ruby-lang509>
I see.
<havenwood>
though*
<Rich_Morin1>
eelster: tnx
<jair>
havenwood: I understand
<baweaver>
Also Chef isn't capitalized.
<ruby-lang509>
eelster: havenwood: thanks!
<eelster>
Rich_Morin1: No worries. I personally like long stack traces because they are more informative
<jair>
sure sorry about the capital in Chef
<eelster>
ruby-lang509: No worries!
<havenwood>
jair: If you want to really dig into the details, Ruby Under a Microscope is the best.
milardovich has joined #ruby
<baweaver>
Start with Eloquent Ruby
<baweaver>
it'll take care of basics and idiomatics out the gate
<eelster>
baweaver: Eloquent is a pretty good book.
<havenwood>
I haven't read Eloquent Ruby :-O
<jair>
havenwood: I am a cloud infrastructure engineer, normally getting the servers up and running for programmers
<baweaver>
If you have any programming experience and want to learn Ruby, Eloquent Ruby is _the_ book
<jair>
havenwood: so I will not mind to start with basics but focus in tasks for automation like Chef does
<havenwood>
jair: The Well-Grounded Rubyist jumps right into things and is up-to-date but I haven't read Eloquent Ruby to be able to compare.
flying has quit []
<eelster>
I've read a ton of Ruby books and depending upon your background and learning style there are a lot of different recs.
<baweaver>
Chef is just a DSL on top of Ruby
<havenwood>
baweaver: Have you read Well-Grounded? We need to find someone who's read them both!
<havenwood>
How do they stack up?
<baweaver>
so realistically you don't _need_ to know Ruby, but should
<eelster>
I unfortunatley have't read Well-GRounded
<baweaver>
Well Grounded and Eloquent were both good
<baweaver>
but Eloquent tops it for me
<havenwood>
nice
<eelster>
jair: Are you into quirky learning styles at all?
enyo has joined #ruby
<eelster>
Or more straightforward spec type stuff?
<havenwood>
baweaver: I'll give it a look for tutoring!
<baweaver>
_why's guide is old
<jair>
havenwood: understand so: 1) The Well-Grounded Rubyist 2nd edition 2) Eloquent Ruby 3) Ruby Under a Microscope
<havenwood>
but it does come with a soundtrack
<eelster>
baweaver: _why's guide is old, but it's still pretty strong and I think is by far the most interseting book.
<baweaver>
Give me a bit
<eelster>
I mean the Pickaxe is old as well, but it's the bible for Ruby IMO.
<havenwood>
jair: Those sound excellent.
<baweaver>
and you'll see The Cloud Administrator's Guide to Ruby
<baweaver>
Na, the Bible for Ruby is The Ruby Way
<baweaver>
and it's current
petrichorx_ has joined #ruby
<eelster>
baweaver: I find the Pickaxe comparable to K&R
linoespinoza has joined #ruby
<havenwood>
Print and bind the Ruby source code.
* baweaver
reads almost every Ruby book he finds
<eelster>
I do love the Ruby Way though.
<jair>
I like the one I am reading now about Python "Python Crash Course: A Hands-On, Project-Based Introduction to Programming"
<eelster>
Ruby cookbook is hit or miss.
<jair>
understand
<jair>
thanks you very much
<eelster>
I wouldn't go with Learn Ruby the Hard Way personally.
<baweaver>
Chef has a lot of video tutorials
* havenwood
reads
<havenwood>
heh, turns out I have a copy of Eloquent Ruby I just haven't read it
<eelster>
Lot's of people recommend it, but I really think it teaches Ruby poorly.
<baweaver>
a lot of them free
<eelster>
*Lots
<jair>
I am really looking for a book that walk me through real scenario problems and how to automate and solve
splud has joined #ruby
linoespinoza has quit [Client Quit]
<baweaver>
doesn't really quite exist yet. Most of them are broad concepts
<havenwood>
"The Cloud Administrator's Guide to Ruby" :-D
<jair>
Ok will start getting the list
<baweaver>
avoid Packt Publishing like the plague
<Rich_Morin1>
eelster: Apparently, Rails incorporated and extended Thoughtbot's "Quiet Backtrace" code, several years ago. What's the easiest way to get this functionality in Sinatra?
<baweaver>
havenwood: Yep, writing a book.
Kug3lis has quit [Read error: Connection reset by peer]
<baweaver>
It'll cover a lot of practical cloud tech
<havenwood>
baweaver: If you need additional editor eyes shoot me an early copy!
<baweaver>
Probably LeanPub unless I have someone like NoStarch pick it up
testuser1 has joined #ruby
<eelster>
I'm a huge PragProg fan personally.
<havenwood>
nice
balazs has quit [Read error: Connection reset by peer]
<baweaver>
It'll cover NetSSH, AWS, Google Compute, Azure, Chef, and testing all of it
milardov_ has joined #ruby
<eelster>
Rich_Morin1: I'm not sure. I think there was a guide as well (not the accepted answer) as to how to do it yourself.
milardovich has quit [Read error: Connection reset by peer]
enyo has quit [Ping timeout: 272 seconds]
<eelster>
baweaver: What's the worst Ruby book you've read?
* baweaver
tries to find title
bocaneri has quit [Read error: Connection reset by peer]
<eelster>
I've tried writing a Ruby book a few times, and I end up getting too bogged down in details and it's not great.
<baweaver>
It's either "Pro Active Record" (Packt) or "Programming Problems in Ruby"
<baweaver>
PAR had tons of typos, wrong examples, and flat out non-working code
hotpancakes has quit [Remote host closed the connection]
<eelster>
FUcking Packt
<jair>
alright guys, thanks
<baweaver>
PPiR used for loops to demonstrate Ruby and had no idea how to use the language idiomatically.
<jair>
thank you so much
Torrone_1 has joined #ruby
<baweaver>
It was like a Java programmer put on Ruby clothes and called it a day
hotpancakes has joined #ruby
Torrone has quit [Read error: Connection reset by peer]
<baweaver>
I find that as far as publishers:
<eelster>
baweaver: seeing for in any ruby code is generally a pretyt good sign that that the person has no idea how to use ruby idiomatically.
<jair>
I am sure will be hanging out here in the future
<baweaver>
Top Tier: NoStarch, PragProg, Addison-Wesley
ARCADIVS has quit [Quit: ARCADIVS]
<havenwood>
jair: Welcome!
<eelster>
jair: Have fun and remember MINASWAN
<baweaver>
Mid Tier: O'Reilly, Manning
<jair>
havenwood, baweaver eelster : Thanks (^^)
<baweaver>
Bottom: Packt
<havenwood>
Ruby is 和.
duckpuppy has joined #ruby
<eelster>
If only I knew how to read Han?
kristofferR has joined #ruby
<eelster>
baweaver: I agree with that.
Torrone_1 is now known as Torrone
<baweaver>
Apress is also bottom tier
pragmatism42 is now known as pragmatism
enilsen16 has quit [Quit: enilsen16]
<baweaver>
Manning and O'Reilly are hit or miss a lot
<eelster>
If I published I'd want to go with PragProg.
<baweaver>
I've never had a bad NoStarch or AW book
<eelster>
baweaver: Yeah. Some of O'Reilly's books are top notch, but others are awful.
<baweaver>
my PragProg is limited
<eelster>
I have like 10 PragProg books and love them.
<baweaver>
but what I've read is good
<eelster>
Their tmux book is eh, but I don't really know why I bought a book on tmux so, it's more my fault.
<baweaver>
fair.
hotpancakes has quit [Ping timeout: 255 seconds]
<eelster>
I will also always have a softspot for PragProg because their book was huge for introducing Ruby to a wider audience.
<eelster>
I should really pick up that sed & awk book.
SpiffTR has joined #ruby
<baweaver>
It's grown considerably since then
Kug3lis has joined #ruby
workmad3 has quit [Quit: Lost terminal]
Kug3lis has quit [Client Quit]
duckpuppy has quit [Ping timeout: 255 seconds]
<eelster>
What do you think of Learn you a Haskell?
<baweaver>
Practical Common Lisp was decent, but the other two Apress books are trash
<baweaver>
Good but can be hard to get into.
<baweaver>
There's also Learn you an Erlang now
hahuang65 has joined #ruby
<eelster>
That's what I felt. I kept having trouble getting into it. Then I picked up Haskell from First Principles and loved it.
jaruga has quit [Quit: jaruga]
<elomatreb>
There was a humble bundle recently with O'Reilly books, been reading those ever since
<baweaver>
I'll make a note of that one.
<baweaver>
Ahaha
deadnull has joined #ruby
<baweaver>
bitemyapp wrote it
madsa has quit [Ping timeout: 272 seconds]
<baweaver>
that would be good then
madsa has joined #ruby
nhhc has quit [Remote host closed the connection]
hotpancakes has joined #ruby
<eelster>
Who is bitemyapp?
braincrash has quit [Ping timeout: 248 seconds]
brent__ has quit [Remote host closed the connection]
<baweaver>
Chris Allen
hahuang61 has joined #ruby
<eelster>
Oh, yeah haha.
jair has quit [Ping timeout: 272 seconds]
<eelster>
It's huge, but it's really a great,great resource.
duderonomy has joined #ruby
<baweaver>
He's been teaching haskell for years
<eelster>
I'm pretty sure I've talked with him before in the haskell channel haha.
gusrub_ has joined #ruby
Dinnu has joined #ruby
jair has joined #ruby
<baweaver>
If you're on a programming channel, chances are I'm on it or have been in the past
nicoulaj has joined #ruby
<eelster>
I'm mostly only haskell, ruby, and sometimes python or c.
raul782 has joined #ruby
<eelster>
Ruby is by far my favorite programming channel.
workmad3 has joined #ruby
<baweaver>
may have gotten carried away in learning languages, now I'm somewhere north of 30, 10 of which I can write production code in today if I wanted to. The others would take me a week to get back into.
<eelster>
baweaver: I do that too though. It's not a bad practice. Learning haskell definitely helped my Ruby.
<baweaver>
Scala is an easy jump once you know those two
cdg has quit [Read error: Connection reset by peer]
<eelster>
baweaver: Is that on the JVM?
<baweaver>
yep
<baweaver>
Scala and Clojure tend to be popular for that.
<baweaver>
Frege is Haskell on JVM
cdg has joined #ruby
<eelster>
Frege is odd to me.
<baweaver>
Anyways, back to work for me, need to finish some stuff before the weekend.
<eelster>
baweaver: Have fun. Remember not to deploy because it's friday.
Dinnu has quit [Ping timeout: 246 seconds]
ifctj has joined #ruby
<havenwood>
Freyja's cats will maul you if you deploy on her day.
<eelster>
havenwood: As they should
SpiffTR has quit [Quit: Leaving.]
montanonic has joined #ruby
hahuang61 has quit [Ping timeout: 258 seconds]
conta has quit [Quit: conta]
tolerablyjake has joined #ruby
SpiffTR has joined #ruby
cdg_ has joined #ruby
raul782 has quit [Remote host closed the connection]
braincrash has joined #ruby
bmurt has quit [Read error: Connection reset by peer]
brendan- has quit [Read error: Connection reset by peer]
jhack has joined #ruby
pilne has joined #ruby
bmurt has joined #ruby
brendan- has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
synthroi_ has joined #ruby
montanonic has quit [Ping timeout: 255 seconds]
tolerabl_ has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
brent__ has joined #ruby
pawnbox has quit [Remote host closed the connection]
hutch34 has joined #ruby
pawnbox has joined #ruby
SpiffTR has quit [Quit: Leaving.]
synthro__ has joined #ruby
_djbkd has joined #ruby
tolerablyjake has quit [Ping timeout: 245 seconds]
synthroid has quit [Ping timeout: 256 seconds]
Guest94418 is now known as ged
ged is now known as Guest97367
synthroi_ has quit [Ping timeout: 256 seconds]
jackjackdripper has joined #ruby
aeontech has joined #ruby
ledestin has joined #ruby
jhack has quit [Quit: jhack]
<eelster>
>> puts 'ruby bot please come back'
BitWhisperer has quit [Ping timeout: 256 seconds]
ponga has quit [Quit: Connection closed for inactivity]
jhack has joined #ruby
montanonic has joined #ruby
milardov_ has quit [Remote host closed the connection]
milardovich has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
juanda has quit [Ping timeout: 248 seconds]
milardovich has quit [Ping timeout: 258 seconds]
kirun has joined #ruby
enilsen16 has joined #ruby
dopamean_ has quit [Quit: meeting time]
SeepingN has joined #ruby
gusrub_ has quit [Read error: No route to host]
milardovich has joined #ruby
gusrub_ has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
ivanskie has joined #ruby
jcao219 has joined #ruby
solocshaw has joined #ruby
enterprisey has joined #ruby
<ivanskie>
hey all, question regarding git flow.. when doing a Ruby version bump and Rails version bump of the app (hasn't been updated in a while).. is that a feature, release, or hotfix?
milardovich has quit [Ping timeout: 248 seconds]
Dinnu has joined #ruby
Lord_of_Life has quit [Excess Flood]
Lord_of_Life has joined #ruby
<ivanskie>
or am i not doing it right if im asking that question?
<ivanskie>
lopl
<Yxhuvud>
How are we going to be able to answer something that is in all ways something that is unique to your project?
duckpuppy has joined #ruby
Kug3lis has joined #ruby
marcdel has joined #ruby
koldbrutality has joined #ruby
<kirun>
Different projects have wildly varying policies on how they number things... but if it's a must-upgrade-ruby change, probably increment the "big" version number.
hahuang61 has joined #ruby
ddffg has quit [Ping timeout: 248 seconds]
<kirun>
If it's a now-can-upgrade-ruby, increment whatever as long as you communicate clearly.
milardovich has joined #ruby
<kirun>
And then look at the written policy of other projects, pick one and use it in future.
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Some-body_ is now known as DarthGandalf
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
testuser1 has quit [Ping timeout: 255 seconds]
jackjackdripper has joined #ruby
milardovich has joined #ruby
mello has joined #ruby
Kug3lis has quit [Ping timeout: 245 seconds]
aeontech has quit [Quit: aeontech]
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
whathappens has quit [Remote host closed the connection]
aeontech has joined #ruby
marcdel has quit [Ping timeout: 245 seconds]
whathappens has joined #ruby
<a1fa>
reduce is better, thanks rjungemann
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
<rjungemann>
Oh yeah you'll probably want to use #map instead of #each but the approach you posted would also work
milardovich has quit [Ping timeout: 245 seconds]
wrkrcoop has joined #ruby
auxbuss has joined #ruby
wrkrcoop has quit [Client Quit]
mello has quit [Ping timeout: 248 seconds]
raul782 has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
Puffball has quit [Remote host closed the connection]
Bus is now known as Terens
<a1fa>
rjungemann: reduce was much faster
<a1fa>
i just dont understand why it worked like it did
<a1fa>
the initial [], and a
Puffball has joined #ruby
AndBobsYourUncle has joined #ruby
<a1fa>
reading the reduce manual, no way would i've been able to do it this way
raul782 has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
<a1fa>
very nice trick
JoshS has joined #ruby
wrkrcoop has joined #ruby
<rjungemann>
It took awhile to wrap my head around it too. You pass in the initial value, and then the first argument piped in is the "accumulator" value. Then you manipulate the accumulator and return it at the end of the block. It's a trick found a lot in languages with a heavy functional bent. Another cool trick is that if you reduce on a hash, you can get the key and
<rjungemann>
some_hash.reduce({}) { |h, (k, v) puts("The key and value are #{k} and #{v}."); h[k] = v; h }
<rjungemann>
value like this:
<rjungemann>
Oops, forgot the second pipe character. It should read: `|h, (k, v)|`
<a1fa>
very neat - i'll have to put this in my notes
<a1fa>
this change literally cut down 2.5h on processing of my files
<a1fa>
dude before me put hashes into an array, and looped over them.. 1.6mil of them, for every 1.6mil records
<a1fa>
so 1.6x1.6 mil loop
<SeepingN>
yikes
<a1fa>
great programmer.. he just never expected this to go up to 1.6mil records on ingestion
Kug3lis has joined #ruby
<a1fa>
i ended up converting the array into keyed hashes
anisha has joined #ruby
<a1fa>
it now takes 6s to process the file
StoneCypher has joined #ruby
<rjungemann>
Eep! I've done a good amount of parsing of like TSV files and shit, and it's amazing how simple optimizations can save a ton of time. Another fun trick I like to use for huge chunks of data is sets and then checking membership of the set. For example, to see if I'm dealing with a duplicate record or whatever.
Lord_of_Life has quit [Excess Flood]
vuoto has quit [Remote host closed the connection]
Hobbyboy has quit [Ping timeout: 258 seconds]
<a1fa>
yep a lot of those
raul782 has joined #ruby
Lord_of_Life has joined #ruby
<rjungemann>
For io-bound workloads, I've squeezed some additional performance out of using worker pools or the like with the concurrent-ruby gem. It doesn't work well if most of the expense is in Ruby because of the GIL, but is useful for some things
<rjungemann>
And of course threading has its own perils
auxbuss has quit [Quit: I'm gone.]
mantis__ has quit [Ping timeout: 272 seconds]
zenspider has joined #ruby
SpComb has joined #ruby
<dionysus69>
hey apeiros :D :) and others :)
zenspider has quit [Changing host]
zenspider has joined #ruby
montanonic has quit [Ping timeout: 246 seconds]
Gasher has joined #ruby
Kug3lis has quit [Read error: Connection reset by peer]
raul782 has quit [Remote host closed the connection]
Guest34158 is now known as ged
ged is now known as Guest6860
WhiteKIBA has quit [Remote host closed the connection]
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
ianmethyst has joined #ruby
kristofferR has quit [Ping timeout: 258 seconds]
wrkrcoop has quit [Quit: wrkrcoop]
ryan_notabot has joined #ruby
brent__ has quit [Read error: Connection reset by peer]
Gasher has quit [Ping timeout: 272 seconds]
milardovich has joined #ruby
_djbkd has quit [Ping timeout: 255 seconds]
kristofferR has joined #ruby
Coldblackice has joined #ruby
Coldblackice_ has quit [Ping timeout: 248 seconds]
Kug3lis has quit [Read error: Connection reset by peer]
nyuszika7h has quit [Ping timeout: 240 seconds]
JoshS has quit [Ping timeout: 272 seconds]
mello has joined #ruby
Kug3lis has joined #ruby
mic_e has joined #ruby
JoshS has joined #ruby
Ax has quit [Quit: Ax]
nyuszika7h has joined #ruby
mello has quit [Ping timeout: 245 seconds]
jshjsh has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dcunit3d has joined #ruby
lmc has quit [Quit: Leaving...]
ramfjord has joined #ruby
JoshS has quit [Ping timeout: 245 seconds]
JoshS has joined #ruby
sneakers has joined #ruby
hotpancakes has quit [Remote host closed the connection]
ramortegui has quit [Quit: Ex-Chat]
jshjsh has quit [Ping timeout: 245 seconds]
spearthistle has joined #ruby
<Torrone>
Hello guys, I'm struggling with Oauth 1.0, used by the new almost official wordpress rest api, I have this code: https://gist.github.com/anonymous/7003659292c522bc65efc21f3c4379ce . If I pass a parameter with no spaces, it updates my post correctly, if parameter has spaces, I get a signature mismatch. Does anyone have any idea?
blackmesa has quit [Quit: WeeChat 1.6]
Jayson_Virissimo has joined #ruby
Devalo has quit [Remote host closed the connection]
<zenspider>
Torrone: the signature code?
<zenspider>
please don't build your own url by hand... that's terribly error prone
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Devalo has joined #ruby
<Torrone>
zenspider, I've tried with the oauth gem but it didn't do the job
milardovich has joined #ruby
ur5us has joined #ruby
Kug3lis has quit [Read error: Connection reset by peer]