havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
ecksit has joined #ruby
paul__ has joined #ruby
ecksit has quit [Ping timeout: 260 seconds]
nonnatus has quit [Quit: nonnatus]
freerobby has joined #ruby
nonnatus has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
symm- has quit [Ping timeout: 264 seconds]
nonnatus has quit [Client Quit]
johnDoe111 has joined #ruby
nonnatus has joined #ruby
jancel has joined #ruby
bkxd has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
johnDoe111 has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
xfbs has quit []
ElFerna has quit [Read error: Connection reset by peer]
r1v3r_ has quit [Quit: ZZZzzz…]
jenrzzz has joined #ruby
nonnatus has quit [Quit: nonnatus]
moeabdol1 has joined #ruby
certainty has joined #ruby
mikecmpbll has quit [Quit: Textual IRC Client: www.textualapp.com]
jancel has quit [Remote host closed the connection]
jaiks1 has quit [Ping timeout: 250 seconds]
Hobogrammer has quit [Ping timeout: 252 seconds]
certainty has quit [Ping timeout: 276 seconds]
al2o3-cr has quit [Ping timeout: 264 seconds]
tubuliferous_ has quit [Ping timeout: 272 seconds]
Hobogrammer has joined #ruby
jancel has joined #ruby
moeabdol1 has quit [Ping timeout: 258 seconds]
aupadhye has joined #ruby
moeabdol1 has joined #ruby
jancel has quit [Remote host closed the connection]
borodin has quit [Max SendQ exceeded]
paul__ has quit [Ping timeout: 244 seconds]
jaguarmagenta has quit [Ping timeout: 276 seconds]
marr has quit [Remote host closed the connection]
tildes has quit [Ping timeout: 250 seconds]
moeabdol1 has quit [Ping timeout: 246 seconds]
Yzguy has quit [Quit: Zzz...]
jaiks1 has joined #ruby
j0n3 has quit [Read error: Connection reset by peer]
Fernando-Basso has quit [Ping timeout: 258 seconds]
yatish27 has quit []
mitt3ns has quit [Quit: leaving]
mitt3ns has joined #ruby
nonnatus has joined #ruby
nonnatus has quit [Client Quit]
mitt3ns has quit [Remote host closed the connection]
mitt3ns has joined #ruby
agent_white has quit [Disconnected by services]
mitt3ns is now known as agent_white
palms has joined #ruby
tristanp has quit [Remote host closed the connection]
tristanp has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
paul__ has joined #ruby
agent_white has quit [Client Quit]
moeabdol1 has joined #ruby
palms has quit [Ping timeout: 252 seconds]
armyriad has joined #ruby
tristanp has quit [Ping timeout: 276 seconds]
nonnatus has joined #ruby
jackjackdripper has joined #ruby
benlieb has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
jhack has quit [Quit: jhack]
qasaur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 246 seconds]
panpainter has joined #ruby
binaryplease1 has joined #ruby
strigonLeader has joined #ruby
binaryplease has quit [Ping timeout: 240 seconds]
neha_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
panpainter has quit [Ping timeout: 252 seconds]
vdamewood has quit [Quit: Life beckons.]
tristanp has joined #ruby
norc__ has joined #ruby
tristanp has quit [Remote host closed the connection]
tristanp has joined #ruby
binaryplease1 is now known as binaryplease
p337rB has joined #ruby
norc_ has quit [Ping timeout: 250 seconds]
duckpuppy has joined #ruby
pawnbox has joined #ruby
nankyokusei has joined #ruby
jaguarmagenta has joined #ruby
paul__ has quit [Ping timeout: 244 seconds]
tristanp has quit [Ping timeout: 276 seconds]
ta_ has joined #ruby
Coldblackice has quit [Ping timeout: 276 seconds]
blackgoat has quit [Ping timeout: 252 seconds]
p337rB has quit [Ping timeout: 264 seconds]
nankyokusei has quit [Ping timeout: 246 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
duckpuppy has quit [Ping timeout: 272 seconds]
tatsuo has joined #ruby
flashpoint9 has joined #ruby
moeabdol1 has quit [Ping timeout: 240 seconds]
certainty has joined #ruby
AcidCras_ has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 260 seconds]
AcidCrash has joined #ruby
benlieb has quit [Quit: benlieb]
zeroDi has quit [Quit: WeeChat 1.5]
certainty has quit [Ping timeout: 276 seconds]
ekinmur has joined #ruby
m_antis has joined #ruby
m_antis has quit [Remote host closed the connection]
ramfjord has joined #ruby
jancel has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
jancel has quit [Ping timeout: 258 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Axy has quit [Ping timeout: 260 seconds]
yqt has quit [Ping timeout: 276 seconds]
vandemar has joined #ruby
palms has joined #ruby
jancel has joined #ruby
jancel has quit [Remote host closed the connection]
nonnatus has quit [Read error: Connection reset by peer]
johnDoe111 has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
palms has quit [Ping timeout: 252 seconds]
nonnatus has joined #ruby
johnDoe111 has quit [Ping timeout: 244 seconds]
benlieb has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
mynameisbrian has joined #ruby
crystal77 has joined #ruby
<mynameisbrian> if I run: ruby -w on my script, it displays a warning. But if I run: ruby -cw on my script, it just says "Syntax OK". It seems like the c flag is negating the w flag. what's happening here?
<mynameisbrian> The book im reading recommends to use -cw for checking sytnax
jrafanie has joined #ruby
Rodya_ has quit [Remote host closed the connection]
jrafanie has quit [Client Quit]
diegoaguilar has joined #ruby
davedev24 has quit []
nonnatus has quit [Quit: nonnatus]
RobertBirnie has joined #ruby
aphprentice has quit [Quit: Connection closed for inactivity]
Kero has quit [Ping timeout: 244 seconds]
rkazak has quit [Quit: Sleep.....ing....]
Kero has joined #ruby
<mynameisbrian> nevermind. my program has an error. I thought the error was a warning. -c doesn't run program, but -w does, so I thought -w was giving me a warning.
<mynameisbrian> -c says the syntax is fine, because it is, but in this case it's calling an undefined method
axsuul has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mynameisbrian has quit [Quit: Leaving]
crystal77 has quit [Ping timeout: 276 seconds]
duckpuppy has joined #ruby
LoneHerm_ has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
ryan_notabot has quit [Quit: Leaving]
duckpuppy has quit [Ping timeout: 260 seconds]
CircleDot has quit [Ping timeout: 250 seconds]
pilne has quit [Quit: Quitting!]
chouhoulis has quit [Remote host closed the connection]
ledestin has joined #ruby
certainty has joined #ruby
pilne has joined #ruby
pilne has quit [Remote host closed the connection]
certainty has quit [Ping timeout: 260 seconds]
flashpoint9 has quit [Remote host closed the connection]
tristanp has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
RobertBirnie has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
<ericli> Hi, here's my code : https://paste.fedoraproject.org/378321/65785076/ and I got "Use the return of the conditional for variable assignment and comparison." for if port == 443 statement
freerobby has quit [Quit: Leaving.]
<ericli> Can one let me know why this does not work?
xlegoman has quit [Ping timeout: 240 seconds]
stardiviner has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
palms has joined #ruby
jancel has joined #ruby
stardiviner has quit [Client Quit]
stardiviner has joined #ruby
solocshaw has joined #ruby
jenrzzz has joined #ruby
palms has quit [Ping timeout: 252 seconds]
jancel has quit [Ping timeout: 240 seconds]
nonnatus has joined #ruby
elton has joined #ruby
benlieb has quit [Quit: benlieb]
jancel has joined #ruby
tatsuo has quit [Remote host closed the connection]
elton has quit []
jenrzzz has quit [Ping timeout: 276 seconds]
elton has joined #ruby
<pontiki> ericli: might it be because you're using % instead of # for interpolation?
<jord-n> ericli - your status_code_cmd is not guaranteed to be set. Try status_code_cmd = if port == 443 ... (see here for more details -- http://www.rubydoc.info/github/bbatsov/RuboCop/RuboCop/Cop/Style/ConditionalAssignment)
JazzyVariable227 has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jord-n> actually, strike my guaranteed statement, looks like purely a style concern.
sandstrom has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
braincrash has quit [Quit: bye bye]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
pawnbox has quit [Ping timeout: 260 seconds]
chipotle has joined #ruby
p337rB has joined #ruby
panpainter has joined #ruby
jancel has quit [Remote host closed the connection]
nankyokusei has joined #ruby
eljimbo has quit [Quit: This computer has gone to sleep]
dhodgkin has joined #ruby
arescorpio has joined #ruby
p337rB has quit [Ping timeout: 260 seconds]
panpainter has quit [Ping timeout: 252 seconds]
ta_ has joined #ruby
braincrash has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
duckpuppy has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
k3rn31 has joined #ruby
c0mrad3 has joined #ruby
certainty has joined #ruby
ta_ has quit [Ping timeout: 264 seconds]
johnDoe111 has joined #ruby
dhodgkin has quit [Quit: Leaving]
pawnbox has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
certainty has quit [Ping timeout: 250 seconds]
nadir has quit [Quit: Connection closed for inactivity]
jancel has joined #ruby
johnDoe111 has quit [Ping timeout: 260 seconds]
roamingdog has quit [Remote host closed the connection]
idiocrash has quit [Quit: Textual IRC Client: www.textualapp.com]
ramfjord has joined #ruby
tristanp has quit [Remote host closed the connection]
roamingdog has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
pawnbox has quit [Ping timeout: 260 seconds]
tristanp has joined #ruby
abbi has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
jancel has quit [Remote host closed the connection]
nonnatus has quit [Quit: nonnatus]
jgt has joined #ruby
tmtwd has joined #ruby
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
tristanp has quit [Ping timeout: 244 seconds]
gix has quit [Ping timeout: 260 seconds]
duckpuppy has quit [Ping timeout: 260 seconds]
kareeoleez has joined #ruby
jgt has quit [Ping timeout: 246 seconds]
SilverKey has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wolffles has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
Yiota has joined #ruby
palms has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gix has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
nonnatus has joined #ruby
pawnbox has joined #ruby
palms has quit [Ping timeout: 252 seconds]
panpainter has joined #ruby
nonnatus has left #ruby [#ruby]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jord-n has quit [Ping timeout: 258 seconds]
houhoulis has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 276 seconds]
panpainter has quit [Ping timeout: 252 seconds]
diegoaguilar has quit [Remote host closed the connection]
p0p0pr37 has quit [Ping timeout: 240 seconds]
k3rn31 has joined #ruby
ramfjord has joined #ruby
I has joined #ruby
I is now known as Guest5859
Guest5859 has quit [Client Quit]
p0p0pr37 has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
johnDoe111 has joined #ruby
djbkd_ has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
johnDoe111 has quit [Ping timeout: 244 seconds]
djbkd_ has quit [Client Quit]
<wolffles> i have to find the decimal value for “hello” where ‘a’ =0 ‘b’ = 1 … ‘z’ = 25, and somehow ‘bb’ = 27, ‘hello’ = 3276872 what formula do i use?
panpainter has joined #ruby
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<nofxx> wolffles, 'ab' is 26? that's kinda crazy
<nofxx> shouldn't aa be 26 and ab 27?
terminalrecluse has joined #ruby
<wolffles> i was thinking that but this problem has the test saying that bb is 27
<nofxx> wolffles, use that gem for any base number, say your number is in base 25, and voilà
helpa has quit [Remote host closed the connection]
<wolffles> im thinking its a typo
helpa has joined #ruby
SilverKey has quit [Quit: Halted.]
<wolffles> what gem is that?
<jidar> using base wouldn't explain the repeating of the same letter
<nofxx> wolffles, yeah, maybe we're both too naive on this matter, but I would think it's a base 'gotcha'
<nofxx> jidar, ah, you solved... wolffles a is zero, so yeah, 26 is ba, 27 bb
<nofxx> because aa == 00
jenrzzz has joined #ruby
<wolffles> ahhh
panpainter has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
<wolffles> think someone could help me wiht the formula? my head hurts from trying for so long
djbkd_ has joined #ruby
tristanp has joined #ruby
weemsledeux has joined #ruby
ta_ has joined #ruby
dcunit3d has quit [Ping timeout: 276 seconds]
ta_ has quit [Ping timeout: 246 seconds]
certainty has joined #ruby
aryaching has joined #ruby
dionysus69 has joined #ruby
Wolland has joined #ruby
pawnbox has joined #ruby
CircleDot has joined #ruby
CircleDot has quit [Read error: Connection reset by peer]
certainty has quit [Ping timeout: 240 seconds]
SShrike has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
naftilos76 has joined #ruby
arescorpio has quit [Quit: Leaving.]
mistermocha has joined #ruby
Yiota has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 250 seconds]
Yzguy has joined #ruby
SShrike has quit [Quit: SShrike]
panpainter has joined #ruby
palms has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yiota has joined #ruby
panpainter has quit [Ping timeout: 252 seconds]
chopin has quit [Remote host closed the connection]
tristanp has quit [Remote host closed the connection]
jgt has joined #ruby
palms has quit [Ping timeout: 252 seconds]
KnownSyntax has joined #ruby
Coldblackice has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
iajrz has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
JazzyVariable227 has quit [Remote host closed the connection]
aryaching has quit [Remote host closed the connection]
panpainter has joined #ruby
dcunit3d has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
dionysus69 has joined #ruby
tubuliferous_ has joined #ruby
hahuang61 has joined #ruby
panpainter has quit [Ping timeout: 252 seconds]
tristanp has joined #ruby
roamingdog has quit [Remote host closed the connection]
kareeoleez has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 264 seconds]
tristanp has quit [Ping timeout: 244 seconds]
kgrz has joined #ruby
nankyokusei has joined #ruby
ur5us has quit [Remote host closed the connection]
jancel has joined #ruby
pawnbox has joined #ruby
dcunit3d has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 246 seconds]
jancel has quit [Ping timeout: 240 seconds]
Wolland has quit [Remote host closed the connection]
ta_ has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
certainty has joined #ruby
blackgoat has joined #ruby
panpainter has joined #ruby
Contigi has joined #ruby
jackjackdripper has joined #ruby
flashpoint9 has joined #ruby
certainty has quit [Ping timeout: 250 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
panpainter has quit [Ping timeout: 252 seconds]
djbkd_ has quit []
elton has quit [Remote host closed the connection]
flashpoint9 has quit [Ping timeout: 264 seconds]
haraigoshi has joined #ruby
saneax_AFK is now known as saneax
flughafen has quit [Ping timeout: 246 seconds]
saneax is now known as saneax_AFK
tildes has joined #ruby
chipotle has quit [Ping timeout: 276 seconds]
djbkd_ has joined #ruby
djbkd_ has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
hk238 has joined #ruby
Guest17372 has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
johnDoe111 has joined #ruby
flughafen has joined #ruby
ReK2 has joined #ruby
duncannz has joined #ruby
infra-red has joined #ruby
saneax_AFK is now known as saneax
chipotle has joined #ruby
chipotle has quit [Max SendQ exceeded]
pawnbox has joined #ruby
panpainter has joined #ruby
chipotle has joined #ruby
infra-red has quit [Remote host closed the connection]
<flughafen> morning everybody
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
Contigi has quit [Quit: Leaving]
chipotle has quit [Max SendQ exceeded]
kgrz has quit [Ping timeout: 252 seconds]
JazzyVariable227 has joined #ruby
kareeoleez has joined #ruby
djbkd_ has joined #ruby
panpainter has quit [Ping timeout: 252 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JazzyVariable227 has quit [Ping timeout: 250 seconds]
kgrz has joined #ruby
edwinvdgraaf has joined #ruby
tref has quit [Quit: tref]
minimalism has quit [Quit: minimalism]
kareeole_ has joined #ruby
kareeole_ is now known as kareeoleez_
mistermocha has quit [Read error: Connection reset by peer]
kareeoleez has quit [Disconnected by services]
kareeoleez_ is now known as kareeoleez
iajrz has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
last_staff has joined #ruby
Guest63 has joined #ruby
Guest63 is now known as dar123
wolffles has quit [Quit: wolffles]
jancel has joined #ruby
vuoto has joined #ruby
sandstrom has joined #ruby
raeoks has joined #ruby
chipotle has joined #ruby
blaxter has joined #ruby
certainty has joined #ruby
jancel has quit [Ping timeout: 250 seconds]
panpainter has joined #ruby
chipotle has quit [Max SendQ exceeded]
scepticulous has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
ericli has quit [Quit: Page closed]
tildes has quit [Ping timeout: 240 seconds]
elton has joined #ruby
solars has joined #ruby
panpainter has quit [Ping timeout: 252 seconds]
djbkd_ has quit [Remote host closed the connection]
sheperson has joined #ruby
chipotle has joined #ruby
doublemalt_ has quit [Remote host closed the connection]
chipotle has quit [Max SendQ exceeded]
phredus has quit [Remote host closed the connection]
nobitanobi has joined #ruby
zacstewart has quit [Ping timeout: 276 seconds]
dionysus69 has quit [Ping timeout: 264 seconds]
rbr has quit [Read error: Connection reset by peer]
firstdayonthejob has joined #ruby
chipotle has joined #ruby
rbr has joined #ruby
pepee has quit [Ping timeout: 276 seconds]
k3rn31 has quit [Quit: Computer has gone to sleep.]
jaguarmagenta has joined #ruby
codecop has joined #ruby
chipotle has quit [Max SendQ exceeded]
n1x-nz has joined #ruby
dionysus69 has joined #ruby
firstdayonthejob has quit [Ping timeout: 276 seconds]
johnDoe111 has quit [Remote host closed the connection]
hahuang61 has joined #ruby
chipotle has joined #ruby
kgrz has quit [Ping timeout: 240 seconds]
chipotle has quit [Max SendQ exceeded]
aupadhye has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 250 seconds]
aupadhye has joined #ruby
chipotle has joined #ruby
Hobogrammer has quit [Ping timeout: 276 seconds]
kgrz has joined #ruby
chipotle has quit [Max SendQ exceeded]
nobitanobi has quit [Remote host closed the connection]
andikr has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
skweek has quit [Ping timeout: 240 seconds]
pepee has joined #ruby
panpainter has joined #ruby
chipotle has joined #ruby
alfiemax has quit [Ping timeout: 252 seconds]
ta__ has joined #ruby
chipotle has quit [Max SendQ exceeded]
k3rn31 has joined #ruby
haraigoshi has quit [Ping timeout: 258 seconds]
ta_ has quit [Ping timeout: 264 seconds]
ta_ has joined #ruby
elton has quit [Remote host closed the connection]
panpainter has quit [Ping timeout: 252 seconds]
mistermo_ has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
ta__ has quit [Ping timeout: 260 seconds]
the_drow has joined #ruby
chipotle has joined #ruby
dsea has quit [Ping timeout: 272 seconds]
chipotle has quit [Max SendQ exceeded]
biberu has joined #ruby
vuoto has quit [Quit: Lost terminal]
the_drow has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
dsea has joined #ruby
alfiemax has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
the_drow has quit [Read error: Connection reset by peer]
infra-red has joined #ruby
tax has joined #ruby
sandstrom has joined #ruby
the_drow has joined #ruby
pawnbox has quit [Remote host closed the connection]
A124 has quit [Ping timeout: 260 seconds]
chipotle has joined #ruby
bluOxigen has joined #ruby
tjbiddle has joined #ruby
pawnbox has joined #ruby
nankyokusei has joined #ruby
dcunit3d has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
aganov has joined #ruby
tax has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 264 seconds]
bluOxigen has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
dcunit3d has quit [Ping timeout: 244 seconds]
antgel has joined #ruby
DoubleMalt has joined #ruby
colegatron has joined #ruby
ur5us has joined #ruby
iMadper has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
pepee has quit [Quit: bye $IRC]
A124 has joined #ruby
phredus has joined #ruby
the_drow has joined #ruby
zacstewart has joined #ruby
skweek has joined #ruby
ramfjord has quit [Read error: No route to host]
aberen has joined #ruby
raeoks has quit [Ping timeout: 240 seconds]
zacstewart has quit [Ping timeout: 276 seconds]
ramfjord has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
Antiarc has quit [Ping timeout: 276 seconds]
tmtwd has quit [Ping timeout: 258 seconds]
kgrz has quit [Ping timeout: 276 seconds]
the_drow has joined #ruby
craigp has joined #ruby
tjbiddle has quit [Ping timeout: 246 seconds]
r1v3r_ has joined #ruby
scepticulous has quit [Ping timeout: 260 seconds]
skweek has quit [Ping timeout: 276 seconds]
vasilakisfil has joined #ruby
kgrz has joined #ruby
roamingdog has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
tjbiddle has joined #ruby
nobitanobi has joined #ruby
nobitanobi has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
Ishido has joined #ruby
nobitanobi has joined #ruby
lsmola has joined #ruby
ur5us has quit [Remote host closed the connection]
nobitanobi has quit [Client Quit]
ur5us has joined #ruby
jackjackdripper has joined #ruby
aupadhye has quit [Quit: Leaving]
Couch has joined #ruby
aupadhye has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
ur5us has quit [Remote host closed the connection]
certainty has quit [Ping timeout: 250 seconds]
Dimik has quit [Ping timeout: 246 seconds]
last_staff1 has joined #ruby
last_staff has quit [Ping timeout: 244 seconds]
last_staff1 is now known as last_staff
tristanp has joined #ruby
joonty has joined #ruby
Yzguy has quit [Quit: Cya]
tristanp has quit [Ping timeout: 260 seconds]
araujo has joined #ruby
strigonLeader has quit [Read error: Connection reset by peer]
araujo has quit [Max SendQ exceeded]
amtrivedi has joined #ruby
<amtrivedi> Can anyone tell me the ruby equivalent of this python snippet - del(missing_list[missing_list.index(key)])
araujo has joined #ruby
<amtrivedi> del(array[array.index(key)])
<amtrivedi> ^ essentially this
elaptics`away is now known as elaptics
<amtrivedi> I want to delete an element from an array from a particular position - array.index(key)
araujo has quit [Max SendQ exceeded]
neanderslob has quit [Read error: Connection reset by peer]
neanderslob has joined #ruby
dcunit3d has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
axsuul has quit [Quit: Textual IRC Client: www.textualapp.com]
<amtrivedi> blaxter: I read that, and modified it as - array.delete_at(array.index(key))
<amtrivedi> But it does not work.
axsuul has joined #ruby
<amtrivedi> Is that correct?
the_drow has quit [Read error: Connection reset by peer]
the_drow_ has joined #ruby
<blaxter> yes, it is correct
<amtrivedi> :/ But it does not work, gives me the following error -
<amtrivedi> `delete_at': no implicit conversion from nil to integer
<amtrivedi> ^ blaxter
ur5us has joined #ruby
neanderslob has quit [Remote host closed the connection]
<blaxter> maybe reading the error could help
<blaxter> that because the key is not on the array
<blaxter> so array.index returns nil
dcunit3d has quit [Ping timeout: 244 seconds]
jaruga___ has joined #ruby
<amtrivedi> Ohkay, looks like something above that code must be wrong then, thanks.
<gregf_> amtrivedi: you can do a check before trying to delete
the_drow_ has quit [Client Quit]
<gregf_> >> a = [1,5,3,4,7]; if i = a.index(100); a.delete_at(i);end # like that
<ruby[bot]> gregf_: # => nil (https://eval.in/587954)
the_drow_ has joined #ruby
the_drow_ has quit [Max SendQ exceeded]
<amtrivedi> gregf: Yeah, that is what I am doing right now :)
palms has joined #ruby
eladmeidar has joined #ruby
<gregf_> python would throw a nice error ;)
aufi has joined #ruby
ocbtec has joined #ruby
<jhass> if the elements are actually unique you can also just .delete(key)
<gregf_> amtrivedi: you can also include try except for that #would help in debugging imho
<gregf_> a/include/$' a/
zacstewart has joined #ruby
palms has quit [Ping timeout: 252 seconds]
<gregf_> amtrivedi: what jhass has suggested is worth a try
jenrzzz has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
<amtrivedi> jhass, gregf Thanks, though I suspect the problem is that my array is not building up correctly before deleting the element.
lightt has quit [Remote host closed the connection]
certainty has joined #ruby
zacstewart has quit [Ping timeout: 252 seconds]
craigp has quit [Ping timeout: 276 seconds]
pawnbox has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
dumdedum has joined #ruby
Hounddog has joined #ruby
electrostat has quit [Remote host closed the connection]
craigp has joined #ruby
pawnbox has joined #ruby
moeabdol has joined #ruby
weemsledeux has quit [Quit: Textual IRC Client: www.textualapp.com]
dumdedum has quit [Quit: foo]
electrostat has joined #ruby
ruskie has joined #ruby
electrostat has quit [Remote host closed the connection]
Hounddog has quit [Ping timeout: 258 seconds]
panpainter has joined #ruby
sheperson has quit [Quit: sheperson]
marr has joined #ruby
electrostat has joined #ruby
elton has joined #ruby
panpainter has quit [Ping timeout: 252 seconds]
r1v3r_ has quit [Quit: ZZZzzz…]
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
Hounddog has joined #ruby
CloCkWeRX has joined #ruby
amtrivedi1 has joined #ruby
amtrivedi has quit [Ping timeout: 276 seconds]
bnjf has quit [Ping timeout: 260 seconds]
giz|work has joined #ruby
certainty has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
c355e3b has joined #ruby
lxsameer has joined #ruby
unshadow has joined #ruby
Snowy has joined #ruby
<unshadow> So, where is a good place to look for Ruby freelancers ? the company I work at is looking for more people to add to the team
hackeron has quit [Ping timeout: 258 seconds]
workmad3 has joined #ruby
tvw has joined #ruby
nankyokusei has joined #ruby
vuoto has joined #ruby
troulouliou_div2 has joined #ruby
elaptics is now known as elaptics`away
drptbl has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
madgen has joined #ruby
elaptics`away is now known as elaptics
palms has joined #ruby
aupadhye has quit [Ping timeout: 240 seconds]
matp has quit [Remote host closed the connection]
palms has quit [Ping timeout: 252 seconds]
elton has quit [Ping timeout: 244 seconds]
zacstewart has joined #ruby
joonty has quit [Quit: Leaving]
evidex has joined #ruby
TomyWork has joined #ruby
zacstewart has quit [Ping timeout: 244 seconds]
toretore has joined #ruby
matp has joined #ruby
amtrivedi1 has quit [Quit: Leaving.]
r1v3r_ has joined #ruby
madgen has quit [Ping timeout: 260 seconds]
nofxx has quit [Ping timeout: 250 seconds]
certainty has joined #ruby
drptbl has quit [Ping timeout: 244 seconds]
duncannz has quit [Remote host closed the connection]
mdw has joined #ruby
drptbl has joined #ruby
evidex has quit [Ping timeout: 240 seconds]
jancel has joined #ruby
Oclair has joined #ruby
vuoto has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 276 seconds]
phredus has quit [Remote host closed the connection]
weckl has joined #ruby
eladmeidar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
evidex has joined #ruby
drptbl has quit [Quit: See you later!]
bnjf has joined #ruby
jancel has quit [Ping timeout: 276 seconds]
ur5us has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 260 seconds]
SDr has left #ruby [#ruby]
vrturbo has joined #ruby
<vrturbo> hi, I"m having problems with an advanced query using https://github.com/elastic/elasticsearch-ruby
<vrturbo> I can get simple test searches to work but I need this more complex query
skade has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
<vrturbo> I just don't know how to pass in the advanced query, this query works fine in kibana and sense via the browser
alexandernst has quit [Remote host closed the connection]
tristanp has joined #ruby
alexandernst has joined #ruby
alexandernst has quit [Changing host]
alexandernst has joined #ruby
panpainter has joined #ruby
Silthias has joined #ruby
Silthias1 has quit [Read error: No route to host]
r1v3r_ has quit [Quit: ZZZzzz…]
CloCkWeRX has quit [Ping timeout: 240 seconds]
panpainter has quit [Ping timeout: 252 seconds]
certainty has quit [Ping timeout: 260 seconds]
tristanp has quit [Ping timeout: 250 seconds]
nadir has joined #ruby
blackmesa has joined #ruby
pawnbox has quit [Remote host closed the connection]
potatochipz has joined #ruby
roamingdog has quit [Remote host closed the connection]
pawnbox has joined #ruby
dcunit3d has joined #ruby
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
evidex has quit [Ping timeout: 240 seconds]
dcunit3d has quit [Ping timeout: 244 seconds]
alexandernst has quit [Remote host closed the connection]
alexandernst has joined #ruby
pandaant has joined #ruby
Hyuk has joined #ruby
CloCkWeRX has joined #ruby
jenrzzz has joined #ruby
<jhass> vrturbo: quick look at the docs I see https://github.com/elastic/elasticsearch-ruby/tree/master/elasticsearch-dsl and https://github.com/elastic/elasticsearch-ruby/tree/master/elasticsearch-api#usage-with-the-elasticsearch-gem simply passing it with a body attribute (not the JSON but as ruby hash or something else that'll return the JSON on to_json)
Rodya_ has joined #ruby
araujo has joined #ruby
KnownSyntax has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
alexandernst has quit [Remote host closed the connection]
kawb has joined #ruby
alexandernst has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
evidex has joined #ruby
kawb_ has joined #ruby
kawb_ has quit [Client Quit]
n1x-nz has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
alexandernst has quit [Remote host closed the connection]
alexandernst has joined #ruby
alexandernst has quit [Read error: Connection reset by peer]
alexandernst has joined #ruby
kawb has quit [Ping timeout: 250 seconds]
zacstewart has quit [Ping timeout: 244 seconds]
alexandernst has quit [Remote host closed the connection]
alexandernst has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
kawb has joined #ruby
panpainter has joined #ruby
yeticry has joined #ruby
d0lph1n98 has joined #ruby
<vrturbo> jhass, thanks for that
qasaur has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
<vrturbo> jhass, I'll look closely at the the body attribute
kedare has joined #ruby
panpainter has quit [Ping timeout: 276 seconds]
rippa has joined #ruby
rodfersou has joined #ruby
sdothum has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
d0nn1e has quit [Ping timeout: 260 seconds]
jespada has joined #ruby
joonty has joined #ruby
d0nn1e has joined #ruby
evidex has quit [Ping timeout: 240 seconds]
jaguarmagenta has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 244 seconds]
jaguarmagenta has quit [Ping timeout: 252 seconds]
nettoweb has joined #ruby
TomyWork has quit [Ping timeout: 244 seconds]
ferr1 has joined #ruby
tvw has quit [Ping timeout: 276 seconds]
panpainter has joined #ruby
ta__ has joined #ruby
certainty has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
d0lph1n98 has quit [Ping timeout: 258 seconds]
panpainter has quit [Ping timeout: 252 seconds]
tvw has joined #ruby
ta__ has quit [Ping timeout: 250 seconds]
Rodya_ has quit [Remote host closed the connection]
freerobby has joined #ruby
postmodern has quit [Quit: Leaving]
ta_ has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
Rodya_ has joined #ruby
nankyokusei has joined #ruby
mdw_ has joined #ruby
evidex has joined #ruby
mdw_ has quit [Max SendQ exceeded]
SHyx0rmZ has joined #ruby
mdw has quit [Ping timeout: 264 seconds]
bluOxigen has quit [Ping timeout: 240 seconds]
mdw has joined #ruby
kawb has quit [Remote host closed the connection]
Coldblackice has quit [Ping timeout: 252 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
Coldblackice has joined #ruby
chappy has left #ruby ["Leaving"]
Emmanuel_Chanel has joined #ruby
mdw has quit [Ping timeout: 264 seconds]
panpainter has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
kgrz has quit [Ping timeout: 258 seconds]
ta_ has quit [Read error: Connection reset by peer]
TomyWork has joined #ruby
ta_ has joined #ruby
<vrturbo> jhass, strange, this did the trick ... req = client.search body: JSON.parse(json_search)
<jhass> vrturbo: yes I kinda pointed that out
<jhass> vrturbo: why don't you define json_search as a ruby hash in the first place though?
zacstewart has joined #ruby
Yiota has joined #ruby
<vrturbo> Yes I will in the final code, this was just testing
<vrturbo> JSON.parse returns a hash I believe so I was just being lazy
joonty has quit [Quit: This computer has gone to sleep]
<jhass> yup
eljimmy has quit [Read error: Connection reset by peer]
kgrz has joined #ruby
tristanp has joined #ruby
panpainter has quit [Ping timeout: 252 seconds]
zacstewart has quit [Ping timeout: 246 seconds]
SilverKey has joined #ruby
SilverKey has quit [Client Quit]
SilverKey has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
hanmac has quit [Ping timeout: 260 seconds]
evidex has quit [Remote host closed the connection]
evidex has joined #ruby
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
gnufied has joined #ruby
terlar has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
craigp has quit [Quit: WeeChat 1.5]
jgt has quit [Ping timeout: 244 seconds]
d0lph1n98 has joined #ruby
axsuul has quit [Ping timeout: 276 seconds]
lxsameer has joined #ruby
craigp has joined #ruby
ldnunes has joined #ruby
bruce_lee has quit [Ping timeout: 246 seconds]
bruce_lee has joined #ruby
Rodya_ has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
evidex has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
evidex has joined #ruby
xue has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 276 seconds]
hanmac has joined #ruby
flughafen has quit [Quit: WeeChat 1.3]
agit0 has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
haraigoshi has joined #ruby
joonty has joined #ruby
nhhc has joined #ruby
alfiemax has quit [Ping timeout: 258 seconds]
AlexRussia has joined #ruby
rodferso1 has joined #ruby
jord-n has joined #ruby
bluOxigen has joined #ruby
evidex has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
evidex has joined #ruby
rodfersou has quit [Ping timeout: 276 seconds]
haraigoshi has quit [Ping timeout: 272 seconds]
gagrio has quit [Ping timeout: 260 seconds]
jord-n has quit [Client Quit]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
certainty has quit [Ping timeout: 272 seconds]
Rodya_ has joined #ruby
certainty has joined #ruby
potatochipz has left #ruby [#ruby]
rodferso1 is now known as rodfersou
eljimmy has joined #ruby
evidex has quit [Ping timeout: 240 seconds]
certainty has quit [Ping timeout: 258 seconds]
k3rn31 has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
certainty has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
shinnya has joined #ruby
bluOxigen has joined #ruby
flashpoint9 has joined #ruby
tubuliferous_ has joined #ruby
gagrio has joined #ruby
dcunit3d has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
jnoob22 has quit [Quit: Leaving]
dcunit3d has quit [Ping timeout: 264 seconds]
vasilakisfil has quit [Quit: Konversation terminated!]
blackmesa has quit [Ping timeout: 250 seconds]
CloCkWeRX has quit [Remote host closed the connection]
tk__ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
bkxd has joined #ruby
Coldblackice has quit [Ping timeout: 246 seconds]
bobix has joined #ruby
bobix has quit [Client Quit]
Ishido has quit [Remote host closed the connection]
tristanp has joined #ruby
<iamvery> apeiros: concerning the ruby_koans, i'm trying to track things down. I've got an email out to the owner of rubykoans.com https://twitter.com/iamvery/status/741644347058294786
Ishido has joined #ruby
diegoviola has joined #ruby
sergey_makagon has joined #ruby
jenrzzz has joined #ruby
jgt has joined #ruby
<jhass> iamvery: I have admin rights to the ruby-community github org too, so we can also move without apeiros having time :)
Madplatypus has quit [Quit: Connection closed for inactivity]
<iamvery> sure thing jhass, i just wanted to let folks know there's been some effort on the website side as well :). seems like it's pretty important to get that updated as people tend to land there from search
tristanp has quit [Ping timeout: 250 seconds]
<jhass> yup I agree, thanks for your effort
the_drow_ has joined #ruby
<iamvery> <3
p337rB has joined #ruby
xfbs has joined #ruby
xfbs has quit [Client Quit]
joonty has quit [Quit: This computer has gone to sleep]
<jhass> we got #ruby-community as a channel too, I think if you manage to get mdoel to join here or there to discuss things that'd be awesome
joonty has joined #ruby
GinoManWorks has joined #ruby
the_drow_ has quit [Client Quit]
jaguarmagenta has joined #ruby
certainty has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
solocshaw has joined #ruby
jmignault has joined #ruby
shevy has quit [Ping timeout: 264 seconds]
jaguarmagenta has quit [Ping timeout: 250 seconds]
SilverKey has quit [Quit: Halted.]
testing has joined #ruby
jaruga___ has quit [Quit: jaruga___]
jaruga___ has joined #ruby
testing is now known as Guest67242
nerium has joined #ruby
blackgoat has quit [Ping timeout: 250 seconds]
ramortegui has joined #ruby
jaruga____ has joined #ruby
SilverKey has joined #ruby
bluOxigen has joined #ruby
jaruga___ has quit [Remote host closed the connection]
SilverKey has quit [Client Quit]
jaruga____ has quit [Client Quit]
AndyBotwin has quit [Quit: Leaving]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
certainty has joined #ruby
kgrz has quit [Ping timeout: 252 seconds]
shevy has joined #ruby
Guest67242 has left #ruby [#ruby]
<TheBrayn> is it possible to specify additional flags like multiline for regexps with the %r{} syntax?
SilverKey has joined #ruby
Bmw-01 has joined #ruby
<shevy> TheBrayn have you looked at the available flags after a // yet?
<shevy> ah
<shevy> you mean via %r
<shevy> hmm
SilverKey has quit [Client Quit]
gagrio has quit [Ping timeout: 244 seconds]
<TheBrayn> %r{...}m seems to work
<jhass> yup
gaussblurinc1 has joined #ruby
alfiemax has joined #ruby
<gaussblurinc1> hi!
<gaussblurinc1> does anybody know protobuf dsl extension for customization?
<gaussblurinc1> for example, I need custom protobufs generated files for mobile client, for external device, for server etc. I don't want to copypaste protobufs for each case.
<gaussblurinc1> ruby implementation, of course
troulouliou_div2 has quit [Quit: Leaving]
blackmesa has joined #ruby
Bmw-01 has quit [K-Lined]
roamingdog has joined #ruby
sepp2k has joined #ruby
bmurt has joined #ruby
neha_ has joined #ruby
SilverKey has joined #ruby
nettoweb has joined #ruby
jancel has joined #ruby
giz|work has quit [Ping timeout: 276 seconds]
roamingdog has quit [Remote host closed the connection]
callen92 has joined #ruby
roamingdog has joined #ruby
alfiemax has quit [Ping timeout: 244 seconds]
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
malconis has joined #ruby
codecop has quit [Remote host closed the connection]
moos3 has joined #ruby
jgt has quit [Ping timeout: 240 seconds]
evidex has joined #ruby
ChiefAlexander has joined #ruby
nankyokusei has joined #ruby
araujo has quit [Ping timeout: 276 seconds]
SilverKey has quit [Quit: Halted.]
rbr has quit [Ping timeout: 276 seconds]
rbr has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
gagrio has joined #ruby
alfiemax has joined #ruby
marr has quit [Ping timeout: 252 seconds]
gaussblurinc1 has quit [Quit: Leaving.]
theslow1 has joined #ruby
gaussblurinc1 has joined #ruby
giz|work has joined #ruby
gregf has quit [Quit: WeeChat 1.5]
SilverKey has joined #ruby
sergio_101 has joined #ruby
elton has joined #ruby
moeabdol has quit [Ping timeout: 272 seconds]
ncthom91 has joined #ruby
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
catphish has joined #ruby
moos3 has quit [Ping timeout: 260 seconds]
moos3 has joined #ruby
panpainter has joined #ruby
<catphish> out of sick curiosity, what would happen if i wrote a ruby source file in UTF16, and then put \n in a string?
jrafanie has joined #ruby
elton has quit [Ping timeout: 264 seconds]
gregf has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
aryaching has joined #ruby
jancel has quit [Remote host closed the connection]
kareeole_ has joined #ruby
mrmortondk has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
zacstewart has joined #ruby
unshadow has quit [Quit: leaving]
rubyhatesme has joined #ruby
<jhass> your string literals encoding would be UTF-16 too
<jhass> the \n is rather irrelevant to that
joonty has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
panpainter has quit [Ping timeout: 252 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
Yiota has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
<catphish> jhass: so in the source code, the \ would be a utf16 character, and the n would be a utf16 character
freerobby has quit [Quit: Leaving.]
<jhass> sure
<catphish> jhass: then the interpreter would then create a UTF16 string from the string in the source code, and finally it would parse it for escape characters, what would happen to the \n
Yiota has quit [Client Quit]
<catphish> assuming it was in a double quoted string
jenrzzz has joined #ruby
freerobby has joined #ruby
zacstewart has quit [Ping timeout: 272 seconds]
<jhass> >> ["\\n".bytees, "\\n".codepoints, "\\n".encode("UTF-16LE").bytes, "\\n".encode("UTF-16LE").codepoints]
<ruby[bot]> jhass: # => undefined method `bytees' for "\\n":String ...check link for more (https://eval.in/588187)
<jhass> eek, sorry
<jhass> >> ["\\n".bytes, "\\n".codepoints, "\\n".encode("UTF-16LE").bytes, "\\n".encode("UTF-16LE").codepoints]
<ruby[bot]> jhass: # => [[92, 110], [92, 110], [92, 0, 110, 0], [92, 110]] (https://eval.in/588188)
<catphish> i suppose the correct solution would be to create an ascii line break, then encode that to UTF16
aegis3121 has joined #ruby
<jhass> catphish: the parser operates on characters, not bytes
sergey_makagon has quit []
<catphish> jhass: so \n always creates a line break in whatever character set the string is in?
<jhass> the source file is decoded into characters (codepoints) according to its encoding
<jhass> sure
<catphish> rather than always creating 0xA?
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has quit [Ping timeout: 258 seconds]
<jhass> what byte representation it has in the output is subject to the external encoding
iMadper has quit [Ping timeout: 240 seconds]
aryaching has quit [Remote host closed the connection]
<jhass> in the parser it'll aways be the codepoint 10
axsuul has joined #ruby
<catphish> oh, so the parser has its own representation of codepoints, that makes more sense
<catphish> >>eval("\\n".encode("UTF-16LE"))
<ruby[bot]> catphish: # => invalid source encoding (ArgumentError) ...check link for more (https://eval.in/588190)
lxsameer has joined #ruby
duckpuppy has joined #ruby
<catphish> i can't test it, my ruby won't eval UTF16
Mon_Ouie has joined #ruby
<catphish> i actually meant eval("\"\\n\"".encode("UTF-16LE"))
jenrzzz has quit [Ping timeout: 276 seconds]
<catphish> but it doesn't work :(
<jhass> use a file
<jhass> with the right magic header or invoked with the right commandline flags
<catphish> i think that answers my question anyway, \n always creates codepoint 10, which then gets represented in whichever external format is needed later
<catphish> honestly, the reason i asked was that i couldn't be bothered to make the file
k3rn31 has quit [Quit: Computer has gone to sleep.]
gaussblurinc1 has joined #ruby
roamingdog has quit [Read error: Connection reset by peer]
axsuul has quit [Ping timeout: 260 seconds]
roamingdog has joined #ruby
<rubyhatesme> you guys have any experience with the mandrillapp?
skade has quit [Quit: Computer has gone to sleep.]
Yiota has joined #ruby
jancel has joined #ruby
<rubyhatesme> and know that, if i run it in test mode, i can still send normal emails using their normal API key
cdg has joined #ruby
karmatr0n has joined #ruby
<rubyhatesme> as in, if i turn on testmode, does that stop the mandrill app from working?
<catphish> is this ruby related?
<rubyhatesme> i dont think so
<rubyhatesme> i just realised, sorry
<rubyhatesme> thought i was in web
<catphish> although its probably saner than my question :)
fedruantine has quit [Max SendQ exceeded]
mustmodify has joined #ruby
jespada_ has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
<mustmodify> So it looks like if I ask Ruby stdlib logger to rotate daily or weekly, if there's already a file there, it'll assume that file is from the previous day/week/month. Is there a way to have it check the file creation date?
<mustmodify> I didn't see it in the docs. Just thought someone might have a suggestion.
<mustmodify> I guess I could just fork it.
axisys has joined #ruby
jancel has quit [Remote host closed the connection]
jespada has quit [Ping timeout: 276 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
aryaching has joined #ruby
kareeole_ is now known as kareeoleez
<neha_> hey, what's the difference between Dir.glob() and and Dir[]
<neha_> are they equivalent?
<Mon_Ouie> You can't pass a block to Dir[]
infra-red has quit [Remote host closed the connection]
SilverKey has quit [Quit: Halted.]
infra-red has joined #ruby
<neha_> ah okay
<jhass> also not sure if Dir.glob takes multiple arguments?
alfiemax has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
Yiota has quit [Read error: Connection reset by peer]
<Mon_Ouie> Well it has a second argument, but it's not a second pattern
Yiota has joined #ruby
solocshaw1 has joined #ruby
Akuma has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
solocshaw1 is now known as solocshaw
aryaching has quit [Ping timeout: 244 seconds]
yokel has quit [Ping timeout: 240 seconds]
jhack has joined #ruby
yokel has joined #ruby
jgt has joined #ruby
the_drow_ has joined #ruby
chipotle has quit [Ping timeout: 244 seconds]
DoubleMalt has quit [Remote host closed the connection]
jaruga___ has joined #ruby
JJM has joined #ruby
agent_white has joined #ruby
jaruga___ is now known as jaruga____
gaussblurinc1 has quit [Ping timeout: 244 seconds]
JJM is now known as Guest40558
bkxd has quit [Ping timeout: 260 seconds]
Gasher has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
theslow1 has quit [Quit: Leaving]
solocshaw has joined #ruby
davedev24 has joined #ruby
<agent_white> Mornin'
Bish has quit [Ping timeout: 250 seconds]
doscta has joined #ruby
chipotle has joined #ruby
dcunit3d has joined #ruby
SilverKey has joined #ruby
zacstewart has joined #ruby
jespada_ has quit [Ping timeout: 250 seconds]
frem_ has joined #ruby
<mustmodify> Is there a channel I can go to to ask why I'm seeing this message from IRC? "*** #ruby-lang Cannot join channel (+i) - you must be invited"
<jhass> mustmodify: simply stop trying to join #ruby-lang
<davedev24> yo
<jhass> mustmodify: you get it because it redirects here but you're already here
<workmad3> mustmodify: #ruby and #ruby-lang were merged a while back, and #ruby-lang kicks you over to us here
dcunit3d has quit [Ping timeout: 240 seconds]
<mustmodify> Ah, so it's a 301 message?
<mustmodify> (metaphorically)
Gasher has quit [Quit: Leaving]
Bish has joined #ruby
<jhass> kinda we set it to invite only and there's +f which redirects people who aren't allowed to join to another channel
<jhass> recommended by freenode way to do redirects
babblebre has joined #ruby
<mustmodify> ok, interesting.
Bish has quit [Read error: Connection reset by peer]
<jhass> there's no direct #a is now #b in IRC speak
<mustmodify> So that's helpful except it doesn't explain why I see it when I'm already here. :) But lately my client has done some goofy things.
<jhass> mustmodify: likely because you have your client configured to try to join it
<jhass> and it gets to do that after it already joined #ruby
<workmad3> mustmodify: if you're like me, you probably have an old autojoin from prior to the merge that joins #ruby first, then tries to join #ruby-lang
<mustmodify> jhass: What I meant is that I'll be here for like 5 minutes then I see it.
matp has quit [Excess Flood]
fedruantine has joined #ruby
<mustmodify> I'll remove my #ruby entry and re-add. We'll see how it goes.
blandflakes has joined #ruby
matp has joined #ruby
k3rn31 has joined #ruby
jespada_ has joined #ruby
Bish has joined #ruby
snath has quit [Ping timeout: 244 seconds]
alfiemax has quit [Ping timeout: 246 seconds]
konsolebox has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ncthom91 has joined #ruby
konsolebox has quit [Max SendQ exceeded]
konsolebox has joined #ruby
Guest40558 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mattwashere has joined #ruby
panpainter has joined #ruby
JJM_ has joined #ruby
Yiota has joined #ruby
konsolebox has quit [Max SendQ exceeded]
nerium has quit [Quit: nerium]
koooge has quit [Quit: Leaving...]
mattwashere has quit [Remote host closed the connection]
ekinmur has joined #ruby
tmtwd has joined #ruby
mattwashere has joined #ruby
elton has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
kareeoleez has quit [Remote host closed the connection]
kareeoleez has joined #ruby
palms has joined #ruby
mostlybadfly has joined #ruby
croberts has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
ta_ has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
elton has quit [Ping timeout: 276 seconds]
mistermocha has joined #ruby
kareeoleez has quit [Ping timeout: 252 seconds]
jespada_ has quit [Quit: WeeChat 1.5-dev]
ta_ has joined #ruby
tmtwd has quit [Ping timeout: 276 seconds]
tk__ has quit [Quit: ばいばい]
moos3 has quit [Quit: leaving]
chipotle has quit [Ping timeout: 252 seconds]
aryaching has joined #ruby
minimalism has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
jrafanie_ has joined #ruby
aegis3121 has quit [Ping timeout: 276 seconds]
Gasher has joined #ruby
willemb has quit [Quit: leaving]
cschneid has joined #ruby
jancel has joined #ruby
<croberts> with the openssl gem is it possible to do something similar to openssl verify -CAfile <crt>
jrafanie has quit [Ping timeout: 272 seconds]
skade has joined #ruby
<jhass> croberts: gem? you mean stdlib?
kmooney has joined #ruby
aegis3121 has joined #ruby
gaussblurinc1 has joined #ruby
<jhass> I don't see API to take a whole store to verify against though
hutch34 has joined #ruby
chouhoulis has joined #ruby
catphish has left #ruby ["Leaving"]
roamingdog has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 264 seconds]
roamingdog has joined #ruby
callen92 has quit [Quit: Leaving]
swills has joined #ruby
Silthias has quit [Ping timeout: 276 seconds]
aganov has quit [Remote host closed the connection]
tvw has quit [Read error: Connection reset by peer]
duckpuppy has quit [Quit: WeeChat 1.5]
mistermocha has quit [Remote host closed the connection]
sneakerhax has quit [Ping timeout: 244 seconds]
prestorium has joined #ruby
jancel has quit [Remote host closed the connection]
nankyokusei has joined #ruby
mistermocha has joined #ruby
davedev2_ has joined #ruby
neha_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev24 has quit [Ping timeout: 264 seconds]
solocshaw has quit [Ping timeout: 250 seconds]
<yorickpeterse> I suspect the answer will be "no", but is there a way in the C API to check if a pointer is a valid VALUE?
andromedian has joined #ruby
djbkd has quit [Quit: Leaving...]
pwnd_nsfw has joined #ruby
snath has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
ferr1 has quit [Quit: WeeChat 1.5]
meyercm has joined #ruby
<meyercm> does anyone know why net/telnet is missing from 2.3.1?
<bjmllr> meyercm: moved to net-telnet gem
chipotle has joined #ruby
alexherbo2 has joined #ruby
<meyercm> Huh. There's a broken link in the stdlib docs... and I can't find any mention of the change
platzhirsch has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
<yorickpeterse> I noticed MRI has is_pointer_to_heap() but sadly it's not exported publicly :/
ChiefAlexander has quit [Read error: Connection reset by peer]
ChiefAlexander_ has joined #ruby
jrafanie_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agit0 has joined #ruby
chopin has joined #ruby
<meyercm> bjmllr: thanks for the help
<hanmac> yorickpeterse: you can check its inner Type or something like that, like if its a T_DATA or T_TYPED_DATA object (or something like that)
<hanmac> yorickpeterse: depending what else do you might get for "not valid" VALUE?
LoneHermit has joined #ruby
johnmilton has joined #ruby
chouhoulis has quit [Remote host closed the connection]
vuoto has joined #ruby
chouhoulis has joined #ruby
madgen has joined #ruby
meyercm has quit [Ping timeout: 250 seconds]
safetypin has joined #ruby
iamvery_ has joined #ruby
<andromedian> what does the ActiveRecord::Base double :: refers to?
edwinvdgraaf has quit [Remote host closed the connection]
iamvery has quit [Ping timeout: 260 seconds]
<ghr> andromedian module namespace
<andromedian> and does the double colon has a special name?
skweek has joined #ruby
johnmilton has quit [Ping timeout: 250 seconds]
madgen has quit [Ping timeout: 258 seconds]
<ghr> constant lookup operator
<andromedian> Thanks a lot ghr!
<ghr> no problem :)
<andromedian> I've seen this operator used in other languages as well does it have the same logic more or less?
<andromedian> anyway that's off topic :) thanks again
agit0 has quit [Quit: zzzZZZ….]
fedruantine has quit [Max SendQ exceeded]
hobodave has joined #ruby
giz|work has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<jhass> andromedian: "other languages" is too generic to say yes or no
kareeoleez has joined #ruby
jaruga____ has quit [Quit: jaruga____]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
kareeoleez has quit [Remote host closed the connection]
terlar has quit [Ping timeout: 264 seconds]
andikr has quit [Remote host closed the connection]
SilverKey has quit [Read error: Connection reset by peer]
SilverKey has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
dionysus69 has joined #ruby
kareeoleez has joined #ruby
diegoaguilar has joined #ruby
rkazak has joined #ruby
gaussblurinc1 has joined #ruby
madgen has joined #ruby
elton has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
elaptics is now known as elaptics`away
axsuul has joined #ruby
the_drow_ has quit [Quit: This computer has gone to sleep]
vuoto has quit [Quit: leaving]
vuoto has joined #ruby
johnmilton has joined #ruby
Jet4Fire has quit []
pawnbox has quit [Remote host closed the connection]
agit0 has joined #ruby
pawnbox has joined #ruby
tjbiddle has joined #ruby
<yorickpeterse> hanmac: hmm
elton has quit [Ping timeout: 272 seconds]
agit0 has quit [Client Quit]
caseyd has joined #ruby
axsuul has quit [Ping timeout: 276 seconds]
tubuliferous_ has quit [Ping timeout: 276 seconds]
pawnbox has quit [Remote host closed the connection]
infra-red has quit [Remote host closed the connection]
<hanmac> yorickpeterse: i sometimes do a NULL value inside a T_DATA object when i can't create an object in a 2-step-constructor like ruby normally does
pawnbox has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
wrkrcoop has joined #ruby
certainty has joined #ruby
rkazak has quit [Ping timeout: 258 seconds]
<wrkrcoop> i have this method
<wrkrcoop> and im trying to check if input is a hash, if not i log something and return
<wrkrcoop> but when i test it by passing in a string it returns nil …
<toretore> ?code
<ruby[bot]> We can't help you without your code, please post it to https://gist.github.com
pawnbox has quit [Ping timeout: 272 seconds]
tjbiddle_ has joined #ruby
craigp has quit [Ping timeout: 240 seconds]
p337rB_ has joined #ruby
p337rB has quit [Ping timeout: 246 seconds]
ta_ has joined #ruby
<caseyd> I have a bunch of old windows ce handheld computers and I'm wanting to write a telnet application that would allow them to connect and go through the steps. Would you recommend ruby to be the language behind it? Is there a tutorial to get something like that started?
tjbiddle has quit [Ping timeout: 250 seconds]
tjbiddle_ is now known as tjbiddle
<wrkrcoop> toretore:
pawnbox has joined #ruby
lxsameer has joined #ruby
<wrkrcoop> i’m trying to stub out logger so it returns a value and then i can see thats what i got
<wrkrcoop> but when i test this it returns nil
RobertBirnie has joined #ruby
<toretore> what returns nil?
<toretore> context and code, context and code, context and code
Mon_Ouie has quit [Ping timeout: 258 seconds]
<jhass> caseyd: uh, does ruby even run on windows ce?
<jhass> did you check that?
certainty has quit [Ping timeout: 252 seconds]
<caseyd> jhass, Well no, it wouldn't run on the ce device but would run on linux or whatever and supply the telnet server.
amclain has joined #ruby
rodfersou is now known as rodfersou|lunch
<toretore> wrkrcoop: in order of preference: 1) use duck typing, as in obj.respond_to?(:message), 2) use obj.is_a?(Klass) 3) don't use obj.class == Klass
hobodave_ has joined #ruby
<toretore> 0) don't rely on any of these techniques
<jhass> caseyd: oh, "would allow to connect to them" not "allow them to connect"
tref has joined #ruby
<wrkrcoop> toretore: but how do i test this
<toretore> wrkrcoop: context and code, context and code, context and code
aegis3121 has quit [Ping timeout: 240 seconds]
<jhass> caseyd: but yeah why not, https://github.com/ruby/net-telnet would be your goto library to get started I guess
<caseyd> I need to search for my problem in the late 80s. I think I would get better results.
<toretore> i have no idea what "this" is because i don't know the context and i don't see the code
<caseyd> jhass, thanks !
hobodave_ has quit [Max SendQ exceeded]
joonty has quit [Quit: This computer has gone to sleep]
<toretore> wrkrcoop: and if you are asking because you're wondering about the best approach to a problem, don't ask specific questions about code you're trying to write; explain the problem in broad terms
hobodave has quit [Ping timeout: 260 seconds]
kedare has quit [Quit: Leaving]
hobodave has joined #ruby
<jhass> wrkrcoop: ^ said, your method will return nil for each and every input
<jhass> all your return values are nil
al2o3-cr has quit [Ping timeout: 260 seconds]
<wrkrcoop> jhass: but why isn’t it returning the logger method since i’m stubbing it out?
<wrkrcoop> to just be a string “this is not a hash"
tjbiddle has quit [Quit: tjbiddle]
<jhass> because
<jhass> all your return values are nil
<wrkrcoop> jhass: because im calling return?
GoldenPenguin has joined #ruby
<jhass> no
<jhass> because
GoldenPenguin has left #ruby [#ruby]
<jhass> all your return values are nil
<wrkrcoop> jhass: wtf does that mean
<jhass> it means that
<jhass> all your return values are nil
mattwashere has quit [Remote host closed the connection]
<toretore> it means all your return values are nil
<wrkrcoop> ><
<toretore> :P
<wrkrcoop> oh now i get it all my return values are nil great
<wrkrcoop> makes sense
jrafanie has joined #ruby
<toretore> wrkrcoop: do you understand how ruby expressions work?
<wrkrcoop> i didnt get it the first time but the third time just made sense
<jhass> cool
danostrowski has joined #ruby
<norc__> I'm beginning to not like ensure being able to execute code after an explicit return..
<norc__> It feels clunky.
troulouliou_div2 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
agit0 has joined #ruby
<norc__> If Ox0dea was here we could ponder about some hack how to dodge an ensure block.
<norc__> :(
agit0 has quit [Client Quit]
kawb has joined #ruby
<toretore> norc__: how is it different from an implicit return?
Couch has quit [Ping timeout: 264 seconds]
<norc__> toretore, lambda {begin; return 1; ensure; puts foo; end}.call()
<norc__> toretore, my instinct tells me that this should not print anything.
<toretore> mine is the opposite
<toretore> ensure should run no matter what
<norc__> toretore, well ensure is designed to run code when you have uncaught exceptions.
kus has joined #ruby
kus has quit [Max SendQ exceeded]
<norc__> Im not quite sure whether "run something even if you return early" is the same.
<toretore> ensure is designed to run no matter what happens
freerobby has quit [Quit: Leaving.]
<toretore> not just if there's an exception
<kawb> Ensure can also run at the end of a block right?
dar123 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<toretore> and imo there is no difference between "return early" and "return implicitly"
<norc__> toretore, can you back that up with some code that reflects this particular intention?
<toretore> File.open
<toretore> ensure that fd is closed
<norc__> toretore, what does that have to do with returns?
pandaant has quit [Remote host closed the connection]
robot has quit [Quit: I guess that's how it's post to be.]
<adaedra> You could return in the middle of the method and still want to clean up your file.
ta__ has joined #ruby
<toretore> norc__: File.open(...){ return something; } #this should close the fd
ta_ has quit [Read error: Connection reset by peer]
pilne has joined #ruby
<jhass> norc__: def foo; File.open(FOO_PATH) do |io| return true if io.gets == STUFF; end; end;
skade has quit [Quit: Computer has gone to sleep.]
<norc__> Oh. Returns from blocks.
<kawb> norc, did you try the code you posted?
chipotle has quit [Quit: cheerio]
<jhass> norc__: likewise it should close the fd if break is used in the block
<jhass> norc__: or event Kernel#exit
<jhass> norc__: https://github.com/crystal-lang/crystal/issues/1935 has some more perspective especially on the last point
<toretore> i would find it illogical if my ensure didn't run because i put an explicit return in
al2o3-cr has joined #ruby
<norc__> That sounds like me repeatedly SIGBUSing ruby with open files might not be a smart thing jhass..
<jhass> ;)
<jhass> well Linux is fairly smart about it these days when a process vanishes
<jhass> but it doesn't make the process a "good citizen"
<norc__> jhass, Im not that far yet to have processes in my kernel, so I wouldn't know much about processes.
chipotle has joined #ruby
<norc__> (But paging I do have!)
<jhass> I don't need to write a kernel to know that :P
<norc__> jhass, I just never had the need to get in touch with all these things.
<norc__> Until that I'm forced to now.
<toretore> god i hate malformed data
Xentil has joined #ruby
dcunit3d has joined #ruby
tildes has joined #ruby
jancel has joined #ruby
jancel has quit [Read error: Connection reset by peer]
last_staff has quit [Quit: last_staff]
jancel has joined #ruby
Snowy has quit [Remote host closed the connection]
Hounddog has quit [Remote host closed the connection]
jgw has joined #ruby
fedruantine has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
<wrkrcoop> anyone know why this is returning nil and not the expected response
dcunit3d has quit [Ping timeout: 276 seconds]
jancel has quit [Read error: Connection reset by peer]
johnmilton has quit [Quit: Namaste]
Eiam_ has joined #ruby
jancel has joined #ruby
tubuliferous_ has joined #ruby
mistermocha has quit [Remote host closed the connection]
platzhirsch has quit [Quit: WeeChat 1.4]
mistermocha has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
wrkrcoop has joined #ruby
wrkrcoop has quit [Client Quit]
yanping has joined #ruby
weckl has quit [Quit: Leaving]
moeabdol has joined #ruby
kawb has quit [Quit: Leaving...]
rubyhatesme has quit [Ping timeout: 250 seconds]
SCHAAP137 has joined #ruby
jancel has quit [Ping timeout: 264 seconds]
lxsameer has quit [Ping timeout: 250 seconds]
gaussblurinc1 has quit [Quit: Leaving.]
mustmodify has left #ruby [#ruby]
pietr0 has joined #ruby
senayar has quit []
bluOxigen has quit [Ping timeout: 246 seconds]
kavanagh has joined #ruby
bluOxigen has joined #ruby
antgel has quit [Ping timeout: 240 seconds]
SilverKey has quit [Quit: Halted.]
anisha has joined #ruby
TomyWork has quit [Ping timeout: 244 seconds]
chipotle has quit [Ping timeout: 240 seconds]
dcluna has joined #ruby
nankyokusei has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
chipotle has joined #ruby
nankyokusei has quit [Remote host closed the connection]
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
chipotle has quit [Max SendQ exceeded]
[Butch] has joined #ruby
aufi has quit [Ping timeout: 260 seconds]
chipotle has joined #ruby
wrkrcoop has joined #ruby
chipotle has quit [Max SendQ exceeded]
<wrkrcoop> anyone know why this doesn’t return the expected value https://gist.github.com/ellismarte/f6f2046a6ec1352b6bfc31d2075f9df6#file-spec-rb-L6
<jhass> wrkrcoop: # more code if api_request is a hash
<jhass> ?code
<ruby[bot]> We can't help you without your code, please post it to https://gist.github.com
freerobby has joined #ruby
<wrkrcoop> jhass but its not important right? because its going to hit that block
<wrkrcoop> im passing ina string
lsmola has quit [Ping timeout: 260 seconds]
<jhass> you return nil
skweek has quit [Ping timeout: 272 seconds]
<wrkrcoop> fuck so maybe i can stub out return … i cant just say i expect nil because i have other blocks that test similar things
<hanmac> also ".class != Hash" is a bad way to check imo, use "unless obj.is_a?(Klass)"
<wrkrcoop> hanmac: why is it a bad way to check if it works?
yosafbridge has quit [Ping timeout: 276 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
whathappens has joined #ruby
tildes has quit [Ping timeout: 258 seconds]
lightt has joined #ruby
jancel has joined #ruby
<hanmac> wrkrcoop: because you might have an object that does derivate from Hash but is not a Hash itself
freerobby has quit [Client Quit]
vuoto_ has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
marr has joined #ruby
SilverKey has joined #ruby
SilverKey has quit [Client Quit]
<jokke> hey
chipotle has joined #ruby
vuoto_ has quit [Remote host closed the connection]
vuoto_ has joined #ruby
<jokke> i'm trying to include a private gem from our git repo to another private gem. so i added it as a dep in the Gemfile after the gemspec directive. I get the error ArgumentError: string contains null byte. Not sure what to make of it...
kavanagh has quit [Quit: That's all folks!]
gizmore has joined #ruby
vuoto has quit [Ping timeout: 244 seconds]
jancel has quit [Ping timeout: 244 seconds]
evidex has quit [Ping timeout: 240 seconds]
mattwashere has joined #ruby
chipotle has quit [Client Quit]
mdw has joined #ruby
nankyoku_ has joined #ruby
aegis3121 has joined #ruby
infra-red has joined #ruby
flashpoint9 has joined #ruby
polishdub has joined #ruby
rodfersou|lunch is now known as rodfersou
lxsameer has joined #ruby
caseyd has quit [Quit: Leaving]
nankyokusei has quit [Ping timeout: 250 seconds]
evidex has joined #ruby
chopin_ has joined #ruby
neha_ has joined #ruby
firstdayonthejob has joined #ruby
spider-mario has joined #ruby
chopin has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
Mon_Ouie has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
TomyLobo has joined #ruby
ta__ has quit [Read error: Connection reset by peer]
madgen_ has joined #ruby
ixti has joined #ruby
madgen has quit [Ping timeout: 260 seconds]
infra-red has quit []
constantinexvi has joined #ruby
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
andromedian has quit [Quit: This computer has gone to sleep]
Dimik has joined #ruby
ta_ has joined #ruby
vuoto_ has quit [Remote host closed the connection]
vuoto has joined #ruby
danostrowski has joined #ruby
diegoviola has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
gnufied has quit [Ping timeout: 250 seconds]
<jhass> Don't add a 0 byte to your string!
<jhass> use vim or so, good at displaying these
<jhass> wrkrcoop: toretore already explained you why it's a bad thing
<jhass> wrkrcoop: anyway, learn about expect(foo).to receive(bar).with(baz)
jackjackdripper has joined #ruby
<wrkrcoop> thanks
ramfjord has quit [Ping timeout: 244 seconds]
anisha has quit [Quit: This computer has gone to sleep]
mattwashere has quit [Remote host closed the connection]
jhack has quit [Quit: jhack]
aryaching has joined #ruby
freerobby has joined #ruby
mattwashere has joined #ruby
tildes has joined #ruby
theery has joined #ruby
romistrub has joined #ruby
<romistrub> so I'm more than a bit confused about active_record.
chouhoul_ has joined #ruby
agit0 has joined #ruby
<romistrub> Shouldn't the database and table creation be a one-time thing, whereas CRUD operations occur separately on an as-needed basis?
<neha_> romistrub: you should ask in #rubyonrails
<romistrub> neha_: okay
chouhou__ has joined #ruby
<romistrub> the main reason I came here was because I'm not using rails :P
<romistrub> I'm just using activerecord on its own
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tildes has quit [Ping timeout: 246 seconds]
gnufied has joined #ruby
<shevy> but only railsers use active* stack!
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
troulouliou_div2 has quit [Remote host closed the connection]
flashpoint9 has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
chouhoul_ has quit [Ping timeout: 272 seconds]
jmignault has quit [Remote host closed the connection]
elton has joined #ruby
alxgsv has quit [Remote host closed the connection]
flopsec has quit [Read error: Connection reset by peer]
alberti has quit [Read error: Connection reset by peer]
Guest24676 has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
elton has quit [Ping timeout: 240 seconds]
replay has joined #ruby
edwinvdgraaf has joined #ruby
craigp has joined #ruby
fedruantine has quit [Max SendQ exceeded]
lxsameer has quit [Ping timeout: 244 seconds]
flashpoint9 has joined #ruby
doscta has quit [Remote host closed the connection]
<wrkrcoop> the last thing that is in my method is where i join threads
<wrkrcoop> how would i test this?
alxgsv has joined #ruby
haraigoshi has joined #ruby
gizmore has quit [Ping timeout: 244 seconds]
yosafbridge has joined #ruby
aryaching has quit [Ping timeout: 246 seconds]
tildes has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
blaxter has quit [Quit: foo]
agit0 has quit [Quit: zzzZZZ….]
certainty has joined #ruby
ncthom91 has joined #ruby
ncthom91 has quit [Client Quit]
Asher has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
sepp2k has quit [Quit: Leaving.]
flopsec has joined #ruby
kawb has joined #ruby
gizmore has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta__ has joined #ruby
blaxter has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
saneax is now known as saneax_AFK
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
certainty has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
tristanp has joined #ruby
aryaching has joined #ruby
choke has joined #ruby
agit0 has joined #ruby
whathappens has quit [Remote host closed the connection]
DrCode has quit [Read error: Connection reset by peer]
jancel has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
banister has joined #ruby
k3rn31 has joined #ruby
ta__ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
dcluna has quit [Read error: Connection reset by peer]
tristanp has quit [Ping timeout: 244 seconds]
Antiarc has joined #ruby
Rick_Deckard has joined #ruby
rcvalle has joined #ruby
bluOxigen has quit [Ping timeout: 276 seconds]
Rick_Deckard has quit [Client Quit]
bluOxigen has joined #ruby
theery has quit []
roamingdog has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
workmad3 has quit [Ping timeout: 264 seconds]
haraigoshi has quit [Ping timeout: 240 seconds]
whathappens has joined #ruby
tvw has joined #ruby
whathapp_ has joined #ruby
DrCode has joined #ruby
whathapp_ has quit [Read error: Connection reset by peer]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whathapp_ has joined #ruby
whathappens has quit [Ping timeout: 250 seconds]
dunpeal has joined #ruby
<dunpeal> Hi. I'm in an interactive IRB session, and I have a Ruby file I'd like to eval. What's the best way?
zel has joined #ruby
zel is now known as Guest23451
sauvin has quit [Read error: Connection reset by peer]
ta_ has quit [Read error: Connection reset by peer]
aryaching has quit [Remote host closed the connection]
whathapp_ has quit [Remote host closed the connection]
ta_ has joined #ruby
<wrkrcoop> try require_relative
gaussblurinc1 has joined #ruby
arlek has joined #ruby
moeabdol has quit [Ping timeout: 276 seconds]
qasaur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dcunit3d has joined #ruby
choke has joined #ruby
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
mattwashere has quit [Remote host closed the connection]
ule has quit [Remote host closed the connection]
mattwashere has joined #ruby
ule has joined #ruby
ule has quit [Changing host]
ule has joined #ruby
<dunpeal> wrkrcoop: thanks
d5sx43 has joined #ruby
<wrkrcoop> dunpeal: did it work?
alfiemax has quit [Ping timeout: 272 seconds]
stevenx has joined #ruby
<stevenx> hello gang.
sandstrom has joined #ruby
nankyoku_ has quit [Remote host closed the connection]
arlek has quit [Ping timeout: 240 seconds]
tristanp has joined #ruby
d5sx43 has quit [Remote host closed the connection]
dcunit3d has quit [Ping timeout: 276 seconds]
moeabdol has joined #ruby
yanping has quit [Ping timeout: 250 seconds]
Amnez777 has quit [Changing host]
Amnez777 has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.5]
<shevy> hello stevenx
<havenwood> stevenx: hi
jgt has quit [Ping timeout: 264 seconds]
whathappens has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
whathapp_ has joined #ruby
qasaur has joined #ruby
d5sx43 has joined #ruby
chouhou__ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
yqt has joined #ruby
staticfox has quit [Quit: ZNC - http://znc.in]
yqt has quit [Max SendQ exceeded]
staticfox has joined #ruby
yqt has joined #ruby
d5sx43 has quit [Client Quit]
codecop has joined #ruby
alfiemax has joined #ruby
multi_io has quit [Ping timeout: 258 seconds]
whathappens has quit [Ping timeout: 260 seconds]
SilverKey has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
multi_io has joined #ruby
dcunit3d has joined #ruby
fedruantine has joined #ruby
jenrzzz has joined #ruby
mesamoo has quit [Excess Flood]
terminalrecluse has quit [Ping timeout: 264 seconds]
last_staff has joined #ruby
Satyajit has joined #ruby
mesamoo has joined #ruby
terminalrecluse has joined #ruby
chouhoulis has quit [Remote host closed the connection]
yfeldblum has joined #ruby
chouhoulis has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
lxsameer has joined #ruby
dionysus69 has quit [Ping timeout: 258 seconds]
jancel has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 244 seconds]
rodfersou is now known as rodfersou|away
<shevy> one day I must find a better way than to dissect old projects, re-put them up together step by step when doing a rewrite... it is so slow and tedious even if it is not extremely (mentally) challenging / difficult
nankyokusei has joined #ruby
matp has quit [Max SendQ exceeded]
matp has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
d0lph1n98 has quit [Ping timeout: 264 seconds]
statelesscode has quit [Ping timeout: 264 seconds]
danostrowski has joined #ruby
ecnalyr has joined #ruby
flashpoint9 has joined #ruby
matp has quit [Max SendQ exceeded]
matp has joined #ruby
statelesscode has joined #ruby
mesamoo has quit [Read error: Connection reset by peer]
jancel has joined #ruby
mesamoo has joined #ruby
tristanp has quit [Remote host closed the connection]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
madgen_ has quit [Ping timeout: 276 seconds]
ta_ has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Coldblackice has joined #ruby
tristanp has joined #ruby
ruby-lang804 has joined #ruby
zeroDi has joined #ruby
kirun has joined #ruby
JesseH2 has joined #ruby
aberen has quit [Ping timeout: 252 seconds]
safetypin has quit [Quit: ZZZzzz…]
diegoviola has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
ruby-lang804 has quit [Ping timeout: 250 seconds]
diegoviola has joined #ruby
vuoto has quit [Remote host closed the connection]
ecnalyr has quit []
aryaching has joined #ruby
elifoster has joined #ruby
hutch34 has quit [Quit: WeeChat 1.5]
Snowy has joined #ruby
elton has joined #ruby
joelwallis has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
neha_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bluOxigen has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
evidex has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
nankyokusei has quit [Remote host closed the connection]
elton has quit [Ping timeout: 260 seconds]
symm- has joined #ruby
JakFrist has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
karmatr0n has quit [Ping timeout: 258 seconds]
neha_ has joined #ruby
Guest85030 has joined #ruby
Guest85030 is now known as rshackleford
aryaching has quit [Remote host closed the connection]
skade has joined #ruby
vandemar has quit [Ping timeout: 272 seconds]
CJKinni has joined #ruby
jgt has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
tildes has quit [Ping timeout: 246 seconds]
moeabdol has joined #ruby
nhhc has quit [Quit: Leaving]
karmatr0n has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ekinmur has joined #ruby
jgt has quit [Ping timeout: 258 seconds]
vuoto has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
moeabdol has quit [Ping timeout: 250 seconds]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp has quit [Remote host closed the connection]
platzhirsch has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
kareeoleez has quit [Read error: Connection reset by peer]
k3rn31 has joined #ruby
kareeoleez has joined #ruby
jancel has quit [Remote host closed the connection]
Snowy has quit [Remote host closed the connection]
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
neha_ has quit [Quit: Textual IRC Client: www.textualapp.com]
whathapp_ has quit [Remote host closed the connection]
haraigoshi has joined #ruby
whathappens has joined #ruby
whathappens has quit [Remote host closed the connection]
vF3hNGxc47h8 has joined #ruby
safetypin has joined #ruby
fedruantine has quit [Max SendQ exceeded]
safetypin has quit [Client Quit]
highbass has joined #ruby
DanyC has joined #ruby
<highbass> can anyone point me in the direction of daemonizing a ruby application? ... i haven't had troubles iwth sidekiq and puma since they have internal mechanisms buillt in for daomonizing ... but just plain ruby seems more challenging
DanyC has left #ruby [#ruby]
<highbass> im a ruby noob so mind my ignorance
dcunit3d has quit [Ping timeout: 258 seconds]
aswen has joined #ruby
danostrowski has joined #ruby
nankyokusei has joined #ruby
jancel has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
FooMunki has joined #ruby
axsuul has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riceandbeans has joined #ruby
<riceandbeans> is it perfectly plausible to have an array of a new struct type?
ta_ has quit [Read error: Connection reset by peer]
FooMunki has quit [Client Quit]
FooMunki has joined #ruby
ta_ has joined #ruby
<riceandbeans> I mean, foo = Struct.new ( .... )
codecop has quit [Remote host closed the connection]
<riceandbeans> bar = foo.new
<riceandbeans> baz = []
<riceandbeans> baz.push(bar)
Oclair_ has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
<norc__> riceandbeans, whether it is plausible would depend on your use case.
wrkrcoop has joined #ruby
replay has quit [Ping timeout: 240 seconds]
emilkarl has joined #ruby
<norc__> highbass, there is 2 libraries around for this. Give me a moment
safetypin has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
<norc__> highbass, first there is the obvious candidate daemons
<highbass> ok i was just reading about that one
yfeldblum has quit [Ping timeout: 250 seconds]
<norc__> highbass, there was another one much more high level, cant find it.
aberen has joined #ruby
Oclair has quit [Ping timeout: 250 seconds]
<norc__> highbass, anyway. It does not seem to be actively developed though.
jackjackdripper has joined #ruby
gregf has quit [Quit: WeeChat 1.5]
<highbass> norc__: thank you! i am looking into daemon
choke has joined #ruby
AcidCrash has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
<toretore> highbass: why do you want to daemonize?
<norc__> highbass, https://www.ruby-toolbox.com -- this can be a useful tool when you are looking for various options for different tasks by the way.
AcidCrash has joined #ruby
rkazak has joined #ruby
<norc__> Take the top rated gems with a grain of salt, use it just to explore.
gregf has joined #ruby
aberen has quit [Ping timeout: 264 seconds]
ta_ has quit [Read error: Connection reset by peer]
blackgoat has joined #ruby
ta_ has joined #ruby
roamingdog has joined #ruby
ckrailo has quit [Ping timeout: 260 seconds]
jmcc___________ has quit [Ping timeout: 276 seconds]
ChiefAlexander_ has quit [Remote host closed the connection]
jancel has quit [Remote host closed the connection]
ckrailo has joined #ruby
jmcc___________ has joined #ruby
Madplatypus has joined #ruby
Gasher has quit [Quit: Leaving]
emilkarl has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
emilkarl has joined #ruby
safetypin has quit [Quit: ZZZzzz…]
safetypin has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
coyo has joined #ruby
coyo has quit [Changing host]
coyo has joined #ruby
nankyokusei has joined #ruby
ChiefAlexander has joined #ruby
<jhass> riceandbeans: ... but I would tend to no, it creates a Class which is quite expensive, so unless it's long-lived...
whathappens has joined #ruby
JesseH2 has quit [Quit: Leaving]
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aswen has quit [Quit: WeeChat 1.5]
nankyokusei has quit [Ping timeout: 250 seconds]
ta_ has quit [Read error: Connection reset by peer]
jancel has joined #ruby
emilkarl has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
jancel has quit [Remote host closed the connection]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dcunit3d has joined #ruby
ekinmur has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
bmurt has joined #ruby
Akuma has quit [Quit: So long sukkas!]
vqrs has quit [Quit: ZNC 1.6.1 - http://znc.in]
whathappens has quit [Remote host closed the connection]
duncannz has joined #ruby
emilkarl has joined #ruby
<highbass> norc__: i want to daemonize because using app in ec2 with autoscaling
<highbass> and like a easy way for ti to be run up and down
<highbass> i use monit to monitor the processes
wrkrcoop has quit [Quit: wrkrcoop]
<highbass> i agree with that artcle
<highbass> read it earlier
Arney has joined #ruby
* Arney wishes there was a good GUI editor
<highbass> i was thinking of going that way next
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has quit [Ping timeout: 258 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mattwashere has quit [Remote host closed the connection]
gizless has joined #ruby
skade has joined #ruby
safetypin has quit [Quit: ZZZzzz…]
Rodya_ has joined #ruby
safetypin has joined #ruby
platzhirsch has quit [Quit: WeeChat 1.4]
gizmore has quit [Ping timeout: 250 seconds]
rkazak has quit [Ping timeout: 264 seconds]
joelwallis has quit [Quit: Leaving]
haraigoshi has quit [Ping timeout: 246 seconds]
kmooney has quit [Quit: leaving]
Xentil has quit [Ping timeout: 240 seconds]
swills has quit [Ping timeout: 276 seconds]
safetypin has quit [Client Quit]
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
safetypin has joined #ruby
wrkrcoop has joined #ruby
dcunit3d has quit [Ping timeout: 258 seconds]
workmad3 has joined #ruby
solars has quit [Ping timeout: 260 seconds]
JakFrist has joined #ruby
blaxter has quit [Quit: KTHXBYE]
nofxx has joined #ruby
danostrowski has joined #ruby
vqrs has joined #ruby
aswen has joined #ruby
emilkarl has quit [Read error: Connection reset by peer]
elifoster has quit [Ping timeout: 260 seconds]
jhack has joined #ruby
codeurge has joined #ruby
gizmore has joined #ruby
gizmore|2 has joined #ruby
mattwashere has joined #ruby
emilkarl has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lxsameer has quit [Ping timeout: 244 seconds]
JJM_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol has joined #ruby
gizless has quit [Ping timeout: 240 seconds]
gizless has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
gizmore has quit [Ping timeout: 264 seconds]
joonty has joined #ruby
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kawb has quit [Ping timeout: 244 seconds]
gizmore|2 has quit [Ping timeout: 246 seconds]
elifoster has joined #ruby
that2 has joined #ruby
that2 has left #ruby [#ruby]
jancel has joined #ruby
sergio_101 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SilverKey has quit [Quit: Halted.]
<pilne> i understand that a good gem can be older, and not require updates to work properly, what is a good way to tell "at a glance" if an older gem is ok though?
aberen has joined #ruby
hutch34 has joined #ruby
SilverKey has joined #ruby
<wrkrcoop> how can i stub objects without knowing the class they belong to?
kawb has joined #ruby
<jhass> just do it!
dcunit3d has joined #ruby
<jhass> .any_instance is evil anyway
hobodave has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<wrkrcoop> :my_method.stub() ?
CausaMortis has joined #ruby
aberen has quit [Ping timeout: 264 seconds]
gse has joined #ruby
gusrub has joined #ruby
<riceandbeans> jhass: let's say i wanted to do something like this
SCHAAP137 has quit [Ping timeout: 276 seconds]
Amnez777 has quit [Ping timeout: 260 seconds]
roamingdog has quit [Remote host closed the connection]
<riceandbeans> User = Struct.new(:username,:password,:homedir,:shell)
<riceandbeans> file = '/etc/passwd'
emilkarl has quit [Read error: Connection reset by peer]
<riceandbeans> File.open(file) do |line|
pawnbox has quit [Remote host closed the connection]
lxsameer has joined #ruby
<jhass> ?gist
<ruby[bot]> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
roamingdog has joined #ruby
<riceandbeans> I don't know, some magic in there, with foo = User.new
pawnbox has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
JesseH2 has joined #ruby
<riceandbeans> and having an array like users and doing users.push(foo)
<riceandbeans> and then consuming users somewhere else
rodfersou|away is now known as rodfersou
<gse> Hi all. I've noticed different behaviour between OS/X and Linux when working with 'tempfile' (which supports all the 'file' methods). If you open a 'tempfile' and, say, call out to a system editor so you can edit the file, and then rewind/read the file afterwards, on Linux this works fine. On OS/X, changes made to the file are not seen. Any ideas?
allcentury has joined #ruby
ldnunes has quit [Quit: Leaving]
gnufied has quit [Ping timeout: 250 seconds]
<jhass> riceandbeans: perfectly fine
<jhass> riceandbeans: not different from having class User; end; and doing that
<riceandbeans> jhass: what if it wasn't just a few users though, what if it was say....8000
Arney has quit [Quit: leaving]
elton has joined #ruby
<jhass> riceandbeans: Struct.new is just defining a class, it's just avoiding boilerplate, no difference to writing the class on your own
<riceandbeans> right, but making an array of new classes like that, would that eat ram and be useless?
JW1 has joined #ruby
gaussblurinc1 has quit [Ping timeout: 252 seconds]
vuoto has quit [Remote host closed the connection]
bruce_lee has quit [Remote host closed the connection]
CausaMortis has left #ruby [#ruby]
purrist has joined #ruby
<toretore> riceandbeans: only one class is creates, User, User.new creates an instance of User
JW1 has left #ruby ["Leaving"]
whathapp_ has joined #ruby
elton has quit [Ping timeout: 252 seconds]
skweek has joined #ruby
<wrkrcoop> how can i find out the class a method belongs to?
purrist has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
hutch34 has quit [Quit: WeeChat 1.5]
gizless has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
hutch34 has joined #ruby
aldodelgado has joined #ruby
nankyokusei has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
giz|work has joined #ruby
<shevy> you mean like in "class Foo; def bar; end; end" ?
<jhass> wrkrcoop: .method(:foo).owner
<wrkrcoop> jhass: thanks
skweek has quit [Ping timeout: 260 seconds]
panpainter has quit [Remote host closed the connection]
choke has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
Sammichmaker has joined #ruby
<jhass> riceandbeans: it won't take more memory than say a hash
<jhass> probably less actually
nankyokusei has quit [Ping timeout: 240 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
ur5us has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
safetypin has quit [Quit: ZZZzzz…]
jgt has joined #ruby
CJKinni has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
p337rB_ has quit [Ping timeout: 250 seconds]
Lord_of_Life has quit [Excess Flood]
kareeoleez has quit [Remote host closed the connection]
jgt has quit [Ping timeout: 250 seconds]
mattwashere has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Lord_of_Life has joined #ruby
norc__ has quit [Quit: Leaving]
norc has joined #ruby
safetypin has joined #ruby
panpainter has joined #ruby
prestorium has quit [Quit: Leaving]
giz|work|2 has joined #ruby
<wrkrcoop> i only know how to create a class double with let, could someone say how i canc reate a double without using let?
giz|work has quit [Ping timeout: 272 seconds]
lxsameer has quit [Ping timeout: 260 seconds]
solocshaw has joined #ruby
<norc> wrkrcoop, let is not about doubles
ChiefAlexander has quit [Remote host closed the connection]
<wrkrcoop> i didnt say it was
sdothum has joined #ruby
<norc> wrkrcoop, leave the let away...
panpainter has quit [Ping timeout: 252 seconds]
<norc> a = double()
elifoster has quit [Ping timeout: 264 seconds]
<norc> wrkrcoop, if you dont understand let, then you shouldn't proceed with doubles but understand the basic core features of rspec first.
aldodelgado has quit [Quit: aldodelgado]
<wrkrcoop> … i understand what let is, i said i only know how to define a class double when using let
<norc> What you just said makes no sense unless you really don't understand what let does.
<wrkrcoop> let(:this_value) {SomeClass = double()}
blackmesa has quit [Ping timeout: 250 seconds]
<norc> wrkrcoop, please follow this for a second. Can you tell me in a nutshell what let does?
<wrkrcoop> creates the value when it gets evaluated for the first time
<wrkrcoop> so it is memoized
<norc> wrkrcoop, alright. How is it memoized?
<norc> What is the value of the memoization?
<wrkrcoop> whatever u say the value is
<norc> wrkrcoop, right. So the assignment to a constant is pretty pointless there.
<norc> In fact it will lead to warnings across your spec suite when it gets reevaluated.
<norc> so let(:something) { double() }
<wrkrcoop> can u explain?
<norc> wrkrcoop, let(:f) { A = double } will do two things when it gets evaluated.
pawnbox has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
<norc> first A = double gets evaluated, which assigns the double to a constant (you dont need that)
<norc> and the result of that expression is then memoized.
pawnbox has joined #ruby
<wrkrcoop> oh so if i want to create a stub i dont actually need to say what class its on?
<norc> what?
<wrkrcoop> i thought if i wanted to stub a method i had to say it belonged to some class
<norc> wrkrcoop, please go back and read up on let/let!
tvw has quit []
<norc> To understand why you do not need them here.
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hightower3 has joined #ruby
<norc> wrkrcoop, if you understood let/let! you would know how to use a double with or without let.
<wrkrcoop> norc: do i need doubles in order to stub methods?
<norc> wrkrcoop, not necessarily.
<wrkrcoop> but is that how everyone does it?
shinnya has quit [Ping timeout: 252 seconds]
<norc> wrkrcoop, depends on the context.
<wrkrcoop> what what make it matter?
[Butch] has quit [Ping timeout: 264 seconds]
<wrkrcoop> what would*
danostrowski has joined #ruby
<norc> wrkrcoop, sometimes you just mock them using allow(o).to receive(:msg) if you just need to handle a single object.
SCHAAP137 has quit [Ping timeout: 276 seconds]
mrmortondk has quit [Quit: Textual IRC Client: www.textualapp.com]
jgt has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoul_ has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
nettoweb has joined #ruby
<norc> wrkrcoop, doubles are rather if you need to replace the entire object with.. well. a double.
<norc> So it really depends. Sometimes you just need to stub out single methods because they cannot work in an isolated test (for example a logging method)
chouhoulis has quit [Ping timeout: 250 seconds]
certainty has joined #ruby
ips|malc has joined #ruby
Sashimi has joined #ruby
<Sashimi> hello all
<havenwood> Sashimi: hi
<Sashimi> as i use a mac, and about to begin to learn to code in RoR, i was wondering if there is a way to use xcode i already have installed as an IDE to code/build RoR
<baweaver> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<baweaver> Also as an aside, you don't "build" ruby code
<havenwood> Sashimi: Yeah, you can use Xcode as a text editor. But it's a bit clunky for just a text editor.
<baweaver> Most tend to use Vim, Sublime, or Emacs
<norc> Sashimi, generally though since this is not necessarily rails specific - you can use it for Rails but you really do not get many benefits.
<lupine> or gedit ^^
<havenwood> Sashimi: Maybe give Atom a try if vim/emacs isn't something you want to do right now: https://atom.io
<norc> Sashimi, but! If XCode is your favourite IDE - then by all means.
<norc> and let's not end up in an editor/IDE war please. :D
<havenwood> Sashimi: You can certainly write your Ruby code in Xcode if you prefer!
<Sashimi> havenwood ▸ yeah, is atom same kind of stuff as sublime ?
<havenwood> Sashimi: Yes.
certainty has quit [Ping timeout: 272 seconds]
stevenx_ has joined #ruby
aberen has joined #ruby
SCHAAP137 has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
edwinvdgraaf has joined #ruby
<Sashimi> okay thanks everyone :)
<Sashimi> might as well keep of running a full fledged nuclear plant if it's only to edit a text file
hightower3 has quit [Ping timeout: 240 seconds]
<norc> Sashimi, just remember the golden rule about editors.
<Sashimi> i suppose both atom and sublime must have specific plugins to help coding ruby / RoR
<norc> Sashimi, pick one you like... but do NOT talk about it.
whathappens has joined #ruby
<norc> It's like religion..
stevenx has quit [Ping timeout: 246 seconds]
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
giz|work|2 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
SilverKey has quit [Quit: Halted.]
<Sashimi> norc ▸ oh yeah, made the mistake years ago on a #debian channel waking up the vim and emacs ghosts haha
<havenwood> echo "puts 'the best editor'" > ship_it.rb
ips|malc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whathapp_ has quit [Ping timeout: 240 seconds]
aberen has quit [Ping timeout: 244 seconds]
<baweaver> havenwood: nil?
freerobby has quit [Quit: Leaving.]
<havenwood> write by hand, run it in your mind, ship it by hand
<norc> Obligatory mention: https://xkcd.com/378/
SCHAAP137 has quit [Quit: Leaving]
Brklyn has joined #ruby
spiette has joined #ruby
<stevenx_> \q
stevenx_ has quit [Quit: leaving]
<Brklyn> Hi... I've got a quick Rake question... hopefully somone can help me figure out what's going on. I have a Rakefile with a few tasks, some of these tasks receive an argument (not sure if this is part of the issue). So the deal is, I'm invoking a task once, but it's actually getting executed twice.... Any hints?
<toretore> ?code Brklyn
<ruby[bot]> Brklyn: We can't help you without your code, please post it to https://gist.github.com
elifoster has joined #ruby
elifoster has quit [Client Quit]
panpainter has joined #ruby
theRealAlexz has quit [Quit: No Ping reply in 180 seconds.]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
theRealAlexz has joined #ruby
rshackleford has left #ruby ["WeeChat 1.5"]
tatsuo has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
polishdub has quit [Quit: Leaving]
jancel has quit [Remote host closed the connection]
saneax_AFK is now known as saneax
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jancel has joined #ruby
ceej_ has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
choke has joined #ruby
ceej has joined #ruby
Guest63 has joined #ruby
<jhass> Brklyn: also --trace
ncthom91 has joined #ruby
snath has quit [Ping timeout: 250 seconds]
kirun has quit [Quit: Client exiting]
aswen has quit [Quit: WeeChat 1.5]
axsuul has joined #ruby
eljimmy has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 252 seconds]
<wrkrcoop> im calling a client inside of my method
<wrkrcoop> how can i stub out that class?
<wrkrcoop> i tried Httparty = double()
<wrkrcoop> but that didnt work
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
tubuliferous_ has joined #ruby
cdg has quit [Remote host closed the connection]
david__ has joined #ruby
david__ has left #ruby [#ruby]
vF3hNGxc47h8 has quit [Ping timeout: 240 seconds]
bigkevmcd has joined #ruby
bigkevmcd has quit [Remote host closed the connection]
saneax is now known as saneax_AFK
rodfersou has quit [Quit: leaving]
pawnbox has quit [Read error: Connection timed out]
palms has quit [Ping timeout: 252 seconds]
aegis3121 has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
blackmesa has joined #ruby
nb_bez___ has joined #ruby
ruby-lang342 has joined #ruby
<ruby-lang342> Hello. I need a little help with nimage please.
axsuul has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leitz has joined #ruby
dunpeal has quit [Quit: leaving]
blackmesa has quit [Ping timeout: 258 seconds]
<havenwood> ruby-lang342: Wrong channel? Did you mean #nim or is nimage something else?
lightt has quit [Read error: Connection reset by peer]
<leitz> Basic OOP question. If an object has an attribute that's a hash, where do you put the method that displays the hash contents? In the object itself, or in the caller? The former means the object must know how it is to be called. The latter means the caller must know the internals of the object.
<ruby-lang342> havenwood: nimage is a ruby library related to narray
<toretore> leitz: you must define a clear interface for the object, where a contract exists for others to interact with it, including what data is returned from a method
<toretore> leitz: in general, prefer to return data instead of defining behavior
<ruby-lang342> I am new to ruby so I hope my terminology is right when I call it a "library". It is invoked via a "require" statement.
<toretore> leitz: meaning, the second option
<toretore> ruby-lang342: where did you find it?
blackmesa has joined #ruby
<havenwood> ruby-lang342: Is it the minimage gem but missing the first two letters?
<leitz> toretore, so the object and the caller agree that if the caller does X, it gets a hash back"
<toretore> leitz: exactly
chopin_ has quit [Remote host closed the connection]
<leitz> That way the caller can digest or display the hash as it sees fit.
<leitz> Makes sense.
<leitz> Thanks!
<ruby-lang342> I found it when exploring the narray gem .. let me get a link...
<toretore> leitz: this then means that the first object can't change the structure of the hash
chopin has joined #ruby
<toretore> leitz: but this is not a problem with proper encapsulation
rkazak has joined #ruby
rkazak has quit [Client Quit]
<ruby-lang342> toretore & havenwood ... here is a link that started me looking for more information on it: https://masa16.github.io/narray/demo/smooth.en.html
gnufied has joined #ruby
<ruby-lang342> and actually, here is the demo I am trying to run: https://masa16.github.io/narray/demo/mandel.en.html
SilverKey has joined #ruby
<ruby-lang342> I successfully installed the narray gem but the system balks at the require 'nimage' statement
tildes has joined #ruby
<ruby-lang342> eep --- sorry folks, I gotta run and take care of something for my sister -- I'll be back later
<toretore> it looks like it's just to open up a window to show the image; you can probably render it to a file and then open it up with a different program
mistermocha has quit [Remote host closed the connection]
SilverKey has quit [Client Quit]
<ruby-lang342> toretore -- gotta run but I dont think so ... see this https://docs.omniref.com/ruby/gems/narray/0.5.9.4/symbols/NImage
<ruby-lang342> BBL - thanks
roamingdog has quit [Remote host closed the connection]
<toretore> "A Ruby Extension Library for displaying Images on X11
<toretore> "
chouhoul_ has quit [Remote host closed the connection]
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lightt has joined #ruby
spider-mario has quit [Remote host closed the connection]
B1n4r10 has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<Brklyn> jhass: thanks for the advice... Yeah I was checking with trace. I was actually requiring a file twice, by another rakefile. So apparently, both tasks with the matching name were getting called. Glad I finally sorted it out.
<Brklyn> Thanks a lot eeryone
kawb has quit [Quit: Leaving...]
saneax_AFK is now known as saneax
aberen has joined #ruby
jgt1 has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
cschneid has quit [Remote host closed the connection]
danostrowski has joined #ruby
aberen has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
jgt has quit [Ping timeout: 276 seconds]
last_staff has quit [Quit: last_staff]
Brklyn has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
elifoster has joined #ruby
ramfjord has joined #ruby
skade has joined #ruby
qasaur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mattwashere has joined #ruby
elton has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Sashimi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Vile` has joined #ruby
Azure|dc has joined #ruby
mistermocha has joined #ruby
Azure has quit [Ping timeout: 250 seconds]
Dolby_ has joined #ruby
hutch34 has quit [Quit: WeeChat 1.5]
mattwashere has quit [Remote host closed the connection]
<leitz> Ups and downs. Down is when you don't know if your lack of skill with Ruby or lack of skill with rspec is causing the issue. Up is when it finally works. :)
hutch34 has joined #ruby
qasaur has joined #ruby
elton has quit [Ping timeout: 246 seconds]
rigel_ has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mattwashere has joined #ruby
choke has joined #ruby
JesseH2 has quit [Remote host closed the connection]
Arsin has quit [Ping timeout: 252 seconds]
yqt has quit [Ping timeout: 276 seconds]
mattwashere has quit [Remote host closed the connection]
ncthom91 has quit [Quit: Textual IRC Client: www.textualapp.com]
nankyokusei has joined #ruby
tildes_ has joined #ruby
Sashimi has joined #ruby
tildes has quit [Remote host closed the connection]
<ruby-lang342> toretore: / havenwood: I'm back, didn't take as long as I thought it would this time. Soooo, as I was saying...
skade has quit [Quit: Computer has gone to sleep.]
hightower3 has joined #ruby
<ruby-lang342> I am trying to run the mandelbrot demo and it does not recognize the require 'nimage' and apparently gem does not recognize it either.
Sashimi has quit [Client Quit]
nankyokusei has quit [Ping timeout: 272 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
dnewkerk has joined #ruby
<ruby-lang342> that is to say gem finds no repository called "nimage"
Sashimi has joined #ruby
mattwashere has joined #ruby
rizenine has joined #ruby
ocbtec has quit [Quit: leaving]
<ruby-lang342> I guess they left for awhile ... is anybody here familiar with the narray and nimage libraries?
B1n4r10 has quit [Ping timeout: 264 seconds]
biberu has quit []
jhack has quit [Quit: jhack]
RobertBirnie has joined #ruby
Sashimi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
palms has joined #ruby
aeterne has joined #ruby
<shevy> there is no such gem: https://rubygems.org/gems/nimage
<toretore> ruby-lang342: "A Ruby Extension Library for displaying Images on X11"
Sashimi has joined #ruby
<toretore> it is for taking the data and displaying it in a window
JJM has joined #ruby
maloik has quit [Remote host closed the connection]
JJM is now known as Guest64044
maloik has joined #ruby
<ruby-lang342> Hi shevy. I'm new to ruby. If there is no such gem then where do I get it in order to use it per the require 'nimage' in this demo: https://masa16.github.io/narray/demo/mandel.en.html
tildes has joined #ruby
<ruby-lang342> toretore -- yeah, I see that, it also has a few methods relating to color and such. But where do I get it? / how do I install it?
<toretore> ruby-lang342: what is your operating system?
palms has quit [Ping timeout: 252 seconds]
<shevy> ruby-lang342 he did not tell people how to get it https://masa16.github.io/narray/
<shevy> a changelog refers to it as nimage/nimage.c so somewhere there must be some C file
<ruby-lang342> toretore I am on a Win8 x64 system using the Bitnami RubyStack (see https://bitnami.com/stack/ruby/README.txt) for Ruby 2.2.5
swills has joined #ruby
<toretore> so it wouldn't even work
<toretore> you don't have x11
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ruby-lang342> toretore -- why not? Bitnami is a virtual linux system.
Arsin has joined #ruby
moeabdol has joined #ruby
tildes_ has quit [Ping timeout: 264 seconds]
koooge has joined #ruby
<toretore> do you know that this vm works with x11?
Dolby_ has quit [Ping timeout: 240 seconds]
<ruby-lang342> toretore -- good question, I'll have to look into that ... brb
ta_ has quit [Read error: Connection reset by peer]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skweek has joined #ruby
<toretore> i don't know how much pain you're willing to go through to get this to work, but it's probably going to be a lot
highbass has quit [Remote host closed the connection]
ta_ has joined #ruby
jancel has quit [Remote host closed the connection]
freerobby has joined #ruby
<ruby-lang342> toretore -- sigh, looks like you are right, it will be a pain. I'd have to install a opensuse vm and zypper in the x11 stuff, then install ruby -- not worth it. My chief interest is in narray and that installed just fine.
<ruby-lang342> shevy, yeah -- weird that it is documented by API but not explained for install. oh well. Thanks for helping.
nyuszika7h has quit [Ping timeout: 264 seconds]
lightt has quit [Remote host closed the connection]
<ruby-lang342> shevy: AHA! here is that C file you mentioned (not that I can use it without x11) -- just FYI : https://docs.omniref.com/ruby/gems/narray/0.5.9.4/files/src/nimage/lib/nimage.rb
Dolby_ has joined #ruby
<ruby-lang342> also it looks like maybe it has not been updated since ruby 1.9.x
lightt has joined #ruby
whathappens has quit [Quit: Leaving...]
mistermocha has quit [Remote host closed the connection]
<shevy> yeah it looks really bad
snguyen has joined #ruby
<ruby-lang342> ah well -- it looked like it would have been a nice way to interact with narray but so be it, I'll have to write my own display code for the system I have.
ekinmur has joined #ruby
ekinmur has quit [Client Quit]