apeiros changed the topic of #ruby to: Ruby 2.1.3; 2.0.0-p576; 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
davasaur_ has joined #ruby
Beoran__ has joined #ruby
crome has quit [Ping timeout: 260 seconds]
davasaurous has quit [Ping timeout: 260 seconds]
crome has joined #ruby
Wolland has joined #ruby
RichardLitt has joined #ruby
kil0byte has quit [Remote host closed the connection]
kireevco has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
jonr22 has quit [Ping timeout: 244 seconds]
zagorskij has quit [Ping timeout: 246 seconds]
jonmorehouse has quit [Ping timeout: 260 seconds]
moritzschaefer has quit [Ping timeout: 246 seconds]
rkalfane has joined #ruby
mollitz has quit [Ping timeout: 260 seconds]
moritzs has quit [Ping timeout: 260 seconds]
tkuchiki has joined #ruby
Phrogz_ has joined #ruby
odraencode has quit [Remote host closed the connection]
kireevco has quit [Quit: Leaving.]
krisquigley has joined #ruby
jonmorehouse has joined #ruby
MuffinPimp has joined #ruby
tkuchiki has quit [Ping timeout: 245 seconds]
echooo1 has joined #ruby
echooo has quit [Ping timeout: 272 seconds]
dx7 has joined #ruby
Sawbones has quit [Remote host closed the connection]
Takle has joined #ruby
codeFiend has joined #ruby
zeroNone_ has joined #ruby
zeroNones has quit [Ping timeout: 240 seconds]
spastorino has joined #ruby
davasaur_ has quit [Ping timeout: 260 seconds]
crome has quit [Ping timeout: 258 seconds]
Esya has quit [Ping timeout: 246 seconds]
v0n has quit [Ping timeout: 246 seconds]
crome has joined #ruby
Esya has joined #ruby
davasaurous has joined #ruby
crazydiamond has quit [Ping timeout: 260 seconds]
<Mia> how to get last 2 of an array
<Mia> last is [-1]
<Mia> [-2] was logical, but didn't work
Phrogz_ is now known as Phrogz
seamon has quit [Quit: Zzzzzzz]
Takle has quit [Ping timeout: 244 seconds]
zeroNone_ has quit [Ping timeout: 258 seconds]
bmurt has joined #ruby
davasaurous has quit [Read error: Connection reset by peer]
<Phrogz> Mia: my_array[-2..-1] is one way
<Mia> Well I was trying to create a fibonacci array
<Phrogz> Or my_array[-2,2]
<Mia> I think, since my array doens't have a "last 2" in the beginning, it's the problem
<Phrogz> I don't know what a fibonacci array is.
ramfjord has joined #ruby
<Mia> an array of integers with fibonacci numbers
<Phrogz> An unbounded array.
<Phrogz> But if this is a real array, at any given time it will have an end.
chrishough has joined #ruby
oo_ has joined #ruby
<Mia> I mean, empty
<Mia> so there is no last2 Iguess
<Mia> wait let me paste
shock_one has joined #ruby
<Andriamanitra> how about you just start with {1,1}
buub has joined #ruby
<Andriamanitra> so the last 2 do exist from the very beginning
marr has quit [Ping timeout: 250 seconds]
<Mia> and doens't work
<Mia> Where is the mistake
nanoyak has quit [Quit: Computer has gone to sleep.]
<Mia> and how can I fix it, and make it in a more clever way?
zeroNones has joined #ruby
<Wolland> there are a lot of examples on stackoverflow, some one liners even
<Mia> I've seen them, I think it doens't give an array but instead directly give the number
<Mia> like "5th number of fibonacci"
oo_ has quit [Ping timeout: 258 seconds]
fold has quit [Ping timeout: 272 seconds]
<Wolland> yeah true
<Andriamanitra> i would just change line 2 to = {1,1} and line 3 n-1.times
<Mia> hm
slyslick has quit [Ping timeout: 260 seconds]
northfurr has joined #ruby
zagorskij has joined #ruby
<Mia> it works but it doens't look clever
Phrogz has quit [Remote host closed the connection]
shock_one has quit [Ping timeout: 244 seconds]
<Andriamanitra> well you can't really do fibonacci series without having 2 numbers to start with
<havenwood> in Dave Thomas talk i'm watching he suggests this is a pain in Ruby: [1, 2, 2, 2, 3, 4, 4, 5, 6, 6, 6, 6] #=> [1, {2=>3}, 3, {4=>2}, 5, {6=>4}]
<havenwood> how would you do it?
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
<havenwood> while Elixir pattern matching is nice, seems Ruby solutions are really nice too but he doesn't show what he's trying
oo_ has joined #ruby
<havenwood> >> [1, 2, 2, 2, 3, 4, 4, 5, 6, 6, 6, 6].chunk(&:real).map { |n, in_a_row| if in_a_row.one? then n else {n => in_a_row.size} end }
<eval-in_> havenwood => [1, {2=>3}, 3, {4=>2}, 5, {6=>4}] (https://eval.in/199706)
lewix has joined #ruby
oo_ has quit [Remote host closed the connection]
Kricir has joined #ruby
krisquigley has quit [Ping timeout: 272 seconds]
davasaurous has joined #ruby
tectonic has quit []
Kricir has quit [Ping timeout: 245 seconds]
amclain has quit [Quit: Leaving]
lw has joined #ruby
v0n has joined #ruby
fgo has joined #ruby
oo_ has joined #ruby
jonmorehouse has quit [Ping timeout: 272 seconds]
patrick99e99 has joined #ruby
hilake has quit [Ping timeout: 260 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has quit [Ping timeout: 246 seconds]
patrick99e99 has quit [Ping timeout: 260 seconds]
goshdarnyou has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
<Mia> Ok. People. Help me. http://pastebin.com/eS1bwDEw ---> trying to get aone liner fibonacci thingy witohut using any arrays
<shevy> cool
<Mia> *one liner
<shevy> I <3 your comment Mia
<Mia> shevy, haha
JavaTheHut has joined #ruby
<shevy> the typical fibonacci is recursive to itself
<Mia> so I need to use the method in itself
<JavaTheHut> what is the name of the official "rails" irc room?
<shevy> JavaTheHut #RubyOnRails
<Mia> JavaTheHut, #rubyonrails
<JavaTheHut> ty!
RichardLitt has quit [Quit: RichardLitt]
<Mia> yes I checked that shevy ! for some reason doens't work on my end
<Mia> I don't get any output
<shevy> it works for me
<shevy> did you start irb
<Mia> no
<Mia> regular
fgo has joined #ruby
<shevy> did you copy paste the first reply
<shevy> use irb
<Mia> well no
<Mia> the "one liner" one
<Mia> I think it works, but what I'm trying to do is: to make the method "puts" all the numbers so far
<Mia> not just the nth number
<shevy> well simply add a print in that method
<Mia> sort of like "first 50" for instance
<shevy> but why does it have to be a one liner
<Mia> since it calls itself it messes up
<JavaTheHut> Hmmm. I can't seem to join #rubyonrails. Typing /join #rubyonrails does not work.
<Mia> Oh no reason at all, I'm just in a "challenge accepted" mode right now
lw has quit [Read error: Connection reset by peer]
<shevy> * #rubyonrails :Cannot join channel (+r) - you need to be identified with services
<shevy> they require identification
lw has joined #ruby
<JavaTheHut> does that mean i need to register my name?
<JavaTheHut> my irc name?
<Mia> yeah just message /nickserv register [password] [email]
<Mia> then identify with /nickserv identify [pw]
funta has quit [Ping timeout: 246 seconds]
<shevy> JavaTheHut you need to register with freenode
<shevy> usually in your IRC client you should have a status line
<shevy> where stuff like the above I pasted, with the *, gets displayed
jonmorehouse has joined #ruby
j_mcnally has joined #ruby
weirdpercent has joined #ruby
weirdpercent has left #ruby [#ruby]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pupeno has joined #ruby
Wapitidou has joined #ruby
<JavaTheHut> i don't have a status line. it just fails with no visual indication of failure when i try to join #rubyonrails.
muzik has joined #ruby
<Wapitidou> Hi !
mijicd has quit [Remote host closed the connection]
<Wapitidou> Has anyone ever encountered this error: nokogiri/xml/sax/push_parser.rb:47 [BUG] Segmentation fault at 0x00000000000000
tkuchiki has joined #ruby
jonr22 has joined #ruby
Xiti` has joined #ruby
tokik has joined #ruby
<Mia> shevy, havenwood I think this looks better http://pastebin.com/yPJLzP2i
<Mia> any suggestions?
xcv has joined #ruby
Xiti` has quit [Client Quit]
<JavaTheHut> How you do you guys type in yoru ruby code? what is the tool you use?
northfurr has quit [Quit: northfurr]
<JavaTheHut> do you use special ruby ide's?
<Mia> JavaTheHut, I started 2 days ago and was suggested sublime, it's fine
Xiti has quit [Ping timeout: 260 seconds]
<Mia> it doens't have autocomplete so just keep that in mind
<Mia> (helps me practice also)
axl_ has joined #ruby
j_mcnally has quit [Quit: i bring shame to the dojo]
<JavaTheHut> mia. you are new to ruby too?
zagorskij has quit [Ping timeout: 260 seconds]
j_mcnally has joined #ruby
<Mia> yes, just 2 days old
axl_ has quit [Client Quit]
<JavaTheHut> is this your first language? are you an expert already in other stufff?
oo_ has quit [Remote host closed the connection]
nanoyak has joined #ruby
<JavaTheHut> i know some java, but not very good
fgo has quit [Remote host closed the connection]
tjr9898_ has joined #ruby
<Mia> JavaTheHut, almost first, I'm not expert on anything else.
tjr9898_ has quit [Remote host closed the connection]
oo_ has joined #ruby
tjr9898_ has joined #ruby
tjr9898 has quit [Ping timeout: 260 seconds]
bogeyd6 has joined #ruby
<JavaTheHut> ack. i need to get in a gui. brb
muzik has quit [Quit: This computer has gone to sleep]
JavaTheHut has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
skammer3 has quit [Ping timeout: 250 seconds]
muzik has joined #ruby
muzik has quit [Client Quit]
JavaTheHut has joined #ruby
<JavaTheHut> i'm back
KLVTZ has quit [Ping timeout: 245 seconds]
<JavaTheHut> Mia. can you past that link again? i couldn't view it first time
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Mia> JavaTheHut, which link?
<JavaTheHut> i dunno. there was a pastebin thingy
<Mia> oh it was my fibonaccy method
<JavaTheHut> but i coudlnt' view it
<JavaTheHut> ah
<Mia> *fibonacci
<JavaTheHut> oh. i see.
yaymukund has joined #ruby
Sp4rKy_ has quit [Ping timeout: 260 seconds]
krisquigley has joined #ruby
Wapitidou has left #ruby ["WeeChat 1.0"]
seanosaur has joined #ruby
stoned has quit [Quit: ZNC - http://znc.in]
Rhainur1 has quit [Quit: Leaving.]
gsd has joined #ruby
bogeyd6 has quit [Ping timeout: 260 seconds]
joast has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
seanosaur has quit [Client Quit]
bogeyd6 has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
JavaTheHut has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
carif has joined #ruby
Spami has joined #ruby
zeroNones has quit [Quit: Textual IRC Client: www.textualapp.com]
carif has quit [Read error: No route to host]
buub has quit [Read error: Connection reset by peer]
zeroNones has joined #ruby
Guest21370 has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
duncannz has quit [Quit: Leaving]
mary5030 has quit [Remote host closed the connection]
codeFiend has quit [Quit: codeFiend]
davasaurous has quit [Remote host closed the connection]
lw has quit [Quit: s]
buub has joined #ruby
Kricir has joined #ruby
jonr22 has quit [Quit: WeeChat 0.4.3]
Sawbones has joined #ruby
kobain has joined #ruby
northfurr has joined #ruby
spicerack has joined #ruby
northfurr has quit [Client Quit]
Kricir has quit [Ping timeout: 260 seconds]
bogeyd6 has quit [Quit: Leaving]
ghost2060 has joined #ruby
krisquigley has joined #ruby
bogeyd6 has joined #ruby
charliesome has joined #ruby
jonr22 has joined #ruby
echooo has joined #ruby
echooo1 has quit [Ping timeout: 272 seconds]
davasaurous has joined #ruby
swaggus has joined #ruby
Phrogz_ has joined #ruby
ghost2060 has quit [Ping timeout: 240 seconds]
swaggus has quit [Client Quit]
Sawbones has quit [Remote host closed the connection]
Phrogz_ is now known as Phrogz
krisquigley has quit [Ping timeout: 245 seconds]
charliesome has quit [Client Quit]
davasaurous has quit [Read error: Connection reset by peer]
ghost2060 has joined #ruby
jonr22 has quit [Client Quit]
davasaurous has joined #ruby
jonr22 has joined #ruby
justinmburrous has quit [Remote host closed the connection]
justinmburrous has joined #ruby
jonr22 has quit [Client Quit]
jonr22 has joined #ruby
tyll has quit [Ping timeout: 250 seconds]
peterhellberg has quit [Remote host closed the connection]
tyll has joined #ruby
slyslick has joined #ruby
justinmburrous has quit [Ping timeout: 250 seconds]
mary5030 has joined #ruby
IteratorP has joined #ruby
justinmburrous has joined #ruby
fgo has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
codeFiend has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
ghost2061 has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
ghost2061 has quit [Client Quit]
codeFiend has quit [Client Quit]
geggam has quit [Quit: fewd]
crome has quit [Ping timeout: 240 seconds]
ghost2060 has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
GinoMan has joined #ruby
phutchin1 has joined #ruby
crome has joined #ruby
yfeldblu_ has joined #ruby
xcv has quit [Remote host closed the connection]
slyslick has quit [Ping timeout: 260 seconds]
skammer3 has joined #ruby
<shevy> you guys need to write real ruby code
yfeldblum has quit [Ping timeout: 244 seconds]
phutchin1 has quit [Ping timeout: 245 seconds]
shock_one has joined #ruby
AtumT has quit [Quit: AtumT]
skammer3 has quit [Ping timeout: 250 seconds]
radic has quit [Disconnected by services]
yaymukund has quit [Ping timeout: 245 seconds]
radic_ has joined #ruby
jonr22 has quit [Ping timeout: 245 seconds]
shock_one has quit [Ping timeout: 258 seconds]
Skyler has joined #ruby
Scotteh has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
lw has joined #ruby
solo_ has quit [Quit: Leaving...]
axsuul has joined #ruby
crome has quit [Ping timeout: 245 seconds]
krisquigley has joined #ruby
crome has joined #ruby
Scotteh has quit [Ping timeout: 245 seconds]
amargherio has joined #ruby
Phrogz has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 272 seconds]
angusiguess has joined #ruby
bogeyd6 has quit [Ping timeout: 272 seconds]
mikepack has joined #ruby
stoned has joined #ruby
angusiguess has quit [Ping timeout: 244 seconds]
davasaurous has quit [Remote host closed the connection]
Sawbones has joined #ruby
Kricir has joined #ruby
cajone has joined #ruby
tectonic has joined #ruby
Kricir has quit [Ping timeout: 246 seconds]
justinmburrous has quit [Remote host closed the connection]
zorak8 has quit [Ping timeout: 245 seconds]
justinmburrous has joined #ruby
crome has quit [Ping timeout: 245 seconds]
jonr22 has joined #ruby
patrick99e99 has joined #ruby
IteratorP has quit [Quit: Leaving...]
jonr22 has quit [Client Quit]
crome has joined #ruby
larsam has quit [Quit: Exit]
justinmburrous has quit [Ping timeout: 250 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cajone has quit [Ping timeout: 260 seconds]
tectonic has quit []
<Mia> I'm habing hard time to understand the difference of a Proc and a Lambda
<Mia> can anyone clarify this in a minimal way
patrick99e99 has quit [Ping timeout: 260 seconds]
Scripore has quit [Ping timeout: 245 seconds]
kaspergrubbe has joined #ruby
braincrash has quit [Quit: bye bye]
axsuul has quit [Read error: Connection reset by peer]
drawingthesun has quit [Read error: Connection reset by peer]
Phrogz_ has joined #ruby
justinmburrous has joined #ruby
<havenwood> Mia: they differ in locality of return and argument arity
codeFiend has joined #ruby
<Mia> oh that's why Proc takes the control
Phrogz_ has quit [Read error: Connection reset by peer]
<Mia> does a block take the control for the return as well?
Phrogz_ has joined #ruby
Phrogz_ has joined #ruby
Phrogz_ has quit [Changing host]
Phrogz_ is now known as Phrogz
braincrash has joined #ruby
Cache_Money has joined #ruby
RichardLitt has joined #ruby
<havenwood> Mia: for example if you're in a method and use the `return` keyword from a lambda you return from the lambda and keep running the method, but if you `return` from a proc it returns from the method and nothing after the proc is run.
<Mia> okay
<Mia> what if I return from a block
davasaurous has joined #ruby
sevvie has quit [Quit: leaving]
<havenwood> like a proc
yfeldblu_ has quit [Remote host closed the connection]
<havenwood> Mia: and for arity, a lambda will complain if you pass extra arguments but a proc will not complain
yfeldblum has joined #ruby
<havenwood> a block will not complain
<Mia> ok
<havenwood> lambdas are strict arity like methods
<Mia> o for general use, proc will be a better friend?
mary5030 has quit [Remote host closed the connection]
afei has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
<havenwood> Mia: for general use it doesn't matter
cajone has joined #ruby
<havenwood> Mia: i tend to use lambdas, but you see plenty of procs
<havenwood> Mia: the stabby lambda syntax is common but some folk dislike it. i like it, stab stab!
<havenwood> -> do
<Mia> lol
thomasxie has joined #ruby
Phrogz has quit [Remote host closed the connection]
spastorino has quit [Quit: Connection closed for inactivity]
fold has joined #ruby
Takle has joined #ruby
Phrogz_ has joined #ruby
Phrogz_ is now known as Phrogz
duper has quit [Remote host closed the connection]
duper has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
skammer3 has joined #ruby
thomasxie has left #ruby [#ruby]
codeFiend has quit [Quit: codeFiend]
zorak8 has joined #ruby
Takle has quit [Ping timeout: 260 seconds]
zeabra has joined #ruby
davasaur_ has joined #ruby
gilest has joined #ruby
codeFiend has joined #ruby
skammer3 has quit [Ping timeout: 272 seconds]
havenwood has quit [Ping timeout: 264 seconds]
gilest has left #ruby [#ruby]
gilest has joined #ruby
afei has quit [Ping timeout: 246 seconds]
codeFiend has quit [Client Quit]
davasaurous has quit [Ping timeout: 244 seconds]
greenride has joined #ruby
codeFiend has joined #ruby
benzrf is now known as benzrf|offline
benzrf|offline is now known as benzrf
krisquigley has joined #ruby
codeFiend has quit [Client Quit]
emocakes has quit []
msmith_ has joined #ruby
havenwood has joined #ruby
hmsimha_ has joined #ruby
havenwood has quit [Remote host closed the connection]
ramfjord has joined #ruby
AlexRussia has quit [Ping timeout: 244 seconds]
Guest21370 has quit [Ping timeout: 272 seconds]
AlexRussia has joined #ruby
krisquigley has quit [Ping timeout: 258 seconds]
justinmburrous has quit [Remote host closed the connection]
angusiguess has joined #ruby
justinmburrous has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
kenneth has joined #ruby
axsuul has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
krisquigley has joined #ruby
Sp4rKy has joined #ruby
Sp4rKy is now known as Guest19069
hmsimha_ has quit [Read error: Connection reset by peer]
angusiguess has quit [Ping timeout: 245 seconds]
boombadaroomba has joined #ruby
oo_ has quit [Remote host closed the connection]
justinmburrous has quit [Ping timeout: 260 seconds]
mattjbarlow has quit [Remote host closed the connection]
oo_ has joined #ruby
bmurt has quit []
tanath_ has joined #ruby
gilest has quit [Remote host closed the connection]
boombadaroomba has quit [Ping timeout: 245 seconds]
Kricir has joined #ruby
arescorpio has quit [Excess Flood]
larissa has quit [Quit: Leaving]
tanath has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
zeabra has quit [Read error: Connection reset by peer]
ghostmoth has joined #ruby
Phrogz has quit [Remote host closed the connection]
smokingmeth has quit [Ping timeout: 246 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
zeroNones has quit [Quit: Textual IRC Client: www.textualapp.com]
mattjbarlow has joined #ruby
oo_ has joined #ruby
bthesorceror has joined #ruby
bmurt has quit []
apeiros_ has joined #ruby
msmith_ has quit [Remote host closed the connection]
apeiros has quit [Read error: Connection reset by peer]
hmsimha_ has joined #ruby
tjr9898 has joined #ruby
PhilK has joined #ruby
hiyosi has joined #ruby
tjr9898_ has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
bluOxigen has joined #ruby
tjr9898 has quit [Remote host closed the connection]
buub has quit [Ping timeout: 250 seconds]
tjr9898 has joined #ruby
echooo has quit [Ping timeout: 244 seconds]
hiyosi has quit [Ping timeout: 258 seconds]
KC9YDN-2 has joined #ruby
krisquigley has quit [Remote host closed the connection]
Wolland has quit []
krisquigley has joined #ruby
shock_one has joined #ruby
tectonic has joined #ruby
benzrf is now known as benzrf|offline
KC9YDN has quit [Ping timeout: 272 seconds]
krisquigley has quit [Ping timeout: 250 seconds]
klmlfl has joined #ruby
tjr9898_ has joined #ruby
koderok has joined #ruby
koderok has quit [Remote host closed the connection]
Wolland has joined #ruby
anaeem1_ has joined #ruby
jusmyth has joined #ruby
tjr9898 has quit [Ping timeout: 246 seconds]
shock_one has quit [Ping timeout: 240 seconds]
yfeldblu_ has joined #ruby
skammer3 has joined #ruby
linoespinoza has joined #ruby
davasaur_ has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
yfeldblum has quit [Ping timeout: 246 seconds]
jusmyth has left #ruby [#ruby]
Hijiri has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<Hijiri> help
<Hijiri> why is something using bit shift operators on a list
<Hijiri> is this pat of the fabled magical metaprogramming that exists in ruby
<Hijiri> or some random overloaded operator
mary5030 has joined #ruby
psyprus has quit [Read error: Connection reset by peer]
skammer3 has quit [Ping timeout: 245 seconds]
RichardLitt has quit [Quit: RichardLitt]
linoespinoza has quit [Quit: Textual IRC Client: www.textualapp.com]
sinkensabe has joined #ruby
mary5030 has quit [Ping timeout: 245 seconds]
psyprus has joined #ruby
Imofftopic has joined #ruby
Photism has quit [Read error: Connection reset by peer]
iinzg has quit [Quit: Leaving]
hamakn has joined #ruby
Photism has joined #ruby
krisquigley has joined #ruby
amargherio has quit [Remote host closed the connection]
lkba has joined #ruby
sumark has quit [Ping timeout: 246 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
sumark has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MaciejCzyzewski has joined #ruby
Schmidt has quit [Ping timeout: 244 seconds]
krisquigley has quit [Ping timeout: 260 seconds]
angusiguess has joined #ruby
justinmburrous has joined #ruby
msmith_ has joined #ruby
root3d has joined #ruby
davasaurous has joined #ruby
freerobby has quit [Quit: Leaving.]
angusiguess has quit [Ping timeout: 240 seconds]
therue has joined #ruby
zorak8 has quit [Ping timeout: 245 seconds]
iamcyberbird has joined #ruby
justinmburrous has quit [Ping timeout: 272 seconds]
Schmidt has joined #ruby
msmith_ has quit [Ping timeout: 272 seconds]
sinkensabe has quit [Remote host closed the connection]
ghostmoth has quit [Quit: ghostmoth]
Photism has quit [Read error: Connection reset by peer]
Photism has joined #ruby
kyb3r_ has joined #ruby
Kricir has joined #ruby
fgo_ has joined #ruby
mikepack has quit [Remote host closed the connection]
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikepack has joined #ruby
mikepack has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 260 seconds]
ghostmoth has joined #ruby
codeFiend has joined #ruby
gilest has joined #ruby
echooo has joined #ruby
AlexRussia has quit [Ping timeout: 260 seconds]
Kricir has quit [Ping timeout: 246 seconds]
AlexRussia has joined #ruby
willgo has quit [Remote host closed the connection]
thomasxie has joined #ruby
willgo has joined #ruby
ghostmoth has quit [Ping timeout: 245 seconds]
boombadaroomba has joined #ruby
mpistone has joined #ruby
echooo1 has joined #ruby
karupa is now known as zz_karupa
kyb3r_ has quit [Ping timeout: 258 seconds]
ramfjord has joined #ruby
fgo has joined #ruby
justinmburrous has joined #ruby
kyb3r_ has joined #ruby
lxsameer has joined #ruby
Channel6 has quit [Quit: Leaving]
justinmb_ has joined #ruby
oo_ has quit [Remote host closed the connection]
echooo has quit [Ping timeout: 244 seconds]
Soda has quit [Read error: Connection reset by peer]
fgo_ has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby
hiyosi has joined #ruby
justinmburrous has quit [Ping timeout: 260 seconds]
TieSoul has joined #ruby
codeFiend has quit [Quit: codeFiend]
codeFiend has joined #ruby
sinkensabe has joined #ruby
mikeg has joined #ruby
hiyosi has quit [Ping timeout: 260 seconds]
MaciejCzyzewski has joined #ruby
dx7 has quit [Remote host closed the connection]
dx7 has joined #ruby
work_op has joined #ruby
vinleod has joined #ruby
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
MaciejCzyzewski has quit [Ping timeout: 244 seconds]
dx7 has quit [Ping timeout: 240 seconds]
<epitron> Hijiri: Array#<< is the same as Array#push
<epitron> you'll find you use it much more frequently than you shift bits in ruby :)
<epitron> it also appends to strings by modifying the string in-place
<epitron> in case you like reallocs
betafive has joined #ruby
root3d has quit [Quit: Leaving]
tylersmith has quit [Ping timeout: 260 seconds]
<epitron> but i never use that, because it's faster to collect all your string fragments in an array, and then .join them all at the end
AlexRussia has quit [Ping timeout: 244 seconds]
krisquigley has joined #ruby
ferr has joined #ruby
<epitron> (and safer -- String#<< mutates the string object..)
skammer3 has joined #ruby
nanoyak has joined #ruby
jusmyth has joined #ruby
jusmyth has left #ruby [#ruby]
GinoMan has quit [Ping timeout: 245 seconds]
gtat12 has joined #ruby
<work_op> in lisp, macros are AST -> AST transforms, so to speak. if i had a lisp frontend to ruby, would it be possible to implement runtime macros within ruby without having to craft a standalone executable?
<gtat12> if @input is a string... what does this line do: @input = $'
emmesswhy has joined #ruby
krisquigley has quit [Ping timeout: 260 seconds]
greenride has quit [Ping timeout: 272 seconds]
<epitron> work_op: not sure i understand... you want to translate lisp to ruby? or ruby to lisp?
krz has joined #ruby
carraroj has joined #ruby
<epitron> or you want to add AST transforms to ruby?
skammer3 has quit [Ping timeout: 260 seconds]
<havenwood> gtat12: here's a cheat sheet for those crytpic globals: http://www.zenspider.com/Languages/Ruby/QuickRef.html#pre-defined-variables
<Mia> How can I compare the length of strings in an array, easily?
<work_op> the latter. the lisp frontend is rather trivial
<gtat12> havenwood: thanks!
<Mia> its a string only array
<epitron> work_op: which latter? :)
<work_op> sorry if i am not explaining this well, ruby is not my area of expertise
<work_op> ast transforms
<krz> is there something similart to instance_variable_set but with local vars instead?
GriffinHeart has joined #ruby
<work_op> the latter latter
oo_ has joined #ruby
<Mia> like, I only want to return true or false -- where true is if all are the same length, and false is not.
gtat12 has quit [Client Quit]
<krz> am tyring to dynamically assign a local var
<havenwood> gtat12: note if you `require 'english'` then `$' == $POSTMATCH`
<epitron> work_op: maybe explain the problem you want to solve
<krz> hopefully without eval
<epitron> there are ways of rewriting the ruby AST
Tomme has joined #ruby
<work_op> i want to write ruby and use ruby libraries, but i want to write lisp
thomasxie has left #ruby [#ruby]
iinzng has joined #ruby
<work_op> (.times 5 (print "hello"))
<work_op> for example
descala has quit [Ping timeout: 246 seconds]
<Hanmac> shevy: copy from the ruby commit log " fix for old ruby on old CentOS" ;P
echooo1 has quit [Read error: Connection reset by peer]
gilest has quit [Remote host closed the connection]
kobain has joined #ruby
echooo has joined #ruby
<epitron> krz: you could write an extension that modifies local_tbl: http://ruby-hacking-guide.github.io/module.html
<epitron> or local_vars
<Mia> How can I compare the length of strings in an array, easily? (string array)
<Mia> like, I only want to return true or false -- where true is if all are the same length, and false is not.
<epitron> :D
tagrudev has joined #ruby
descala has joined #ruby
<epitron> Mia: array.each_cons(2).all? { |a,b| a == b }
<epitron> >> %w[a b c].each_cons(2).all? { |a,b| a == b }
<eval-in_> epitron => false (https://eval.in/199742)
<epitron> whoops!
<epitron> oh sorry
gilest has joined #ruby
<epitron> >> %w[a b c].each_cons(2).all? { |a,b| a.size == b.size }
<eval-in_> epitron => true (https://eval.in/199743)
<epitron> >> %w[aa bb cc].each_cons(2).all? { |a,b| a.size == b.size }
<eval-in_> epitron => true (https://eval.in/199744)
<epitron> >> %w[aaa bb cc].each_cons(2).all? { |a,b| a.size == b.size }
<eval-in_> epitron => false (https://eval.in/199745)
<Mia> epitron, what's each_cons?
<epitron> each pair
<epitron> >> %w[a b c].each_cons(2).to_a
<eval-in_> epitron => [["a", "b"], ["b", "c"]] (https://eval.in/199746)
apeiros_ has quit [Read error: Connection reset by peer]
<epitron> well, all sets of 2 consecutive elements
<havenwood> Mia: another way: map(&:size).uniq.one?
apeiros has joined #ruby
echooo has quit [Read error: Connection reset by peer]
<epitron> work_op: ahh, interesting... why would you want to do that? isn't ruby slow compared to lisp?
<Mia> I need to learn maps
shock_one has joined #ruby
gilest has quit [Remote host closed the connection]
echooo has joined #ruby
krisquigley has joined #ruby
gilest has joined #ruby
MasterPiece has joined #ruby
goodenough has joined #ruby
greenride has joined #ruby
Tomme has quit [Ping timeout: 246 seconds]
gilest has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
gilest has joined #ruby
ta has joined #ruby
<Hijiri> thanks epitron
JeffBonds has quit [Quit: JeffBonds]
GriffinHeart has quit [Remote host closed the connection]
<krz> Hanmac: why do you suggest local_variable_set is a bad style?
<epitron> Mia: you mean the "map" method?
krisquigley has quit [Ping timeout: 260 seconds]
gilest has quit [Remote host closed the connection]
gilest has joined #ruby
<epitron> Hanmac: oh nice. i didn't realize ruby 2.1 added that
<Hanmac> krz because the variables are defined at parse time before you could set them ... and i didnt find a usecase where local_variable_set really could be useful
angusiguess has joined #ruby
<epitron> yeah, there's probably better ways to do whatever you want to do krz
<Hanmac> epitron: hm i think local_variable_set might be older ...
<epitron> what do you want to do?
<epitron> Hanmac: doesn't appear to be
<Hanmac> 19>> Binding.instance_methods.grep(/local/)
<eval-in_> Hanmac => [] (https://eval.in/199749)
<Hanmac> 20>> Binding.instance_methods.grep(/local/)
<eval-in_> Hanmac => [] (https://eval.in/199750)
<Hanmac> >> Binding.instance_methods.grep(/local/)
<eval-in_> Hanmac => [:local_variable_get, :local_variable_set, :local_variable_defined?] (https://eval.in/199751)
<epitron> binding had like no methods until 2.1 :)
<Hanmac> hm ... okay so its new
carraroj has quit [Ping timeout: 272 seconds]
<epitron> now it's got AN AVALANCHE OF 4 METHODS
<Hanmac> didnt used them before, because i didnt see a clean usecase yet ...
<epitron> yep
<epitron> that's probably also why matz never put them in there
<epitron> "you wanna mess around? you gotta use eval and make yourself feel dirty"
ta has quit [Ping timeout: 260 seconds]
russt has joined #ruby
<Hanmac> okay i say it ... one of my recent projects does use eval but only because there is no other clean way to load a gemspec
SOLDIERz has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<epitron> load "gemspec"?
<work_op> thanks epitron
w09x has joined #ruby
<epitron> work_op: i'm still not really sure what you wanna do :)
thomasxie has joined #ruby
<epitron> those things are kinda slow btw
codeFiend has quit [Quit: codeFiend]
<epitron> i think they're re-implementatons of the ruby parser
<epitron> (i might be wrong -- haven't used them in a long time)
<Hanmac> epitron: yeah but load is also only like eval ...
gilest has quit [Remote host closed the connection]
Kricir has joined #ruby
GriffinHeart has joined #ruby
<epitron> Hanmac: it's like eval(File.read("gemspec")) :)
codecop has joined #ruby
fold has quit [Ping timeout: 258 seconds]
w09x_ has joined #ruby
<epitron> require is basically eval as well
<epitron> it just remembers if you've loaded a file already
codeFiend has joined #ruby
<epitron> and has a lot of rubygems monkeypatches
oleo__ has quit [Quit: Verlassend]
nuck has quit [Quit: Nuck Off]
Kricir has quit [Ping timeout: 260 seconds]
jack_rabbit has quit [Ping timeout: 260 seconds]
w09x has quit [Ping timeout: 260 seconds]
codeFiend has quit [Client Quit]
greenride has left #ruby [#ruby]
tectonic has quit []
jarto has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
nuck has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
adac has joined #ruby
davasaurous has quit [Remote host closed the connection]
carraroj has joined #ruby
apeiros has quit [Ping timeout: 245 seconds]
jgrevich has quit [Ping timeout: 272 seconds]
starkhalo has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby
jgrevich has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
hiyosi has joined #ruby
lxsameer has quit [Quit: Leaving]
Xiti has quit [Quit: Leaving]
russt has quit [Quit: russt]
<epitron> Mia: oh, btw, i just thought of a faster way of figuring out if everything is the same length: array.group_by(&:size).length == 1
<epitron> >> %w[a b c d e].group_by(&:size).length
<eval-in_> epitron => 1 (https://eval.in/199753)
Xiti has joined #ruby
abdulsattar has joined #ruby
<havenwood> likewise, chunk(&:size).one?
<epitron> hah, i never knew about one?
hiyosi has quit [Ping timeout: 246 seconds]
mofai_ has joined #ruby
mofai has quit [Quit: Leaving...]
bal has joined #ruby
<epitron> chunk is a bit slower
gilest has joined #ruby
gilest has quit [Remote host closed the connection]
<epitron> .chunk: 1.37326s, .group_by: 0.46220s
<havenwood> how bout: map(&:size).uniq.one?
<epitron> hmmm
<epitron> that one's faster!
<epitron> 0.41466s
w09x has joined #ruby
Spami has joined #ruby
<epitron> well, it varies :)
carraroj has quit [Ping timeout: 245 seconds]
mofai_ has quit [Client Quit]
<epitron> 0.39244s, 0.42270s
<epitron> usually around 0.40
mofai has joined #ruby
<epitron> whoa, chunk is WAY faster if the array has a lot of different-sized elements
klmlfl has quit [Remote host closed the connection]
<epitron> uniq: 0.73804s, group_by: 0.84120s, chunk: 0.03640s
<epitron> (in that case, it's an array of 500 strings varying from size 1 to size 500)
<epitron> maybe it's different if i shuffle it
w09x_ has quit [Ping timeout: 272 seconds]
<epitron> nope, same speed
alem0lars has joined #ruby
<Wolland> what about a.min == a.max
<Wolland> just curious
<Wolland> min.size max.size
<epitron> not sure what you mean
klmlfl has joined #ruby
<Wolland> >> %w[a b c d e].min.size == %w[a b c d e].max.size
<eval-in_> Wolland => true (https://eval.in/199756)
Tomme has joined #ruby
lxsameer has joined #ruby
<epitron> hmmm
<epitron> >> a = %w[ a bb z ]; a.min.size == a.max.size
<eval-in_> epitron => true (https://eval.in/199759)
phutchin1 has joined #ruby
<epitron> no worko
<epitron> min/max might be faster than uniq tho
klmlfl has quit [Remote host closed the connection]
davasaurous has joined #ruby
<Wolland> ha, max is z :)
<epitron> yep! it's a bit faster: 0.29645s
<havenwood> .minmax_by(&:size).inject(:==)
<epitron> (that's map(&:size) and then min==max)
<epitron> hahah
<epitron> that's cool
<epitron> same speed as map + min + max
<epitron> 0.28
<epitron> but OMG AN OPPORTUNITY TO USE INJECT \o/
<epitron> +1
<havenwood> hehe
<epitron> i'm still kinda baffled at how chunk is the winner
<epitron> by a huge margin
<havenwood> it doesn't have to group
<havenwood> just toggles if there's a change
<epitron> oh right, it's just looking at pairs
sameerynho has joined #ruby
<epitron> ^5
<epitron> well, now i know how to write slightly faster code in the slowest languge there is! :D
skammer3 has joined #ruby
<epitron> 20 minutes well spent
charliesome has quit [Quit: zzz]
<havenwood> CHUNK ALL THE THINGS! \o/
aganov has joined #ruby
emmesswhy has quit [Quit: Leaving]
sameerynho has quit [Client Quit]
phutchin1 has quit [Ping timeout: 260 seconds]
<epitron> o shi
<epitron> i was wrong
<epitron> each_cons is the fastest
<epitron> 0.00412s
<havenwood> mm, that'd make sense i suppose
<epitron> well, on the array of many different sized ones :)
AlexRussia has joined #ruby
<epitron> the slowest case would be a huge array of the same length thing
<havenwood> yeah, if it can short-circuit
<havenwood> aye
<epitron> i gotta try it! hold on
lewix has quit [Remote host closed the connection]
charliesome has joined #ruby
lewix has joined #ruby
vinleod has quit [Quit: Computer has gone to sleep.]
alem0lars has quit [Quit: AFK..]
mieko has joined #ruby
<epitron> each_cons: 2.09278s, chunk: 1.16693s, minmax_by: 1.05531s, group_by: 0.81820s, uniq: 0.66525s
<epitron> UNIQ IS THE WINNER
<epitron> Enumerable races are fun
skammer3 has quit [Ping timeout: 272 seconds]
jonmorehouse has quit [Ping timeout: 260 seconds]
goodenough has quit [Remote host closed the connection]
gilest has joined #ruby
vinleod has joined #ruby
<Wolland> epitron: last one a.sort_by(&:size).values_at(0,-1).inject(:==)
yaymukund has joined #ruby
<Hanmac> epitron: hm how do you do that uniq? maybe i find a faster one?
Photism has quit [Read error: Connection reset by peer]
<epitron> array.map(&:size).uniq.one?
foooobear has joined #ruby
<epitron> maybe there's uniq_by
<Hanmac> epitron: hm thy "array.uniq(&:size).one?"
Photism has joined #ruby
alem0lars has joined #ruby
<epitron> yep!
mpistone has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
<epitron> 0.55880s
<epitron> THE TRUE WINNER
<diegoaguilar> hello, im trying to install ruby, last stable version
gilest has quit [Remote host closed the connection]
<epitron> hello, i'm epitron
<diegoaguilar> and when compiling i get this error log
<havenwood> Hanmac: ah, nice
<diegoaguilar> Permission denied @ rb_sysopen - /usr/local/bin/ruby (Errno::EACCES)
mocfive has quit [Remote host closed the connection]
<epitron> try sudo
<epitron> or install it to your home dir
mocfive has joined #ruby
<epitron> there are some things to help you do that, like rvm or ruby-install
krisquigley has joined #ruby
<epitron> rvm is the easier one of those to use
<diegoaguilar> i used ./configure && make && sudo make install
<epitron> wait
<epitron> rb_sysopen ...
hooper has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
<epitron> the ruby build process is trying to open /usr/local/bin/ruby?
suy_ has quit [Quit: No Ping reply in 180 seconds.]
danijoo has joined #ruby
<diegoaguilar> I guess, yes
suy has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<diegoaguilar> hey epitron I realized now that I gave sudo to the make command
<diegoaguilar> not to the make install
<epitron> ah
<epitron> i guess it's using ruby to do the installing
<diegoaguilar> sorry, my stupidness :/
<epitron> n
<epitron> np
ndrei has joined #ruby
<diegoaguilar> now that im here, I saw while configuring a lot of yes and no's
<diegoaguilar> like checking my os support for different ruby and ruby's stuff capabilities
<diegoaguilar> what software packages should be installed in a debian like os
<diegoaguilar> to have the most capable ruby install
<havenwood> diegoaguilar: build-essential libffi-dev libgdbm-dev libncurses5-dev libreadline-dev libssl-dev libyaml-dev zlib1g-dev
<epitron> gdbm \o/
<epitron> that's one that doesn't get used very much
<havenwood> qdbm \o/
<havenwood> sdbm?
<epitron> cdb! :D
<havenwood> ydbm.
mocfive has quit [Ping timeout: 272 seconds]
krisquigley has quit [Ping timeout: 272 seconds]
<epitron> ynotdbm
gauke has joined #ruby
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<havenwood> qdbm seemed a good bit faster than gdbm. interesting ruby ships with sdbm. ydbm seems almost useable, being able to serialize more than strings.
<diegoaguilar> thanks a lot havenwood
<epitron> sdbm, eh?
<diegoaguilar> if I install those packages and go and make and make install again
<diegoaguilar> will my ruby install be updated with whole new stuff?
<havenwood> diegoaguilar: then it'll link
<epitron> havenwood: i was actually interested in writing a rubygems accelerator that indexed all your gem .rb files in a fast database whenever you installed 'em
<epitron> CDB was super-duper fast
<epitron> i made a silly prototype
<epitron> if SDBM comes with ruby, that's kinda handy!
<havenwood> yeah, no need for external deps :)
<havenwood> epitron: ah, interesting
<epitron> benchmarking time
emocakes has joined #ruby
tessi_zz is now known as tessi
hooper has quit [Quit: Leaving.]
<diegoaguilar> havenwood, how do you mean it'll link
<havenwood> diegoaguilar: dynamically link
<havenwood> diegoaguilar: it will work
<havenwood> diegoaguilar: for reference, here're a list of deps: https://github.com/postmodern/ruby-install/blob/master/share/ruby-install/ruby/dependencies.txt
Scotteh has joined #ruby
andikr has joined #ruby
Kricir has joined #ruby
willgo has quit [Remote host closed the connection]
<havenwood> diegoaguilar: as opposed to say a precompiled binary that is statically linked: https://rvm.io/binaries/ubuntu/14.04/x86_64/
hmsimha_ has quit [Ping timeout: 260 seconds]
<havenwood> diegoaguilar: https://kb.iu.edu/d/akqn
alem0lars has quit [Quit: AFK..]
krandi has joined #ruby
peterhellberg has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
patrick99e99 has joined #ruby
hellangel7 has joined #ruby
xiphias has quit [Ping timeout: 258 seconds]
peterhellberg has quit [Ping timeout: 245 seconds]
patrick99e99 has quit [Ping timeout: 272 seconds]
lw has quit [Quit: s]
mikeg has quit [Ping timeout: 246 seconds]
justinmb_ has quit [Remote host closed the connection]
dx7 has joined #ruby
justinmburrous has joined #ruby
doev has joined #ruby
Xeago has joined #ruby
havenwood has quit []
kenndel has joined #ruby
dx7 has quit [Ping timeout: 272 seconds]
wallerdev has quit [Quit: wallerdev]
hiyosi has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
sinkensabe has quit [Remote host closed the connection]
<epitron> well, that took longer than i expected
amundj has joined #ruby
krisquigley has joined #ruby
<epitron> no qdbm gem
<epitron> :\
sinkensabe has joined #ruby
shock_one has quit [Quit: Computer has gone to sleep.]
hiyosi has quit [Ping timeout: 246 seconds]
andy41122 has joined #ruby
abuzze has joined #ruby
<andy41122> hi, is there code that can exit gracefully in ruby??
alex88 has joined #ruby
Wolland_ has joined #ruby
<tobiasvl> andy41122: what do you mean?
sinkensabe has quit [Remote host closed the connection]
<andy41122> i want something like abort('condition not met") but with exit status 0
<andy41122> abort("msg") returns exit status 1
Wolland has quit [Ping timeout: 244 seconds]
<tobiasvl> so you want it to say "condition not met" on a successful exit? doesn't sound very successful to me
<tobiasvl> puts "Condition not met"; exit
<andy41122> well.. i dont really care about the message, i just want it to exit with status 0
<tobiasvl> exit
klmlfl has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lusory has quit [Quit: leaving]
sinkensabe has joined #ruby
Xeago has quit [Remote host closed the connection]
davasaurous has quit [Remote host closed the connection]
shock_one has joined #ruby
skammer3 has joined #ruby
emocakes has quit []
terlar has joined #ruby
thomasxie has quit [Remote host closed the connection]
skammer3 has quit [Ping timeout: 250 seconds]
<epitron> holy shit, this SDBM-cache for require is really fast
shredding has joined #ruby
vinleod has joined #ruby
krandi has quit [Remote host closed the connection]
Wolland_ has quit [Remote host closed the connection]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
shock_one has quit [Quit: Computer has gone to sleep.]
bweston92 has joined #ruby
sinkensabe has joined #ruby
kenneth has joined #ruby
Skyler has quit [Ping timeout: 245 seconds]
<tagrudev> certainty, ping
mrgrieves has joined #ruby
marr has joined #ruby
ta has joined #ruby
willgo has joined #ruby
flughafen has quit [Quit: WeeChat 0.4.1]
krisquigley has quit [Remote host closed the connection]
<epitron> neat... i made require twice as fast
krisquigley has joined #ruby
justinmburrous has quit [Remote host closed the connection]
justinmburrous has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krisquigley has quit [Ping timeout: 272 seconds]
justinmburrous has quit [Ping timeout: 260 seconds]
Kricir has joined #ruby
krz has quit [Ping timeout: 245 seconds]
Morkel has joined #ruby
kenneth has joined #ruby
lsmola has joined #ruby
<certainty> tagrudev: yow, you're doing well again?
dumdedum has joined #ruby
Scotteh has quit [Ping timeout: 250 seconds]
Kricir has quit [Ping timeout: 246 seconds]
krz has joined #ruby
LekeFly has joined #ruby
Gu_______ has joined #ruby
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
AFKGeek has joined #ruby
Imofftopic has quit [Quit: Leaving]
oo_ has quit [Remote host closed the connection]
Sp4rKy__ is now known as Sp4rKy
Sp4rKy has quit [Changing host]
Sp4rKy has joined #ruby
roolo has joined #ruby
ghr has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
regedarek has quit [Ping timeout: 240 seconds]
mikeg has joined #ruby
regedarek has joined #ruby
last_staff has joined #ruby
threesixes has quit [Ping timeout: 258 seconds]
flughafen has joined #ruby
abdulsattar has quit [Ping timeout: 272 seconds]
hiyosi has joined #ruby
mollitz has joined #ruby
moritzs has joined #ruby
moritzschaefer has joined #ruby
shellox has joined #ruby
alem0lars has joined #ruby
<shellox> does bundler install documentation by default?
<shellox> or better said what's the default config for gem
<pontiki> gem does by default, but i don't think bundler does
<shellox> i see
<pontiki> not sure about bundler, i've just never seen it, or looked
Scotteh has joined #ruby
hiyosi has quit [Ping timeout: 245 seconds]
<shellox> just trying to speed the bundle install up
<shellox> already apppended -j4
<shellox> :P
shock_one has joined #ruby
oo_ has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
kaspergrubbe has joined #ruby
sepp2k has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
justinmburrous has joined #ruby
decoponio has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
pandaant has quit [Remote host closed the connection]
Macaveli has joined #ruby
guiguidoc has quit [Ping timeout: 246 seconds]
<pontiki> is it a clean install?
<shellox> indeed
AlSquire has joined #ruby
<shellox> it's a vagrant box which starts and installs stuff
AlSquire has quit [Client Quit]
axsuul has quit [Read error: No route to host]
<pontiki> consider network latency and compiling native extensions are hard to speed up
jgrevich has quit [Quit: jgrevich]
<pontiki> adding more RAM and CPUs help
relix has joined #ruby
justinmburrous has quit [Ping timeout: 246 seconds]
phutchin1 has joined #ruby
klmlfl has quit [Remote host closed the connection]
banister_ has joined #ruby
moritzs has quit [Quit: Verlassend]
poikon_ has quit []
oleo has joined #ruby
abdulsattar has joined #ruby
banister has quit [Ping timeout: 240 seconds]
skammer3 has joined #ruby
oo_ has quit [Remote host closed the connection]
yacks has quit [Quit: Leaving]
Takle has joined #ruby
bal has quit [Ping timeout: 258 seconds]
bigkevmcd has joined #ruby
oo_ has joined #ruby
phutchin1 has quit [Ping timeout: 272 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
siwica has joined #ruby
charliesome has quit [Quit: zzz]
bal has joined #ruby
ephemerian has joined #ruby
shredding has quit [Quit: shredding]
guiguidoc has joined #ruby
skammer3 has quit [Ping timeout: 258 seconds]
shredding has joined #ruby
axsuul has joined #ruby
nfk has joined #ruby
axsuul has quit [Max SendQ exceeded]
Scotteh has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
axsuul has quit [Excess Flood]
mikecmpbll has joined #ruby
axsuul has joined #ruby
axsuul has quit [Excess Flood]
WormDrink has joined #ruby
rdark has joined #ruby
Gu_______ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GriffinHeart has joined #ruby
shock_one has quit [Quit: Computer has gone to sleep.]
lkba has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
elaptics`away is now known as elaptics
shock_one has joined #ruby
<aep> what do people use for sinatra + pg? looks like the bare pg lib doesnt handle reconnects
shock_one has quit [Client Quit]
Hijiri has left #ruby ["WeeChat 0.4.3"]
elstif has joined #ruby
shock_one has joined #ruby
thomasxie has joined #ruby
shredding has quit [Quit: shredding]
Spami has quit [Quit: This computer has gone to sleep]
Takle has quit [Remote host closed the connection]
apeiros has joined #ruby
shredding has joined #ruby
Gu_______ has joined #ruby
mikeg has quit [Remote host closed the connection]
Takle has joined #ruby
elstif has quit [Quit: Leaving.]
shock_one has quit [Quit: Computer has gone to sleep.]
AFKGeek has quit [Ping timeout: 246 seconds]
anarang has joined #ruby
krisquigley has joined #ruby
dx7 has joined #ruby
Kricir has joined #ruby
dANO has joined #ruby
dANO has quit [Remote host closed the connection]
davasaurous has joined #ruby
dx7 has quit [Ping timeout: 250 seconds]
elstif has joined #ruby
Aaaal has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
yacks has joined #ruby
einarj has joined #ruby
sk87 has joined #ruby
Wolland has joined #ruby
Spami has joined #ruby
Spami has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 272 seconds]
kil0byte has joined #ruby
axl_ has joined #ruby
TripTastic has joined #ruby
davasaurous has quit [Remote host closed the connection]
hiyosi has joined #ruby
thomasxie has quit [Read error: Connection reset by peer]
axl_ has quit [Client Quit]
ciampix has joined #ruby
thomasxie has joined #ruby
andrewlio has joined #ruby
thomasxie has left #ruby [#ruby]
hiyosi has quit [Ping timeout: 246 seconds]
justinmburrous has joined #ruby
thomasxie has joined #ruby
ggherdov___ has joined #ruby
decoponyo has joined #ruby
axl_ has joined #ruby
Takle has quit [Remote host closed the connection]
tvw has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
axl_ has quit [Client Quit]
decoponio has quit [Ping timeout: 260 seconds]
justinmburrous has quit [Ping timeout: 240 seconds]
qba73 has joined #ruby
abuzze_ has joined #ruby
abuzze has quit [Ping timeout: 272 seconds]
AlSquire has joined #ruby
dangerousdave has joined #ruby
sigurding has joined #ruby
workmad3 has joined #ruby
shock_one has joined #ruby
shock_one has quit [Client Quit]
skammer3 has joined #ruby
iFire has quit [Ping timeout: 260 seconds]
dangerousdave has quit [Client Quit]
shock_one has joined #ruby
Tomme has quit [Ping timeout: 260 seconds]
alem0lars has quit [Quit: AFK..]
Takle has joined #ruby
shock_one has quit [Client Quit]
bigkevmcd has quit [Quit: Leaving]
iFire has joined #ruby
oo_ has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
skammer3 has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
sevenseacat has joined #ruby
Wolland has joined #ruby
charliesome has joined #ruby
jds has joined #ruby
Wolland_ has joined #ruby
anarang has quit [Ping timeout: 260 seconds]
decoponio has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Dude007 has joined #ruby
decoponyo has quit [Ping timeout: 272 seconds]
Wolland_ has quit [Ping timeout: 240 seconds]
elstif has quit [Quit: Leaving.]
alem0lars has joined #ruby
ramfjord has joined #ruby
Takle has quit [Remote host closed the connection]
ferr has quit [Ping timeout: 272 seconds]
ep3static has joined #ruby
jusmyth has joined #ruby
w09x has quit [Remote host closed the connection]
w09x has joined #ruby
Takle has joined #ruby
elstif has joined #ruby
elstif has quit [Client Quit]
elstif has joined #ruby
abuzze_ has quit [Remote host closed the connection]
abdulsattar has quit [Ping timeout: 260 seconds]
oo_ has quit [Remote host closed the connection]
ta has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
w09x has quit [Ping timeout: 272 seconds]
Kricir has joined #ruby
abuzze has joined #ruby
qba73 has quit [Remote host closed the connection]
jusmyth has left #ruby [#ruby]
sk87 has joined #ruby
ta has joined #ruby
rpag has joined #ruby
jhass is now known as jhass|off
tiagonobre_ has joined #ruby
qba73 has joined #ruby
doev has quit [Ping timeout: 240 seconds]
doev has joined #ruby
doev has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 272 seconds]
diegoaguilar has quit [Remote host closed the connection]
thomasxie has left #ruby [#ruby]
qba73 has quit [Remote host closed the connection]
anarang has joined #ruby
iinzng has quit [Ping timeout: 244 seconds]
qba73 has joined #ruby
dangerousdave has joined #ruby
davasaurous has joined #ruby
axl_ has joined #ruby
Takle has quit [Remote host closed the connection]
skammer3 has joined #ruby
axl_ has quit [Client Quit]
daxroc has joined #ruby
elstif has quit [Quit: Leaving.]
jottr has joined #ruby
ctp has joined #ruby
robustus is now known as robustus|Off
mdw has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
shredding has quit [Quit: shredding]
danijoo has joined #ruby
ep3static has quit [Quit: WeeChat 0.4.2]
skammer3 has quit [Ping timeout: 272 seconds]
elstif has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hiyosi has joined #ruby
noop has joined #ruby
adac has quit [Quit: Leaving]
sigurding has quit [Quit: sigurding]
hiyosi has quit [Ping timeout: 244 seconds]
shredding has joined #ruby
deed02392 has joined #ruby
<deed02392> could someone kindly point out the difference between these two method declarations from the same class? http://pastebin.com/iMfVx2am
<deed02392> it looks to me like overloading but a Google suggests that's not possible
abuzze has quit [Remote host closed the connection]
<soahccc> deed02392: you have two different methods (the equal matters)... One might say settr/getter
w09x has joined #ruby
postmodern has quit [Quit: Leaving]
<deed02392> soahccc, what's the equals doing? or is it just part of the method name?
pandaant has joined #ruby
<zenspider> deed02392: correct. overloading is not possible.
<zenspider> (without seriously stupid magic)
<zenspider> the equals is part of the method name
<deed02392> ah ok
<zenspider> but it can be called disjoint from the rest
<zenspider> obj.attrib = 42
<zenspider> is the same as obj.attrib=(42)
qba73 has quit [Remote host closed the connection]
<deed02392> what about in function definition context?
<zenspider> the only difference is the language enforces that the RHS is the result of the expression, regardless of what the method says it returns
<zenspider> deed02392: meaning?
<deed02392> zenspider, ie: def foobar
<zenspider> what about it?
lewix has quit [Remote host closed the connection]
<deed02392> i mean in your example of setting obj.attrib value
<deed02392> that seems kind of obvious because i would expect the parser to ignore the superfluous parens
<deed02392> but function definitions would be parsed differently to value assignment
davasaurous has quit [Remote host closed the connection]
<zenspider> it's prolly just me being tired, but I have no idea what you're getting at
flughafen has quit [Read error: Connection reset by peer]
<canton7> nah I don't get it either
<zenspider> deed02392: are you asking specifically about def ?
<deed02392> it's probably just that you know ruby so well and i'm a total newb
<deed02392> so if i want to call a method defined like def config=(hash), would I do
<zenspider> can you ask in code? your last url doesn't really have a question in it
<deed02392> class.config=(somevar)
<deed02392> and also in this class is def config
<zenspider> class is a reserved keyword... but ignoring that...
<deed02392> that would be called as class.config(), ie no args
bigkevmcd has joined #ruby
<deed02392> yeah, just an example
<canton7> deed02392, right! I get it. So, in ruby, objects don't have public fields. Running 'myObject.config = something' calls the method 'config=(hash)', with 'hash' set to 'something'
sigurding has joined #ruby
<zenspider> ah. thanks canton7 ... that's the part I wasn't connecting
qba73 has joined #ruby
<deed02392> ohh, understood
<deed02392> awesome
alem0lars has quit [Quit: AFK..]
<canton7> deed02392, you could explicitely write 'myClass.config=(something)' if you want, but there's no point - writing 'myClass.config = something' is clearer
<Hanmac> deed02392: you might want to look at Struct and OpenStruct that does over magic for you if you want something like "public fields"
<canton7> deed02392, similarly running 'myObject.config' calls the method 'config' on 'myObject'
xcv has joined #ruby
moritzs has joined #ruby
<zenspider> (sends the message config to the object referenced by myObject--the method config might not be on myObject's class...)
<deed02392> gotcha. it looks like a field value because i'm used to always needing parens
<deed02392> if it's a method
<deed02392> but that's cleared it up! thanks guys
Takle has joined #ruby
oponder has joined #ruby
<zenspider> "seattle style" is to avoid all parens where not strictly needed. the parens are __almost__ always optional... just used to disambiguate
<zenspider> def meth arg, arg, arg
<zenspider> obj.meth 1, 2, 3
<zenspider> etc
<deed02392> is it good form to use methods named such as that as a setter/getter technique for class variables?
<canton7> deed02392, yes
<deed02392> (if that's what you'd call self.foo)
<deed02392> ok great
<deed02392> semantically that comes out pretty good
mollitz has quit [Ping timeout: 245 seconds]
<zenspider> instance variables
<deed02392> zenspider, that sounds more accurate
<zenspider> class variables are a whole different beast
<canton7> deed02392, there are a couple of magic methods - attr_reader and attr_accessor - which generate the getter and setter methods for a given @instance_variable
moritzschaefer has quit [Ping timeout: 260 seconds]
moritzschaefer has joined #ruby
sigurding has quit [Ping timeout: 245 seconds]
<canton7> so 'attr_accessor :foo' generates the methods 'def foo; @foo; end' and 'def foo=(foo); @foo = foo; end'
<deed02392> oh awesome canton7
<deed02392> you just answered my next question
dANO has joined #ruby
<canton7> :)
w09x has quit [Ping timeout: 244 seconds]
<zenspider> ok. must sleep...
shellox has quit [Quit: leaving]
Wolland has joined #ruby
KC9YDN-2 has quit [Quit: In this moment, I am euphoric. Not because of any phony god’s blessing. But because, I am enlightened by my intelligence.]
RichardLitt has joined #ruby
roolo has quit [Remote host closed the connection]
qba73 has quit [Remote host closed the connection]
roolo has joined #ruby
davasaurous has joined #ruby
KC9YDN has joined #ruby
ndrei has quit [Ping timeout: 258 seconds]
kaspergrubbe has quit [Remote host closed the connection]
mijicd has joined #ruby
mijicd has quit [Client Quit]
Wolland has quit [Ping timeout: 272 seconds]
roolo has quit [Ping timeout: 260 seconds]
dx7 has joined #ruby
Advocation has joined #ruby
qba73 has joined #ruby
<soahccc> Is there a better way of doing this? (multiple gemfiles for plugins) => https://github.com/2called-chaos/mcl/blob/master/Gemfile#L15-L18
<apeiros> soahccc: just use .gemspecs properly
<soahccc> apeiros: it's not a gem though
qba73 has quit [Remote host closed the connection]
<apeiros> soahccc: um, impossible? bundler can only deal with gems.
<apeiros> or you mean your plugins are not gems? then IMO you're doing it wrong. make them gems.
<soahccc> apeiros: you can create a file or a folder which acts as plugin which may need additional gems
<soahccc> "plugin" stands for "plugin for my script" here
dx7 has quit [Ping timeout: 260 seconds]
<soahccc> apeiros: https://mcl.breitzeit.de/handlers/custom#migrations and the gemfile part
benzrf|offline is now known as benzrf
<Hanmac> soahccc: http://bundler.io/man/gemfile.5.html#GEMSPEC-gemspec- there is a gemspec command for Gemfile ...
<Hanmac> with that you might be able to load the plugins as extra gems
roolo has joined #ruby
<soahccc> Hanmac: Could be an alternative but this would require a bit more of a change I guess
qba73 has joined #ruby
<soahccc> Currently it's just a single ruby file (or rather as many as you want) and then I do descendant tracking for the handler class. Rather dumb but it works very well :D
abuzze has joined #ruby
<soahccc> Hanmac: the advantage is that I can reload them without killing the actual process which I couldn't do when using gems
yaymukund has quit [Ping timeout: 258 seconds]
emocakes has joined #ruby
narcan has joined #ruby
w09x has joined #ruby
ndrei has joined #ruby
kaspergrubbe has joined #ruby
alem0lars has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
kaspergrubbe has joined #ruby
tokik has quit [Ping timeout: 272 seconds]
willbarrettdev has joined #ruby
qqw has quit [Remote host closed the connection]
w09x has quit [Remote host closed the connection]
willbarrettdev has left #ruby [#ruby]
w09x has joined #ruby
ta has quit [Ping timeout: 260 seconds]
joonty has joined #ruby
qba73 has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
w09x has quit [Client Quit]
rkalfane has joined #ruby
qba73 has joined #ruby
abuzze_ has joined #ruby
patrick99e99 has joined #ruby
Kricir has quit [Ping timeout: 272 seconds]
elstif has quit [Quit: Leaving.]
Takle has quit [Remote host closed the connection]
abuzze has quit [Ping timeout: 272 seconds]
Takle has joined #ruby
AFKGeek has joined #ruby
patrick99e99 has quit [Ping timeout: 250 seconds]
Gu_______ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zorak8 has joined #ruby
ferr has joined #ruby
threesixes has joined #ruby
marcules has joined #ruby
betafive has quit [Ping timeout: 272 seconds]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkalfane has joined #ruby
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
hiyosi has joined #ruby
nettoweb has joined #ruby
banister_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nettoweb has quit [Max SendQ exceeded]
angusiguess has quit [Ping timeout: 260 seconds]
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
nettoweb has joined #ruby
hellangel7 has quit [Ping timeout: 250 seconds]
banister has joined #ruby
hiyosi has quit [Ping timeout: 245 seconds]
nettoweb_ has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
guiguidoc has quit [Ping timeout: 260 seconds]
lkba has joined #ruby
nettoweb has quit [Ping timeout: 260 seconds]
robustus|Off is now known as robustus
justinmburrous has joined #ruby
skammer3 has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
larsam has joined #ruby
The has joined #ruby
Guest____ has joined #ruby
lxsameer has quit [Quit: Leaving]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
justinmburrous has quit [Ping timeout: 258 seconds]
tkuchiki has quit [Remote host closed the connection]
The has quit [Client Quit]
Wolland has joined #ruby
banister has joined #ruby
robustus is now known as robustus|Off
davasaurous has quit []
MCDev has quit [Ping timeout: 250 seconds]
Tomme has joined #ruby
rkalfane has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
nouranology has joined #ruby
guiguidoc has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sigurding has joined #ruby
shredding has quit [Quit: shredding]
codecop has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 258 seconds]
Wolland has joined #ruby
RichardLitt has quit [Quit: RichardLitt]
banister has joined #ruby
zegerjan has joined #ruby
bruno- has quit [Quit: Lost terminal]
dangerousdave has joined #ruby
angusiguess has joined #ruby
alem0lars has quit [Quit: AFK..]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Wolland has quit [Ping timeout: 272 seconds]
guiguidoc has quit [Ping timeout: 260 seconds]
robustus|Off is now known as robustus
therue has quit []
therue has joined #ruby
shakoep has joined #ruby
Takle has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
MCDev has joined #ruby
jacobw` has joined #ruby
bweston92 has quit [Ping timeout: 260 seconds]
phutchin1 has joined #ruby
<jacobw`> Hi, I actually want print %{X-Forward-For} in a string, I guess this is possible.
Guest____ has quit [Quit: Textual IRC Client: www.textualapp.com]
emrox has joined #ruby
Xeago has quit [Remote host closed the connection]
tjr9898_ has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alem0lars has joined #ruby
mdw has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac> jacobw`: %{} is already a string or what do you want?
Kricir has joined #ruby
guiguidoc has joined #ruby
<shevy> haha
<jacobw`> Hanmac: I want to print a literal %{X-Forward-For}, I'm templating an Apache configuration file including LogFormat strings.
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robustus is now known as robustus|Off
<shevy> >> %{X-Forward-For}
<eval-in_> shevy => "X-Forward-For" (https://eval.in/199873)
<shevy> look! it is a string!
<shevy> \o/
<workmad3> shevy: unless he wants "%{X-Forward-For}" ;)
<jacobw`> workmad3: yes, that's what I want, thanks.
<jacobw`> LogFormat is quite a common thing, someone must have had this issue before :)
<shevy> >> %{X-Forward-For}
<eval-in_> shevy => "X-Forward-For" (https://eval.in/199874)
<shevy> >> "%{X-Forward-For}"
<eval-in_> shevy => "%{X-Forward-For}" (https://eval.in/199875)
<shevy> you guys are playing with my mind
<shevy> it is still a String right?
<jacobw`> Ok, I want a literal %{X-Forward-For} to appear in the output of my template evaluation.
agjacome has joined #ruby
AFKGeek has quit [Ping timeout: 245 seconds]
<jacobw`> i.e. I need to escape the %{var} notation.
<workmad3> jacobw`: that'll depend on what you're using to template the file with
<jacobw`> It's an ERB template, I'm working with Puppet.
ciampix has quit [Ping timeout: 260 seconds]
elstif has joined #ruby
tkuchiki has joined #ruby
alem0lars has quit [Ping timeout: 245 seconds]
<workmad3> jacobw`: hmm... and are you trying to put that at the start of the line?
abuzze_ has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 272 seconds]
<jacobw`> workmad3: to make matters worse, I'm actually trying to print literal "%{X-Forwarded-For}"
siwica has quit [Ping timeout: 250 seconds]
<jacobw`> I'm trying to print it in ERB with <%= @var %> in the middle of a line.
<jacobw`> Would dump help me here?
<workmad3> jacobw`: ok... then @var needs to contain "%{X-Forwarded-For}"
<jacobw`> Yeah, that's kind of my problem.
<workmad3> jacobw`: how you do that will depend on puppet
<jacobw`> Oh, sorry, I misread.
sk87 has joined #ruby
<jacobw`> I'll play with evaluating within Ruby and come back later if I need more help.
<workmad3> jacobw`: I'm guessing at the moment, you're just getting X-Forwarded-For, which would imply that something like '@var = %{X-Forwarded-For}' is happening
<jacobw`> I'm getting nothing, actually.
<workmad3> jacobw`: that would imply that nothing is being put in @var then ;)
wald0 has joined #ruby
<workmad3> jacobw`: which again means going back to puppet to figure out how to populate template variables :)
tokik has joined #ruby
elstif has quit [Client Quit]
tkuchiki has quit [Remote host closed the connection]
kuanyui has joined #ruby
robustus|Off is now known as robustus
robustus is now known as robustus|Off
fsapo has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
<kuanyui> If I want to parse options with "parseopt", and let some option can accept an option with space(s), how to do this? (take -e for example: myprogram -e apple banana citrus -v)
fennec has quit [Quit: This computer has gone to sleep]
<Mia> codecademy ruby training is almost done
<Mia> any other recommendations?
Xeago has joined #ruby
vt102 has joined #ruby
marcules has quit [Remote host closed the connection]
hiyosi has joined #ruby
<shevy> YES
<shevy> WRITE RUBY CODE
HelperW has joined #ruby
<sevenseacat> :D
fgo has quit []
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
abdulsattar has joined #ruby
mocfive has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
mastr_bennett[x] has joined #ruby
<certainty> xD
fgo has joined #ruby
aclearman037 has joined #ruby
mastr_bennett[x] has quit [Client Quit]
hiyosi has quit [Ping timeout: 260 seconds]
<kuanyui> And when using OptionParser, how to get the value without "-" option? e.g. myprogram apple
<shevy> Mia for instance, my first project in ruby was an IRC bot
<shevy> I failed to write one in php
<shevy> kuanyui is that even possible?
<Mia> shevy, I would love to learn your tricks!
justinmburrous has joined #ruby
<Mia> I want to reate an irc bot that outputs to a website
<kuanyui> I don't know so I ask here...
<shevy> Mia that is the learning part, you need to put yourself into a situation with problems
<Mia> like, logs
<Mia> yes I want to create a twitter bot that responds
<shevy> ok do you know how to actually write files from inside ruby .rb files yet Mia
Takle has joined #ruby
<Mia> No not yet
<Mia> I just almost finished the codecademy
<shevy> good! file handling in ruby! Mia's learning lesson today \o/
<Mia> (it'll be finished in an hour)
<Mia> shevy, I think I need another tutorial series?
<Mia> does tryruby teaches file handling?
<shevy> kuanyui if optionparser would have good documentation you could look there :)
<shevy> unfortunately none of the examples show usage without '-'
mdw has joined #ruby
<shevy> kuanyui arguments to files are available to ARGV though, and you can also do this:
<shevy> if __FILE__ == $PROGRAM_NAME
<shevy> YourClassHere.new(ARGV)
<shevy> and then inside of initialize(), handle that argument properly
gccostabr has quit [Quit: ZZZzzz…]
<shevy> I think OptionParser will ignore options that it can not find
cocotton has joined #ruby
abuzze has joined #ruby
<shevy> Mia you need to look at File
<shevy> read this once
<shevy> it is boring, but afterwards you know how to add, delete or append into files
willgo has quit [Remote host closed the connection]
<shevy> here is the most relevant method for your case -> http://www.ruby-doc.org/core-2.1.3/File.html#method-c-open
cocotton has quit [Remote host closed the connection]
justinmburrous has quit [Ping timeout: 245 seconds]
cocotton has joined #ruby
shredding has joined #ruby
txdv has quit [Ping timeout: 240 seconds]
<kuanyui> shevy: ...I'm thinking maybe I should get rid of OptionParser and parse ARGV manually because it seems also cannot do this http://stackoverflow.com/questions/13225762/pass-value-with-space-to-ruby-script
txdv has joined #ruby
<shevy> hehehe
<shevy> now you know why I hate OptionParser too
<kuanyui> orz
<shevy> and now you know why so many other people wrote alternatives
<shevy> slop, trollop... thor? I dunno, too many to keep track
<shevy> kuanyui btw though that example you linked does not show non '-' use right
<kuanyui> I just saw a lot of "OptionParser is great" comment and tutorial on google...
abuzze has quit [Ping timeout: 260 seconds]
lukevinc has joined #ruby
tkuchiki has joined #ruby
<kuanyui> shevy: Any recommended alternative?
dx7 has joined #ruby
mocfive has quit [Ping timeout: 244 seconds]
klmlfl has joined #ruby
wald0 has quit [Quit: Lost terminal]
abuzze has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
<shevy> I think all alternatives ultimately suck
<shevy> but slop can be terse
<kuanyui> orz
yacks has quit [Ping timeout: 245 seconds]
<shevy> on 'p', 'password', 'An optional password', argument: :optional
<shevy> but I think
AtumT has joined #ruby
<shevy> for your case, you could just use ARGV, and then pass the remaining options to someone else to handle
fennec has joined #ruby
<kuanyui> shevy: Ok, thank you~
dx7 has quit [Ping timeout: 250 seconds]
lukevinc has quit [Ping timeout: 264 seconds]
marr has quit [Remote host closed the connection]
flughafen has joined #ruby
tanath_ has quit [Ping timeout: 264 seconds]
marr has joined #ruby
St_Marx has quit [Ping timeout: 264 seconds]
benzrf|offline is now known as benzrf
paulfm has joined #ruby
alem0lars has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
hiyosi has joined #ruby
yfeldblum has joined #ruby
<certainty> kuanyui: once you've parsed the options with OptionParser all that remains in ARGV are your positional arguments
charliesome has quit [Quit: zzz]
oo_ has quit [Remote host closed the connection]
charliesome has joined #ruby
sumark has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
noop has quit [Ping timeout: 260 seconds]
mkaesz has joined #ruby
sumark has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 260 seconds]
cocotton has quit [Remote host closed the connection]
HelperW has quit [Quit: Computer has gone to sleep.]
HelperW has joined #ruby
humd1ng3r has quit [Quit: Leaving]
cpruitt has joined #ruby
Logico has joined #ruby
Logico has left #ruby [#ruby]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
<kuanyui> certainty: Great!
HelperW has quit [Ping timeout: 260 seconds]
mleone has joined #ruby
AFKGeek has joined #ruby
St_Marx has joined #ruby
qmfnp has joined #ruby
lukevinc has joined #ruby
lukevinc has quit [Client Quit]
kirun has joined #ruby
kuanyui has quit [Ping timeout: 272 seconds]
alem0lars has quit [Quit: AFK..]
Kricir has joined #ruby
HelperW has joined #ruby
nonmadden has joined #ruby
GinoMan has joined #ruby
shredding has quit [Quit: shredding]
bmurt has joined #ruby
jonr22 has joined #ruby
<jacobw`> shevy, Hanmac: incase you're curious, this is the issue I was having: https://projects.puppetlabs.com/issues/16235
Kricir has quit [Ping timeout: 272 seconds]
<jacobw`> It's not really a Ruby problem, but overlapping defintions of %{var} behavior in strings at different levels isn't easy to understand.
shredding has joined #ruby
yaymukund has joined #ruby
Takle has joined #ruby
tjr9898 has joined #ruby
Takle has quit [Remote host closed the connection]
alem0lars has joined #ruby
Takle has joined #ruby
angusigu1ss has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
workmad3 has joined #ruby
Advocation has quit [Quit: Advocation]
yacks has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
cocotton has quit [Remote host closed the connection]
krz has joined #ruby
thaum has joined #ruby
tessi is now known as tessi_zz
ikawnoclast has joined #ruby
angusigu1ss has quit [Ping timeout: 260 seconds]
mradmacher has joined #ruby
yfeldblum has joined #ruby
shredding has quit [Quit: shredding]
axl_ has joined #ruby
angusigu1ss has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
shredding has joined #ruby
yfeldblu_ has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
cocotton has joined #ruby
Xiti` has joined #ruby
Xiti` has quit [Changing host]
Xiti` has joined #ruby
axl_ has quit [Client Quit]
coderdad has joined #ruby
hellangel7 has joined #ruby
alem0lars has quit [Quit: AFK..]
ciampix has joined #ruby
banister has joined #ruby
lewix has joined #ruby
alem0lars has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
banister has quit [Max SendQ exceeded]
yfeldblum has quit [Ping timeout: 245 seconds]
gvenkat has joined #ruby
banister has joined #ruby
Scripore has joined #ruby
xcv has quit [Remote host closed the connection]
tessi_zz is now known as tessi
weems|mac has joined #ruby
weems|mac has joined #ruby
angusigu1ss has quit [Ping timeout: 260 seconds]
Xiti has quit [Ping timeout: 246 seconds]
JeffBonds has joined #ruby
yfeldblu_ has quit [Ping timeout: 272 seconds]
banister has quit [Read error: Connection reset by peer]
banister_ has joined #ruby
gccostabr has joined #ruby
iinzng has joined #ruby
Advocation has joined #ruby
banister_ has quit [Max SendQ exceeded]
endash has joined #ruby
banister has joined #ruby
banister has quit [Read error: Connection reset by peer]
jerius has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
nouranology has quit [Ping timeout: 272 seconds]
pdoherty has joined #ruby
Hanmac has joined #ruby
justinmburrous has joined #ruby
betafive has joined #ruby
pdoherty has quit [Client Quit]
nettoweb_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klmlfl has quit [Read error: Connection reset by peer]
fennec has quit [Quit: This computer has gone to sleep]
klmlfl has joined #ruby
justinmburrous has quit [Ping timeout: 260 seconds]
mary5030 has joined #ruby
yaymukund has quit [Ping timeout: 245 seconds]
msmith_ has joined #ruby
alem0lars has quit [Quit: AFK..]
autonomousdev has joined #ruby
cocotton has quit [Remote host closed the connection]
beseku has joined #ruby
snath has quit [Ping timeout: 245 seconds]
duggiefresh has joined #ruby
betafive has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
ldnunes has joined #ruby
nouranology has joined #ruby
Sawbones has joined #ruby
mdw has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
Scripore has quit [Ping timeout: 260 seconds]
Macaveli has joined #ruby
Sawbones_ has joined #ruby
nettoweb has joined #ruby
zz_jrhorn424 is now known as jrhorn424
nettoweb has quit [Max SendQ exceeded]
nettoweb has joined #ruby
spyderman4g63 has joined #ruby
alem0lars has joined #ruby
mary5030 has quit [Remote host closed the connection]
tkuchiki has joined #ruby
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
Sawbones has quit [Ping timeout: 245 seconds]
autonomousdev has joined #ruby
autonomousdev has quit [Client Quit]
codecop has joined #ruby
codecop_ has joined #ruby
dc__ has quit [Remote host closed the connection]
autonomousdev has joined #ruby
IceDragon has joined #ruby
codecop has quit [Client Quit]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
codecop_ has quit [Client Quit]
codecop has joined #ruby
ciampix has quit [Ping timeout: 244 seconds]
Takle has quit [Remote host closed the connection]
sailias has joined #ruby
subopt has quit [Remote host closed the connection]
subopt has joined #ruby
pagios has joined #ruby
threesixes has quit [Quit: SATAN!!!!!!!!]
sk87 has joined #ruby
freerobby has joined #ruby
klmlfl has quit [Read error: Connection reset by peer]
jrhorn424 is now known as zz_jrhorn424
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
klmlfl has joined #ruby
cocotton has joined #ruby
zz_jrhorn424 is now known as jrhorn424
oo_ has joined #ruby
anarang has quit [Quit: Leaving]
jhass|off is now known as jhass
tjr9898 has quit [Remote host closed the connection]
coderhs has quit [Read error: Connection reset by peer]
coderhs has joined #ruby
benzrf is now known as benzrf|offline
echooo has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
echooo has joined #ruby
xcv has joined #ruby
mastr_bennett[x] has joined #ruby
Sawbones_ has quit []
bthesorceror has quit [Quit: bthesorceror]
Ankhers has joined #ruby
sinelaw has joined #ruby
<sinelaw> hi, how do I pass a hash directly into a method that accepts *args?
shackleford has joined #ruby
<sinelaw> e.g. ActiveRecord's .create method, I want to call it like this MyModel.create(some_hash) where some_hash = { bla: 1}
<sinelaw> NOT .create(:bla => 1)
<tobiasvl> splat converts a hash to an array, doesn't it?
shredding has quit [Quit: shredding]
hellangel7 has joined #ruby
<tobiasvl> or you can just call to_a on it
<tobiasvl> >> { bla: 1}.to_a
<eval-in_> tobiasvl => [[:bla, 1]] (https://eval.in/199954)
<sinelaw> and *args will unpack that?
<tobiasvl> it'll probably just to the same thing. what do you mean?
fold has joined #ruby
fold has quit [Client Quit]
<tobiasvl> >> a = *{foo: 1}
<eval-in_> tobiasvl => [[:foo, 1]] (https://eval.in/199958)
hellangel7 has quit [Max SendQ exceeded]
<sinelaw> I see
Kricir has joined #ruby
crazed_ is now known as crazed
jrhorn424 is now known as zz_jrhorn424
yfeldblum has joined #ruby
jdjkelly has joined #ruby
tjr9898 has joined #ruby
Wolland has joined #ruby
endash has quit [Quit: endash]
<sinelaw> tobiasvl, nvm, the problem was something else: when you call ActiveRecord's .create method with a parameter of the wrong type, it ignores it silently at writes "nil" to the DB instead
Sou|cutter has quit [Ping timeout: 245 seconds]
silkfox has joined #ruby
<sinelaw> is there a way to make it safer (e.g. throw an error?)
<tobiasvl> no idea, don't know what activerecord is
<tobiasvl> isn't that some #RubyOnRails stuff? or maybe not
<sinelaw> yes. sorry.
<sinelaw> thanks!
Wolland_ has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
Wolland has quit [Disconnected by services]
Wolland_ is now known as Wolland
moritzschaefer has quit [Quit: Verlassend]
moritzs has quit [Quit: Verlassend]
angusigu1ss has joined #ruby
kuanyui has joined #ruby
tvw has quit []
koell has quit [Ping timeout: 272 seconds]
hamakn has quit [Remote host closed the connection]
koell has joined #ruby
mary5030 has joined #ruby
skolman_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
Takle has joined #ruby
angusigu1ss has quit [Ping timeout: 258 seconds]
SilkFox_ has joined #ruby
mary5030 has joined #ruby
Takle has quit [Remote host closed the connection]
dx7 has joined #ruby
fold has joined #ruby
InhalingPixels has joined #ruby
zeroNones has joined #ruby
centrx has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
andrewlio has quit [Quit: Leaving.]
crazydiamond has joined #ruby
dx7 has quit [Remote host closed the connection]
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
dx7 has joined #ruby
modernbob has quit [Ping timeout: 255 seconds]
anaeem1 has joined #ruby
livingstn has joined #ruby
justinmburrous has joined #ruby
endash has joined #ruby
apeiros has quit [Ping timeout: 245 seconds]
antlong has joined #ruby
oo_ has quit [Remote host closed the connection]
ffranz has joined #ruby
SilkFox_ has quit [Ping timeout: 260 seconds]
mastr_bennett[x] has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Tomme has quit [Ping timeout: 245 seconds]
thane75 has joined #ruby
justinmburrous has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
jobewan has joined #ruby
tagrudev has quit [Remote host closed the connection]
kireevco has joined #ruby
axl_ has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
ivmx has joined #ruby
mradmacher has quit [Ping timeout: 272 seconds]
threesixes has joined #ruby
alem0lars has quit [Quit: AFK..]
terlar has quit [Quit: WeeChat 1.0]
ndrei has joined #ruby
terlar has joined #ruby
mdw has joined #ruby
kobain has joined #ruby
elstif has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
Sou|cutter has joined #ruby
slester has joined #ruby
sinelaw has quit [Quit: Leaving]
oo_ has quit [Remote host closed the connection]
skrite has joined #ruby
failshell has joined #ruby
<skrite> hello all
<aep> can i run ruby without gems?
<aep> <internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError)
Takle has joined #ruby
zorak8 has quit [Ping timeout: 246 seconds]
mradmacher has joined #ruby
oo_ has joined #ruby
zz_jrhorn424 is now known as jrhorn424
yeticry has quit [Ping timeout: 260 seconds]
Advocation has quit [Quit: Advocation]
geggam has joined #ruby
yeticry has joined #ruby
codeFiend has joined #ruby
duggiefresh has quit [Read error: Connection reset by peer]
duggiefr_ has joined #ruby
paulfm has quit [Ping timeout: 260 seconds]
larsam has quit [Quit: Exit]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Ankhers has quit [Ping timeout: 264 seconds]
GriffinHeart has quit [Remote host closed the connection]
paulfm has joined #ruby
Ankhers has joined #ruby
oo_ has quit [Remote host closed the connection]
ursooperduper has joined #ruby
duggiefr_ has quit [Read error: Connection reset by peer]
bthesorceror has joined #ruby
codeFiend has quit [Ping timeout: 246 seconds]
duggiefresh has joined #ruby
skrite has quit [Quit: Konversation terminated!]
fgo has quit [Remote host closed the connection]
doubleem_ has joined #ruby
doubleem_ has quit []
claymore has joined #ruby
codeFiend has joined #ruby
skammer3 has quit [Ping timeout: 272 seconds]
sigurding has quit [Quit: sigurding]
skammer3 has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
Pupeno has quit [Quit: Leaving...]
HelperW has quit [Quit: Computer has gone to sleep.]
HelperW has joined #ruby
MCDev has joined #ruby
dukedave has joined #ruby
SilkFox_ has joined #ruby
Sou|cutter has quit [Quit: WeeChat 0.4.3]
sigurding has joined #ruby
goodenough has joined #ruby
yfeldblum has joined #ruby
jacobw` has quit [Quit: Page closed]
patrick99e99 has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nouranology has quit [Quit: ChatZilla 0.9.90.1 [Firefox 32.0.3/20140924083558]]
HelperW_ has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
LiohAu_ has joined #ruby
gsd has joined #ruby
HelperW has quit [Ping timeout: 245 seconds]
AlexRussia has quit [Ping timeout: 258 seconds]
Macaveli has quit [Ping timeout: 245 seconds]
<crazydiamond> Hi. How do I create decimal in Ruby?
gregf has quit [Quit: WeeChat 1.0]
AlexRussia has joined #ruby
TieSoul is now known as kappa
kappa is now known as TieSoul
Smujo has joined #ruby
Takle has quit [Remote host closed the connection]
bal has quit [Quit: bal]
yfeldblum has quit [Ping timeout: 245 seconds]
robustus|Off is now known as robustus
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patrick99e99 has quit [Ping timeout: 245 seconds]
doubleemms has joined #ruby
<brushdemon> crazydiamond: just assign is to a variable
havenwood has joined #ruby
HelperW_ has quit [Ping timeout: 260 seconds]
stunder has joined #ruby
apeiros has joined #ruby
jottr has joined #ruby
<crazydiamond> brushdemon, thanks. I just forget that they are called "Rational"
xcv has quit [Remote host closed the connection]
<brushdemon> :3
fsapo has quit [Remote host closed the connection]
elstif has quit [Quit: Leaving.]
<workmad3> crazydiamond: Rationals are a bit different from decimals
<workmad3> crazydiamond: maybe you're looking for the BigDecimal class?
<crazydiamond> workmad3, I just need precise numbers
<crazydiamond> with two digits after point
<workmad3> crazydiamond: which is in the standard library, so needs to be included
<workmad3> crazydiamond: sounds more like a BigDecimal than a Rational ;)
<crazydiamond> uhm, yes
larsam has joined #ruby
<crazydiamond> ok. but why only "Big" one, isn't there small?
<workmad3> no idea on that front, I'm afraid
<crazydiamond> Rational is thing like 10/3
<crazydiamond> ok
<crazydiamond> :D
<workmad3> a Rational is a rational number... i.e. a ratio of A/B
<workmad3> so it just stores two integers internally
<workmad3> so yes, you could represent all of your numbers as Rationals where 'B' is 100... but BigDecimal is probably a bit easier to work with ;)
HelperW_ has joined #ruby
HelperW_ has quit [Read error: Connection reset by peer]
HelperW_ has joined #ruby
SilkFox_ has quit [Ping timeout: 272 seconds]
<pagios> hi, can i open 2 files in 1 shot using parsedText = YAML.load(File.open(file1,file2) ?
Tricon has joined #ruby
angusigu1ss has joined #ruby
sigurding has quit [Quit: sigurding]
<pagios> i want parsedText to contain the concatenated output of both files
slyslick has joined #ruby
andy41122 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
abdulsattar has quit [Ping timeout: 272 seconds]
icebourg has joined #ruby
Advocation has joined #ruby
<apeiros> pagios: no
mkaesz has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
mkaesz has joined #ruby
mikepack has joined #ruby
angusigu1ss has quit [Ping timeout: 245 seconds]
jrhe_ has joined #ruby
statis has joined #ruby
GriffinHeart has joined #ruby
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 260 seconds]
mkaesz has quit [Ping timeout: 258 seconds]
AlexRussia has quit [Remote host closed the connection]
Darryl has quit [Quit: Connection closed for inactivity]
tokik has quit [Ping timeout: 260 seconds]
elstif has joined #ruby
elstif has quit [Client Quit]
AlexRussia has joined #ruby
enodata has joined #ruby
fgo has joined #ruby
shinobi_one has joined #ruby
jottr has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
shinobi_one has quit [Client Quit]
Kricir has quit [Remote host closed the connection]
yalue has joined #ruby
Inhaling_ has joined #ruby
Kricir has joined #ruby
kaspergrubbe has quit [Ping timeout: 260 seconds]
aganov has quit [Quit: Leaving]
mpistone has joined #ruby
starkhalo has joined #ruby
aspires has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
InhalingPixels has quit [Ping timeout: 272 seconds]
hooper has joined #ruby
skolman_ has quit [Remote host closed the connection]
fgo has joined #ruby
skolman_ has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
sevenseacat has quit [Quit: Leaving.]
kenneth has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjr9898 has quit [Remote host closed the connection]
Kricir has joined #ruby
[1]MCDev has joined #ruby
paulfm has quit []
chrishough has joined #ruby
paulfm has joined #ruby
tkuchiki has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
[1]MCDev is now known as MCDev
MaciejCzyzewski has joined #ruby
dangerousdave has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
skolman_ has quit [Ping timeout: 245 seconds]
Advocation has quit [Quit: Advocation]
Darryl has joined #ruby
_maes_ has joined #ruby
alem0lars has joined #ruby
zorak8 has joined #ruby
alem0lars has quit [Client Quit]
CaptainHeavy has joined #ruby
d2dchat has joined #ruby
xcv has joined #ruby
koalallama is now known as ctrlrsf
tkuchiki has quit [Remote host closed the connection]
tjr9898 has joined #ruby
<CaptainHeavy> Hi everyone, I'm attempting to set the result of a random number generation to a variable by doing the following: a = rand(0...100) however, when I use "a" it always has a different value. I'm guessing this is because, instead of the result of the rand function being stored in "a", the actual function i.e. rand(0...100) is instead. Thus, whenever "a" is called, "a" is set to a new number between 0 and 100. My question is how to assign the result of
joonty has quit [Quit: Leaving]
andy41122 has joined #ruby
<CaptainHeavy> If that indeed is the problem I'm having...
<apeiros> CaptainHeavy: no, a = methodcall stores the result
<apeiros> >> a = rand(0...100); puts a; puts a; puts a
<eval-in_> apeiros => 61 ... (https://eval.in/199982)
<apeiros> ^ check the link
<CaptainHeavy> apeiros: does jruby handle assignment differently?
<apeiros> CaptainHeavy: of course not.
<apeiros> that'd be a quite serious bug
kil0byte has quit [Remote host closed the connection]
<havenwood> CaptainHeavy: show the code?
<CaptainHeavy> sure thing, let me just create a gist...
gaussblurinc1 has quit [Quit: Leaving.]
TripTastic has left #ruby ["Leaving"]
aspires has quit []
zorak8 has quit [Remote host closed the connection]
* Hanmac is playing the small drums to increase the curiosity ;P
freerobby has quit [Quit: Leaving.]
skolman has joined #ruby
AFKGeek has quit [Quit: Leaving]
freerobby has joined #ruby
ctrlrsf has quit [Read error: Connection reset by peer]
<canton7> nothing weird in the stuff you pasted regarding domainTime... what makes you think it's changing?
<CaptainHeavy> its lines 51 and 52 that are problematic
mesamoo has joined #ruby
aspires has joined #ruby
<CaptainHeavy> Those "assert_equal" calls are to a testing framework and line 52 always errors i.e. "expectedMindsEyeTerminusTime" and "model.getMindsEyeTerminus(domainTime)" aren't equal
SilkFox_ has joined #ruby
<CaptainHeavy> now, the "mindsEyeLifespan" that is added to "domainTime" to get "expectedMindsEyeTerminusTime" on line 51 is a constant value, its only the value of "domainTime" that changes
<canton7> without seeing the source of getMindsEyeTerminus or indeed where mindsEyeLifespan comes from, we can't say anything
<canton7> also, camelCase is distinctly non-ruby :P
enodata has quit [Quit: quit]
oponder has quit []
<CaptainHeavy> However, the difference between "domainTime" and "mindsEyeLifespan" should be constant but it isn't
<CaptainHeavy> (since "mindsEyeLifespan" is always set to 100)
<canton7> I can only assume that model.getMindsEyeTerminus is broken
<apeiros> since domainTime does not change, I think your test revealed that mindsEyeLifespan is in fact not constant :)
arup_r has joined #ruby
<apeiros> or that one of the getters/setters is broken
axl_ has left #ruby [#ruby]
<CaptainHeavy> ah, apologies about the camel-case, I'm using jRuby out of necessity, I don't normally program in it
<pagios> can i concatenate 2 hash arrays?
<CaptainHeavy> I code Java mainly!
ferr has quit [Remote host closed the connection]
<Hanmac> we are sorry for you ;P
<apeiros> pagios: there's hash, and there's array. there's no hash array. which do you mean?
<CaptainHeavy> apeiros: domainTime does change, its the mindsEyeLifespan that is constant but I see your point nonetheless :)
<apeiros> pagios: Hash#merge/merge!, Array#+/concat
GriffinHeart has quit [Remote host closed the connection]
Scripore has joined #ruby
wald0 has joined #ruby
<pagios> someething like this
axl_ has joined #ruby
mradmacher has quit [Ping timeout: 260 seconds]
<apeiros> pagios: that does not answer my question
<workmad3> dafuq?
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> pagios: there are no arrays or hashes there?
<apeiros> pagios: also - YAML.load_file('/some/file.yml')
abdulsattar has joined #ruby
rippa has joined #ruby
<havenwood> pagios: `File.open` doesn't work as it seems you expect
mastr_bennett[x] has joined #ruby
<CaptainHeavy> Thanks for taking the time to have a look any way! I think I need some sleep and then try again tomorrow...
dangerousdave has joined #ruby
<pagios> i am able to get the parsed text, want to merge it and to_json it
jbueza has joined #ruby
<havenwood> so you want to take two yaml files, not read them, then parse them as json.
<havenwood> got it.
ctrlrsf has joined #ruby
<pagios> yes
CaptainHeavy has quit [Remote host closed the connection]
<workmad3> pagios: why did you just agree to a non-sensical process? :/
<pagios> ?
<pagios> the parsed text is returning a hash
<pagios> ["stream_username", nil]["stream_password", nil]
<pagios> etc.
fella5s has quit [Read error: Connection reset by peer]
boombada_ has joined #ruby
snath has joined #ruby
hmsimha_ has joined #ruby
gsd has joined #ruby
<havenwood> pagios: Do a bit of research on the difference between YAML.open/Yaml.load_file, File.open/File.read, YAML/JSON, Hash/Array.
<havenwood> workmad3: maybe a dadaist art project?
shredding has joined #ruby
SilkFox_ has quit [Ping timeout: 258 seconds]
SCHAAP137 has joined #ruby
yfeldblum has joined #ruby
cventeic has joined #ruby
Channel6 has joined #ruby
lolmaus has quit [Remote host closed the connection]
boombada_ has quit [Ping timeout: 250 seconds]
lolmaus has joined #ruby
naw_ has quit []
j_mcnally has joined #ruby
robustus is now known as robustus|Off
robustus|Off is now known as robustus
zorak8 has joined #ruby
Scotteh has joined #ruby
ciampix has joined #ruby
zeroNones has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
arya_ has joined #ruby
nanoyak has joined #ruby
nettoweb has joined #ruby
InhalingPixels has joined #ruby
shredding has quit [Read error: Connection reset by peer]
tessi is now known as tessi_zz
ephemerian has quit [Quit: Leaving.]
tesaf has joined #ruby
mikepack has quit [Remote host closed the connection]
<havenwood> can't we just cancel this week and skip to weekend? i blame threading.
jrhorn424 is now known as zz_jrhorn424
andy41122 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
andrewlio has joined #ruby
<Hanmac> havenwood: ha! last weekend i blamed "double free" that is even worse ;P
<apeiros> week.skip_to :end # !> ERRNO::ETEMPORALINCONSISTENCY
Inhaling_ has quit [Ping timeout: 260 seconds]
mikepack has joined #ruby
zarubin has joined #ruby
mocfive has joined #ruby
<apeiros> pagios: updating havenwood's request to do research - also throw in ruby core classes. [] is not a hash. really not.
zarubin has left #ruby [#ruby]
dc__ has joined #ruby
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Hanmac> apeiros: its like cooking a turkey ... nothing can cook a turkey, not even a time machine ,P
zeroNones has joined #ruby
Xiti` has quit [Quit: Leaving]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
cocotton has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 240 seconds]
relix has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
GinoMan has quit [Ping timeout: 272 seconds]
Tomme has joined #ruby
wallerdev has joined #ruby
cocotton has joined #ruby
kireevco has quit [Quit: Leaving.]
Xiti has joined #ruby
mocfive has quit [Ping timeout: 244 seconds]
kireevco has joined #ruby
MaciejCzyzewski has joined #ruby
<Hanmac> shevy: look what i tryed ,P https://github.com/ruby/ruby/pull/728
bricker`work has joined #ruby
j_mcnally has quit [Ping timeout: 244 seconds]
krisquigley has quit [Remote host closed the connection]
jfran has joined #ruby
spyderman4g63 has quit [Ping timeout: 272 seconds]
krisquigley has joined #ruby
kireevco has quit [Ping timeout: 246 seconds]
Sou|cutter has joined #ruby
Sou|cutter has quit [Changing host]
Sou|cutter has joined #ruby
mocfive has joined #ruby
robustus is now known as robustus|Off
ghostmoth has joined #ruby
angusigu1ss has joined #ruby
HelperW_ has quit [Quit: Computer has gone to sleep.]
HelperW_ has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
beseku has quit [Quit: Lingo - http://www.lingoirc.com]
krisquigley has quit [Ping timeout: 260 seconds]
anaeem1 has quit [Remote host closed the connection]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1_ has joined #ruby
<Hanmac> charliesome: hm i have a feature request ... maybe doing "!doc Array#join" let the bot return http://www.ruby-doc.org/core-2.1.3/Array.html#method-i-join ? like a ri ?
anaeem1_ has quit [Remote host closed the connection]
<charliesome> probably out of scope of the eval bot
<charliesome> maybe someone could do a doc bot
ryanleesipes has joined #ruby
hamakn has joined #ruby
angusigu1ss has quit [Ping timeout: 245 seconds]
thaum has quit [Quit: Leaving]
HelperW_ has quit [Ping timeout: 258 seconds]
LiohAu_ has quit [Quit: LiohAu_]
kireevco has joined #ruby
Wolland has quit [Remote host closed the connection]
Dude007 has quit [Remote host closed the connection]
kireevco has left #ruby [#ruby]
Tricon has quit [Quit: Leaving...]
mikepack has quit [Remote host closed the connection]
weems|mac has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
patrick99e99 has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
hamakn has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: zzz]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andikr has quit [Remote host closed the connection]
abdulsattar has quit [Ping timeout: 272 seconds]
thomasxie has joined #ruby
justinmburrous has joined #ruby
gsd_ has joined #ruby
gsd_ has quit [Read error: Connection reset by peer]
gsd has quit [Ping timeout: 245 seconds]
gsd_ has joined #ruby
SilkFox_ has joined #ruby
Takle has joined #ruby
banister_ has joined #ruby
Aaaal has quit [Quit: Aaaal]
banister_ has quit [Max SendQ exceeded]
fgo has joined #ruby
hooper has quit [Quit: Leaving.]
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
ore0s has joined #ruby
banister has quit [Ping timeout: 245 seconds]
jelera has joined #ruby
banister has joined #ruby
justinmburrous has quit [Ping timeout: 250 seconds]
lewix has quit [Remote host closed the connection]
ghostmoth has quit [Quit: ghostmoth]
ghostmoth has joined #ruby
ndrei has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
emrox has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 244 seconds]
skolman has quit [Remote host closed the connection]
gauke has quit [Quit: gauke]
krisquigley has joined #ruby
klmlfl has quit [Remote host closed the connection]
kaffeebohne has joined #ruby
skolman_ has joined #ruby
mikepack has joined #ruby
SilkFox_ has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Ping timeout: 245 seconds]
<kaffeebohne> Hi! I installed libv8 global (/usr/lib/) but bundler won’t recognize the gem. I configured gem to install everything global in /etc/gemrc. What am I doing wrong?
thumpba_ has joined #ruby
cocotton has quit [Remote host closed the connection]
roolo has quit [Remote host closed the connection]
thumpba_ has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
x1337807x has joined #ruby
dx7 has quit [Quit: Leaving...]
lkba has joined #ruby
thumpba_ has joined #ruby
cocotton has joined #ruby
<jhass> did you install a version that matches your Gemfile's requirement?
sepp2k has quit [Quit: Konversation terminated!]
mattmcclure has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
freerobby has joined #ruby
petitchouffe is now known as bri
gsd has joined #ruby
skolman_ has quit [Ping timeout: 250 seconds]
thumpba has quit [Ping timeout: 258 seconds]
jthomp has joined #ruby
<Hanmac> kaffeebohne: what os? is libv8 only a c lib or a binding too? how did you installed ruby and libv8?
mijicd has joined #ruby
banister has quit [Read error: Connection reset by peer]
x1337807x has quit [Client Quit]
gsd_ has quit [Ping timeout: 260 seconds]
ryanleesipes has quit [Ping timeout: 246 seconds]
threesixes has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
troyready has joined #ruby
naw_ has joined #ruby
<kaffeebohne> jhass: Yes. Hanmac: Archlinuxarm, How can I check?, via the package manager and „gem install libv8 --with-system-v8"
St_Marx has quit [Ping timeout: 264 seconds]
kil0byte has joined #ruby
<Hanmac> kaffeebohne: hm i might smell an outdated ruby version... what version is it?
skammer3 has quit [Ping timeout: 260 seconds]
j_mcnally has joined #ruby
<kaffeebohne> Hanmac: 2.1.0
<jhass> kaffeebohne: how sure are you about that? grep libv8 Gemfile.lock and gem list lib8
<jhass> *libv8
AtumT has quit [Ping timeout: 245 seconds]
terlar has quit [Quit: WeeChat 1.0.1]
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ore0s has quit [Ping timeout: 246 seconds]
<jhass> Hanmac: arch ships 2.1.3 already. not sure about arm but I expect them to follow along. kaffeebohne the 2.1.0 is just the ABI version
x1337807x has joined #ruby
<jhass> the 2.1.0 in the path that is
<kaffeebohne> which gem file.lock should I grep? :) It appears in „gem list libv8“ under local gems.
<kaffeebohne> Yeah, arm is a bit behind
<Hanmac> i jhass it could have been 1.8 and forgot to require "rubygems" ... i never touched archlinux ...
<jhass> not "gem file.lock" Gemfile.lock which should exist next to your Gemfile
<kaffeebohne> sorry, autocorrect :D
maestrojed has joined #ruby
<Hanmac> the only thing is that it might not work with arm -architecture ... bad that i dont have that architecture to test my stuff ...
<jhass> Hanmac: for arch suspect it's too new rather than too old ;)
<kaffeebohne> Hanmac: v8 is available for archlinuxarm, even precompiled.
<kaffeebohne> libv8 (~> 3.11.8.12)
ndrei has quit [Ping timeout: 245 seconds]
<kaffeebohne> means what? bigger 3.11?
freerobby has quit [Quit: Leaving.]
anaeem1 has joined #ruby
yfeldblum has joined #ruby
<jhass> it means >= 3.11.8.12 and < 3.12
<kaffeebohne> hm, ok
<centrx> with that lengthly version number it might mean < 3.11.9 ?
<Hanmac> one day in a future i will test my own gems on arm architecture too ...
jerius has quit []
alex88 has quit [Quit: Leaving...]
<jhass> oh Hanmac is right
skolman_ has joined #ruby
<jhass> for some reason I always get those wrong on the first try
<kaffeebohne> ok, I got 3.16.14.7 installed
jerius has joined #ruby
Kruppe has quit [Quit: ZNC - http://znc.in]
<jhass> yeah, that doesn't match in any case
<kaffeebohne> ok, can I give „gem install“ a version number?
thagomizer has joined #ruby
<jhass> yes, gem install libv8 -v 3.11.8.17
<kaffeebohne> damn, openproject is using some old gems for sure
<kaffeebohne> thanks!
dc__ has quit []
IceDragon has quit [Ping timeout: 260 seconds]
Fire-Dragon-DoL has joined #ruby
krisquigley has quit [Remote host closed the connection]
ursooperduper has joined #ruby
<jhass> kaffeebohne: there's an easier solution here though, bundle config build.libv8 --with-system-v8 should work too
Channel6 has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 244 seconds]
<kaffeebohne> jhass: Oh, thank you very much!
cndiv has joined #ruby
<jhass> (if I remembered the name of that option right :P)
<kaffeebohne> That should work with the v8 package installed, right? :D
<jhass> yes
<kaffeebohne> nice
<kaffeebohne> thank you very very much
boombada_ has joined #ruby
mocfive has quit [Remote host closed the connection]
<jhass> it basically tells bundler to pass the option you pass to gem install while installing the gem
Kruppe has joined #ruby
IceDragon has joined #ruby
spyderman4g63 has joined #ruby
mocfive has joined #ruby
jack_rabbit has joined #ruby
nonmadden has quit [Quit: Leaving...]
fsapo has joined #ruby
St_Marx has joined #ruby
AtumT has joined #ruby
nonmadden has joined #ruby
dx7 has joined #ruby
russt_ has joined #ruby
Crabby has left #ruby ["Textual IRC Client: www.textualapp.com"]
icarus has joined #ruby
jerius has quit []
hellangel7 has joined #ruby
nonmadden has quit [Client Quit]
<kaffeebohne> hopefully it will install now :D
tectonic has joined #ruby
nonmadden has joined #ruby
nonmadden has quit [Remote host closed the connection]
fsapo has quit [Remote host closed the connection]
nonmadden has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
yaymukund has joined #ruby
hellangel7 has joined #ruby
jobewan has quit [Ping timeout: 272 seconds]
mocfive has quit [Ping timeout: 260 seconds]
sepp2k has joined #ruby
koderok has joined #ruby
koderok has quit [Remote host closed the connection]
hellangel7 has quit [Max SendQ exceeded]
fsapo has joined #ruby
ghr has joined #ruby
lewix has joined #ruby
abdulsattar has joined #ruby
wjimenez5271 has joined #ruby
foooobear has quit [Read error: Connection reset by peer]
IceDragon has quit [Read error: Connection reset by peer]
LekeFly has joined #ruby
elaptics is now known as elaptics`away
foooobear has joined #ruby
IceDragon has joined #ruby
jobewan has joined #ruby
ryanleesipes has joined #ruby
mdw has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 260 seconds]
hellangel7 has joined #ruby
gauke has joined #ruby
charliebr73 has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
<MatthewsFace> join #networking
<MatthewsFace> err
jerius has joined #ruby
foooobear has quit [Ping timeout: 245 seconds]
SilkFox_ has joined #ruby
cocotton has quit [Remote host closed the connection]
AlexRussia has quit [Remote host closed the connection]
coderdad has quit [Remote host closed the connection]
thomasxie has quit [Ping timeout: 245 seconds]
gauke has quit [Read error: Connection reset by peer]
coderdad has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
benzrf|offline is now known as benzrf
zz_jrhorn424 is now known as jrhorn424
Takle has quit [Remote host closed the connection]
freerobby has joined #ruby
AlexRussia has joined #ruby
Mattias has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
niklasb has joined #ruby
fmcgeough has joined #ruby
tylersmith has joined #ruby
Mattias has joined #ruby
xcv has quit [Remote host closed the connection]
qba73 has quit []
cocotton has joined #ruby
cocotton has quit [Read error: Connection reset by peer]
cocotton has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
graft has joined #ruby
flowerha_ has joined #ruby
angusigu1ss has joined #ruby
mrsolo has joined #ruby
havenwood has quit [Remote host closed the connection]
sargas has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilkFox_ has quit [Ping timeout: 240 seconds]
rubie has joined #ruby
tjr9898 has quit [Remote host closed the connection]
AlSquire has quit [Quit: This computer has gone to sleep]
Aaaal has joined #ruby
gsd has joined #ruby
lewix has quit [Remote host closed the connection]
nanoyak has joined #ruby
MasterPiece has quit [Quit: Leaving]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
niklasb has quit [Ping timeout: 245 seconds]
benzrf is now known as benzrf|offline
freerobby has quit [Quit: Leaving.]
x1337807x has joined #ruby
angusigu1ss has quit [Ping timeout: 272 seconds]
tjr9898_ has joined #ruby
hooper has joined #ruby
krisquigley has joined #ruby
mkaesz has joined #ruby
TheNumb has quit [Quit: ZNC - http://znc.in]
mityaz has quit [Quit: Leaving]
fgo has joined #ruby
TheNumb has joined #ruby
kmh|2 has joined #ruby
charliebr73 has quit [Quit: Leaving]
justinmburrous has joined #ruby
freerobby has joined #ruby
Hightower666 has joined #ruby
Sawbones has joined #ruby
krisquigley has quit [Ping timeout: 246 seconds]
tanath has joined #ruby
slyslick has quit [Ping timeout: 272 seconds]
fgo has quit [Ping timeout: 245 seconds]
ta has joined #ruby
emmesswhy has joined #ruby
spider-mario has joined #ruby
krisquigley has joined #ruby
natewalck has joined #ruby
justinmburrous has quit [Ping timeout: 250 seconds]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
WormDrink has quit [Ping timeout: 260 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
JeffBonds has quit [Ping timeout: 240 seconds]
lw has joined #ruby
Wolland has joined #ruby
LekeFly has quit [Quit: Textual IRC Client: www.textualapp.com]
Tricon has joined #ruby
Wolland_ has joined #ruby
Scotteh has quit [Ping timeout: 272 seconds]
Wolland has quit [Disconnected by services]
noop has joined #ruby
Wolland_ is now known as Wolland
icebourg has quit []
ramfjord has joined #ruby
mclosson has joined #ruby
cndiv has quit [Ping timeout: 244 seconds]
reset has joined #ruby
Morkel has quit [Quit: Morkel]
mocfive has joined #ruby
icebourg has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
klmlfl has joined #ruby
spastorino has joined #ruby
cndiv has joined #ruby
djcp has joined #ruby
niklasb has joined #ruby
<kaffeebohne> ok, so when I try to install therubyracer 0.11.4 I get this. :( https://paste.xinu.at/h1Bnx/ Any ideas (I know that this is not a support channel for the project, but maybe someone can help me anyway)? Looks like an error with v8?
ctp has joined #ruby
djcp has quit [Client Quit]
einarj has quit [Remote host closed the connection]
wallerdev has joined #ruby
ctp has quit [Read error: Connection reset by peer]
djcp has joined #ruby
ctp has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
lw has quit [Quit: s]
HelperW_ has joined #ruby
reset has quit [Ping timeout: 260 seconds]
icebourg has quit [Ping timeout: 258 seconds]
chrishough has joined #ruby
yaymukund has quit [Ping timeout: 272 seconds]
badhatter has quit [Quit: Leaving]
iamcyberbird has quit [Ping timeout: 260 seconds]
fgo has joined #ruby
lw has joined #ruby
lw has quit [Client Quit]
kmh|2 has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
djcp has quit [Client Quit]
elstif has joined #ruby
djcp has joined #ruby
djcp has quit [Client Quit]
yfeldblum has joined #ruby
djcp has joined #ruby
<centrx> kaffeebohne, What is that?
robustus|Off is now known as robustus
<centrx> kaffeebohne, You're compiling a cc file through a ruby script?
mikeg has joined #ruby
fumk has quit [Quit: changing servers]
mikecmpbll has joined #ruby
Hobogrammer has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
<miah> lol
<kaffeebohne> centrx: gem install therubyracer -v '0.11.4'
<miah> '
<miah> Embed the V8 Javascript Interpreter into Ruby
<kaffeebohne> yeah
* miah walks aways slowly in hopes that javascript doesnt notice her
<kaffeebohne> but I found nothing that comes close to openproject :(
djcp has quit [Client Quit]
x1337807x has quit [Ping timeout: 258 seconds]
fgo has quit [Ping timeout: 272 seconds]
djcp has joined #ruby
TieSoul has quit [Excess Flood]
TieSoul has joined #ruby
<kaffeebohne> Right now I am using mantis … but I would love to use open project on my pi. :/
Hightower666 has quit [Quit: If at first you don't succeed, skydiving is not for you.]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
fumk has joined #ruby
x1337807x has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
Hightower666 has joined #ruby
jottr has joined #ruby
arya_ has quit []
SilkFox_ has joined #ruby
nanoyak has joined #ruby
carraroj has joined #ruby
jay has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
miah has quit [Ping timeout: 240 seconds]
jay is now known as rubyonrailed
miah has joined #ruby
icebourg has joined #ruby
Aaaal has quit [Quit: Aaaal]
semw has joined #ruby
bloudermilk has joined #ruby
dopie has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 250 seconds]
JeffBonds has joined #ruby
arup_r has quit [Ping timeout: 260 seconds]
androidbruce has joined #ruby
mastr_bennett[x] has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cstrahan has joined #ruby
miah has quit [Ping timeout: 260 seconds]
Tricon has quit [Quit: Leaving...]
<androidbruce> hey there guys/gals. with chef when we converge there is a gem upgrade that happens everytime. does anyone have ideas of caching that, or maybe using some sort of only_if statement to speed that up?
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ptrrr has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
mleone has joined #ruby
mikeg has quit [Ping timeout: 245 seconds]
anaeem1 has quit [Remote host closed the connection]
mijicd has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
nanoyak has quit [Read error: Connection reset by peer]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has joined #ruby
Kricir has quit [Remote host closed the connection]
spyderman4g63 has quit [Remote host closed the connection]
mleone has quit [Client Quit]
krz has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
Kricir has joined #ruby
ghr has joined #ruby
jelera has quit [Ping timeout: 272 seconds]
spyderma_ has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
bigkevmcd has quit [Quit: This computer has gone to sleep]
miah has joined #ruby
lsmola has quit [Ping timeout: 245 seconds]
anaeem1_ has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
adrenaline_ has joined #ruby
jobewan has quit [Quit: Leaving]
ghr has quit [Ping timeout: 272 seconds]
robustus is now known as robustus|Off
troyready has quit [Quit: Leaving]
benzrf|offline is now known as benzrf
ta has quit [Quit: Leaving...]
anaeem1_ has quit [Ping timeout: 260 seconds]
shosti has joined #ruby
sigurding has joined #ruby
pipework has joined #ruby
jobewan has joined #ruby
yaymukund has joined #ruby
jottr has joined #ruby
dANO has quit []
ta has joined #ruby
tjbiddle has joined #ruby
tjbiddle has quit [Client Quit]
krisquigley has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 245 seconds]
mikepack has quit [Remote host closed the connection]
jonmorehouse has joined #ruby
Kricir has joined #ruby
tjbiddle has joined #ruby
havenwood has joined #ruby
IceDragon has joined #ruby
torspark has left #ruby ["Leaving"]
centrx has joined #ruby
benzrf is now known as benzrf|offline
angusigu1ss has joined #ruby
sigurding has quit [Ping timeout: 272 seconds]
x1337807x has quit [Ping timeout: 272 seconds]
yaymukund has quit [Ping timeout: 246 seconds]
b00stfr3ak has joined #ruby
x1337807x has joined #ruby
bluOxigen has joined #ruby
sigurding has joined #ruby
fgo has joined #ruby
Tricon has joined #ruby
angusigu1ss has quit [Ping timeout: 244 seconds]
carraroj has quit [Ping timeout: 244 seconds]
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
claymore has quit [Quit: Leaving]
Hightower666 has quit [Ping timeout: 258 seconds]
jrhorn424 is now known as zz_jrhorn424
benzrf|offline is now known as benzrf
gsd has quit [Ping timeout: 272 seconds]
Jarboe has joined #ruby
yetanotherdave has joined #ruby
elstif has quit [Quit: Leaving.]
fgo has quit [Read error: No route to host]
fgo has joined #ruby
justinmburrous has joined #ruby
ndrei has joined #ruby
Scotteh has joined #ruby
abdulsattar has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
x1337807x has quit [Ping timeout: 260 seconds]
flowerha_ is now known as flowerhack_
gsd has joined #ruby
Advocation has joined #ruby
jerius has quit []
SilkFox_ has joined #ruby
<wjimenez5271> hello, I'm trying to write to the stdin of a bash command, similar to piping commands together in bash. Can I use IO.popen to do that?
nonmadden has quit [Quit: Leaving...]
fgo has quit [Ping timeout: 272 seconds]
<wjimenez5271> so from the bash perspective I'm trying to achieve " echo "xyz" | /bin/command --someflags strings --someflag string "
justinmburrous has quit [Ping timeout: 260 seconds]
jerius has joined #ruby
chipotle has joined #ruby
mark_locklear has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
jthomp has quit [Ping timeout: 272 seconds]
x1337807x has joined #ruby
Skyler has joined #ruby
<wallerdev> yeah use popen3
chipotle has quit [Client Quit]
agjacome has quit [Quit: leaving]
Advocation has quit [Ping timeout: 255 seconds]
bricker`1ork has joined #ruby
jthomp has joined #ruby
reset has joined #ruby
<wjimenez5271> wallerdev: so thats different than IO.popen?
SegFaultAX has quit [Ping timeout: 260 seconds]
<wallerdev> lets you write/read to stdout, stderr, stdin seperately
tjr9898_ has quit [Remote host closed the connection]
bricker`work has quit [Ping timeout: 260 seconds]
tjbiddle has quit [Quit: tjbiddle]
yfeldblum has joined #ruby
<wjimenez5271> wallerdev: OK cool
<wjimenez5271> wallerdev: thanks
dumdedum has quit [Ping timeout: 258 seconds]
Tricon has quit [Quit: Leaving...]
<wjimenez5271> wallerdev: works well with 1.8.7?
kamil1 has joined #ruby
robustus|Off is now known as robustus
<wallerdev> yes
<wallerdev> but why are you on 1.8.7 lol
zz_jrhorn424 is now known as jrhorn424
<pipework> oh dear
SilkFox_ has quit [Ping timeout: 250 seconds]
<wjimenez5271> wallerdev: users I support :-(
<wjimenez5271> hopefully not for long
<wallerdev> no excuse
<havenwood> echo "oh bother" | ruby -pe "gsub 'o', 'ro'" #=> roh brother
<pipework> wjimenez5271: Users you should sacrifice to your god.
<wallerdev> upgrade their ruby when theyre not looking
jrhorn424 is now known as zz_jrhorn424
<havenwood> uh, no it was always 2.1.3, i don't know what you're talking about...
<wjimenez5271> heh
<wallerdev> but yeah i used popen3 back in 1.8.6 so should be fine
tjr9898 has joined #ruby
kamil1 has quit [Client Quit]
robustus is now known as robustus|Off
chipotle has joined #ruby
Kricir has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 272 seconds]
Kricir has joined #ruby
kireevco has joined #ruby
aspires has quit []
Tricon has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
weems|mac has joined #ruby
weems|mac has joined #ruby
aspires has joined #ruby
mikepack has joined #ruby
dangerousdave has joined #ruby
shackleford has left #ruby [#ruby]
goodenough has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
troyready has joined #ruby
jhc76 has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 272 seconds]
kireevco has quit [Ping timeout: 244 seconds]
cventeic has quit [Ping timeout: 245 seconds]
anaeem1 has joined #ruby
aspires has quit [Client Quit]
aspires has joined #ruby
MaciejCzyzewski has joined #ruby
tessi_zz is now known as tessi
tjbiddle has joined #ruby
mikeg has joined #ruby
mastr_bennett[x] has joined #ruby
<benzrf> oh bother
maniacal_ has joined #ruby
dangerousdave has quit [Ping timeout: 260 seconds]
krisquigley has joined #ruby
sigurding has quit [Read error: Connection reset by peer]
anaeem1 has quit [Ping timeout: 260 seconds]
jontmorehouse has joined #ruby
JoshGlzBrk has joined #ruby
sinkensabe has quit [Remote host closed the connection]
jonmorehouse has quit [Ping timeout: 272 seconds]
Kricir has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<wjimenez5271> wallerdev: does this look like a good implementation to write to stdin?
<wjimenez5271> Open3.popen3("./MyProgram") do |i, o, e, t|
<wjimenez5271> i.write "Hello World!"
<wjimenez5271> i.close
<wjimenez5271> puts o.read
<wjimenez5271> end
<wallerdev> i dont know? whatever works for you haha, not much to judge on that
mikeg has quit [Ping timeout: 244 seconds]
kil0byte has quit [Remote host closed the connection]
<yxhuvud> wjimenez5271: You are probably ok with that, but I have had a few situations where I filled the buffer and had to do partial reads.
kil0byte has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
robustus|Off has quit [Ping timeout: 250 seconds]
nanoyak has joined #ruby
<wjimenez5271> yxhuvud: ah good point. I would assume I wouldn't fill the buffer, like 50 characters at most. How would I know the exact buffer size?
<yxhuvud> a lot more than that :)
fgo has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
sigurding has joined #ruby
klmlfl has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
GinoMan has joined #ruby
ghr has joined #ruby
b00stfr3ak has quit [Ping timeout: 272 seconds]
robustus has joined #ruby
<_lucid_> Is there a way to fix race conditions with celluloid without sacrificing speed?
b00stfr3ak has joined #ruby
klmlfl has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
nifty___ has joined #ruby
bricker`1ork has quit [Ping timeout: 245 seconds]
spyderma_ has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
lolmaus has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 250 seconds]
mieko has quit [Ping timeout: 272 seconds]
lolmaus has joined #ruby
<eam> wjimenez5271: 4k
nanoyak has quit [Quit: Computer has gone to sleep.]
<havenwood> _lucid_: what are you currently using?
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
abdulsattar has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
x1337807x has quit [Ping timeout: 272 seconds]
modernbob has joined #ruby
modernbob has joined #ruby
icarus has quit [Ping timeout: 260 seconds]
<_lucid_> I added a mutex.syncrhonize
<_lucid_> Which fixed it, but drastically slowed down the script(its a network based script)
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
spyderma_ has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
SilkFox_ has joined #ruby
krisquig_ has joined #ruby
<_lucid_> The script scans up to 5000 hosts and tells me if they are connectable
ramfjord has joined #ruby
coderdad_ has joined #ruby
mkaesz has quit [Read error: Connection reset by peer]
mskaesz has joined #ruby
<_lucid_> But as of right now the most it'll do is 1020, and if I add a mutex it does the correct amount, but it makes it slow enough to not be worth it
robustus is now known as robustus|Off
coderdad has quit [Ping timeout: 246 seconds]
abdulsattar has quit [Ping timeout: 250 seconds]
<toretore> _lucid_: define slow, relative to without the mutex
<_lucid_> 5000 hosts takes roughly 10 to 20 seconds
<_lucid_> vs with the mutex where it takes more like 5000 seconds
<toretore> what is the race condition?
jthomp has quit [Ping timeout: 250 seconds]
<_lucid_> Well when I run it without the mutex it takes only 10 to 20 seconds, but it doesn't actually scan all 5000 hosts
<_lucid_> It barely gets past 1020
<toretore> gonna have to see the code
<_lucid_> Ok
<_lucid_> Hold on
jheg has joined #ruby
yliu has quit [Ping timeout: 272 seconds]
angusigu1ss has joined #ruby
<_lucid_> That's the relevant part(there's a lot of code)
kobain has joined #ruby
<toretore> everything is relevant
<_lucid_> Ok
<_lucid_> Hold on then
thane75 has quit [Quit: thane75]
klmlfl has quit [Read error: Connection reset by peer]
Baluse has joined #ruby
jthomp has joined #ruby
<toretore> you are making a thread for each host?
agjacome has joined #ruby
klmlfl has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
<_lucid_> Yes
kireevco has joined #ruby
kireevco has quit [Client Quit]
kobain has quit [Max SendQ exceeded]
threesixes has joined #ruby
kobain has joined #ruby
<toretore> you should make n threads and distribute the workload
HelperW_ has quit [Quit: Computer has gone to sleep.]
kobain has quit [Max SendQ exceeded]
HelperW_ has joined #ruby
Dude007 has joined #ruby
AlexRussia has quit [Ping timeout: 272 seconds]
kobain has joined #ruby
Scripore has quit []
<_lucid_> If you want to look
noop has quit [Ping timeout: 272 seconds]
angusigu1ss has quit [Ping timeout: 250 seconds]
<_lucid_> So you are saying make like 10 threads that scan 500 hosts each or something?
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
govg has quit [Ping timeout: 240 seconds]
<toretore> yes
spicerack has joined #ruby
maniacal_ has quit [Remote host closed the connection]
mofai has quit []
SilkFox_ has quit [Ping timeout: 260 seconds]
<_lucid_> Ok
jrhe_ has quit [Quit: Connection closed for inactivity]
<havenwood> _lucid_: known as a thread pool
<havenwood> _lucid_: or yeah, use Celluloid :)
<havenwood> _lucid_: can only have so many threads before you hit limits
cocotton has quit [Remote host closed the connection]
HelperW_ has quit [Ping timeout: 272 seconds]
bigkevmcd has joined #ruby
justinmburrous has joined #ruby
relix has joined #ruby
<_lucid_> Wait
fgo has joined #ruby
<_lucid_> Use thread pooling *or* celluloid?
<havenwood> Celluloid has its own thread pooling.
tkuchiki has joined #ruby
bascht has quit [Ping timeout: 246 seconds]
jerius has quit []
JeffBonds has left #ruby [#ruby]
<_lucid_> Ok thank you :D
<havenwood> _lucid_: here's Puma's thread pool for example: https://github.com/puma/puma/blob/master/lib/puma/thread_pool.rb
bigkevmcd_ has joined #ruby
<toretore> _lucid_: ^
<havenwood> simple is good ;)
<toretore> yes
jerius has joined #ruby
justinmburrous has quit [Ping timeout: 260 seconds]
HelperW_ has joined #ruby
alvaro_o has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
bigkevmcd has quit [Ping timeout: 272 seconds]
mleone has joined #ruby
Deejay_ has joined #ruby
<_lucid_> Awesome, thanks for all the help.
tectonic has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thebigman has joined #ruby
thane75 has joined #ruby
bigkevmcd_ has quit [Ping timeout: 272 seconds]
ndrei has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Remote host closed the connection]
manzo has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
chrishough has quit [Ping timeout: 240 seconds]
chrishough has joined #ruby
cocotton has joined #ruby
failshel_ has joined #ruby
cocotton has quit [Remote host closed the connection]
tiguser has quit [Ping timeout: 245 seconds]
krisquigley has quit [Remote host closed the connection]
tiguser has joined #ruby
jontmorehouse has quit [Ping timeout: 260 seconds]
failshe__ has joined #ruby
failshel_ has quit [Read error: Connection reset by peer]
failshell has quit [Ping timeout: 240 seconds]
krisquigley has joined #ruby
coderdad has joined #ruby
sarkyniin has joined #ruby
Tricon has quit [Quit: Leaving...]
Phrogz_ has joined #ruby
Phrogz_ is now known as Phrogz
cocotton has joined #ruby
Tricon has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
b00stfr3ak has quit [Ping timeout: 245 seconds]
krisquigley has quit [Ping timeout: 250 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
chrishou_ has joined #ruby
Kricir has quit [Remote host closed the connection]
tomgavin has joined #ruby
thebigman has quit [Quit: This computer has gone to sleep]
b00stfr3ak has joined #ruby
Kricir has joined #ruby
jelera has joined #ruby
Hightower666 has joined #ruby
mkaesz has joined #ruby
<shevy> Hanmac all those things distract from rxw!
sinkensabe has joined #ruby
ciampix has quit [Ping timeout: 258 seconds]
chrishough has quit [*.net *.split]
manzo has quit [*.net *.split]
krisquig_ has quit [*.net *.split]
mskaesz has quit [*.net *.split]
coderdad_ has quit [*.net *.split]
Baluse has quit [*.net *.split]
modernbob has quit [*.net *.split]
mark_locklear has quit [*.net *.split]
manacit has quit [*.net *.split]
MaciejCzyzewski has joined #ruby
Baluse has joined #ruby
sarkyniin has left #ruby ["Quitte"]
ciampix has joined #ruby
<Hanmac> shevy: hey! i did maked commits for rwx last weekend ... and today i try again to add more functions ...
tjbiddle has quit [Quit: tjbiddle]
kil0byte has quit [Remote host closed the connection]
mastr_bennett[x] has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
aspires has quit []
<shevy> what is TypedData btw
<shevy> I never read that before
Kricir has quit [Ping timeout: 272 seconds]
bricker`work has joined #ruby
omosoj has joined #ruby
wallerdev has quit [Quit: wallerdev]
mradmacher has joined #ruby
Kricir has joined #ruby
cocotton has quit [Remote host closed the connection]
aspires has joined #ruby
SilkFox_ has joined #ruby
gilest has joined #ruby
manzo has joined #ruby
wallerdev has joined #ruby
reisl has joined #ruby
mark_locklear has joined #ruby
jthomp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
threesixes has quit [Quit: SATAN!!!!!!!!]
gregf has joined #ruby
<sparr> is there a different channel for rails questions?
reisl has quit [Client Quit]
<havenwood> sparr: #rubyonrails
cbetta has joined #ruby
elstif has joined #ruby
sigurding has quit [Quit: sigurding]
<sparr> thanks
hiyosi has quit [Ping timeout: 245 seconds]
nanoyak has joined #ruby
emmesswhy has joined #ruby
spyderma_ has quit [Read error: Connection reset by peer]
spyderman4g63 has joined #ruby
banister has joined #ruby
banister has quit [Client Quit]
abdulsattar has joined #ruby
buub has joined #ruby
Kricir has quit [Remote host closed the connection]
computerex has joined #ruby
ghr has joined #ruby
aclearman037 has quit []
Mohd_ has quit [Read error: Connection reset by peer]
jeremy04 has joined #ruby
SilkFox_ has quit [Ping timeout: 272 seconds]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
ghr has quit [Ping timeout: 246 seconds]
tectonic has joined #ruby
icarus has joined #ruby
rezzack has joined #ruby
chrishou_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
goodenough has joined #ruby
mikeg has joined #ruby
claymore has joined #ruby
abdulsattar has quit [Ping timeout: 260 seconds]
jeremy04 has quit [Remote host closed the connection]
oleo is now known as Guest11612
oleo__ has joined #ruby
ndrei has joined #ruby
gilest has quit [Remote host closed the connection]
failshe__ has quit []
mradmacher has quit [Quit: leaving]
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cya]
gilest has joined #ruby
yfeldblum has joined #ruby
modernbob has joined #ruby
modernbob has joined #ruby
manacit has joined #ruby
elstif has quit [Quit: Leaving.]
Guest11612 has quit [Ping timeout: 272 seconds]
manacit has quit [Changing host]
manacit has joined #ruby
hamakn has joined #ruby
decoponio has quit [Quit: Leaving...]
angusiguess has joined #ruby
cpruitt has quit [Quit: cpruitt]
cpruitt has joined #ruby
b00stfr3ak has quit [Ping timeout: 245 seconds]
kadoppe has quit [Ping timeout: 260 seconds]
michaeldeol has joined #ruby
chrishough has joined #ruby
mark_locklear has quit [Ping timeout: 246 seconds]
HelperW_ has quit [Quit: Computer has gone to sleep.]
hamakn has quit [Ping timeout: 260 seconds]
yalue has quit [Quit: Leaving]
sinkensabe has joined #ruby
HelperW_ has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
ghostmoth has joined #ruby
HelperW_ has quit [Read error: Connection reset by peer]
HelperW_ has joined #ruby
gilest has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
endash has quit [Quit: endash]
gilest has joined #ruby
jelera has quit [Ping timeout: 272 seconds]
HelperW_ has quit [Read error: Connection reset by peer]
HelperW_ has joined #ruby
x1337807x has joined #ruby
benzrf|offline is now known as benzrf
papal has joined #ruby
justinmburrous has joined #ruby
fgo has joined #ruby
cina has joined #ruby
buub has quit [Ping timeout: 260 seconds]
Parker0 has joined #ruby
smcstewart has joined #ruby
HelperW_ has quit [Ping timeout: 250 seconds]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
mkaesz has quit [Remote host closed the connection]
Advocation has joined #ruby
justinmburrous has quit [Ping timeout: 245 seconds]
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
fgo has quit [Ping timeout: 250 seconds]
goodenough has quit [Remote host closed the connection]
bascht has joined #ruby
HelperW_ has joined #ruby
banister has joined #ruby
jfran has quit [Remote host closed the connection]
banister has quit [Client Quit]
govg has joined #ruby
angusiguess has joined #ruby
govg has quit [Client Quit]
HelperW_ has quit [Read error: Connection reset by peer]
duggiefresh has quit []
HelperW_ has joined #ruby
govg has joined #ruby
Advocation has quit [Ping timeout: 260 seconds]
ldnunes has quit [Quit: Leaving]
SilkFox_ has joined #ruby
ivmx has left #ruby [#ruby]
ndrei has quit [Ping timeout: 244 seconds]
ptrrr has quit [Quit: ptrrr]
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
smcstewart has quit [Quit: Linkinus - http://linkinus.com]
smcstewart has joined #ruby
mikepack has quit [Remote host closed the connection]
Ankhers has quit [Remote host closed the connection]
<Phrogz> Anyone come out to my lovely town of Boulder, CO for Rocky Mountain Ruby 2014?
Ankhers has joined #ruby
ItSANgo has quit [Quit: Leaving...]
hiyosi has joined #ruby
mikepack has joined #ruby
b00stfr3ak has joined #ruby
goodenough has joined #ruby
mary5030 has quit [Remote host closed the connection]
cina has quit [Quit: leaving]
govg has quit [Ping timeout: 260 seconds]
codecop has quit [Remote host closed the connection]
KLVTZ has joined #ruby
govg has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
icarus has quit [Remote host closed the connection]
d2dchat has quit [Remote host closed the connection]
mastr_bennett[x] has joined #ruby
supersym has joined #ruby
elstif has joined #ruby
wallerdev has joined #ruby
ldnunes has joined #ruby
krisquigley has joined #ruby
wjimenez_ has joined #ruby
cndiv has quit [Ping timeout: 272 seconds]
SilkFox_ has quit [Ping timeout: 244 seconds]
kadoppe has joined #ruby
Aaaal has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
smcstewart has quit [Quit: Linkinus - http://linkinus.com]
yfeldblum has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 272 seconds]
smcstewart has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
wjimenez5271 has quit [Ping timeout: 272 seconds]
wjimenez_ has quit [Ping timeout: 244 seconds]
paulfm has quit []
yfeldblum has joined #ruby
tesaf has quit [Quit: Lost terminal]
cocotton has joined #ruby
bmurt has quit []
ciampix has quit [Ping timeout: 240 seconds]
aspires has quit []
JBreit has joined #ruby
smcstewart has quit [Quit: Linkinus - http://linkinus.com]
ghr has joined #ruby
smcstewart has joined #ruby
zeroNones has quit [Quit: Textual IRC Client: www.textualapp.com]
mastr_bennett[x] has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
spider-mario has quit [Remote host closed the connection]
govg has quit [Ping timeout: 272 seconds]
fsapo has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
aspires has joined #ruby
benzrf is now known as benzrf|offline
MCDev has quit [Read error: Connection reset by peer]
zeroNones has joined #ruby
djcp has quit [Quit: WeeChat 1.0]
cocotton has quit [Remote host closed the connection]
govg has joined #ruby
cocotton has joined #ruby
MCDev has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
<last_staff> nite y'all
mijicd has joined #ruby
aspires has quit [Client Quit]
last_staff has quit [Quit: last_staff]
aspires has joined #ruby
smcstewart has quit [Quit: Linkinus - http://linkinus.com]
gilest has quit [Remote host closed the connection]
cocotton has quit [Ping timeout: 244 seconds]
Wolland has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 272 seconds]
flowerhack_ has quit [Remote host closed the connection]
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claymore has quit [Quit: Leaving]
postmodern has joined #ruby
gilest has joined #ruby
tvw has joined #ruby
govg has quit [Ping timeout: 260 seconds]
manzo has quit [Ping timeout: 260 seconds]
SegFaultAX has joined #ruby
gilest has quit [Remote host closed the connection]
govg has joined #ruby
freerobby1 has quit [Quit: Leaving.]
ldnunes has quit [Quit: Leaving]
gilest has joined #ruby
codezomb has joined #ruby
Skyler has quit [Ping timeout: 244 seconds]
<codezomb> is there a way to find where a class is being loaded?
<codezomb> I suspect a gem keeps loading some uneeded classes, and short of removing them one by one, I cannot figure out how to tell which one is doing it.
axsuul has joined #ruby
axsuul has quit [Excess Flood]
gilest has quit [Remote host closed the connection]
Ankhers has quit [Ping timeout: 264 seconds]
coderdad has quit [Remote host closed the connection]
coderdad has joined #ruby
zegerjan has quit [Remote host closed the connection]
gilest has joined #ruby
<hooper> codezomb: and some pry breakpoints, perhaps?
Takle has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
<hooper> ah, nm. you don't know which gem is doing it
kirun has quit [Quit: Client exiting]
<codezomb> heh, yeah :/
gvenkat has quit [Quit: This computer has gone to sleep]
Aaaal has quit [Read error: Connection reset by peer]
Skyler has joined #ruby
<codezomb> ActiveSupport gave me what I needed
<codezomb> ActiveSupport.on_load(:active_record)
<codezomb> turns out rspec-rails is doing it :
Hightower666 has quit [Ping timeout: 246 seconds]
beneggett has joined #ruby
threesixes has joined #ruby
flowerhack has joined #ruby
Kricir has joined #ruby
wjimenez5271 has joined #ruby
skolman_ has quit [Remote host closed the connection]
fgo has joined #ruby
skolman has joined #ruby
SilkFox_ has joined #ruby
justinmburrous has joined #ruby
Takle has quit [Remote host closed the connection]
lewix has joined #ruby
jheg has quit [Quit: jheg]
skolman has quit [Remote host closed the connection]
skolman has joined #ruby
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
ndrei has joined #ruby
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
fgo has quit [Ping timeout: 245 seconds]
justinmburrous has quit [Ping timeout: 250 seconds]
gilest has quit [Remote host closed the connection]
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
AndroUser465 has joined #ruby
gilest has joined #ruby
nettoweb has joined #ruby
JeffBonds has joined #ruby
x1337807x has joined #ruby
nettoweb has quit [Max SendQ exceeded]
pmarreck has joined #ruby
klmlfl has quit [Remote host closed the connection]
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
benzrf|offline is now known as benzrf
nettoweb has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
nettoweb has quit [Max SendQ exceeded]
Takle has joined #ruby
nettoweb has joined #ruby
omosoj has quit [Ping timeout: 272 seconds]
slester has quit [Quit: slester]
SilkFox_ has quit [Ping timeout: 272 seconds]
synergyz_ has joined #ruby
tylersmith has quit [Remote host closed the connection]
therue has quit []
gilest has quit [Remote host closed the connection]
Deejay_ has quit [Quit: Computer has gone to sleep.]
sepp2k has quit [Read error: Connection reset by peer]
gilest has joined #ruby
Seich has quit [Ping timeout: 260 seconds]
synergyz has quit [Ping timeout: 245 seconds]
x1337807x has quit [Read error: Connection reset by peer]
jackjackdrpr has joined #ruby
Seich has joined #ruby
tessi is now known as tessi_zz
antlong has quit [Quit: Textual IRC Client: www.textualapp.com]
toretore has quit [Quit: This computer has gone to sleep]
d2dchat has joined #ruby
livingstn has quit []
GinoMan has quit [Remote host closed the connection]
jthomp has joined #ruby
hiyosi has joined #ruby
freerobby has joined #ruby
Inhaling_ has joined #ruby
cndiv has joined #ruby
klmlfl has joined #ruby
yakko has joined #ruby
yakko is now known as thejamespinto
d2dchat has quit [Remote host closed the connection]
enodata has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
InhalingPixels has quit [Ping timeout: 258 seconds]
gregf has quit [Quit: WeeChat 1.0]
Xeago has quit [Remote host closed the connection]
Sawbones has quit []
melik has joined #ruby
malcolmva has quit [Quit: Leaving]
malcolmva has joined #ruby
Channel6 has joined #ruby
algoqaeda has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<algoqaeda> I know the basics of ruby,how do i get hold of advanced stuff?
coderhs has quit [Read error: Connection reset by peer]
ryanleesipes has quit [Remote host closed the connection]
coderhs has joined #ruby
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mocfive has quit [Remote host closed the connection]
enodata has quit [Quit: quit]
thejamespinto has quit [Read error: Connection reset by peer]
mocfive has joined #ruby
thejamespinto has joined #ruby
jontmorehouse has joined #ruby
mikeg has quit [Remote host closed the connection]
tjr9898 has joined #ruby
tectonic has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Sou|cutter> algoqaeda: by doing it I suppose
weems|mac has quit [Quit: bai]
ghr has joined #ruby
semw has quit [Quit: Ex-Chat]
jerius has quit []
mikecmpbll has quit [Quit: i've nodded off.]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jsaak has quit [Ping timeout: 260 seconds]
jottr has quit [Ping timeout: 260 seconds]
lw has joined #ruby
Inhaling_ has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
sailias has quit [Ping timeout: 260 seconds]
elstif has quit [Quit: Leaving.]
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ghr has quit [Ping timeout: 272 seconds]
endash has joined #ruby
tkuchiki has joined #ruby
SilkFox_ has joined #ruby
nettoweb_ has joined #ruby
nettoweb_ has quit [Max SendQ exceeded]
spyderman4g63 has quit [Remote host closed the connection]
nettoweb_ has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spyderman4g63 has joined #ruby
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
tectonic has joined #ruby
thejamespinto has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
thejamespinto has joined #ruby
nettoweb has quit [Ping timeout: 260 seconds]
ndrei has quit [Ping timeout: 258 seconds]
xylorast has joined #ruby
spyderman4g63 has quit [Ping timeout: 246 seconds]
Wolland has quit [Ping timeout: 240 seconds]
SilkFox_ has quit [Ping timeout: 260 seconds]
geggam has quit [Quit: commute]
InhalingPixels has joined #ruby
msmith_ has quit [Remote host closed the connection]
boombada_ is now known as boombadaroomba_
boombadaroomba_ has quit []
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
magic has quit [Killed (sinisalo.freenode.net (Nickname regained by services))]
omosoj has joined #ruby
boombada_ has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
boombada_ is now known as boombadaroomba_
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
boombadaroomba_ has quit [Client Quit]
cndiv has quit [Ping timeout: 250 seconds]
x1337807x has joined #ruby
gilest has quit [Remote host closed the connection]
emmesswhy has quit [Quit: Leaving]
chipotle has joined #ruby
x1337807x has quit [Client Quit]
nfk has quit [Quit: yawn]
niftylettuce has joined #ruby
fgo has joined #ruby
algoqaeda has left #ruby [#ruby]
MCDev has joined #ruby
crazydiamond has quit [Ping timeout: 250 seconds]
silkfox has quit [Ping timeout: 272 seconds]
justinmburrous has joined #ruby
thejamespinto has quit [Read error: Connection reset by peer]
anaeem1_ has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
snath has quit [Ping timeout: 272 seconds]
thejamespinto has joined #ruby
coderdad has quit [Remote host closed the connection]
nettoweb_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shosti has quit [Ping timeout: 260 seconds]
hooper1 has joined #ruby
hooper has quit [Ping timeout: 250 seconds]
fgo has quit [Ping timeout: 245 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
justinmburrous has quit [Ping timeout: 240 seconds]
mikepack has quit [Remote host closed the connection]
<jthomp> algoqaeda: try taking a look at some of the titles here: https://pragprog.com/categories/ruby_and_rails
x1337807x has joined #ruby
havenwood has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
Smujo has quit [Ping timeout: 272 seconds]
Tomme has quit [Ping timeout: 245 seconds]
mikepack has joined #ruby
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
skolman has quit [Remote host closed the connection]
gilest has joined #ruby
mikeg has joined #ruby
tjr9898 has quit [Remote host closed the connection]
ffranz has quit [Read error: Connection reset by peer]
skolman has joined #ruby
nettoweb has joined #ruby
nettoweb has quit [Client Quit]
jottr has joined #ruby
nettoweb has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
cndiv has joined #ruby
InhalingPixels has joined #ruby
j4jackj has quit [Quit: ZNC - http://znc.in]
j4jackj has joined #ruby
jgt has joined #ruby
j4jackj is now known as Guest61593
willgo has joined #ruby
thejamespinto has quit [Read error: Connection reset by peer]
skolman has quit [Ping timeout: 246 seconds]
krisquigley has joined #ruby
Guest61593 is now known as j4jackj
charliesome has joined #ruby
russt_ has quit [Quit: russt_]
TTilus has quit [Ping timeout: 245 seconds]
nettoweb has quit [Ping timeout: 272 seconds]
freerobby has quit [Quit: Leaving.]
TTilus has joined #ruby
hiyosi has joined #ruby
beneggett has joined #ruby
elstif has joined #ruby
Rx_o has joined #ruby
coderhs has quit [Ping timeout: 245 seconds]
Wolland has joined #ruby
elstif has quit [Client Quit]
shosti has joined #ruby
hiyosi has quit [Ping timeout: 250 seconds]
thejamespinto has joined #ruby
SilkFox_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
aspires has quit []
Kricir has quit []
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
Kricir has joined #ruby
jgt has quit [Ping timeout: 250 seconds]
coderhs has joined #ruby
mrbubbles has quit [Quit: mrbubbles]
lw has quit [Quit: s]
JoshGlzBrk has quit [Quit: Textual IRC Client: www.textualapp.com]
SilkFox_ has quit [Ping timeout: 272 seconds]
phutchin1 has quit [Ping timeout: 245 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Tricon has quit [Quit: Linkinus - http://linkinus.com]
andrewlio has quit [Quit: Leaving.]
MCDev has quit [Ping timeout: 250 seconds]
aspires has joined #ruby
Tricon has joined #ruby
larissa has joined #ruby
zrl has joined #ruby
jobewan has quit [Remote host closed the connection]
ghr has joined #ruby
freerobby has joined #ruby
SloggerKhan has joined #ruby
<SloggerKhan> Can you delegate to a protected method?
bthesorceror has quit [Quit: bthesorceror]
thane75 has quit [Quit: thane75]
Kricir has quit [Remote host closed the connection]
tectonic has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 260 seconds]
TorpedoSkyline has joined #ruby
Kricir has joined #ruby
havenwood has joined #ruby
flowerhack has quit [Remote host closed the connection]
krisquigley has quit [Remote host closed the connection]
kaspergrubbe has quit []
jottr has quit [Ping timeout: 240 seconds]
krisquigley has joined #ruby
fennec has joined #ruby
nettoweb has joined #ruby
icebourg has quit []
nettoweb has quit [Max SendQ exceeded]
mikeg has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 272 seconds]
SloggerKhan has left #ruby [#ruby]
tkuchiki has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
krisquigley has quit [Ping timeout: 250 seconds]
kaspergrubbe has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
tjr9898 has joined #ruby
nettoweb has joined #ruby
benzrf is now known as benzrf|offline
hiyosi has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
aspires has quit []
ursooperduper has joined #ruby
tkuchiki has joined #ruby
russt has joined #ruby
benzrf|offline is now known as benzrf
b00stfr3ak has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: zzz]
emmesswhy has joined #ruby
tkuchiki has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 260 seconds]
iliketurtles has joined #ruby
klmlfl has quit [Remote host closed the connection]
ItSANgo_ has joined #ruby
ItSANgo has joined #ruby
ItSANgo__ has joined #ruby
ItSANgo has quit [Client Quit]
ItSANgo__ has quit [Client Quit]
hooper1 has quit [Quit: Leaving.]
freerobby has joined #ruby
mrsolo has quit [Quit: Leaving]
fgo has joined #ruby
MCDev has joined #ruby
larissa has quit [Quit: Leaving]
IceDragon has joined #ruby
larissa has joined #ruby
russt has quit [Quit: russt]
fgo has quit [Read error: No route to host]
justinmburrous has joined #ruby
fgo has joined #ruby
SilkFox_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
autonomousdev has joined #ruby
autonomousdev has quit [Client Quit]
danijoo has joined #ruby
IceDragon has quit [Ping timeout: 244 seconds]
IceDragon has joined #ruby
justinmburrous has quit [Ping timeout: 245 seconds]
autonomousdev has joined #ruby
InhalingPixels has quit []
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
mastr_bennett[x] has joined #ruby
freerobby has quit [Quit: Leaving.]
boombada_ has joined #ruby
beneggett has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
phutchin1 has joined #ruby
Kricir has joined #ruby
aspires has joined #ruby
Rx_o has quit [Quit: Computer has gone to sleep.]
ItSANgo_ has quit [Quit: Leaving...]
Rx_o has joined #ruby
Rx_o has quit [Read error: Connection reset by peer]
shiver has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rx_o has joined #ruby
Rx_o has quit [Read error: Connection reset by peer]
Rx_o has joined #ruby
Rx_o has quit [Read error: Connection reset by peer]
hackeron_ has quit [Ping timeout: 260 seconds]
bthesorceror has joined #ruby
Rx_o has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rx_o has quit [Read error: Connection reset by peer]
Rx_o has joined #ruby
WormDrink has joined #ruby
Rx_o has quit [Read error: Connection reset by peer]
Rx_o has joined #ruby
Rx_o has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
Rx_o has joined #ruby
nettoweb has joined #ruby
b00stfr3ak has joined #ruby
Rx_o has quit [Read error: Connection reset by peer]
Rx_o has joined #ruby
Rx_o has quit [Read error: Connection reset by peer]
tvw has quit [Ping timeout: 272 seconds]
Rx_o has joined #ruby
gilest has quit [Remote host closed the connection]
Rx_o has quit [Read error: Connection reset by peer]
mastr_bennett[x] has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Rx_o has joined #ruby
skolman_ has joined #ruby
Rx_o has quit [Read error: Connection reset by peer]
ghostmoth has quit [Quit: ghostmoth]
Rx_o has joined #ruby
hackeron has joined #ruby
jontmorehouse has quit [Ping timeout: 260 seconds]
Rx_o has quit [Read error: Connection reset by peer]
Rx_o has joined #ruby
Rx_o has quit [Read error: Connection reset by peer]
lw has joined #ruby
centrx has joined #ruby
Rx_o has joined #ruby
Rx_o has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 260 seconds]
Rx_o has joined #ruby
Celm_ has joined #ruby
Rx_o has quit [Read error: Connection reset by peer]
Rx_o has joined #ruby
Rx_o has quit [Read error: Connection reset by peer]
<shevy> right now, if a shell file contains ' ' character
<shevy> as part of its name
<shevy> and if I run system() commands, I need to quote this through "
<shevy> for instance:
Rx_o has joined #ruby
<shevy> last war (Hans Zimmer).mp3
<shevy> "last war (Hans Zimmer).mp3"
<shevy> hmm actually
<shevy> '"last war (Hans Zimmer).mp3"'
<shevy> yeah
Rx_o has quit [Write error: Connection reset by peer]
<shevy> I do this by padding it like so:
<shevy> i = 'last war (Hans Zimmer).mp3'
<shevy> i = '"'+i+'"'
<shevy> is there a better way than the last line here? ^^^
Rx_o has joined #ruby
<shevy> If I don't quote, I get this error -> sh: -c: line 0: syntax error near unexpected token `('
Rx_o has quit [Read error: Connection reset by peer]
<centrx> >> "'#{'"'}\"\##{"'"}'#"
<eval-in_> centrx => "'\"\"#''#" (https://eval.in/200092)
Rx_o has joined #ruby
mijicd has quit [Remote host closed the connection]
gilest has joined #ruby
Rx_o has quit [Read error: Connection reset by peer]