apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
namxam has quit [Ping timeout: 250 seconds]
qsun has joined #ruby
olivier_bK has quit [Ping timeout: 256 seconds]
Lewix has quit [Ping timeout: 245 seconds]
olivier_bK has joined #ruby
Hobogrammer has quit [Ping timeout: 250 seconds]
sepp2k1 has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
brandonshowers has quit [Remote host closed the connection]
qwyeth has quit [Quit: Leaving]
Lewix has joined #ruby
sepp2k has quit [Ping timeout: 250 seconds]
jmbrown412 has quit [Remote host closed the connection]
thumpba has quit [Remote host closed the connection]
spastorino has joined #ruby
etqqkoiflwhb has joined #ruby
hadees has quit [Quit: hadees]
mercwithamouth has quit [Ping timeout: 264 seconds]
hadees has joined #ruby
Aryasam has joined #ruby
etqqkoiflwhb has quit [Ping timeout: 240 seconds]
billy_ran_away has joined #ruby
bmurt has joined #ruby
hadees has quit [Client Quit]
shtirlic has quit [Quit: ZNC - http://znc.in]
Aryasam has quit [Ping timeout: 240 seconds]
Hobogrammer has joined #ruby
shtirlic has joined #ruby
Zackio has quit [Quit: ZNC - http://znc.in]
fabrice31 has joined #ruby
starkhalo has quit [Ping timeout: 255 seconds]
chrisramon has joined #ruby
RichardLitt has left #ruby [#ruby]
Zackio has joined #ruby
mehlah has quit [Quit: Leaving...]
bmurt has quit []
crockettj has quit []
marr has quit [Ping timeout: 245 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has quit [Ping timeout: 256 seconds]
b00stfr3ak has quit [Ping timeout: 250 seconds]
obscured has joined #ruby
dc has joined #ruby
simoz1111116 has joined #ruby
benlieb has quit [Quit: benlieb]
kevind has quit [Quit: kevind]
dingus_khan has quit [Ping timeout: 250 seconds]
dingus_khan has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bricker`work has quit [Ping timeout: 250 seconds]
tus has joined #ruby
benlieb has joined #ruby
Wolland has joined #ruby
Channel6 has joined #ruby
thumpba has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ziyadb has joined #ruby
soulcake has joined #ruby
sdouglas has joined #ruby
jfran has quit [Read error: Connection reset by peer]
i_s has quit []
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
thumpba has quit [Ping timeout: 256 seconds]
NinoScript has joined #ruby
xcesariox has joined #ruby
chrisramon has quit [Quit: chrisramon]
olivier_bK has quit [Ping timeout: 256 seconds]
edgarjs is now known as edgarjs_afk
shtirlic has quit [Quit: ZNC - http://znc.in]
codeurge has quit [Quit: Quit.]
dfalkner has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maestrojed has quit [Quit: Computer has gone to sleep.]
grug1 has joined #ruby
Trenal has joined #ruby
grug1 has quit [Client Quit]
dfalkner has joined #ruby
pu22l3r has joined #ruby
bmurt has joined #ruby
lethjakman has quit [Ping timeout: 245 seconds]
bmurt has quit [Client Quit]
namxam has joined #ruby
jottr_ has joined #ruby
shtirlic has joined #ruby
anaeem1_ has joined #ruby
MusachiMiyamotoF has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
frankle has quit [Quit: Connection closed for inactivity]
MusachiMiyamotoF has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
namxam has quit [Ping timeout: 245 seconds]
anaeem1 has joined #ruby
GriffinHeart has joined #ruby
jottr_ has quit [Ping timeout: 250 seconds]
xcesariox has quit [Ping timeout: 240 seconds]
Aryasam has joined #ruby
r_rios has joined #ruby
Zenigor has joined #ruby
anaeem1 has quit [Ping timeout: 245 seconds]
MusachiMiyamotoF has quit [Ping timeout: 245 seconds]
benlieb has quit [Quit: benlieb]
GriffinHeart has quit [Ping timeout: 256 seconds]
dc has quit [Remote host closed the connection]
Aryasam_ has joined #ruby
Aryasam has quit [Ping timeout: 256 seconds]
andrewjanssen has quit [Ping timeout: 240 seconds]
pu22l3r has quit [Remote host closed the connection]
jottr_ has joined #ruby
etqqkoiflwhb has joined #ruby
bmurt has joined #ruby
nfk has quit [Quit: yawn]
jrhe has quit [Quit: Connection closed for inactivity]
tectonic has joined #ruby
etqqkoiflwhb has quit [Ping timeout: 260 seconds]
larsam has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
moted has quit [Quit: moted]
vincent has joined #ruby
sdouglas has quit [Remote host closed the connection]
vincent is now known as Guest72184
lukec has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
ylluminarious has quit [Quit: Leaving...]
yfeldblum has quit [Remote host closed the connection]
Hanmac has joined #ruby
OffTheRails has quit [Quit: Leaving]
sepp2k1 has quit [Read error: Connection reset by peer]
cuqa has quit [Quit: Ex-Chat]
Hanmac1 has quit [Ping timeout: 245 seconds]
Shidash has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
xcesariox has joined #ruby
yetanotherdave has quit [Ping timeout: 256 seconds]
robustus has quit [Ping timeout: 250 seconds]
hamakn has quit [Remote host closed the connection]
St_Marx has quit [Remote host closed the connection]
hamakn has joined #ruby
Zenigor has quit [Remote host closed the connection]
dawkirst has joined #ruby
shedd has joined #ruby
Zenigor has joined #ruby
etqqkoiflwhb has joined #ruby
robustus has joined #ruby
maletor has joined #ruby
shedd has quit [Client Quit]
maletor has quit [Client Quit]
bruno- has joined #ruby
shedd has joined #ruby
shedd has quit [Client Quit]
mercwithamouth has joined #ruby
yfeldblum has joined #ruby
Hobogrammer_ has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dawkirst has quit [Ping timeout: 240 seconds]
etqqkoiflwhb has quit [Ping timeout: 240 seconds]
moted has joined #ruby
Guest72184 has quit []
vincent has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
vincent is now known as Guest27556
Zenigor has quit [Ping timeout: 245 seconds]
bruno- has quit [Ping timeout: 260 seconds]
jmbrown412 has joined #ruby
BadQuanta has joined #ruby
Deele has quit [Ping timeout: 256 seconds]
thumpba has joined #ruby
zkay11 has joined #ruby
dfalkner has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
reset has quit [Ping timeout: 240 seconds]
chrishough has quit [Quit: chrishough]
amystephen has quit [Ping timeout: 245 seconds]
dfalkner has joined #ruby
grug has joined #ruby
r_rios has quit [Remote host closed the connection]
britneywright has joined #ruby
wallerdev has quit [Quit: wallerdev]
dingus_khan has quit [Remote host closed the connection]
opus has joined #ruby
bmurt has quit [Read error: Connection reset by peer]
BadQuanta has quit [Quit: Leaving.]
bmurt has joined #ruby
amystephen has joined #ruby
Shidash has quit [Quit: Leaving.]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
r_rios has joined #ruby
namxam has joined #ruby
rubytor has quit [Ping timeout: 250 seconds]
namxam has quit [Ping timeout: 255 seconds]
maletor has joined #ruby
larsam has quit [Read error: Connection reset by peer]
davispuh has quit [Read error: Connection reset by peer]
dc has joined #ruby
fabrice31 has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tokik has quit [Ping timeout: 240 seconds]
rtdp has quit [Ping timeout: 256 seconds]
dc has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
Cache_Money has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
pu22l3r_ has joined #ruby
obscured has quit [Quit: leaving]
pu22l3r_ has quit [Remote host closed the connection]
tus has quit []
Aryasam_ has quit [Quit: Bye]
pu22l3r has joined #ruby
crudson has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
rtdp has joined #ruby
<Symbiosisz> Does anyone know why when I call TCPSocket.new, that call is blocking indefinitely? The server it's trying to connect to is responsive
<Symbiosisz> but it never returns from that call
<Symbiosisz> Can't recall ever seeing that behaviour before. Here's the exact line: @socket = TCPSocket.new(serverIP, serverPort)
toretore has quit [Quit: This computer has gone to sleep]
bruno- has quit [Ping timeout: 250 seconds]
etqqkoiflwhb has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gil has joined #ruby
pu22l3r has quit [Remote host closed the connection]
radic has quit [Ping timeout: 264 seconds]
radic has joined #ruby
<Symbiosisz> Ahh, sorry, I see. With TCP the other side has to acknowledge the connection.
duncan has joined #ruby
<ericwood> yupyup
duncan has quit [Read error: Connection reset by peer]
duncan has joined #ruby
duncannz has quit [Disconnected by services]
duncan is now known as Guest34842
duncannz has joined #ruby
Guest34842 has quit [Read error: Connection reset by peer]
arrubin has quit [Quit: Textual IRC Client: www.textualapp.com]
duncan_ has joined #ruby
duncannz has quit [Disconnected by services]
VictorSK has joined #ruby
duncannz has joined #ruby
VictorSK_ has joined #ruby
duncannz has quit [Disconnected by services]
duncan_ is now known as duncannz
duncannz is now known as Guest92954
duncan_ has joined #ruby
moted has quit [Quit: moted]
Guest92954 has quit [Client Quit]
etqqkoiflwhb has quit [Ping timeout: 245 seconds]
crudson has joined #ruby
Lifez has joined #ruby
charliesome has joined #ruby
duncannz has joined #ruby
duncannz is now known as Guest10728
Lifez has quit [Client Quit]
Guest10728 is now known as duncannz
VictorSK_ has quit [Client Quit]
NinoScript_ has joined #ruby
sixxy has quit [Quit: Leaving]
Guest27556 has quit [Remote host closed the connection]
sixxy has joined #ruby
bazida has joined #ruby
<bazida> ..
NinoScript_ has quit [Client Quit]
amargherio has quit [Remote host closed the connection]
mr_rich101 has joined #ruby
mr_rich101 has quit [K-Lined]
<bazida> what does .to_a in ruby
t_p has joined #ruby
VictorSK has quit []
Zesty has joined #ruby
larissa has joined #ruby
frellnet has joined #ruby
voodoofish1 has joined #ruby
GriffinHeart has joined #ruby
voodoofish1 has quit [Client Quit]
testcore has joined #ruby
voodoofish has quit [Ping timeout: 272 seconds]
voodoofish has joined #ruby
lukec has quit [Quit: lukec]
agent_white has joined #ruby
<ericwood> bazida: read the documentation
agent_white has quit [Client Quit]
Fire-Dragon-DoL has quit [Quit: Leaving.]
<ericwood> .to_a can be any number of things depending on what object it's called on
<ericwood> typically it means "to array" in that it returns an array representation of the object
wallerdev has joined #ruby
GriffinHeart has quit [Ping timeout: 255 seconds]
rtdp has quit [Ping timeout: 256 seconds]
agent_white has joined #ruby
<ericwood> but you don't care, do you?
namxam has joined #ruby
xenomorph is now known as {xenomorph}
amclain has joined #ruby
jxf has joined #ruby
toastynerd has quit [Remote host closed the connection]
namxam has quit [Ping timeout: 250 seconds]
k0m has joined #ruby
lukec has joined #ruby
icebourg has quit [Ping timeout: 245 seconds]
k0m_ has joined #ruby
dfalkner has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
braincrash has quit [Quit: bye bye]
Lewix has quit [Remote host closed the connection]
lw has joined #ruby
Lewix has joined #ruby
<bazida> I do care
<bazida> I thought this chatroom was dead
braincrash has joined #ruby
<bazida> thanks eric
<bazida> so to_a is always used with array right
<bazida> I am doing depth research on this to_whatever since i am new to ruby
amystephen has quit [Quit: amystephen]
Lewix has quit [Ping timeout: 260 seconds]
bmurt has quit []
<bazida> What is the difference between select and each in ruby..anyone
<bazida> Hey ericwood
<bazida> Can you help me again with difference between .each and .select on ruby
opus has quit []
k0m has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gbaway has joined #ruby
NinoScript_ has joined #ruby
parduse has joined #ruby
k0m has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
dc has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
cesare has joined #ruby
dfalkner has joined #ruby
<czaks> bazida: the difference is in return value
<bazida> ok
dc has quit [Remote host closed the connection]
<czaks> bazida: each returns the original object, while select returns a modified one
Cache_Money has quit [Quit: Cache_Money]
freerobby has joined #ruby
<czaks> modified in the way, so it only contains the elements the block in select returned true for
<bazida> ok
<bazida> thanks
<czaks> np
<bazida> czak
<czaks> there are more methods with the same behaviour but a different return value, like map/inject
dc has joined #ruby
amacou has quit [Ping timeout: 240 seconds]
<czaks> sorry, inject is something different
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dc has quit [Read error: Connection reset by peer]
AlexRussia_ has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
<bazida> is map and collect same
<bazida> or they are different
opus has joined #ruby
k0m has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zacts has joined #ruby
teleporter has joined #ruby
dawkirst has joined #ruby
etqqkoiflwhb has joined #ruby
AlexRussia_ is now known as AlexRussia
sixxy has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
NinoScript_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Panicky has joined #ruby
Panicky has quit [Remote host closed the connection]
etqqkoiflwhb has quit [Ping timeout: 256 seconds]
dawkirst has quit [Ping timeout: 260 seconds]
awkwords has quit [Ping timeout: 245 seconds]
vincent has joined #ruby
freerobby has quit [Quit: Leaving.]
vincent is now known as Guest95314
dik_dak has quit [Quit: Leaving]
Lewix has joined #ruby
etqqkoiflwhb has joined #ruby
iamjarvo has joined #ruby
<benzrf> bazida: sames
grug has quit [Quit: WeeChat 0.4.3]
Zesty has quit [Quit: Linkinus - http://linkinus.com]
pu22l3r has joined #ruby
pu22l3r has quit [Read error: Connection reset by peer]
simoz1111116 has quit [Ping timeout: 245 seconds]
pu22l3r has joined #ruby
<bazida> benzfr can you pinpoint the difference between these three each,select and collect. Thanks for your help again
etqqkoiflwhb has quit [Ping timeout: 250 seconds]
<benzrf> bazida: collect/map results in a new array of the result of each block call
<bazida> it's really confusing
<benzrf> >> [1, 2, 3].map {|n| n + 1}
<eval-in__> benzrf => [2, 3, 4] (https://eval.in/173659)
<benzrf> each calls the block once for each, but returns the original array
<benzrf> >> [1, 2, 3].each {|n| n + 1}
<eval-in__> benzrf => [1, 2, 3] (https://eval.in/173660)
<benzrf> ^not very useful, unless you do something like this:
<benzrf> >> [1, 2, 3].each {|n| print n + 1}
<eval-in__> benzrf => 234[1, 2, 3] (https://eval.in/173661)
namxam has joined #ruby
<benzrf> select expects a boolean from each call, and returns a new array of every item that resulted in a true
dingus_khan has joined #ruby
<benzrf> >> [1, 2, 3, 4, 5].select {|n| n.odd?}
<eval-in__> benzrf => [1, 3, 5] (https://eval.in/173662)
opus has quit []
grug has joined #ruby
overmacht has joined #ruby
grug has quit [Client Quit]
overmacht has quit [Max SendQ exceeded]
<bazida> I am analyzing your code right now
grug has joined #ruby
overmacht has joined #ruby
overmacht has quit [Max SendQ exceeded]
<Lewix> yo
mercwithamouth has quit [Ping timeout: 245 seconds]
etqqkoiflwhb has joined #ruby
overmacht has joined #ruby
overmacht has quit [Max SendQ exceeded]
<bazida> if select and map returns the new array
<bazida> then again whats the difference between them
<bazida> [1, 2, 3, 4, 5].select {|n| n.odd?}
<benzrf> bazida: map returns a new array from the results of the block
<benzrf> select returns a new array from the items for which the block returned true
<bazida> [1, 2, 3, 4, 5].map {|n| n.odd?} is same
<benzrf> bazida: no
namxam has quit [Ping timeout: 240 seconds]
<benzrf> >> [1, 2, 3, 4, 5].map {|n| n.odd?}
<eval-in__> benzrf => [true, false, true, false, true] (https://eval.in/173663)
freerobby has joined #ruby
<bazida> oo
<bazida> finally got it
<bazida> thank so much benzrf
cesare has quit [Ping timeout: 240 seconds]
<benzrf> np :-)
overmacht has joined #ruby
overmacht has quit [Max SendQ exceeded]
namxam has joined #ruby
<Wolland> you can also do it this way ... maybe a little shorter:
<Wolland> >> [1,2,3].collect(&:odd?)
<eval-in__> Wolland => [true, false, true] (https://eval.in/173664)
hmsimha has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
teejar_ is now known as teejar
lethjakman has joined #ruby
fabrice31 has joined #ruby
Aryasam has joined #ruby
pu22l3r has quit [Remote host closed the connection]
snapcase has joined #ruby
nateberkopec has joined #ruby
<bazida> tnx wolland i'll try that right now
namxam has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Ping timeout: 245 seconds]
fold has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 249 seconds]
pu22l3r has joined #ruby
<bazida> I was doing some test on select method on ruby to understand it in more depth
<bazida> [1,2,3].select { |n| n > 2 }
<bazida> return [3] which is fine
<bazida> but
<bazida> [1,2,3].select { |n| n*2 }
<bazida> return [1,2,3] # why is this
AlexRussia_ has joined #ruby
kaihara has joined #ruby
<bazida> is select on for conditional values
<bazida> is select only used for conditional values
lw has quit [Quit: s]
bruno- has joined #ruby
LouisR has joined #ruby
<eam> bazida: select is a filter. If you want to transform the elements use map
kaihara has quit [Quit: ZNC - http://znc.in]
bruno- has quit [Ping timeout: 250 seconds]
Mekkis has joined #ruby
LouisR has quit [Quit: Lingo - http://www.lingoirc.com]
ghr has joined #ruby
febuiles has quit [Remote host closed the connection]
febuiles has joined #ruby
overmacht has joined #ruby
Aryasam has quit [Quit: Bye]
mercwithamouth has joined #ruby
hmsimha has quit [Ping timeout: 255 seconds]
lw has joined #ruby
Guest95314 has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
ghr has quit [Ping timeout: 255 seconds]
starkhalo has joined #ruby
amclain has quit [Ping timeout: 240 seconds]
kaihara has joined #ruby
dingus_khan has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<Wolland> n*2 is "true" since it has value
<Wolland> so it returns all your values
idiocrash has joined #ruby
etqqkoiflwhb has quit [Quit: Lingo - http://www.lingoirc.com]
amacou has joined #ruby
<bazida> ok
<bazida> thumbs up
zkay11 has left #ruby [#ruby]
hmsimha has joined #ruby
lw has quit [Quit: s]
SCommette has joined #ruby
jkline has joined #ruby
testcore has quit [Quit: BitchX: now with Olestra!]
GriffinHeart has joined #ruby
SCommette has quit [Client Quit]
mary5030 has joined #ruby
gbaway has quit [Ping timeout: 250 seconds]
mostlybadfly has joined #ruby
<benzrf> i believe the term is 'truthy'
GriffinHeart has quit [Ping timeout: 240 seconds]
zorak has quit [Read error: Connection reset by peer]
<Wolland> didn't know there was a term for that :)
<Wolland> truthy
<mostlybadfly> hola
<mostlybadfly> how is everyone's friday evening?
CpuID has joined #ruby
CpuID has joined #ruby
nateberkopec has quit [Quit: Leaving...]
Daiyousei has joined #ruby
toastynerd has joined #ruby
landodger has quit [Quit: Leaving]
CpuID has quit [Client Quit]
CpuID has joined #ruby
k0m_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
overmacht has quit [Ping timeout: 245 seconds]
sputnik1_ has joined #ruby
meeko has joined #ruby
landodger has joined #ruby
CpuID has quit [Client Quit]
Daiyousei has quit [Quit: tropicraft.net]
CaptainJet has quit []
namxam has joined #ruby
lukec has quit [Quit: lukec]
frellnet has quit [Remote host closed the connection]
frellnet has joined #ruby
namxam has quit [Ping timeout: 260 seconds]
frellnet_ has joined #ruby
t_p has quit [Read error: Connection reset by peer]
ARCADIVS has joined #ruby
jkline has quit [Quit: jkline]
frellnet has quit [Ping timeout: 250 seconds]
frellnet_ has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
frellnet has joined #ruby
Sauvin has joined #ruby
wallerdev has quit [Quit: wallerdev]
amacou has quit [Remote host closed the connection]
amacou has joined #ruby
amacou_ has joined #ruby
amacou has quit [Read error: Connection reset by peer]
frellnet has quit [Ping timeout: 245 seconds]
bruno- has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
frellnet has joined #ruby
decoponio has joined #ruby
yfeldblum has quit [Remote host closed the connection]
CpuID has joined #ruby
CpuID has joined #ruby
yfeldblum has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
nateberkopec has joined #ruby
frellnet has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
DanKnox has quit [Ping timeout: 240 seconds]
DanKnox has joined #ruby
philtr_ has quit [Ping timeout: 240 seconds]
philtr has joined #ruby
febuiles_ has joined #ruby
<agent_white> Good!
<agent_white> mostlybadfly: And yours?
frellnet has quit [Ping timeout: 240 seconds]
<mostlybadfly> Doing alright
ghr has joined #ruby
frellnet has joined #ruby
<mostlybadfly> Got back from dinner and taking it easy
vincent has joined #ruby
vincent is now known as Guest71472
febuiles has quit [Ping timeout: 256 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 256 seconds]
frellnet has quit [Ping timeout: 256 seconds]
FarLight has joined #ruby
<FarLight> Hello.
frellnet has joined #ruby
<FarLight> I have 3 models,
<FarLight> system (many entities)
<FarLight> entity (belongs to system, many properties)
<FarLight> properties (belongs to entity)
<FarLight> I'd like to render this JSON object:
<FarLight> render :json => system.entities.to_json(:include => :properties)
<FarLight> It works, but when I examine the log, it performs a query to select all entities, then a query to select all properties of that entity
<FarLight> Is there anyway to reduce the amount of queries?
jkline has joined #ruby
jkline has quit [Client Quit]
frellnet has quit [Ping timeout: 245 seconds]
<FarLight> oh this is #ruby not #rubyonrails
<Wolland> FarLight: with includes?
frellnet has joined #ruby
<FarLight> Wolland: Any way you can think of. I just want a JSON string containing an array of entities, each containing an array of properties
Guest71472 has quit [Remote host closed the connection]
<Wolland> assuming you are talking rails
ecksit has joined #ruby
amacou_ has quit [Remote host closed the connection]
dawkirst has joined #ruby
amacou has joined #ruby
frellnet has quit [Ping timeout: 245 seconds]
frellnet has joined #ruby
phinfonet has quit []
CpuID has quit [Quit: This computer has gone to sleep]
amacou has quit [Read error: Connection reset by peer]
amacou has joined #ruby
dawkirst has quit [Ping timeout: 240 seconds]
frellnet has quit [Ping timeout: 240 seconds]
pu22l3r has quit [Remote host closed the connection]
frellnet has joined #ruby
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sputnik1_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
frellnet has quit [Ping timeout: 245 seconds]
fabrice31 has joined #ruby
frellnet has joined #ruby
vincent has joined #ruby
vincent is now known as Guest63403
FDj has quit [Read error: Connection reset by peer]
FDj has joined #ruby
Guest63403 has quit [Remote host closed the connection]
m3_del_ has quit [Remote host closed the connection]
LouisR has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
frellnet has quit [Ping timeout: 240 seconds]
billycravens has joined #ruby
frellnet has joined #ruby
namxam has joined #ruby
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
frellnet has quit [Ping timeout: 245 seconds]
frellnet has joined #ruby
michael_lee has joined #ruby
namxam has quit [Ping timeout: 250 seconds]
frellnet has quit [Ping timeout: 264 seconds]
frellnet has joined #ruby
dfalkner has quit [Quit: Textual IRC Client: www.textualapp.com]
benzrf is now known as benzrf|offline
memph1s has joined #ruby
m3_del has joined #ruby
stytown has joined #ruby
frellnet has quit [Ping timeout: 264 seconds]
frellnet has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Vivekananda_y510 has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sigurding has joined #ruby
rtdp has joined #ruby
diptanuc has joined #ruby
frellnet has quit [Ping timeout: 255 seconds]
frellnet has joined #ruby
sigurding has quit [Client Quit]
FarLight has quit [Quit: Leaving]
Beoran__ has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
agent_white has quit [Read error: Connection reset by peer]
frellnet has quit [Ping timeout: 240 seconds]
tectonic has quit []
frellnet has joined #ruby
nateberkopec has joined #ruby
DivineEntity has joined #ruby
agent_white has joined #ruby
lethjakman has quit [Ping timeout: 255 seconds]
frellnet has quit [Ping timeout: 245 seconds]
frellnet has joined #ruby
jagadish has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
vadzimt has joined #ruby
vadzimt has quit [Client Quit]
GriffinHeart has joined #ruby
kireevco has joined #ruby
frellnet has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
lanox has joined #ruby
lanox has quit [Read error: Connection reset by peer]
as has joined #ruby
GriffinHeart has quit [Ping timeout: 264 seconds]
apeiros has joined #ruby
Wolland has quit [Remote host closed the connection]
frellnet has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
frellnet has joined #ruby
landodger has quit [Remote host closed the connection]
Wolland has joined #ruby
LouisR has quit [Quit: Lingo - http://www.lingoirc.com]
arup_r has joined #ruby
frellnet has quit [Ping timeout: 255 seconds]
<arup_r> Hi.. Good Morning to all
frellnet has joined #ruby
<arup_r> Can any one suggest me a good book on Threading, MultiThreading etc ... ? I have to learn it.
dingus_khan has joined #ruby
frellnet has quit [Ping timeout: 260 seconds]
frellnet_ has joined #ruby
mattalexx has quit [Ping timeout: 246 seconds]
tuxninja has quit [Remote host closed the connection]
klaut has joined #ruby
frellnet_ has quit [Ping timeout: 245 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
frellnet has joined #ruby
ecksit has quit [Quit: Computer has gone to sleep.]
frellnet has quit [Ping timeout: 264 seconds]
frellnet has joined #ruby
Vivekananda_y510 has joined #ruby
bruno- has joined #ruby
claymore has joined #ruby
bazida has quit [Quit: Page closed]
namxam has joined #ruby
tuxninja has joined #ruby
Channel6 has quit [Quit: Leaving]
Vivekananda_y510 has quit [Read error: Connection reset by peer]
Vivekananda_y510 has joined #ruby
mary5030 has joined #ruby
frellnet has quit [Ping timeout: 255 seconds]
Alina-malina has joined #ruby
frellnet has joined #ruby
nateberkopec has joined #ruby
namxam has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 240 seconds]
cuqa has joined #ruby
cuqa has quit [K-Lined]
mary5030 has quit [Ping timeout: 250 seconds]
kireevco has quit [Quit: Leaving.]
frellnet has quit [Ping timeout: 245 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
frellnet has quit [Ping timeout: 245 seconds]
frellnet has joined #ruby
stack_ has joined #ruby
stack_ has left #ruby [#ruby]
diptanuc has quit [Quit: Good-bye all!]
m3_del has quit [Remote host closed the connection]
reebs has joined #ruby
frellnet has quit [Ping timeout: 260 seconds]
frellnet has joined #ruby
nszceta has joined #ruby
Georg3 has joined #ruby
nszceta has quit [Max SendQ exceeded]
frellnet has quit [Ping timeout: 245 seconds]
nszceta has joined #ruby
rtdp has quit [Ping timeout: 250 seconds]
frellnet has joined #ruby
{xenomorph} is now known as xenomorph
IceDragon has quit [Quit: Space~~~]
frellnet has quit [Ping timeout: 240 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has joined #ruby
frellnet has joined #ruby
nszceta has quit [Remote host closed the connection]
nszceta has joined #ruby
beneggett has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
frellnet has quit [Ping timeout: 245 seconds]
chipotle has joined #ruby
reebs has quit [Quit: Textual IRC Client: www.textualapp.com]
frellnet has joined #ruby
vdmgolub has joined #ruby
stytown has quit [Quit: stytown]
memph1s has quit [Ping timeout: 250 seconds]
vincent has joined #ruby
vincent is now known as Guest79018
frellnet has quit [Ping timeout: 255 seconds]
frellnet has joined #ruby
Georg3 has quit [Quit: Computer has gone to sleep.]
fabrice31 has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ecksit has joined #ruby
beneggett has joined #ruby
frellnet has quit [Ping timeout: 256 seconds]
frellnet has joined #ruby
dawkirst has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
Reg_ has joined #ruby
vdmgolub has quit [Ping timeout: 256 seconds]
<Reg_> are there any good Ruby learning videos. i am just planning on learning Ruby to perform automation in Cloud.
sdouglas has joined #ruby
frellnet has quit [Ping timeout: 245 seconds]
Guest79018 has quit [Remote host closed the connection]
dawkirst has quit [Ping timeout: 264 seconds]
frellnet has joined #ruby
<Wolland> whats Cloud
reebs has joined #ruby
emergion has joined #ruby
sdouglas has quit [Ping timeout: 264 seconds]
little_fu has joined #ruby
larissa has quit [Quit: Leaving]
bruno- has joined #ruby
little_fu has quit [Client Quit]
frellnet has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
memph1s has joined #ruby
alem0lars has joined #ruby
vadzimt has joined #ruby
nszceta has quit [Ping timeout: 240 seconds]
opus has joined #ruby
bruno- has quit [Ping timeout: 245 seconds]
frellnet has quit [Ping timeout: 240 seconds]
nszceta_ has joined #ruby
<arup_r> I am writing file system monitoring program using fssm gem. On any event, I want to trigger system notification...Is there any gem ? or any idea about the approach ?
frellnet has joined #ruby
dingus_khan has quit [Remote host closed the connection]
<Reg_> Wolland: good question
<Wolland> arup_r: how large is the file system?
namxam has joined #ruby
<arup_r> Hey Wolland, It is small one. I am thinking to use - http://man7.org/linux/man-pages/man2/fcntl.2.html . Will it be a good idea ?
nobodyzzz has joined #ruby
<arup_r> I have a single directory for now.. Into which I will monitor the files..
<Wolland> maybe it's stupid but you could use versioning like git
<arup_r> No.. I want notification to trigger
<agent_white> arup_r: Inotify
<arup_r> while a file will be created/update/delete
<Wolland> zabbix can do that
<arup_r> agent_white: Let me check that
<Reg_> Wolland: basically its for cloud automation. There is a software called CHEF whcih uses Ruby. Therefore, planning on learning Ruby since CHEF is Ruby based.
kaihara has quit [Ping timeout: 240 seconds]
<agent_white> arup_r: I currently have it monitoring a directory of mine, so anytime I create a new script and place it in that directory, it automagically changes the permissions on it... that's one of many things you could do, of course.
<Wolland> pretty neat
frellnet has quit [Ping timeout: 245 seconds]
<agent_white> Reg_: Follow the Chef guides. They suggest running a VM to test it out, you should do that.
<arup_r> agent_white: I am using FSS gem as it has hooks, create/update/delete
frellnet has joined #ruby
ecksit has quit [Quit: Laters.]
<agent_white> arup_r: So does inotify?
nateberkopec has joined #ruby
namxam has quit [Ping timeout: 255 seconds]
<arup_r> using hooks I am invoking other .rb files
<agent_white> Again, you can do the same with inotify.
<agent_white> Why not just use FSS?
kaihara has joined #ruby
anaeem1 has joined #ruby
<arup_r> and at the same time.. I am also planning to create a system notification when any of the hook will run
<Reg_> agent_white: thanks. i am new to Chef. So i dont really need to be an expert in Ruby i suppose to learn Chef?
<arup_r> agent_white: I am not getting using FSS what way I can trigger notifications so
<agent_white> Reg_: Nope, not really. It's a good starting point. I began learning Ruby because I had to learn Puppet (system config/deployment system akin to Chef).
<arup_r> Let me check inotify
<agent_white> arup_r: You want to trigger notifications? Or listen for notifications?
<arup_r> trigger for now
relix has joined #ruby
amacou has quit [Remote host closed the connection]
<Reg_> agent_white: Ive recently learnt basic Puppet too. I found Ruby very fascinating during that process. any good sources recommended for learning Ruby. Videos, books etc?
<agent_white> Reg_: http://www.ruby-doc.org/docs/ProgrammingRuby/ is a well known guide, I enjoyed rubymonk.com for basic excercises.
<agent_white> Really, other than those two, I just started coding.
frellnet has quit [Ping timeout: 240 seconds]
dc has joined #ruby
<Reg_> Gotcha.
nateberkopec has quit [Ping timeout: 240 seconds]
papercode has quit [Quit: WeeChat 0.4.3]
frellnet has joined #ruby
<agent_white> Reg_: Try rubymonk.com first. :)
<agent_white> Then you'll start to wrote code on your own.
root3d has joined #ruby
<Reg_> My eventual aim is to learn Chef and Puppet so that i can start automating jobs in Cloud.
<reebs> chef is nice
bruno- has joined #ruby
<agent_white> Reg_: I dunno what Cloud is
<Reg_> reebs: are you fluent in Chef
<agent_white> But I bet you can do many things with it.
frellnet has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
<Reg_> agent_white: Cloud in context of cloud computing
frellnet has joined #ruby
<reebs> Yeah, I spend most of my work days working with it in some way Reg_
<agent_white> Aye ;)
<agent_white> Reg_: "So I can start automating my servers." Sounds better.
Georg3 has joined #ruby
<agent_white> Reg_: Also, _why's poignant guide to ruby
alexju has joined #ruby
<agent_white> It was very fun to read :)
opus has quit []
<arup_r> Reg_: You are on Cloud.. Can you arrange some rains then.. here in my city it is too hot.. ;)
<Reg_> arup_r: lol
alexju has quit [Read error: No route to host]
alexju_ has joined #ruby
opus has joined #ruby
papercode has joined #ruby
<Reg_> reebs: how do you think i should start off learning Chef. i really need to be conversant with in about a month or so.
alexju_ has quit [Remote host closed the connection]
<agent_white> Reg_: gettingstartedwithchef.com/
grug has quit [Quit: WeeChat 0.4.3]
frellnet has quit [Ping timeout: 245 seconds]
frellnet has joined #ruby
Georg3 has quit [Ping timeout: 255 seconds]
opus has quit [Client Quit]
GriffinHeart has joined #ruby
<Reg_> looks good. thanks agent. Puppet is something i found very easy to learn since they have that LearnVM and documentation walking you stepwise.
<Reg_> wish they has similar setup for Chef
opus has joined #ruby
<reebs> Chef is a little more.. dynamic? Just set up some vm's and dig in.
polyidus has joined #ruby
frellnet has quit [Ping timeout: 245 seconds]
<Reg_> sure. thanks reebs.
larsam has joined #ruby
alexju has joined #ruby
JoshGlzBrk has joined #ruby
frellnet has joined #ruby
GriffinHeart has quit [Ping timeout: 264 seconds]
larsam has quit [Read error: Connection reset by peer]
as has left #ruby ["Leaving"]
papercode has quit [Quit: WeeChat 0.4.3]
root3d has quit [Remote host closed the connection]
papercode has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
frellnet has quit [Ping timeout: 255 seconds]
frellnet has joined #ruby
dingus_khan has joined #ruby
sigurding has joined #ruby
dingus_khan has quit [Read error: Connection reset by peer]
dingus_khan has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
alexju has quit [Remote host closed the connection]
opus has quit []
frellnet has quit [Ping timeout: 250 seconds]
frellnet has joined #ruby
alexju has joined #ruby
<arup_r> Wolland:
<Wolland> arup_r:
<arup_r> ahh miss ping.. :-) Sorry
dingus_khan has quit [Ping timeout: 245 seconds]
<Wolland> np
frellnet has quit [Ping timeout: 240 seconds]
vincent has joined #ruby
frellnet has joined #ruby
vincent is now known as Guest4032
billycravens has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jhass|off is now known as jhass
<Reg_> reebs: any good intermediate sources for Chef as well. once agent provide is good too get started.
<Reg_> or just set up a VM and start experimenting
bradleyprice has quit [Remote host closed the connection]
<reebs> Ummmm, if you only care about cookbook dev you can use test kitchen, vagrant, virtualbox
bradleyprice has joined #ruby
<Reg_> can i run these on my laptop. i have a ubutu server on a virtual box .
frellnet has quit [Ping timeout: 256 seconds]
frellnet has joined #ruby
<Reg_> sorry if its a dumb question. currently dont know anything about Chef and supporting entities.
mike32 has joined #ruby
dangerousdave has joined #ruby
<reebs> Yeah, you can do everything through virtualbox on your local machine
kaspergrubbe has quit [Remote host closed the connection]
bradleyprice has quit [Ping timeout: 240 seconds]
<Reg_> thanks
linojon has quit [Quit: linojon]
frellnet has quit [Ping timeout: 245 seconds]
Mattias has joined #ruby
frellnet has joined #ruby
Reg_ has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140212131424]]
<agent_white> Reg_: Just set up a VM and start experimenting.
chipotle has quit [Quit: cya]
<agent_white> Virtualbox is a VM, and Vagrant comes after learning Chef.
<agent_white> Reg_: gettingstartedwithchef.com/
<agent_white> ^ Follow that.
lkba has quit [Ping timeout: 260 seconds]
frellnet has quit [Ping timeout: 250 seconds]
frellnet has joined #ruby
Hobogrammer_ has quit [Ping timeout: 256 seconds]
frellnet has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
namxam has joined #ruby
agent_white has quit [Quit: gnight]
nszceta_ has quit [Read error: Connection reset by peer]
carraroj has joined #ruby
nszceta has joined #ruby
claymore has quit [Ping timeout: 240 seconds]
mijicd has joined #ruby
skaflem has joined #ruby
andrewlio has joined #ruby
namxam has quit [Ping timeout: 245 seconds]
frellnet has quit [Ping timeout: 256 seconds]
Atttwww has quit [Ping timeout: 256 seconds]
nateberkopec has joined #ruby
frellnet has joined #ruby
tuxninja has quit [Remote host closed the connection]
<Mon_Ouie> He left
glenfe has joined #ruby
claymore has joined #ruby
agjacome has joined #ruby
frellnet has quit [Ping timeout: 245 seconds]
Georg3 has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
carraroj has quit [Ping timeout: 245 seconds]
frellnet has joined #ruby
mehlah has joined #ruby
namxam has joined #ruby
Georg3 has quit [Ping timeout: 255 seconds]
frellnet has quit [Ping timeout: 264 seconds]
frellnet_ has joined #ruby
memph1s has quit [Quit: I couldn't come up with quit message :(]
sigurding has quit [Quit: sigurding]
frellnet_ has quit [Ping timeout: 250 seconds]
frellnet has joined #ruby
darkxploit has quit [Ping timeout: 256 seconds]
frellnet has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
opus has joined #ruby
ctp has joined #ruby
ctp has quit [Read error: Connection reset by peer]
ctp has joined #ruby
fabrice31 has joined #ruby
frellnet has quit [Ping timeout: 255 seconds]
Lewix has quit [Remote host closed the connection]
frellnet has joined #ruby
marr has joined #ruby
dingus_khan has joined #ruby
ctp has quit [Ping timeout: 255 seconds]
ARCADIVS has quit [Quit: WeeChat 0.4.3]
fabrice31 has quit [Ping timeout: 256 seconds]
larsam has joined #ruby
frellnet has quit [Ping timeout: 260 seconds]
frellnet has joined #ruby
darkxploit has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dingus_khan has quit [Ping timeout: 264 seconds]
frellnet has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
frellnet has joined #ruby
toastynerd has quit [Remote host closed the connection]
opus has quit []
hmsimha has quit [Ping timeout: 250 seconds]
jottr_ has joined #ruby
larsam has quit [Read error: Connection reset by peer]
frellnet has quit [Ping timeout: 240 seconds]
bluenemo has joined #ruby
frellnet has joined #ruby
Guest4032 has quit [Remote host closed the connection]
dawkirst has joined #ruby
funktor has joined #ruby
frellnet has quit [Ping timeout: 250 seconds]
frellnet has joined #ruby
teleporter has quit [Ping timeout: 250 seconds]
dawkirst has quit [Ping timeout: 250 seconds]
meeko has quit [Quit: Textual IRC Client: www.textualapp.com]
nszceta has quit [Ping timeout: 240 seconds]
TurkActivist has joined #ruby
frellnet has quit [Ping timeout: 245 seconds]
frellnet has joined #ruby
kaihara has quit [Quit: ZNC - http://znc.in]
kaihara has joined #ruby
teleporter has joined #ruby
<TurkActivist> 240 Gaza targets attacked since Thursday: Israeli army http://www.aa.com.tr/en/news/361136--240-gaza-targets-attacked-since-thursday-israeli-army
TurkActivist has quit [Killed (idoru (Spam is off topic on freenode.))]
kaihara has quit [Client Quit]
hmsimha has joined #ruby
kaihara has joined #ruby
mehlah has quit [Quit: Leaving...]
frellnet has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
emergion has quit [Quit: Connection closed for inactivity]
arup_r has quit [Ping timeout: 250 seconds]
Georg3 has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3]
frellnet has quit [Ping timeout: 250 seconds]
alexherbo2 has joined #ruby
nateberkopec has joined #ruby
frellnet has joined #ruby
kaihara has quit [Remote host closed the connection]
Georg3 has quit [Ping timeout: 250 seconds]
GriffinHeart has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
funktor_ has joined #ruby
frellnet has quit [Ping timeout: 256 seconds]
frellnet has joined #ruby
funktor has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
bruno- has joined #ruby
bruno- is now known as Guest92666
Deele has joined #ruby
GriffinHeart has quit [Ping timeout: 255 seconds]
r_rios has quit [Ping timeout: 260 seconds]
elaptics`away is now known as elaptics
wall has joined #ruby
frellnet has quit [Ping timeout: 245 seconds]
tuxninja has joined #ruby
frellnet has joined #ruby
Guest92666 has quit [Ping timeout: 256 seconds]
andrewlio has quit [Quit: Leaving.]
reebs has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tuxninja has quit [Ping timeout: 250 seconds]
claymore has quit [Quit: Leaving]
frellnet has quit [Ping timeout: 245 seconds]
glenfe has left #ruby ["Leaving"]
frellnet has joined #ruby
godd2 has quit [Remote host closed the connection]
toastynerd has joined #ruby
frellnet has quit [Ping timeout: 250 seconds]
xenomorph is now known as {xenomorph}
relix has joined #ruby
{xenomorph} is now known as xenomorph
frellnet has joined #ruby
crudson has quit [Ping timeout: 240 seconds]
obs has joined #ruby
relix has quit [Client Quit]
toastynerd has quit [Read error: Connection reset by peer]
relix has joined #ruby
MrSamuel has quit [Quit: Leaving]
apeiros has quit []
opus has joined #ruby
wall has quit [Remote host closed the connection]
apeiros has joined #ruby
spider-mario has joined #ruby
frellnet has quit [Ping timeout: 264 seconds]
frellnet has joined #ruby
kaspergrubbe has joined #ruby
andrewlio has joined #ruby
jottr_ has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
frellnet has quit [Ping timeout: 264 seconds]
frellnet_ has joined #ruby
dvb_ua has quit [Ping timeout: 255 seconds]
bhaak_ is now known as bhaak
mostlybadfly has joined #ruby
gypsydave5 has joined #ruby
opus has quit []
frellnet_ has quit [Ping timeout: 250 seconds]
dc_ has joined #ruby
opus has joined #ruby
dc has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
ctp has joined #ruby
shredding has joined #ruby
bluenemo has quit [Ping timeout: 240 seconds]
alem0lars has quit [Quit: Going AFK...]
phoo1234567 has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
olivier_bK has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
frellnet has quit [Ping timeout: 250 seconds]
dvb_ua has joined #ruby
duncan_ has quit [Ping timeout: 250 seconds]
duncannz has quit [Ping timeout: 245 seconds]
mikecmpbll has joined #ruby
jottr_ has joined #ruby
mr_rich101 has joined #ruby
apeiros has quit [Ping timeout: 245 seconds]
mr_rich101 has quit [K-Lined]
apeiros has joined #ruby
larsam has joined #ruby
dvb_ua has quit [Ping timeout: 256 seconds]
opus has quit []
sepp2k has joined #ruby
obs has quit [Quit: Konversation terminated!]
obs has joined #ruby
Primordus has joined #ruby
mark06 has joined #ruby
professor_soap has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
relix has joined #ruby
lkba has joined #ruby
klaut has quit [Remote host closed the connection]
banisterfiend has quit [Quit: ZNC - http://znc.in]
Georg3 has joined #ruby
<professor_soap> Hello people. I have just bought a new mbp and I can't install nokogiri on it. Trying to do a 'bundle install' on some old rails projects and they fail when trying to install nokogiri -v '1.5.11'
<professor_soap> Have been trying to install for a couple of days now, probably read every f*ing article on the whole web about it, every blog post and every guide I could find.
febuiles_ has quit [Remote host closed the connection]
febuiles has joined #ruby
<Wolland> what's the error
<professor_soap> It says "libxml2 is missing."
<Wolland> i am guessing it's failing to compile native extensions?
<Wolland> oh
<professor_soap> yep
<Wolland> install brew, then install libxml
<professor_soap> well first it says it fails compile native extensions.
<professor_soap> I already have homebrew
apeiros_ has joined #ruby
<professor_soap> and libxml installed
<professor_soap> lymlinked too.
<wasamasa> hmm
apeiros has quit [Ping timeout: 250 seconds]
alem0lars has joined #ruby
<wasamasa> there is some option for bundle install to use the installed libxml
<professor_soap> I have followed the official guide lines on nokogiri.org
<Wolland> i am assuming you have xcode and command tools installed?
<wasamasa> the exact syntax can be seen when trying to use it
<professor_soap> yeah yeah, -- with....<insert path to libxml>
<wasamasa> Wolland: well, he wouldn't have managed getting brew working otherwise, right :P
<professor_soap> Wolland: yes it's installed
toretore has joined #ruby
<professor_soap> but if I check 'gem list nokogiri'
<professor_soap> I have 1.6.2.1, 1.6.2 installed
Georg3 has quit [Ping timeout: 245 seconds]
<professor_soap> but cant install 1.5.11
mr-foobar has quit [Read error: Connection reset by peer]
mr-foobar has joined #ruby
<wasamasa> hmm, I wonder what libxml 1.5.11 requires
hmsimha has quit [Ping timeout: 245 seconds]
ylluminarious has joined #ruby
<professor_soap> during the "gem install nokogiri -v '1.5.11'", it checks for some files...
<professor_soap> like checking for libxml/parser.h... yes
alexju has quit [Remote host closed the connection]
<professor_soap> then there are two "no"
<professor_soap> checking for iconv_open() in iconv.h... no
<professor_soap> checking for xmlParseDoc() in -lxml2... no
heftig has quit [Quit: Quitting]
<professor_soap> I'll paste the whole thing..
alexju has joined #ruby
nateberkopec has joined #ruby
except has joined #ruby
frellnet has joined #ruby
heftig has joined #ruby
SCHAAP137 has joined #ruby
<Wolland> have you tried installing using gem command instead of bundler?
<professor_soap> Wolland: How do you mean? example?
<Wolland> gem install nokogiri -v '1.5.11'
cesare has joined #ruby
<professor_soap> oh ok yea that's what I'm doing
<professor_soap> have tried both
klaut has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
ctp has quit [Ping timeout: 255 seconds]
frellnet has quit [Ping timeout: 264 seconds]
frellnet has joined #ruby
klaut has quit [Remote host closed the connection]
<Wolland> try updating brew, then install libxml2 again, close and open your terminal and see if it works
michael_lee has quit [Ping timeout: 245 seconds]
<Wolland> unless you tried this already
bluenemo has joined #ruby
Hanmac1 has joined #ruby
frellnet has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
Vivekananda_y510 has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
<Wolland> just tried it on my mbp, worked without errors :(
michael_lee has joined #ruby
fabrice31 has joined #ruby
bmurt has joined #ruby
Biohazard has joined #ruby
larsam has quit [Read error: Connection reset by peer]
alem0lars has quit [Quit: Going AFK...]
frellnet has quit [Ping timeout: 264 seconds]
frellnet has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Client Quit]
xenomorph is now known as {xenomorph}
<Wolland> did you also brew link libxml2
obs has quit [Ping timeout: 245 seconds]
mark06 has left #ruby [#ruby]
Darryl has quit [Quit: Connection closed for inactivity]
klaut has joined #ruby
Primordus has quit [Quit: WeeChat 0.4.3]
frellnet has quit [Ping timeout: 240 seconds]
klaut has quit [Remote host closed the connection]
frellnet has joined #ruby
ctp has joined #ruby
toastynerd has joined #ruby
rtdp has joined #ruby
{xenomorph} is now known as xenomorph
except has quit [Quit: derpity derp]
Takle has quit [Ping timeout: 245 seconds]
cesare has quit [Ping timeout: 260 seconds]
klaut has joined #ruby
toastynerd has quit [Ping timeout: 245 seconds]
frellnet has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
klaut has quit [Remote host closed the connection]
Gonzih has joined #ruby
alexju has quit [Read error: No route to host]
alexju has joined #ruby
dc_ has quit [Remote host closed the connection]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamayam has quit [Ping timeout: 250 seconds]
dc has joined #ruby
Mattias has quit [Ping timeout: 255 seconds]
nuck has quit [Ping timeout: 250 seconds]
frellnet has quit [Ping timeout: 255 seconds]
frellnet has joined #ruby
Mattias has joined #ruby
nuck has joined #ruby
Guest85414______ has quit [Read error: Connection reset by peer]
Guest85414______ has joined #ruby
<professor_soap> Wolland: yep I did link
yfeldblum has quit [Remote host closed the connection]
<professor_soap> tried unlink and link again (for some reason) but didnt work either.
iamayam has joined #ruby
yfeldblum has joined #ruby
KanKava has joined #ruby
mijicd has quit [Remote host closed the connection]
amacou has joined #ruby
<Wolland> all these ... bundle config build.nokogiri --use-system-libraries
<Wolland> etc
klaut has joined #ruby
frellnet has quit [Ping timeout: 255 seconds]
<professor_soap> yeah tried that.
frellnet has joined #ruby
<Wolland> wonder if it's a path issue, if libxml2 is installed, it just can't find it
<Wolland> but I guess you tried manually specifying path to xml2?
dc has quit [Remote host closed the connection]
<Hanmac1> good that i dont have MacOS anymore so i dont have that problems ;P
yfeldblum has quit [Ping timeout: 255 seconds]
<Wolland> i have these once in a blue moon, once things are working though, they just work :)
namxam_ has joined #ruby
<Wolland> unlike other OSs
eka has joined #ruby
claymore has joined #ruby
frellnet has quit [Ping timeout: 264 seconds]
<Wolland> professor_soap: what version of xml2 do you have?
dingus_khan has joined #ruby
crudson has joined #ruby
frellnet has joined #ruby
namxam has quit [Ping timeout: 245 seconds]
cleopatra has quit [Ping timeout: 250 seconds]
apeiros_ has quit [Read error: Connection reset by peer]
dawkirst has joined #ruby
<professor_soap> Wolland: libxml2: stable 2.9.1 (bottled), HEAD
<Wolland> i installed it and I don't even have libxml2 from brew ... weird
britneywright has joined #ruby
claymore has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
dingus_khan has quit [Ping timeout: 245 seconds]
frellnet has quit [Ping timeout: 240 seconds]
Georg3 has joined #ruby
frellnet has joined #ruby
<wasamasa> Wolland: well, nokogiri by default compiles its own libxml2
<Wolland> i see
<wasamasa> so not that surprising
<wasamasa> it does that since it can lead to problems if it's supplied a too recent one
claymore has joined #ruby
<Wolland> professor_soap: can you try this "export CC=gcc" just for kicks
<Wolland> and then try installing using gem ...
dawkirst has quit [Ping timeout: 240 seconds]
bmurt has quit []
Georg3 has quit [Ping timeout: 240 seconds]
shredding has quit [Quit: shredding]
<jhass> wasamasa: didn't they just start that with 1.6 or so?
apeiros has quit [Remote host closed the connection]
frellnet has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
GriffinHeart has joined #ruby
apeiros has joined #ruby
lolmaus has joined #ruby
<professor_soap> Wolland: that didn't do it either.
<Wolland> maybe it's time to restart your mbp :)
bruno- has joined #ruby
dc has joined #ruby
<Wolland> do other gems install just fine? like mysql2 etc
<professor_soap> Right... or throw it out the window, I can't tell what's more rational anymore x)
<Wolland> anything with native extensions
<professor_soap> yep no problems there, just with nokogiri
bmurt has joined #ruby
<Wolland> and it's brand brand new?
frellnet has quit [Ping timeout: 255 seconds]
<professor_soap> I had problems with other versions before, the two I have installed now, but some of the tricks from stackoverflow/blogs/guides etc eventually helped, but not with this one.
<professor_soap> yep
GriffinHeart has quit [Ping timeout: 256 seconds]
<Wolland> did you restore from old one or starting from scratch?
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<professor_soap> I havent installed rbenv or rvm or ruby my self I just went with default things.
frellnet has joined #ruby
<professor_soap> from scratch
<professor_soap> OS X 10.9.3
<Wolland> same as mine
<Wolland> I wonder if rvm sets some additional paths or something
<Wolland> or ENV
banisterfiend has joined #ruby
<professor_soap> did you install rvm/rbenv?
<Wolland> i have rvm
AlSquire has joined #ruby
<Wolland> but i just tried installing your version of nokogiri and it just worked ;(
bruno- has quit [Ping timeout: 250 seconds]
<professor_soap> ruby version?
<professor_soap> ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13]
<professor_soap> well it should have anything to do with it, right?
frellnet has quit [Ping timeout: 240 seconds]
<Wolland> gem install nokogiri -v '1.5.11'
<Wolland> Fetching: nokogiri-1.5.11.gem (100%)
<Wolland> Building native extensions. This could take a while...
<Wolland> Successfully installed nokogiri-1.5.11
<Wolland> 1 gem installed
<Wolland> 2.1.2, 1.9.3, both worked
nateberkopec has joined #ruby
timonv_ has joined #ruby
frellnet has joined #ruby
banister has joined #ruby
funktor_ has quit [Remote host closed the connection]
<professor_soap> i will try installing rvm and 2.1.2 and see if it helps
funktor has joined #ruby
drager_ has quit [Changing host]
drager_ has joined #ruby
drager_ is now known as drager
yfeldblum has joined #ruby
vincent has joined #ruby
vincent is now known as Guest72388
arya_ has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
frellnet has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
bmurt has quit []
yfeldblum has quit [Ping timeout: 245 seconds]
Georg3 has joined #ruby
<professor_soap> Wolland: That actually worked o.O But now it halted when installing inconv
<Wolland> well ... at least you are on the next step ;)
<Wolland> that stackoverflow had a lot of steps for that one
frellnet has quit [Ping timeout: 245 seconds]
frellnet has joined #ruby
Georg3 has quit [Ping timeout: 264 seconds]
alem0lars has joined #ruby
<Wolland> i guess you can install it using brew as well
Guest72388 has quit [Remote host closed the connection]
frellnet has quit [Ping timeout: 255 seconds]
<Wolland> "brew install libiconv" and "brew link libiconv"
<Wolland> per some comments
frellnet has joined #ruby
freggles has joined #ruby
nateberkopec has joined #ruby
<Wolland> bunch of people saying xcode-select --install
<Wolland> fixed it
frellnet has quit [Ping timeout: 264 seconds]
frellnet has joined #ruby
toastynerd has joined #ruby
shredding has joined #ruby
<Wolland> you can also try and let rvm figure out missing deps
<Wolland> rvm autolibs rvm_pkg
chipotle has joined #ruby
r_rios has joined #ruby
<cajone> Guys for someone trying to do/learn TDD with no experience or writing test cases, in a non Rails project, could you give me some suggestions where to start?
febuiles_ has joined #ruby
<jhass> hm, picking a testing framework?
<Wolland> professor_soap: also do check mkmf.log it has more info there than error message it shows
<cajone> jhass: yes
toastynerd has quit [Ping timeout: 240 seconds]
frellnet has quit [Ping timeout: 240 seconds]
<jhass> so start with that, most popular are minitest and rspec
frellnet has joined #ruby
amystephen has joined #ruby
<cajone> jhass: is one got a shorter learning curve than the other?
<jhass> I don't think so
<jhass> rspec certainly has more features, but for the baseline it shouldn't give much
febuiles has quit [Ping timeout: 250 seconds]
funktor has quit [Remote host closed the connection]
<jhass> = for what you need on a daily basis
<cajone> jhass: just trying to get off the ground without getting lost in the mechanics, do you have any pointers that you could recommend ie docs/tuts/youtube stuff?
carraroj has joined #ruby
<jhass> I mostly learned TDD by working on an existing codebase, so I'm not a good reference for that
frellnet has quit [Ping timeout: 264 seconds]
frellnet has joined #ruby
<cajone> jhass: ok thanks for you comments, I will 'rake' around ;) to see what I can find
cleopatra has joined #ruby
xenomorph is now known as {xenomorph}
frellnet has quit [Ping timeout: 264 seconds]
frellnet has joined #ruby
<Wolland> professor_soap: good luck, i am passing out here
{xenomorph} is now known as xenomorph
Wolland has quit [Remote host closed the connection]
awkwords has joined #ruby
frellnet has quit [Ping timeout: 245 seconds]
dingus_khan has joined #ruby
frellnet has joined #ruby
kaspergrubbe has joined #ruby
ndrei has joined #ruby
<professor_soap> Wolland: thx, see u later
jshultz has joined #ruby
dingus_khan has quit [Ping timeout: 240 seconds]
professor_soap has quit []
frellnet has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
bruno- has joined #ruby
frellnet_ has joined #ruby
awkwords has quit [Ping timeout: 250 seconds]
xenomorph is now known as {xenomorph}
awkwords has joined #ruby
shredding has quit [Quit: shredding]
frellnet has quit [Ping timeout: 245 seconds]
frellnet_ has quit [Remote host closed the connection]
<gypsydave5> Anyone spare five minutes to enlighten me?
<jhass> ask for a solution, not a person with it
frellnet has joined #ruby
<gypsydave5> I'm reading a guide to Ruby and it's suggested that method(:method_name)
<gypsydave5> returns a proc
<jhass> >> String.method(:to_s).class
<eval-in__> jhass => Method (https://eval.in/173674)
<gypsydave5> but looking at the docs it says it returns a method object
<jhass> the guide is wrong
bruno- has quit [Ping timeout: 250 seconds]
<jhass> or outdated maybe, I don't know the history of that
<gypsydave5> Yeah, I'm hoping for outdated - it's the RubyTheHardWay book someone recommended
{xenomorph} is now known as xenomorph
<jhass> note that there's Method#to_proc and that that is called in a method call with foo(&method(:something)) which may the source for that confusion
<jhass> 18>> String.method(:to_s).class
<eval-in__> jhass => Method (https://eval.in/173675)
<jhass> see, even in ruby 1.8 it's Method, that guide is just wrong there
<gypsydave5> He's using it to store I guess what's an alias for the method as a symbol in a hash
frellnet_ has joined #ruby
<gypsydave5> But that's still just a method sitting in there
frellnet has quit [Ping timeout: 256 seconds]
<gypsydave5> i.e hash[:alias] = method(:method_name)
<jhass> Method and Proc share a lot of their semantics, so it's not that important anyway
<jhass> what chapter is that?
yfeldblum has joined #ruby
<gypsydave5> Exercise 40/41
<gypsydave5> The version on the website is different; think he's revising it
mark06 has joined #ruby
<jhass> I hope so, the online version is not very idiomatic ruby
fabrice31 has joined #ruby
<jhass> several things a Rubyist wouldn't write in the first few lines of code I read
<jhass> and neither do his nomenclature fit (this is just a variable is actually a constant, ruby has only methods, no pure functions, etc.)
<gypsydave5> Cool - thanks for saying that jhass - a lot of what I was reading wasn't really gelling with what I'd read/done
frellnet_ has quit [Ping timeout: 250 seconds]
<gypsydave5> hence my poking around the docs a lot too
frellnet has joined #ruby
<jhass> and I don't like his analogies at all, but that might be taste
carraroj has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
bogeyd6 has joined #ruby
<jhass> I don't see method used in the online version though
<gypsydave5> Me neither - I'm figuring he might've dumped it
xenomorph is now known as {xenomorph}
<jhass> so, once you got your first own script feel free to ask for a review here so we get a bit idiomatic Ruby into you ;)
<gypsydave5> I only paid hi $3 for the priviledge of reading it as a pdf though so I'm not going to moan :)
fabrice31 has quit [Ping timeout: 264 seconds]
<gypsydave5> Thanks jass - I'll see how I do this evening
<jhass> sure, it teaches the base principles of programming I guess, which is the real goal behind that series as far as I got it
frellnet has quit [Ping timeout: 245 seconds]
frellnet has joined #ruby
mark06 is now known as mark06_away
alexju has quit [Remote host closed the connection]
frellnet has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
{xenomorph} is now known as xenomorph
heftig has quit [Ping timeout: 250 seconds]
xenomorph is now known as {xenomorph}
heftig has joined #ruby
<dangerousdave> I am running a ruby application in a AWS instance. I launch the application from a bash script. The Ruby application runs in an infinite loop. My AWS instance returns a timeout, and dhows a red health status, i suspect because my application is in a loop. Any ideas on how to resolve this please?
frellnet has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
<pontiki> dangerousdave: are you saying it only does this on AWS? it doesn't do it on a dev/test or vagrant box?
<dangerousdave> pontiki, well i cant create the AWS eco system in development, specifically the health monitoring system.
<dangerousdave> pontiki, the application works fine on AWS, it just repots a bad state of health
<dangerousdave> reports*
coffeina has joined #ruby
xjiujiu has joined #ruby
frellnet has quit [Ping timeout: 250 seconds]
toastynerd has joined #ruby
frellnet has joined #ruby
<pontiki> your application is working, but it's in a loop?
alem0lars has quit [Quit: alem0lars]
<dangerousdave> pontiki, correct
<dangerousdave> it's supposed to be in a loop
<pontiki> then why do you think that's a problem?
toastynerd has quit [Ping timeout: 240 seconds]
frellnet has quit [Ping timeout: 245 seconds]
frellnet has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
TheKruex has joined #ruby
<dangerousdave> pontiki, the application is supposed to run continuosly in a loop, that is the intention. AWS should not be reporting it as being in an unhealthy state.
mehlah has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
e4xit has quit [Quit: Right I'm out!]
<wasamasa> hmm
<wasamasa> perhaps it expects it forking
frellnet has quit [Ping timeout: 245 seconds]
relix has quit [Remote host closed the connection]
snath has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
relix has joined #ruby
<dangerousdave> wasamasa, can you explain please?
<pontiki> oh, maybe
<wasamasa> damn these unix-likes
ndrei has joined #ruby
<wasamasa> so, suppose you run something like znc
<wasamasa> by default znc reads in your config file, then "forks to background"
<pontiki> daemonizes itself
<wasamasa> the original process you've started exits
<wasamasa> so you can use the shell you've started it in for other things
<wasamasa> while a copy of the process runs in the background
<pontiki> are you using opswords, dangerousdave ?
timonv_ has quit [Remote host closed the connection]
<pontiki> sorry
<pontiki> opsworks*
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
timonv_ has joined #ruby
xjiujiu has joined #ruby
frellnet has quit [Ping timeout: 245 seconds]
rtdp has quit [Ping timeout: 245 seconds]
frellnet has joined #ruby
chemic has joined #ruby
Perceptes has joined #ruby
<chemic> hey.. what’s up with #rubyonrails channel? it’s under password or?
<wasamasa> register an account at nickserv
<wasamasa> identify with nickserv
GriffinHeart has joined #ruby
<chemic> thx
<dangerousdave> pontiki, no, elastic beanstalk
<wasamasa> join freenode channels like #RubyOnRails, #archlinux, ...
timonv_ has quit [Ping timeout: 260 seconds]
ndrei has quit [Ping timeout: 240 seconds]
<dangerousdave> wasamasa, that sounds like a great idea, would this be in the bash script? or the ruby app?
<wasamasa> dangerousdave: well, uh, actually the ruby servers supports forking
frellnet has quit [Ping timeout: 260 seconds]
<wasamasa> dangerousdave: depending on what you use to supervise processes you need to know what behaviour they expect
<dangerousdave> wasamasa, hmmmmm, i don't use anything
apeiros_ has joined #ruby
<wasamasa> dangerousdave: for example systemd marks forking processes as "failed" for me, but shows a return code of 0 for their child processes which means forking successfully happened
frellnet has joined #ruby
elaptics is now known as elaptics`away
<wasamasa> dangerousdave: and tracks the non-daemonizing ones as expected
tot has joined #ruby
<wasamasa> dangerousdave: well, at your place it's this aws thing doing the tracking, no?
<dangerousdave> I guess so
<tot> hello
<dangerousdave> wasamasa, this is the sort of thing I am doing http://junkheap.net/blog/2013/05/20/elastic-beanstalk-post-deployment-scripts/
<wasamasa> then find out how it does that
GriffinHeart has quit [Ping timeout: 245 seconds]
<wasamasa> and whether it's a problem at all or just a warning
<dangerousdave> wasamasa, however it runs my ruby app, not delayed job
apeiros has quit [Ping timeout: 245 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
frellnet has quit [Ping timeout: 240 seconds]
dawkirst has joined #ruby
frellnet has joined #ruby
rapha has left #ruby ["bye!"]
lukec has joined #ruby
mehlah has quit [Quit: Leaving...]
agjacome_ has joined #ruby
olivier_bK has quit [Ping timeout: 256 seconds]
dc has quit [Remote host closed the connection]
diegoviola has joined #ruby
frellnet has quit [Ping timeout: 250 seconds]
agjacome has quit [Ping timeout: 250 seconds]
dawkirst has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
frellnet has joined #ruby
vincent_ has joined #ruby
dc has joined #ruby
vincent_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
pu22l3r has joined #ruby
linojon has joined #ruby
ndrei has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
frellnet has quit [Ping timeout: 250 seconds]
frellnet has joined #ruby
dc has quit [Remote host closed the connection]
bruno- has joined #ruby
jottr_ has quit [Ping timeout: 256 seconds]
agjacome_ has quit [Quit: leaving]
dc has joined #ruby
pu22l3r has quit [Ping timeout: 255 seconds]
chipotle has quit [Quit: cya]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
frellnet has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
_maes_ has joined #ruby
<diegoviola> sorry to be off-topic, but there's this guy who instead of asking me if i'm interested, is insisting me that i look into his project in a very desperate way, and i think his project is in PHP, and i have zero interest in looking at it, how do i tell him politely that i'm not interested?
<apeiros_> "fuck you, I'm not interested"
<diegoviola> thanks
<apeiros_> ok, I may not be the best reference for polite indication of disinterest :)
apeiros_ is now known as apeiros
<Perceptes> or a white lie, say you'd like to help but are too busy at the moment
<apeiros> meh
* apeiros doesn't like white lies
<apeiros> I'd rather be brushed off than lied to
<apeiros> jhass: hehe, yeah, that one is nice
nateberkopec has quit [Quit: Leaving...]
<diegoviola> i agree with apeiros
<diegoviola> honesty is good
centrx has joined #ruby
<apeiros> diegoviola: anyway, more seriously - just tell him "I'm not interested". that's fine. and if he insists, he basically allows you to brush him off.
<jhass> ^ not interested and filter rule that deletes further mails from him
frellnet has quit [Ping timeout: 240 seconds]
<jhass> (if they come)
kaspergrubbe has quit [Remote host closed the connection]
<gzl> jhass: that's funny, what's that from?
frellnet has joined #ruby
<apeiros> 1. reply "I'm not interested", 2. "I politely told you I'm not interested. I'm still not interested. Please don't make me resort to impolitely tell you to gtfo.", 3. "GTFO". 4. blacklist
<jhass> gzl: dunno, just something that passed by in my SN
<gzl> ok
<shevy> heyyyyy all
<shevy> apeiros has a blacklist!
<apeiros> that'd be about my escalation ladder. depends a bit on how well you know the guy
<shevy> let's trigger it!!!
<apeiros> shevy: of course. you've made it onto it thrice over ;-)
<centrx> oogaboogadogoadodo odgooogaboogaogooogoaaogoaogbgbbogogbaogoaoog
centrx was kicked from #ruby by apeiros [no spam :-p]
centrx has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
<jhass> diegoviola: redirect him to centrx, he loves PHP
<centrx> I've been blacklisted
<centrx> PHP is an abomination and a scourge on the face of the Earth.
xjiujiu has joined #ruby
<jhass> so predictable \o/
<centrx> back to work people, nothing to see here
<apeiros> I think he has it in his canned message list
<diegoviola> apeiros: thanks
tot has quit [Quit: Page closed]
<diegoviola> thanks guys
frellnet has quit [Ping timeout: 240 seconds]
timonv_ has quit [Remote host closed the connection]
namxam_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
frankle has joined #ruby
michael_lee has quit [Ping timeout: 240 seconds]
timonv_ has quit [Ping timeout: 250 seconds]
Neomex has joined #ruby
freerobby has joined #ruby
toastynerd has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
<gypsydave5> ps
gypsydave5 has quit [Quit: leaving]
xjiujiu has joined #ruby
Lewix has joined #ruby
toastynerd has quit [Ping timeout: 245 seconds]
michael_lee has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
krz has joined #ruby
Morkel has joined #ruby
fold has joined #ruby
xjiujiu has quit [Ping timeout: 264 seconds]
dingus_khan has joined #ruby
SilkFox has joined #ruby
chris123456789 has joined #ruby
yfeldblum has joined #ruby
dingus_khan has quit [Ping timeout: 240 seconds]
timonv_ has joined #ruby
fabrice31 has joined #ruby
ausumpossum has joined #ruby
darkxploit has quit [Ping timeout: 256 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
ausumpossum has left #ruby [#ruby]
fabrice31 has quit [Ping timeout: 240 seconds]
vifino has joined #ruby
dc has quit [Remote host closed the connection]
unshadow has joined #ruby
vincent_ has joined #ruby
<vifino> Can someone help me? http://hastebin.com/enofimekag
dc has joined #ruby
timonv_ has quit [Ping timeout: 264 seconds]
<Perceptes> vifino: I think you want `bot.nick` rather than `IRC.nick`
<vifino> I tried that too, doesnt work either :/
<Perceptes> undefined method error?
<vifino> Yes
<Perceptes> oh, you need an accessor method
<vifino> ircbot.rb:33:in `run': undefined method `nick' for #<IRC:0x007fcdd39b2028> (NoMethodError)
<vifino> This ^
<vifino> A what?
<Perceptes> add this to the body of the IRC class definition: `attr_reader :nick`
<Perceptes> you've assigned a value to the instance variable `@nick`, but that's not the same thing as calling `bot.nick` from outside the class
<vifino> Bottom or top?
<Perceptes> `bot.nick` looks for a method named nick
<Perceptes> doesn't matter, generally they go at the top though
<vifino> okay
<Perceptes> `attr_reader :nick` is the canonical way to define a reader method that returns the value of the instance variable with the same name
chris123456789 has quit [Ping timeout: 240 seconds]
<vifino> \o/
<vifino> It works!
<vifino> :D
<Perceptes> :}
<vifino> Thanks Perceptes!
<Perceptes> you're welcome
bruno- has quit [Ping timeout: 240 seconds]
<vifino> It connects! :D
<Perceptes> aww yeee
<vifino> ikr?
<unshadow> I'm having some issues when wroking with SOAP (using savon gem), I got a C# code that shows what to do but becuse its in C# I cant seems to get it to work :/
<vifino> My first project in ruby, that runs standalone, I only wrote some scripts for my irc client before
Shidash has joined #ruby
darkxploit has joined #ruby
xjiujiu has joined #ruby
namxam has joined #ruby
stytown has joined #ruby
bruno- has joined #ruby
mike32 has quit [Quit: Leaving]
stytown has quit [Client Quit]
darkxploit has quit [Max SendQ exceeded]
lkba has quit [Read error: Connection reset by peer]
bluenemo has quit [Ping timeout: 250 seconds]
awkwords has quit [Ping timeout: 245 seconds]
darkxploit has joined #ruby
SilkFox has quit [Ping timeout: 250 seconds]
mr-foobar has quit [Ping timeout: 245 seconds]
<vifino> How can I match a string for ":End of /MOTD command."
<vifino> ?
<jhass> s.include? ":End of /MOTD command."
<vifino> ohok
<vifino> damn, you guys are helpful!
jagadish has quit [Remote host closed the connection]
lkba has joined #ruby
<jhass> btw. I take it you're doing that as exercise and are aware of frameworks such as cinchrb
<vifino> uhm...
freerobby has quit [Quit: Leaving.]
zB0hs has joined #ruby
sputnik1_ has joined #ruby
<shevy> he'll write something better
zB0hs has quit [Client Quit]
toastynerd has joined #ruby
charliesome has joined #ruby
toastynerd has quit [Ping timeout: 255 seconds]
nateberkopec has joined #ruby
GriffinHeart has joined #ruby
mr_snowf1ake has quit [Ping timeout: 240 seconds]
lxsameer has quit [Quit: Leaving]
bluenemo has joined #ruby
bogeyd6 has quit [Ping timeout: 250 seconds]
bogeyd6 has joined #ruby
GriffinHeart has quit [Ping timeout: 240 seconds]
<vifino> Irc connecting thing in 62 lines without even knowing ruby! \o/
SCommette has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
sixxy has joined #ruby
<czaks> there is also this thingy
<czaks> example code
arya_ has quit [Ping timeout: 240 seconds]
enebo has joined #ruby
arya_ has joined #ruby
freerobby has joined #ruby
zkay11 has joined #ruby
yfeldblum has joined #ruby
SilkFox has joined #ruby
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 264 seconds]
SilkFox has quit [Ping timeout: 240 seconds]
cesare has joined #ruby
IceDragon has joined #ruby
dawkirst has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
alexju has joined #ruby
freerobby has quit [Quit: Leaving.]
kireevco has joined #ruby
Channel6 has joined #ruby
andrewlio has quit [Quit: Leaving.]
IceDragon has quit [Ping timeout: 240 seconds]
dawkirst has quit [Ping timeout: 260 seconds]
mary5030 has joined #ruby
pu22l3r has joined #ruby
cleopatra has quit [Ping timeout: 240 seconds]
sptx00 has joined #ruby
amargherio has joined #ruby
spider-mario has quit [Remote host closed the connection]
IceDragon has joined #ruby
pu22l3r has quit [Ping timeout: 245 seconds]
Morkel has quit [Quit: Morkel]
<pontiki> rehi
lkba has quit [Ping timeout: 240 seconds]
Perceptes has quit [Quit: Leaving.]
freerobby has joined #ruby
St_Marx has joined #ruby
mary5030 has quit [Remote host closed the connection]
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
IceDragon has quit [Ping timeout: 240 seconds]
<shevy> pontiki!
armyriad has quit [Ping timeout: 240 seconds]
<pontiki> hey shevy
Lewix has quit [Remote host closed the connection]
IceDragon has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
coffeina has quit [Quit: Wychodzi]
CorpusCallosum has joined #ruby
mr-foobar has joined #ruby
jmbrown412 has quit [Remote host closed the connection]
Lewix has joined #ruby
jmbrown412 has joined #ruby
alexju has quit [Read error: Connection reset by peer]
IceDragon has quit [Ping timeout: 240 seconds]
dc has quit [Remote host closed the connection]
alexju has joined #ruby
IceDragon has joined #ruby
lethjakman has joined #ruby
agjacome has joined #ruby
mark06_away is now known as mark06
spastorino has joined #ruby
cleopatra has joined #ruby
mark06 has left #ruby [#ruby]
lkba has joined #ruby
mr-foobar has quit [Ping timeout: 250 seconds]
CaptainJet has joined #ruby
spider-mario has joined #ruby
jmbrown412 has quit [Ping timeout: 250 seconds]
Darryl has joined #ruby
carraroj has joined #ruby
nateberkopec has quit [Quit: Leaving...]
sevvie has joined #ruby
creede has joined #ruby
Envek has joined #ruby
toastynerd has joined #ruby
timonv_ has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
mr-foobar has joined #ruby
asdasdasdasss has joined #ruby
timonv_ has quit [Ping timeout: 245 seconds]
toastynerd has quit [Ping timeout: 245 seconds]
stytown has joined #ruby
pothibo has joined #ruby
carraroj has quit [Ping timeout: 245 seconds]
TheKruex has quit []
TheKruex has joined #ruby
GlenK has joined #ruby
vincent_ has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 240 seconds]
asdasdasdasss is now known as resiolikesitinth
resiolikesitinth is now known as resiobuttlover
sdouglas has joined #ruby
resiobuttlover is now known as NoticeIsOnYou
yfeldblum has joined #ruby
nszceta has joined #ruby
arup_r has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
<arup_r> Can any one help me on this - https://gist.github.com/aruprakshit/c025cd48e133a90a5d9f ? It seems, need meta programming...
mijicd has joined #ruby
cesare has quit [Ping timeout: 256 seconds]
fabrice31 has joined #ruby
<apeiros> arup_r: assign self to a local variable, invoke the methods on that
<apeiros> e.g. `def configure_path(directory_path, glob_pattern = "**/*"); this = self; monitor.path(directory_path, glob_pattern) do; this.create_event; …`
<arup_r> ahh `this` .. Are you JavaScript guy? :-)
<yxhuvud> hmm. Why is it behaving like that? instance_exec ?
<apeiros> no. in js I use the opposite. I do `var self = this` :)
freerobby has quit [Quit: Leaving.]
yfeldblum has quit [Ping timeout: 240 seconds]
<apeiros> yxhuvud: must be one of the *exec or *eval family
<arup_r> yxhuvud: it seems so;
<yxhuvud> apeiros: must? I think it also *could* be playing around with bindings, but that seems unlikely
<apeiros> if you can show me how you can create that effect with bindings…
<apeiros> I'm pretty sure you can't do that
<arup_r> That creates another problem..Really need one more level of meta programming.. Updating the Gist
cleopatra has quit [Quit: Saliendo]
mr-foobar has quit [Ping timeout: 256 seconds]
cleopatra has joined #ruby
<apeiros> arup_r: that has nothing to do with metaprogramming. please don't abuse that term.
<apeiros> too many do already.
TheKruex has quit []
<arup_r> oh sorry
<apeiros> metaprogramming is when you use code to generate code.
<arup_r> I agree
fabrice31 has quit [Ping timeout: 250 seconds]
sdouglas has quit [Remote host closed the connection]
kireevco1 has joined #ruby
m3_del has joined #ruby
sdouglas has joined #ruby
<banister> apeiros can i show you my controller
<apeiros> banister: you can, but I'm - once again - watching sc2 at the moment. I *might* be distracted at times :D
zoosjuice has joined #ruby
zoosjuice has quit [Max SendQ exceeded]
<banister> apeiros i really like it, cleans up controllers to just do simple shit, all the complicated stuff happens in the service objects (and they take callbacks, so the controller doesnt even have to query the service object)
mary5030 has joined #ruby
Hobogrammer has joined #ruby
<arup_r> Yeah,, It is fixed now...
kireevco has quit [Ping timeout: 245 seconds]
<arup_r> second problem also resolved...
<arup_r> But the code looks some odd.
<apeiros> banister: looks nice
<banister> apeiros thx
<apeiros> I guess the only part I don't like is that it's not explicit about those blocks being mutually exclusive
cesare has joined #ruby
<banister> apeiros well ajax is the same with its success: and error: callbacks no?
<apeiros> I rarely ever consider JS to be role model code :D
m3_del has quit [Ping timeout: 240 seconds]
sdouglas has quit [Ping timeout: 245 seconds]
<banister> hehe
<arup_r> Can you check the fixed code... https://gist.github.com/aruprakshit/c025cd48e133a90a5d9f Is it correct way of doing this stuff ?
<apeiros> when you see the lengths people go to undo the damage async JS does to code structure…
<apeiros> arup_r: you should update the *code*, not paste a comment with the updated code
<shevy> hehehe
<apeiros> gist stores all versions and people can view diffs and old versions
<shevy> he almost tricked apeiros here
<arup_r> ok
AskSteve has joined #ruby
dapz has joined #ruby
dapz has quit [Max SendQ exceeded]
mijicd has quit [Remote host closed the connection]
farleyknight has quit [Ping timeout: 250 seconds]
kireevco1 has quit [Quit: Leaving.]
mocchi has quit [Quit: ZNC - http://znc.in]
mijicd has joined #ruby
mocchi has joined #ruby
Notte has joined #ruby
frankle has quit [Quit: Connection closed for inactivity]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
AskSteve has quit [Ping timeout: 264 seconds]
<arup_r> apeiros: Updated.
<apeiros> arup_r: sorry, was distracted. does that code actually run? because I don't think it can work
lw has joined #ruby
<arup_r> Yes.. It is not failing now..
<apeiros> arup_r: think about it - on what object do you want to want to call `update`?
<apeiros> arup_r: and the other thing to think about: where is the *local* variable `fsm` visible?
<arup_r> fsm object..
<apeiros> fsm is an instance of what?
stytown has quit [Quit: stytown]
<apeiros> come on, that should be a 1s answer ;-)
ph8 has quit [Changing host]
ph8 has joined #ruby
<arup_r> Yes..Got your point.
bruno- has joined #ruby
<arup_r> I was on the *fsm* flow..
<arup_r> ;)
<apeiros> o0
Lewix has quit [Remote host closed the connection]
sdouglas has joined #ruby
<arup_r> aspeiros: Now working... But only I am thinking is it good as per OOP principal...? I need you like expert reviews..
<arup_r> updated too
mr-foobar has joined #ruby
Envek has quit [Ping timeout: 264 seconds]
arya_ has quit [Quit: sayonara^_^]
monsieurp has quit [Changing host]
monsieurp has joined #ruby
<apeiros> arup_r: why do you pass in self? you already have that available in the method
Aryasam has joined #ruby
<arup_r> If I don't pass self, it is throwing errror
<apeiros> again, think about it:
<arup_r> because those hook methods are called on my object.
<apeiros> you call update_event on your FileSystemMonitor instance. your FileSystemMonitor instance stores the FSSM::Monitor.new instance on which you want to call update
<jhass> apeiros: I guess the block is instance_eval'd
<apeiros> jhass: yes, which is why he has to fsm.create_event. that part is ok.
<apeiros> jhass: but fsm.create_event(self) is pointless. he has access to the value `self` represents there in the create_event method.
bluenemo has quit [Ping timeout: 250 seconds]
<arup_r> If I don't pass self, then second comment error will be called..
<jhass> oh, gotcha
<apeiros> arup_r: I don't tell you to just remove the (self) part. I tell you to substitute it with something your object already knows about.
Envek has joined #ruby
<arup_r> apeiros: oh... pain on my brain :(
sixxy has quit [Remote host closed the connection]
<apeiros> arup_r: you have @monitor in your FileSystemMonitor instance. self within that path block is that value also stored in @monitor
<apeiros> you have access to that in your update_event instance method
<apeiros> no need to additionally pass it around. that's just redundant
farleyknight has joined #ruby
mehlah has joined #ruby
<arup_r> Ohh!! It seems I should start eating grasses now...
<jhass> that does use_block(context, block) context.instance_eval(&block) end effectively
<jhass> so it's FSSM::Path not FSSM::Monitor
Hobogrammer has quit [Read error: Connection reset by peer]
codezomb has joined #ruby
<apeiros> jhass: oh dear. indeed.
<apeiros> arup_r: ok. you have to pass in self. misinterpretation on my part.
Notte has quit [Remote host closed the connection]
<arup_r> Can I write the method `configure_path` much better way ? There those `self`s are needed indeed. But not reading well. How can I clean the code...?
Envek has quit [Ping timeout: 250 seconds]
orionstein_away is now known as orionstein
Azure has quit [Quit: My MBP went to sleep.]
GriffinHeart has joined #ruby
rubytor has joined #ruby
alexju has quit [Remote host closed the connection]
namxam has quit [Remote host closed the connection]
Envek has joined #ruby
GriffinHeart has quit [Ping timeout: 255 seconds]
kireevco has joined #ruby
nszceta has quit []
Envek has quit [Client Quit]
zorak has joined #ruby
sdouglas has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
centrx has quit [Quit: Mead error: Connection reset by beer]
k0m has joined #ruby
Hobogrammer has joined #ruby
Hobogrammer has quit [Read error: Connection reset by peer]
Azure has joined #ruby
<shevy> what
<shevy> the
<shevy> fuck
Hobogrammer has joined #ruby
DivineEntity has quit [Ping timeout: 240 seconds]
<shevy> fsm = self
<shevy> fsm.create_event(self)
<shevy> what are you doing man
Envek has joined #ruby
<arup_r> shevy: I know that method is looking too ugly... :(
carraroj has joined #ruby
<arup_r> Thus asking.. how can I improve it ?
<vifino> I want to split the string "test 1 2 3" to "test" and "1 2 3", how can I do this?
yfeldblum has joined #ruby
wallerdev has joined #ruby
<shevy> I have never before in my life seen, basically this
<jhass> vifino: .split(' ', 2)
<shevy> self.some_method(self)
<vifino> jhass: What does that do?
<shevy> >> "test 1 2 3".split(' ', 2)
<eval-in__> shevy => ["test", "1 2 3"] (https://eval.in/173677)
<jhass> splits at ' ' until it has 2 pieces
<shevy> >> "test 1 2 3".split(' ')
<eval-in__> shevy => ["test", "1", "2", "3"] (https://eval.in/173678)
<arup_r> those are 2 balls exposed ... ;)
<vifino> shevy: Thanks
lethjakman has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 250 seconds]
nwkr is now known as Nowaker
yfeldblum has quit [Ping timeout: 255 seconds]
carraroj has quit [Ping timeout: 255 seconds]
mr-foobar has quit [Ping timeout: 260 seconds]
sepp2k has joined #ruby
toastynerd has joined #ruby
timonv_ has joined #ruby
mr-foobar has joined #ruby
k0m_ has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
Guest5626 is now known as matson
claymore has quit [Ping timeout: 260 seconds]
bradleyprice has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
timonv_ has quit [Remote host closed the connection]
funktor has joined #ruby
claymore has joined #ruby
mr-foobar has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
luckyruby has joined #ruby
dapz has joined #ruby
SilkFox has joined #ruby
dc has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Fire-Dragon-DoL has joined #ruby
agent_white has joined #ruby
binaryhat has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
mr-foobar has joined #ruby
binaryhat has joined #ruby
xjiujiu has quit [Read error: Connection reset by peer]
SilkFox has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
saarinen has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
Fire-Dragon-DoL has joined #ruby
Notte has joined #ruby
claymore has quit [Ping timeout: 264 seconds]
claymore has joined #ruby
Nilium has quit [Ping timeout: 240 seconds]
k0m has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<vifino> Any idea on how to make a function parser? Like input "func one two three", and then call "func" if it is in an array, or something like that
dawkirst has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
agent_white has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
danijoo has joined #ruby
mr-foobar has quit [Ping timeout: 264 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SCommette has quit [Quit: SCommette]
larissa has joined #ruby
sheperson has joined #ruby
dapz has joined #ruby
dawkirst has quit [Ping timeout: 255 seconds]
mehlah has quit [Quit: Leaving...]
mr-foobar has joined #ruby
NoticeIsOnYou has quit [Quit: Computer has gone to sleep.]
NoticeIsOnYou has joined #ruby
<shevy> sounds like string scanner and tokenizer
JBreit has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dingus_khan has joined #ruby
<mordof> shevy: osu
<shevy> hmm who were you mordof
<shevy> were you the guy who only learned ruby for work?
<mordof> shevy: yes, lol
<shevy> damn man
<shevy> work ruined you
Nahra has quit [Remote host closed the connection]
<mordof> i'm doing two classes in the evenings as well.. that's more what caused it
<mordof> and planning a wedding
<mordof> lots to do..
NoticeIsOnYou has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
<mordof> oh and preparing to move, lol
<shevy> yeah it's ok
<shevy> we'll always remember you from back in the days
<shevy> when you used to be cool still
<mordof> haha
timonv_ has joined #ruby
<mordof> shevy: still, very much enjoying the language at work :)
<shevy> the heat here is killing me
<mordof> what's the temp?
Envek has quit [Quit: Good bye, see you soon!/]
<shevy> a bit above 30°C, but this is damn high, a week ago it was around 21°
Morkel has joined #ruby
<shevy> and it is past 8 o clock in the evening too
<mordof> oh wow
<mordof> 23 here currently
<shevy> I envy you
<shevy> not for the other stuff though (work/classes/wedding/relocation)
<mordof> we had heat in the mid 30s a few weeks ago though
<shevy> that sucks as well
<shevy> it should always be 25°C
<mordof> being beside a lake made it humid also.. sucked, so i feel your pain
<mordof> mhmm
<shevy> and sunshine and a very mild, weak breeze
<shevy> humidity is the worst
* mordof nods
timonv_ has quit [Remote host closed the connection]
<mordof> shevy: hey - so what kind of things does ruby usually get made for other than useful little tools?
<mordof> used for*
mijicd has quit [Remote host closed the connection]
<agent_white> Put Ruby in my coffee in the morning, and smear it on my pancakes.
<shevy> that's how I use ruby
<agent_white> Otehr than that, haven't found a use for it.
<mordof> lol
mr-foobar has quit [Ping timeout: 260 seconds]
<shevy> at work I am going to have to convince everyone else that ruby is a good glue language
<shevy> for doing shit with electron microscopy datasets, of which I don't even know precisely how that data is gained in the first place
mr-foobar has joined #ruby
<shevy> but I also learned a lesson
<shevy> custom build stuff STINKS
havenwood has joined #ruby
mr-foobar has quit [Client Quit]
<mordof> yeah no kidding..
ramfjord has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mordof> i don't know bash scripts very well so that would be tedious for me at best
agjacome has quit [Ping timeout: 256 seconds]
<mordof> that's fairly straight forward though i think
k0m_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> yeah
<shevy> and it works
<mordof> nice
<shevy> but if I compile fftw and fltk on my own
<shevy> I can't compile it (relion is the name of the software in question)
diegoviola has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 260 seconds]
<shevy> mordof as for your question
<shevy> I think basically you try to look for large stuff thingies right?
tectonic has joined #ruby
<shevy> we have prawn, which should work as a pdf-suite
<mordof> shevy: already using prawn at work
fold has quit [Ping timeout: 264 seconds]
<mordof> pdf/csv/xlsx/docx generation
<shevy> there you go!
<mordof> the docx is so annoying :/
<shevy> it is XML based right?
<mordof> partially, yeah
<mordof> scattered with random encoded stuff
rkazak_ has joined #ruby
<shevy> excellent
<shevy> so you are a XML generating person
<mordof> essentially the process so far has been to create it in a normal word doc, then view the source and recreate the generation of that same document in code
<mordof> well
<mordof> shevy: that's far from my main task
<mordof> but it's one of them
michael_lee has quit [Quit: Ex-Chat]
lw has quit [Quit: s]
SilkFox has joined #ruby
workmad3 has joined #ruby
<rkazak_> hi all.
<mordof> the main thing at work is a dashboard to provide tools and information about a myriad of things... so whatever ends up being needed at the time gets made
<vifino> How can I catch errors from eval?
<mordof> and some of that involves generating reports
<shevy> well how much bigger do you wanna take it mordof
<shevy> I don't think ruby will be used for core GUI components
<mordof> shevy: i'm just wondering for interesting side projects
<shevy> nor for computer intensive games
<mordof> not something like what i do at work, lol
<shevy> I started todo files
<shevy> since then I have never run out of things to do
<mordof> shevy: meh, maybe i'll stick with games in the browser with js/canvas
<shevy> here is one todo list: "Consider adding asciitable again, for the help section."
<shevy> so here I wonder how to best, and most easily, make asciitable helpers, for commandline stuff
<shevy> but only as simple as possible
lw has joined #ruby
{xenomorph} is now known as xenomorph
\q has quit [Ping timeout: 240 seconds]
<mordof> shevy: almost done with my pacman implementation in canvas :)
teleporter has quit [Read error: Connection reset by peer]
teleporter has joined #ruby
freerobby has joined #ruby
yfeldblum has joined #ruby
SilkFox has quit [Ping timeout: 250 seconds]
sheperson has quit [Quit: sheperson]
Gonzih has quit [Ping timeout: 264 seconds]
<shevy> canvas?
<shevy> javascript?
workmad3 has quit [Ping timeout: 240 seconds]
benzrf is now known as benzrf|offline
<mordof> yes.
<mordof> it's what i know best
<shevy> :(
tectonic has quit []
<shevy> javascript is killing ruby
<drizz> javascript is killing a lot of languages actually
<rkazak_> shevy: you got to use the right thing for the job in hand...
fabrice31 has joined #ruby
<drizz> rkazak_: that's assuming javascript is the right thing for anything
<mordof> lol, the js hate in here is funny
<rkazak_> maybe we should be trying to make ruby more browser firendly ( not sure if it is or not.. :) )
hfp has quit [Ping timeout: 240 seconds]
<mordof> if ruby had decent GUI libs for the OS - wouldn't that make it a decent language for desktop applications?
yfeldblum has quit [Ping timeout: 255 seconds]
hfp has joined #ruby
<shevy> rkazak_ is php the right thing for the job
<rkazak_> mordof: You have a project!
<mordof> lol...
<mordof> crap
<shevy> mordof has no time for anything
<shevy> he is no longer cool
<mordof> xD
<mordof> shevy: once i'm done my classes i'll have time to work on a project
<shevy> <mordof> and planning a wedding
<shevy> mordof> oh and preparing to move, lol
<rkazak_> shevy: php is that still being used ? 9.9
ramfjord has quit [Ping timeout: 245 seconds]
<shevy> rkazak_ they are working on php 6
<mordof> shevy: pssh they've been saying that for like 5 years, lol
<shevy> mordof but one core maintainer said that lately on reddit!
<rkazak_> sounds like perl6...
<mordof> shevy: they already ported many of php 6's features over to php 5
<mordof> meh.. i've never really enjoyed PHP, even though i know the language fairly well
<rkazak_> anyway I think we need a polyglot channel on freenode…. then we can discuss any language!!!
<shevy> php is more popular than ruby
<mordof> rkazak_: the flame wars would be rampant
<mordof> lol
fabrice31 has quit [Ping timeout: 240 seconds]
<rkazak_> Hmm, I see people moving from php to js...
<mordof> shevy: did you see that i sent you a link?
<mordof> rkazak_: ... using node?
<arup_r> I hate
agjacome has joined #ruby
<shevy> mordof yeah it's a nice javascript game
NoticeIsOnYou has joined #ruby
<rkazak_> mordof: we would have ruy rules…. be nice -
<shevy> it is not a game in ruby though
<mordof> shevy: runs well on mobile phones too, heh
<rkazak_> ruy=ruby
<shevy> ruy rules
<shevy> the creator of ruby
Solnse has joined #ruby
<shevy> perhaps you even meant Roy
<shevy> Roy "matz" rules, creator of ruby
<shevy> I am sorry, it is the heat; it kills me ...
<shevy> normally you would assume that it gets colder when it is dark outside, but no :(
kireevco has quit [Quit: Leaving.]
<rkazak_> Hehe.. He’s in the Bay area giving a talk on 30th but I am on a plane then :(
hfp has quit [Ping timeout: 256 seconds]
<mordof> speaking of php.. time to install wordpress
* mordof dies a little inside
dmitrykorotkov has joined #ruby
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
dvb_ua has joined #ruby
hfp_ has joined #ruby
_maes_ has quit [Read error: Connection reset by peer]
ra4king has quit [Remote host closed the connection]
hfp- has joined #ruby
lw has quit [Quit: s]
hfp| has joined #ruby
ra4king has joined #ruby
hfp^ has joined #ruby
chemic has quit [Quit: chemic]
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
\q has joined #ruby
<mordof> hmm... a gui toolkit certainly would take a decent amount of effort...
<mordof> especially a good one
dapz has joined #ruby
<shevy> weakling
hfp_ has quit [Ping timeout: 250 seconds]
<shevy> a gui should be as natural as the commandline
<mordof> lol
<mordof> i mean making a toolkit
<shevy> we had one once
<shevy> shoes
<mordof> shoes doesn't look that good though
<shevy> then some folks came along and stole it into the java world
hfp- has quit [Ping timeout: 250 seconds]
<shevy> shoes looked better in the past
<shevy> new maintainers
mehlah has joined #ruby
<shevy> new project
<mordof> h
<mordof> ah
hfp| has quit [Ping timeout: 250 seconds]
cesare has quit [Ping timeout: 255 seconds]
shredding has joined #ruby
SilkFox has joined #ruby
<shevy> I still would like a cross GUI language
<shevy> one that is agnostic of anything else
<shevy> so you could then plugin any other toolkit you want to
<shevy> fox, gnome, kde, shoes-whatever, wxruby
<shevy> hi Hanmac1
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amacou has quit [Remote host closed the connection]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mordof> shevy: so essentially you'd want a package to normalize the window handling so any interface library could just be dropped on top of it?
<eam> sounds like you're asking for tcl/tk
amacou has joined #ruby
<shevy> mordof well, kinda
Notte has quit [Remote host closed the connection]
<shevy> mordof I guess there are some subtle differences among the toolkits
blackmesa has joined #ruby
<shevy> like that ... slot-handling mechanism in Qt
dapz has joined #ruby
<shevy> actually
<shevy> mordof I also meant to be inclusive of the www-ways too :)
bluenemo has joined #ruby
<shevy> styling could be done with CSS, no need to reinvent everything
<mordof> lol xD
<mordof> wow, not asking for much at all
larsam has joined #ruby
<shevy> :\
<shevy> I am doing only small things these days
<shevy> like asciitables-on-the-commandline
<mordof> :p
<shevy> right now I read a prawn tutorial again
<mordof> which is like 0.01% of the effort of what would be needed for this currently discussed task
<mordof> maybe even less
<shevy> hey eam did you narrow down the parser bug?
<shevy> yeah mordof
<mordof> was that question for me?
<shevy> you did not find a parser bug mordof
<shevy> big projects suck away an insane amount of time
<shevy> small projects are much friendlier
<mordof> shevy: well - i wasn't sure if you typo'd and were referring to my html parser
<mordof> lol
<shevy> no
<shevy> that was your first project right?
<shevy> I told you to cancel it
amacou has quit [Ping timeout: 240 seconds]
<shevy> and move on to the good stuff
<mordof> haha, yeah
<shevy> now you are stuck in work, marriage, relocation and what not
<shevy> the good days are over
<shevy> oh
<shevy> and javascript
<shevy> :\
<shevy> you depress me mordof
<shevy> I'm going to find beer now
<mordof> haha
<mordof> i actually am enjoying life more this way, so it's all good
lkba has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
saarinen has quit [Quit: saarinen]
mr-foobar has joined #ruby
GlenK has quit []
GlenK has joined #ruby
pu22l3r has joined #ruby
dc has quit [Remote host closed the connection]
ascarter has joined #ruby
roolo has joined #ruby
pu22l3r has quit [Ping timeout: 255 seconds]
SilkFox has quit [Ping timeout: 240 seconds]
timonv_ has joined #ruby
lw has joined #ruby
enebo has quit [Quit: enebo]
hfp^ is now known as hfp
hfp is now known as hfp_
hfp_ is now known as hfp
GriffinHeart has joined #ruby
QKO has quit [Remote host closed the connection]
charliesome has joined #ruby
dbasch has joined #ruby
<vifino> oh man, im in love with ruby
<vifino> Process.detach OP
arup_r1 has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
Bumptious has joined #ruby
snath has joined #ruby
fold has joined #ruby
QKO has joined #ruby
GriffinHeart has quit [Ping timeout: 264 seconds]
reebs has joined #ruby
sevvie has quit [Ping timeout: 245 seconds]
hfp_ has joined #ruby
hfp has quit [Ping timeout: 245 seconds]
SouL has joined #ruby
sixxy has joined #ruby
Atttwww has joined #ruby
dbasch has quit [Read error: Connection reset by peer]
dbasch has joined #ruby
juco has joined #ruby
Vivekananda_y510 has joined #ruby
mijicd has joined #ruby
Karpuragauram has joined #ruby
dmitrykorotkov has quit [Remote host closed the connection]
blackmesa has joined #ruby
yfeldblum has joined #ruby
binw has quit [Read error: Connection reset by peer]
Fusl has quit [Quit: Contact: http://hallowe.lt/]
ra4king has quit [Remote host closed the connection]
yacks has quit [Quit: Leaving]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maestrojed has joined #ruby
yacks has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
SouL has quit [Ping timeout: 240 seconds]
reebs has quit [Quit: Textual IRC Client: www.textualapp.com]
Karpuragauram has quit [Quit: Leaving]
dingus_khan has quit [Remote host closed the connection]
binw has joined #ruby
linojon has quit [Quit: linojon]
snath has quit [Ping timeout: 240 seconds]
<vifino> How can i have an irb like eval?
linojon has joined #ruby
SouL has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
alem0lars has joined #ruby
x1337807x has joined #ruby
Vivekananda_y510 has quit [Quit: Leaving]
<heftig> vifino: IRB.start
<vifino> Does that behave like eval?
Vivekananda_y510 has joined #ruby
<vifino> I dont want a repl
larsam has quit [Read error: Connection reset by peer]
<havenwood> vifino: what do you want?
<vifino> I want to have an eval type function, which returns the return val of the evaluated string
SilkFox has joined #ruby
<havenwood> vifino: eval
<vifino> wait, that does return things?
<jhass> never ever pass user input into that though
ra4king has joined #ruby
<vifino> jhass: ik, only trusted input :)
<jhass> so what's your usecase? Ruby is very powerful, you can get very very far without eval
ra4king has quit [Remote host closed the connection]
vincent_ has joined #ruby
mijicd has quit [Remote host closed the connection]
ra4king has joined #ruby
<vifino> jhass: yes, i know, but the function _IS_ evaluating ruby code :P
lukec has quit [Quit: lukec]
hfp_ is now known as hfp
hfp is now known as hfp_
<jhass> where does that code come from?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hfp_ is now known as hfp
<vifino> From irc, but trusted :P
juco has quit [Quit: Lost terminal]
<jhass> okay, ping me if my free server is ready
<vifino> what?
<vifino> >_<
aoeu256 has joined #ruby
Jeticus has joined #ruby
<vifino> nvm, i got this!
SouL has quit [Ping timeout: 256 seconds]
CaptainJet has quit [Ping timeout: 250 seconds]
SilkFox has quit [Ping timeout: 272 seconds]
DivineEntity has joined #ruby
SouL has joined #ruby
<agent_white> Speaking of kewl Ruby things...
vincent_ has quit [Ping timeout: 260 seconds]
<agent_white> Anyone see that "Xiki" shell?
<agent_white> xiki.org
<shevy> what the fuck is that
shredding has quit [Quit: shredding]
<agent_white> shevy: Check out the little video on the page.
<agent_white> Apparently it's some terminal shell on crack.
<havenwood> shevy: an emacs ruby repl, there was a rubyconf talk about it a few years back
<agent_white> havenwood: Ah, so that's the term for it! :P
<shevy> ack
<shevy> emacs
<agent_white> ^
<havenwood> agent_white: i think they want to support other editors and ide's but last i checked (a long time ago) it was only emacs
<shevy> is this only for apple folks?
<agent_white> havenwood: Yeah that's true. In his kickstarter video he was speaking about adding in vim/sublime next.
* agent_white shrugs
RandyT has quit [Quit: ZNC - http://znc.in]
luckyruby has quit [Remote host closed the connection]
luckyruby has joined #ruby
luckyruby has quit [Client Quit]
RandyT has joined #ruby
<rkazak_> Netbeans had ruby support, but they removed it, however die-hards put it back and support it….
r_rios has quit [Ping timeout: 240 seconds]
britneywright has joined #ruby
<agent_white> Hehe Netbeenz. I haven't touched that since learning Java in highschool.
cleopatra has quit [Ping timeout: 260 seconds]
davispuh has joined #ruby
tuxninja has joined #ruby
enebo has joined #ruby
funktor has quit [Remote host closed the connection]
jannevik has joined #ruby
jannevik has left #ruby [#ruby]
Janno has joined #ruby
bruno- has joined #ruby
agjacome_ has joined #ruby
Morkel_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
Morkel has quit [Ping timeout: 250 seconds]
Morkel_ is now known as Morkel
etqqkoiflwhb has joined #ruby
jottr_ has joined #ruby
agjacome has quit [Ping timeout: 255 seconds]
dawkirst has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maestrojed has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb has quit [Client Quit]
timonv_ has quit [Ping timeout: 240 seconds]
havenwood has quit [Remote host closed the connection]
ferr has joined #ruby
ARCADIVS has joined #ruby
x1337807x has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
postmodern has quit [Quit: Leaving]
<shevy> java is the world man
dawkirst has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
<vifino> vim ftw yo
spastorino has quit [Quit: Connection closed for inactivity]
<vifino> I want to make a command parser for my irc bot, how can i do this?
chrishough has joined #ruby
chrishough has quit [Client Quit]
<jhass> most just map regex matches to methods
chrishough has joined #ruby
<dangerousdave> what's a .ru file?
<shevy> vifino let's say you have a string, called i = 'foo bar'
<vifino> Yes
<shevy> vifino now you put it into a case when menu: case i
<dangerousdave> google has multiple conflicting answers
<shevy> inside there you can match with when, via regex
<shevy> when /foo/
<shevy> when /\d+bla/
<shevy> dangerousdave a file written in russia
<pipework> dangerousdave: Have you tried googling?
<vifino> well, can I do this in an easier, and more dynamic way?
<jhass> dangerousdave: a file used by rack based application servers to boot the application, rack provides a special environment in that file
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
JohnnyDiamond08 has joined #ruby
<shevy> vifino more dynamic? you will require a hash, then you can add and remove to the hash freely
<vifino> like, addCommand("name",function
<vifino> )
<dangerousdave> jhass, many thanks
<shevy> and where will you store this
<vifino> idk
<JohnnyDiamond08> Question, if I have methods in a queue when I "pop" these functions out of the queue will they be executed?
<vifino> I just started using ruby :<
<jhass> vifino: look at how cinch does it for example
<vifino> jhass: The problem is not the irc connection, that works
<jhass> JohnnyDiamond08: what do you mean? Method objects? or Symbols?
<vifino> just the command parsing
<dangerousdave> shevy, yes, i saw that definition, i think it must be a different context
<jhass> vifino: yes, I mean cinch's plugin API
<JohnnyDiamond08> method objects
<shevy> yeah, in ruby it is used; .ru short for "rack up" or rather "rackup" dangerousdave
<jhass> JohnnyDiamond08: why do you store Method objects in an array?
<shevy> or .ru for russia
yfeldblum has joined #ruby
<dangerousdave> shevy, cheers
<JohnnyDiamond08> I need them to execute in a particular order
<jhass> usually you'd store Symbol's and pass them to public_send
<GlenK> Doing my daily ruby stuff. if anyone has any advice it's surely welcome: https://gist.github.com/GlenKaukola/69791e6a7641c3e94988
<arup_r1> In plain Ruby, how can I pass the array variable to the erb file ? https://gist.github.com/aruprakshit/eed95e70d47050543a61
skaflem has quit [Quit: Leaving]
<vifino> shevy: can you give me a small hash example thingie?
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> GlenK: you only do half of the median definition, it differs whether you have an odd or an even number of elements in your dataset
<vifino> Because I dont think cinch's way is much better
DivineEntity has quit [Ping timeout: 245 seconds]
<jhass> GlenK: also I'd cache the sorting or even do a.sort! (if you'll never reuse that method)
<GlenK> jhass: nah, it should work. should give you the same index for both when it's an odd number of elements. And different indicies when it's even.
bradleyprice has quit [Remote host closed the connection]
hfp has quit [Ping timeout: 245 seconds]
<shevy> vifino it's just as hash man
bradleyprice has joined #ruby
<shevy> vifino hash = {}
<vifino> q_q
fabrice31 has joined #ruby
<vifino> I thought that would be an array
<shevy> array goes via []
* vifino is confused
<shevy> array = []
yfeldblum has quit [Ping timeout: 250 seconds]
<shevy> hash = {}
hfp has joined #ruby
<shevy> string = ''
<shevy> come on vifino
<shevy> you have been writing an irc bot
<vifino> Whats the difference between array and hash?
<shevy> how could you have written it without an array or hash
<shevy> array keys are simpler
<vifino> I used arrays yo
<shevy> 0,1,2,3,4
<GlenK> jhass: noted on the a.sort! though. thanks for having a look.
<shevy> hash keys use whatever
<vifino> shevy: So, hashes are kinda like lua's tables?
<vifino> cool, cool.
<shevy> how should I know lua
<vifino> xD
<shevy> I have ruby, why would I use lua
<shevy> or mruby
<shevy> it will destroy lua
<vifino> >_<
<shevy> (in 30 years)
<vifino> I obey lua, the only reason why i learn ruby now is because of fork and Process.detach
cesare has joined #ruby
<vifino> because thats awsum
jottr_ has quit [Ping timeout: 240 seconds]
<JohnnyDiamond08> So would you say it'd be better to throw functions into an Array and execute them sequentially or in a queue?
agjacome_ has quit [Ping timeout: 256 seconds]
bradleyprice has quit [Ping timeout: 245 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
dapz has joined #ruby
mr_snowf1ake has joined #ruby
<jhass> a Queue is mostly an array in ruby, it's just synchronized
<vifino> shevy: Can I put functions in variables?
<shevy> vifino not sure what you mean; you can however use .send to send any message to an object
rkazak_ has quit [Quit: Sleep.....ing....]
<jhass> vifino: no, Ruby has no functions, only methods, so they have to have a receiver. However you can store Proc objects
<shevy> >> x = 'size'; "abc".send x
<eval-in__> shevy => 3 (https://eval.in/173681)
<jhass> shevy: public_send ftw
<shevy> >> "abc".size
<eval-in__> shevy => 3 (https://eval.in/173682)
<shevy> so much typing jhass!
<JohnnyDiamond08> (I'm pretty new to ruby) To my understanding the biggest difference with arrays in queues is that queues are "thread safe"
<jhass> shevy: so much less hacky! wow!
<jhass> JohnnyDiamond08: exactly
<JohnnyDiamond08> ++ thank you jhas
<vifino> jhass: Okay, so can I store methods in a var?
mary5030 has quit [Remote host closed the connection]
<vifino> or is that imposible?
<shevy> vifino did I not show you an example
<shevy> you can even bind a method
cesare has quit [Ping timeout: 264 seconds]
<vifino> Im too confused for this
<shevy> bar(method(:foo))
<shevy> well
<jhass> vifino: no, you could obtain Method objects that represent your methods and store those, but as said usually you'd store the names as Symbol and pass them to #public_send or you'd store Proc objects and #call them
<shevy> if you are so confused
mary5030 has joined #ruby
<shevy> perhaps you do not even need this functionality yet?
<shevy> why not stay simple man
<vifino> .-.
<shevy> simple is so pretty
<vifino> Ima fool around with hashes and eval >:D
rkazak has joined #ruby
<jhass> :(
sixxy has quit [Remote host closed the connection]
<vifino> everything else is too much for me xD
<jhass> :(
cesare has joined #ruby
<vifino> oh oh, and fork and process.detach!
<vifino> Much of that!
<vifino> #swaggyswaggyswagmachine
Lewix has joined #ruby
Lewix has quit [Remote host closed the connection]
<rkazak> shevy: he means blocks…
<shevy> who means blocks?
banjara has joined #ruby
<vifino> inb4 minecraft xD
<rkazak> vifino
decoponio has quit [Quit: Leaving...]
<vifino> What are blocks?
dbasch has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
shredding has joined #ruby
Hanmac has joined #ruby
<jhass> vifino: you've done something like array.each do |element| ?
dbasch has joined #ruby
<vifino> nope, not used that, but I know kinda how it works
<jhass> the do |element| end (or its alternative syntax {|element| }) is a block
<czaks> btw.
Morkel has quit [Quit: Morkel]
shredding has quit [Client Quit]
<czaks> why Method and Proc do not have a common class?
<jhass> because they're pretty distinct things
Hanmac1 has quit [Ping timeout: 260 seconds]
<czaks> but they have something in common, i believe most methods would be common for both things
<banister> the distinction between methods and procs and blocks in ruby is darn annoying
<banister> at least lambdas and blocks
cashnguns has joined #ruby
<jhass> they may have a similar interface, yet they _represent_ pretty distinct things
<czaks> i see, well, this may be the same argument against TrueClass and FalseClass not having a common ancestor
SilkFox has joined #ruby
larsam has joined #ruby
sixxy has joined #ruby
<jhass> that would I mostly account to historic reasons though
<banister> czaks it would be a pretty empty superclass
<banister> czaks i can't think of any behaviour true/false share in common
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
hfp has quit [Ping timeout: 264 seconds]
dapz has joined #ruby
hfp has joined #ruby
<arup_r1> It is working now.. How can I remove those empty blank lines as seen in the output ?
<vifino> can i call a function by its name?
<czaks> banister: well, this is true, since both are very simple constructs, yet still, ruby has open classes, so a programmer would leverage the similarities
Cache_Money has joined #ruby
<jhass> arup_r1: HTML doesn't care and so should you
<banister> czaks how, for example?
SilkFox has quit [Ping timeout: 260 seconds]
<arup_r1> Oh.. I thought, I could..
<jhass> vifino: yes, you can call a method by its name with #public_send
<vifino> how does that work?
<jhass> >> "123".public_send(:to_i)
<eval-in__> jhass => 123 (https://eval.in/173683)
<czaks> banister: well, i'm not sure about boolean, i had implemented a method for Method called arity_range
<arup_r1> from doco --- <> omit newline for lines starting with <% and ending in %> what does it mean then ?
<banister> czaks we're talking about a hypothetical boolean type ;)
<vifino> jhass: but that does call the method on "123"
<jhass> sure
<vifino> Can I call "h", with arguments?
<czaks> for my very simple project it is no problem, but if I wanted to generalize it somewhat, I would need to do another one for Proc class
<czaks> banister: yes, I made a comparison between TrueClass and FalseClass not having common ancestor like Proc and Method
<jhass> vifino: h is the implicit version of self.h, every method call has an receiver. And you can pass arguments just as additional arguments to #public_send
JoshGlzBrk has joined #ruby
dangerou_ has joined #ruby
<jhass> vifino: so if you want to call self.h dynamically, you call public_send on self, self.public_send(:h, 'foo'), or in the implicit form: public_send(:h, 'foo')
<vifino> so i would do 'self.public_send("h",arg1,arg2)'
heftig has quit [Read error: Connection reset by peer]
<vifino> ":h" is a symbol, right?
<banister> czaks and the answer was that there's no use in doing that. You've yet to give an example :)
rkazak has quit [Quit: Sleep.....ing....]
<jhass> vifino: yes
heftig has joined #ruby
<jhass> vifino: public_send takes strings too though
m3_del has joined #ruby
<vifino> jhass: oh, ok, thanks! :D
<vifino> wow, you guys are definitly awesome
<jhass> vifino: btw I hope you don't really have a method called h...
<vifino> ofc not
<vifino> I lable my things :P
<vifino> atleast when i need them
<jhass> good
<czaks> banister: i could do a `case` construct, where I could catch both true and false by using a hypothetical Boolean construct
<vifino> if I wanna disregard them, i call them "_"
<vifino> :P
<czaks> yet I could use TrueClass, FalseClass
dangerousdave has quit [Ping timeout: 256 seconds]
dingus_khan has joined #ruby
<jhass> vifino: ruby has utf-8 support, so how about non-breaking-space? :P
lukec has joined #ruby
<vifino> a what?
<vifino> xD
<vifino> I toyed with utf long time ago
<czaks> method overloading for those wouldn't make too much sense actually
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
milky has joined #ruby
linojon has quit [Quit: linojon]
m3_del has quit [Ping timeout: 240 seconds]
larsam has quit [Read error: Connection reset by peer]
<banister> czaks testing for bool is easy: !!x == x
havenwood has joined #ruby
<czaks> banister: how so in case?
<jhass> is when true, false really that hard to type...
<vifino> When i do 'ret=self.public_send(@commands[func],args,nick,chan)' it errors ( catched ): 'private method `say' called for main:Object'
<vifino> Whats wrong there?
<banister> czaks first of all, why the heck would i ever want to switch on something being boolean? usually the true and false paths are very different so you'd have case true; case false, so your argument is straw man.
<jhass> vifino: for calling private methods you need #send instead of #public_send
dingus_khan has quit []
<vifino> k
<banister> czaks secondly, if that's really the only reason you can think of for a boolean superclass, then it doesn't seem worth it
<jhass> vifino: and as said, you don't need the self., it's implicit, that was just for the explanation
<vifino> ok
<czaks> banister: well, i don't see a big problem there actually
<czaks> a bigger problem is that Method class and a Proc class
<czaks> don't have anything in common, despite a common interface
banjara has quit [Quit: Leaving.]
<vifino> oh my god!
<vifino> It works! D:
<czaks> i mainly asked about those two and just compared the situation to the boolean things
<banister> czaks i find the block/method/lambda thing a pain too, but i think it's mainly a syntactical thing that would resolve it, not an issue of OO superclasses
<vifino> First day coding ruby, felt like being a procoder
<vifino> x
danijoo has quit [Read error: Connection reset by peer]
<vifino> xD*
<jhass> I only ever used Method to call the original when overriding a method with define_method, if I want to pass code around I use Proc and blocks
<vifino> Everything in this channel, and what the channel is all about is epic.
danijoo has joined #ruby
<shevy> here be the smart people vifino
<vifino> Yea
<shevy> vifino do you know luarocks?
dbasch has quit [Read error: Connection reset by peer]
<vifino> Yes
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<vifino> ruby has a same thing, i think
<vifino> gem?
<shevy> vifino the guy who wrote it also wrote htop and started gobolinux (but abandoned it once he finished university)
kireevco has joined #ruby
<vifino> o_o
<banister> shevy was he a close fren of yours?
<shevy> gem should be similar to luarocks
kireevco has quit [Client Quit]
<czaks> banister: well, fortunately, I can use extend, to make a common module having those methods
<vifino> htop is very useful
<vifino> luarocks too
kireevco has joined #ruby
<arup_r1> shevy: How many hours you work ?
kireevco has quit [Client Quit]
GriffinHeart has joined #ruby
<banister> czaks yeah, same diff
<shevy> arup_r1 not much right now, it varies; 3-7 hours a day
<jhass> czaks: note that using extend during program runtime (after program boot) can severely decrease performance
<shevy> but 1 hour lunch break may (or may not be included)
<shevy> arup_r1 with the current heatwave I don't feel like sitting for hours
<vifino> also, begin and rescue is very neat, _much_ easier to use than pcall from lua
<shevy> it is finally cooling down ... 27.8°C ...
<shevy> how do you use pcall
<czaks> jhass: you mean, extending classes after they have been defined?
<jhass> shevy: your IRC client is still not sending UTF-8 :(
<shevy> I am UTF-8 free
<jhass> czaks: no I mean repeatedly doing that, for example after instantiation
<vifino> shevy: Dont you know that, or are you just asking why I find it *bad*
<vifino> ?
<shevy> vifino nope, I do not know lua. I read through one tutorial once years ago, that was it
<vifino> oh, ok
<shevy> the comments annoyed me the most
<shevy> I need my #
<czaks> jhass: i see, well, nice to know
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
<shevy> I forgot what it was in lua ... -- ?
<vifino> pcall calls a func, and returns true on success, and false,err on error
<vifino> but it only works for one func at a time
<shevy> huh
claymore has quit [Quit: Leaving]
<vifino> where as begin and rescue works for code blocks
<vifino> which I really like
<shevy> and retry to try again!
<shevy> and ensure
<vifino> o_O
<vifino> oh god, i like dis
<shevy> this is an awful tutorial collection but at least it was quick to find on google lol
<shevy> what the fuck
<jhass> vifino: note that if you put an entire method in a begin/resuce, you can leave the begin off, the def acts as an implicit one
GriffinHeart has quit [Ping timeout: 264 seconds]
<vifino> ?
<shevy> can someone look at that link and confirm that this is actually valid ruby?
havenwood has quit [Ping timeout: 264 seconds]
kireevco has joined #ruby
<vifino> Also, does fork and Process.detach work multithreaded, or do they run on a single core?
<jhass> vifino: def foo; begin; yada; yada; yada; rescue; no!; end; end -> def foo; yada; yada; yada; rescue; no!; end
andrewjanssen has joined #ruby
<shevy> goto!
<jhass> vifino: fork clones a process. A process can have multiple threads
<vifino> okay
<vifino> thats neat
<jhass> vifino: see man 2 fork
Takle has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
r_rios has joined #ruby
<vifino> my bot has exactly 150 lines now :D
<shevy> vifino
<shevy> show code
<vifino> Lots o' forking and error catching
<vifino> shevy: Its ugly D:
<shevy> yes
<shevy> now show it
<vifino> xD
kireevco1 has joined #ruby
<vifino> Added "Made by " line and copyright xD
<vifino> just because I can >:D
Channel6 has quit [Quit: Leaving]
<vifino> hf,
<vifino> dont steal the world xD
<jhass> we generally leave of thens
febuiles_ has quit [Remote host closed the connection]
<vifino> I like them D:
kireevco has quit [Ping timeout: 255 seconds]
milky has left #ruby ["Textual IRC Client: www.textualapp.com"]
<jhass> also the standard indentation is 2 spaces
<vifino> q_q
JBreit has left #ruby ["Leaving"]
<vifino> tabs4lyf
awkwords has joined #ruby
<jhass> you break and set an variable in your loop?
mehlah has quit [Quit: Leaving...]
<vifino> idk
<shevy> why did you use hastebin man
<vifino> because its looking "cleaner"
<jhass> I'd consider a "do until" block: begin msg = ...; if ...; end until msg.include? "..."
<shevy> apeiros also uses "then"
<shevy> I don't use "then", it's one of those things that ruby itself won't enforce much
<apeiros> shevy: no longer
<apeiros> I prefer it
sdouglas has joined #ruby
<shevy> ohhhhh
<shevy> did your co-workers force you to become a better person? :)
mehlah has joined #ruby
<apeiros> I mean I prefer having "then"
Hanmac1 has joined #ruby
<apeiros> but we decided against it at the company, so I no longer use it
<shevy> I <3 your co-workers
<shevy> yay!
<shevy> vifino you use tabs for indent?
<vifino> yes
<jhass> vifino: you're a bit inconsistent about adding and leaving off parens when calling methods
<shevy> vifino I think you have an inconsistent indent on line 75
<vifino> huh?
<shevy> do/end should add a new level of indent
<shevy> at the line: @bot.msg(chan,"> "+args)
<jhass> vifino: you don't use it in send, everywhere else you do
<vifino> what
<jhass> vifino: return in the last expression of a method is implicit and doesn't need to be specified
<shevy> vifino at line 75? you see the code?
<vifino> will never show code again q_q
<shevy> hehe
<shevy> btw vifino
Hanmac has quit [Ping timeout: 240 seconds]
<vifino> shevy: 75 is tab
<jhass> I didn't even scrolled to the end yet
<shevy> you can write line 66 shorter
<shevy> vifino it looks wrong, as if you forgot one tab there
<vifino> nope
<vifino> didnt
<shevy> because it alisns to the variable above
<shevy> *aligns
<vifino> Just confimed
<jhass> hm, do we have a password there yet?
northfurr has quit [Read error: Connection reset by peer]
<shevy> then why is the pastie showing a different level of indent, unlike the rest
<vifino> jhass: yes
<vifino> I just removed that line and replaced that :D
<jhass> yay, free server!
<vifino> jhass: err, no
northfurr has joined #ruby
<shevy> vifino, this here:
<shevy> if nick == "vifino" then; return true; end
<vifino> yea
<vifino> ik
<shevy> you can make into one line
<jhass> vifino: the standard is snake_case for method names
<shevy> return true if nick == "vifino"
<vifino> o_o
<banister> jhass do you know how to setup a VPN?
<shevy> vifino, this is our only daily entertainment
<vifino> jhass: camelCase 4 lyf
<jhass> banister: got OpenVPN running a few times but never really needed it. IPv6 ftw ;)
<jhass> banister: and ssh socks proxy
teleporter has quit [Read error: Connection reset by peer]
teleporter has joined #ruby
<jhass> vifino: raw = @bot.receive() we leave the empty parens off in these cases
<vifino> meh
<vifino> "logic raw" is just looking cool :)
<jhass> vifino: 104-106 is func, args = cmd.split(' ', 2)
<jhass> you already used that syntax elsewhere
<vifino> yeah
bmurt has joined #ruby
dc has joined #ruby
Martxel has joined #ruby
<vifino> jhass: Did I do bad?
<vifino> D:
<jhass> no, I've seen much worse
<vifino> \o/
* vifino dances
<jhass> 56,57: if match = msg.match(...); "msg: #{match[1]} ..."
<vifino> whaaaa?
<jhass> avoid the implicit globals
<banister> jhass you're a german right?
<jhass> banister: yep
<banister> jhass do you use a ssh proxy to tunnel american netflix? :P
<vifino> jhass: Hello from germany, to germany! :D
hmsimha has joined #ruby
<jhass> banister: still a broke student, so no money for that left. But I'd probably rent a lowendvps and do that, yeah
<jhass> vifino: msg.gsub(/\r\n/m,"") -> .delete("\r\n")
<jhass> and on a , has to follow a space, but that's just my pedant-ism
opus has joined #ruby
cleopatra has joined #ruby
<vifino> jhass: I dont understand 56/57
<vifino> ( Your correction )
<jhass> oh, and return "msg","#{$~[1]}","#{$~[4]}","#{$~[5]}" -> "msg" match[1], match[4], match[5]
<jhass> vifino: .match returns the MatchData object you currently access through $~, so you can assign and use it
cesare has quit [Ping timeout: 264 seconds]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alem0lars has quit [Quit: Going AFK...]
alem0lars has joined #ruby
stytown has joined #ruby
EvanR_ has joined #ruby
SlvrDragn has joined #ruby
Hanmac has joined #ruby
sdouglas has quit [Remote host closed the connection]
SlvrDragn has quit [Client Quit]
havenwood has joined #ruby
<vifino> jhass: Doesnt seem to work
<vifino> :/
nick0042 has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
<vifino> ircbot.rb:58:in `msgtype': undefined local variable or method `match' for #<IRC:0x007fd4a9aae4b8> (NameError)
<vifino> jhass: ^
<jhass> you do have the if match = msg.match... in the line before that?
<vifino> yes
<vifino> err
bruno- has quit [Ping timeout: 256 seconds]
<vifino> no
DivineEntity has joined #ruby
<vifino> now i get it
EvanR_ has quit [Ping timeout: 245 seconds]
bruno- has joined #ruby
Arkaniad has joined #ruby
Arkaniad|Laptop has joined #ruby
rick0042 has joined #ruby
stytown has quit [Quit: stytown]
<vifino> Also, any good way to make a sandbox?
enebo has quit [Quit: enebo]
<jhass> I'd investigate ruby independent stuff
<vifino> Like that everyone will be able to run ruby code, without me having to worry about someone exploiting things
<jhass> systemd's new container stuff looks interesting, though maybe not up to the job yet
SilkFox has joined #ruby
Arkaniad|Laptop has quit [Max SendQ exceeded]
<JohnnyDiamond08> Question, I have to make an array span multiple ruby files. So when I create a new object from the class is the following syntax correct so that each file implementing the array object is adding to it rather than creating another array?
<JohnnyDiamond08> @@ arry = Array.new()
Arkaniad has quit [Read error: Connection reset by peer]
Arkaniad|Laptop has joined #ruby
<jhass> vifino: I think there exists some stuff that whitelists the allowed syscalls, though I didn't investigate the tools yet
<vifino> I also heard the term "taint"
<vifino> and $SAFE
<vifino> or something like that
stytown has joined #ruby
nick0042 has quit [Ping timeout: 255 seconds]
duncannz has joined #ruby
duncan_ has joined #ruby
Lewix has quit [Remote host closed the connection]
SCHAAP137 has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
Arkaniad|Laptop has quit [Max SendQ exceeded]
Arkaniad|Laptop has joined #ruby
SilkFox has quit [Ping timeout: 240 seconds]
blasius has joined #ruby
dbasch has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
<apeiros> JohnnyDiamond08: by "span multiple files" you mean "I need access to it from other files"?
alem0lars has quit [Quit: Going AFK...]
banjara has joined #ruby
claw__ has quit [Ping timeout: 250 seconds]
Takle has quit [Ping timeout: 245 seconds]
amystephen has quit [Ping timeout: 245 seconds]
teleporter has quit [Quit: Leaving]
jottr_ has joined #ruby
DivineEntity has quit [Ping timeout: 264 seconds]
lw has quit [Quit: s]
kireevco has joined #ruby
rick0042 has left #ruby ["(Byrd IRC Client // haxed.net)"]
bluenemo has quit [Quit: Verlassend]
kireevco2 has joined #ruby
kireevco1 has quit [Ping timeout: 245 seconds]
<JohnnyDiamond08> Woops sorry just figured it out
<jhass> vifino: ignore those for now. btw. here's the thing converted to my style (disregarding the architecture :P) http://paste.mrzyx.de/pcb6c1595/
<JohnnyDiamond08> Adding '@@' to class variables allows the value to span multiple instances of itself
Cache_Money has quit [Quit: Cache_Money]
fold has quit [Ping timeout: 250 seconds]
Reg_ has joined #ruby
<vifino> jhass: Actually, everything you said, i did, atleast most of it :)
<jhass> vifino: I did a few more adjustments
JohnnyDiamond08 has quit [Remote host closed the connection]
<vifino> Yea
<vifino> I see those
<jhass> the leaving of the parens in method definitions is actually uncommon
<vifino> My version has to have many forks, because swag
<vifino> xD
claw__ has joined #ruby
<jhass> actually add @commands = {}
<jhass> yeah, that's the architecture bit I wouldn't do ;)
britneywright has joined #ruby
<vifino> I probably shouldnt do that many, but idc xD
kireevco has quit [Ping timeout: 256 seconds]
bmurt has quit []
amystephen has joined #ruby
pu22l3r has joined #ruby
lw has joined #ruby
opus has quit []
alem0lars has joined #ruby
<vifino> Ima go off now, cya someday ^.^
alem0lars has quit [Client Quit]
vifino has quit [Quit: Ze Cat now leaves...]
kireevco has joined #ruby
Nahra has joined #ruby
kireevco2 has quit [Read error: Connection reset by peer]
pu22l3r has quit [Ping timeout: 245 seconds]
bmurt has joined #ruby
bmurt has quit [Client Quit]
fabrice31 has joined #ruby
arup_r1 has left #ruby [#ruby]
mijicd has joined #ruby
kireevco1 has joined #ruby
havenwood has joined #ruby
lxsameer has joined #ruby
havenwood has quit [Remote host closed the connection]
rkazak_ has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
kireevco has quit [Ping timeout: 240 seconds]
stytown has quit [Quit: stytown]
amargherio has quit [Remote host closed the connection]
SilkFox has joined #ruby
maletor has joined #ruby
dbasch has quit [Quit: dbasch]
atmosx_ has joined #ruby
atmosx_ has quit [Client Quit]
maletor has quit [Ping timeout: 245 seconds]
riotjones has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
bradleyprice has joined #ruby
riotjones has joined #ruby
djapo has joined #ruby
<djapo> can ruby packages be installed in containers sort of like in python packages can be installed in virtualenv?
<djapo> if so how?
<jenskarlsen> two options
sdouglas has joined #ruby
<jenskarlsen> rbenv
agjacome has joined #ruby
<jenskarlsen> rvm
Fire-Dragon-DoL has quit [Quit: Leaving.]
NoticeIsOnYou has quit [Ping timeout: 245 seconds]
<yxhuvud> djapo: yes. But really, why bother when you have bundler?
<djapo> what is a bundler?
lw has quit [Quit: s]
<jenskarlsen> http://bundler.io/
<jenskarlsen> Bundler provides a consistent environment for Ruby projects by tracking and installing the exact gems and versions that are needed.
<djapo> are they installed globally?
<yxhuvud> they can be, or not.
stytown has joined #ruby
<yxhuvud> doesn't really matter since it makes certain the correct version is used
sdouglas has quit [Ping timeout: 250 seconds]
<djapo> hmmm, i remember reading something about gems being installed into a directory and those packages would be used when the shell was cd into it but i don't remember what it was called?
bmurt has joined #ruby
<yxhuvud> bundle can vendor gems as well, yes
<jenskarlsen> djapo: what are you actually trying to accomplish?
banjara has quit [Quit: Leaving.]
bmurt has quit [Client Quit]
<djapo> im trying to isolate packages from each other for diffrent projects, while avoiding sudo for root installs
luckyruby has joined #ruby
<jenskarlsen> alright, so you have a few options
<jenskarlsen> why don’t you read up on the 3 that were given
jhass is now known as jhass|off
<jenskarlsen> it won’t take long, and it will be a lot easier for you to identify which fits your workflow best
<jenskarlsen> easier than for us to
bradleyprice has quit [Remote host closed the connection]
<jenskarlsen> guess essentially
zB0hs has joined #ruby
<jenskarlsen> rbenv, rvm and bundler
bradleyprice has joined #ruby
<djapo> the thing is that i remember somthing being like this being natively suported but i will read up on them
<jenskarlsen> probably bundler as yxhuvud said
freerobby has quit [Quit: Leaving.]
<jenskarlsen> i use rbenv to choose the ruby version locally for a directory, and then bundler for packages
tekku has joined #ruby
<djapo> can it be done with one tool?
tekk has quit [Ping timeout: 256 seconds]
<jenskarlsen> well
<jenskarlsen> do you care about using different versions of ruby?
<jenskarlsen> probably not.
<jenskarlsen> you just cared about package versions
<jenskarlsen> so just go use bundler
bradleyprice has quit [Ping timeout: 250 seconds]
<djapo> ok, but with the package does not support that version :/
<jenskarlsen> im not sure what you mean by that.
<havenwood> djapo: If you just want one Ruby just install to /usr/local and don't use a version switcher
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jenskarlsen> then install bundler
<djapo> i meant 'what if the package does not support that version?', alright about to hit the docs
<havenwood> djapo: sudo ruby-install -i /usr/local/ ruby
<jenskarlsen> i dunno man. I use python.
<havenwood> djapo: if you want to switch between Rubies, then chruby, rbenv or RVM
<havenwood> djapo: i prefer chruby, the simplest
x1337807x has joined #ruby
<djapo> thanks :)
Shajisbda has joined #ruby
<Shajisbda> ##etc Msg from ##etc Maxism is evil? It is dangerous and if u do it u die! I will prey 4 u (pray that U quit Marxism). ##etc is Libertarian
Shajisbda has quit [Killed (idoru (Spam is off topic on freenode.))]
<lagweezle> tha' fook?
nateberkopec has joined #ruby
m3_del has joined #ruby
nateberkopec has quit [Client Quit]
mayday_jay has joined #ruby
angorabedsock has quit [Quit: Connection closed for inactivity]
RandyT has quit [Ping timeout: 240 seconds]
cashnguns has quit [Ping timeout: 250 seconds]
GriffinHeart has joined #ruby
Neomex has quit [Quit: Leaving]
m3_del has quit [Ping timeout: 264 seconds]
Reg_ has left #ruby ["(Byrd IRC Client // haxed.net)"]
luisjose has joined #ruby
GriffinHeart has quit [Ping timeout: 260 seconds]
havenwood has quit [Remote host closed the connection]
awkwords has left #ruby [#ruby]
cmarques has joined #ruby
mostlybadfly has joined #ruby
lw has joined #ruby
Takle has joined #ruby
ra4king has quit [Quit: Leaving]
tus has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
cmarques has quit []
cesare has joined #ruby
havenwood has joined #ruby
dangerou_ has quit [Ping timeout: 245 seconds]
<ericwood> so apparently doing IO in this is a great way to crash your computer? loop do; # IO goes here; sleep 0.1; end
cmarques has joined #ruby
<ericwood> I literally could not kill the ruby processes, had to reboot
<ericwood> that was stupid.
chrishough has quit [Quit: chrishough]
jottr_ has quit [Ping timeout: 250 seconds]
<Moonlightning> ericwood: was it in uninterruptible sleep?
<ericwood> so here's my question: would using IO.select be a better choice to block instead?
<ericwood> Moonlightning: no clue
<Moonlightning> Check it next time
gypsydave5 has joined #ruby
cmarques_ has joined #ruby
<ericwood> yeah.
<Moonlightning> Depends mostly on the device IO's being done on and the mechanisms used for interfacing with it…some (especially NFS-type things) are more prone to locking up than others
<ericwood> looking for a better way to write above code, though, trying to poll a sensor over the serial port
<ericwood> yeah this was using rubyserial to a roomba :\
dawkirst has joined #ruby
<ericwood> select just seemed like overkill, but apparently my sleep thing was idiotic
RandyT has joined #ruby
kireevco has joined #ruby
gypsydave5 has quit [Client Quit]
cmarques has quit [Ping timeout: 250 seconds]
cmarques_ is now known as cmarques
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrishough has joined #ruby
phoo1234567 has quit [Quit: Leaving]
Biohazard has quit [Remote host closed the connection]
dawkirst has quit [Ping timeout: 250 seconds]
ra4king has joined #ruby
postmodern has joined #ruby
kireevco1 has quit [Ping timeout: 240 seconds]
nopolitica has joined #ruby
anaeem1 has quit [Remote host closed the connection]
vote539 has joined #ruby
spastorino has joined #ruby
vote539 has quit [Client Quit]
lethjakman has joined #ruby
nateberkopec has joined #ruby
claw__ has quit [Remote host closed the connection]
claw___ has joined #ruby
SouL has quit [Ping timeout: 245 seconds]
spider-mario has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 240 seconds]
dc has quit [Remote host closed the connection]
kireevco has quit [Ping timeout: 256 seconds]
SouL has joined #ruby
dc has joined #ruby
hmsimha has quit [Ping timeout: 264 seconds]
linojon has joined #ruby
lxsameer has quit [Quit: Leaving]
NoticeIsOnYou has joined #ruby
codeitagile has joined #ruby
codeitagile has quit [Quit: Leaving.]
nateberkopec has quit [Ping timeout: 240 seconds]
codeitagile has joined #ruby
snath has joined #ruby
lw has quit [Quit: s]
claw___ has quit [Remote host closed the connection]
claw___ has joined #ruby
dc has quit [Remote host closed the connection]
NoticeIsOnYou has quit [Ping timeout: 250 seconds]
lethjakman has quit [Ping timeout: 240 seconds]
kireevco has joined #ruby
claw has joined #ruby
cobakobodob has quit [Ping timeout: 240 seconds]
CodeLicker has quit [Quit: Nettalk6 - www.ntalk.de]
claw___ has quit [Ping timeout: 264 seconds]
kaspergrubbe has joined #ruby
zenojis has quit [Ping timeout: 240 seconds]
SilkFox has quit [Ping timeout: 256 seconds]
lw has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has joined #ruby
CodeLicker has joined #ruby
dc has joined #ruby
zenojis has joined #ruby
eval-in__ has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 240 seconds]
cmarques has quit [Ping timeout: 255 seconds]
stytown has quit [Quit: stytown]
nateberkopec has joined #ruby
cesare has quit [Ping timeout: 240 seconds]
m3_del has joined #ruby
cesare has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
stytown has joined #ruby
fold has joined #ruby
Cort3z_ has joined #ruby
m3_del has quit [Ping timeout: 240 seconds]
cesare has quit [Ping timeout: 240 seconds]
jonathan_alban has joined #ruby
r_rios has quit [Ping timeout: 260 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
lw has quit [Quit: s]
nateberkopec has quit [Ping timeout: 240 seconds]
roolo has quit [Quit: Leaving...]
larsam has joined #ruby
nateberkopec has joined #ruby
sixxy has quit [Remote host closed the connection]
AlSquire has joined #ruby
larsam has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
nobodyzzz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
codeitagile has quit [Quit: Leaving.]
cobakobodob has joined #ruby
SilkFox has joined #ruby
wallerdev has quit [Quit: wallerdev]