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?
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]
<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?
<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]
<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
<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>
<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 …
<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?
<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
<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?
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…]
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…]
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.]
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?
<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]
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…]
<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
<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]
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]
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>
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.