apeiros changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.10: https://www.ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
dminuoso_ has quit [Ping timeout: 250 seconds]
rcvalle has quit [Quit: rcvalle]
<al2o3-cr> >> RUBY_VERSION
<ruby[bot]> al2o3-cr: # => "2.3.0" (https://eval.in/663408)
ur5us_ has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
Dohplay has joined #ruby
Alina-malina has quit [Ping timeout: 252 seconds]
flashpoint9 has quit [Remote host closed the connection]
Siegfried has joined #ruby
Embalmed has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Alina-malina has joined #ruby
Embalmed has left #ruby ["Leaving"]
roamingdog has joined #ruby
Heffree has joined #ruby
harushimo has quit [Quit: This computer has gone to sleep]
charliesome has joined #ruby
nettoweb has joined #ruby
ur5us_ has joined #ruby
ur5us has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
codebridge001 has quit [Quit: Textual IRC Client: www.textualapp.com]
hahuang65 has joined #ruby
Channel6 has joined #ruby
whathappens has quit [Quit: Leaving...]
harushimo has joined #ruby
chouhoulis has joined #ruby
phredus has quit [Ping timeout: 245 seconds]
tubuliferous has joined #ruby
chrisja has quit [Quit: leaving]
Rodya_ has joined #ruby
pokalyis has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bovis has quit [Quit: leaving]
SeepingN has quit [Ping timeout: 245 seconds]
tubuliferous has quit [Ping timeout: 256 seconds]
frankiee_ has quit [Read error: Connection reset by peer]
gnufied has quit [Ping timeout: 250 seconds]
KnownSyntax has quit [Quit: All Quassel clients vanished from the face of the earth...]
nitric has quit [Ping timeout: 260 seconds]
hightower2 has joined #ruby
KnownSyntax has joined #ruby
rodfersou has quit [Quit: leaving]
zeroDi has quit [Quit: WeeChat 1.5]
hightower3 has quit [Ping timeout: 260 seconds]
roamingdog has quit [Remote host closed the connection]
Derperperd has joined #ruby
roamingdog has joined #ruby
nettoweb has joined #ruby
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
boombox_ has joined #ruby
saneax is now known as saneax-_-|AFK
harushimo has quit [Quit: This computer has gone to sleep]
jenrzzz has quit [Ping timeout: 244 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 250 seconds]
hahuang65 has joined #ruby
marr has quit [Ping timeout: 245 seconds]
kiwiiusa has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
pokalyis has quit [Quit: Textual IRC Client: www.textualapp.com]
roamingdog has quit [Remote host closed the connection]
harushimo has joined #ruby
roamingdog has joined #ruby
splud has quit [Quit: splud]
Guest66 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 256 seconds]
roamingdog has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
roamingdog has joined #ruby
<zacts> hello #ruby
harushimo has quit [Quit: This computer has gone to sleep]
dminuoso_ has joined #ruby
matp has quit [Quit: ZZzzzZz...]
roamingdog has quit [Remote host closed the connection]
xall has joined #ruby
axisys has quit [Ping timeout: 252 seconds]
roamingdog has joined #ruby
dminuoso_ has quit [Ping timeout: 245 seconds]
xall has quit [Ping timeout: 245 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jameser has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
boombox_ has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
doublemalt__ has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
doublemalt_ has quit [Ping timeout: 265 seconds]
Bellthoven has quit []
d^sh has quit [Ping timeout: 256 seconds]
JeanCarloMachado has quit [Ping timeout: 265 seconds]
ccmcdee-sfc has quit [Ping timeout: 265 seconds]
d^sh has joined #ruby
flashpoint9 has quit [Ping timeout: 245 seconds]
Aquazi has quit [Quit: Leaving]
ResidentBiscuit has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 250 seconds]
Torkable has quit [Ping timeout: 245 seconds]
bmurt has joined #ruby
jenrzzz has joined #ruby
Bellthoven has joined #ruby
ccmcdee-sfc has joined #ruby
passerine has joined #ruby
nankyokusei has joined #ruby
shayan_ has joined #ruby
harushimo has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
<shayan_> Would sum = sum + parseInt(num), represent a string concatenation, or is that an addition operator?
moeSizlak has left #ruby ["Leaving"]
Mia has quit [Ping timeout: 258 seconds]
nankyokusei has quit [Ping timeout: 250 seconds]
<shayan_> more specifically, is, sum + parseInt(num) representing a string concatenation, or is that an addition operator?
axisys has joined #ruby
bjh13 has joined #ruby
rakm has joined #ruby
<passerine> it would probably depend on the class of sum and the class of the return value of parseInt, whether they are of a numeric class, or String
<shayan_> The parseInt() function parses a string and returns an integer.
<passerine> and sum?
<shayan_> var sum;
<shayan_> sum = 0
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shayan_> sum = sum + parseInt(num);
tvw has quit [Ping timeout: 250 seconds]
roamingdog has quit [Remote host closed the connection]
harushimo has quit [Quit: This computer has gone to sleep]
* passerine probably missed something before joining the channel
splud has joined #ruby
splud has quit [Client Quit]
splud has joined #ruby
splud has quit [Remote host closed the connection]
splud has joined #ruby
ResidentBiscuit has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
passerine has left #ruby [#ruby]
bmurt has joined #ruby
matp has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
solocshaw has joined #ruby
ramfjord has joined #ruby
solocshaw has quit [Ping timeout: 245 seconds]
modlin has quit [Ping timeout: 256 seconds]
Jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ccmcdee-sfc has quit [Ping timeout: 245 seconds]
harushimo has joined #ruby
dminuoso_ has joined #ruby
roamingdog has joined #ruby
optiz0r has quit [Ping timeout: 245 seconds]
kwatz has joined #ruby
lel has joined #ruby
kwatz is now known as destructure
destructure has quit [Changing host]
destructure has joined #ruby
Rodya_ has quit [Remote host closed the connection]
astrobunny has joined #ruby
dminuoso_ has quit [Ping timeout: 250 seconds]
dnicole has joined #ruby
Silthias1 has joined #ruby
meshsmith has quit []
Silthias has quit [Ping timeout: 256 seconds]
Jameser has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
meshsmith has joined #ruby
LoneHerm_ has joined #ruby
dnicole has quit [Remote host closed the connection]
chessguy has joined #ruby
LoneHerm_ has quit [Ping timeout: 250 seconds]
<chessguy> so i'm hoping someone can give me a hand with popen. i have this code: IO.popen("/path/to/some/executable", "rw") {|io| io.puts "foo"; io.close_write; io.read(nil); }. some of the time, though, i'm getting a broken pipe on the puts line
<chessguy> is there some way to diagnose what's happening with the process i'm spinning up?
Felipe__ has joined #ruby
JesseH has quit [Ping timeout: 250 seconds]
roamingdog has quit [Remote host closed the connection]
Rodya_ has joined #ruby
borodin has quit [Quit: Textual IRC Client: www.textualapp.com]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
Jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
boombox_ has joined #ruby
JesseH has joined #ruby
matp has quit [Excess Flood]
cgfbee has quit [Excess Flood]
quazimodo has quit [Ping timeout: 252 seconds]
chouhoulis has joined #ruby
cgfbee has joined #ruby
Bellthoven has quit []
Felipe__ has quit [Quit: Leaving]
JesseH has quit [Ping timeout: 260 seconds]
bturker has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
zrl has quit [Quit: Connection closed for inactivity]
roamingdog has joined #ruby
ur5us_ has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
bturker has quit [Ping timeout: 256 seconds]
ur5us has joined #ruby
ur5us_ has joined #ruby
govg has quit [Ping timeout: 256 seconds]
xall has joined #ruby
ur5us_ has quit [Ping timeout: 244 seconds]
ur5us has quit [Ping timeout: 244 seconds]
howdoi has joined #ruby
dnicole has joined #ruby
matp has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
bjh13 has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 260 seconds]
fullofcaffeine has quit [Remote host closed the connection]
djbkd has joined #ruby
fullofcaffeine has joined #ruby
dminuoso_ has joined #ruby
harushimo has quit [Quit: This computer has gone to sleep]
ResidentBiscuit has joined #ruby
roamingdog has quit [Remote host closed the connection]
blackwind_123 has quit [Ping timeout: 256 seconds]
fullofcaffeine has quit [Ping timeout: 250 seconds]
dminuoso_ has quit [Ping timeout: 244 seconds]
xall has quit [Ping timeout: 245 seconds]
blackwind_123 has joined #ruby
dviola has quit [Quit: WeeChat 1.6]
fullofcaffeine has joined #ruby
jcao219 has joined #ruby
JesseH has joined #ruby
Alina-malina has quit [Ping timeout: 256 seconds]
braincrash has quit [Quit: bye bye]
ChiefAlexander has joined #ruby
chessguy has quit [Ping timeout: 256 seconds]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ChiefAlexander has quit [Client Quit]
roamingdog has joined #ruby
LoneHerm_ has joined #ruby
JesseH has quit [Ping timeout: 260 seconds]
tubuliferous has joined #ruby
boombox_ has quit [Remote host closed the connection]
JoshS has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
aibot_____ has quit [Ping timeout: 252 seconds]
roamingdog has quit [Ping timeout: 252 seconds]
nettoweb has joined #ruby
jeyraof has joined #ruby
fullofca_ has joined #ruby
nettoweb has quit [Client Quit]
aibot_____ has joined #ruby
griffindy has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
gix has quit [Ping timeout: 252 seconds]
jcao219 has quit [Ping timeout: 256 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
braincras has joined #ruby
nanoz has joined #ruby
nanoz has quit [Changing host]
nanoz has joined #ruby
gix has joined #ruby
jackjackdripper has joined #ruby
govg has joined #ruby
JesseH has joined #ruby
boombox_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
redpants has quit [Quit: leaving]
LoneHerm_ has joined #ruby
mountpoint has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Read error: No route to host]
LoneHerm_ has joined #ruby
quazimodo has joined #ruby
optiz0r has joined #ruby
lel has quit [Remote host closed the connection]
roflmyeggo has joined #ruby
boombox__ has joined #ruby
ichkv has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
boombox_ has quit [Ping timeout: 260 seconds]
xall has joined #ruby
tax has quit [Quit: Leaving]
arescorpio has quit [Quit: Leaving.]
Silthias has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
Silthias1 has quit [Ping timeout: 252 seconds]
hanmac has quit [Ping timeout: 245 seconds]
ichkv has quit [Ping timeout: 250 seconds]
jackjackdripper has quit [Quit: Leaving.]
solocshaw has joined #ruby
ichkv has joined #ruby
shayan_ has quit [Quit: shayan_]
saneax-_-|AFK is now known as saneax
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
solocshaw has quit [Ping timeout: 245 seconds]
jcao219 has joined #ruby
govg has quit [Ping timeout: 260 seconds]
arashb has joined #ruby
chouhoulis has quit [Remote host closed the connection]
dnicole has quit [Remote host closed the connection]
shayan_ has joined #ruby
dminuoso_ has joined #ruby
arashb has quit [Ping timeout: 256 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
brendan- has joined #ruby
ResidentBiscuit has quit []
hanmac has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
boombox__ has quit [Remote host closed the connection]
dminuoso_ has quit [Ping timeout: 250 seconds]
Rodya_ has quit [Remote host closed the connection]
LoneHerm_ has quit [Ping timeout: 260 seconds]
harushimo has joined #ruby
Rodya_ has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Xiti has quit [Ping timeout: 245 seconds]
minimalism has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
LoneHerm_ has joined #ruby
fullofca_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
ichkv has quit [Ping timeout: 265 seconds]
fullofca_ has joined #ruby
splud has quit [Quit: splud]
roflmyeggo has quit [Ping timeout: 250 seconds]
Channel6 has quit [Quit: Leaving]
roflmyeggo has joined #ruby
mgorbach has quit [Ping timeout: 256 seconds]
mgorbach has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Xiti has joined #ruby
ccmcdee-sfc has joined #ruby
jaykill has joined #ruby
LoneHerm_ has joined #ruby
shayan_ has quit [Quit: shayan_]
mgorbach has quit [Ping timeout: 256 seconds]
jaykilleen has quit [Ping timeout: 245 seconds]
saneax is now known as saneax-_-|AFK
bturker has joined #ruby
Guest73969 has quit [Quit: _]
eljimmy has quit [Quit: Leaving]
igniting has quit [Ping timeout: 256 seconds]
<quazimodo> beep
frankiee_ has joined #ruby
yardenbar has joined #ruby
bandu has quit [Ping timeout: 250 seconds]
bturker has quit [Ping timeout: 256 seconds]
fullofca_ has quit [Remote host closed the connection]
7GHAAIFPB has joined #ruby
7GHAAIFPB has quit [Remote host closed the connection]
yardenbar has quit [Max SendQ exceeded]
fullofcaffeine has joined #ruby
yardenbar has joined #ruby
frankiee_ has quit [Read error: Connection reset by peer]
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
ichkv has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
bluOxigen has joined #ruby
fullofcaffeine has joined #ruby
gusrub has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
yardenbar has quit [Ping timeout: 252 seconds]
fullofcaffeine has quit [Ping timeout: 260 seconds]
AlexRussia has quit [Ping timeout: 252 seconds]
Alina-malina has joined #ruby
Rodya_ has quit [Remote host closed the connection]
elomatreb has quit [Quit: mep mep]
elomatreb has joined #ruby
_sfiguser has quit [Ping timeout: 252 seconds]
jaykill33 has joined #ruby
dminuoso_ has joined #ruby
CloCkWeRX has left #ruby [#ruby]
gizmore has joined #ruby
gizmore has quit [Remote host closed the connection]
gizmore has joined #ruby
jaykill has quit [Ping timeout: 260 seconds]
govg has joined #ruby
yardenbar has joined #ruby
dminuoso_ has quit [Ping timeout: 252 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
yardenbar has quit [Ping timeout: 245 seconds]
gusrub has quit [Quit: Leaving]
shayan_ has joined #ruby
_sfiguser has joined #ruby
roamingdog has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
webopsx has joined #ruby
harushimo has quit [Quit: This computer has gone to sleep]
meshsmith has quit []
meshsmith has joined #ruby
<zacts> buzz
<zacts> bap
hahuang65 has joined #ruby
jaykill has joined #ruby
NTrash has joined #ruby
ben_____ has joined #ruby
<quazimodo> blonk
jaykill33 has quit [Ping timeout: 250 seconds]
ben_ has quit [Ping timeout: 256 seconds]
Phage has joined #ruby
meshsmith has quit []
meshsmith has joined #ruby
nankyokusei has joined #ruby
postmodern has joined #ruby
meshsmith has quit [Client Quit]
meshsmith has joined #ruby
roflmyeggo has quit [Ping timeout: 256 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
mgorbach has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
baiyang has joined #ruby
Karunamon has quit [Quit: Later!]
al2o3-cr has joined #ruby
roamingdog has quit [Remote host closed the connection]
Karunamon has joined #ruby
meshsmith has left #ruby [#ruby]
shayan_ has quit [Quit: shayan_]
igniting has joined #ruby
baweaver is now known as baweaver_away
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 252 seconds]
davidt has joined #ruby
baiyang has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
allomov has joined #ruby
ur5us has joined #ruby
ur5us_ has joined #ruby
tdy1 has joined #ruby
Karunamon has quit [Quit: Later!]
Karunamon has joined #ruby
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Devalo has joined #ruby
charliesome has joined #ruby
shayan_ has joined #ruby
roamingdog has joined #ruby
lupine has quit [Remote host closed the connection]
Karunamon has quit [Quit: Later!]
Burgestrand has joined #ruby
Karunamon has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us_ has quit [Remote host closed the connection]
lupine has joined #ruby
Phage has quit [Quit: Textual IRC Client: www.textualapp.com]
Karunamon has quit [Quit: Later!]
solocshaw has joined #ruby
yardenbar has joined #ruby
pawnbox has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aupadhye has joined #ruby
roamingdog has quit [Remote host closed the connection]
Dohplay has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
baiyang has joined #ruby
solocshaw has quit [Ping timeout: 245 seconds]
roamingdog has joined #ruby
Devalo has quit [Remote host closed the connection]
harfangk has joined #ruby
jaguarmagenta has joined #ruby
dminuoso_ has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
bluOxigen has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jaguarmagenta has quit [Remote host closed the connection]
Karunamon has joined #ruby
jaguarmagenta has joined #ruby
jaguarmagenta has quit [Read error: Connection reset by peer]
jaguarmagenta has joined #ruby
dminuoso_ has quit [Ping timeout: 265 seconds]
symm- has joined #ruby
jaguarmagenta has quit [Read error: Connection reset by peer]
jaguarma_ has joined #ruby
jaguarma_ has quit [Client Quit]
Immune_ has quit [Read error: Connection reset by peer]
Hyuk has joined #ruby
k200 has joined #ruby
<k200> hi
wugy has joined #ruby
<k200> i have a recursive function http://paste.ubuntu.com/23352230/ . I wont to know that, will the function call in if block return the key to main call if its teh same key or it will just return that value only to if block and not back to original caller? e.g. if mykey = change_api_key(key) and assume that here the key == new_key will "mykey" get a new_key eventually or not?
jcao219 has quit [Ping timeout: 250 seconds]
<k200> i am confused because i am not using "return" statement in if block. its used only in else block.
jcao219 has joined #ruby
last_staff has joined #ruby
Joufflu has quit [Quit: Leaving]
amclain has quit [Quit: Leaving]
aidalgol has joined #ruby
Ishido has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
ur5us_ has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us_ has quit [Remote host closed the connection]
<Burgestrand> k200 I don't quite understand your question. For one, `return` here is redundant, Ruby returns the value of the last expression implicitly without using return
AlexRussia has joined #ruby
ur5us has joined #ruby
ur5us_ has joined #ruby
<Burgestrand> k200 Your recursive method will keep going forever until key != new_key (random), and eventually return new_key.
dionysus69 has joined #ruby
baiyang has quit [Remote host closed the connection]
<Burgestrand> k200 If it helps, your method will behave the same if you have a return in both branches of the if-statement, if that helps.
symm- has quit [Quit: Leaving...]
<Burgestrand> k200 Hm, maybe I understand. Yes, it will return the value of change_api_key(key) to the main call.
allomov has quit [Remote host closed the connection]
conta has joined #ruby
jaequery has joined #ruby
govg has quit [Ping timeout: 250 seconds]
<k200> Burgestrand: yes. thanks.
ur5us_ has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 260 seconds]
Silthias has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
djbkd_ has joined #ruby
Silthias1 has quit [Ping timeout: 252 seconds]
baiyang has joined #ruby
roamingdog has quit [Remote host closed the connection]
_sfiguser has quit [Remote host closed the connection]
roamingdog has joined #ruby
bocaneri has joined #ruby
balazs has quit [Remote host closed the connection]
bturker has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
davidt has quit [Remote host closed the connection]
shayan_ has quit [Quit: shayan_]
bocaneri has quit [Excess Flood]
bocaneri has joined #ruby
davidt has joined #ruby
NTrash has quit [Quit: Konversation terminated!]
bturker has quit [Ping timeout: 256 seconds]
hahuang65 has quit [Ping timeout: 245 seconds]
davidt has quit [Ping timeout: 245 seconds]
shayan_ has joined #ruby
Siegfried has left #ruby ["Textual IRC Client: www.textualapp.com"]
blaxter has joined #ruby
Authenticator has quit [Quit: leaving]
tomphp has joined #ruby
dminuoso_ has joined #ruby
aryaching has quit [Ping timeout: 256 seconds]
jcao219 has quit [Ping timeout: 250 seconds]
baiyang has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
johnny56 has quit [Ping timeout: 246 seconds]
xall has quit [Ping timeout: 256 seconds]
Xiti` has joined #ruby
roamingdog has quit [Remote host closed the connection]
xall has joined #ruby
MrBusiness2 has quit [Read error: Connection reset by peer]
MrBusiness2 has joined #ruby
Xiti has quit [Ping timeout: 250 seconds]
jgnagy has quit [Ping timeout: 260 seconds]
TomyWork has joined #ruby
kicksled has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
Jameser has joined #ruby
Pixi_ has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
ahri has quit [Quit: Page closed]
doxterpepper has joined #ruby
vuoto has joined #ruby
Xiti` has quit [Ping timeout: 252 seconds]
djbkd_ has quit []
baweaver_away is now known as baweaver
nankyokusei has joined #ruby
sdwrage has joined #ruby
raeoks has joined #ruby
Silthias1 has joined #ruby
dminuoso1 has joined #ruby
aufi has joined #ruby
dminuoso_ has quit [Ping timeout: 260 seconds]
trampi has quit [Quit: Ping timeout (120 seconds)]
astrobunny has quit [Remote host closed the connection]
kicksled has joined #ruby
kicksled has joined #ruby
kicksled has quit [Changing host]
Silthias has quit [Ping timeout: 256 seconds]
nankyokusei has quit [Ping timeout: 245 seconds]
tcrypt has quit [Quit: _ノ乙(、ン、)_]
elastix has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roamingdog has joined #ruby
nuclearsandwich has quit [Read error: Connection reset by peer]
<Garo__> let's say I have an object. Is there some kind of special function (like there is [] and []= functions) which I could create so that my instance would be evaluated to false when I do "if instance" ?
SesMan has joined #ruby
nuclearsandwich has joined #ruby
<tobiasvl> Garo__: no :/
roamingdog has quit [Remote host closed the connection]
crdpink has quit [Ping timeout: 268 seconds]
crdpink has joined #ruby
<dminuoso1> Garo__: Ruby has the following logic hardwired: Nil and false are false - *anything* else is true.
<Garo__> I'm trying to make an object which contains a Hash. I have [] and []= set which modifies this hash, so that the object feels like hash. if I try to [] a symbol which doesn't exists, it will return a new instance, so that I can set nested objects easily: a = Node.new; a[:foo][:bar] = "foobar" will just work. I just want to handle a special case: "if a[:doesnotexists]" would not evaluate into true
<dminuoso1> You can't change this without modifying Ruby itself.
johnny56 has joined #ruby
<dminuoso1> Garo__: If you have the need for such semantics, provide a helper method that returns the boolean state you want.
SesMan has quit [Client Quit]
lenwood has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
charliesome has joined #ruby
mark_66 has joined #ruby
<djellemah> >> ha = Hash.new{|hash,key| hash[key] = []}; ha[:new_key] << 1; ha #Garo__
<ruby[bot]> djellemah: # => {:new_key=>[1]} (https://eval.in/663531)
Contigi has quit [Read error: Connection reset by peer]
Contigi has joined #ruby
Contigi has quit [Read error: Connection reset by peer]
minimalism has quit [Quit: minimalism]
dionysus69 has quit [Remote host closed the connection]
minimalism has joined #ruby
dionysus69 has joined #ruby
jaykill has quit [Ping timeout: 260 seconds]
beawesomeinstead has quit [Ping timeout: 260 seconds]
beawesomeinstead has joined #ruby
<baweaver> >> vivified = Hash.new { |h,k| h[k] = Hash.new(&h.default_proc) }; vivified[:a][:b][:c][:d][:e] = 1; vivified # djellemah Garo__ dminuoso1
<ruby[bot]> baweaver: # => {:a=>{:b=>{:c=>{:d=>{:e=>1}}}}} (https://eval.in/663539)
bihi has quit [Ping timeout: 250 seconds]
<djellemah> Yeah, that fills in all the missing pieces ;-)
<Garo__> baweaver: thanks for the idea. the default_proc indeed solves this issue, but it can't be Marshalled - which was the reason why I stopped using that and started to write my own class :/
<Garo__> sorry, should have said to you that I already tried that and I hit the marshall issue :(
<baweaver> JSON
<Garo__> good point, that's an option
<baweaver> Hash -> JSON -> Marshal -> Unmarshal -> JSON parse -> Hash
<baweaver> though then it loses its vivification.
postmodern has quit [Quit: Leaving]
<djellemah> It's also pretty easy to put the default_proc machinery in a Hash subclass (alternatively Delegator), which will marshal as long as you have the class on both ends.
bihi has joined #ruby
SesMan has joined #ruby
anuxivm has joined #ruby
anuxivm has left #ruby [#ruby]
xall has quit [Ping timeout: 260 seconds]
aswen has joined #ruby
dminuoso1 has quit [Remote host closed the connection]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dminuoso_ has joined #ruby
ocx has joined #ruby
<ocx> hi all, can i consider a block of a function and the function definition to be in the same scope?
mim1k|work has joined #ruby
tlaxkit has joined #ruby
mikecmpbll has joined #ruby
qwertyco has joined #ruby
jsrn_ has joined #ruby
doublemalt__ has quit [Remote host closed the connection]
Humdai has joined #ruby
andikr has joined #ruby
crdpink has quit [Read error: Connection reset by peer]
crdpink has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
govg has joined #ruby
AlexRussia has quit [Ping timeout: 252 seconds]
tomphp has joined #ruby
biberu has joined #ruby
tachikomas has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tachikomas has left #ruby [#ruby]
ziarkaen has joined #ruby
vuoto has quit [Remote host closed the connection]
astrobunny has joined #ruby
<ocx> what is the equiv to each do {x} ..
<ocx> each do |x| ...
<ocx> for each what?
elastix has quit [Quit: Leaving]
tvw has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
astrobunny has quit [Ping timeout: 252 seconds]
xall has joined #ruby
<ocx> ?
shayan_ has quit [Quit: shayan_]
<canton7> ocx, it's not clear what your question is
<tobiasvl> ocx: what do you mean here
<tobiasvl> ocx: array.each do |x| do_something_with x end
<tobiasvl> with a little ; in there
<tobiasvl> ocx: is the same as array.each {|x| do_something_with x }
<tobiasvl> and it does something with each x in array
xall has quit [Ping timeout: 250 seconds]
alexherbo2 has quit [Quit: WeeChat 1.5]
<ocx> tobiasvl: i mean when the tatemenr start with each
<ocx> not .each
baiyang has joined #ruby
<tobiasvl> do you have an example?
shayan_ has joined #ruby
<ocx> class Array def hello each do |x| p x end end end [1,2,3].hello
<ocx> guess each is like args.each?
<ocx> shortcut
radic has quit [Ping timeout: 244 seconds]
ichkv1 has joined #ruby
radic has joined #ruby
blackmesa has joined #ruby
<tobiasvl> well, inside Array simply calling "each" will have self as the receiver
tomphp has quit [Read error: Connection reset by peer]
<tobiasvl> it's not a shortcut, it's just that when you call [1,2,3].each you will call Array's each method, and the same happens if you just call each inside Array
tomphp has joined #ruby
ichkv has quit [Ping timeout: 250 seconds]
last_staff is now known as suzylee
<ocx> thanks
govg has quit [Ping timeout: 252 seconds]
zukin has joined #ruby
<ocx> tobiasvl: http://docs.ruby-doc.com/docs/ProgrammingRuby/ here in module Inject def inject(n) each do |value| the each is also self.each which is mainly pointing to the array?
radic has quit [Ping timeout: 260 seconds]
Beams has joined #ruby
nowhereFast has joined #ruby
suzylee is now known as last_staff
<tobiasvl> ocx: where is that? I don't see it on that page
<tobiasvl> there, self would not necessarily be an Array, but anything that mixes in the Inject module
xall has joined #ruby
astrobunny has joined #ruby
troulouliou_div2 has joined #ruby
radic has joined #ruby
Cyrus has quit [Ping timeout: 260 seconds]
modin has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<ocx> ok
Cyrus has joined #ruby
Cyrus is now known as Guest41247
modin has joined #ruby
baiyang has quit [Remote host closed the connection]
saneax-_-|AFK is now known as saneax
AlexRussia has joined #ruby
lxsameer has joined #ruby
marr has joined #ruby
koooge has quit [Quit: Leaving...]
<ocx> tobiasvl: can i consider the block and the function def in the same scope? like local variables are shred in the same scope?
<tobiasvl> ocx: they are two nested scopes, the block has a scope which is inside the scope of the method (which is inside the scope of the module)
nettoweb has joined #ruby
rkazak has quit [Ping timeout: 245 seconds]
raeoks has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
c0mrad3 has joined #ruby
Akuma0n3 has joined #ruby
Akuma has quit [Read error: Connection reset by peer]
Jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Snowy has joined #ruby
ryans1190[m] has joined #ruby
platzhirsch has joined #ruby
govg has joined #ruby
ryans1190[m] has left #ruby [#ruby]
bturker has joined #ruby
weaksauce has quit [Ping timeout: 258 seconds]
pandaant has joined #ruby
nankyokusei has joined #ruby
dopamean1 has joined #ruby
radic has quit [Ping timeout: 260 seconds]
dopamean_ has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
tubuliferous has quit [Ping timeout: 252 seconds]
nankyokusei has quit [Ping timeout: 250 seconds]
DaniG2k has joined #ruby
zukin has quit [Ping timeout: 252 seconds]
nowhereman has joined #ruby
radic has joined #ruby
ocx has quit [Ping timeout: 260 seconds]
zukin has joined #ruby
aidalgol has quit [Quit: zZzZzZzzz]
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has quit [Remote host closed the connection]
zukin has quit [Ping timeout: 265 seconds]
pawnbox has joined #ruby
shayan_ has quit [Quit: shayan_]
astrobunny has quit [Remote host closed the connection]
Ishido has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
pawnbox has quit [Ping timeout: 256 seconds]
Bish has joined #ruby
nikivi has joined #ruby
shayan_ has joined #ruby
mim1k|work has quit [Ping timeout: 260 seconds]
miqlas-H has joined #ruby
mim1k|work has joined #ruby
shayan_ has quit [Client Quit]
<jokke> hello
<jokke> can UDPSocket#send raise?
gingray has joined #ruby
jeyraof has quit [Quit: This computer has gone to sleep]
cibs has quit [Ping timeout: 268 seconds]
<Zarthus> sounds like a question for the docs.
cibs has joined #ruby
<jokke> doesn't say it does
<Zarthus> then it doesn't.
dipnlik has joined #ruby
flashpoint9 has joined #ruby
dipnlik has quit [Client Quit]
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
ldnunes has joined #ruby
nikivi has quit [Quit: irc]
rodfersou has joined #ruby
shayan_ has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
Macaveli has joined #ruby
pawnbox has joined #ruby
Jameser has joined #ruby
govg has quit [Ping timeout: 252 seconds]
jahmalz has joined #ruby
saneax is now known as saneax-_-|AFK
Aquazi has joined #ruby
tlaxkit has quit [Remote host closed the connection]
tlaxkit has joined #ruby
JeanCarloMachado has joined #ruby
function has joined #ruby
function is now known as Guest65576
Guest65576 has quit [Client Quit]
constant has joined #ruby
<constant> how do I ask gem for its prefix? i.e., I want to get "~/.gem/ruby/2.3.0/"
<constant> or its expanded form
Jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DaniG2k has quit [Quit: leaving]
djellemah_ has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
alaibe has quit [Ping timeout: 256 seconds]
<chrisseaton> Looks like PHP is getting a JIT! http://marc.info/?l=php-internals&amp;m=147273115317977
<manveru> constant: Gem.dir
<constant> manveru this is a ruby variable? I'm looking for something from the command line
<constant> like "gem environment gemdir"
<constant> but the local variant
<manveru> ruby -e 'puts Gem.dir'
Derperperd has quit [Quit: Derperperd]
<constant> that gives me the non-local version :/
<constant> /opt/local/lib/ruby2.3/gems/2.3.0
pawnbox has quit [Ping timeout: 252 seconds]
<manveru> that gives you the location that `gem install` tries to use
<constant> how about gem install --user ?
Aquazi has quit [Quit: Leaving]
<constant> erm --user-install
<manveru> did you put that in your .gemrc?
saneax-_-|AFK is now known as saneax
<constant> no, I specify it on the command line
alaibe has joined #ruby
<manveru> well, there's always Gem.user_dir
<constant> that's the one. Thanks!
pawnbox has joined #ruby
ferr has joined #ruby
Aquazi has joined #ruby
Aquazi has quit [Read error: Connection reset by peer]
Aquazi has joined #ruby
Aquazi_ has joined #ruby
ziarkaen has quit [Ping timeout: 265 seconds]
ziarkaen has joined #ruby
ichkv1 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
JeanCarloMachado has quit [Ping timeout: 244 seconds]
Aquazi has quit [Quit: Leaving]
JeanCarloMachado has joined #ruby
fbt has quit [Ping timeout: 250 seconds]
phredus has joined #ruby
tubuliferous has joined #ruby
constant has quit [Quit: found 1 in /dev/zero]
Hyuk has joined #ruby
Silthias has joined #ruby
fbt has joined #ruby
Jameser has joined #ruby
LoneHermit has joined #ruby
ocx has joined #ruby
<ocx> module Auxiliary def self.module_list <--- here module_list is a method?
<ocx> why did we do self. and not def module_list
Silthias1 has quit [Ping timeout: 250 seconds]
djellemah_ has quit [Ping timeout: 252 seconds]
pawnbox has quit [Ping timeout: 265 seconds]
<dminuoso_> ocx: Do you want the technical explanation, or just the users perspective?
<ocx> both
<dminuoso_> ocx: In Ruby only classes can have methods (and modules for the purpose of this discussion are just classes)
<dminuoso_> ocx: So when users talk about "instance methods" and "class methods", instance methods obviously belong to the class, but where do class methods go?
<ocx> in modules
<dminuoso_> No.
dionysus69 has quit [Ping timeout: 250 seconds]
<dminuoso_> Ignore the word modules, there is no real difference between modules and classes.
<dminuoso_> (Ruby just wont let you do somethings to either, but they are not really any different)
<ocx> class methods in a class
<dminuoso_> ocx: The key is, that a class is also an object.
<dminuoso_> ocx: And every object has a singleton class attached to it, a special class that exists just for that single object.
<dminuoso_> ocx: Class methods go to the class objects singleton class.
<ocx> ok
last_staff has quit [Quit: last_staff]
<dminuoso_> ocx: now the reason this works with "def self.foobar" is as follows -> inside the block "self" refers to the class object itself.
pawnbox has joined #ruby
<dminuoso_> And when you do "def object.method" its always defining a method on objects singleton class
<dminuoso_> For example:
<dminuoso_> >> a = "foobar"; def a.my_method; puts "hello"; end; a.my_method
<ruby[bot]> dminuoso_: # => hello ...check link for more (https://eval.in/663662)
arsest has joined #ruby
quazimodo has quit [Ping timeout: 256 seconds]
arsest is now known as fce
fce is now known as face
<dminuoso_> ocx: Does this make any sense to you?
Jameser has quit [Max SendQ exceeded]
Jameser has joined #ruby
ichkv has joined #ruby
shayan_ has quit [Read error: Connection reset by peer]
shayan_ has joined #ruby
<dminuoso_> ocx: so what people call "class methods of a class Foo" are just methods that are defined on the singleton class of the object Foo itself.
ocx has quit [Ping timeout: 260 seconds]
ocbtec has joined #ruby
tubuliferous has quit [Ping timeout: 250 seconds]
charliesome has quit [Read error: Connection reset by peer]
Snowy has quit [Remote host closed the connection]
tyang has joined #ruby
Snowy has joined #ruby
roamingdog has joined #ruby
Macaveli has quit [Ping timeout: 265 seconds]
Snowy has quit [Ping timeout: 252 seconds]
roamingdog has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
Guest35924 has quit [Read error: Connection reset by peer]
Hyuk has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
Hyuk has joined #ruby
roamingdog has joined #ruby
SesMan has joined #ruby
Snowy has joined #ruby
nuck has joined #ruby
tyang has quit [Ping timeout: 244 seconds]
nuck is now known as Guest67391
marr has quit [Ping timeout: 250 seconds]
qwertyco has quit [Remote host closed the connection]
Jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 244 seconds]
johnmilton has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
GodFather has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
murilo has joined #ruby
nowhereman has quit [Ping timeout: 260 seconds]
RedFromage has joined #ruby
chouhoulis has joined #ruby
SesMan has quit [Ping timeout: 245 seconds]
blackmesa has quit [Ping timeout: 265 seconds]
nankyokusei has joined #ruby
lupine has quit [Read error: Connection reset by peer]
synthroid has joined #ruby
lupine has joined #ruby
face has quit [Ping timeout: 260 seconds]
johnmilton has joined #ruby
AlexRussia has quit [Ping timeout: 256 seconds]
nankyokusei has quit [Ping timeout: 256 seconds]
pawnbox has quit [Ping timeout: 256 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
porfa has joined #ruby
ruby-lang559 has joined #ruby
<porfa> helllo
<porfa> it’s repeating the first result the number of time, it should print a diferent result.https://gist.github.com/anonymous/5bd8033cfcf79861f9e7fc6aac6fbb9a
brendan- has joined #ruby
<ruby-lang559> hello
<porfa> can anyone give me a tip on how to get there?
<ruby-lang559> is it true Rubymotion is for creating mobile apps?
pawnbox has joined #ruby
<chris2> Porfa: use dat_pneucity inside the loop?
<ruby-lang559> ??
<porfa> chris2: will look, thanks
<ruby-lang559> Rubymotion is for mobile apps?
<chris2> "Create cross-platform mobile apps for iOS, Android and OS X in Ruby."
<chris2> you could google that yourself...
<ruby-lang559> oh i see
<ruby-lang559> wow cool man
griffindy has joined #ruby
<ruby-lang559> there'e even a thing for creating mobile apps
<ruby-lang559> ruby is cool
<gizmore> how many apps have you created?
<ruby-lang559> haha none yet
<ruby-lang559> just exploring
Silthias has quit [Ping timeout: 250 seconds]
<ruby-lang559> im still learning ruby
tubuliferous has joined #ruby
Silthias has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
wnd has quit [Ping timeout: 260 seconds]
wnd has joined #ruby
shayan_ has quit [Quit: shayan_]
Macaveli has joined #ruby
k200 has quit [Read error: Connection reset by peer]
Macaveli has quit [Client Quit]
ruby-lang559 has quit [Ping timeout: 260 seconds]
shayan_ has joined #ruby
znz_jp has quit [Remote host closed the connection]
bturker has quit [Ping timeout: 256 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
modlin has joined #ruby
shayan_ has quit [Ping timeout: 245 seconds]
znz_jp has joined #ruby
phredus has quit [Remote host closed the connection]
<porfa> i can’t work it out
<porfa> can anyone tell me why script keeps repeating “APlus /rshop/Pneus/Aplus” instead of going to the next result? https://gist.github.com/anonymous/5bd8033cfcf79861f9e7fc6aac6fbb9a
shayan_ has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
tubuliferous has quit [Ping timeout: 252 seconds]
ziarkaen has quit [Ping timeout: 260 seconds]
shayan_ has quit [Client Quit]
shayan_ has joined #ruby
nankyokusei has joined #ruby
varsha has joined #ruby
marr has joined #ruby
<veloutin> Porfa: maybe you want to be doing dat_pneucity.at_css inside your each block
nankyokusei has quit [Ping timeout: 244 seconds]
<veloutin> Porfa: or any other relevant method to access the content you want
<porfa> what sort of other revelant method?
AlexRussia has joined #ruby
<veloutin> Porfa: well, I don't know what you have available in that loop, all I can see is that you are looping over something, but repeatedly calling the same method on the same object inside
RedFromage has quit [Read error: Connection reset by peer]
jaruga___ has joined #ruby
jaruga___ is now known as jaruga
SesMan has joined #ruby
bturker has joined #ruby
colegatron has quit [Ping timeout: 256 seconds]
nankyokusei has joined #ruby
colegatron has joined #ruby
ziarkaen has joined #ruby
tk__ has joined #ruby
shinnya has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
zacstewart has quit [Ping timeout: 250 seconds]
allomov has joined #ruby
lxsameer has quit [Quit: WeeChat 1.6]
pawnbox has joined #ruby
GodFather has quit [Ping timeout: 244 seconds]
GodFather has joined #ruby
frankiee_ has joined #ruby
quazimodo has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhereman has joined #ruby
tlaxkit has quit [Remote host closed the connection]
tlaxkit has joined #ruby
hinbody has joined #ruby
zacstewart has joined #ruby
modlin has quit [Remote host closed the connection]
spiette has joined #ruby
cdg has joined #ruby
shayan_ has quit [Quit: shayan_]
brendan- has joined #ruby
ramortegui has joined #ruby
Xeago has quit [Ping timeout: 250 seconds]
braincras has quit [Ping timeout: 256 seconds]
bmurt has joined #ruby
govg has joined #ruby
malconis has joined #ruby
Xeago has joined #ruby
shayan_ has joined #ruby
braincrash has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
troulouliou_div2 has joined #ruby
elaptics has joined #ruby
blackmesa has joined #ruby
nadir has joined #ruby
harushimo has joined #ruby
SesMan has joined #ruby
armin has quit [Quit: relate to the matter as i drop the bomb]
ziarkaen has quit [Ping timeout: 260 seconds]
ziarkaen has joined #ruby
armin has joined #ruby
emilkarl has joined #ruby
<emilkarl> How would you create this result the easiest way? Split array items by _ and generate key from first and add as array item on second. https://gist.github.com/emilkarl/fabb7e47b834e8fcbcb5d094e805a124
disconnekted has joined #ruby
minimalism has quit [Quit: minimalism]
arooni has quit [Quit: ZNC - http://znc.in]
nankyokusei has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
<dminuoso_> >> [[:a, [:b, :c]]].to_h # emilkarl
<ruby[bot]> dminuoso_: # => {:a=>[:b, :c]} (https://eval.in/663774)
<dminuoso_> If thats enough of a hint for you.
roamingdog has joined #ruby
<dminuoso_> Or you can do this even easier
tyang has joined #ruby
<emilkarl> but that would remove duplicates?
<emilkarl> [[:a, [:b, :c]], [:a, [:d, :e]]].to_h # dminuoso_
<emilkarl> >> [[:a, [:b, :c]], [:a, [:d, :e]]].to_h # dminuoso_
<ruby[bot]> emilkarl: # => {:a=>[:d, :e]} (https://eval.in/663776)
ben_____ has quit [Remote host closed the connection]
<emilkarl> which is my problem atm :P
<dminuoso_> emilkarl: [].each_with_object({}) { |o, h| k, v = o.split("_"); h[k] ||= []; h[k] << v }
gnufied has joined #ruby
<dminuoso_> Something along those lines.
ben_____ has joined #ruby
inchw0rm has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
<emilkarl> oh
<dminuoso_> >> ["pullups_sets", "pullups_reps", "pullups_weight", "pushups_sets", "pushups_reps"].each_with_object({}) { |o, h| k, v = o.split("_"); h[k] ||= []; h[k] << v }
<ruby[bot]> dminuoso_: # => {"pullups"=>["sets", "reps", "weight"], "pushups"=>["sets", "reps"]} (https://eval.in/663777)
<emilkarl> :)
<emilkarl> thanks
troulouliou_div2 has quit [Ping timeout: 260 seconds]
<dminuoso_> emilkarl: The block is a bit inelegant, but I cba to make it elegant.
tubuliferous has joined #ruby
<emilkarl> cba?
nettoweb has quit [Ping timeout: 252 seconds]
harushimo has quit [Quit: This computer has gone to sleep]
SesMan has quit [Read error: Connection reset by peer]
harushimo has joined #ruby
SesMan has joined #ruby
nettoweb has joined #ruby
DLSteve has joined #ruby
Guest66 has joined #ruby
blackmesa has quit [Quit: WeeChat 1.5]
arooni has joined #ruby
phredus has joined #ruby
wldcordeiro has quit [Ping timeout: 260 seconds]
sepp2k has joined #ruby
ogotai has joined #ruby
griffindy has joined #ruby
redpants has joined #ruby
Guest66 has quit [Ping timeout: 252 seconds]
<manveru> can't be assed
pawnbox has joined #ruby
mim1k|work has quit [Ping timeout: 244 seconds]
RubyBerinner has joined #ruby
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
<RubyBerinner> Hi, I am a total beginner and I have a question, what is the name of this ? - something_true? true : false
<dminuoso_> ruby[bot]: a ? b : c is called the ternary operator
EdwardIII has left #ruby [#ruby]
<ccooke> that's the ternary operator
<RubyBerinner> ohh, thanks guys.
Blueby has joined #ruby
y2mq37 has quit [Ping timeout: 260 seconds]
murilo has quit [Quit: Leaving]
yqt has joined #ruby
Snowy has quit [Ping timeout: 260 seconds]
last_staff has joined #ruby
troulouliou_div2 has joined #ruby
harushimo has quit [Quit: This computer has gone to sleep]
sdothum has joined #ruby
roflmyeggo has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tubuliferous has quit [Ping timeout: 260 seconds]
harushimo has joined #ruby
tildes has joined #ruby
pawnbox has quit [Remote host closed the connection]
Hyuk has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bturker_ has joined #ruby
hutch34 has joined #ruby
<dyjakan> RubyBerinner: also you'll find it in other languages (called same)
VladGh has quit [Remote host closed the connection]
pawnbox_ has joined #ruby
dopamean1 has quit [Ping timeout: 250 seconds]
roflmyeggo has quit [Ping timeout: 245 seconds]
n8o has left #ruby ["Textual IRC Client: www.textualapp.com"]
<dminuoso_> Also called Elvis operator by some...
<manveru> >> %w[a_z a_y a_x b_y a_y b_t].each_with_object(Hash.new{|h,k| h[k] = [] }){|i,o| k, v = i.split('_'); o[k] << v }
<ruby[bot]> manveru: # => {"a"=>["z", "y", "x", "y"], "b"=>["y", "t"]} (https://eval.in/663802)
VladGh has joined #ruby
<dminuoso_> manveru: Thanks, I knew I could rely on someone being arsed. :p
<manveru> :P
platzhirsch has quit [Quit: WeeChat 1.4]
<manveru> there must be a prettier way... but not with only one iteration
yeticry has quit [Ping timeout: 260 seconds]
bturker has quit [Ping timeout: 256 seconds]
tcrypt has joined #ruby
porfa has quit [Quit: Porfa]
nuclearsandwich has quit [Ping timeout: 250 seconds]
yeticry has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tlaxkit has quit [Quit: tlaxkit]
pawnbox_ has quit [Ping timeout: 244 seconds]
SesMan has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
Heffree has quit [Ping timeout: 260 seconds]
harushimo has quit [Quit: This computer has gone to sleep]
ccmcdee-sfc has quit [Quit: WeeChat]
<ccooke> Technically any operator with three arguments is *a* ternary operator, but ?: is the only one that is actually common; almost all the languages since at least C forty-odd years ago have have it.
RubyBerinner has quit [Ping timeout: 260 seconds]
hexerrus has joined #ruby
<hexerrus> Hi everyone )
emilkarl has quit [Read error: Connection reset by peer]
harushimo has joined #ruby
ichkv has quit [Remote host closed the connection]
Hyuk has joined #ruby
modlin has joined #ruby
emilkarl has joined #ruby
PlasmaStar has quit [Ping timeout: 260 seconds]
rodfersou is now known as rodfersou|lunch
c355e3b has joined #ruby
patarr has joined #ruby
mim1k|work has joined #ruby
PlasmaStar has joined #ruby
nikivi has joined #ruby
Bish has quit [Ping timeout: 260 seconds]
<manveru> also interesting, there are also unary and binary operators :)
<manveru> unary is like !foo, binary is like foo|bar
<dminuoso_> manveru: Once you start looking at formal grammars, this becomes much more obvious too. :)
<manveru> yeah, i first realized that when i wrote my own language
<dminuoso_> manveru: The C grammar for example has a set of rules that can be reduces to "unary_expression" (which applies to stuff as ++i, sizeof(i), alignof(i) )
dinoangelov has joined #ruby
<dminuoso_> The last two examples are less obvious to the user.
cgfbee has quit [Read error: Connection reset by peer]
<manveru> unary is basically any function that takes one argument, while in ruby methods have two arguments at least
matata has joined #ruby
<matata> Hi
<manveru> so they're binary :)
mim1k|work has quit [Ping timeout: 260 seconds]
harushimo has quit [Quit: This computer has gone to sleep]
<manveru> since you always pass the object you want to work on
synthroid has quit [Remote host closed the connection]
malconis has quit [Ping timeout: 244 seconds]
<manveru> in python that's the 'self' you always get
Expanse is now known as nOgAnOo
<manveru> while in ruby it's implicit
SteenJobs has joined #ruby
nOgAnOo has quit [Changing host]
nOgAnOo has joined #ruby
nOgAnOo has joined #ruby
nOgAnOo was kicked from #ruby by ruby[bot] [was banned before]
gingray has quit [Ping timeout: 260 seconds]
<manveru> once i realized that, i was much more ready to move to functional languages
<djellemah> matata: hakuna
<matata> What's the best way to read first 2 lines from the STDIN ? I'm using STDIN.read but not really sure how I can read only few lines. The problem is that file is really big and I just want to check first 2-3 lines and exit.
<dminuoso_> manveru: next up on my list is to learn Haskell
malconis has joined #ruby
<dminuoso_> matata: Please look at the IO class
<manveru> matata: ruby -e '2.times{ puts gets }' < somefile
ferr has quit [Quit: WeeChat 1.5]
<dminuoso_> manveru: You can use IO#readline (which is essentially just IO#gets)
aupadhye has quit [Ping timeout: 250 seconds]
ferr has joined #ruby
<manveru> actually, print gets, since it has a newline already
Akuma0n3 has quit [Read error: Connection reset by peer]
<manveru> but yeah
harushimo has joined #ruby
<chris2> doesnt matter for puts
<manveru> true that :)
Akuma0n3 has joined #ruby
<dminuoso_> matata: and that last lane regarding IO#readline was meant for you
<dminuoso_> matata: Its probably a good thing if you get familiar with the entire IO class
<dminuoso_> (It gives you a better understanding on how IO interaction in general works. The knowledge can be applied to other languages such as C too)
<matata> ok, will check it :)
<matata> thanks
<djellemah> matata: $stdin.each_line.lazy.take(2).to_a
cgfbee has joined #ruby
<adam12> I wonder how that fairs against 2.times.map { $stdin.gets }
nettoweb has joined #ruby
patarr has quit [Quit: patarr]
SesMan has quit [Read error: Connection reset by peer]
dopamean1 has joined #ruby
SesMan has joined #ruby
<manveru> 'puts $stdin.each_line.take(2)'
<manveru> works too
<manveru> each_line should be lazy already
dopamean1 has quit [Client Quit]
tk__ has quit [Quit: ばいばい]
dminuoso_ has quit [Ping timeout: 244 seconds]
zacts has quit [Quit: WeeChat 1.6]
zacts has joined #ruby
nowhereFast has quit [Remote host closed the connection]
Hyuk has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
blaxter has quit [Quit: foo]
tonini has quit [Quit: Connection closed for inactivity]
hexerrus has quit [Quit: Leaving.]
harushimo has quit [Quit: This computer has gone to sleep]
dminuoso_ has joined #ruby
* apeiros still prefers `Array.new(n) {` over `n.times.map {`
synthroid has joined #ruby
vuoto has joined #ruby
redpants has quit [Ping timeout: 256 seconds]
Hyuk has joined #ruby
* dminuoso_ still prefers oreo cookies over triple choc chip cookies
<ccooke> apeiros: why, ooi?
Hyuk has quit [Client Quit]
<apeiros> Array.new says more "I want an array" than n.times
Rickmasta has quit [Ping timeout: 250 seconds]
mim1k|work has joined #ruby
lenwood has quit [Ping timeout: 265 seconds]
fullofcaffeine has joined #ruby
Rickmasta has joined #ruby
pandaant has quit [Remote host closed the connection]
rippa has joined #ruby
harushimo has joined #ruby
nuclearsandwich has joined #ruby
igniting has quit [Ping timeout: 256 seconds]
pawnbox has joined #ruby
slackbotgz has joined #ruby
dionysus69 has joined #ruby
porfa has joined #ruby
<porfa> hell
<porfa> o
tlaxkit has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Gasher has joined #ruby
mark_66 has quit [Quit: Leaving.]
cdg has quit [Remote host closed the connection]
harushimo has quit [Quit: This computer has gone to sleep]
hexerrus has joined #ruby
vondruch has quit [Ping timeout: 250 seconds]
dviola has joined #ruby
ichkv has joined #ruby
wldcordeiro has joined #ruby
conta has quit [Ping timeout: 256 seconds]
govg has quit [Quit: leaving]
tdy1 has quit [Ping timeout: 252 seconds]
bluOxigen has quit [Ping timeout: 250 seconds]
zerowaitstate has joined #ruby
polishdub has joined #ruby
maloik56 has joined #ruby
conta has joined #ruby
brendan- has joined #ruby
dminuoso_ has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
patarr has joined #ruby
conta has quit [Ping timeout: 260 seconds]
maloik has quit [Ping timeout: 252 seconds]
Snowy has joined #ruby
harushimo has joined #ruby
gmci has joined #ruby
cschneid_ has joined #ruby
hutch34 has joined #ruby
chopin has joined #ruby
lucas_ has quit [Quit: leaving]
emilkarl has quit [Quit: Textual IRC Client: www.textualapp.com]
Jameser has joined #ruby
wugy has quit []
lucas_ has joined #ruby
nikivi has quit [Quit: zzz]
patarr has quit [Quit: patarr]
marr has quit [Ping timeout: 250 seconds]
porfa has quit [Ping timeout: 252 seconds]
disconnekted has quit [Ping timeout: 260 seconds]
conta has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
rodfersou|lunch is now known as rodfersou
Snowy has joined #ruby
lucas_ is now known as lucas
hexerrus has quit [Quit: Leaving.]
lucas has quit [Changing host]
lucas has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
bluOxigen has joined #ruby
saneax is now known as saneax-_-|AFK
GodFather has quit [Ping timeout: 244 seconds]
inchw0rm has quit [Ping timeout: 252 seconds]
jaequery has joined #ruby
Kendos-Kenlen has joined #ruby
slackbotgz has quit [Remote host closed the connection]
jaequery has quit [Client Quit]
jaequery has joined #ruby
hexerrus has joined #ruby
mvxlr has joined #ruby
<mvxlr> any good way to get number of months between 2 dates ?
jphase has joined #ruby
shayan_ has quit [Quit: shayan_]
Derperperd has joined #ruby
synthroid has quit [Remote host closed the connection]
matata has quit [Quit: Lost terminal]
<chris2> add months to the older one until its after the other one?
tdy1 has joined #ruby
roamingdog has quit [Read error: Connection reset by peer]
Emmanuel_Chanel has joined #ruby
roamingdog has joined #ruby
Devalo has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
vuoto has quit [Remote host closed the connection]
jphase has quit [Client Quit]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
Devalo has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
<apeiros> mvxlr: year*12+month-1 for both, get the difference
<apeiros> ±1 depending on the day
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ferr> Any ideas why my cronjobs fails? https://gist.github.com/Fercell/8569fb1cac4ab8df4f04a556505b20ce running it manually without /bin/bash -l -c works fine
davidt has joined #ruby
<mvxlr> chris2, apeiros yeah cool
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
Pixi_ has quit [Quit: Pixi_]
Devalo has joined #ruby
flashpoi_ has joined #ruby
<chris2> apeiros: sure that works for all month lenghts?
<frankiee_> ferr: bash is full of security holes, i highly recommend zsh
<Nilium> I recommend ash.
<chris2> oO
<Nilium> Or just busybox sh.
<apeiros> chris2: better than adding months to a date, which will change your 31st to 28th eventually ;-)
<frankiee_> can't go wrong with sh
* Nilium goes back to using zsh
varsha has quit [Quit: Connection closed for inactivity]
<apeiros> (or to 1st-3rd of the following month in some languages)
<frankiee_> ferr: also check out https://github.com/javan/whenever to make things easier
<chris2> apeiros: true
<apeiros> chris2: the month length is irrelevant with that method. or do you see a case where it would matter?
<chris2> no, i think you are right
<chris2> should have come up with that myself :P
flashpoint9 has quit [Ping timeout: 256 seconds]
AndrewIsHere has joined #ruby
<apeiros> :D
Snowy has quit [Ping timeout: 250 seconds]
patarr has joined #ruby
dinoangelov has quit [Read error: Connection reset by peer]
bradland has joined #ruby
bradland has quit [Client Quit]
synthroid has joined #ruby
sepp2k has quit [Quit: Leaving.]
porfa has joined #ruby
amclain has joined #ruby
synthroi_ has joined #ruby
chopin has quit []
GodFather has joined #ruby
aufi has quit [Quit: Leaving]
RedFromage has joined #ruby
synthroid has quit [Ping timeout: 260 seconds]
jsrn_ has quit [Quit: Leaving]
SesMan has quit [Ping timeout: 256 seconds]
harushimo has quit [Quit: This computer has gone to sleep]
flashpoi_ has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
harushimo has joined #ruby
tyang_ has joined #ruby
RedFromage has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
postmodern has joined #ruby
Akuma has joined #ruby
Torkable has joined #ruby
tyang has quit [Ping timeout: 244 seconds]
Torkable is now known as Guest80927
ChiefAlexander has joined #ruby
Guest80927 is now known as Torkable
Jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Akuma0n3 has quit [Ping timeout: 260 seconds]
tlaxkit has quit [Quit: tlaxkit]
shayan_ has joined #ruby
aswen has quit [Quit: WeeChat 1.5]
shayan_ has quit [Client Quit]
chouhoulis has quit [Remote host closed the connection]
jphase has joined #ruby
skweek has quit [Remote host closed the connection]
ltd has quit [Ping timeout: 260 seconds]
ltd has joined #ruby
elifoster has joined #ruby
mim1k|work has quit [Ping timeout: 256 seconds]
skweek has joined #ruby
alaibe has quit [Ping timeout: 260 seconds]
alaibe has joined #ruby
tomphp has quit [Ping timeout: 260 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davidt has quit []
mim1k|work has joined #ruby
nitric has joined #ruby
flashpoint9 has joined #ruby
claudiuinberlin has quit []
InternetFriend has joined #ruby
Derperperd has quit [Quit: Derperperd]
cdg has joined #ruby
blackwind_123 has quit [Read error: Connection reset by peer]
igniting has joined #ruby
psmolen has quit [Ping timeout: 265 seconds]
flashpoint9 has quit [Read error: Connection reset by peer]
flashpoi_ has joined #ruby
aryaching has joined #ruby
Devalo has quit [Remote host closed the connection]
gusrub has joined #ruby
JoshS has quit [Ping timeout: 260 seconds]
psmolen has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
patarr has quit [Quit: patarr]
Yzguy has joined #ruby
tyang_ has quit [Read error: Connection reset by peer]
davidt has joined #ruby
tyang_ has joined #ruby
arashb has joined #ruby
hahuang65 has joined #ruby
jcao219 has joined #ruby
blackwind_123 has joined #ruby
Derperperd has joined #ruby
Derperperd has quit [Client Quit]
wldcordeiro has quit [Ping timeout: 265 seconds]
<guardian> hello, it seems including a module and then undef foo to undefine method foo works, but is this the proper way to do it?
arashb has quit [Ping timeout: 250 seconds]
synthroid has joined #ruby
Devalo has joined #ruby
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
mtkd has quit [Ping timeout: 256 seconds]
<porfa> help me im rusted, i lost my old works and can’t get this new one to work
hahuang65 has quit [Ping timeout: 256 seconds]
synthroi_ has quit [Ping timeout: 265 seconds]
allomov has quit [Remote host closed the connection]
Silthias1 has joined #ruby
<havenwood> porfa: ##rust is for rust-related discussion
mtkd has joined #ruby
Silthias has quit [Ping timeout: 256 seconds]
<porfa> hahah
ziarkaen has quit [Ping timeout: 245 seconds]
SeepingN has joined #ruby
<havenwood> guardian: why do you want to undef a method from the included module?
jackjackdripper has joined #ruby
ziarkaen has joined #ruby
harushimo has quit [Quit: This computer has gone to sleep]
hahuang65 has joined #ruby
<havenwood> guardian: buy yeah, undef is prim and proper
harushimo has joined #ruby
asahi has joined #ruby
<guardian> because I only want a few from the module and I don't own the module
SCHAAP137 has joined #ruby
ziarkaen has quit [Ping timeout: 252 seconds]
Yzguy has quit [Quit: Zzz...]
JoshS has joined #ruby
Yzguy has joined #ruby
rodfersou has quit [Ping timeout: 265 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
TPug has joined #ruby
mim1k|work has quit [Ping timeout: 265 seconds]
Humdai has quit [Quit: Leaving]
<Mrgoose> Do you all separate integration and unit tests into different folders?
<asahi> I use rbenv, and when I call "ruby -v" in a directory that has a Gemfile in it, I get a different version from "rbenv local". The Gemfile doesn't specify a ruby version, so where is the ruby version being specified?
wldcordeiro has joined #ruby
<havenwood> asahi: Is there a .ruby-version file?
gusrub has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
jolamb has quit [Quit: ZNC - http://znc.in]
jolamb has joined #ruby
rodfersou has joined #ruby
harushimo has quit [Quit: This computer has gone to sleep]
tercenya has quit [Remote host closed the connection]
marr has joined #ruby
<asahi> havenwood: yes. .ruby-version has the same version as what I get from "rbenv local"
tercenya has joined #ruby
gianluca_r has joined #ruby
<gianluca_r> hello
<asahi> which is 2.2.4. rbenv global is 2.3.0, which is what I get when I call "ruby -v" in the directory that has the Gemfile
jcao219 has quit [Ping timeout: 245 seconds]
jolamb has quit [Client Quit]
<havenwood> asahi: Is $RBENV_VERSION set?
<havenwood> gianluca_r: hi
jolamb has joined #ruby
<asahi> havenwood: no, it's not
synthroid has quit []
SCHAAP137 has quit [Ping timeout: 260 seconds]
<havenwood> asahi: Time to switch to chruby? :-P
Beams has quit [Quit: .]
<asahi> havenwood: I guess I'll look into it. I didn't know that rbenv was going out of favor
<gianluca_r> is pry the only alternative to irb ?
<havenwood> gianluca_r: Nope, but it's the most popular alternative.
<gianluca_r> k, ty
davidt has quit []
<havenwood> gianluca_r: You might also want to take a look at ripl.
* gianluca_r looking
ichkv has quit [Remote host closed the connection]
<gianluca_r> sounds interesting thanks havenwood
davidt has joined #ruby
alaibe has quit [Ping timeout: 256 seconds]
jhack has joined #ruby
paulpetone has joined #ruby
<paulpetone> hi
<havenwood> paulpetone: hi
JoshS has quit [Ping timeout: 250 seconds]
yardenbar has quit [Ping timeout: 256 seconds]
tercenya has quit [Remote host closed the connection]
paulpetone has quit [Client Quit]
disconnected has joined #ruby
tercenya has joined #ruby
Xiti has joined #ruby
mikecmpbll has joined #ruby
kicksled has quit [Ping timeout: 250 seconds]
mvxlr has quit [Ping timeout: 252 seconds]
Silthias1 has quit [Ping timeout: 256 seconds]
hutch34 has quit [Ping timeout: 256 seconds]
Silthias has joined #ruby
SCHAAP137 has joined #ruby
llua has left #ruby [#ruby]
llua has joined #ruby
troulouliou_div2 has quit [Ping timeout: 260 seconds]
meshsmith has joined #ruby
blackmesa has joined #ruby
gusrub has joined #ruby
jahmalz has quit [Quit: Leaving]
<gianluca_r> cyall
gianluca_r has left #ruby ["Konversation terminated!"]
synthroid has joined #ruby
Xiti has quit [Quit: Xiti]
workmad3 has joined #ruby
rajdesai has joined #ruby
harushimo has joined #ruby
rajdesai has quit [Client Quit]
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
Yzguy has quit [Quit: Bye]
weaksauce has joined #ruby
Akuma0n3 has joined #ruby
gusrub has quit [Remote host closed the connection]
tdy1 has quit [Ping timeout: 250 seconds]
gusrub has joined #ruby
jaequery has joined #ruby
Phage has joined #ruby
gusrub has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
gusrub has joined #ruby
Akuma has quit [Ping timeout: 265 seconds]
symm- has joined #ruby
frankiee_ has quit [Quit: leaving]
whathappens has joined #ruby
tdy1 has joined #ruby
whathappens has quit [Remote host closed the connection]
[Butch] has joined #ruby
whathappens has joined #ruby
harushimo has quit [Quit: This computer has gone to sleep]
Xiti has joined #ruby
null_ref has joined #ruby
meshsmith has quit [Quit: Leaving]
ferr has quit [Quit: WeeChat 1.5]
kireevco_ has quit []
xall has quit [Ping timeout: 260 seconds]
kireevco_ has joined #ruby
rajdesai has joined #ruby
alaibe has joined #ruby
kireevco_ has quit [Client Quit]
conah has joined #ruby
konah has joined #ruby
kireevco has joined #ruby
gusrub has quit [Remote host closed the connection]
NTrash has joined #ruby
gusrub has joined #ruby
duderonomy has joined #ruby
rodfersou is now known as rodfersou|afk
duderonomy is now known as Guest60828
workmad3 has quit [Ping timeout: 265 seconds]
patarr has joined #ruby
elaptics has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
gusrub has quit [Ping timeout: 252 seconds]
nettoweb has joined #ruby
rajdesai has quit [Remote host closed the connection]
rajdesai has joined #ruby
ramfjord has joined #ruby
meshsmith has joined #ruby
nettoweb has quit [Client Quit]
shayan_ has joined #ruby
tcrypt has quit [Quit: tcrypt]
harushimo has joined #ruby
shayan_ has left #ruby [#ruby]
rajdesai has quit [Ping timeout: 245 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
rajdesai has joined #ruby
gusrub has joined #ruby
gusrub has quit [Remote host closed the connection]
ascarter has joined #ruby
pawnbox has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
gusrub has joined #ruby
flashpoi_ has quit [Ping timeout: 252 seconds]
meshsmith has quit [Quit: Leaving]
tuxaanand has joined #ruby
pawnbox has joined #ruby
meshsmith has joined #ruby
Salve has joined #ruby
roamingdog has joined #ruby
lenwood has joined #ruby
Guest60828 has quit [Quit: Textual IRC Client: www.textualapp.com]
duderono_ has joined #ruby
sneakers has joined #ruby
nettoweb has joined #ruby
flashpoi_ has joined #ruby
meshsmith has quit [Quit: Leaving]
meshsmith has joined #ruby
mountpoint has joined #ruby
whathappens has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 260 seconds]
bluOxigen has joined #ruby
flashpoint9 has quit [Ping timeout: 256 seconds]
yardenbar has joined #ruby
gizmore has quit [Ping timeout: 244 seconds]
gizmore has joined #ruby
flashpoint9 has joined #ruby
JoshS has joined #ruby
kegster has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
hahuang61 has joined #ruby
flashpoi_ has quit [Ping timeout: 245 seconds]
hahuang65 has quit [Ping timeout: 245 seconds]
rajdesai has quit [Remote host closed the connection]
rajdesai has joined #ruby
flashpoi_ has joined #ruby
whathappens has joined #ruby
bturker_ has quit [Ping timeout: 256 seconds]
hypercube32 has joined #ruby
n8o has joined #ruby
kyle__ has quit [Quit: WeeChat 1.6]
chouhoulis has joined #ruby
flashpoint9 has quit [Ping timeout: 265 seconds]
rajdesai has quit [Ping timeout: 260 seconds]
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
flashpoint9 has joined #ruby
icio has joined #ruby
flashpoi_ has quit [Ping timeout: 256 seconds]
rcvalle has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
icio has left #ruby [#ruby]
whathappens has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
malconis has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
malconis has joined #ruby
flashpoi_ has joined #ruby
quazimodo has quit [Ping timeout: 244 seconds]
BTRE has quit [Ping timeout: 265 seconds]
merlin2049er has joined #ruby
cr3 has joined #ruby
merlin2049er has left #ruby [#ruby]
flashpoint9 has quit [Ping timeout: 245 seconds]
flashpoint9 has joined #ruby
bocaneri has quit [Remote host closed the connection]
<cr3> hi folks, might there be a way to use a cache on the filesystem with bundle install/update? I'm seeing ~/.bundle and ~/.gem populated but they don't seem to contain gems, so the next bundle install/update seems to download everything again.
tuxaanand has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
flashpo__ has joined #ruby
flashpoi_ has quit [Ping timeout: 245 seconds]
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
vuoto has joined #ruby
flashpoint9 has quit [Ping timeout: 250 seconds]
whathappens has quit [Read error: Connection reset by peer]
rajdesai has joined #ruby
flashpoint9 has joined #ruby
whathappens has joined #ruby
flashpo__ has quit [Ping timeout: 256 seconds]
SteenJobs has quit [Quit: SteenJobs]
mvxlr has joined #ruby
kirun has joined #ruby
duderono_ has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch34 has joined #ruby
flashpoi_ has joined #ruby
brendan- has joined #ruby
Kendos-Kenlen has quit [Ping timeout: 260 seconds]
manjaro-kde5_ has joined #ruby
lenwood has quit [Quit: Konversation terminated!]
flashpoint9 has quit [Ping timeout: 256 seconds]
SteenJobs has joined #ruby
harushimo has quit [Quit: This computer has gone to sleep]
flashpoint9 has joined #ruby
hutch34 has quit [Ping timeout: 245 seconds]
flashpo__ has joined #ruby
flashpoi_ has quit [Ping timeout: 256 seconds]
SteenJobs has quit [Client Quit]
cdg has quit [Remote host closed the connection]
Scriptonaut has joined #ruby
mountpoint has quit [Quit: Konversation terminated!]
vuoto has quit [Remote host closed the connection]
tomphp has joined #ruby
Scriptonaut has left #ruby [#ruby]
flashpoint9 has quit [Ping timeout: 244 seconds]
bturker has joined #ruby
nikivi has joined #ruby
tercenya has quit [Remote host closed the connection]
dopamean_ has joined #ruby
tercenya has joined #ruby
harushimo has joined #ruby
Guest11168 has joined #ruby
Guest11168 is now known as kyle__
SteenJobs has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Akuma0n3 has quit [Read error: Connection reset by peer]
roamingdog has quit [Remote host closed the connection]
Akuma0n3 has joined #ruby
roamingdog has joined #ruby
mountpoint has joined #ruby
mountpoint has quit [Max SendQ exceeded]
flashpoint9 has joined #ruby
roamingdog has quit [Remote host closed the connection]
ixti has joined #ruby
roamingdog has joined #ruby
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
agent_white has joined #ruby
SteenJobs has quit [Client Quit]
roamingdog has quit [Remote host closed the connection]
mountpoint has joined #ruby
mountpoint has quit [Max SendQ exceeded]
dionysus69 has quit [Ping timeout: 256 seconds]
flashpo__ has quit [Ping timeout: 250 seconds]
JoshS has quit [Ping timeout: 244 seconds]
roamingdog has joined #ruby
<agent_white> Afternoon folks
roamingdog has quit [Remote host closed the connection]
SteenJobs has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
brendan- has joined #ruby
roamingdog has joined #ruby
mountpoint has joined #ruby
mountpoint has quit [Max SendQ exceeded]
flashpoi_ has joined #ruby
al2o3-cr has quit [Ping timeout: 250 seconds]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
SteenJobs has quit [Quit: SteenJobs]
flashpoint9 has quit [Ping timeout: 256 seconds]
roamingdog has quit [Ping timeout: 244 seconds]
mountpoint has joined #ruby
Gasher has quit [Quit: Leaving]
Gasher has joined #ruby
dionysus69 has joined #ruby
Tomthetom has joined #ruby
flashpoint9 has joined #ruby
Tomthetom has quit [Remote host closed the connection]
yardenbar has quit [Ping timeout: 252 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
flashpoi_ has quit [Ping timeout: 256 seconds]
Rodya_ has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
brendan- has joined #ruby
flashpoi_ has joined #ruby
flashpoint9 has quit [Ping timeout: 245 seconds]
sepp2k has joined #ruby
NTrash has quit [Quit: Konversation terminated!]
<zacts> hi rubyists
<zacts> I'm reading the Well Grounded Rubyist, and I like it
<zacts> latest edition
<zacts> So it's my 2nd book after Head First Ruby
<zacts> anyway, yeah back to #ruby :-)
JeanCarloMachado has quit [Read error: Connection reset by peer]
TomyWork has quit [Ping timeout: 256 seconds]
vqrs has quit [Ping timeout: 256 seconds]
modlin has quit [Ping timeout: 250 seconds]
Akuma has joined #ruby
Akuma0n3 has quit [Read error: Connection reset by peer]
flashpoint9 has joined #ruby
meshsmith has quit [Quit: Leaving]
meshsmith has joined #ruby
Devalo has quit [Remote host closed the connection]
vqrs has joined #ruby
baweaver is now known as baweaver_away
JeanCarloMachado has joined #ruby
flashpoi_ has quit [Ping timeout: 256 seconds]
blackmesa has joined #ruby
ocbtec has quit [Quit: leaving]
bturker has quit [Ping timeout: 256 seconds]
flashpoi_ has joined #ruby
Cohedrin has joined #ruby
manjaro-kde5_ has quit [Ping timeout: 250 seconds]
flashpoint9 has quit [Ping timeout: 245 seconds]
Cohedrin has quit [Client Quit]
gusrub has quit [Remote host closed the connection]
JoshS has joined #ruby
gusrub has joined #ruby
djellemah_ has joined #ruby
matp has quit [Ping timeout: 260 seconds]
matp_ has joined #ruby
electrostat has quit [Ping timeout: 250 seconds]
johnmilton has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
benlieb has joined #ruby
matp_ has quit [Ping timeout: 250 seconds]
Cohedrin has joined #ruby
nuclearsandwich has quit [Ping timeout: 260 seconds]
baweaver_away is now known as baweaver
gusrub has quit [Remote host closed the connection]
tyang_ has quit [Read error: Connection reset by peer]
tyang_ has joined #ruby
jackjackdripper has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
matp has joined #ruby
inchw0rm has joined #ruby
disconnekted has joined #ruby
flashpoi_ has quit []
BTRE has joined #ruby
DTZUZU has quit [Read error: Connection reset by peer]
flashpoint9 has joined #ruby
jaruga has quit [Quit: jaruga]
ChiefAlexander has quit [Quit: Leaving...]
nuclearsandwich has joined #ruby
electrostat has joined #ruby
minimalism has joined #ruby
duderonomy has joined #ruby
duderonomy is now known as Guest32156
zukin has joined #ruby
flashpoi_ has joined #ruby
flashpoi_ has quit [Remote host closed the connection]
flashpoi_ has joined #ruby
flashpoi_ is now known as flashpoint9_
johnmilton has joined #ruby
<porfa> hmmmm
<porfa> so … blabllba.first shows me first result
<porfa> what if i want second?
<porfa> or last?
flashpoint9_ has quit [Client Quit]
flashpoi_ has joined #ruby
flashpoi_ is now known as flashpoint9_
<porfa> foundit
flashpoint9 has quit [Ping timeout: 245 seconds]
Akuma0n3 has joined #ruby
Akuma has quit [Read error: Connection reset by peer]
Akuma0n3 has quit [Read error: Connection reset by peer]
<apeiros> you use rails and then do .second, .third
<apeiros> (sadly I'm not even kidding)
tdy1 has quit [Ping timeout: 260 seconds]
patarr has quit [Quit: patarr]
<SeepingN> x.first(4).last
conta has quit [Ping timeout: 250 seconds]
lele has quit [Ping timeout: 250 seconds]
elastix has joined #ruby
nikivi has quit [Quit: irc]
nikivi has joined #ruby
lele has joined #ruby
flashpoint9 has joined #ruby
nikivi has quit [Client Quit]
modlin has joined #ruby
flashpoint9_ has quit [Ping timeout: 260 seconds]
<apeiros> SeepingN: you forgot the <sarcasm> tags
<SeepingN> that's html </s>
gusrub has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zukin has quit [Ping timeout: 250 seconds]
lifted has joined #ruby
binfalse has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
alaibe has quit [Quit: WeeChat 1.5]
zukin has joined #ruby
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
cdg has joined #ruby
elifoster has quit [Quit: escuela]
patarr has joined #ruby
zenspider has joined #ruby
Guest32156 has quit [Quit: Textual IRC Client: www.textualapp.com]
zenspider has quit [Changing host]
zenspider has joined #ruby
<zenspider> anyone using suture yet?
<apeiros> what's that?
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
paha80 has joined #ruby
TomyLobo has joined #ruby
symm- has quit [Ping timeout: 256 seconds]
slaterson has joined #ruby
conah has quit [Read error: Connection reset by peer]
konah has quit [Read error: Connection reset by peer]
slaterson has quit [Client Quit]
bjh13 has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
gusrub has quit [Remote host closed the connection]
hutch34 has joined #ruby
meshsmith has quit [Quit: Leaving]
GodFather_ has joined #ruby
symm- has joined #ruby
zukin has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
tdy1 has joined #ruby
GodFather has quit [Ping timeout: 244 seconds]
zukin has joined #ruby
Devalo has quit [Ping timeout: 245 seconds]
ldnunes has quit [Quit: Leaving]
nikivi has joined #ruby
tyang_ has quit [Read error: Connection reset by peer]
benlieb has quit [Quit: benlieb]
anisha has joined #ruby
benlieb has joined #ruby
paha80 has quit [Quit: Textual IRC Client: www.textualapp.com]
SCHAAP137 has quit [Quit: Leaving]
Joufflu has joined #ruby
merlin2049er has joined #ruby
merlin2049er has left #ruby [#ruby]
gusrub has joined #ruby
SteenJobs has joined #ruby
gusrub has quit [Remote host closed the connection]
modlin has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
Madplatypus has joined #ruby
Phage has quit [Quit: Textual IRC Client: www.textualapp.com]
yeticry has quit [Quit: leaving]
Phage- has joined #ruby
<sagax> how to work with dictionary like as dict["one.two.three"]
<sagax> or dict.one.two.three
<kyle__> sagax: Ehh?
<sagax> hm
Phage- is now known as Phage
Phage has quit [Changing host]
Phage has joined #ruby
<sagax> i have dict dict={:one => 1, :two => 2, :three => 3}
<kyle__> you want the keys of the Hash to work as methods on it?
<sagax> not, other
<sagax> i have dict dict={:one => {:one => {:one => 1}}, :two => {:two => {:two => 2}}}
nikivi has quit [Quit: irc]
<sagax> i have change value like as dict["one.one.one"]
<kyle__> ruby=>hash, *.net/vb & python => dict. Just FYI.
elastix has quit [Quit: Leaving]
merlin2049er has joined #ruby
<sagax> or dict.one.one.one
merlin2049er has left #ruby [#ruby]
<sagax> hash, true
<sagax> not dict, hash, just hash
<sagax> but this hash["one"]["one"]["one"] - :(((
SCHAAP137 has joined #ruby
ur5us has joined #ruby
ur5us_ has joined #ruby
<kyle__> sagax: it lets you use almost anything as a key though. I guess I don't quite follow what you're trying to do.
<zenspider> ugh
merlin2049er has joined #ruby
<sagax> i wish change value in hash like as hash["one.one.one"] or hash.one.one.one
merlin2049er has left #ruby [#ruby]
<kyle__> If you're not adverse to monkey-patching, you could use method_missing to look for matching keys?
<sagax> but not hash["one"]["one"]["one"]
PlasmaStar has quit [Ping timeout: 265 seconds]
<zenspider> what happens when your key has a period in it? or isn't a string? or or or
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kyle__> zenspider: Then you get all sorts of interesting behavior ;)
<zenspider> "interesting"... yes
zukin has quit [Ping timeout: 256 seconds]
harushimo has quit [Quit: This computer has gone to sleep]
<sagax> I have a hash with a deep enclosure
<zenspider> sagax: look at String.split and Enumerable.reduce
zeroDi has joined #ruby
<zenspider> I think it's a terrible idea, personally. address the real problem, not the symptom
blackmes1 has joined #ruby
tomphp has joined #ruby
blackmesa has quit [Read error: Connection reset by peer]
gingray has joined #ruby
ur5us_ has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 260 seconds]
patarr has quit [Quit: patarr]
<kyle__> sagax: not to be discouraging, but maybe refactoring would be good? How big and how deep is this hash?
<havenwood> >> class SagaxDict < Hash; def [] v; dig *v.split('.') end end; dict = SagaxDict.new; dict['one'] = {}; dict['one']['one'] = 'bah humbug!'; dict['one.one']
<ruby[bot]> havenwood: # => "bah humbug!" (https://eval.in/663978)
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
ur5us has joined #ruby
ur5us_ has joined #ruby
tdy1 has quit [Ping timeout: 245 seconds]
<apeiros> zenspider: I think I'd use #dig with 2.3 instead of inject. or am I missing something?
jewstein_webber has quit [Remote host closed the connection]
<sagax> kyle__: 3-5 level
bjh13 has quit [Remote host closed the connection]
<apeiros> hm, missing key behaviour might be different
<kyle__> sagax: That's not too bad actually. I don't like to go much lower than 3, but there can be reasons...
<sagax> hm, well, i go to read manual https://docs.ruby-lang.org/en/2.3.0/Hash.html and maybe something will turn out
anisha has quit [Quit: This computer has gone to sleep]
<kyle__> ok. I'm not familiar with dig....
Rodya_ has quit [Remote host closed the connection]
<apeiros> >> hash = {:one => {:one => {:one => 1}}, :two => {:two => {:two => 2}}}; hash.dig(:one, :one, :one)
<ruby[bot]> apeiros: # => 1 (https://eval.in/663979)
Rodya_ has joined #ruby
JeanCarloMachado has joined #ruby
patarr has joined #ruby
<kyle__> Ahh. started with 2.3?
<apeiros> yes
rajdesai has quit [Remote host closed the connection]
Rodya_ has quit [Ping timeout: 245 seconds]
rajdesai has joined #ruby
harushimo has joined #ruby
synthroid has quit []
teclator has quit [Ping timeout: 260 seconds]
whathappens has quit [Read error: Connection reset by peer]
rajdesai has quit [Ping timeout: 250 seconds]
roamingdog has joined #ruby
whathappens has joined #ruby
Guest24735 has joined #ruby
<porfa> hmmmm how do i gsub something with a var?
<Nilium> A var?
<porfa> variable
<Nilium> Like, var.gsub?
<porfa> ye
<Nilium> var.gsub then.
<porfa> but.. lets say “money=bad” lolo.gsub(‘good’,’$money’)
<porfa> whats the correc synthax?
hinbody has quit [Quit: leaving]
<porfa> i want to replace good with the contents of th money variable
<al2o3-cr> >> str = 'ice cold'; replace = 'damme'; str.gsub /ice/, replace
<Nilium> thing.gsub("replacement", money)
SteenJobs has quit [Quit: SteenJobs]
<ruby[bot]> al2o3-cr: # => "damme cold" (https://eval.in/663982)
PlasmaStar has joined #ruby
<Nilium> The ruby docs for String#gsub probably have examples of this.
claudiuinberlin has quit []
Guest24735 has quit [Quit: leaving]
<porfa> thank you sir
harushimo has quit [Quit: This computer has gone to sleep]
<porfa> why is that synthax really diferent from wtv im doing?
<porfa> looks lie a diferent language
<canton7> you can add brackets if you want
<canton7> str.gsub(/ice/, replace)
<canton7> and /ice/ is a regex - since it's not actually using any regex, you could use a string there
<canton7> str.gsub('ice', replace)
ramfjord has quit [Ping timeout: 252 seconds]
teclator has joined #ruby
ur5us has quit []
davidt has quit []
firstdayonthejob has joined #ruby
<zenspider> porfa: you really need to work on asking clearer questions
djellemah_ has quit [Ping timeout: 244 seconds]
ur5us_ has quit []
ur5us has joined #ruby
davidt has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
whathappens has joined #ruby
teclator has quit [Ping timeout: 260 seconds]
zapata has quit [Quit: WeeChat 1.6]
nowhereman has quit [Ping timeout: 245 seconds]
tdy1 has joined #ruby
blackmes1 has quit [Quit: WeeChat 1.5]
rakm has joined #ruby
baweaver is now known as baweaver_away
croberts has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<porfa> zenspider: ok, thak you
merlin2049er has joined #ruby
JeanCarloMachado has quit [Ping timeout: 265 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
gusrub has joined #ruby
lenwood has joined #ruby
sdwrage has joined #ruby
hexerrus has quit [Quit: Leaving.]
jxf has quit [Remote host closed the connection]
jxf has joined #ruby
gusrub has quit [Ping timeout: 256 seconds]
misterpink has quit [Read error: Connection reset by peer]
iamdevnul has quit []
l4v2 has joined #ruby
<l4v2> What is a possible way to do graphics in Ruby? In Java hey have the Swing library, what is Rubies equivilant?
harushimo has joined #ruby
anuxivm has joined #ruby
baweaver_away is now known as baweaver
[Butch] has quit [Quit: I'm out . . .]
yeticry has joined #ruby
mvxlr has joined #ruby
jackjackdripper1 has joined #ruby
biberu has quit []
Blueby has quit [Quit: Blueby]
jackjackdripper has quit [Read error: Connection reset by peer]
flashpoint9 has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 260 seconds]
Alphekka has joined #ruby
<Alphekka> hi
<Alphekka> is there someone who can take a look at a line of Ruby code for me?
<Alphekka> following through "Well grounded Rubyist 2nd edition" and coming across multiple syntax errors
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 260 seconds]
tercenya has quit [Remote host closed the connection]
Jonathel has joined #ruby
binfalse has quit [Remote host closed the connection]
zerowaitstate has quit [Quit: leaving]
tercenya has joined #ruby
<Jonathel> what is the best way to share logging facilities amongst classes? A module or just pass around a @logger object?
symm- has quit [Ping timeout: 256 seconds]
shredjs has joined #ruby
flashpoint9 has joined #ruby
xall has joined #ruby
electrostat has quit [Ping timeout: 250 seconds]
<shredjs> Hi i have a small question about query optimisation
<shredjs> im not that good in ruby and i have to optimise this request as it take too much time on my test app
<shredjs> print_format_groups = PrintFormatGroup.joins(:retailer).where(retailers: {guid: params[:guid]}, event_only: false, active: true, type: 'PrintingGroup').all
<shredjs> prints = printing_order.photos.collect {|photo| photo.prints}.reject {|print| print.empty?}.flatten
<shredjs> where printing_order = PrintingOrder.find order_id
<porfa> .split(" ") is giving me “245/65 17 “ instead of… “245/65,17,“
<havenwood> Alphekka: Show the code and error?
<shredjs> i did some .net and sql optimisatio nand sometimes its better to stay close of natives database operation or handle array
<havenwood> porfa: splitting what?
<porfa> the string
<porfa> i want to transform the string into an array
<porfa> so i should split it right?
misterpink has joined #ruby
<porfa> => "245/65 17 " i want it => "245/65,17,”
<sagax> "245/65 17 ".gsub(/\s/, ",")
Felipe__ has joined #ruby
<sagax> maybe this
Felipe__ has quit [Remote host closed the connection]
SteenJobs has joined #ruby
gusrub has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
whathappens has quit [Read error: Connection reset by peer]
<porfa> sagax thank you, but didn’t work
whathappens has joined #ruby
gusrub has quit [Remote host closed the connection]
SteenJobs has quit [Client Quit]
gusrub has joined #ruby
<havenwood> what does `\s` mean? what do you actually want here?
<havenwood> porfa: http://rubular.com
<sagax> it's space in regexp
<porfa> thanks
<porfa> the problem i guess, in the comand line it shows as space
<porfa> but i guess it isn’t
<porfa> its this “ “ inside the quotes.
<sagax> hm, strange, i test this "245/65 17 ".gsub(/\s/, ",") and it work
<porfa> it’s not a space, i did the gsub with physical pressed space, it didn’t work.. i copy pasted the space from the string, psted it the gsub and it worked...
<porfa> it replaced hmm
jaykill has joined #ruby
<eam> you may have unprintable characters in your string
<porfa> anyone used “COURSERA” ? thinking about enrroling in a ruby course
<al2o3-cr> porfa: "245/65 17 ".split(/[[:space:]]/)
<porfa> al2o3-cr: flawless worked too
dopamean_ has quit [Ping timeout: 245 seconds]
nowhereman has joined #ruby
QORRiE has joined #ruby
chouhoulis has quit [Remote host closed the connection]
disconnekted has quit []
nikivi has joined #ruby
<al2o3-cr> porfa: i prefer "245/65 17 ".split(/\p{Zs}/)
cr3 has quit [Quit: leaving]
Gasher has quit [Quit: Leaving]
Jonathel has quit [Quit: Leaving]
quazimodo has joined #ruby
Dobler has joined #ruby
<al2o3-cr> but whatever floats your boat
ramfjord has joined #ruby
zapata has joined #ruby
CalimeroTeknik has joined #ruby
patarr has quit [Quit: patarr]
malconis has quit [Read error: Connection reset by peer]
Alphekka has quit [Ping timeout: 260 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
SteenJobs has joined #ruby
harushimo has quit [Quit: This computer has gone to sleep]
flashpoint9 has quit [Remote host closed the connection]
gheegh has quit [Ping timeout: 244 seconds]
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
harushimo has joined #ruby
JeanCarloMachado has joined #ruby
asahi has quit [Quit: leaving]
electrostat has joined #ruby
Dobler has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nikivi has quit [Quit: irc]
croberts has joined #ruby
jcao219 has joined #ruby
patarr has joined #ruby
shredjs has quit [Quit: Page closed]
pawnbox has quit [Remote host closed the connection]
<zenspider> l4v2: what sort of graphics
<zenspider> GUI programming? or _graphics_?
<l4v2> GUI
SteenJobs has quit [Quit: SteenJobs]
<zenspider> it's a bit weaker in ruby-land. there's always jruby, of course... then you have swing again and other things.
firstdayonthejob has quit [Quit: WeeChat 1.6]
patarr has quit [Ping timeout: 245 seconds]
<zenspider> shoes for toys. tk, but that feels wrong on every OS. ... some of those gui libs from linux have wrappers... gtk?
kirun has quit [Quit: Konversation terminated!]
baweaver is now known as baweaver_away
quazimodo has quit [Ping timeout: 260 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
JoshS has quit [Quit: Leaving]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baweaver_away is now known as baweaver
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
wldcordeiro has quit [Ping timeout: 245 seconds]
anuxivm has left #ruby [#ruby]
firstdayonthejob has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
<sagax> howto remove gem after require?
<sagax> or
djbkd has quit [Remote host closed the connection]
<sagax> howto reload gem without cache?
djbkd has joined #ruby
<eam> sagax: you kind of can't
djbkd has quit [Remote host closed the connection]
<eam> (you kind of can, but it's not a good idea)
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
<sagax> thanks, go to reading
<sagax> read*
ramortegui has quit [Remote host closed the connection]
roamingdog has quit [Read error: Connection reset by peer]
shayan_ has joined #ruby
nettoweb has quit [Ping timeout: 256 seconds]
shinnya has quit [Ping timeout: 252 seconds]
Azulinho has joined #ruby
nettoweb has joined #ruby
naprimer has quit [Read error: Connection reset by peer]
gusrub has quit [Remote host closed the connection]
lenwood has quit [Ping timeout: 250 seconds]
polishdub has quit [Quit: Leaving]
Rodya_ has joined #ruby
<sagax> load method - it that I wanted
naprimer has joined #ruby
yqt has joined #ruby
Contigi has joined #ruby
xall has quit [Ping timeout: 250 seconds]
benlieb has quit [Quit: benlieb]
xall has joined #ruby
gusrub has joined #ruby
Rodya_ has quit [Ping timeout: 256 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
whathappens has quit [Read error: Connection reset by peer]
Dobler has joined #ruby
whathappens has joined #ruby
harushimo has quit [Quit: This computer has gone to sleep]
dionysus69 has quit [Ping timeout: 256 seconds]
Dobler has quit [Client Quit]
harushimo has joined #ruby
firstdayonthejob has quit [Ping timeout: 260 seconds]
bturker has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
arashb has joined #ruby
wpostma82 has joined #ruby
Dobler has joined #ruby
wpostma82 has quit [Remote host closed the connection]
wpostma has joined #ruby
cschneid_ has quit [Remote host closed the connection]
bturker has quit [Ping timeout: 256 seconds]
c355e3b has joined #ruby
wpostma has quit [Remote host closed the connection]
wpostma has joined #ruby
arashb has quit [Ping timeout: 260 seconds]
Azulinho has quit [Ping timeout: 250 seconds]
quazimodo has joined #ruby
Dobler has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Azure|dc is now known as Azure
wpostma_ has joined #ruby
wldcordeiro has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
harushimo has quit [Quit: This computer has gone to sleep]
whathappens has joined #ruby
inchw0rm has quit [Quit: Leaving]
inchw0rm has joined #ruby
inchw0rm has quit [Client Quit]
splud has joined #ruby
flashpoint9 has joined #ruby
JeanCarl1Machado has joined #ruby
saneax-_-|AFK is now known as saneax
dopamean_ has joined #ruby
modlin has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
JeanCarloMachado has quit [Ping timeout: 244 seconds]
whathappens has joined #ruby
flashpoint9 has quit [Ping timeout: 256 seconds]
gingray has quit [Ping timeout: 245 seconds]
harushimo has joined #ruby
bluesaber27 has joined #ruby
Derperperd has joined #ruby
michael-g has joined #ruby
DLSteve has joined #ruby
<bluesaber27> can someone please tell me what the maze.rb file here does: https://github.com/Bahanix/aMazing
<bluesaber27> i ran it and it started deleting all my files
<SeepingN> smooth
<bluesaber27> i know, i'm kicking myself right now
<jcao219> lol
<SeepingN> you really trusted something that said "Generate directories mazes. Enjoy your filesystem more than ever. Inspired from XKCD Porn Folder" ?
<bluesaber27> honestly? yes
<porfa> guys how can i have a variable, that is read from a list on a text file?
<SeepingN> def build(root)
<SeepingN> FileUtils.rm_rf root
<SeepingN> ......
<bluesaber27> i ran it and inputted my desktop
<SeepingN> so it wipes everything clear befor emaking a maze of random numbered directories
<SeepingN> and it wipe dyour desktop
<bluesaber27> well shieett
<bluesaber27> i fked up
<SeepingN> good thing you didn't put "/"
<SeepingN> or maybe it's \ ...
<bluesaber27> well thank you, i'm gonna go run a data recovery program now
arescorpio has joined #ruby
Jameser has joined #ruby
<SeepingN> and buy a backup drive
CloCkWeRX has joined #ruby
harushimo has quit [Quit: This computer has gone to sleep]
duderonomy has joined #ruby
duderonomy is now known as Guest75697
<bluesaber27> and a noose for myself if the recovery fails
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy1 has quit [Ping timeout: 260 seconds]
bluesaber27 has quit [Quit: Page closed]
SCHAAP137 has quit [Quit: Leaving]
Dohplay has joined #ruby
QORRiE has quit [Quit: Leaving]
Jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby
dopamean1 has joined #ruby
dopamean1 has quit [Client Quit]
mountpoint has quit [Quit: Konversation terminated!]
dopamean_ has quit [Ping timeout: 250 seconds]
Guest75697 has quit [Quit: Textual IRC Client: www.textualapp.com]
InternetFriend has quit [Quit: Lost terminal]
Felipe__ has joined #ruby
duderono_ has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
jaykill has quit [Quit: Leaving]
yqt has quit [Ping timeout: 260 seconds]
duderono_ has quit [Quit: Textual IRC Client: www.textualapp.com]
duderono_ has joined #ruby
hutch34 has quit [Quit: WeeChat 1.5]
shayan_ has quit [Quit: shayan_]
flashpoint9 has joined #ruby
Rodya_ has joined #ruby
JeanCarl1Machado has quit [Ping timeout: 256 seconds]
harushimo has joined #ruby
y2mq37 has joined #ruby
l4v2 has quit [Quit: l4v2]
AndrewIsHere has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
Rodya_ has quit [Ping timeout: 245 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
y2mq37 has quit [Ping timeout: 260 seconds]
y2mq37 has joined #ruby
duderono_ has quit [Quit: Textual IRC Client: www.textualapp.com]
railssmith has joined #ruby