shmuli has quit [Remote host closed the connection]
d5sx43 has joined #ruby
aupadhye has joined #ruby
d5sx43 has quit [Client Quit]
SteenJobs has joined #ruby
SteenJobs has quit [Client Quit]
devbug has joined #ruby
djbkd has quit [Quit: My people need me...]
DoubleMalt has joined #ruby
Immune has quit [Ping timeout: 252 seconds]
duderonomy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NetSage has joined #ruby
bob434 has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
bob434 has quit [Max SendQ exceeded]
symm- has quit [Quit: Leaving...]
devbug has quit [Quit: ZZZzzz…]
bob434 has joined #ruby
arnonhongklay has joined #ruby
Limix has joined #ruby
qubit77 has joined #ruby
arescorpio has joined #ruby
workmad3 has joined #ruby
ruby_ has quit [Remote host closed the connection]
ruby_ has joined #ruby
toretore has quit [Ping timeout: 258 seconds]
lightheaded has joined #ruby
flopsec has joined #ruby
workmad3 has quit [Ping timeout: 258 seconds]
nando293921 has quit [Ping timeout: 265 seconds]
jmignault has joined #ruby
lightheaded has quit [Ping timeout: 258 seconds]
davedev24 has quit []
zacts has joined #ruby
Rodya_ has quit [Remote host closed the connection]
davedev24 has joined #ruby
Rodya_ has joined #ruby
alxgsv has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
l4v2 has joined #ruby
BackEndCoder has quit [Excess Flood]
BackEndCoder has joined #ruby
jhack has joined #ruby
mim1k_ has joined #ruby
davedev24 has quit []
aupadhye has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 255 seconds]
aupadhye has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
arnonhon_ has joined #ruby
arnonhongklay has quit [Read error: Connection reset by peer]
bob434 has joined #ruby
jphase has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
jenrzzz_ has quit [Ping timeout: 264 seconds]
quoboo has quit [Ping timeout: 240 seconds]
code has left #ruby [#ruby]
Kyhz has quit [Ping timeout: 244 seconds]
Quobo has joined #ruby
Quobo is now known as Guest30874
chimkan has quit [Quit: chimkan]
nankyokusei has joined #ruby
Limix has quit [Quit: Limix]
jgpawletko has joined #ruby
CryptoManiac has quit [Ping timeout: 255 seconds]
jgpawletko has quit [Client Quit]
nankyokusei has quit [Ping timeout: 265 seconds]
zel has joined #ruby
zel is now known as Guest50945
jmignault has quit [Ping timeout: 264 seconds]
jtdoncas has quit [Ping timeout: 264 seconds]
ruby_ has quit [Remote host closed the connection]
davedev24 has joined #ruby
astrobun_ has joined #ruby
tectonic has joined #ruby
rodfersou has joined #ruby
astrobun_ has quit [Remote host closed the connection]
rsampaio_ has joined #ruby
pawnbox has joined #ruby
ruby_ has joined #ruby
jonadab has quit [Read error: No route to host]
dminuoso has joined #ruby
pawnbox has quit [Ping timeout: 265 seconds]
craigp has quit [Ping timeout: 244 seconds]
nando293921 has joined #ruby
jonadab has joined #ruby
shinnya has joined #ruby
domgetter has joined #ruby
ta has joined #ruby
dminuoso has quit [Ping timeout: 250 seconds]
davedev24 has quit []
Rodya_ has quit [Remote host closed the connection]
Vivekananda has quit [Quit: Leaving]
mtkd has quit [Ping timeout: 250 seconds]
lightheaded has joined #ruby
Rodya_ has joined #ruby
mtkd has joined #ruby
ta has quit [Ping timeout: 240 seconds]
zeroDi has quit [Quit: WeeChat 1.5]
arnonhon_ has quit [Read error: Connection reset by peer]
arnonhongklay has joined #ruby
nando293921 has quit [Quit: Lost terminal]
ur5us has joined #ruby
spudowiar has quit [Quit: zzzzzzzzzzzzzzz]
lightheaded has quit [Ping timeout: 258 seconds]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
CryptoManiac has joined #ruby
CryptoManiac has quit [Changing host]
CryptoManiac has joined #ruby
ruby_ has quit [Remote host closed the connection]
ruby_ has joined #ruby
jackjackdripper has joined #ruby
CryptoManiac has quit [Ping timeout: 240 seconds]
ruby_ has quit [Remote host closed the connection]
ruby_ has joined #ruby
tdy has joined #ruby
Limix has joined #ruby
A5101 has joined #ruby
pawnbox has joined #ruby
ruby_ has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
ruby_ has joined #ruby
rodfersou has quit [Quit: leaving]
Niham has joined #ruby
Niham has quit [Client Quit]
shinnya has quit [Ping timeout: 252 seconds]
pawnbox has quit [Ping timeout: 244 seconds]
JeanCarloMachado has quit [Ping timeout: 252 seconds]
Immune has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby_ has quit [Ping timeout: 244 seconds]
cdg has joined #ruby
workmad3 has joined #ruby
GodFather has quit [Ping timeout: 258 seconds]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
raMpin has joined #ruby
duderonomy has joined #ruby
vF3hNGxc47h8 has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
SteenJobs has joined #ruby
SteenJobs has quit [Client Quit]
SteenJobs has joined #ruby
arnonhongklay has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
dminuoso has joined #ruby
Vingador has joined #ruby
yfeldblum has joined #ruby
Vingador has quit [Read error: Connection reset by peer]
bruce_lee has quit [Remote host closed the connection]
BackEndCoder has quit [Excess Flood]
BackEndCoder has joined #ruby
Vingador has joined #ruby
arnonhongklay has joined #ruby
jhack has quit [Ping timeout: 255 seconds]
jhack has joined #ruby
dminuoso has quit [Ping timeout: 252 seconds]
pokalyis has joined #ruby
nando293921 has joined #ruby
giz|work has quit [Ping timeout: 252 seconds]
lightheaded has joined #ruby
tmtwd has joined #ruby
braincrash has quit [Quit: bye bye]
Sashimi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arnonhongklay has quit [Ping timeout: 244 seconds]
lightheaded has quit [Ping timeout: 258 seconds]
pawnbox has joined #ruby
gix has quit [Ping timeout: 258 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
pawnbox has quit [Ping timeout: 244 seconds]
gix has joined #ruby
arnonhongklay has joined #ruby
nettoweb has joined #ruby
braincrash has joined #ruby
braincrash is now known as braincras
SteenJobs has quit [Quit: SteenJobs]
Vingador has quit [Read error: Connection reset by peer]
arnonhongklay has quit [Read error: Connection reset by peer]
Vingador has joined #ruby
arnonhongklay has joined #ruby
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
nettoweb has joined #ruby
nettoweb has quit [Client Quit]
eizua has joined #ruby
nankyokusei has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
CryptoManiac has joined #ruby
CryptoManiac has quit [Changing host]
CryptoManiac has joined #ruby
lele has quit [Ping timeout: 260 seconds]
Big7i has joined #ruby
CryptoManiac has quit [Disconnected by services]
charliesome has joined #ruby
SteenJobs has joined #ruby
ta has joined #ruby
lele has joined #ruby
jmignault has joined #ruby
charliesome has quit [Client Quit]
arnonhongklay has quit [Read error: Connection reset by peer]
ruby_ has joined #ruby
SteenJobs has quit [Client Quit]
charliesome has joined #ruby
ta has quit [Ping timeout: 244 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arnonhongklay has joined #ruby
jmignault has quit [Ping timeout: 240 seconds]
pokalyis has joined #ruby
hk238 has joined #ruby
duncannz has joined #ruby
dminuoso has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
robertjpayne has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
pokalyis has joined #ruby
dminuoso has quit [Ping timeout: 260 seconds]
Immune has quit [Ping timeout: 252 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lightheaded has joined #ruby
cdg has quit [Remote host closed the connection]
pokalyis has joined #ruby
cdg has joined #ruby
lightheaded has quit [Ping timeout: 258 seconds]
djbkd has joined #ruby
Sammichmaker has quit [Read error: Connection reset by peer]
cdg_ has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dviola has quit [Quit: WeeChat 1.5]
johnny56_ has quit [Ping timeout: 264 seconds]
pokalyis has joined #ruby
johnny56_ has joined #ruby
cdg has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
nanoz has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pokalyis has joined #ruby
arnonhongklay has quit [Read error: Connection reset by peer]
arnonhongklay has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
A5101 has quit [Ping timeout: 250 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cydrobolt has joined #ruby
<cydrobolt>
hey
<cydrobolt>
i'm getting this error with rvm and ruby
<cydrobolt>
Ignoring redcarpet-3.3.4 because its extensions are not built. Try: gem pristine redcarpet --version 3.3.4
<cydrobolt>
I ran the pristine command but no luck, still shows up each time I open a terminal (rvm init)
pokalyis has joined #ruby
<cydrobolt>
I'm running rvm 1.26.11 and ruby 2.3.1p112
<cydrobolt>
is there a way I could mute the warning?
ruby_ has quit []
Vingador has quit [Remote host closed the connection]
ruby_ has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
statelesscode has quit [Ping timeout: 265 seconds]
pokalyis has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skweek has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
decomposite has quit [Ping timeout: 252 seconds]
csaunders has quit [Ping timeout: 276 seconds]
j0bk has quit [Ping timeout: 244 seconds]
djbkd has quit [Remote host closed the connection]
charliesome has quit [Client Quit]
Robtop__ has joined #ruby
djbkd has joined #ruby
flacc has joined #ruby
ghostlight has quit [Ping timeout: 250 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<domgetter>
cydrobolt are you installing through bundler?
ses1984 has quit [Ping timeout: 244 seconds]
_dev has quit [Ping timeout: 255 seconds]
j0bk has joined #ruby
tectonic has quit []
csaunders has joined #ruby
_dev has joined #ruby
decomposite has joined #ruby
ghostlight has joined #ruby
ses1984 has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
ruby_ has quit [Remote host closed the connection]
Limix has quit [Quit: Limix]
bob434 has quit [Quit: This computer has gone to sleep]
charliesome has quit [Client Quit]
SteenJobs has joined #ruby
pokalyis has joined #ruby
charliesome has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
jphase_ has joined #ruby
charliesome has quit [Client Quit]
pawnbox has joined #ruby
yfeldblum has quit [Remote host closed the connection]
charliesome has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BlkDynmt has quit [Quit: BlkDynmt]
jphase has quit [Ping timeout: 244 seconds]
pokalyis has joined #ruby
arnonhongklay has quit [Ping timeout: 244 seconds]
cdg_ has quit [Remote host closed the connection]
cdg has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
whiteline has quit [Remote host closed the connection]
raMpin has quit [Remote host closed the connection]
arnonhongklay has joined #ruby
CloCkWeRX has joined #ruby
ruby_ has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jphase_ has quit [Remote host closed the connection]
jphase has joined #ruby
vuoto has joined #ruby
dminuoso has joined #ruby
jphase_ has joined #ruby
jphase has quit [Ping timeout: 250 seconds]
dminuoso has quit [Ping timeout: 258 seconds]
pokalyis has joined #ruby
vuoto has quit [Remote host closed the connection]
Guest30874 is now known as quoboo
quoboo is now known as Guest24039
Guest24039 has quit [Changing host]
Guest24039 has joined #ruby
lightheaded has joined #ruby
Guest24039 is now known as quoboo
Big7i has quit [Remote host closed the connection]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sumobob has quit [Ping timeout: 250 seconds]
lightheaded has quit [Ping timeout: 258 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agent_white has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
robertjpayne has quit []
ruby_ has quit [Remote host closed the connection]
flacc has quit [Read error: Connection reset by peer]
pokalyis has joined #ruby
pawnbox has joined #ruby
pokalyis has quit [Read error: Connection reset by peer]
pokalyis has joined #ruby
Vivekananda has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackjackdripper1 has joined #ruby
tmtwd has quit [Ping timeout: 265 seconds]
flacc has joined #ruby
pokalyis has quit [Client Quit]
arnonhongklay has quit [Read error: Connection reset by peer]
jackjackdripper has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
pokalyis has joined #ruby
arnonhongklay has joined #ruby
<nofxx>
I'm sure there's a jedi way to do this... got a big array that goes to a chart, so is that common: [[Date.UTC(10,10,2015), 10], ... where 10 illustrate the 'count' of things for that day... how to map this to sum what's old? so suppose got 3 days with 10, 10, 10 maps to 10, 20, 30...
cdg has quit [Remote host closed the connection]
ruby_ has joined #ruby
cdg has joined #ruby
charliesome has quit [Client Quit]
charliesome has joined #ruby
ledestin has joined #ruby
<nofxx>
ah... an acc = 0 line is not so ugly anyways
jackjackdripper has joined #ruby
jackjackdripper1 has quit [Ping timeout: 250 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pokalyis has joined #ruby
charliesome has quit [Client Quit]
arescorpio has quit [Quit: Leaving.]
solocshaw has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby_ has quit [Remote host closed the connection]
pokalyis has joined #ruby
jaguarmagenta has joined #ruby
ta has joined #ruby
dminuoso has joined #ruby
arnonhongklay has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
nankyokusei has joined #ruby
charliesome has quit [Client Quit]
cdg_ has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
ta has quit [Ping timeout: 244 seconds]
arnonhongklay has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
charliesome has quit [Client Quit]
pokalyis has joined #ruby
s2013 has joined #ruby
cdg_ has quit [Remote host closed the connection]
A5101 has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
cdg has quit [Ping timeout: 244 seconds]
ELLIOTTCABLE is now known as ec
pokalyis has quit [Client Quit]
pokalyis has joined #ruby
arnonhon_ has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arnonhongklay has quit [Ping timeout: 250 seconds]
pokalyis has joined #ruby
cubix1 has joined #ruby
pawnbox has joined #ruby
johnny56_ has quit [Ping timeout: 264 seconds]
vuoto has joined #ruby
johnny56_ has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solocshaw has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
pokalyis has joined #ruby
pawnbox has quit [Remote host closed the connection]
ruby_ has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
arnonhon_ has quit [Read error: Connection reset by peer]
arnonhongklay has joined #ruby
miqlas-H has joined #ruby
LoneHerm_ has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
k3rn31 has joined #ruby
pokalyis has joined #ruby
lightheaded has joined #ruby
Satyajit has joined #ruby
k3rn31 has quit [Ping timeout: 250 seconds]
LoneHerm_ has quit [Remote host closed the connection]
pawnbox has joined #ruby
lightheaded has quit [Ping timeout: 258 seconds]
ruby_ has quit [Remote host closed the connection]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby_ has joined #ruby
vuoto has quit [Quit: Lost terminal]
pokalyis has joined #ruby
flacc has quit [Remote host closed the connection]
flacc has joined #ruby
gizmore has joined #ruby
ruby_ has quit [Remote host closed the connection]
amclain has quit [Quit: Leaving]
ruby_ has joined #ruby
ruby_ has quit [Remote host closed the connection]
cubix1 has quit [Quit: Leaving.]
yfeldblu_ has joined #ruby
flacc has quit [Ping timeout: 250 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gingray has joined #ruby
pokalyis has joined #ruby
yfeldblu_ has quit [Client Quit]
charliesome has joined #ruby
LoneHerm_ has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
sand-bird has joined #ruby
Silthias has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
Silthias1 has quit [Ping timeout: 255 seconds]
yfeldblu_ has joined #ruby
pokalyis has joined #ruby
charliesome has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Remote host closed the connection]
eGGshke has joined #ruby
agent_white has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
nando293921 has quit [Quit: leaving]
Spami has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nando293921 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
charliesome has joined #ruby
mtkd has quit [Ping timeout: 244 seconds]
pokalyis has joined #ruby
mtkd has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pokalyis has joined #ruby
nando293921 has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lalalaaa>
In the past I've never had to add any gem paths to my zshrc in order to use them after install. Why do I now all of a sudden have to? Have you guys always done this?
charliesome has joined #ruby
l4v2 has quit [Quit: l4v2]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pokalyis has joined #ruby
vuoto has joined #ruby
claudiuinberlin has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has joined #ruby
rippa has joined #ruby
arnonhongklay has quit [Read error: Connection reset by peer]
arnonhongklay has joined #ruby
dionysus69 has joined #ruby
ur5us has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dminuoso>
NetSage: I find rbenv too intrusive for production use.
minimalism has quit [Quit: minimalism]
<dminuoso>
NetSage: Though come to think of it, I could live with forcing all our production servers running ruby code to run on Ubuntu.
dbck has joined #ruby
pandaant has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
elastix has joined #ruby
maloik has quit [Remote host closed the connection]
arnonhon_ has quit [Read error: Connection reset by peer]
arnonhongklay has joined #ruby
maloik has joined #ruby
orangey has quit [Ping timeout: 276 seconds]
quazimodo has joined #ruby
claudiuinberlin has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
ereslibre_laptop is now known as ereslibre
gigetoo has joined #ruby
minimalism has joined #ruby
pawnbox has quit [Remote host closed the connection]
tvw has joined #ruby
Jackneill has joined #ruby
BackEndCoder has quit [Excess Flood]
BackEndCoder has joined #ruby
yfeldblum has joined #ruby
elastix has quit [Quit: elastix]
BlkDynmt has joined #ruby
elastix has joined #ruby
pawnbox has joined #ruby
devbug has quit [Quit: ZZZzzz…]
nofxx has quit [Ping timeout: 260 seconds]
conta has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
BlkDynmt has quit [Ping timeout: 255 seconds]
futilegames has joined #ruby
ur5us has joined #ruby
arnonhongklay has quit [Read error: Connection reset by peer]
ta has joined #ruby
futilegames has quit [Client Quit]
yfeldblum has quit [Ping timeout: 250 seconds]
ur5us has quit [Read error: No route to host]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
ur5us has joined #ruby
sand-bird has quit [Remote host closed the connection]
ta has quit [Ping timeout: 250 seconds]
jaguarmagenta has joined #ruby
eGGshke has quit [Quit: Leaving...]
James123 has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
arnonhongklay has joined #ruby
<James123>
I want to parse an xml with ruby (nokogiri). In this xml, to indicate that foo is true/false is it better (for ease of use) to use <foo>true</foo> (<foo>false</foo>) or use <foo></foo> for true and no tags at all for false? Thank you!
CloCkWeRX has quit [Quit: Leaving.]
jaguarmagenta has quit [Ping timeout: 244 seconds]
<dminuoso>
James123: depends on the context. generally Id say put in 0/1
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
vuoto has quit [Remote host closed the connection]
DoubleMalt has quit [Ping timeout: 276 seconds]
conta has quit [Ping timeout: 264 seconds]
blackwind_123 has quit [Ping timeout: 276 seconds]
arnonhongklay has quit [Read error: Connection reset by peer]
arnonhongklay has joined #ruby
NNIIGGEERR has joined #ruby
NNIIGGEERR has left #ruby [#ruby]
nankyokusei has joined #ruby
minimalism has quit [Quit: minimalism]
giz|work has joined #ruby
ur5us has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 244 seconds]
Ishido has joined #ruby
quazimodo has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
NNIIGGEERR has joined #ruby
pokalyis has joined #ruby
quazimodo has joined #ruby
minimalism has joined #ruby
BlkDynmt has joined #ruby
tvw has quit [Ping timeout: 264 seconds]
arnonhongklay has quit [Ping timeout: 258 seconds]
tvw has joined #ruby
ur5us has joined #ruby
gigetoo has quit [Ping timeout: 250 seconds]
futilegames has joined #ruby
arnonhongklay has joined #ruby
giz|work has quit [Ping timeout: 255 seconds]
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
vuoto has joined #ruby
conta has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
cdg has joined #ruby
AlphaAtom has joined #ruby
zeroDi has joined #ruby
joes has quit [Ping timeout: 250 seconds]
mikecmpbll has joined #ruby
BlkDynmt has quit [Quit: BlkDynmt]
joes has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
cdg has quit [Ping timeout: 244 seconds]
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
rsampaio has joined #ruby
edwinvdgraaf has joined #ruby
Hyuk has joined #ruby
futilegames has quit [Quit: futilegames]
AlphaAtom has joined #ruby
AlphaAtom has quit [Client Quit]
elastix has quit [Quit: elastix]
rsampaio has quit [Ping timeout: 264 seconds]
arnonhon_ has joined #ruby
hk238 has joined #ruby
arnonhongklay has quit [Read error: Connection reset by peer]
jgt2 has quit [Ping timeout: 250 seconds]
hk238 has quit [Client Quit]
futilegames has joined #ruby
toretore has joined #ruby
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hk238 has joined #ruby
WSO has joined #ruby
arnonhon_ has quit [Remote host closed the connection]
zipace has joined #ruby
arnonhongklay has joined #ruby
Alostar has joined #ruby
arnonhongklay has quit [Read error: Connection reset by peer]
arnonhongklay has joined #ruby
NNIIGGEERR has quit [Remote host closed the connection]
nclbr has joined #ruby
pandaant has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
ta has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
Littlemyu has joined #ruby
kirun has joined #ruby
ur5us has quit [Remote host closed the connection]
ta has quit [Ping timeout: 265 seconds]
quazimodo has quit [Ping timeout: 255 seconds]
govg has joined #ruby
ec0 has quit [Ping timeout: 250 seconds]
hanmac has quit [Ping timeout: 255 seconds]
spectrum has joined #ruby
opus has joined #ruby
omphe has joined #ruby
alfiemax has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 250 seconds]
govg has quit [Ping timeout: 244 seconds]
jgt2 has joined #ruby
<Littlemyu>
Hello! Looking for help on Tcl/Tk for latest Ruby release 2.3.1: can't find any up to date documentation, Tk reference from ruby-doc is basically just a list of classes/methods without description
<Littlemyu>
or maybe someone can recommend a better GUI library for Ruby 2.3.1
<Littlemyu>
qtbindings sadly has no support for latest ruby
vuoto has quit [Remote host closed the connection]
gigetoo has joined #ruby
minimalism has quit [Quit: minimalism]
govg has joined #ruby
jaguarmagenta has joined #ruby
johnmilton has quit [Ping timeout: 240 seconds]
DaniG2k has quit [Quit: leaving]
nankyokusei has joined #ruby
spudowiar has joined #ruby
jaguarmagenta has quit [Ping timeout: 258 seconds]
arup_r has joined #ruby
omphe has joined #ruby
nankyokusei has quit [Ping timeout: 264 seconds]
<arup_r>
Hi, I am looking for an idea. How can I add a custom method ( def display; "#{ self.country} is Big"; end) to OS object australia = OpenStruct.new(:country => "Australia", :population => 20_000_000)
<arup_r>
this is an example.
claudiuinberlin has quit [Remote host closed the connection]
<arup_r>
I know this is possible with Struct, but no idea how to do it with OpenStruct.
<Papierkorb>
arup_r: Don't use a OpenStruct in that case
<arup_r>
ok... I will use Struct
<arup_r>
make sense why should I pick Struct in my example... :)
<Papierkorb>
Note that Struct#initialize takes an optional block
<arup_r>
^ I know. But was looking for if any way the same can be done with OS.. seems answer is no.
<Papierkorb>
well, sure you can abuse its singleton_class
arnonhon_ has joined #ruby
<Papierkorb>
but doesn't sound like a good idea to do so
<arup_r>
hmm
arnonhongklay has quit [Read error: Connection reset by peer]
<toretore>
def australia.display
<toretore>
if you want to create a class, create a class
JeanCarloMachado has quit [Ping timeout: 265 seconds]
<shmoon_>
it says "First, when the module keyword is processed, the interpreter creates a new entry in the constant table of the class object stored in the Object constant. Said entry associates the name "Colors" to a newly created module object."
<shmoon_>
is it definitely a ruby thing ? cuz when i google "ruby constant table" i dont find anything
<shmoon_>
does it mean ruby has something like Object[class constant].class_object[an object].constant_table[a hash][:Colors].module_object[:RED].value = '0xff0000' ?
zacts has joined #ruby
<Mon_Ouie>
Maybe people don't call it a constant table that often, but modules definitely store constants and methods
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JeanCarloMachado has quit [Ping timeout: 264 seconds]
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JeanCarloMachado has joined #ruby
<Papierkorb>
shmoon_: on a related note, you can infact query an objects constants.
solocshaw has quit [Ping timeout: 250 seconds]
kang00 has joined #ruby
matti has quit [Ping timeout: 244 seconds]
craigp has joined #ruby
<Papierkorb>
>> self.class.constants.map{|name| [ name, self.class.const_get(name) ]}.to_h # Try this in irb/pry too shmoon_
<ruby[bot]>
Papierkorb: # => {:Object=>Object, :Module=>Module, :Class=>Class, :BasicObject=>BasicObject, :Kernel=>Kernel, :NilCl ...check link for more (https://eval.in/634630)
jaguarmagenta has quit [Remote host closed the connection]
matti has joined #ruby
<kang00>
Any python user?
Hyuk has joined #ruby
<Mon_Ouie>
You might have more luck in #python
<dminuoso>
shmoon_: The phrase "const table" is something that I only see inside the ruby source code. The const table you mean for example is a member "struct st_table *const_tbl" inside the rb_classext_struct.
jaguarmagenta has joined #ruby
<dminuoso>
Papierkorb: You mean a classes/modules constants. :)
<dminuoso>
Afaik a constant cannot exist outside a class/module.
<Mon_Ouie>
>> 3::SomeConstant
<ruby[bot]>
Mon_Ouie: # => 3 is not a class/module (TypeError) ...check link for more (https://eval.in/634633)
<shmoon_>
hmm
<shmoon_>
so its confusing i guess
devster31 has quit [Ping timeout: 276 seconds]
<dminuoso>
Mon_Ouie: Well, it could be a constant of an objects singleton class
<shmoon_>
was just trying to understand how autoloading works in rails
<ardian_>
Hi, I am working on a GUI Twitter app, and I am only able to login via the secret tokens, is there any way like you login with your username and password
<shmoon_>
apparently there is `autoload` in ruby which will get removed in 3.0
matti has quit [Ping timeout: 244 seconds]
<dminuoso>
shmoon_: And rails autoloading is different.
<shmoon_>
why is it getting removed ? I read it has thread-safety issues, wouldn't that also exist in require too then ?
matti has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
<shmoon_>
dminuoso: yeah I think I am getting it now. Rails probably has a mechanism in place for autoloading which i will read up on
<shmoon_>
but before that wondering what thread-safety concerns are there around ruby autoload ?
<shmoon_>
maybe an example would be nice to understand
<shmoon_>
:)
<Mon_Ouie>
autoload in Ruby means that when you try to access a constant and that constant is not defined, require is called to load the files that define it
<Papierkorb>
shmoon_: If you have an `autoload Foo`, and Foo has not been used yet, so it's not loaded already. Then you have two threads running in parallel (on different CPU cores), both are now trying to use `Foo`. Ruby sees it's not loaded yet and will thus do a `require` on its own. This is a concurrency issue.
<dminuoso>
It's described in its entirety there.
<dminuoso>
(And it seems to be fairly complex in nature)
arnonhongklay has quit [Read error: Connection reset by peer]
<shmoon_>
Papierkorb: so when both tries to require the file containing Foo one should ideally succeed and the other fail yeah ?
miqlas-H has quit [Ping timeout: 276 seconds]
<shmoon_>
or when the entire operation is broken into real smaller operations both can end up loading the file causing error that constant is defined twice ?
<Papierkorb>
shmoon_: it's a complex race-condition, anything could happen. The issue report above has the gory details
miqlas-H has joined #ruby
claudiuinberlin has joined #ruby
<dminuoso>
On that note, I would like for autoload to work with iseq streams written out a file.. :|
arnonhongklay has joined #ruby
<dminuoso>
And require too while Im at it.
<Papierkorb>
it could produce a success in one thread, and a "NameError: Foo" in the other thread(s). Or something different. That alone though already creates a hard to debug issue, can crash the application, or could get a satellite to crash onto earth.
miqlas-H has quit [Client Quit]
jphase has joined #ruby
jgt3 has quit [Read error: Connection reset by peer]
<havenwood>
shmoon_: Even with the thread safety issues resolved many prefer explicit requiring.
JeanCarloMachado has quit [Ping timeout: 244 seconds]
<shmoon_>
hmm
<shmoon_>
i don't understand threads well but wondering if someone could explain simply how/when multiple threads access a program ?
yfeldblum has joined #ruby
<shmoon_>
if I have a piece of code and 2 threads are executing it for some reason imagine a webserver trying to serve 2 users parallely then wont the 2 threads have their own memory and do work just fine
<Mon_Ouie>
No, threads share memory
banisterfiend has joined #ruby
JeanCarloMachado has joined #ruby
<shmoon_>
or maybe executing `ruby script.rb` at the same time from 2 iterm2 windows
anisha has joined #ruby
<Mon_Ouie>
That's different, that would be two processes, not two threads
<shmoon_>
will that be safe then ?
<dminuoso>
shmoon_: Autoload works with markers. So you have a marker MARK_A that a constant A will be autoloaded. Thread 1 will fetch the constant, and start the autoload procedure. To do that the marker is removed. If Thread 2 will now attempt to fetch the constant, it will get an Unitialized Constant Error.
<Mon_Ouie>
Yes, separate processes do not share memory
<havenwood>
shmoon_: Processes don't share memory but threads can. Threads can also share mutable data and then problems arise where you have to synchronize access to that data.
baratheon has joined #ruby
<shmoon_>
ok I understand now, so in this case if I have a constant Foo, its stored in memoery which is shared by multiiple threads
<dminuoso>
shmoon_: So essentially there is a race condition if two threads attempt to access a constant at a similar time, that one will falsely get an "Uninitialized Constant" error.
<dminuoso>
(The other possible error condition does not exist as long as we have the global VM lock)
jgt3 has joined #ruby
<shmoon_>
dminuoso: is markers a C concept ?
<shmoon_>
just wondering how thread 1 can fetch the constant without autoloading first
<dminuoso>
shmoon_: No, its just how Ruby coins the term inside the autoloading logic.
vuoto has quit [Remote host closed the connection]
<dminuoso>
shmoon_: Think of this marker as a paper note on a box saying "Find the contents in file XYZ". Now if thread 1 attempts to find the constant, it discovers this note - and takes it away and follows it, when it comes back, it places the contents inside the box. Now there is a timeframe where the box is empty, and has no note on it.
vuoto has joined #ruby
<dminuoso>
So in that time frame any other observer would think "hey this constant is not initialized"
<shmoon_>
aah
<shmoon_>
dam got it :D
<shmoon_>
can the implementation be changed to fix this issue though ? It seems like it can be rather than removing the feature altogether
hopsoft has joined #ruby
<shmoon_>
some apps might find this feature super useful
<havenwood>
The Ruby in Hollywood meetup is taking a field trip to Italy if any Rubyists in Veneto wants to join us on Wednesday in Venice!
ericsupreme has quit [Quit: Leaving]
<dminuoso>
shmoon_: Not easily, which is why the bug has been around for 7 years.
ta has joined #ruby
<shmoon_>
I see
<shmoon_>
fair enough
<shmoon_>
thanks for the awesome explaantion dminuoso++ :)
jphase has quit []
ayonkhan has joined #ruby
ta has quit [Ping timeout: 276 seconds]
jhack has joined #ruby
Bellthoven has quit []
redpants has quit [Ping timeout: 264 seconds]
jhack has quit [Client Quit]
habitullence_ has joined #ruby
habitullence has quit [Ping timeout: 250 seconds]
habitullence_ is now known as habitullence
nankyokusei has joined #ruby
swills has quit [Quit: Leaving]
arnonhongklay has quit [Read error: Connection reset by peer]
sumobob has quit [Ping timeout: 250 seconds]
A5101 has joined #ruby
jhack has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
arnonhongklay has joined #ruby
eizua has joined #ruby
rails793 has joined #ruby
<shmoon_>
interesting it seems like module A; module B; end; end; is different from module A;end; module A::B;end; howcome/why so ?
GodFather has joined #ruby
kspencer is now known as No_One
<Mon_Ouie>
If you try to access a constant C inside the body of module B's definition, it will look for it in B, then in A, then in Object
Immune has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
<Mon_Ouie>
In the second case it only looks for it in B and in Object because the body of B is not inside module A
solocshaw has joined #ruby
<Mon_Ouie>
You can get insight into this by printing Module.nesting in both cases
<epitron>
You used to be able to update rubygems through the gem command
<epitron>
gem update --system
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
<pero>
epitron, killed :>
<dminuoso>
pero: its not just wget, but ruby running along with it.
Guest50945 has quit [Ping timeout: 244 seconds]
ta_ has quit [Ping timeout: 264 seconds]
vuoto has joined #ruby
<epitron>
pero: first try wiping out the .gem directory
<pero>
in my home dir?
<epitron>
Or rename it
<epitron>
Yeah
<dminuoso>
pero: I have a theory. It might be downloading into tmpfs.
<epitron>
That's where it stores all the specs it downloaded
<dminuoso>
pero: That would definitely explain why you would run out of memory.
<dminuoso>
(Or moving things into tmps)
<epitron>
dminuoso: or its trying to load all these specs into memory
<pero>
ok i renamed .gem
<dminuoso>
epitron: Possibly.
<pero>
now try update?
<epitron>
To do its dependency check
arnonhongklay has joined #ruby
<pero>
gets kileld
<epitron>
pero: yeah, although that only works as root I believe
<epitron>
Centos probably has a tripwire against changing system files
<pero>
hmm didnt get as root
<pero>
didnt get killed
<dminuoso>
pero: The OOM Killer picks processes semi randomly.
<pero>
hmm
kang00 has left #ruby ["AndroIRC"]
<dminuoso>
pero: It might not mean anything. In fact after the OOM killer has done its duty, you should really inspect dmesg and/or reboot your system.
<dminuoso>
pero: The OOM killer can rampage and possibly kill services relevant to the running system.
DoubleMalt has joined #ruby
<epitron>
pero: I think a better solution is to add a supplemental centos package repository with a newer ruby/rubygems
<epitron>
Which Ruby version is that?
AnoHito has quit [Read error: Connection reset by peer]
<pero>
ruby 2.0.0p598 (2014-11-13) [x86_64-linux]
<epitron>
Ouch
AnoHito has joined #ruby
<epitron>
You should be on 2.1 at least
<pero>
it's whatever was in EPEL
armyriad has quit [Quit: Leaving]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
<epitron>
You can also build your own in /opt or something with ruby-install
<pero>
so nuke the ruby install and set up rvm and try again?
<epitron>
Or in your home dir, if you have enough RAM for gcc
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dminuoso>
epitron: It wont be enough RAM.
<epitron>
No, centos probably depends on Ruby as a package dependency
<dminuoso>
It would be easier to cross compile Ruby.
<epitron>
Either upgrade the centos package, or build a second Ruby
<pero>
the thing is
<epitron>
dminuoso: it could just be a user limit
<pero>
i'm just trying to install jekyll
<pero>
i can find a lot of people installing jekyll on 128mb ram
<pero>
why me :>
<dminuoso>
epitron: GCC itself when loaded requires multiple dozens of MB just by running.
<dminuoso>
I dont think 128MB is going to be enough.
<epitron>
dminuoso: right, but if he runs it as root..
<epitron>
pero: I'm pretty sure it's just that version of rubygems...
<dminuoso>
epitron: How does that change anything?
<epitron>
<epitron> dminuoso: it could just be a user limit
flopsec has joined #ruby
<dminuoso>
Ah.
<dminuoso>
as in ulimit
<epitron>
<pero> hmm didnt get killed as root
Azure has joined #ruby
<pero>
but it also didn't do anything
<dminuoso>
epitron: As I said, might not mean anything. The OOM killer assigns a lower score for processes running as root.
<dminuoso>
epitron: Meaning root processes are less likely to get killed by it.
<dminuoso>
epitron: How much RAM does the machine have?