apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 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
musl has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<havenwood> terrellt: or:
<havenwood> >> Hash[*{:bla => "Yo"}.flatten]
<eval-in_> havenwood => {:bla=>"Yo"} (https://eval.in/148450)
<havenwood> terrellt: splat it
banister has joined #ruby
codeFiend has joined #ruby
<terrellt> Right.
linojon has joined #ruby
tvw has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zorak has joined #ruby
banisterfiend has quit [Ping timeout: 240 seconds]
nfk has quit [Quit: yawn]
nateberkopec has joined #ruby
<havenwood> i like how #to_h is predictable, though does seem to often mean a #each_slice(2) but you can tell what's going on
<havenwood> i guess this is the legacy we have from Hashes being unordered? map a hash to a hash for the love of everything holy!
<havenwood> hashes being ordered now, the whole array result thing seemingly makes no sense
SCommette has joined #ruby
benzrf|offline is now known as benzrf
rebelshrug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby
psyko666 has joined #ruby
shadoi has joined #ruby
mansi has quit [Ping timeout: 255 seconds]
renier_ is now known as renier
nwertman has quit [Ping timeout: 245 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
kaspergrubbe has joined #ruby
RohanRNS has quit [Ping timeout: 250 seconds]
saarinen has quit [Quit: saarinen]
predator217 has quit [Ping timeout: 252 seconds]
lw has joined #ruby
kiri has quit [Ping timeout: 245 seconds]
marr has quit [Ping timeout: 255 seconds]
RohanRNS has joined #ruby
snath has joined #ruby
predator117 has joined #ruby
kaspergr_ has quit [Ping timeout: 250 seconds]
kaspergrubbe has quit [Remote host closed the connection]
try has quit [Ping timeout: 240 seconds]
BWStearns has quit [Ping timeout: 255 seconds]
mrmargolis has joined #ruby
jonno11 has joined #ruby
jhass is now known as jhass|off
eynj has joined #ruby
subbyyy has quit [Ping timeout: 255 seconds]
Tricon has quit [Quit: Linkinus - http://linkinus.com]
nateberkopec has quit [Quit: Leaving...]
ChangJoo has joined #ruby
SilkFox has joined #ruby
testcore has joined #ruby
BWStearn1 has joined #ruby
tkuchiki has quit [Ping timeout: 258 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has quit [Ping timeout: 265 seconds]
wallerdev has quit [Quit: wallerdev]
nemesit|znc has quit [Ping timeout: 255 seconds]
wallerdev has joined #ruby
SilkFox has quit [Ping timeout: 245 seconds]
doodlehaus has quit [Remote host closed the connection]
mollitz has joined #ruby
ghr has joined #ruby
nwertman has joined #ruby
timonv has joined #ruby
<RubyPanther> <3 <3 <3 ordered data
Megtastique has joined #ruby
SegFaultAX has quit [Excess Flood]
redondos has quit [Excess Flood]
zz_karupa is now known as karupa
redondos has joined #ruby
moritzschaefer has quit [Ping timeout: 240 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
ghr has quit [Ping timeout: 258 seconds]
nemesit|znc has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
bradhe_ has quit [Remote host closed the connection]
rebelshrug has joined #ruby
pel_daniel has quit [Ping timeout: 276 seconds]
djbkd has quit [Remote host closed the connection]
<shevy> <3 <3 <3 ordered boobs
pu22l3r has quit [Remote host closed the connection]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mollitz has quit [Ping timeout: 264 seconds]
yfeldblu_ has joined #ruby
nateberkopec has joined #ruby
flowerhack has quit [Quit: Connection closed for inactivity]
SegFaultAX has joined #ruby
roadie has quit [Ping timeout: 250 seconds]
chrisseaton has quit []
musl has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
musl has joined #ruby
nateberkopec has quit [Client Quit]
freerobby has joined #ruby
lukec has quit [Quit: lukec]
Jnco has joined #ruby
arrubin has joined #ruby
Jnco has quit [Remote host closed the connection]
mg^ is now known as mg_afk
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mg_afk is now known as mg^afk
pwh has quit []
CaptainJet has joined #ruby
Jnco has joined #ruby
thomasxie has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
<happytux> OK, so I include two ruby files in Rakefile, but their task (names) intersect at one point, both got a task named 'lint'.
<happytux> So will the import fail? Can I solve this problem?
<Jnco> Hey All - I am a former .net / php dev/ops semi dev coming into Ruby.. I just became part of a startup.. doing my best to get started here, had a question, I am pulling down an entire ruby app (all of the webapp folder) from a git repo, I have nginx and passenger setup.. I performed a bundle --deployment command to pull down all needed gems, I have the server running but getting a 404 error. I can see files inside the public folder but the site i
<Jnco> tself (homepage etc) is not showing up.. (here is my nginx conf, http://pastebin.com/VjnKdRxy) was wondering if you guys had any idea where I could start looking
figgleberry has quit []
<benzrf> happytux: oh, the wonders of ruby's import system
<Jnco> server: https://23.23.109.65/
codeFiend has quit [Quit: codeFiend]
<happytux> benzrf: or do I have to modify one imported file and comment out the offending task?
<happytux> I don't to modify stuff.
endash has joined #ruby
<happytux> *want
bakflash has quit [Ping timeout: 252 seconds]
pu22l3r has joined #ruby
<Jnco> happy, do you know the most common reason why my nginx web server would be serving files (https://23.23.109.65/) but not the application itself?
<Jnco> after setting up codebase on new server
<shevy> no idea, I always use apache
CaptainJet has quit [Remote host closed the connection]
CaptainJet has joined #ruby
roadie has joined #ruby
testcore has quit [Quit: BitchX-1.3-git -- just do it.]
oo_ has joined #ruby
tjr9898__ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
mrmargolis has quit [Remote host closed the connection]
armyriad has quit [Ping timeout: 252 seconds]
nateberkopec has joined #ruby
thomasxie has quit [Ping timeout: 250 seconds]
cashnguns has joined #ruby
Hobogrammer has quit [Ping timeout: 264 seconds]
tjr9898 has quit [Ping timeout: 276 seconds]
cjbottaro has joined #ruby
<cjbottaro> I can't build native gems due to the clang 5.1 issue. ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future bundle install is not working either. What am I doing wrong?
tkuchiki has joined #ruby
JoeGaudet has quit [Quit: Computer has gone to sleep.]
cjbottaro has quit [Client Quit]
pu22l3r has quit [Remote host closed the connection]
amclain has joined #ruby
linojon has quit [Quit: linojon]
baweaver has joined #ruby
PatMakesThings has quit [Ping timeout: 240 seconds]
bin_bash has joined #ruby
tjr9898__ has quit [Read error: Connection reset by peer]
cescalante is now known as ce_afk
jamto11 has quit [Remote host closed the connection]
cricketonastick has joined #ruby
kenneth has joined #ruby
robustus has quit [Ping timeout: 252 seconds]
tjr9898 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CaptainJet has quit []
robustus has joined #ruby
cricketo2astick has joined #ruby
<havenwood> ruby-2.1.2 released \o/
cricketo2astick has left #ruby [#ruby]
cricketonastick has quit [Ping timeout: 240 seconds]
jtdowney has joined #ruby
lukec has joined #ruby
<centrx> ***ALERT***ALERT***ALERT***
<centrx> NEW RUBY VERSION RELEASED
b00stfr3ak has quit [Ping timeout: 252 seconds]
<Nilium> It's a small update, cue everyone using rails complaining that it breaks everything
armyriad has joined #ruby
jamto11 has joined #ruby
<benzrf> centrx: whoa rly
Hobogrammer has joined #ruby
mercwithamouth has quit [Ping timeout: 265 seconds]
bin_bash has quit [Ping timeout: 258 seconds]
mrmargolis has joined #ruby
ddv has quit [Ping timeout: 245 seconds]
bin_bash has joined #ruby
bin_bash has quit [Remote host closed the connection]
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
bin_bash has joined #ruby
instantaphex has joined #ruby
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ghr has joined #ruby
<havenwood> Nilium: an important update!
<havenwood> Nahra: 2.1.0 and 2.1.1 were incompatible with readline-6.3 >.>
<Nilium> All updates are important updates.
<havenwood> Nahra: oops, mt, meant Nilium
ddv has joined #ruby
<havenwood> Nilium: i guess not as many huge fixes as 2.1.1, but glad it's out!!
tjr9898 has quit [Remote host closed the connection]
pwh has joined #ruby
tjr9898 has joined #ruby
instantaphex has quit [Ping timeout: 258 seconds]
<havenwood> apeiros: topic could use a bump ;)
JoeGaudet has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
jtdowney has quit []
saarinen has joined #ruby
baweaver has quit [Remote host closed the connection]
manacit is now known as johnnyfootball
sepp2k1 has quit [Quit: Leaving.]
x1337807x has joined #ruby
johnnyfootball is now known as bogon
baweaver has joined #ruby
binaryhat has quit [Quit: Leaving]
yfeldblu_ has quit [Remote host closed the connection]
armyriad has quit [Ping timeout: 252 seconds]
danman_ has joined #ruby
hgl has joined #ruby
armyriad has joined #ruby
mrmargolis has quit [Remote host closed the connection]
yfeldblum has joined #ruby
jtdowney has joined #ruby
yfeldblum has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
SilkFox has joined #ruby
jxf has quit [Ping timeout: 252 seconds]
wallerdev has quit [Quit: wallerdev]
yfeldblum has joined #ruby
mrmargolis has joined #ruby
MrWharfsnort has joined #ruby
Hanmac has joined #ruby
<shevy> ALERT!!!
<shevy> A NEW RUBY HITS THE PLANET!
bakflash has joined #ruby
Gooder has joined #ruby
Hanmac1 has quit [Ping timeout: 258 seconds]
mrmargolis has quit [Read error: Connection reset by peer]
mrmargolis has joined #ruby
<shevy> soon ruby has higher version than python
baweaver has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
<benzrf> monads tho
endash has quit [Read error: No route to host]
<shevy> this ain't haskell
<benzrf> monads
<shevy> ruby is so superior that it does not need any monads
<benzrf> >lel
endash has joined #ruby
x1337807x has quit [Ping timeout: 252 seconds]
armyriad has quit [Ping timeout: 240 seconds]
MrWharfsnort_ has joined #ruby
tvw has quit [Ping timeout: 264 seconds]
jtdowney has quit []
redondos has quit [Excess Flood]
x1337807x has joined #ruby
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
endash has quit [Client Quit]
MrWharfsnort has quit [Ping timeout: 255 seconds]
x1337807x has quit [Client Quit]
tyll has quit [Ping timeout: 264 seconds]
gregf has joined #ruby
tyll has joined #ruby
_reset has joined #ruby
phantasm66 has joined #ruby
baweaver has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
JoeGaudet has quit [Quit: Computer has gone to sleep.]
jamto11 has quit [Remote host closed the connection]
keystonelemur has joined #ruby
toastynerd has joined #ruby
mrmargolis has quit [Ping timeout: 240 seconds]
rezzack has quit [Quit: Leaving.]
s2013 has quit [Quit: Leaving]
Slavox|AFK is now known as Slavox
reset has quit [Ping timeout: 276 seconds]
cashnguns has quit [Ping timeout: 252 seconds]
dsdeiz_ has joined #ruby
_reset has quit [Ping timeout: 264 seconds]
mrmargolis has joined #ruby
baweaver has quit [Ping timeout: 258 seconds]
krz has joined #ruby
gsvolt has joined #ruby
dsdeiz has quit [Ping timeout: 265 seconds]
andrewanderson has joined #ruby
gsvolt_ has quit [Ping timeout: 265 seconds]
keystonelemur has quit [Ping timeout: 276 seconds]
jtdowney has joined #ruby
<andrewanderson> hi guys, i'm doing a web scraper, and i want to get the text out of [brackets].. this is the script i have: https://gist.github.com/dzjin/3f5c719595bef94fc9b4, it only returns the first match and the bracket itself.. this is rubular http://rubular.com/r/NOHgRqo7x7
mven has quit [Ping timeout: 264 seconds]
DrShoggoth has joined #ruby
DrShoggoth has quit [Read error: Connection reset by peer]
prakriti has joined #ruby
rokob has quit [Remote host closed the connection]
rostam has quit [Remote host closed the connection]
timonv has joined #ruby
yfeldblum has joined #ruby
mrmargolis has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
fgo has joined #ruby
sensen has joined #ruby
<reactormonk> I got a few hashes stacked into each other... how would you flatten to the values?
rostam has joined #ruby
MrWharfsnort_ has quit [Ping timeout: 255 seconds]
Megtastique has quit []
yfeldblum has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 265 seconds]
Megtastique has joined #ruby
fenicks has quit [Remote host closed the connection]
BWStearn1 has quit [Ping timeout: 255 seconds]
jeregrine has quit [Quit: Connection closed for inactivity]
jtdowney has quit []
codeurge has joined #ruby
BWStearns has joined #ruby
soheil has quit [Remote host closed the connection]
_maes_ has joined #ruby
krz has quit [Ping timeout: 264 seconds]
ghr has joined #ruby
meatherly has joined #ruby
vpretzel|1482 has quit [Quit: Adios!]
deric_skibotn has quit [Ping timeout: 265 seconds]
saarinen has quit [Quit: saarinen]
vpretzel has joined #ruby
i_s has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 258 seconds]
radic has quit [Ping timeout: 245 seconds]
radic has joined #ruby
chipotle has joined #ruby
danshultz has quit [Remote host closed the connection]
pietr0 has quit [Quit: pietr0]
RohanRNS has quit [Quit: Connection closed for inactivity]
danshultz has joined #ruby
tjr9898 has quit [Remote host closed the connection]
_sambao21 has joined #ruby
danshultz has quit [Remote host closed the connection]
BWStearns has quit [Ping timeout: 252 seconds]
danshultz has joined #ruby
BWStearns has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
larsam has joined #ruby
saarinen has joined #ruby
kevinykc_ has joined #ruby
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<reactormonk> >> (0..73).cover?(1..4)
<eval-in_> reactormonk => false (https://eval.in/148550)
cashnguns has joined #ruby
<reactormonk> huh?
ce_afk is now known as cescalante
kevinykchan has quit [Ping timeout: 245 seconds]
alexy has joined #ruby
whomp has quit [Ping timeout: 258 seconds]
MrWharfsnort has joined #ruby
alexy has left #ruby ["Leaving"]
<centrx> >> (0..73).include?(1..4)
<eval-in_> centrx => false (https://eval.in/148551)
<reactormonk> centrx, ... exactly.
toastynerd has quit [Remote host closed the connection]
<centrx> I always thought it supported Ranges
codeurge has joined #ruby
<reactormonk> apparently doesn't
mattmcclure has quit [Quit: Connection closed for inactivity]
Martxel has quit [Ping timeout: 250 seconds]
phinfonet has quit []
voll has joined #ruby
cescalante is now known as ce_afk
sensen has quit [Quit: leaving]
glenfe has joined #ruby
MrWharfsnort has quit [Ping timeout: 255 seconds]
bogon is now known as manacit
<reactormonk> ... that's where typecheck helps
riseyourfire has joined #ruby
saarinen has quit [Quit: saarinen]
MDCox has joined #ruby
redondos has quit [Excess Flood]
redondos has joined #ruby
braincrash has quit [Quit: bye bye]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danshultz has quit [Remote host closed the connection]
SilkFox has quit [Ping timeout: 265 seconds]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
ValicekB has quit [Ping timeout: 276 seconds]
danshultz has joined #ruby
raspberr_ has joined #ruby
benzrf is now known as benzrf|offline
riseyourfire has quit [Remote host closed the connection]
braincrash has joined #ruby
BWStearns has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
nateberkopec has quit [Quit: Leaving...]
danshultz has quit [Ping timeout: 258 seconds]
bigmac_ is now known as i8igmac
sunya7a has joined #ruby
sunya7a has quit [Client Quit]
cashnguns has quit [Remote host closed the connection]
jamto11 has joined #ruby
krz has joined #ruby
zakiazigazi has quit [Ping timeout: 240 seconds]
zakiazigazi has joined #ruby
glenfe has left #ruby ["Leaving"]
BWStearn1 has joined #ruby
jxf has joined #ruby
ValicekB has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
shevy has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby
raspberr_ has quit []
raspberr_ has joined #ruby
raspberr_ has quit [Client Quit]
try has joined #ruby
kenneth has quit [Ping timeout: 240 seconds]
<reactormonk> >> [{0=>[0, 0]}, {0=>[0, 0, 0]}, {0=>[0]}, {0=>[0, 0]}, {1=>[1, 1]}, {1=>[1]}, {1=>[1, 1]}, {2=>[2, 2, 2]}, {3=>[3, 3]}, {3=>[3, 3, 3, 3]}, {3=>[3, 3, 3, 3, 3, 3]}, {4=>[4, 4]}, {4=>[4]}, {4=>[4, 4, 4]}, {5=>[5, 5]}, {5=>[5, 5]}, {5=>[5, 5]}, {5=>[5]}, {6=>[6, 6]}, {6=>[6, 6]}, {7=>[7, 7, 7]}, {8=>[8, 8]}, {8=>[8, 8]}, {8=>[8]}, {8=>[8, 8]}]
<eval-in_> reactormonk => [{0=>[0, 0]}, {0=>[0, 0, 0]}, {0=>[0]}, {0=>[0, 0]}, {1=>[1, 1]}, {1=>[1]}, {1=>[1, 1]}, {2=>[2, 2, 2]}, {3=>[3, 3]}, {3=>[3, 3, 3, 3]}, {3=>[3, 3, 3, 3, 3, 3]}, {4=>[4, 4]}, {4=>[4]}, {4=>[4, 4, 4]}, ... (https://eval.in/148552)
<reactormonk> ehh
<reactormonk> >> [{0=>[0, 0]}, {0=>[0, 0, 0]}, {0=>[0]}, {0=>[0, 0]}, {1=>[1, 1]}, {1=>[1]}, {1=>[1, 1]}, {2=>[2, 2, 2]}, {3=>[3, 3]}, {3=>[3, 3, 3, 3]}, {3=>[3, 3, 3, 3, 3, 3]}, {4=>[4, 4]}, {4=>[4]}, {4=>[4, 4, 4]}, {5=>[5, 5]}, {5=>[5, 5]}, {5=>[5, 5]}, {5=>[5]}, {6=>[6, 6]}, {6=>[6, 6]}, {7=>[7, 7, 7]}, {8=>[8, 8]}, {8=>[8, 8]}, {8=>[8]}, {8=>[8, 8]}].keys
<eval-in_> reactormonk => undefined method `keys' for #<Array:0x40f0ca18> (NoMethodError) ... (https://eval.in/148553)
<reactormonk> ... sorry
Valesk has joined #ruby
phantasm66 has quit [Quit: *sleeeep….]
RaptorJesus has quit [Write error: Connection reset by peer]
St_Marx has quit [Write error: Broken pipe]
end_guy has quit [Write error: Broken pipe]
atmosx has quit [Write error: Broken pipe]
tacos1de has quit [Write error: Connection reset by peer]
<reactormonk> >> [{0=>[0, 0]}, {0=>[0, 0, 0]}, {0=>[0]}, {0=>[0, 0]}, {1=>[1, 1]}, {1=>[1]}, {1=>[1, 1]}, {2=>[2, 2, 2]}, {3=>[3, 3]}].map(&:keys)
<eval-in_> reactormonk => [[0], [0], [0], [0], [1], [1], [1], [2], [3]] (https://eval.in/148554)
<reactormonk> ... really? Ruby syntax is strange sometimes.
ChangJoo has quit [Ping timeout: 246 seconds]
whomp has joined #ruby
cwc- is now known as cwc
bricker has quit [Ping timeout: 265 seconds]
TripTastic has joined #ruby
kenneth has joined #ruby
freerobby has quit [Quit: Leaving.]
<centrx> reactormonk, Seems like a contrived example. What's strange about it?
Spami has joined #ruby
krazh has joined #ruby
instantaphex has joined #ruby
krazh has quit [Remote host closed the connection]
krazh has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
<reactormonk> centrx, I get in `each': private method `keys' called for [0, [0, 0]]:Array (NoMethodError)
<centrx> reactormonk, I would think it would be No Method Error
<centrx> >> [0, [0,0]].map(&:keys)
<eval-in_> centrx => undefined method `keys' for 0:Fixnum (NoMethodError) ... (https://eval.in/148555)
Megtastique has quit []
<centrx> >> [0, [0,0]].keys
<eval-in_> centrx => undefined method `keys' for [0, [0, 0]]:Array (NoMethodError) ... (https://eval.in/148556)
St_Marx has joined #ruby
wallerdev has joined #ruby
michaeldeol has joined #ruby
<reactormonk> lemme see again
<reactormonk> yeah, mapped on the wrong level
RaptorJesus has joined #ruby
raspberr_ has joined #ruby
deens has quit [Ping timeout: 255 seconds]
mehlah has quit [Quit: Leaving...]
instantaphex has quit [Ping timeout: 276 seconds]
i_s has joined #ruby
tacos1de has joined #ruby
<reactormonk> how do you mapValues over a hash again? aka map the values only, reconstructing the hash afterwards
oo_ has quit [Remote host closed the connection]
ChangJoo has joined #ruby
andrewanderson has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
<centrx> reactormonk, There are a bunch of different ways to do it
kenneth has quit [Ping timeout: 255 seconds]
<centrx> reactormonk, I prefer hash.map { |k,v| [k.to_sym, v.to_i] }.to_h
<reactormonk> ohh, to_h
agrinb has quit [Remote host closed the connection]
<banister> to_h is 2.1+ iirc
<centrx> reactormonk, An array of pairs is the concept for converting to hash with Hash[] or to_h
<reactormonk> I'm constructing a counter, so hash.group_by{|x| x}.map { |k,v| [k, v.size] }.to_h
<reactormonk> centrx, yeah, I know about Hash[] just fine
lw has quit [Quit: s]
i_s has quit [Ping timeout: 255 seconds]
<centrx> reactormonk, That's a good counter
maximski has quit []
TripTastic has left #ruby ["Leaving"]
bluOxigen has joined #ruby
<banister> reactormonk hash.group_by(&:presence)
BWStearn1 has quit [Ping timeout: 252 seconds]
Celm_ has joined #ruby
Bumptious has joined #ruby
<reactormonk> banister, O.o
end_guy has joined #ruby
SCommette has quit [Quit: SCommette]
<banister> reactormonk in rails, presence is basically just 'return self'
<reactormonk> yargh, fuck. My interation constructs are getting out of hand :-(
<reactormonk> Need types.
<reactormonk> banister, then why not call it identity?
voll has quit [Ping timeout: 276 seconds]
<banister> reactormonk dont ask me, i agree :)
Celm_ has quit [Remote host closed the connection]
atmosx has joined #ruby
SCommette has joined #ruby
i_s has joined #ruby
Arkaniad has quit [Read error: Connection reset by peer]
ChangJoo has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby
SCommette has quit [Client Quit]
<reactormonk> damn, some work for exactly 8 numbers...
fgo has quit [Remote host closed the connection]
BWStearn1 has joined #ruby
jumper has joined #ruby
whomp has quit [Ping timeout: 255 seconds]
<jumper> Anyone know any good books websites on ruby for a ruby beginner but experience with many other languages?
Brando753 has quit [Read error: Operation timed out]
Brando753 has joined #ruby
<centrx> jumper, Ruby Koans, Ruby Monk, and the Pickaxe (http://ruby-doc.com/docs/ProgrammingRuby/)
<centrx> jumper, that URL is an old version of a pretty standard reference (newer versions not free)
<centrx> jumper, old versions is still very relevant, most everything you need for a beginner
<jumper> thank you centrx. Im going to check them out
bricker has joined #ruby
JBreit has joined #ruby
JBreit has left #ruby [#ruby]
BWStearn1 has quit [Ping timeout: 276 seconds]
MDCox has quit [Quit: Leaving]
ChangJooPark has joined #ruby
ffranz has quit [Quit: Leaving]
_sambao21 has quit [Quit: Computer has gone to sleep.]
_maes_ has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has joined #ruby
ValicekB has quit [Ping timeout: 265 seconds]
tyfighter has joined #ruby
Cache_Money has joined #ruby
x1337807x has joined #ruby
twiceday has joined #ruby
nateberkopec has quit [Read error: No route to host]
nateberkopec has joined #ruby
pwh has quit []
jamto11_ has joined #ruby
timonv has joined #ruby
twiceaday has quit [Ping timeout: 265 seconds]
<try> so, method.class is the class of the return value?
BWStearn1 has joined #ruby
<try> how could show the class of the method?
<centrx> try, A method is basically attached to its class inherently
nateberkopec has quit [Ping timeout: 240 seconds]
<centrx> try, You can grab methods from an object with the #method method
<centrx> try, the class of those things is "Method"
<centrx> try, You can do useful things with that, but I think internally, a method is just a method, not an Object
Kazii has joined #ruby
pontiki has joined #ruby
jamto11_ has quit [Ping timeout: 252 seconds]
timonv has quit [Ping timeout: 240 seconds]
Kazii has left #ruby ["Textual IRC Client: http://www.textualapp.com/"]
<try> centrx, thank you. that is good to know. if i do eval print.class in irb, i get NilClass. if i do gets.class, i get String (after entrering something)
rebelshrug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alexju has joined #ruby
CorpusCallosum has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
pu22l3r has joined #ruby
nwertman has quit [Ping timeout: 252 seconds]
ValicekB has joined #ruby
<centrx> try, right, this is an example of method chaining
ce_afk is now known as cescalante
<centrx> try, the return value of the first method becomes the receiver of the second method
pika_pika has quit [Ping timeout: 240 seconds]
<centrx> try, This can go on endless, so you can have things like: Date.today.beginning_of_month.end_of_week (this example is from ActiveSupport/Rails)
<try> oh... still getting used to the optional parens! thank you!
michaeldeol has joined #ruby
raspberrypi has joined #ruby
pu22l3r has quit [Ping timeout: 250 seconds]
kevinykc_ has quit [Read error: Connection reset by peer]
aspires has joined #ruby
kevinykchan has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn_ has joined #ruby
aspires has quit [Client Quit]
datafirm has joined #ruby
krazh has quit [Remote host closed the connection]
krazh has joined #ruby
Rylee_ has quit [Remote host closed the connection]
ghr has joined #ruby
Rylee has joined #ruby
nari has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
razrunelord has joined #ruby
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has joined #ruby
lukec has quit [Quit: lukec]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
razrunelord has quit [Ping timeout: 245 seconds]
apeiros_ has joined #ruby
jumper has left #ruby ["WeeChat 0.4.3"]
apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
apeiros has quit [Ping timeout: 240 seconds]
raspberrypi has quit [Quit: Leaving.]
raspberr_ has quit [Remote host closed the connection]
apeiros_ is now known as apeiros
raspberryfan has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
raspberryfan has quit [Remote host closed the connection]
raspberryfan has joined #ruby
fgo has joined #ruby
raspberrypi has joined #ruby
marcdel has joined #ruby
Valesk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has quit [Read error: No route to host]
fgo has joined #ruby
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kenneth has joined #ruby
pwh has joined #ruby
oo_ has joined #ruby
marcdel has quit [Ping timeout: 252 seconds]
Morkel has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
marcdel has joined #ruby
danman_ has quit [Quit: danman_]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
SirFunk has quit [Ping timeout: 240 seconds]
relix has joined #ruby
wald0 has quit [Ping timeout: 240 seconds]
njs126 has joined #ruby
jamto11 has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
jamto11 has joined #ruby
apeiros has joined #ruby
SirFunk has joined #ruby
wald0 has joined #ruby
jsutch has joined #ruby
jsutch has quit [Client Quit]
sj__ has joined #ruby
apeiros has quit [Ping timeout: 252 seconds]
jamto11 has quit [Remote host closed the connection]
felixjet has joined #ruby
nateberkopec has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
aganov has joined #ruby
armyriad has joined #ruby
aspires has quit []
pwh has quit []
Valesk has joined #ruby
Valesk has quit [Remote host closed the connection]
_justin has joined #ruby
soheil has joined #ruby
aspires has joined #ruby
CodeBunny has joined #ruby
soheil has quit [Ping timeout: 264 seconds]
iliketurtles has joined #ruby
davedev24 has quit [Remote host closed the connection]
davedev24 has joined #ruby
JasmeetQA has joined #ruby
krazh has quit [Remote host closed the connection]
krazh has joined #ruby
krazh has quit [Client Quit]
apeiros has joined #ruby
raspberryfan has quit [Remote host closed the connection]
raspberrypi has quit [Quit: Leaving.]
raspberryfan has joined #ruby
Hobogrammer_ has joined #ruby
<sj__> trying to ingest a directory of filenames that look like qa-test-1, qa-test-2, prod-test-2, dev-test-3 etc, split them into an array along the -, then reuse the array components like: dev-test-3 could be used like "puts file[3], file[2], file[1]" or in some other order.
davedev24 has quit [Ping timeout: 265 seconds]
Hobogrammer has quit [Ping timeout: 258 seconds]
jprovazn has joined #ruby
_tpavel has joined #ruby
fgo has joined #ruby
xcesariox has joined #ruby
CodeBunny has quit [Quit: CodeBunny needs a carrot. Be back later.]
aspires has quit []
aspires has joined #ruby
freggles has quit [Ping timeout: 252 seconds]
razrunelord has joined #ruby
agjacome has quit [Quit: leaving]
omosoj has quit [Quit: Leaving]
<apeiros> sj__: was that a question? or context to a question I missed?
<sj__> it's a question.
xcesariox has quit [Client Quit]
<apeiros> in that case - I don't see a question in that "question" :)
agrinb has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sj__> "how do I split a filename string across a delimiter and put it into an array such that I could manipulate the elements of each file in a loop"
chipotle_ has joined #ruby
CorySimmons has joined #ruby
iliketurtles has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> a filename is a string. splitting a string is done by String#split. depending on your case, String#match with MatchData#captures might be an option
<apeiros> putting things in an array: []=, push, <<
razrunelord has quit [Ping timeout: 240 seconds]
chipotle has quit [Read error: Connection reset by peer]
chipotle_ has quit [Remote host closed the connection]
<sj__> hm. ok
mordocai has quit [Ping timeout: 240 seconds]
kevinykchan has quit [Read error: Connection reset by peer]
tagrudev has joined #ruby
agrinb has quit [Ping timeout: 240 seconds]
<apeiros> at the moment, your "question" is quite a bit "please write the code for me". please show what you've tried. people here gladly help. but writing the code for you isn't what we usually do.
eynj has left #ruby [#ruby]
kevinykchan has joined #ruby
chipotle has joined #ruby
subraminion has joined #ruby
<sj__> thanks. I was trying to explain the problem and I didn't do a good job of formulating the question.
<sj__> <-n00b.
<apeiros> that's ok. just telling you how I perceive it and what you can do against it :)
robert_ has quit [Read error: Connection reset by peer]
subraminion has quit [Client Quit]
paradisaeidae has joined #ruby
<sj__> sure. appreciated.
krz has quit [Ping timeout: 240 seconds]
subraminion has joined #ruby
soheil has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
jack_rabbit has quit [Ping timeout: 240 seconds]
subraminion has quit [Remote host closed the connection]
WishBoy has quit [Remote host closed the connection]
raspberryfan has quit [Remote host closed the connection]
subraminion has joined #ruby
raspberryfan has joined #ruby
WishBoy has joined #ruby
oo_ has quit [Remote host closed the connection]
tobago has joined #ruby
Gabri has joined #ruby
raspberrypi has joined #ruby
jericon_ is now known as jericon
soheil has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
Gabri has quit [Client Quit]
timonv has joined #ruby
meatherly has quit [Remote host closed the connection]
trhodes_ has quit [Ping timeout: 264 seconds]
shvelo has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
trhodes_ has joined #ruby
kitak_ has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 264 seconds]
kitak_ has joined #ruby
felipec has joined #ruby
<felipec> is there a good way to iterate through a hash with two values as keys?
krz has joined #ruby
<felipec> hash[[0, 1]] = true
oo_ has quit [Remote host closed the connection]
marcdel has quit []
<apeiros> felipec: there is no such thing as "two values as key"
codeFiend has joined #ruby
<apeiros> felipec: your key is one value, that value is an array
<raspberryfan> I learned ruby a long time ago, so many compatible problems in diff versions. and I gave up.
euclides has joined #ruby
<felipec> apeiros: look up ^
oo_ has joined #ruby
<apeiros> felipec: yes. precisely what I said.
nateberkopec has joined #ruby
HornD has joined #ruby
wildroman2 has joined #ruby
<apeiros> [0,1] # <- one object, one key
<felipec> apeiros: ignored, you are not useful
<apeiros> felipec: lol, k
HornD has quit []
Soliah has quit [Quit: Soliah]
<apeiros> tell me when you figured that it's just how I said it :-p
timonv has joined #ruby
i_s has quit [Remote host closed the connection]
ktun has joined #ruby
bal has joined #ruby
diegoviola has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
sqwirl has joined #ruby
jamto11_ has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
euclides has quit [Client Quit]
kevinykc_ has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
<felipec> I guess the closest would be hash.each {|key, value| a, b = key; stuff(a, b, value) }
oo_ has joined #ruby
<apeiros> I could tell you how to do it better. But since I'm not useful :-p
toastynerd has joined #ruby
<felipec> apeiros: I don't believe you could
jarray52 has left #ruby [#ruby]
<apeiros> felipec: I don't care that you don't believe I could :)
<felipec> apeiros: prove it
jamto11_ has quit [Ping timeout: 265 seconds]
<apeiros> no
<felipec> apeiros: I knew it, you can't
<apeiros> there's a difference between can't and won't
<apeiros> felipec: and your rude behavior is why I won't
oo_ has quit [Remote host closed the connection]
<felipec> apeiros: you can't either way, so it doesn't matter what you say
oo_ has joined #ruby
<apeiros> there is 1 way to do it better which works for 1.8, there are 2 ways to do your example code better in 1.9+
<apeiros> lets see whether somebody else will tell you
<apeiros> otherwise, may this be a lesson for you why being rude will negatively affect you.
<apeiros> (one of the 2 ways for 1.9+ is the one way for 1.8)
amclain has quit [Quit: Leaving]
andikr has joined #ruby
<felipec> apeiros: lier
<apeiros> *liar
<apeiros> continuing to be rude won't help you felipec
<centrx> I HAVE SEEN THE FUTURE
<apeiros> :D
<centrx> Everything in Ruby Prime will be a METHOD!!!
anaeem1 has joined #ruby
kiri has joined #ruby
Rahul_Roy has joined #ruby
aspires has quit []
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<felipec> looks like this does the trick: hash.each {|(a, b), value| stuff(a, b, value) }
<apeiros> bravo
<apeiros> that'd be the one which works for 1.8+
<apeiros> see, being nice could have saved you 20 minutes :-p
toastynerd has quit [Remote host closed the connection]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> the one for 1.9+ is IMO less ugly
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1 has quit [Remote host closed the connection]
<felipec> apeiros: I don't believe you knew about that one
<apeiros> felipec: don't worry, I can prove it.
<apeiros> a) because I've code which is 5+ years old which uses that
<apeiros> b) because I gisted it and gist shows the time ;-)
<felipec> apeiros: show me
aspires has joined #ruby
<apeiros> hm, should I show you? it contains the 1.9+ too and I don't really want to show you…
ktun has joined #ruby
Macaveli has joined #ruby
<felipec> apeiros: "Created just now"
oo_ has quit [Remote host closed the connection]
<apeiros> felipec: um, no
<apeiros> Created 12 minutes ago
oo_ has joined #ruby
<felipec> apeiros: either way the second for is not useful, I want the variables a and b
<apeiros> felipec: "is not useful" is not the same as "I can't use it"
WishBoy has quit [Remote host closed the connection]
<apeiros> felipec: also, I specifically said *your example*
<felipec> apeiros: nope, github says you are lying
WishBoy has joined #ruby
<apeiros> felipec: I don't know where you look. but you can hover over the "created at" and it shows you the precise time.
<apeiros> felipec: so you can stop being an insulting jerk and apologize.
tyfighter has quit [Quit: tyfighter]
<felipec> apeiros: 6:19:46Z, which is basically when I provided the answer, so you are lying
ghr has joined #ruby
<apeiros> felipec: are you stupid?
klaut has joined #ruby
<apeiros> 08:26 felipec: looks like this does the trick: hash.each {|(a, b), value| stuff(a, b, value) }
<apeiros> that's 7 minutes after
<apeiros> but sure
anaeem1_ has joined #ruby
<apeiros> I guess you're just too much of an ass to apologize, even when facing evidence.
thomasxie has joined #ruby
<felipec> apeiros: all right, the time in my laptop was phased, so maybe you are telling the truth
<felipec> apeiros: you are still an asshole
felipec was kicked from #ruby by apeiros [felipec]
<apeiros> blupp
senayar has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 264 seconds]
lsmola has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pu22l3r has joined #ruby
ktun has joined #ruby
zoraj has joined #ruby
sinkensabe has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
aspires has quit []
aspires has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
anaeem1 has joined #ruby
anaeem___ has joined #ruby
pu22l3r has quit [Ping timeout: 258 seconds]
claymore has joined #ruby
sinkensabe has quit []
sinkensabe has joined #ruby
anaeem1 has quit [Ping timeout: 276 seconds]
raspberrypi has left #ruby [#ruby]
raspberryfan_ has joined #ruby
WishBoy has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
try has quit [Ping timeout: 252 seconds]
WishBoy has joined #ruby
CorySimmons has quit [Quit: Zzz...]
CorySimmons has joined #ruby
oo_ has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
sinkensa_ has joined #ruby
Silent__ has joined #ruby
klaut_ has joined #ruby
matled- has joined #ruby
vpretzel_ has joined #ruby
Mongey_ has joined #ruby
sinkensa_ has left #ruby [#ruby]
matti_ has joined #ruby
yo61_ has joined #ruby
matled has quit [Read error: Connection reset by peer]
Davey has quit [Ping timeout: 252 seconds]
s_e has quit [Ping timeout: 252 seconds]
clamstar has quit [Ping timeout: 252 seconds]
Mongey has quit [Ping timeout: 252 seconds]
yo61 has quit [Ping timeout: 252 seconds]
Morrolan has quit [Ping timeout: 252 seconds]
dreamchaser has quit [Ping timeout: 252 seconds]
CorySimmons has quit [Ping timeout: 252 seconds]
matti has quit [Ping timeout: 252 seconds]
sinkensabe has quit [Ping timeout: 252 seconds]
matled- is now known as matled
klaut has quit [Ping timeout: 252 seconds]
Hobogrammer_ has quit [Ping timeout: 252 seconds]
vpretzel has quit [Ping timeout: 252 seconds]
matti_ is now known as matti
claymore has quit [Ping timeout: 276 seconds]
aspires has quit []
Morrolan has joined #ruby
Davey has joined #ruby
anaeem___ has quit [Quit: Leaving...]
s_e has joined #ruby
Guest68077 has joined #ruby
oo_ has joined #ruby
shvelo has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wildroman2 has joined #ruby
andikr has quit [Ping timeout: 265 seconds]
clamstar has joined #ruby
_justin_ has joined #ruby
zigomir has joined #ruby
_justin has quit [Ping timeout: 252 seconds]
_justin_ is now known as _justin
oo_ has quit [Remote host closed the connection]
bluOxigen has quit []
oo_ has joined #ruby
xcesariox has joined #ruby
nateberkopec has joined #ruby
robbyoconnor has joined #ruby
sinkensabe has joined #ruby
ktun has joined #ruby
bal has quit [Quit: bal]
hermanmunster has quit [Remote host closed the connection]
tharindu has joined #ruby
hermanmunster has joined #ruby
wildroman2 has quit [Remote host closed the connection]
claymore has joined #ruby
oo_ has quit [Remote host closed the connection]
subraminion has quit [Read error: Connection reset by peer]
subraminion has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
wildroman2 has joined #ruby
hermanmunster has quit [Ping timeout: 240 seconds]
zxq9 has quit [Ping timeout: 245 seconds]
bal has joined #ruby
Xeago has quit [Remote host closed the connection]
paradisaeidae has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140505140302]]
seaned has joined #ruby
<vali> port => "9300"
<vali> ups
<vali> morning
<apeiros> moin :)
raspberryfan has quit []
raspberryfan_ is now known as raspberryfan
AnoGen has joined #ruby
tris has joined #ruby
Xeago has joined #ruby
sooik has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
Jnco has quit [Quit: Jnco]
<toretore> raspberries are nice
LekeFly has joined #ruby
wildroman2 has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
oo_ has quit [Remote host closed the connection]
robert_ has joined #ruby
robert_ has quit [Changing host]
robert_ has joined #ruby
raspberr_ has joined #ruby
robert_ has quit [Max SendQ exceeded]
ari-_-e has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
sensen has joined #ruby
rdark has joined #ruby
datafirm has quit [Quit: Computer has gone to sleep.]
Avahey_ has quit [Quit: Connection closed for inactivity]
oo_ has joined #ruby
<atmosx> toretore: true, they are awesome.
<atmosx> morning
hermanmunster has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
razrunelord has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
mikecmpbll has joined #ruby
agrinb has joined #ruby
sinkensa_ has joined #ruby
Xeago has quit [Remote host closed the connection]
<apeiros> moin toretore & atmosx
krz has quit [Ping timeout: 250 seconds]
Shidash has joined #ruby
sinkensa_ has quit [Remote host closed the connection]
sinkensa_ has joined #ruby
wildroman2 has joined #ruby
razrunelord has quit [Ping timeout: 240 seconds]
tharindu has quit [Quit: Leaving...]
sinkensabe has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
ktun has joined #ruby
agrinb has quit [Ping timeout: 252 seconds]
yfeldblu_ has joined #ruby
timonv has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
ktun has quit [Client Quit]
DouweM has quit [Ping timeout: 240 seconds]
sinkensa_ has quit [Ping timeout: 264 seconds]
sk87 has joined #ruby
ari-_-e has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
yfeldblu_ has quit [Ping timeout: 240 seconds]
<toretore> mornin atmosx apeiros
<atmosx> :-)
shiin has joined #ruby
shadoi has quit [Quit: Leaving.]
sooik has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
ktun has joined #ruby
elaptics`away is now known as elaptics
mikecmpbll has joined #ruby
_justin has quit [Quit: _justin]
moritzs has joined #ruby
ghr has joined #ruby
yacks has joined #ruby
yacks has quit [Max SendQ exceeded]
tharindu has joined #ruby
alex88 has joined #ruby
yacks has joined #ruby
elikem has joined #ruby
mercerist has joined #ruby
codeFiend has quit [Ping timeout: 240 seconds]
blackmes1 has joined #ruby
gigo1980 has joined #ruby
nuck has quit [Ping timeout: 276 seconds]
oo_ has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
Burgestrand has joined #ruby
marr has joined #ruby
kitak_ has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
dawe has joined #ruby
nolic has quit [Remote host closed the connection]
oo_ has joined #ruby
hermanmunster has quit [Remote host closed the connection]
kitak_ has joined #ruby
hermanmunster has joined #ruby
sinkensabe has joined #ruby
moritzs has quit [Ping timeout: 250 seconds]
_justin has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
andrewlio has joined #ruby
roolo has joined #ruby
hermanmunster has quit [Ping timeout: 245 seconds]
moritzs has joined #ruby
spyzer has joined #ruby
<spyzer> hey guys does compass run faster on ruby 2.1? I was unable to find benchmarks
bakflash has quit [Remote host closed the connection]
bakflash has joined #ruby
jamto11 has quit [Ping timeout: 258 seconds]
wildroman2 has quit []
<centrx> spyzer, Probably
<centrx> spyzer, The app I tested it on was 25% faster than 2.0
<apeiros> spyzer: just install ruby 2.1 and try? with rvm or similar tools you can switch any time between different rubies
* apeiros curious when rvm will get ruby 2.1.2
sheepman has quit [Read error: Connection reset by peer]
<apeiros> probably today or tomorrow
<Sp4rKy> centrx:
yfeldblum has joined #ruby
predator117 has quit [Ping timeout: 264 seconds]
toretore has quit [Quit: This computer has gone to sleep]
obs has joined #ruby
kaspergrubbe has joined #ruby
blackmes1 has quit [Ping timeout: 276 seconds]
predator117 has joined #ruby
<Burgestrand> RVM is installing 2.1.2 for me at the moment, apeiros
<Burgestrand> Granted, it’s from source, but I’m not sure of what you’re waiting for. (:
timonv has joined #ruby
subraminion has quit [Quit: Computer has gone to sleep.]
kaspergrubbe has quit [Ping timeout: 258 seconds]
krz has joined #ruby
<apeiros> Burgestrand: huh? why does it not show 2.1.2 in the list then? :-O
<apeiros> Burgestrand: ah, you're probably on edge rvm?
<apeiros> I use rvm stable :)
<apeiros> rvm -v --> rvm 1.25.25 (stable)
johng_ has joined #ruby
coderhs has joined #ruby
<apeiros> hm, no, installing rvm head doesn't get me 2.1.2 either :-/
AnoGen has quit []
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AnoGen has joined #ruby
kaspergrubbe has joined #ruby
LekeFly has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
johng_ has quit [Quit: Leaving]
<Burgestrand> apeiros: using 1.25.19
<Burgestrand> I just did `rvm install 2.1.2` and it complied!
funburn has joined #ruby
<apeiros> hm
<apeiros> lets try…
einarj has joined #ruby
<apeiros> hah
<apeiros> nice
<apeiros> thanks Burgestrand, TIL :)
klaut_ has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
<Burgestrand> :)
nuck has joined #ruby
rdark has quit [Ping timeout: 265 seconds]
heftig has joined #ruby
<apeiros> you don't happen to have a twitter handle, Burgestrand?
speakingcode has quit [Ping timeout: 245 seconds]
<Burgestrand> apeiros: I’m always named Burgestrand everywhere ;)
<Burgestrand> apeiros: I don’t use twitter much though. Too much noise.
<apeiros> evil twitter doesn't autocomplete your nick for me :(
datafirm has joined #ruby
<apeiros> you know, in my dialect, your name means "beach of castles" :)
greenarrow has joined #ruby
<Burgestrand> apeiros: it does in Swedish too, but Burg isn’t used in regular speach nowadays
jenskarlsen_ has joined #ruby
bkparso has quit [Ping timeout: 250 seconds]
jenskarlsen has quit [Ping timeout: 250 seconds]
jenskarlsen_ is now known as jenskarlsen
<Burgestrand> speach?
pu22l3r has joined #ruby
<Burgestrand> Ha.
<apeiros> speech
<apeiros> sbeach
RubyPanther has quit [Ping timeout: 250 seconds]
<apeiros> heh, funny. you know how that name came to be?
<Burgestrand> Mine?
<apeiros> yes
predator117 has quit [Ping timeout: 255 seconds]
<Burgestrand> Yeah, it’s the concatenation of the surnames of my parents, but I write it together because it’s convenient on the internet
<apeiros> your parents are named "castle" and "beach"? :D
<DefV> jo/4
<apeiros> that's awesome
<Burgestrand> Burge, and Strand, yeah!
<Burgestrand> In reality I have two surnames, which tend to mess up a lot of governmental computer systems
<Burgestrand> It isn’t that uncommon, so it’s a bit weird they don’t handle it better…
<apeiros> ^^
datafirm has quit [Ping timeout: 265 seconds]
<apeiros> names and computers… always an issue
<apeiros> swiss interbanking communication can't handle first+lastname > 35 chars
<Burgestrand> Hah.
<apeiros> our spanish and indian customers are so happy about that
<Burgestrand> I can imagine.
bkparso has joined #ruby
<Burgestrand> There is a really nice article about names in programming (and it’s not the “falsehoods programmers believe about names”), but I can’t seem to find it.
pu22l3r has quit [Ping timeout: 245 seconds]
sski has joined #ruby
kevinykc_ has quit [Read error: Connection reset by peer]
fgo has quit [Remote host closed the connection]
davedev24 has joined #ruby
kevinykchan has joined #ruby
predator117 has joined #ruby
<apeiros> :-/ content negotiation for language, and no obvious way to explicitly get the english text
<apeiros> ah, found it
Martxel has joined #ruby
RubyPanther has joined #ruby
kitak_ has quit [Remote host closed the connection]
Martxel has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 276 seconds]
SHyx0rmZ has joined #ruby
shredding has joined #ruby
predator117 has quit [Ping timeout: 240 seconds]
kitak_ has joined #ruby
psyko666 has quit [Remote host closed the connection]
workmad3 has joined #ruby
predator117 has joined #ruby
spyzer has quit [Ping timeout: 240 seconds]
timonv_ has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
elaptics is now known as elaptics`away
centrx has quit [Quit: All this computer hacking is making me thirsty]
subraminion has joined #ruby
subraminion has quit [Remote host closed the connection]
subraminion has joined #ruby
timonv_ has quit [Remote host closed the connection]
nateberkopec has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
klaut has joined #ruby
elikem has quit [Quit: elikem]
robert_ has joined #ruby
robert_ has quit [Changing host]
robert_ has joined #ruby
connor_g1odwolf has joined #ruby
Muz_ is now known as Muz
keen_ has quit [Ping timeout: 265 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
workmad3 is now known as wm3|away
connor_goodwolf has quit [Ping timeout: 245 seconds]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ChangJooPark has quit [Ping timeout: 250 seconds]
ChangJooPark has joined #ruby
LekeFly has joined #ruby
funburn has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
DeusTron has joined #ruby
elikem has joined #ruby
roadie has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
yo61_ is now known as yo61
Akuma has quit [Ping timeout: 250 seconds]
connor_g1odwolf is now known as connor_goodwolf_
timonv has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
pduersteler has joined #ruby
Lucky_Red has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
Symbiosisz has joined #ruby
ikaros has joined #ruby
kahrl has joined #ruby
makara has joined #ruby
funburn has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
mehlah has joined #ruby
kitak_ has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
SolarSailor has joined #ruby
tkuchiki_ has joined #ruby
kitak_ has joined #ruby
AlexRussia has joined #ruby
wm3|away is now known as workmad3
tkuchiki has quit [Ping timeout: 255 seconds]
sinkensabe has quit [Ping timeout: 264 seconds]
Akuma has joined #ruby
jhass|off is now known as jhass
kevinykchan has quit [Read error: Connection reset by peer]
<kahrl> is there a library that allows me to do exact arithmetic with square roots? Similar to 'rational', but not having to use floats for roots
<kahrl> for example: a = 1 + sqrt(2); b = 3 + sqrt(8); puts a*b => 7 + 5*sqrt(2)
kevinykchan has joined #ruby
<kahrl> or perhaps something that represents algebraic numbers as their minimal polynomial
<apeiros> I don't know a library, but a term which might help you searching one: I think this is called symbolic arithmetics
<kahrl> thanks, I'll have a look
Kazii has joined #ruby
razrunelord has joined #ruby
agrinb has joined #ruby
seaned has quit [Quit: Zzzzzz....]
agrinb has quit [Ping timeout: 252 seconds]
coderhs has quit [Ping timeout: 265 seconds]
razrunelord has quit [Ping timeout: 276 seconds]
kevinykc_ has joined #ruby
yfeldblum has joined #ruby
fgo has joined #ruby
kevinykchan has quit [Ping timeout: 258 seconds]
CADBOT has joined #ruby
moritzs has quit [Ping timeout: 265 seconds]
<CADBOT> Anyone ever have issues with rails generate minitest:install taking forever?
yfeldblum has quit [Remote host closed the connection]
Xeago_ has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
shvelo has quit [Ping timeout: 250 seconds]
Xeago has quit [Ping timeout: 246 seconds]
kiri has quit [Read error: Connection reset by peer]
shvelo has joined #ruby
logius has joined #ruby
fgo has joined #ruby
fgo has quit [Remote host closed the connection]
sinkensabe has joined #ruby
kiri has joined #ruby
Martxel has joined #ruby
logius has quit [Remote host closed the connection]
kevinykc_ has quit [Read error: Connection reset by peer]
fgo has joined #ruby
kevinykchan has joined #ruby
__class__ has quit [Ping timeout: 250 seconds]
sinkensabe has quit [Ping timeout: 276 seconds]
ayaz has joined #ruby
decoponio has joined #ruby
__class__ has joined #ruby
nateberkopec has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
CADBOT has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
_justin has quit [Quit: _justin]
Kneferilis has quit [Read error: Connection reset by peer]
pduersteler has quit [Quit: Page closed]
yfeldblum has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
fgo has quit [Remote host closed the connection]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Morkel_ has joined #ruby
danshultz has joined #ruby
Morkel has quit [Ping timeout: 250 seconds]
Morkel_ is now known as Morkel
_justin has joined #ruby
RubyPanther has quit [Ping timeout: 252 seconds]
jamto11 has quit [Ping timeout: 258 seconds]
shiin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
DeusTron has left #ruby [#ruby]
chrisseaton has joined #ruby
mercwithamouth has joined #ruby
aiguu has joined #ruby
<aiguu> how can I map array of strings into a hash map?
maximski has joined #ruby
<aiguu> I want to take Hash[["a", "foo"]] and convert to { "a" => "foo" }
<aiguu> but work on variable lengths of pairs
sinkensabe has joined #ruby
<Hanmac1> aiguu: Hash[*["a", "foo"]]
<aiguu> brilliant, thanks!
<aiguu> how does that work
ktun has joined #ruby
<Hanmac1> with evil black magic
Hanmac1 is now known as Hanmac
danshultz has quit [Ping timeout: 264 seconds]
<j416> > variable lengths of pairs
<j416> a pair is by definition length 2
eka has joined #ruby
<j416> o_O
nari has quit [Ping timeout: 245 seconds]
tesuji has joined #ruby
<Mon_Ouie> But you can have more than one pair
flops has joined #ruby
<aiguu> I just made a simple arg parser for argv
<aiguu> for a one off script
<aiguu> -t someemail -f somesender -b some body
shiin has joined #ruby
<aiguu> worked
phoo1234567 has joined #ruby
<j416> aiguu: as long as all options have one argument.. hm :)
jxf has quit [Ping timeout: 258 seconds]
<j416> aiguu: thanks though, you reminded me to improve my own option parser
jamespw has joined #ruby
moritzs has joined #ruby
tjbiddle has joined #ruby
karupa is now known as zz_karupa
bal has quit [Quit: bal]
nfk has joined #ruby
<tjbiddle> Can anyone help me out with OAuth1 in Ruby? I'm looking at a Python app that someone wrote and am trying to mimic the request in Ruby. They're using Python requests and it's essentially just: requests.get(self.server_url+url,params=payload,auth=OAuth1(client_key, client_secret),verify=False)
chrisseaton has quit []
charliesome has joined #ruby
razrunelord has joined #ruby
<workmad3> tjbiddle: https://rubygems.org/gems/oauth may help you
<tjbiddle> workmad3: Read through just about every possible iteration of Google results. I'm starting to wonder if they don't have a proper OAuth implementation or something and they're just hacking around it.
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kitak_ has quit [Remote host closed the connection]
<workmad3> tjbiddle: in your python app?
sski has quit [Remote host closed the connection]
<tjbiddle> But thanks. I just need to get some sort of ping back to see if an app is functional - I think I'll just do that by seeing if it gives a proper error for me not sending in stuff rather than fully implementing it.
sski has joined #ruby
<workmad3> tjbiddle: because there are plenty of oauth implementations in ruby...
<tjbiddle> workmad3: I mean I don't think that the service I'm working with has it implemented correctly. The python app has no references to call backs or tokens of any sort. Just the consumer key and secret.
<tjbiddle> Yet it works fine.
<workmad3> tjbiddle: ah, ok :)
kung has joined #ruby
<tjbiddle> I was just given a few files that said "Hey - see if this works - do what you can with it."
<tjbiddle> lol
<workmad3> ah, the classic way to start a new project... :D
TaxmanBD has joined #ruby
bal has joined #ruby
<tjbiddle> Yeeup :p Heh
kitak_ has joined #ruby
Shidash has quit [Quit: Leaving.]
kitak_ has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
kitak_ has joined #ruby
sensen has quit [Quit: leaving]
razrunelord has quit [Ping timeout: 258 seconds]
RaptorJesus has quit [Ping timeout: 272 seconds]
fgo has joined #ruby
askldjuio2 has quit [Ping timeout: 255 seconds]
sski has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 265 seconds]
Ardenzi has joined #ruby
ndrei has joined #ruby
raspberr_ has quit []
raspberryfan has quit [Quit: raspberryfan]
_justin has quit [Quit: _justin]
subraminion has quit [Read error: Connection reset by peer]
subraminion_ has joined #ruby
shredding has quit [Quit: shredding]
ta has quit [Quit: Leaving...]
ta has joined #ruby
ktun has joined #ruby
sski has joined #ruby
nari has joined #ruby
Deele has joined #ruby
askldjuio2 has joined #ruby
phantasm66 has joined #ruby
thomasxie has quit [Quit: Leaving.]
TaxmanBD has quit [Ping timeout: 264 seconds]
nateberkopec has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
doodlehaus has joined #ruby
BucOder has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
JasmeetQA has quit [Read error: Connection reset by peer]
funburn has quit [Ping timeout: 245 seconds]
zoraj has quit [Remote host closed the connection]
moritzs has quit [Ping timeout: 250 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
Mongey_ has quit [Ping timeout: 240 seconds]
mercerist has quit [Quit: Computer has gone to sleep.]
ktun has quit [Read error: Connection reset by peer]
flops has quit [Quit: leaving]
ktun has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
atmosx has quit [Quit: WeeChat 0.4.4-dev]
sooik has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
lw has joined #ruby
blackmes1 has joined #ruby
shiin has quit [Ping timeout: 265 seconds]
tkuchiki_ has quit [Remote host closed the connection]
root3d has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
<yo61> Did "gem build" behaviour change in 2.x so the current dir is not in the include path?
<workmad3> yo61: ruby behaviour changed in 1.9.2 so that '.' wasn't on the include path by default
yfeldblu_ has joined #ruby
moritzs has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
<yo61> I have 1.9.3 on a RHEL 6 box, and the sam,e ruby (with rbenv) on my mbp (OSX)
<yo61> The RHEL box has gem 1.8.23, my Mac has 2.2.2
<yo61> the project builds on RHEL but not on my Mac
sooik has quit [Ping timeout: 265 seconds]
atmosx has joined #ruby
<yo61> What's the "right way" to add the project dir to the include path when I build the gem?
<workmad3> yo61: may be worth asking in #rubygems if no one else here has an idea...
spyderman4g63 has joined #ruby
greenarrow has quit [Quit: 500]
subraminion_ has quit [Quit: Lingo - http://www.lingoirc.com]
shock_one has joined #ruby
subraminion has joined #ruby
<yo61> k
<yo61> thx
blackmes1 has quit [Ping timeout: 264 seconds]
<shock_one> How would I avoid this duplication if I can't edit the class' signature? TransferInfo.new(transfer: transfer, association: association, scheduled_at: scheduled_at)
oo_ has quit [Remote host closed the connection]
askldjuio2 has quit [Remote host closed the connection]
<apeiros> shock_one: what duplication?
<shock_one> apeiros, transfer: transfer and such.
<apeiros> eh, that's not duplication
askldjuio2 has joined #ruby
spyderman4g63 has quit [Read error: No route to host]
<apeiros> one is an object (Symbol key), one is a local variable name
<shock_one> apeiros, but it doesn't seem nice.
<shock_one> I understand.
<apeiros> shock_one: use positional arguments
<shock_one> apeiros, I can't edit TransferInfo.
<apeiros> is it frozen?
<shock_one> apeiros, it's part of a library.
<apeiros> yeah, that's != can't edit
<workmad3> shock_one: you could also use shorter variable names... 'TransferInfo.new(transfer: t, association: a, scheduled_at: s)'
<apeiros> you can do def TransferInfo.positional_new(transfer, association, scheduled_at); new(transfer: transfer, association: association, scheduled_at: scheduled_at); end
<shock_one> workmad3, when I see single letter variables, I pull out my magnum.
root3d has quit [Ping timeout: 240 seconds]
<shock_one> apeiros, sure, but it's kind of dirty.
kyb3r__ has quit [Quit: Leaving]
<apeiros> shock_one: ok. then the answer is: no
<workmad3> shock_one: depends on how long the variables are in existence for, IMO
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> all other variants are equally dirty
root3d has joined #ruby
TaxmanBD has joined #ruby
<shock_one> workmad3, in my opinion the only allowed single letter varibles are counters. Maybe also some corner cases like cartesian dimensions.
<apeiros> btw., is binding_of_caller still only a hack?
flughafen has joined #ruby
lw has quit [Quit: s]
mercerist has joined #ruby
<apeiros> seems like. at least it's not in ruby 2.1.2
sk87 has joined #ruby
<workmad3> shock_one: I'd consider them in a method where they only existed for a single line and were immediately passed on to keyword args to restore their meaning
ktun has joined #ruby
<workmad3> shock_one: but I don't know if that's your situation or not
greenarrow has joined #ruby
<shock_one> workmad3, yes, pretty much. But I accept them as parameters and pass to this constructor.
doodlehaus has quit [Remote host closed the connection]
<workmad3> shock_one: mostly though, I just accept the hit of duplicated naming when I use kwargs like that :)
<tagrudev> workmad3, !friday
<workmad3> tagrudev: ... I don't want to click the link... and yet I feel compelled to!!!
gregf has joined #ruby
<workmad3> save... me....
<tagrudev> I waiting for you the whole day :D
<tagrudev> am&
<apeiros> shock_one: another ugly hack: TransferInfo.new(**binding.lvar_hash(:transfer, :association, :scheduled_at)
<apeiros> personally I agree with workmad3 - accept the duplication with kwargs
<workmad3> apeiros: heh :)
<workmad3> tagrudev: :(
<apeiros> implementation of the above hack:
<apeiros> class Binding; def lvar_hash(*slice); (slice.empty? ? self.eval("local_variables") : slice).map { |name| [name, self.local_variable_get(name)] }.to_h; end; end
<apeiros> why? BECAUSE I CAN!
pu22l3r has joined #ruby
* apeiros runs off with an evil laughter
<tagrudev> workmad3, I know you're listening right now
<workmad3> tagrudev: nah, I managed to resist :D
askldjuio2 has quit [Ping timeout: 245 seconds]
<tagrudev> hahah good
<shock_one> apeiros, in my MRI there is no lvar_hash.
<apeiros> shock_one: see above
<shock_one> Oh, yes. Sorry.
agrinb has joined #ruby
razrunelord has joined #ruby
<apeiros> I'm sure you could even do: TransferInfo.send_with(binding, :new)
<apeiros> muaha, of course you can… implementation upcoming
<shock_one> apeiros, you're right I'll just name those things twice. At least it's understandable.
<apeiros> great, you've seen the light :)
Mongey has joined #ruby
<apeiros> you won't stop me now from pasting that atrocity, though :-p
Kneferilis has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
<shock_one> apeiros, workmad3, thank you very much.
<apeiros> not tried yet, but should work :^)
agrinb has quit [Ping timeout: 276 seconds]
askldjuio2 has joined #ruby
razrunelord has quit [Ping timeout: 255 seconds]
iceden has quit [Read error: Connection timed out]
seaned has joined #ruby
edmellum has joined #ruby
seaned has quit [Client Quit]
yalue has joined #ruby
davedev24 has quit [Remote host closed the connection]
dumdedum has quit [Quit: foo]
<apeiros> muaha, works. the gist had a bug, though. updated :)
davedev24 has joined #ruby
<shock_one> apeiros, has anybody told you that you're crazy yet?
<apeiros> why do you think I'd need somebody to tell me that?
danshultz has joined #ruby
<workmad3> apeiros: positive reinforcement...
<apeiros> ah
twiceaday has joined #ruby
<apeiros> yes. please reinforce me positively :D
<workmad3> apeiros: you crazy...
subraminion has quit [Quit: Computer has gone to sleep.]
<workmad3> apeiros: btw, that gist is either the product of pure (evil) genius, or the dark shadows of insanity...
<workmad3> maybe both :)
<apeiros> workmad3: HE MADE ME DO IT!
* apeiros points at shock_one
twiceday has quit [Ping timeout: 240 seconds]
shredding has joined #ruby
<apeiros> the difference between genius and insanity is whether it pays your checks…
<workmad3> apeiros: if shock_one told you to run around setting fire to daffodils, would you do it? :P
<apeiros> workmad3: of course. don't tell me you wouldn't?!?
<workmad3> ... ok... point
Bira_ has joined #ruby
<apeiros> on another question - who or what's a daffodil?
<workmad3> apeiros: it's a type of flower
<apeiros> WP thinks it's a car
davedev24 has quit [Ping timeout: 240 seconds]
<workmad3> apeiros: another name for various types of narcissus
zxq9 has joined #ruby
kevinykchan has joined #ruby
charliesome_ has joined #ruby
<apeiros> workmad3: if caller_of_binding was a thing, I could write it nicer (on the surface, that is)
<apeiros> err, binding_of_caller
tjbiddle has quit [Quit: tjbiddle]
* workmad3 is now trying to figure out what caller_of_binding would do
<workmad3> I think that's a lunch task :)
shvelo has quit [Ping timeout: 264 seconds]
tjbiddle has joined #ruby
<apeiros> removes the need to pass the binding around
<apeiros> def foo(a_binding) a_binding.stuff… end; foo(binding) --> def foo(a_binding=binding_of_caller); …; end; foo()
chrisseaton has joined #ruby
yalue has quit [Ping timeout: 276 seconds]
yalue has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> shock_one: while my code is beyond sanity to use, it would IMO be nice if there was syntax to pull kwargs from the binding
ktun has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
m00nlight has joined #ruby
<apeiros> shock_one: that's on the other side of things
<apeiros> and does not help you with your case
<apeiros> a syntax solution could look somewhat like this: foo(*&(a, b, c)) - which would be evaluated as: foo(a: a, b: b, c: c)
<apeiros> but sigils-- :-S
<shock_one> apeiros, yeah, my bad. I think thou shan't rely on variable names.
<apeiros> shock_one: I think that's actually fine
<apeiros> I mean you know your local context
rebelshrug has joined #ruby
tjbiddle has quit [Ping timeout: 250 seconds]
<workmad3> shock_one: the reason I don't mind the duplication with kwargs is partly because of that... I don't see it as true duplication, because either the kwarg name or the local var name could be changed without impacting the other
<shock_one> apeiros, maybe I should build a hash instead of assigning?
<apeiros> but I'm not sure it'd be wise to allow automatic pulling, i.e., what my code did in syntax form: foo(*&) automatically pulling the kwargs
davedev24 has joined #ruby
<apeiros> workmad3: yeah, hence my initial "that's not duplication". I see it the same way.
<apeiros> also I like it when the code is explicit
<apeiros> but then again, I'm a lazy bastard, which is why I ponder making above syntax a feature request on bugs.ruby-lang.org
nateberkopec has joined #ruby
momomomomo has joined #ruby
<workmad3> apeiros: I like to wonder how people who remove that sort of duplication plan on dealing with all the 'duplicated' letters in their codebase :)
<apeiros> workmad3: makros!
<workmad3> :)
askldjuio2 has quit [Ping timeout: 240 seconds]
<apeiros> damn you!
<apeiros> now I'm thinking about abusing whitequarks parser to implement makros
<apeiros> no, no, no. no time for this.
<workmad3> :D
<apeiros> especially because I would *never* use it
<apeiros> I think makros are born out of desparation.
<shock_one> ☎ = make_phonē
<workmad3> I take it you mean something like Cs pre-processor macros, yeah
<workmad3> ?
<apeiros> yes
<workmad3> not lisp macros
<apeiros> oh, macros
<apeiros> english, y u no k?
<apeiros> not familiar enough with lisp :-|
stef_204 has joined #ruby
<workmad3> lisp macros are ways of rewriting s-expressions
<workmad3> while C pre-processor macros are purely lexical substitution
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shock_one> workmad3, yeah, very explaining. Lisp macros is code that generates code.
<apeiros> well, I guess in lisp it's quite a bit different, since there, code is data. and the macro is at runtime
<apeiros> so it's closer to rubys metaprogramming
<workmad3> apeiros: pretty much :) but it can go a step further and also change valid syntax
<apeiros> has its own demerits, but is IMO far less horrendous than C style preprocessor macros
<workmad3> shock_one: :D
<shock_one> very convenient to make DSLs. For example, you can have nice SQL syntax with macros. http://sqlkorma.com/docs
doodlehaus has joined #ruby
<shock_one> Or you can make a program that makes programs.
sqwirl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ktun has joined #ruby
jamto11 has joined #ruby
<workmad3> apeiros: I think ruby would be a step closer to lisp macros if we had a way of defining a method that could pass expressions as arguments and determine when (or even if) to evaluate them
ktun has quit [Client Quit]
<workmad3> or rather, a nice way that didn't involve remembering, as the caller, to wrap the expression in a lambda :)
<apeiros> workmad3: I'd very much like it if ruby would treat its own code as data
<shock_one> workmad3, it's called "call by name evaluation strategy".
<workmad3> shock_one: you and your fancy terminology :P (thanks btw :) )
<shock_one> workmad3, it has a disadvantage that the same piece of code is executed multiple times.
yacks has quit [Ping timeout: 264 seconds]
<banister> workmad3 ruby used to be able to re-evaluate an expression even if it wasn't wrapped in a lambda in 1.8 i think
Avahey_ has joined #ruby
<banister> i think it was called retry
<banister> only worked for expressions passed as method args tho
<banister> so u could actually implement a while() loop construct as a method iirc
doodlehaus has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 255 seconds]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
agjacome has joined #ruby
workmad3 is now known as wm3|away
<shock_one> banister, do you know why it was removed?
ndrei has quit [Ping timeout: 264 seconds]
rdark has joined #ruby
<banister> shock_one cos it's creepy
<banister> shock_one it can restart a method from the beginning again
kpshek has joined #ruby
<banister> shock_one and redo / break / next are weird enough
ndrei has joined #ruby
sinkensabe has quit [Ping timeout: 265 seconds]
maximski has quit []
<shock_one> banister, it looks as if it could be implemented with tail recursion.
<shock_one> I mean #repeat_while
timonv has quit [Remote host closed the connection]
tharindu has quit [Read error: Connection reset by peer]
lkba has joined #ruby
<shock_one> No, I'm wrong. We don't have that expression inside the method.
tharindu has joined #ruby
rOOb has quit [Ping timeout: 264 seconds]
`ph8 is now known as ph8
ph8 has quit [Changing host]
ph8 has joined #ruby
funburn has joined #ruby
benzrf|offline is now known as benzrf
mercwithamouth has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
pezhore has joined #ruby
sambao21 has joined #ruby
sinkensabe has joined #ruby
<pezhore> Anyone have a second to try and help a noob out? I'm trying to get Grape working with ruby on rails, but i'm getting an error I don't know how to troubleshoot: /home/pezhore/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:464:in `load_missing_constant': Unable to autoload constant Ping, expected /home/pezhore/wrapper/app/api/v2/ping.rb to define it (LoadError)
aspiers has joined #ruby
Rahul_Roy has joined #ruby
root3d has quit [Ping timeout: 250 seconds]
maximski has joined #ruby
zz_karupa is now known as karupa
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
subraminion has joined #ruby
sk87 has joined #ruby
chrisseaton has quit []
subraminion has quit [Remote host closed the connection]
tjbiddle has joined #ruby
tjr9898 has joined #ruby
benzrf is now known as benzrf|offline
subraminion has joined #ruby
subraminion has quit [Remote host closed the connection]
subraminion has joined #ruby
mark_locklear has joined #ruby
vpretzel_ is now known as vpretzel
jamto11 has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
garndt has joined #ruby
razrunelord has joined #ruby
tjbiddle has quit [Ping timeout: 240 seconds]
funburn has quit [Quit: funburn]
mr_snowf1ake has joined #ruby
ktun has joined #ruby
yfeldblu_ has quit [Ping timeout: 255 seconds]
noop has joined #ruby
karupa is now known as zz_karupa
codeFiend has joined #ruby
zoraj has joined #ruby
benzrf|offline is now known as benzrf
razrunelord has quit [Ping timeout: 252 seconds]
Lucky_Red has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
paulfm has joined #ruby
tjr9898 has quit [Remote host closed the connection]
funburn has joined #ruby
BucOder has quit [Read error: Connection reset by peer]
TaxmanBD has quit [Ping timeout: 240 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
tjr9898 has joined #ruby
codeFiend has quit [Ping timeout: 250 seconds]
aiguu has quit [Ping timeout: 276 seconds]
dangerousdave has joined #ruby
iasj has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
moritzs has quit [Ping timeout: 258 seconds]
Megtastique has joined #ruby
kitak_ has quit [Remote host closed the connection]
iasj has left #ruby [#ruby]
iasj has joined #ruby
benzrf|offline is now known as benzrf
Rix has joined #ruby
Xeago_ has quit [Remote host closed the connection]
dblessing has joined #ruby
tziOm has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
Nahra has quit [Remote host closed the connection]
obs has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 240 seconds]
mityaz has joined #ruby
obs has joined #ruby
cocotton has joined #ruby
noop has quit [Read error: Connection reset by peer]
Abhijit has joined #ruby
<Abhijit> hi
<Abhijit> i am getting "nil" insteaf of h for the function "h" in irb. code here http://pastebin.ubuntu.com/7421321/ help please?
<ddv> Abhijit: nothing wrong with that code
eighthbit has joined #ruby
<tobiasvl> Abhijit: a function definition doesn't return the function
SCommette has joined #ruby
<ddv> Abhijit: what ruby version?
<Abhijit> ddv, tobiasvl this tut https://www.ruby-lang.org/en/documentation/quickstart/2/ tells me that i should git :h
<tobiasvl> "This response could be => nil for Ruby 2.0 and earlier versions. But, it’s not important here, so let’s go on."
gregf has joined #ruby
<Abhijit> ddv, ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
<ddv> Abhijit: depends on ruby version I guess
<ddv> 2.1.1 returns :h
jastix has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
<ddv> Abhijit: also don't use 1.8.7
<Abhijit> okey. i wil use 1.9.1 is that version okey?
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
phoo1234567 has quit [Quit: Leaving]
pika_pika has joined #ruby
<Abhijit> ddv, tobago how do i make irb run in ruby 1.9.1 i have three ruby versions installed.
mrmargolis has joined #ruby
elaptics`away is now known as elaptics
<ddv> Abhijit: how did you install ruby?
vpretzel is now known as vpretzel|retro
snath has quit [Ping timeout: 240 seconds]
<ddv> Abhijit: try using rbenv/rvm or some other tool
<Abhijit> ddv, i dont remember. its too long ago.
<Abhijit> okey.
yfeldblum has joined #ruby
lw has joined #ruby
<ddv> Abhijit: I would use the latest ruby if possible
<Abhijit> ok
Guest68077 is now known as dreamchaser
dreamchaser has quit [Changing host]
dreamchaser has joined #ruby
Xeago has joined #ruby
kevinykc_ has joined #ruby
justin__ has joined #ruby
blackmes1 has joined #ruby
meatherly has joined #ruby
iasj has quit [Ping timeout: 264 seconds]
justin__ has quit [Client Quit]
Zenigor has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
VTLob has joined #ruby
meatherl_ has joined #ruby
kevinykchan has quit [Ping timeout: 255 seconds]
rebelshrug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sailias has joined #ruby
instantaphex has joined #ruby
funburn has quit [Ping timeout: 252 seconds]
Abhijit has quit [Quit: Bye.]
Darryl has quit [Quit: Connection closed for inactivity]
meatherly has quit [Ping timeout: 245 seconds]
endash has joined #ruby
meatherl_ has quit [Ping timeout: 240 seconds]
Zenigor has quit [Remote host closed the connection]
noop has joined #ruby
nateberkopec has quit [Quit: Leaving...]
cescalante is now known as ce_afk
pezhore has quit [Quit: leaving]
blackmes1 has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 0.4.3]
kitak has quit [Read error: Connection reset by peer]
kitak has joined #ruby
forcefsck has joined #ruby
forcefsck has quit [Read error: Connection reset by peer]
meatherly has joined #ruby
Xeago has joined #ruby
meatherly has quit [Read error: Connection reset by peer]
meatherly has joined #ruby
mjsmith2 has joined #ruby
jonno11 has joined #ruby
wm3|away is now known as workmad3
jamto11 has joined #ruby
Nahra has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
doodlehaus has joined #ruby
funburn has joined #ruby
mary5030 has joined #ruby
subraminion has quit [Quit: Computer has gone to sleep.]
b00stfr3ak has joined #ruby
liviu10 has joined #ruby
<liviu10> #python-unregistered :Cannot send to channel
<liviu10> what's the advantage of using a semaphore over a monitor
aganov has quit [Quit: Leaving]
danman_ has joined #ruby
jherbst has joined #ruby
Xeroa has joined #ruby
jj has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
kevinykc_ has quit [Read error: Connection reset by peer]
Nahra has quit [Remote host closed the connection]
havenwood has joined #ruby
kevinykchan has joined #ruby
sooik has joined #ruby
rudisimo has joined #ruby
ndrei has joined #ruby
Nahra has joined #ruby
tharindu is now known as tharindu|away
tkuchiki has joined #ruby
St_Marx has quit [Remote host closed the connection]
end_guy has quit [Read error: Connection reset by peer]
end_guy has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
dh64 has quit [Quit: Konversation terminated!]
Mon_Ouie has quit [Ping timeout: 250 seconds]
shock_one has quit [Ping timeout: 252 seconds]
blackmes1 has joined #ruby
makara has quit [Ping timeout: 245 seconds]
flowerhack has joined #ruby
lukec has joined #ruby
sambao21 has joined #ruby
Megtastique has quit []
razrunelord has joined #ruby
subraminion has joined #ruby
subraminion has quit [Remote host closed the connection]
subraminion has joined #ruby
paulfm has quit []
sferrini has joined #ruby
epochwolf is now known as epochlynx
jj has quit [Quit: Page closed]
sambao21 has quit [Client Quit]
razrunelord has quit [Ping timeout: 252 seconds]
ffranz has joined #ruby
zz_jrhorn424 is now known as jrhorn424
CorpusCallosum has joined #ruby
timonv has joined #ruby
Zenigor has joined #ruby
njs126 has quit [Ping timeout: 264 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Zenigor has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
kitak has quit [Remote host closed the connection]
zachallett has joined #ruby
Xeago has joined #ruby
noop has quit [Ping timeout: 240 seconds]
sooik has quit [Ping timeout: 264 seconds]
Abhijit has joined #ruby
<Abhijit> is there not any inbuilt function to check if a string is number of not? i got strting abcd111 when in loop i detect 111 i need to operate on it?
dangerousdave has quit [Read error: Connection reset by peer]
sferrini has left #ruby [#ruby]
lmickh has joined #ruby
kevinykc_ has joined #ruby
treehug88 has joined #ruby
davedev24 has quit [Read error: Connection reset by peer]
sooik has joined #ruby
sambao21 has joined #ruby
davedev24 has joined #ruby
nateberkopec has joined #ruby
enebo has joined #ruby
greenarrow has quit [Quit: 500]
kevinykchan has quit [Ping timeout: 255 seconds]
anaeem1_ has quit [Remote host closed the connection]
sk87 has joined #ruby
sailias has quit [Quit: Leaving.]
dangerousdave has joined #ruby
sailias has joined #ruby
SilkFox has joined #ruby
doodleha_ has joined #ruby
<havenwood> Abhijit: Well #to_i only works for contiguous digits at the beginning of the String. Might use regex.
alexju has joined #ruby
<havenwood> 'abcd111'[/\d*/].to_i
paulfm has joined #ruby
njs126 has joined #ruby
jonfer has joined #ruby
<Abhijit> havenwood, to_i converts to integer, right? i just need to check if given string is integer or not?
jonfer is now known as XThief
thomasxie has joined #ruby
mofofofo has joined #ruby
<havenwood> Abhijit: like if it contains any digit?
doodlehaus has quit [Ping timeout: 240 seconds]
jobewan has joined #ruby
<workmad3> Abhijit: you mean like 'if str =~ /\d+/' (for contains any digit) or 'if str =~ /\A\d+\z/' (for contains just digits)
<Abhijit> havenwood, workmad3 no.
<havenwood> Abhijit: any digit or only digits?
<havenwood> Something else?
<Abhijit> input is abxch12354. need to loop thourght single string. first a then b then x then c so on. while looping throught, if i found integer need to perform some task. for that need to check if that a is interer, x is interer or not?
kaspergrubbe has quit [Remote host closed the connection]
SilkFox has quit [Ping timeout: 240 seconds]
funburn has quit [Ping timeout: 252 seconds]
pu22l3r has joined #ruby
<Abhijit> havenwood, workmad3 ^
<apeiros> Abhijit: str.each_char + what workmad3 said (regex)
<workmad3> Abhijit: this would work: https://gist.github.com/workmad3/258e89ad642d640cc404
<apeiros> alternatively, and probably faster: String#scan
concordiadiscors has joined #ruby
tharindu|away is now known as tharindu
<workmad3> (I did a case because I'm anticipating you're going to want to do different things depending on which digit it is... if not, just 'do_stuff(c) if c =~ /\d/
<Abhijit> 1.is_a? Integer is what i was looking for
<apeiros> >> "hello123world789".scan(/\d/) do |d| puts d end
<eval-in_> apeiros => 1 ... (https://eval.in/148733)
pu22l3r has quit [Client Quit]
<workmad3> Abhijit: no it's not
<apeiros> (check the link ^)
blackmes1 has quit [Ping timeout: 240 seconds]
<workmad3> Abhijit: "1" (which is what you'll get from .each_char) will never be an Integer
<apeiros> Abhijit: a *string* is never an integer
PatMakesThings has joined #ruby
troulouliou_dev has joined #ruby
thesheff17 has joined #ruby
<havenwood> Strintegers and Intestrings, oh my!
<apeiros> .is_a? tests whether an object is an instance of a given class
<Abhijit> workmad3, oh. ok. got it.
<apeiros> and a string is never an instance of integer. you need to convert it first.
kitak has joined #ruby
thesheff17 has quit [Client Quit]
thesheff17 has joined #ruby
<Abhijit> workmad3, that works perfectily. thanks.
LekeFly has quit [Ping timeout: 255 seconds]
<Abhijit> apeiros, okey.
havenwood has quit []
PatMakesThings has quit [Client Quit]
iceden has joined #ruby
mikee_ has joined #ruby
SolarSailor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Abhijit> how to "access" hash table intre using variable?
<Abhijit> entry
mikee_ has quit [Client Quit]
<Abhijit> dict["variable here"]
kaspergrubbe has joined #ruby
mikee_ has joined #ruby
mikee_ has quit [Client Quit]
<Abhijit> nvm.
<apeiros> dict[variable_here]
havenwood has joined #ruby
thesheff17 has quit [Client Quit]
mikee_ has joined #ruby
<Abhijit> yah.
mikee_ has quit [Client Quit]
thesheff17 has joined #ruby
jespada has joined #ruby
thesheff17 has quit [Read error: Connection reset by peer]
linojon has joined #ruby
poguez_ has joined #ruby
alex88 has quit [Read error: Connection reset by peer]
thesheff17 has joined #ruby
<xcesariox> apeiros: bro welcome back, need to ask you something about == and !=
sailias has quit [Read error: Connection reset by peer]
alex88 has joined #ruby
<xcesariox> apeiros: can you give me an example when to use `==` and when to use `!=` ?
chipotle has quit [Quit: cya]
<tobiasvl> == is equality, != is inequality. they're opposites
Darryl has joined #ruby
SCommette has joined #ruby
<tobiasvl> == equal to
<tobiasvl> != not equal to
failshell has joined #ruby
sailias has joined #ruby
thesheff17 has quit [Client Quit]
<xcesariox> tobiasvl: so in what kind of circumstances do i use this two? can give me an example in web applications?
thesheff17 has joined #ruby
snath has joined #ruby
paulfm has quit []
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
kevinykc_ has quit [Read error: Connection reset by peer]
rostam has quit [Remote host closed the connection]
<havenwood> xcesariox: to check if two things are equal or not
kevinykchan has joined #ruby
chipotle has joined #ruby
<tobiasvl> a pretty standard thing you need to check sometimes in all kinds of applications
<xcesariox> havenwood, tobiasvl : but whats the difference to use <= , >= and == ?
kaspergrubbe has quit [Remote host closed the connection]
DarkFoxDK has quit [Ping timeout: 240 seconds]
kitak has quit [Remote host closed the connection]
<tobiasvl> <= is less than or equal, >= is greater than or equal, == is equal, != is not equal, and these things are like the first things you learn in any programming guide
<tobiasvl> they're comparison operators
paulfm has joined #ruby
davedev24 has quit []
LBRapid has quit [Ping timeout: 252 seconds]
<ericwood> don't forget <=> :D
davedev24 has joined #ruby
kitak has joined #ruby
<ericwood> >> 0 <=> 1
<eval-in_> ericwood => -1 (https://eval.in/148752)
<xcesariox> tobiasvl, ericwood , havenwood = there is <=> operator ?
sambao21 has quit [Quit: Computer has gone to sleep.]
<tobiasvl> ericwood: hey don't confuse the poor newbie
<apeiros> <=> + Comparable --> <, <=, ==, !=, >=, >, between?
<xcesariox> tobiasvl: i'm confused now.
<ericwood> <=> is the "diamond operator" and is used for comparison
kaichanvong has quit [Ping timeout: 240 seconds]
SecretAgent has quit [Ping timeout: 252 seconds]
<xcesariox> ericwood: wow diamond.
<ericwood> it is the coolest looking of the operators and is therefore the best
<apeiros> <=> does not return true/false/nil like the other operators,
csfrancis has quit [Ping timeout: 240 seconds]
SilkFox has joined #ruby
DarkFoxDK has joined #ruby
<xcesariox> apeiros: so can you give a statement e.g. when you will use <=> ?
<apeiros> it returns -1,0,1 depending whether left operand is smaller, equal or bigger than right operand
<ericwood> it's like the oldskool C stuff that returns -1 0 or 1
chipotle has quit [Remote host closed the connection]
SecretAgent has joined #ruby
eka has joined #ruby
<ericwood> it's only really used for sorting
rostam has joined #ruby
chipotle has joined #ruby
ec has quit [Ping timeout: 265 seconds]
<apeiros> xcesariox: case a <=> b; when -1 then do_stuff_cuz_smaller; when 0 then do_stuff_cuz_equal when 1 then do_stuff_cuz_bigger when nil then do_stuff_cuz_incomparable end
<ericwood> you see it a lot for things like array.sort { |a,b| a <=> b }
<apeiros> xcesariox: ary.sort { |a,b| a <=> b } # that's what ary.sort without a block does by default, though
<apeiros> ericwood: if you really see array.sort { |a,b| a <=> b }, spank the dev.
<apeiros> that's a very verbose and slow way to write array.sort :)
<ericwood> apeiros: b <=> a
<ericwood> happy now?!
jjbohn has joined #ruby
<apeiros> ericwood: .reverse will still be faster :-p
<ericwood> or maybe it's more concise to write array.sort.reverse
<ericwood> lol
<workmad3> also, if you see 'array.sort {|a,b| a.param <=> b.param}' spank the dev... 'array.sort_by(:param)' :)
kaichanvong has joined #ruby
kitak has quit [Ping timeout: 240 seconds]
<ericwood> hmmm didn't realize you could do that
<ericwood> I never sort things, tho
SilkFox has quit [Client Quit]
concordiadiscors has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> xcesariox: <=> is mostly used for implementing the other methods (<, <=, ==, >=, > and between?)
csfrancis has joined #ruby
<apeiros> xcesariox: because if you have <=>, all you have to do is include Comparable and bam, you get those other methods for free.
<workmad3> .sort_by(&:param) even...
LBRapid has joined #ruby
tharindu is now known as tharindu|away
<ericwood> I haven't had to sort pure ruby stuff in ages...most of the sorting I do at the DB level via ActiveRecord :|
<ericwood> I'm so out of touch
* workmad3 wonders what happens with a .sort if you sort objects with a non-transitive ordering...
TaxmanBD has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tagrudev has quit [Remote host closed the connection]
ce_afk is now known as cescalante
SilkFox has joined #ruby
sunya7a has joined #ruby
TaxmanBD has quit [Client Quit]
root3d has joined #ruby
_maes_ has joined #ruby
enebo has quit [Quit: enebo]
ec has joined #ruby
atmosx has quit [Quit: Lost in trance]
rizzatti has joined #ruby
sooik has quit [Ping timeout: 276 seconds]
<xcesariox> apeiros, ericwood, workmad3 : thank you , to the 3 of you for guiding me.
LBRapid has quit [Ping timeout: 246 seconds]
<xcesariox> apeiros, ericwood, workmad3 : i'm such a noob, i am on code academy now and coursera to buck up ruby.
hgl has quit [Ping timeout: 240 seconds]
subraminion has quit [Remote host closed the connection]
lukec has quit [Quit: lukec]
_maes_ has quit [Client Quit]
ndrei has quit [Ping timeout: 258 seconds]
LBRapid has joined #ruby
fgo has quit [Remote host closed the connection]
dik_dak has joined #ruby
<ericwood> good luck on your ruby adventures!
Soda has joined #ruby
ktun has joined #ruby
babykosh has joined #ruby
kaichanvong has quit [Quit: _]
flowerhack has quit [Ping timeout: 245 seconds]
garndt has quit [Ping timeout: 245 seconds]
metadave has quit [Ping timeout: 245 seconds]
bluehavana has quit [Ping timeout: 245 seconds]
ratdaddy has quit [Ping timeout: 252 seconds]
dspadea has quit [Ping timeout: 245 seconds]
mrgoodcat has quit [Ping timeout: 245 seconds]
guilleiguaran_ has quit [Ping timeout: 252 seconds]
concordiadiscors has joined #ruby
charliesome has joined #ruby
tharindu|away is now known as tharindu
jeffreybaird has quit [Ping timeout: 245 seconds]
natewalck has quit [Ping timeout: 245 seconds]
<xcesariox> ericwood: thanks!
<Abhijit> how do i iterate throught a varibale number of ARGVs? since ther are not fixed i need to inetere through them in order to access them?
codeFiend has joined #ruby
<xcesariox> ericwood, apeiros, workmad3 : any good website to recommend to learn html for ruby?
dspadea has joined #ruby
bluehavana has joined #ruby
flowerhack has joined #ruby
ggherdov_ has quit [Ping timeout: 245 seconds]
garndt has joined #ruby
mrgoodcat has joined #ruby
ratdaddy has joined #ruby
<ericwood> codeacademy.com
<xcesariox> ericwood, apeiros, workmad3 : i mean like for python, i need to learn the django templates for editing html in a different way, they have their own parathesis.
<ericwood> wait what
<ericwood> you want to learn erb I take it?
metadave has joined #ruby
VictorBjelkholm has quit [Quit: Leaving]
jeffreybaird has joined #ruby
guilleiguaran_ has joined #ruby
<tobiasvl> Abhijit: ARGV.each ?
natewalck has joined #ruby
Pharaoh2 has joined #ruby
charliesome_ has quit [Ping timeout: 265 seconds]
troulouliou_dev has quit [Quit: Leaving]
<Pharaoh2> Ok, I broke something on my machine... when ever I try to use pretty print using PP, I get this => undefined method `pretty_print' for "Any string here":String. Empty list/hashes are fine. How to debug?
troulouliou_dev has joined #ruby
jamto11 has quit [Remote host closed the connection]
fayimora has quit [Ping timeout: 245 seconds]
prognosticatorz has joined #ruby
razrunelord has joined #ruby
codeFiend has quit [Ping timeout: 258 seconds]
bluehavana has quit [Ping timeout: 245 seconds]
yo61 has quit [Ping timeout: 245 seconds]
<Abhijit> tobiasvl, okey. but i need to store those values in array. so how do i increment the array[i] inside ARGV.each?
mercerist has quit [Quit: Computer has gone to sleep.]
im0b has quit [Ping timeout: 252 seconds]
andrewstewart has quit [Ping timeout: 252 seconds]
dioms_ has quit [Ping timeout: 252 seconds]
lxsameer has quit [Quit: Leaving]
ratdaddy has quit [Ping timeout: 246 seconds]
nhmood has quit [Ping timeout: 246 seconds]
zrl has quit [Ping timeout: 252 seconds]
Darryl has quit [Ping timeout: 245 seconds]
dnyy has quit [Ping timeout: 245 seconds]
gazarsgo has quit [Ping timeout: 245 seconds]
meinside has quit [Ping timeout: 245 seconds]
ballPointPenguin has quit [Ping timeout: 245 seconds]
CJD14__ has quit [Ping timeout: 245 seconds]
<tobiasvl> Abhijit: you generally don't. do something like ARGV.each { |value| array << value }
<tobiasvl> but I'm not sure what you're asking
CJD14__ has joined #ruby
andrewstewart has joined #ruby
gazarsgo has joined #ruby
troulouliou_dev has quit [Client Quit]
Darryl has joined #ruby
bluehavana has joined #ruby
fayimora has joined #ruby
nhmood has joined #ruby
dioms_ has joined #ruby
dnyy has joined #ruby
ballPointPenguin has joined #ruby
<Abhijit> ARGV.each do |i| array[a] = i a++ end
<Abhijit> tobiasvl, ^
im0b has joined #ruby
ratdaddy has joined #ruby
zrl has joined #ruby
<Abhijit> tobiasvl, can i use ARGV as any other array?
<tobiasvl> Abhijit: yes you can
<tobiasvl> ARGV is just an array
yo61 has joined #ruby
saarinen has joined #ruby
ggherdov_ has joined #ruby
<Abhijit> okey.
<Hanmac> >> ARGV.class
<eval-in_> Hanmac => Array (https://eval.in/148765)
meinside has joined #ruby
Shidash has joined #ruby
drager has quit [Ping timeout: 264 seconds]
razrunelord has quit [Ping timeout: 265 seconds]
mercerist has joined #ruby
drager has joined #ruby
<ericwood> >> ARGV
<eval-in_> ericwood => [] (https://eval.in/148766)
michaelchum has joined #ruby
iceden has quit [Ping timeout: 276 seconds]
<Abhijit> tobiasvl, how can iterate through array but starting with second position item onwards only. that is ARGV[1] and onwards only. by skipping ARGV[0] while doing ARGV.each do
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
predator117 has quit [Remote host closed the connection]
predator117 has joined #ruby
codeurge has joined #ruby
<prognosticatorz> ARGV[1]..ARGV.last
<tobiasvl> or ARGV.drop(1)
<tobiasvl> ARGV.drop(1).each
<tobiasvl> many ways to do that
<apeiros> prognosticatorz: that won't work
<prognosticatorz> no?
<tobiasvl> eh yeah it won't, just noticed what he actually suggested
<apeiros> ARGV[1..-1].each # alternative to tobiasvl's
92AAA03Z8 has joined #ruby
mark_locklear has quit [Quit: Leaving]
<tobiasvl> prognosticatorz: that creates a range from the second value to the last value :P
<apeiros> prognosticatorz: that makes a range from the value at ARGV[1] to the value at ARGV.last
<tobiasvl> >> ARGV = [10,15,20]; ARGV[1]..ARGV.last
<eval-in_> tobiasvl => /tmp/execpad-24ee0dd98003/source-24ee0dd98003:2: warning: already initialized constant ARGV ... (https://eval.in/148770)
<apeiros> e.g. with ARGV == ["hi", "there", "dude"], it's "hi".."dude"
<tobiasvl> bah
sambao21 has joined #ruby
sooik has joined #ruby
<apeiros> tobiasvl: ARGV is always strings ;-)
<Abhijit> ARGV conting does not start with 0? it start with 1?
<apeiros> >> [1,2,3].drop(1).class
<eval-in_> apeiros => Array (https://eval.in/148772)
<apeiros> ^ soooo sad
<Abhijit> while doing ARGV.drop[0].each do it gives error. it works with (1)
<apeiros> should really be an Enumerator
bal has quit [Quit: bal]
<tobiasvl> Abhijit: the first argument is the name of the script
<apeiros> tobiasvl: no
<apeiros> ruby's ARGV is not like C's argv
EagleDelta has joined #ruby
<apeiros> it does not contain the script name
<apeiros> Abhijit: ARGV is an array. arrays start at 0
<tobiasvl> hmm no it doesn't
tesuji has quit [Ping timeout: 240 seconds]
<oddmunds> it contains the name as it was called?
<apeiros> oddmunds: neither
AnoGen has quit []
<oddmunds> that's $0?
<tobiasvl> I'll pour myself a cup of coffee, too much false information from me today
<apeiros> ARGV really only contains arguments passed
<apeiros> ^^
oo_ has joined #ruby
toastynerd has joined #ruby
92AAA03Z8 is now known as twali
<apeiros> holy shit batman
Macaveli has quit [Quit: Leaving]
<apeiros> I have bad timing
* apeiros wants to take the train now
<oddmunds> shit
<ericwood> I was expectng ARGV in this channel to be fairly large, given the number of arguments we all have
<Abhijit> apeiros, argv.drop(0).each do fails.
<ericwood> >> ARGV.size
<eval-in_> ericwood => 0 (https://eval.in/148776)
<tobiasvl> anyway, Abhijit, it's ARGV.drop[0] not ARGV.drop(0) (the latter works fine, but it just gives you ARGV in its entirety)
<oddmunds> i should be somewhere one minute ago
<Abhijit> apeiros, argv.drop(1).each do works.
<apeiros> and it literally started 2min ago pouring rain like there was a second ark of noah
<oddmunds> tobiasvl: god helg
<tobiasvl> oddmunds: god helg
<apeiros> Abhijit: argv is not ARGV
<apeiros> Abhijit: also drop(0) makes no sense, it's a no-op
<Abhijit> apeiros, i know. just for typing.
<apeiros> Abhijit: no. don't do that.
<workmad3> apeiros: he did drop[0] though...
<apeiros> we don't want to guess what your problem is.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> don't do "some code which is similar"
<workmad3> oh, that was further up...
* apeiros off for commute
<apeiros> it stopped raining again, gotta take a chance :D
<ericwood> someone laugh at my ARGV joke
<Abhijit> apeiros, ARGV.drop[0].each do |t| gives me `drop': wrong number of arguments (0 for 1) (ArgumentError)
troulouliou_dev has joined #ruby
troulouliou_dev has quit [Client Quit]
rizzatti has quit [Excess Flood]
pothibo has joined #ruby
wjlafrance has joined #ruby
<workmad3> ericwood: I would... but I disput you calling it a 'joke'
<workmad3> ericwood: *dispute
apeiros has joined #ruby
<ericwood> :'(
<tobiasvl> Abhijit: (0), not [0]
<tobiasvl> like I said
<workmad3> ericwood: a 'joke' implies humour... which was definitely absent :P
<Abhijit> tobago, if i use () then 0 do not work. 1 works
<ericwood> lol
<Hanmac> tobiasvl: i think he does it on popurse
<ericwood> well, my "joke" was more popular in #ruby-lang anyways
<workmad3> ericwood: I see you got a better reaction from the #ruby-lang crowd... at least they dignified it with sarcasm ;)
<tobiasvl> Abhijit: well drop[0] is quite rightly an error so you don't have to even try that
<tobiasvl> Abhijit: drop(0) should work although it doesn't do anything
<prognosticatorz> Shouldn't you drop ARGV into an array before messing with it? Feels wrong to redefine ARGV[1]
<ericwood> I'll take what I can get
<Abhijit> ok
<tobiasvl> prognosticatorz: I think that's exactly what he's trying to do actually
<tobiasvl> dropping it into another array that is
omosoj has joined #ruby
oo_ has quit [Ping timeout: 264 seconds]
<ericwood> well, given how the bot in #javascript works I cannot make a similar JS version of the joke >:(
<prognosticatorz> ray = ARGV.collect{|argv| argv}
<prognosticatorz> ray.drop(1).each......
<Hanmac> prognosticatorz: why not map.to_a ?
<prognosticatorz> good point
<Abhijit> prognosticatorz, thanks. will do that.
<txdv> >> print 1
<prognosticatorz> np
<eval-in_> txdv => 1nil (https://eval.in/148779)
Megtastique has joined #ruby
sski has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 258 seconds]
sski has joined #ruby
frogsy has joined #ruby
linojon has quit [Quit: linojon]
qpok has joined #ruby
ndrei has joined #ruby
Pharaoh2 has quit [Ping timeout: 276 seconds]
twali is now known as ti-wali
ti-wali is now known as NewNick
_maes_ has joined #ruby
NewNick is now known as ti-wali
robbyoconnor has quit [Max SendQ exceeded]
rizzatti has joined #ruby
robbyoconnor has joined #ruby
<qpok> hullo, I clone gem source files and want to use them instead of the gem. What's the easiest way? For now, I used absolute require paths, but I needed to modify the gem source files to reference absolute paths as otherwise I was hitting the gem
mityaz has quit [Quit: See ya!]
i_s has joined #ruby
sunya7a has quit [Ping timeout: 252 seconds]
sski has quit [Ping timeout: 265 seconds]
Xeago has quit [Remote host closed the connection]
roolo has quit [Quit: Leaving...]
<qpok> simply remove the gem for the duration ?
<Abhijit> how can i access next and previous array item while doing .each do |s|
yfeldblum has joined #ruby
<prognosticatorz> Abhijit: not sure what you mean
saarinen has quit [Quit: saarinen]
sunya7a has joined #ruby
drager has quit [Ping timeout: 252 seconds]
<Abhijit> prognosticatorz, X is an array. I am doing X.each do |t| something end
<Hanmac> Abhijit: you cant, use each_cons
<havenwood> Abhijit: by index with #each_with_index or #each_cons
<Abhijit> ...
<prognosticatorz> can you give an example?
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
kevinykchan has quit [Read error: Connection reset by peer]
<Abhijit> havenwood, yeah each with index will do
toastynerd has quit [Remote host closed the connection]
the_f0ster has joined #ruby
momomomomo has quit [Quit: momomomomo]
linojon has joined #ruby
mg^afk is now known as mg^
kevinykchan has joined #ruby
<Abhijit> prognosticatorz, X is an array. I am doing X.each do |t| puts t end. This code prints the "current" array item. I wanted to print the previous and next array item along with current item. we can do that with each with index as suggested by havenwood
linojon has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
<canton7> Abhijit, each_cons ?
<Hanmac> canton7: that does not have previous
relix has joined #ruby
<prognosticatorz> x[1].each_with_index {|item, i| print "#{item}, #{x[index-1]}"}
kaichanvong has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
<canton7> >> [nil, 1, 2, 3, 4].each_cons(s).each{ |prev,current,next| puts "Prev: #{prev}, Current: #{current}, Next: #{next}" }
<eval-in_> canton7 => /tmp/execpad-faedf872d7ad/source-faedf872d7ad:2: syntax error, unexpected keyword_next, expecting '|' ... (https://eval.in/148781)
<prognosticatorz> x[1].each_with_index {|item, i| print "#{item}, #{x[i-1]}"}
<canton7> >> [nil, 1, 2, 3, 4].each_cons(3).each{ |prev,current,next| puts "Prev: #{prev}, Current: #{current}, Next: #{next}" }
<eval-in_> canton7 => /tmp/execpad-a971fcb28e39/source-a971fcb28e39:2: syntax error, unexpected keyword_next, expecting '|' ... (https://eval.in/148782)
<canton7> you get the idea :P
<Abhijit> :-p
matchaw has joined #ruby
jjbohn has quit [Remote host closed the connection]
arrubin has joined #ruby
jjbohn has joined #ruby
lkba has quit [Ping timeout: 276 seconds]
<Hanmac> >> [nil, 1, 2, 3, 4].each_cons(3) { |prev,current,nex| puts "Prev: #{prev}, Current: #{current}, Next: #{nex}" }
<eval-in_> Hanmac => Prev: , Current: 1, Next: 2 ... (https://eval.in/148783)
Rylee has quit [Remote host closed the connection]
linojon has joined #ruby
roolo has joined #ruby
kevind has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
XThief has quit [Quit: XThief]
<Abhijit> havenwood, apples.drop(1).each_with_index do |s,i| if s[i]<s[i+1] do not work
danijoo_ has quit [Read error: Connection reset by peer]
mr_snowf1ake has quit [Quit: Leaving]
danijoo has joined #ruby
i_s has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
Rylee has joined #ruby
Pharaoh2 has quit [Remote host closed the connection]
<havenwood> Abhijit: So... `s` is an apple? Why are you looking at an index on an apple?
<havenwood> Abhijit: `apple` is a better name for an apple than `s`
<Abhijit> havenwood, i am not. just wanted to know next and previous array vaule.
<Abhijit> value.
s3ri0us has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
drager has joined #ruby
momomomomo has joined #ruby
apeiros has joined #ruby
binaryhat has joined #ruby
<Abhijit> havenwood, why s is nill?
aiguu has joined #ruby
<havenwood> Abhijit: i don't know about your apples
Lewix has joined #ruby
<havenwood> how bout them apples?
jonno11 has joined #ruby
<Abhijit> havenwood, is the code right?
<Abhijit> s < s[i+1]
<havenwood> Abhijit: no
<havenwood> Abhijit: s is an apple!
<Abhijit> apple is array!
<havenwood> i know nothing of such things.
Soda has quit [Remote host closed the connection]
<Abhijit> havenwood, its junt a name for that array!
<Abhijit> name can be anything.
oo_ has joined #ruby
<havenwood> Abhijit: Maybe show more code in a Gist. What you have doesn't compute.
qba73 has joined #ruby
liviu10 has quit [Quit: Leaving]
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
babykosh has quit [Quit: babykosh]
dukedave has joined #ruby
Spami has joined #ruby
prognosticatorz has quit [Remote host closed the connection]
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
apeiros has quit [Remote host closed the connection]
pwh has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mehlah has quit [Quit: Leaving...]
obs_ has joined #ruby
sski has joined #ruby
ktun has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
Atrumx has joined #ruby
reset has joined #ruby
andrewjanssen has joined #ruby
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
nwertman has joined #ruby
<Abhijit> havenwood, i just wanted to access and operate on next array item.
sski has quit [Ping timeout: 252 seconds]
<Hanmac> Abhijit: that what each_cons can do
XThief has joined #ruby
apeiros has joined #ruby
chrisseaton has joined #ruby
razrunelord has joined #ruby
kiri has quit [Quit: Leaving]
<Abhijit> Hanmac, ok
<havenwood> >> array = [:a, :b, :c]; array.each_with_index.map { |item, index| [array[index - 1], item, array[index + 1]] }
<eval-in_> havenwood => [[:c, :a, :b], [:a, :b, :c], [:b, :c, nil]] (https://eval.in/148799)
michaeldeol has joined #ruby
<havenwood> Abhijit: look at those results ^
aspires has joined #ruby
jxf has joined #ruby
<Abhijit> havenwood, ok
<workmad3> heh
<Hanmac> >> array=[:a, :b, :c]; array.each_index.map { | index| array.values_at(index - 1, index, index + 1) }
<eval-in_> Hanmac => [[:c, :a, :b], [:a, :b, :c], [:b, :c, nil]] (https://eval.in/148801)
Tricon has joined #ruby
razrunelord has quit [Ping timeout: 265 seconds]
<Abhijit> havenwood, that worked.
obs has quit [Quit: Saliendo]
michaeldeol has quit [Ping timeout: 258 seconds]
x1337807x has joined #ruby
jhass is now known as jhass|off
<yo61> I'm still having problems with require'ing files from a local module when testing
Jinkins has joined #ruby
crelix has joined #ruby
<Hanmac> yo61: rails?
<yo61> No
zigomir has quit [Remote host closed the connection]
<yo61> Just straight modules
<yo61> Let me try something though - I may just not have updated the remote repo
<Hanmac> did you try require_relative?
zigomir has joined #ruby
<havenwood> yo61: like you're doing `require` but the file isn't in your $LOAD_PATH?
sinkensabe has quit [Remote host closed the connection]
ti-wali has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<yo61> Yeah
zigomir has quit [Remote host closed the connection]
Jinkins has quit [Client Quit]
<yo61> It worked OK with gem 1.8.23 but is not working with gem 2.2.2
sinkensabe has joined #ruby
mansi has joined #ruby
reset has quit [Quit: Leaving...]
<havenwood> yo61: The behavior of `require` changed between 1.8 and 1.9.
kevinykchan has quit [Read error: Connection reset by peer]
sooik has quit [Ping timeout: 265 seconds]
<havenwood> Ruby 1.8*
<havenwood> yo61: '.' is no longer in the $LOAD_PATH
<yo61> Aha, the fix I was given earlier *does* work, I was just pulling the wrong code from the repo
<yo61> Yes, so I found out :)
<havenwood> yo61: oh, then that! :P
16WAAOBG9 has joined #ruby
kevinykchan has joined #ruby
proliberate has joined #ruby
<yo61> As you were, sorry for the noise :)
<yo61> For completeness, this is what I am adding to our gemspecs:
shredding has quit [Quit: shredding]
<yo61> Seems to do the trick
gregf has joined #ruby
<apeiros> yo61: rubygems will add your gem's lib dir to $LOAD_PATH, though. those lines are only needed to load files for an uninstalled gem (e.g. while developing)
mikecmpbll has quit [Quit: i've nodded off.]
<yo61> Yes, exactly my use case
<apeiros> ok :)
<apeiros> alternatives: ruby -Ilib
<apeiros> and RUBYOPT = '-Ilib'
<yo61> "bundle install" doesn't work without
<apeiros> actually *or, not and
sinkensabe has quit [Ping timeout: 250 seconds]
mehlah has joined #ruby
mehlah has quit [Client Quit]
kevind_ has joined #ruby
queequeg1 has quit [Ping timeout: 276 seconds]
sambao21 has joined #ruby
qba73 has quit []
treehug8_ has joined #ruby
bradhe has joined #ruby
lukec has joined #ruby
16WAAOBG9 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
ti-wali_ has joined #ruby
sinkensabe has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kevind has quit [Ping timeout: 265 seconds]
kevind_ is now known as kevind
lsmola has quit [Ping timeout: 240 seconds]
treehug88 has quit [Ping timeout: 240 seconds]
jonno11 has joined #ruby
meatherly has quit [Remote host closed the connection]
jonno11 has quit [Client Quit]
sunya7a has quit [Ping timeout: 255 seconds]
mehlah has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
zakiazigazi has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
alem0lars has joined #ruby
mehlah has quit [Client Quit]
jimbow has joined #ruby
<jimbow> anyone no
<jimbow> on*
niharvey is now known as niharvey|lunch
<Tricon> Yes.
<apeiros> no
<apeiros> /whois anyone
<apeiros> says he's not on
<Tricon> /what-is-the-matrix
redondos has quit [Excess Flood]
sinkensabe has quit [Remote host closed the connection]
jonno11 has joined #ruby
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
sinkensabe has joined #ruby
proliberate has quit [Ping timeout: 245 seconds]
* Hanmac "anyone is currently known as no"
mikecmpbll has joined #ruby
<jimbow> well i have this idea for a shell clipboard utility
sinkensa_ has joined #ruby
rizzatti has quit [Quit: Leaving...]
<ericwood> cool idea
moritzs has joined #ruby
<jimbow> basically you're in /roo/some/files/are/here/and/nothing/else
timonv has quit [Remote host closed the connection]
<jimbow> and you start working within that directory
proliberate has joined #ruby
sinkensabe has quit [Ping timeout: 240 seconds]
<jimbow> and then you decide to go to a completely different directory
<havenwood> Hanmac: i'm past, jokes are safe :P
Rollabunna has joined #ruby
<jimbow> then you decide to go to some other directory /root/some/other/directory/is/here
maletor has joined #ruby
roolo has quit [Quit: Linkinus - http://linkinus.com]
<jimbow> just like a tv remote you can switch between channels using a command
poguez_ has quit [Quit: Connection closed for inactivity]
<ericwood> cd - does that
Hobogrammer has joined #ruby
<ericwood> it switches you back to the last dir you were in
cocotton has quit [Remote host closed the connection]
<jimbow> you could cd back into it, but to save time you could sdir -s
<jimbow> or just sdir s
erikruthven has joined #ruby
<havenwood> yup, `cd -` ftw
<jimbow> sdir = saved directory
<ericwood> jimbow: it already exists as `cd -`
<jimbow> wow let me try it
aiguu has quit [Ping timeout: 240 seconds]
<ericwood> another cool thing: git checkout -
<ericwood> it does basically the same thing
gilesw has joined #ruby
<jimbow> The system cannot find the path specified.
jimbow has quit [Killed (idoru (Spam is off topic on freenode.))]
thomasxie has quit [Remote host closed the connection]
Silent__ has quit [Ping timeout: 240 seconds]
<havenwood> jimbow: also, `pushd` and `popd`
axl_ has joined #ruby
<Hanmac> havenwood: the actor who plays Jenny the Daughter of the 11thDoctor, is the daughter of the actor who plays the 5th Doctor, and she married David Tenneart who plays the 11thDoctor
<gilesw> heya all
krainboltgreene has joined #ruby
<havenwood> Hanmac: ah, no way
<ericwood> jumblemuddle: you just typed "cd -"?
<havenwood> gilesw: hey
subbyyy has joined #ruby
<krainboltgreene> Anyone know what values the new Ruby ENV memory values should be at for better development?
tkuchiki has quit [Quit: Leaving...]
<Hanmac> havenwood: yes way, it also blow my mind after i read that ;P
<havenwood> Hanmac: married his daughter, tsk tsk
tjbiddle has joined #ruby
<havenwood> Hanmac: even if she is just a clone!
axl_ has quit [Client Quit]
<tjbiddle> << status = 'failed'; status == ('OK' or 'FAILED' or 'RESOLVED')
<tjbiddle> >> status = 'failed'; status == ('OK' or 'FAILED' or 'RESOLVED')
<eval-in_> tjbiddle => false (https://eval.in/148804)
<Hanmac> havenwood: yeah and even the actor is a daughter of a doctor actor ;P
<tjbiddle> Why is that the case? ^ - Looks like it's being short-circuited?
<apeiros> tjbiddle: that's because:
<apeiros> >> ('OK' or 'FAILED' or 'RESOLVED')
<eval-in_> apeiros => "OK" (https://eval.in/148805)
<ericwood> tjbiddle: status.upcase
SHyx0rmZ has joined #ruby
<apeiros> expressions have a value. ruby doesn't magically reassociate your method calls
<ericwood> that too
<ericwood> but it wouldn't have worked anyways because none of those strings are t he one you assigned it
franzip has joined #ruby
<gilesw> I've got a problem with a script I wrote on ruby 1.8.7 running on 1.9.3p0
<tjbiddle> >> status = 'FAILED'; status == ('OK' or 'FAILED' or 'RESOLVED')
<eval-in_> tjbiddle => false (https://eval.in/148807)
<apeiros> it's `status == ***single value here***`, and single value in your case is the result of your parenthesized group
<tjbiddle> ericwood: I had it upcase in irb - i just typed wrong in here :p
<ericwood> >> status = 'OK'; ['OK', 'FAILED', 'RESOLVED'].include?(status)
<eval-in_> ericwood => true (https://eval.in/148809)
<gilesw> any ideas how i can make it cross compatible?
<Hanmac> tjbiddle: what is your language you learned before ruby? without include? it does not work
fukuyamaken has joined #ruby
<tjbiddle> apeiros: Ah - understood. And ericwood - perfect, makes sense :) Thanks!
<gilesw> i was going to put ruby1.8 in the shebang line..
<apeiros> yw
<apeiros> btw., %w[] makes it a bit less noisy
<ericwood> oof yeah
<apeiros> >> status = 'OK'; %w[OK FAILED RESOLVED].include?(status)
<eval-in_> apeiros => true (https://eval.in/148810)
<ericwood> %w[OK FAILED RESOLVED]
<apeiros> # from ericwood, just slightly changed for less noise
<gilesw> or covert to trollop which i use for most of my scripts now..
<ericwood> thanks for crediting me :P
cescalante is now known as ce_afk
axl_ has joined #ruby
<apeiros> your code, your credit :)
<krainboltgreene> Specifically, what do you all set RUBY_GC_HEAP_INIT_SLOTS, RUBY_GC_MALLOC_LIMIT, RUBY_GC_HEAP_FREE_SLOTS, RUBY_GC_HEAP_GROWTH_FACTOR, RUBY_GC_HEAP_GROWTH_MAX_SLOTS, RUBY_GC_MALLOC_LIMIT_GROWTH_FACTOR, RUBY_GC_MALLOC_LIMIT_MAX, RUBY_GC_OLDMALLOC_LIMIT, RUBY_GC_OLDMALLOC_LIMIT_GROWTH_FACTOR, RUBY_GC_OLDMALLOC_LIMIT_MAX to?
<apeiros> krainboltgreene: there's a blog post
<ericwood> I set them all to 0
<apeiros> "demistify gc blabla ruby" something
Xeago has joined #ruby
<krainboltgreene> apeiros: 2.1 details? Only shows default.
<krainboltgreene> Ah, I'll look that one up.
<apeiros> trying to find it atm
nwertman has quit [Ping timeout: 252 seconds]
proliberate has quit [Ping timeout: 276 seconds]
tkuchiki has joined #ruby
queequeg1 has joined #ruby
<krainboltgreene> But it only does 2.0, apeiros :/
<apeiros> hm, I had this in mind: http://thorstenball.com/blog/2014/03/12/watching-understanding-ruby-2.1-garbage-collector/ - but that's about GC.stat (might still be relevant)
jxf has quit [Ping timeout: 240 seconds]
<apeiros> ah, it does have env vars a bit
cg433n has joined #ruby
cg433n has quit [Client Quit]
chipotle has quit [Quit: cya]
cg433n has joined #ruby
<workmad3> krainboltgreene: I set them all to carefully selected values that I randomly determine with fair dice rolls
kevinykchan has joined #ruby
sinkensa_ has quit [Remote host closed the connection]
jxf has joined #ruby
sinkensabe has joined #ruby
benzrf|offline is now known as benzrf
Xeago has quit [Ping timeout: 250 seconds]
cg433n has quit [Client Quit]
<krainboltgreene> apeiros: That link works really well, thanks.
tjbiddle_ has joined #ruby
subbyyy_ has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
joonty has quit [Quit: WeeChat 0.4.2]
moritzs has quit [Ping timeout: 252 seconds]
proliberate has joined #ruby
Spami_ has joined #ruby
geggam has joined #ruby
subbyyy has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
sinkensabe has quit [Ping timeout: 240 seconds]
tjbiddle has quit [Ping timeout: 264 seconds]
tjbiddle_ is now known as tjbiddle
ffranz has quit [Quit: Leaving]
tharindu has quit [Quit: Leaving...]
sunya7a has joined #ruby
einarj has quit [Remote host closed the connection]
lukec has quit [Quit: lukec]
maximski has quit [Ping timeout: 252 seconds]
Mon_Ouie has joined #ruby
cyprusre has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
omosoj has quit [Ping timeout: 250 seconds]
heftig has quit [Quit: Quitting]
Hobogrammer_ has joined #ruby
poguez_ has joined #ruby
klaut has quit [Remote host closed the connection]
subbyyy_ has quit [Ping timeout: 255 seconds]
jastix has quit [Quit: Leaving]
mofofofo has quit [Ping timeout: 240 seconds]
subbyyy_ has joined #ruby
sunya7a has quit [Ping timeout: 255 seconds]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
ffranz has joined #ruby
_tpavel has quit [Quit: Leaving]
XThief has quit [Quit: XThief]
rizzatti has joined #ruby
toastynerd has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
ti-wali_ has quit [Read error: Connection reset by peer]
Fire-Dragon-DoL has joined #ruby
wallerdev has quit [Quit: wallerdev]
tjbiddle_ has joined #ruby
Rollabunna has quit [Remote host closed the connection]
proliberate has quit [Ping timeout: 240 seconds]
cocotton has joined #ruby
nwertman has joined #ruby
saarinen has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aiguu has joined #ruby
tjbiddle has quit [Ping timeout: 264 seconds]
cocotton has quit [Remote host closed the connection]
razrunelord has joined #ruby
tjbiddle has joined #ruby
jonno11 has joined #ruby
jonno11 has quit [Client Quit]
KanKava has joined #ruby
grzywacz has quit [Ping timeout: 240 seconds]
JasmeetQA has joined #ruby
JasmeetQA has quit [Client Quit]
tjbiddle_ has quit [Ping timeout: 252 seconds]
Yuzuk0 has joined #ruby
tjbiddle_ has joined #ruby
nicholas040 has joined #ruby
s3ri0us has quit [Quit: Leaving...]
i_s has joined #ruby
tjbiddle has quit [Ping timeout: 276 seconds]
tjbiddle_ is now known as tjbiddle
nicholas040 has quit [Client Quit]
diegoviola has joined #ruby
timonv has joined #ruby
centrx has joined #ruby
phinfonet has joined #ruby
zoraj has quit [Remote host closed the connection]
nicholas040 has joined #ruby
<yo61> Damn, am still having problems with relative paths
benzrf is now known as benzrf|offline
andrewjanssen has quit [Quit: Leaving...]
RohanRNS has joined #ruby
mr_snowf1ake has joined #ruby
cyprusre has quit [Ping timeout: 245 seconds]
<Hanmac> the problem might be that the relatives are in different family branches ... the main branch and the other might not be firm together ;P
andrewjanssen has joined #ruby
chipotle has joined #ruby
wallerdev has joined #ruby
<yo61> So, I've got a gemspec containing this at the top:
michaeldeol has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yo61> And, inside lib/wh/bloodhound.rb I have:
<yo61> Gah! I am stupid
<happytux> hi
<happytux> require 'puppetlabs_spec_helper/rake_tasks'
<yo61> Ignore me, please :)
<happytux> How can I use the rake task 'syntax' inside the required ruby file?
niharvey|lunch is now known as niharvey
* apeiros does as requested and ignores yo61 :-p
<happytux> Just syntax doesn't work.
babykosh has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
Mon_Ouie has quit [Ping timeout: 252 seconds]
<bricker`LA> happytux: You need to use the "rake" program to evaluate files with Rake syntax ("task", "desc", etc.)
alex88 has quit [Quit: Leaving...]
CorySimmons has joined #ruby
jack_rabbit has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<yo61> Hmm, maybe I'm not stupid
zigomir has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
zigomir has joined #ruby
<yo61> The 'wh/git' comes from another custom gem
<yo61> I want bundler to pull that in too
<wallerdev> good morning
<wallerdev> happy friday :)
ktun has joined #ruby
<yo61> But, when I try "bundle install", I get this error:
sunya7a has joined #ruby
CorySimmons has quit [Ping timeout: 258 seconds]
rokob has joined #ruby
vt102 has joined #ruby
<yo61> What gives?
tkuchiki has quit [Remote host closed the connection]
testcore has joined #ruby
Burgestrand has quit [Quit: Burgestrand]
ikaros has quit [Quit: Ex-Chat]
gigo1980 has quit [Ping timeout: 252 seconds]
SilkFox has quit [Ping timeout: 255 seconds]
aspires has quit []
erikruthven has quit [Quit: Textual IRC Client: www.textualapp.com]
mordocai has joined #ruby
<Abhijit> is there any inbuilt method to find min and max from array in one go?
<centrx> Array#minmax
<centrx> Actually Enumerable#minmax
lukec has joined #ruby
deric_skibotn has joined #ruby
nanoyak has joined #ruby
yfeldblum has joined #ruby
niharvey is now known as Niharvey|afk
Spami has quit [Read error: Connection reset by peer]
SegFaultAX has quit [Excess Flood]
Spami has joined #ruby
sdwrage has joined #ruby
yfeldblu_ has joined #ruby
jackneill has joined #ruby
jackneill has quit [Changing host]
jackneill has joined #ruby
LekeFly has joined #ruby
mercwithamouth has joined #ruby
aspires has joined #ruby
SegFaultAX has joined #ruby
LekeFly has quit [Max SendQ exceeded]
zorak has quit [Read error: Connection reset by peer]
<Abhijit> how can i know the "index" of item by providing item of array+
<Abhijit> ?
yfeldblum has quit [Ping timeout: 245 seconds]
coz has quit [Remote host closed the connection]
zorak has joined #ruby
yfeldblu_ has quit [Ping timeout: 240 seconds]
cyprusre has joined #ruby
vpretzel|retro is now known as vpretzel|1490
djbkd has quit [Remote host closed the connection]
nwertman has quit [Ping timeout: 265 seconds]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
djbkd has joined #ruby
aspires has quit []
shock_one has joined #ruby
nateberkopec has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
maletor has quit [Quit: Computer has gone to sleep.]
rudisimo_ has joined #ruby
<xybre> Abhijit: Have you looked at the Array API documentation?
rudisimo has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
reset has joined #ruby
mattmcclure has joined #ruby
maletor has joined #ruby
mercerist has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
SilkFox has joined #ruby
rizzatti has quit [Quit: Leaving...]
mercerist has joined #ruby
tjr9898 has quit [Remote host closed the connection]
timonv has joined #ruby
<xybre> You can also find a link to the Enumerable documentation there as well, which is mixed into Array.
aedorn has quit [Quit: Leaving]
moritzs has joined #ruby
aspires has joined #ruby
sunya7a has quit [Quit: leaving]
Xeago has joined #ruby
sunya7a has joined #ruby
timonv has quit [Read error: No route to host]
jab3z has joined #ruby
krainboltgreene has left #ruby [#ruby]
jab3z has left #ruby [#ruby]
<Abhijit> how do i copy one array to another by skipping 0th element?
<Abhijit> xybre, ok
carraroj has joined #ruby
babykosh has quit [Quit: babykosh]
datafirm has joined #ruby
RubyPanther has joined #ruby
Lewix_ has joined #ruby
rudisimo_ has quit [Read error: Connection reset by peer]
rudisimo has joined #ruby
ce_afk is now known as cescalante
Lewix has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
soheil has joined #ruby
Hanmac1 has joined #ruby
alem0lars has quit [Quit: Going AFK...]
tjbiddle_ has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
Tricon has quit [Read error: Connection reset by peer]
<Abhijit> havenwood, thanks.
tjbiddle has quit [Ping timeout: 250 seconds]
tjbiddle_ is now known as tjbiddle
<havenwood> Abhijit: head, *tail = [:a, :b, :c]; tail #=> [:b, :c]
<havenwood> Abhijit: [:a, :b, :c].drop(1) #=> [:b, :c]
<Abhijit> okey.
Lewix_ has quit [Remote host closed the connection]
Photism has quit [Quit: Leaving]
Niharvey|afk is now known as niharvey
FaresKAlaboud has quit [Ping timeout: 252 seconds]
tjbiddle_ has joined #ruby
Hanmac has joined #ruby
chipotle has quit [Quit: cya]
instantaphex has quit [Ping timeout: 240 seconds]
happytux is now known as sadtux
tjbiddle has quit [Ping timeout: 255 seconds]
Hanmac1 has quit [Ping timeout: 264 seconds]
toastynerd has quit [Remote host closed the connection]
sadtux is now known as happytux
* havenwood goes back to plotting how to use Array#rassoc whenever possible.
XThief has joined #ruby
djbkd has quit [Remote host closed the connection]
XThief has quit [Client Quit]
happytux is now known as bipolartux
bipolartux is now known as happytux
toastyne_ has joined #ruby
happytux has quit [Quit: ChatZilla 0.9.90.1-rdmsoft [XULRunner 22.0/20130619132145]]
tjbiddle has joined #ruby
tjbiddle_ has quit [Ping timeout: 258 seconds]
tjbiddle_ has joined #ruby
Burgestrand has joined #ruby
danshultz has quit [Remote host closed the connection]
gheegh has joined #ruby
Ardenzi has quit [Remote host closed the connection]
danshultz has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
timonv has joined #ruby
tjbiddle has quit [Ping timeout: 240 seconds]
tjbiddle_ is now known as tjbiddle
danshultz has joined #ruby
rdark has quit [Quit: leaving]
niftylettuce_ has joined #ruby
concordiadiscors has quit [Quit: Textual IRC Client: www.textualapp.com]
tjbiddle has quit [Client Quit]
carraroj has quit [Ping timeout: 240 seconds]
bricker has quit [Quit: leaving]
root3d has quit [Ping timeout: 240 seconds]
linojon has quit [Quit: linojon]
toastyne_ has quit [Remote host closed the connection]
bricker has joined #ruby
gigo1980 has joined #ruby
linojon has joined #ruby
linojon has quit [Client Quit]
andrewjanssen has quit [Quit: Leaving...]
sambao21 has quit [Quit: Computer has gone to sleep.]
moritzs has quit [Ping timeout: 252 seconds]
pwh has quit []
meatherly has joined #ruby
ghr has joined #ruby
Abhijit has quit [Quit: Bye.]
phoo1234567 has joined #ruby
shadoi has joined #ruby
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
anaeem1 has joined #ruby
ascarter has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
anaeem1 has joined #ruby
ascarter has joined #ruby
sputnik13 has joined #ruby
sqwirl has joined #ruby
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
ascarter has quit [Max SendQ exceeded]
nwertman has joined #ruby
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
anaeem1 has quit [Read error: Connection reset by peer]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
ascarter has quit [Client Quit]
frogsy has quit [Read error: Connection reset by peer]
codecop has joined #ruby
<gizmore> okay funny: matches = /(\[?<[^>]+>\]?)+/.match('<password> <password>') # => gives only 1 time password... i want 2 times the same string matched in the matches
IceDragon has joined #ruby
Hanmac1 has joined #ruby
Valesk has joined #ruby
relix has joined #ruby
Authenti1ator has quit [Quit: leaving]
relix has quit [Max SendQ exceeded]
relix has joined #ruby
St_Marx has joined #ruby
jrhorn424 is now known as zz_jrhorn424
nowthatsamatt has joined #ruby
relix has quit [Max SendQ exceeded]
aspires has quit []
<Burgestrand> gizmore: use String#scan
<gizmore> hmm thx
Hanmac has quit [Ping timeout: 240 seconds]
<Burgestrand> >> '<password> <password>'.scan(/(\[?<[^>]+>\]?)+/.)
<eval-in_> Burgestrand => /tmp/execpad-9e376d939a5c/source-9e376d939a5c:2: syntax error, unexpected ')', expecting '(' (https://eval.in/148882)
relix has joined #ruby
<Burgestrand> …!
<Burgestrand> oops.
<Burgestrand> >> '<password> <password>'.scan(/(\[?<[^>]+>\]?)+/)
<eval-in_> Burgestrand => [["<password>"], ["<password>"]] (https://eval.in/148883)
alem0lars has joined #ruby
aspires has joined #ruby
ascarter has joined #ruby
pothibo has joined #ruby
ascarter has quit [Max SendQ exceeded]
Shidash has quit [Ping timeout: 255 seconds]
<Hanmac1> that looks like wrong formated html code ..
tjr9898 has joined #ruby
<Burgestrand> >> Enumerator.new { |yielder| '<password> <password>'.scan(/(\[?<[^>]+>\]?)+/) { yielder.yield $~ } }.to_a
<eval-in_> Burgestrand => [#<MatchData "<password>" 1:"<password>">, #<MatchData "<password>" 1:"<password>">] (https://eval.in/148884)
relix has quit [Client Quit]
<Burgestrand> Ha. So cool.
ascarter has joined #ruby
brontos has joined #ruby
havenwood has quit []
<gizmore> Burgestrand: works charmy, thanks man :)
combusean has joined #ruby
<Burgestrand> \o.
yfeldblum has joined #ruby
<brontos> are there any yum repos for centos 6.5 to install rubyu 2.1.2?
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
<yxhuvud> dunno. you can find 2.1.1 in fc rawhide, that can be rebuilt for centos though.
michaeldeol has joined #ruby
benzrf|offline is now known as benzrf
nwertman has quit [Quit: Lost terminal]
aspiers has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 258 seconds]
timonv has quit [Ping timeout: 252 seconds]
pwh has joined #ruby
sepp2k has joined #ruby
havenwood has joined #ruby
matchaw has quit [Ping timeout: 245 seconds]
toastynerd has joined #ruby
axl_ has quit [Quit: axl_]
matchaw has joined #ruby
sambao21 has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
wldcordeiro_work has joined #ruby
Hanmac1 has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
endash has quit [Read error: Connection reset by peer]
blackmes1 has joined #ruby
endash has joined #ruby
BucOder has joined #ruby
dukedave has quit [Ping timeout: 258 seconds]
anaeem1_ has joined #ruby
nwertman has joined #ruby
sputnik13 has joined #ruby
obs_ has quit [Remote host closed the connection]
endash has quit [Read error: Connection reset by peer]
toastynerd has quit [Remote host closed the connection]
endash has joined #ruby
toastynerd has joined #ruby
toastynerd has quit [Remote host closed the connection]
instantaphex has joined #ruby
momomomomo has joined #ruby
benzrf is now known as benzrf|offline
sputnik13 has quit [Ping timeout: 265 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has joined #ruby
SolarSailor has joined #ruby
jprovazn is now known as jprovazn_afk
aspires has quit []
elikem has quit [Quit: elikem]
dangerousdave has quit [Read error: Connection reset by peer]
tharindu has joined #ruby
Hanmac has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
SCommette has quit [Quit: SCommette]
andrewjanssen has joined #ruby
nanoyak has quit [Ping timeout: 265 seconds]
eka has quit [Read error: Connection reset by peer]
toastyne_ has joined #ruby
eka has joined #ruby
zegerjan has joined #ruby
toastynerd has quit [Ping timeout: 258 seconds]
djbkd has quit [Remote host closed the connection]
SolarSailor has quit [Ping timeout: 276 seconds]
setra has joined #ruby
aspires has joined #ruby
iceden has joined #ruby
<setra> *,hello
<setra> I try to use passenger with ruby web application, but no matter what I try I get the pink screen saying Web application could not be started - uninitialized constant Gem::UserInteraction (NameError)
<setra> I use ubuntu 12.04 server
<havenwood> setra: What version of Ruby are you using?: ruby -v
<setra> First I thought it is the web app, but now I tried any and every fails,
<setra> ruby -v -> ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
sepp2k1 has joined #ruby
nowthatsamatt has quit [Ping timeout: 276 seconds]
* Hanmac point and laugh at outdated ruby versions
axl_ has joined #ruby
djbkd has joined #ruby
elikem has joined #ruby
toastyne_ has quit [Ping timeout: 258 seconds]
<setra> how do I update the HAHA ... ruby version...
decoponio has quit [Quit: Leaving...]
sepp2k has quit [Ping timeout: 258 seconds]
<Hanmac> setra eigther upgrade your ubuntu, or use upate-alternatives to switch or use rvm or others to install newer ruby version
<setra> okinomo_away, which version do you recommend?
gtc|ghos1 has quit [Remote host closed the connection]
<havenwood> setra: Ruby 2.1.2
toastynerd has joined #ruby
rudisimo has quit []
<havenwood> setra: if you're using something like ruby-install/chruby or rvm**
<Hanmac> or use ruby2.2dev if you are a crazy little one like me ;P
<setra> I have rvm on the system, because I needed it for something... sorry but I'm a ruby beginner
<havenwood> setra: or with updated ubuntu, ruby2.0
<setra> so please feel free to point me the right direction(s)
<havenwood> setra: rvm get latest && rvm install ruby && rvm --default use ruby-2.1.2
<Hanmac> in ruby every direction can be a right one, because in ruby there are more than one way to do something ;P
<havenwood> is that last bit still the rvm preferred way to set default ruby?
<havenwood> --default flag i mean*
<havenwood> setra: though you might consider updating ubuntu to 14.04
<Hanmac> havenwood: i think he has installed rvm in userspace, but need someting in *webusername* space, so its not installed system wide
<setra> sorry, I have to stay with 12.04
<setra> at least for now, so how do I do it.
kenneth has joined #ruby
kenneth has quit [Max SendQ exceeded]
<havenwood> setra: and you need ruby installed for a user or system wide?
sdwrage has quit [Quit: This computer has gone to sleep]
nowthatsamatt has joined #ruby
<setra> system wide is ok
<havenwood> setra: for rvm the preferred path is user install
<havenwood> setra: strongly preferred
jjbohn_ has joined #ruby
toastynerd has quit [Ping timeout: 252 seconds]
combusean has quit [Ping timeout: 265 seconds]
kenneth has joined #ruby
<setra> okinomo_away, probably I did that already but if I start apache and I have the passenger enabled how is that to be configured together...
subbyyy_ has quit [Ping timeout: 250 seconds]
sdwrage has joined #ruby
<havenwood> setra: is passenger installed as a gem or apt package?
<havenwood> setra: using the passenger apache module or standalone?
<havenwood> setra: rvm installed by apt package or curl script?
<setra> i installed passenger through apt with special repository
<setra> rvm was installed by curl
Davedo has quit [Ping timeout: 240 seconds]
jonno11 has joined #ruby
<havenwood> setra: i'd say update rvm to latest, install ruby 2.1.2, configure passenger to use that ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<setra> passenger --version says 4.0.42
jjbohn has quit [Ping timeout: 252 seconds]
<setra> okinomo_away, I'm with you, how do I tell passenger to use ruby in a users .rvm directory
<havenwood> setra: or use ruby-install to install 2.12 to /usr/local
<havenwood> 2.1.2*
<setra> rvm -version says --> 1.25.15
aspires has quit []
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ixti has joined #ruby
chipotle has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> setra: so update rvm
JoeGaudet has joined #ruby
tobago has quit [Remote host closed the connection]
<havenwood> setra: rvm get latest
<setra> please tell me how to install ruby as 2.12, because after an apt-get update upgrade ... still up to 1.87
shadoi has quit [Quit: Leaving.]
<setra> keep in mind ---ruby noob
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> Hanmac: does 12.04 have 1.9.3?
sooik has joined #ruby
<havenwood> setra: sudo apt-get install ruby1.9.3
sambao21 has joined #ruby
aspires has joined #ruby
<Hanmac> havenwood: hm as 1.9.1 pack?
<havenwood> Hanmac: yeah, aliased to 1.9.3 i think
<setra> thx, yes 1.9.3 is available
elikem has quit [Ping timeout: 264 seconds]
<havenwood> setra: then: update-alternatives --config ruby && update-alternatives --config gem
niklasb has joined #ruby
<havenwood> setra: so you can build gems with native ext: sudo apt-get install ruby1.9.1-dev
razrunelord has quit [Remote host closed the connection]
ldnunes has joined #ruby
aspires has quit [Client Quit]
<havenwood> setra: then `bundle` in your apps root dir or however you're going to install your gems
<havenwood> app's*
chipotle has quit [Ping timeout: 252 seconds]
happytux has joined #ruby
wnoronha has joined #ruby
<happytux> What is the minimal puppet version for rcov?
<setra> thx guys, need to hit the road... cya
<csmrfx> Are any rubyists aware of human readable music notation formats?
<xybre> Uhm?
sambao21 has quit [Ping timeout: 250 seconds]
<csmrfx> let me rephrase
nowthatsamatt has quit [Read error: Connection reset by peer]
shevy has joined #ruby
havenwood has quit [Remote host closed the connection]
<csmrfx> Are any rubyists aware of a working, text-based & human-readable music notation format?
ghr has joined #ruby
sputnik13 has joined #ruby
LadyRainicorn has joined #ruby
<Hanmac> csmrfx: i recent worked with Rosegarden program, but i am not aware if it has a human-readable format
sunya7a_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
* csmrfx makes the bold claim, that despite it being the year 2014, no human-readeble and -editable music notation format implementation exists!
Jnco has joined #ruby
<xybre> Export to MIDI and convert.
<csmrfx> no
aspires has joined #ruby
<happytux> da da daaa da da daaa
<happytux> lol
<csmrfx> you might as well ask me to use binary html format
<Hanmac> nah, that would be php
wjlafrance has quit [Quit: This computer has gone to sleep]
<xybre> No I'm saying use off the shelf parts.
<xybre> Oh I see what you mean now.
sunya7a has quit [Ping timeout: 240 seconds]
<happytux> In rubygems they don't list the required ruby version for a gem.
<happytux> How can I find it out?
setra has quit [Ping timeout: 252 seconds]
<LadyRainicorn> HTML should have a binary format.
<xybre> happytux: You could check the gemspec
<xybre> LadyRainicorn: XML does, so it probably does :(
<LadyRainicorn> happytux: Look at the current version of the gem at that its using at the last commit date.
jprovazn_afk is now known as jprovazn
<LadyRainicorn> Alternatively, git bisect
ghr has quit [Ping timeout: 258 seconds]
<LadyRainicorn> (and try with various versions)
cescalante is now known as ce_afk
nowthatsamatt has joined #ruby
abra has joined #ruby
<csmrfx> I have a dream: that any musician using a text editor could create and edit music notation files using a practical format that is easy to learn (for a musician)
vpretzel|1490 is now known as vpretzel
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
sunya7a has joined #ruby
<xybre> CSound? :p
workmad3 has joined #ruby
yfeldblum has joined #ruby
<csmrfx> hm, music *notation*
<csmrfx> I dont remember csound format but I think it has more
<LadyRainicorn> csmrfx:Why don't you create a format?
<csmrfx> I might...
<LadyRainicorn> It wouldn't be hard to map standard notation to ASCII
sooik has quit [Ping timeout: 276 seconds]
<csmrfx> 2k14, UTF baby UTF
<xybre> CSound is a whole language.
zachallett has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
nicholas040 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sunya7a_ has quit [Ping timeout: 240 seconds]
<csmrfx> what I think my time and skills *could* do is format definition and human-readable-to-.mid conversion library
<csmrfx> but, found some formats
geggam has quit [Remote host closed the connection]
tjr9898 has quit [Ping timeout: 276 seconds]
<csmrfx> musicXML, lilypond may be what I want
dfedde has quit [Remote host closed the connection]
<Hanmac> xybre: lets cross CSound with Shakespeare-programming-language - write an audio file like a novel ;P
sambao21 has joined #ruby
<xybre> haha
nowthatsamatt has quit [Ping timeout: 264 seconds]
blackmes1 has quit [Ping timeout: 264 seconds]
<csmrfx> like happytux did 9 mins ago
wallerdev has quit [Quit: wallerdev]
vpretzel has quit [Quit: Adios!]
<xybre> Yes, XML is definitely the solution.
tharindu has quit [Quit: Linkinus - http://linkinus.com]
<csmrfx> heres a peek of lilypond music format: http://en.wikipedia.org/wiki/LilyPond#Example_of_LilyPond_input_file
<csmrfx> maybe a lilypond dsl
<csmrfx> whats with the backslashes, anyway
timonv has joined #ruby
tharindu has joined #ruby
zigomir_ has joined #ruby
<xybre> Those must designate keywords.
jjbohn_ has quit [Quit: Leaving...]
<xybre> They're hints that make the parser easier to write most likely.
<csmrfx> yeah, to me it looks like thats idiomatic
tjr9898 has joined #ruby
<csmrfx> (sic)
zachallett has joined #ruby
jprovazn is now known as jprovazn_afk
<csmrfx> also, tautonomous, wouldn't a newline work the same
<banister> csmrfx sup carl
sdwrage has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
<csmrfx> usurps, mr banner
<xybre> There's certain thigns yo uget for free when using a syntax like that, I don't personally think they're worth it, btu some people think it is, so meh.
alpha123 has joined #ruby
eka has quit [Read error: Connection reset by peer]
<csmrfx> MusicXML looks horrible for writing it http://en.wikipedia.org/wiki/MusicXML#Example
eka has joined #ruby
zigomir has quit [Ping timeout: 258 seconds]
spyderman4g63 has joined #ruby
<csmrfx> typical verbose markup, could work with preprocessor
Oxddf has joined #ruby
Bira_ has quit [Remote host closed the connection]
<xybre> It's XML, what did you expect?
tjr9898 has quit [Remote host closed the connection]
SilkFox has quit [Ping timeout: 255 seconds]
vlad_starkov has joined #ruby
<csmrfx> heh, nothing
bradhe has quit [Remote host closed the connection]
<csmrfx> then again, could just have .mid dsl
<xybre> I could write a parser that could send to a MIDI device for a format like "4/4time 100bpm G3q D2f C2h ... "
* alpha123 is working on a nicer syntax for XML
omosoj has joined #ruby
<alpha123> Unfortunately nothing can fix terrible schemas.
tharindu has quit [Ping timeout: 264 seconds]
tjr9898 has joined #ruby
<csmrfx> I always hope to write dsl, and usually amount to preprocessor
treehug8_ has quit []
<xybre> I would suggest that CML is a sort of tarpit and that you focus on something else.
babykosh has joined #ruby
<alpha123> xybre: Except I'm a web designer and like XSLT a lot
babykosh has quit [Client Quit]
<alpha123> correction: I like the *idea* of XSLT a lot....
<xybre> I've built a few parsers, I think the bigger annoyance would be getting the MIDI protocol working.
<xybre> alpha123: Ignore XML and create your own "XSLT-inspired" tarpit.
aspiers has joined #ruby
<xybre> csmrfx: Whats the expected output format, really?
<csmrfx> I still have a dsl modeling xslt in the works
Oxddf has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<alpha123> xybre: I've thought about that, it might be a good idea.
tjr9898 has quit [Remote host closed the connection]
Oxddf has joined #ruby
<xybre> It should be easy to make code generators for LilyPond and MIDI.
<csmrfx> xybre: I think the most common denominator is .mid -file format
<xybre> alpha123: Sounds like csmrfx thinks its a good idea, maybe you should work on it together.
coderhs has joined #ruby
<xybre> csmrfx: Then its as easy as making a DSL for midi, that should be.. trivial.
<csmrfx> yeah, kinda
moeSeth_ has joined #ruby
<csmrfx> xybre: or, ".mid has quirks" -galore?
<csmrfx> I wouldn't know
tjr9898 has joined #ruby
intnsity has joined #ruby
treehug88 has joined #ruby
<xybre> csmrfx: The specification is pretty simple and has been a standard since 1985ish.
benzrf|offline is now known as benzrf
alem0lars has quit [Quit: Going AFK...]
alem0lars has joined #ruby
<csmrfx> yeah I've stared real time logs of midi messages for hours on end
aspires has quit []
<xybre> There's some standard extensions for midi for more fine-grained timings or more flexible note ranges, but I think for a first pass thsoe can be samefly ignored. However I would probably keep in mind the possibility ot output OSC instead of MIDI down the road.
<csmrfx> now, that I think of it, there's probably a gem
postmodern has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LadyRainicorn has quit [Read error: Connection reset by peer]
Rainicorn has joined #ruby
eka has quit [Ping timeout: 240 seconds]
SilkFox has joined #ruby
<xybre> Yeah I assumed I'd piggyback on a MIDI gem for the output stage.
Bira has joined #ruby
kpshek has quit []
geggam has joined #ruby
jackneill has quit [Remote host closed the connection]
Davedo has joined #ruby
<xybre> csmrfx: Also check this out -> http://compusition.com/software/cosy/online
<xybre> It looks very similar to the format I came up with above.
coderhs has quit [Ping timeout: 252 seconds]
pika_pika has quit [Ping timeout: 264 seconds]
<xybre> It's old but it turns a human readable format into MIDI: https://github.com/adamjmurray/cosy
<Jnco> Hi All, I am taking over on the infrastructure end for a ruby shop. We have a current configuration stack mysql/nginx+passenger/ruby+capistrano for deployment. I have a feeling this doesnt seem like the most effective setup -- I am new to ruby dev and wanted to know any advice you guys had for best stacks - running now on AWS
tjr9898 has quit [Remote host closed the connection]
<csmrfx> I'll try to make it a weekend hacker project
rokob has quit [Remote host closed the connection]
<xybre> Jnco: It's a pretty standard setup.
tjr9898 has joined #ruby
<benzrf> Jnco: dont use mysql
<benzrf> use postgres!
<benzrf> it is better
<xybre> Yes yes, use MariaDB at least, and Postgres is better, but MySQL is fine.
cek has joined #ruby
<csmrfx> is that like app+web server?
<csmrfx> uh, web+app server
<shevy> oh man
<Jnco> what do you mean by standard
<shevy> setting up a new system always takes so long :(
sdwrage has joined #ruby
<Jnco> a lot of people use nginx+passenger?
<cek> Did you celebrate Victory day today?
<Jnco> for ruby deploys
<xybre> Jnco: Typical? Common?
<Jnco> do you guys use heroku?
<csmrfx> I did in 2008
<csmrfx> twice
scriabin has joined #ruby
<xybre> define -> standard: used or accepted as normal or average.
<xybre> I've used Heroku.
<xybre> Plenty.
<cek> Jnco: in a way, yes
jjbohn has joined #ruby
<Jnco> trying to think
<benzrf> i have used heroku
<benzrf> but only free tier
<benzrf> becoz theyre overpriced as fuck
skaflem has joined #ruby
<Jnco> just want to create the best architecture possible
<scriabin> can anybody tell me is there a way to tell gem or bundler to use a particular disc for builds rather than my home directory?
<csmrfx> KISS
<Jnco> in terms of infrastructure
<xybre> I only recommend Heroku for starting out. If you already have AWS infrastructure then use it.
<Jnco> and this world is new to me
<Jnco> we are on aws
<Jnco> sortbox.co
<benzrf> scriabin: a particular disc?
cek has left #ruby [#ruby]
<xybre> Heroku runs on AWS but dilutes it down so your servers are slower (ie you need to pay for more servers) yet they're also more expensive.
LadyRainicorn has joined #ruby
<Jnco> what would you use xybre
<Jnco> for a stack
jjbohn has quit [Client Quit]
mjsmith2 has quit [Remote host closed the connection]
<Jnco> do you like nginx and passenger? What about unicorn?
<scriabin> benzrf:yeah - I'm talking on a unixy system
<scriabin> like GEM_TEMP_FILE=/usr/share/bigdisc
<csmrfx> Jnco: you are in guessing game
<xybre> Jnco: It sounds ot me like you already have a pretty decent setup. Personally I use Postgres (when I need SQL), Nginx+Unicorn, Git-Deploy with basic Bash and Ruby scripts for deploymeny.
<xybre> deployment^
<csmrfx> Jnco: you should be able to compare metrics you have
Rainicorn has quit [Ping timeout: 258 seconds]
<Jnco> just starting out feeling overwelmed but having fun at same time
<Jnco> the wonderful world of ruby
nowthatsamatt has joined #ruby
<xybre> Jnco: Reguardless of my personal choices, if I was presented with the stack you mentioned I would keep it as is.
<Jnco> so far i like it, gem style reminds me of python
<benzrf> Jnco: ruby is roughly equivalent to python in terms of how things workmad3
<Jnco> thank you xybre
<benzrf> *work
SCommette has joined #ruby
<workmad3> benzrf: hah
<workmad3> benzrf: bit over-active on the tab key there? ;)
<Jnco> yeah i like the budled functions
<benzrf> ;-;
ctp has joined #ruby
<Jnco> bundled
<xybre> Gems have better dependency management than eggs, and RVM+Bundler is a boon for development.
<Jnco> I cloned the produciton server..
<Jnco> now I have things running but getting 404 error
<Jnco> checked routes.rb but .. uhh.. yeah..
krazh has joined #ruby
coderhs has joined #ruby
<xybre> Jnco: If you have a clone of the production server that isn't running in a public lcoation run the server in development mode so you can see the full error messages.
maletor has joined #ruby
<xybre> Jnco: Otherwise time to start tailing the production logs :)
<workmad3> Jnco: check the log
<Jnco> I will, ok thanks guys
skaflem has quit [Quit: Leaving]
<Jnco> now I have some other problem heh
<Jnco> the fun begins
binaryhat has quit [Ping timeout: 255 seconds]
alvaro_o has joined #ruby
<workmad3> Jnco: diagnosing stuff in production is always fun
<xybre> Jnco: Hmm, looks like the version of Passenger you're using is from 2012?
meatherly has quit [Remote host closed the connection]
<xybre> Does that mean your entire stack is from 2012?
rehat has joined #ruby
<xybre> If so, you, uh, need to update everything. Right now.
<workmad3> Jnco: in the same way that trying to yawn-rape a crocodile is fun...
soheil has quit [Read error: Connection reset by peer]
soheil_ has joined #ruby
<shevy> lol
kevind_ has joined #ruby
<csmrfx> hehe I hope your versioning works well
diegoviola has quit [Quit: WeeChat 0.4.3]
<xybre> According to your webserver response headers you're running Phusion Passenger 3.0.15
<shevy> everything stays below version 1.0
<shevy> if it reaches 1.0 it will have to get a new name
kirun has joined #ruby
<Jnco> yea
<shevy> Jnco stop living in the past man!
<workmad3> Jnco: xybre is correct... you're on passenger 3.0.15 and nginx 1.2.3... both are quite old and could do with some updating
<shevy> switch to ruby 2.1.2
<Jnco> no
<Jnco> Im working on the clone
<shevy> come on
<Jnco> server
<xybre> nginx 1.2.3 is also from 2012.
<Jnco> not prod
<Jnco> ugh that is what I mean
<shevy> you lost almost 3 years here
<Jnco> im in a world of uh ohs
<csmrfx> oopx
<Jnco> well how do I know the code will deploy ok
sambao21 has quit [Quit: Computer has gone to sleep.]
<xybre> Jnco: You're a time traveler!
<Jnco> maybe I need to completely rebuild
timonv has quit [Remote host closed the connection]
<Jnco> hmm
Oxddf has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<workmad3> xybre: or were you old-school and checked the headers in the network tab? :)
<Jnco> maybe just update
tjr9898 has quit [Remote host closed the connection]
<xybre> workmad3: Both :)
timonv has joined #ruby
dukedave has joined #ruby
<xybre> Jnco: Deploy to a staging server before going to production with the updated stuff.
kitak has joined #ruby
kevind has quit [Ping timeout: 258 seconds]
<Jnco> I will
kevind_ is now known as kevind
<xybre> Jnco: Your server might be vulnerable to the recent OpenSSL vulnerability a well as probably the Remote Code Execution vulnerabilty discovered in 2013 in Rails.
elikem has joined #ruby
<workmad3> xybre: I thought that and checked it for him
XThief has joined #ruby
<xybre> Oh good.
<workmad3> Jnco: you're safe ;) otherwise I'd have pmed you
tjr9898 has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<workmad3> on the openssl front that is
<workmad3> didn't check the rails exploit
<xybre> workmad3: Did you check the Rails Routes Yaml exploit?
<workmad3> xybre: no
<xybre> kk
<workmad3> forgot about that one
<happytux> So there are now two rake tasks named 'build', one in the Rakefile and one imported.
<scriabin> folks is there a way to tell gem to not use my local directory for building stuff?
cyprusre has quit [Quit: Leaving]
<happytux> However, I want to only use the build task in Rakefile, how can I let ignore the other one?
toastynerd has joined #ruby
<shevy> waaaah
djbkd has joined #ruby
<shevy> why can I not compile ext/openssl
<shevy> compiling ossl_pkcs7.c
<shevy> make: *** No rule to make target '/thread_native.h', needed by 'ossl.o'. Stop.
<workmad3> shevy: what's your openssl version?
tjr9898 has joined #ruby
Bira has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
tjr9898 has quit [Remote host closed the connection]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> Openssl Version: 1.0.1g
<workmad3> shevy: hmm... dunno then
tjr9898 has joined #ruby
mansi has joined #ruby
Arkaniad has joined #ruby
jlast has joined #ruby
<shevy> going to try 1.9.3 to see if there is a difference there compared to 2.1.2
timonv has quit [Ping timeout: 252 seconds]
<workmad3> shevy: was wondering if you were trying to build with something like the native os x openssl (0.9.8) which is too old for new rubies
JoeGaudet has quit [Quit: Computer has gone to sleep.]
rokob has joined #ruby
mansi_ has joined #ruby
wjlafrance has joined #ruby
aspires has joined #ruby
nicholas040 has joined #ruby
meatherly has joined #ruby
rizzatti has joined #ruby
mjuszczak has left #ruby [#ruby]
CodeBunny has joined #ruby
djbkd has quit [Ping timeout: 276 seconds]
Shidash has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
elikem has quit [Quit: elikem]
sambao21 has joined #ruby
alem0lars has quit [Quit: alem0lars]
bradhe has joined #ruby
endash has quit [Quit: endash]
sambao21 has quit [Client Quit]
yalue has quit [Quit: Leaving]
<happytux> anyone? I find my question really interesting and worth reading it.
<shevy> Fatal Python error: Py_Initialize: Unable to get the locale encoding
<shevy> ImportError: No module named 'encodings'
workmad3 has quit [Ping timeout: 255 seconds]
<shevy> haha python encoding sucks as well
djbkd has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> happytux no idea, I dont use rake. when I need actions, I write them into methods in ruby and put them into some file(s)
XThief has quit [Quit: XThief]
workmad3 has joined #ruby
<RubyPanther> shevy: you might need --with-openssl-dir or else edit the makefile eg top_srcdir = $(topdir)/../..
zorak has quit [Ping timeout: 264 seconds]
beef-wellington has joined #ruby
<RubyPanther> '/thread_native.h' looks like there is a path issue
BWStearn1 has quit [Ping timeout: 258 seconds]
wallerdev has joined #ruby
SilkFox has quit [Ping timeout: 245 seconds]
<RubyPanther> happytux: naming collisions are not actually interesting at all, they're more in the "don't do that, it hurts" category
djbkd has quit [Remote host closed the connection]
subbyyy_ has joined #ruby
zorak has joined #ruby
alex88 has joined #ruby
zcreative has joined #ruby
binaryhat has joined #ruby
renier has quit [Quit: Textual IRC Client: www.textualapp.com]
shock_one has quit [Ping timeout: 265 seconds]
kitak has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
<happytux> RubyPanther: right, but what is if I want to use some rake tasks in two different required ruby files, but they also share some tasks by name?
danshultz has joined #ruby
<RubyPanther> happytux: use tools that namespace their tasks correctly
jjbohn has joined #ruby
sambao21 has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
<RubyPanther> poorly written tools often try to claim global namespace, and even use generic names for things like "build" so then these tools will conflict, either with the application using them, or with other crappy tools
<RubyPanther> whereas it should be rake suckytool:build
<RubyPanther> or, just stick a fork in it and add a namespace
klaut has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
krazh has quit [Remote host closed the connection]
rizzatti has quit [Quit: Leaving...]
redondos has quit [Excess Flood]
Oxddf has joined #ruby
mehlah has joined #ruby
instantaphex has quit [Quit: leaving]
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
Royalb15_1 is now known as Royalb15
renier has joined #ruby
djbkd has joined #ruby
LadyRainicorn has quit [Ping timeout: 252 seconds]
LadyRainicorn has joined #ruby
lethjakman has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy> oh well
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
tomato has joined #ruby
failshell has quit []
sambao21 has joined #ruby
mehlah has quit [Ping timeout: 240 seconds]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
Bira has joined #ruby
Hanmac1 has joined #ruby
BucOder has quit [Quit: Computer has gone to sleep.]
pika_pika has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
razrunelord has joined #ruby
zenojis has quit [Read error: Connection reset by peer]
bricker has quit [Read error: Connection reset by peer]
zenojis has joined #ruby
zachallett has quit [Remote host closed the connection]
nanoyak has joined #ruby
Bira has quit [Ping timeout: 240 seconds]
zegerjan has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 276 seconds]
rizzatti has joined #ruby
combusean has joined #ruby
<shevy> ruby 1.9.3p545 (2014-02-24 revision 45159) [x86_64-linux]
<shevy> somehow ruby gets harder and harder to work with the higher the version number :P
endash has joined #ruby
kenneth has joined #ruby
dfinly has joined #ruby
Buddhabelly has joined #ruby
Buddhabelly has quit [Client Quit]
omosoj has quit [Quit: Leaving]
<combusean> no wonder I don't understand this code
<combusean> whoever wrote it was on crack
poguez_ has quit [Quit: Connection closed for inactivity]
eka has joined #ruby
diegoviola has joined #ruby
Rahul_Roy has joined #ruby
skysploit has joined #ruby
skysploit has joined #ruby
tjr9898 has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy> haha
<shevy> combusean show some stuff man
jprovazn_afk has quit [Quit: Odcházím]
yairgo has quit [Ping timeout: 252 seconds]
<combusean> it's too convoluded and spread over too many functions to post
redondos has quit [Excess Flood]
sivoais has quit [Ping timeout: 276 seconds]
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
atmosx has joined #ruby
lw has quit [Quit: s]
bricker has joined #ruby
pika_pika has quit [Ping timeout: 255 seconds]
SCommette has quit [Quit: SCommette]
jonno11 has joined #ruby
<shevy> just one example PLEASE
Bumptious has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
djbkd has quit [Remote host closed the connection]
treehug88 has quit []
alex88 has quit [Quit: Leaving...]
paulfm has quit []
razrunelord has quit [Remote host closed the connection]
<scriabin> I'm getting Disc Quota issues running gem install - how do I tell gem to use a particular slice for temp space?
wjlafrance has quit [Quit: This computer has gone to sleep]
CodeBunny has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
<csmrfx> slice?
<scriabin> slice, disc, directory etc.
<csmrfx> did you see "$ gem help"
mjsmith2 has joined #ruby
<Jnco> is it a good time to make the jump to ubuntu 14 or stick with 12 for now? for a ruby stack... ??
aspiers has quit [Ping timeout: 276 seconds]
<scriabin> csmrfx:rtfm? I've only been asking for 45 minutes lol
momomomomo has quit [Quit: momomomomo]
<csmrfx> Jnco: ubuntu cycle is what? 3 years?? use lts
RaptorJesus has joined #ruby
codezomb has joined #ruby
<shevy> Jnco all is awful for ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
Arkaniad has quit [Ping timeout: 245 seconds]
<Jnco> ok
<Jnco> so uhm
<Jnco> best ubuntu version for ruby..?
<Jnco> 12 lts?
<Nilium> Any.
<centrx> Jnco, It doesn't really matter much
<centrx> Jnco, Obviously Ubuntu 12.04 is really old
<Jnco> I have the opportunity to use 14
<Jnco> im starting my server from scratch
<Nilium> Use whatever you want. It probably won't make a difference to Ruby.
<Jnco> have plenty of ice coffee
<Jnco> what about nginx+passenger?
<csmrfx> for what?
<Jnco> or any other components? have any suggestions?
<shevy> nginx isn't related to ruby is it
<csmrfx> where?
razrunelord has joined #ruby
<csmrfx> when?
nateberkopec has quit [Quit: Leaving...]
<csmrfx> metrics, you create them, then you have something to decide on
<shevy> so it depends what ubuntu 12 to 14 makes differently there
<Nilium> I'm more of a BSD person, so I can only say that Ruby probably doesn't care.
<shevy> but ubuntu is awful anyway so it won't matter what you use
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Jnco> what do you perfer shevy
<shevy> Jnco source. for the philosophy, appdirs like in gobolinux.
<Nilium> I'd use GNU stuff if it wasn't all subtly non-standard
jonno11 has joined #ruby
sambao21 has joined #ruby
alex88 has joined #ruby
<Jnco> im pretty new to the scene shevy
<shevy> Jnco good, then you aren't yet disillusioned
<Jnco> :D
<Jnco> kinda used to ubuntu and the wonders of apt-get
<Nilium> Not that the BSDs aren't also subtly non-standard, just.. less so, it feels like.
<Jnco> dont want to kill myself compiling source packages
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
endash has quit [Quit: endash]
kahrl has quit [Quit: kahrl's attendance has reached limits]
alex88_ has joined #ruby
sunya7a has quit [Quit: leaving]
yubrew has quit []
<centrx> Nilium, GNU + BSD is the standard
kyb3r_ has joined #ruby
<shevy> Jnco then archlinux may be better than ubuntu
<Jnco> need it on aws
<Nilium> Actually, POSIX is the standard and deviations from that in ways that affect me make me angry.
<shevy> what is aws?
<Nilium> Amazon stuff.
<Jnco> amazon cloud
<shevy> hmm
<shevy> you need ruby on amazon cloud?
<Jnco> im taking over the support of an application and its stack
SCommette has joined #ruby
<Jnco> and i am totally new to ruby :X
AndChat| has joined #ruby
<Jnco> reaching out in the dark
* Nilium hands Jnco a hacksaw
<Nilium> You'll know what to do with it later.
<shevy> well
<shevy> Jnco it seems as if you have a quite long todo list here
dblessing has quit [Quit: dblessing]
alex88 has quit [Ping timeout: 252 seconds]
elaptics is now known as elaptics`away
<Jnco> seriously
<Jnco> do
<shevy> focus on one thing at a time
<Jnco> almost wondering to start rebuild server or even start with a configuration engine (puppet,chef)
lkba has quit [Ping timeout: 258 seconds]
nateberkopec has joined #ruby
<shevy> hehehe
franzip has quit [Quit: ...]
sivoais has joined #ruby
ghr has joined #ruby
mansi_ has quit [Read error: Connection reset by peer]
atmosx has quit [Quit: Lost in trance]
* Nilium shrugs since this is totally not his area
arrubin has quit []
ldnunes has quit [Quit: Leaving]
niftylettuce_ has quit [Quit: Connection closed for inactivity]
momomomomo has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
danshultz has joined #ruby
rehat has quit [Remote host closed the connection]
<tomato> hey, just learning ruby and my IDE is giving me errors about 'expected expression', missing arguments, expected ;…. for something that actually works!
<tomato> fruit = ->(str) { ["banana", "apple", "grape" ].include? str }
<tomato> what's the deal?!
SegFaultAX has quit [Excess Flood]
<csmrfx> returns lambda=?
BucOder has joined #ruby
<Nilium> What version of ruby does the IDE expect the code to be?
<tomato> yeh
<csmrfx> >> fruit = ->(str) { ["banana", "apple", "grape" ].include? str }
<eval-in_> csmrfx => #<Proc:0x418f6394@/tmp/execpad-54ca8346215a/source-54ca8346215a:2 (lambda)> (https://eval.in/148930)
<csmrfx> see
<tomato> not sure, new to the IDE, it's ruby mine… let me see if i can find it
the_f0ster has quit [Ping timeout: 255 seconds]
<shevy> tomato yeah, the IDE must do something that is incompatible
<tomato> csmrfx, what's that all about?
<csmrfx> maybe its some weird whitespace
DarsVaeda has joined #ruby
<shevy> tomato is it attached with a specific ruby version btw? what is the ruby version you have anyway
sdwrage has quit [Quit: Leaving]
<benzrf> dont use IDEs for RubyPanther thats BS
<csmrfx> tomato was just wondering if that works
<shevy> yeah dont use an IDE just for RubyPanther :P
<tomato> shevy, rum, just did the latest today with rbenv or whatever it's called
<DarsVaeda> can I ask bundler questions here?
<shevy> rum?
<tomato> csmrfx, it does work hey!
<shevy> ok I still don't know the version
<bricker> DarsVaeda: sure
<tomato> ruby --version ± on refactor2
<tomato> ruby 2.1.2p95
<shevy> k
<shevy> >> RUBY_VERSION
<eval-in_> shevy => "2.1.0" (https://eval.in/148931)
<DarsVaeda> I try to install something and this needs bundler 1.0.10 but I have 1.6.2, so I tried "gem install bundler --version=1.0.10" which works but afterwards I still get the version mismatch error and it says I still have 1.6.2?
<tomato> i have no idea how to see which version of ruby my IDE expects
alex88_ has quit [Ping timeout: 252 seconds]
<csmrfx> tomato: maybe something without "->"
<csmrfx> ie labmda
<tomato> thought it was a proc here
<tomato> proc literal
<csmrfx> er, lamb-dah
mjsmith2 has quit []
phantasm66 has quit [Quit: *poof*]
<shevy> tomato well the syntax is valid, the IDE is just stupid
<bricker> DarsVaeda: try uninstalling the other version of bundler.
Hanmac has joined #ruby
markveidemanis has left #ruby ["Leaving"]
alex88 has joined #ruby
<tomato> jet brains can eat my ____
jjbohn has quit [Ping timeout: 240 seconds]
<DarsVaeda> bricker, thanks I believe this works
Hanmac1 has quit [Ping timeout: 276 seconds]
danman_ has quit [Quit: danman_]
SegFaultAX has joined #ruby
pika_pika has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
<slash_nick> ... quadruple underscore?
<benzrf> slash_nick: shit, probably
<benzrf> tomato seems to believe in censoring oneself
<slash_nick> i'd rather eat a quadruple underscore
<tomato> i love it when the enterprise eats my quadruple underscore
<Nilium> I'd rather eat waffles.
brunops has joined #ruby
<slash_nick> with peanut butter and maple syrup
alex88 has quit [Quit: Leaving...]
jobewan has quit [Quit: Leaving]
jonno11 has joined #ruby
<tomato> omg just found how to make it use my sdk!
Morkel has quit [Quit: Morkel]
* tomato dances flaunting his ____
codecop has quit [Quit: Išeinu]
myke has left #ruby [#ruby]
<Nilium> I do not approve of what you eat but defend to the death your right to require a quintuple bypass.
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
<tomato> i'm getting a new error on using an array literal, it says i should use '%w' ?
djbkd has joined #ruby
tacos1de has quit [Remote host closed the connection]
timgauthier has joined #ruby
shenk` has joined #ruby
tacos1de has joined #ruby
<shevy> tomato well keep it simple man
<shevy> tomato yeah you can build an array with %w
<shevy> >> %w( cat dog mouse )
<eval-in_> shevy => ["cat", "dog", "mouse"] (https://eval.in/148932)
<tomato> why should i :S
shenk` has left #ruby [#ruby]
<shevy> why you should keep it simple? because complexity requires more and more layers on layers of suckage
<tomato> how is %w more simple than [ ] ?
<shevy> wait a moment
<shevy> let's compare it shall we
shenk` has joined #ruby
<shevy> %w(cat dog mouse)
<shevy> ['cat','dog','mouse']
<shevy> so
<shevy> do you notice a difference
<tomato> one looks like a normal array syntax in other languages
<tomato> one looks like it belongs in a regex
<tomato> :P
<shevy> ok so you don't notice a difference
<shevy> please keep on using []
<shevy> the good thing is, the ruby parser itself does not care much about what you use
<tomato> well i'm guessing the IDE is suggesting things based on the style guide so i'd like to know why.. don't wanna fight the grain too much hey
<Nilium> attr_reader *%i[suck mah ____]
<tomato> that's good to know
<shevy> the IDE wants to teach you to become a good IDE citizen
<happytux> hi again
<shevy> one day you will struggle free from its chains
diegoviola has quit [Quit: WeeChat 0.4.3]
<tomato> looking at git:bbatsov/ruby-style-guide under collections
<happytux> The ruby author (or someone related) wrote that one shouldn't be dependent on an IDE, but this doesn't mean one mustn't use one if it helps.
<tomato> Prefer %w to the literal array syntax when you need an array of words (non-empty strings without spaces and special characters in them). Apply this rule only to arrays with two or more elements.
JoeGaudet has joined #ruby
<happytux> How can I share/reuse rake tasks?
andrewlio has quit [Quit: Leaving.]
<happytux> Do I have to put them into a gem?
<happytux> oh
<wallerdev> i never use the % versions haha
DarsVaeda has left #ruby ["Ex-Chat"]
<shevy> happytux I dont think you have to put them into a gem at all, rake can work without gems just fine
mrmargolis has quit [Remote host closed the connection]
<tomato> didn't even know %w and %i existed… suppose it's pretty cool sugar to never type quotes
<shevy> YES
<shevy> %w more so than %i
DarsVaeda has joined #ruby
<shevy> it's less often that you need an array of symbols
SCommette has quit [Quit: SCommette]
blackmes1 has joined #ruby
<tomato> now i'm grateful to my IDE
<shevy> NO
<shevy> your IDE wants to confuse you
<shevy> the best IDE you can ever get will be a trained brain
<tomato> my IDE just told me this stuff… it quoted the above style guide
nateberkopec has quit [Quit: Leaving...]
doodleha_ has quit [Remote host closed the connection]
<shevy> hehe
einarj has joined #ruby
<tomato> my brain reasoned with it and disabled the dumb IDE suggestion about not using single quotes because my IDE doesn't mind being told to STFU
<shevy> I like your brain
Hobogrammer has quit [Disconnected by services]
<shevy> if only it could find the strength to do away with an IDE for ruby
Hobogrammer has joined #ruby
<tomato> i stole the IDE, it's fine
Lauritz has joined #ruby
meatherly has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
* combusean thwaps shevy with a vi stick
nateberkopec has joined #ruby
<tomato> hey don't get me wrong, i actually wrote the file in vim, just opened it in the IDE to see all these syntax warnings!
moeSeth_ has quit [Quit: Connection closed for inactivity]
<txdv> shevy trying to teach people that the language is the tool, not the ide
<shevy> well if the choice is IDE vs. vi
qwyeth has quit [Quit: Leaving]
<shevy> then perhaps you should stick to the IDE
<shevy> :)
* combusean likes vim for editing ruby :P
<tomato> i'm a sublime addict and trying to cut down :S
<shevy> tomato yeah but your IDE does subtly strange things
<shevy> huh wait
<tomato> hence wrestling with vim and IDE
<shevy> you use sublime?
<tomato> love it
<shevy> and sublime is telling you those awful lies?
<tomato> but not at the moment, just learning to live without it
<tomato> no, ruby mine is
<shevy> <tomato> fruit = ->(str) { ["banana", "apple", "grape" ].include? str }
<shevy> ah good
<shevy> then all is fine
<shevy> sublime is good, ruby mine stinks
<txdv> does sublime have autocompletion for ruby?
<tomato> and vim is making me press ESC about 30 times a minute
djbkd has joined #ruby
<benzrf> combusean: you have made the right choice congrats
<tomato> txdv, it half does, you can install a plugin for it
<benzrf> vim will always prevail over the evil forces of not vim
<benzrf> because we have
<benzrf> MODES
<txdv> you can install for vim a plugin as well to have it
<txdv> but that doesnt make vim an ide for ruby
mansi has joined #ruby
<benzrf> good bye now
mansi has quit [Remote host closed the connection]
<happytux> shevy: But using a gem for it would be 'the right way'?
<centrx> IDEs are for languages with unwieldy long method names, like Java and C#
<happytux> shevy: The rake tasks are used in several ci jobs.
<shevy> happytux no, why do you want to use a gem?
benzrf is now known as benzrf|offline
mansi has joined #ruby
<shevy> tomato, yeah, vim is pretty brain-heavy, I didn't like that
<happytux> shevy: I think I am on the wrong track.
mercerist has quit [Quit: Computer has gone to sleep.]
<tomato> yeh but still pretty hot if you do some SSH stuff
<happytux> shevy: the point is that those rake tasks will be versioned, not all ci jobs use the same version of a rake task, at least I have to anticipate this.
<happytux> tomato: eclipse?
<alpha123> I find vim rather less brain-heavy than most editors, once you tackle the enormous learning curve
<tomato> after spending a few days installing bundles and configuring sex it can work alright
<happytux> Well, I heard eclipse is nice but I find it a a little bit slow.
<tomato> happytux, jetbrains rubymine
<tomato> sublime is actually the easiest thing in the world
<alpha123> tomato: Emacs?
* alpha123 hides
<tomato> ...
<shevy> happytux never heard of anyone wanting to version rake-actions before
<alpha123> I haven't given Sublime much of a try. I gave the ST2 trial a brief go but barely used it
<alpha123> that was back in my Emacs days anyway, I'm super happy with vim now.
<tomato> don't use editors, just cat and regex swaps
<DarsVaeda> can anyone link to a working tutorial on how to install mysql on debian wheezy? I read and followed like 5 now and I still get "failed to build gem native extension"
_djbkd has joined #ruby
<alpha123> tomato: http://xkcd.com/378/ ?
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd has quit [Read error: Connection reset by peer]
<tomato> yeh that's it
<shevy> tomato that's almost the right attitude, except that ruby should edit stuff
<tomato> not a magnetised needle and a steady hand?
phoo1234567 has quit [Quit: Leaving]
<shevy> no
<shevy> you have a computer
mansi has quit [Ping timeout: 240 seconds]
<shevy> that's all the tools you need
<tomato> but first you must realise that there is no ruby
<alpha123> Weak sauce shevy. Real programmers stick with the needle. ;D
shadoi has joined #ruby
<shevy> alpha123 I haven't found a real programmer yet :(
vlad_starkov has quit [Remote host closed the connection]
<alpha123> They're in the basement.
<shevy> haha no
<shevy> in the basement is the stupid IT department
<shevy> stupid dungeon masters
<alpha123> hehe
<shevy> "I need ruby 2.1.0" "Ok, in a week you will have it." <3 weeks later>
<shevy> still nothing happened!
<alpha123> You don't get to install your own stuff? :(
odigity2 has joined #ruby
<txdv> what
<txdv> rvm install 2.1.0?
<txdv> or are you talking about an official release of ruby 2.1.0?
<momomomomo> txdv: did you read the conversation, or are you just typing?
<odigity2> I have a ruby script that uses the 'nfc' gem to interface with an NFC (RFID) board to read codes. The read function is a blocking call. While in this state, my script ignores Ctrl-C. Is there any way I can fix that?
<shevy> alpha123 nah, only in my home dir
<txdv> momomomomo: im just trying to join the conversation
<txdv> havent read what was before
<apeiros> rvm install 2.1.0? today? rvm install 2.1.2!
<momomomomo> txdv: usually you should do that before joining a conversation
<alpha123> txdv: You mean chruby and ruby-install? ;)
<shevy> alpha123 the funniest shit was that they used different servers, with different ruby versions; so the database server had ruby 1.9.3x, and the webserver had ruby 1.8.7
<Burgestrand> >> RUBY_VERSION
<eval-in_> Burgestrand => "2.1.0" (https://eval.in/148934)
<alpha123> >_<
<shevy> and they update like every once in 3 years
<alpha123> shevy: That... sucks, man. And it's not even like 1.9.1 vs 1.9.3 or something, but actually 1.8.x vs 1.9.x? :(
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
<momomomomo> >> `echo $HOSTNAME`
<eval-in_> momomomomo => (https://eval.in/148935)
beef-wellington has quit [Ping timeout: 252 seconds]
<momomomomo> >> `echo $(cat /etc/*release)`
<eval-in_> momomomomo => (https://eval.in/148936)
claymore has quit [Quit: Leaving]
<happytux> may I test eval-in.
<happytux> I want to feed it with something interesting
<shevy> alpha123 no, the only consistent thing was that it was ubuntu
<momomomomo> happytux: seems like they've got it down pretty well
<happytux> momomomomo: ?
Oxddf has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<alpha123> >> `echo $(cat /etc/passwd)`
<eval-in_> alpha123 => (https://eval.in/148937)
<momomomomo> happytux: oh, I thought you were going to try to break it :o
* alpha123 ducks
<momomomomo> alpha123: no pipe
<txdv> >> `echo $(which php)`
<eval-in_> txdv => (https://eval.in/148938)
EagleDelta has quit []
<Burgestrand> What's the correct way of passing on an unknown number of keyword arguments when delegating to an arbitrary method? This is raising an error: https://gist.github.com/Burgestrand/4d4571b953e96c6edb59
<combusean> benzrf, vi/vim is everywhere
phinfone_ has joined #ruby
froy has quit [Remote host closed the connection]
<combusean> benzrf, I have to be good on it to configure systems without some editor I have to install separately.
beef-wellington has joined #ruby
<alpha123> vim is teh greatestest <3
<combusean> vim is Best Editor
<tomato> esc
<tomato> :W
<tomato> FFS
<tomato> :w
crelix has quit [Quit: Textual IRC Client: www.textualapp.com]
phinfonet has quit [Ping timeout: 245 seconds]
* combusean kicks aws-sdk
SegFaultAX has quit [Excess Flood]
<happytux> >> put 'test'
<eval-in_> happytux => undefined method `put' for main:Object (NoMethodError) ... (https://eval.in/148939)
<happytux> >> print 'test'
<eval-in_> happytux => testnil (https://eval.in/148940)
<happytux> hmm
<Burgestrand> apeiros: do you know?
<tomato> >> puts 'test'
<eval-in_> tomato => test ... (https://eval.in/148941)
<apeiros> do I know?
saarinen has quit [Quit: saarinen]
<apeiros> what?
<alpha123> Yes, you know.
<centrx> >> puts 'puts'
<eval-in_> centrx => puts ... (https://eval.in/148942)
<Burgestrand> apeiros: why this raises an error: https://gist.github.com/Burgestrand/4d4571b953e96c6edb59
<happytux> >> while true do end
<eval-in_> happytux => (https://eval.in/148943)
<Burgestrand> apeiros: apologies, assumed you'd spot my message. :)
<apeiros> Burgestrand: because you pass one argument, an empty hash
<happytux> >> while true do print 'test' end
<happytux> uh oh
<apeiros> Burgestrand: just def delegate(*args, &block); original(*args, &block); end
<momomomomo> >> puts 'hello'
<eval-in_> momomomomo => hello ... (https://eval.in/148945)
<tomato> that wasn't very nice
<apeiros> Burgestrand: remember, kwargs is still a single argument, a hash
<happytux> >> while true do puts 'test' end
replay has joined #ruby
<happytux> >> while true do puts 'test'; end
<momomomomo> you probably just locked up a thread
<momomomomo> I imagine they enforce closing the threads after x amount of time
<tomato> and he keeps going
nowthatsamatt has quit [Quit: nowthatsamatt]
x1337807x has quit [Ping timeout: 245 seconds]
<apeiros> Burgestrand: but I stumbled over the same :)
<odigity2> I keep googling, and I can only find articles about catching Ctrl-C, nothing about prevent Ctrl-C from being caught and discarded.
rizzatti has quit [Quit: Leaving...]
<Burgestrand> apeiros: alright I'll give it a try, I assumed it had special semantics, and worked similar to *args, so some_method(**{}) would be identical to some_method(), just like some_method(*[]) is identical to some_method()
<odigity2> It's infuriating to keep having to look up the process ID and run a kill command every time I make a change to my script and want to rerun it.
<momomomomo> odigity2: what signal does CTRL+C send?
<Burgestrand> apeiros: thank, TIL. ;)
<odigity2> momomomomo, I'm no sure. You mean the integer value?
<apeiros> Burgestrand: yw ;-)
<momomomomo> odigity2: No, the Signal
<momomomomo> odigity2: google
<apeiros> glad to be useful :^)
nanoyak has quit [Quit: Computer has gone to sleep.]
<odigity2> momomomomo, I don't understand the question
<momomomomo> Google 'ctrl + c signal'
replay_ has quit [Ping timeout: 250 seconds]
mercerist has joined #ruby
<Burgestrand> Hm, I suppose it makes sense, or else all existing code using the old way of delegating would drop out keyword arguments.
SegFaultAX has joined #ruby
<Burgestrand> i.e. breaking change, or allow *args to pass on keyword arguments as normal. Meh.
<odigity2> momomomomo, and do what with the results? It seems like you're trying to help me, but you're not really succeeding...
<momomomomo> odigity2: now google '<signal> catch ruby'
<momomomomo> replace <signal> with what you found in google from your previous search
Beoran_ has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
vlad_starkov has joined #ruby
kirun has quit [Quit: Client exiting]
andrewjanssen has quit [Remote host closed the connection]
<happytux> >> print 'test';
<eval-in_> happytux => testnil (https://eval.in/148947)
<odigity2> momomomomo, I don't know what specific value you're looking to plug into <signal>. frankly, trying to understand you is starting to get more frustrating than my original problem
<happytux> ok
<happytux> >> while true do print 'test' end
chinkung has joined #ruby
<momomomomo> odigity2: When you press CTRL+C, a signal is sent to the program. it has a specific name. Google for that name.
nanoyak has joined #ruby
<momomomomo> literally the first result has a paragraph about the signal
<odigity2> it's sigint, dude. wouldn't it have been faster and easier to just determine that yourself rather than walk me through the process of googling it? also, you could have been more specific. signals have short names as well as integer values. you were etremely cryptic
<happytux> >> system 'test'
<eval-in_> happytux => (https://eval.in/148951)
kung has quit [Ping timeout: 276 seconds]
<happytux> >> system "echo 'test'"
<eval-in_> happytux => (https://eval.in/148953)
beef-wellington has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
nanoyak has quit [Client Quit]
x1337807x has joined #ruby
<momomomomo> odigity2: typically I don't like to spoon feed people
<happytux> >> IO.popen("date") { |f| puts f.gets }
<eval-in_> happytux => (https://eval.in/148954)
<odigity2> dude
<momomomomo> odigity2: basically, you can trap that signal, or you can rescue the exceptions raised when ruby catches it and tries to exit the program
alex88 has joined #ruby
troyready has quit [Ping timeout: 265 seconds]
<odigity2> momomomomo, no, I can't. As I explained, the signal is already being trapped, probably inside a C library wrapped in Ruby. Trying to trap it myself will not work, as it does not address the problem -- UNtrapping it.
saarinen has quit [Quit: saarinen]
<momomomomo> odigity2: well, now that you know about signals, you might consider running it as a sub process and trapping the signal yourself; tracking the pid, and killing it in ruby
<momomomomo> odigity2: depends on your code and how you use the C library
<odigity2> momomomomo, I've known about signals for years. I've trapped them, written handlers for them, used them, etc. I've just never had to prevent a function I'm calling from using them.
nowthatsamatt has joined #ruby
<odigity2> momomomomo, I suppose forking and running the blocking code in a sub-process, then killing it in a way it can't ignore would work. Lots of additional work for me to set up, but if there's no better alternative, then I'll get started.
<shevy> can you actually intercept that in ruby?
<DarsVaeda> I can not install one package without error... -.-
<odigity2> shevy, I have no idea. That's why I came here to ask, and instead momomomomo tries to send me on a quest for a value of unspecified type and substance to plug into a string interpolation followed by a beginner's lesson in the definition of a signal.
<momomomomo> odigity2: Really? Did I not just tell you what you came up with in your last response? momomomomo: odigity2: well, now that you know about signals, you might consider running it as a sub process and trapping the signal yourself; tracking the pid, and killing it in ruby
x1337807x has quit [Ping timeout: 276 seconds]
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<odigity2> momomomomo, Yes, you did. And I was acknowledging that your suggestion would in fact solve the problem by repeating it in my own words.
x1337807x has joined #ruby
<momomomomo> odigity2: deary me for suggesting a solution that required you to show that you understood the underlying causes first.
<odigity2> I really just don't fucking understand your deal, dude. Nothing about how you communicated with me makes any sense to me.
saarinen has joined #ruby
<wallerdev> lol
axl_ has quit [Quit: axl_]
snath has quit [Ping timeout: 276 seconds]
replay_ has joined #ruby
Musashi1 has joined #ruby
<shevy> wallerdev is having fun
Beoran_ has joined #ruby
ner0x has joined #ruby
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
froy has joined #ruby
<shevy> now I can't even compile python2 anymore ...
<shevy> python-2.7.6/Parser/grammar1.c:42: undefined reference to `PyOS_snprintf'
<shevy> collect2: error: ld returned 1 exit status
no6 has joined #ruby
<wallerdev> should move to python3
<wallerdev> its only been out 5 years
<centrx> too risky
WishBoy- has joined #ruby
<momomomomo> wallerdev: python2.7 is supported through 2020
<wallerdev> windows XP just got a patch for an IE bug
<shevy> wallerdev if that were easily possible but some things in xorg require python2; xcb* packages for instance
<wallerdev> haha i know, no one wants to use python 3 haha
WishBoy has quit [Ping timeout: 250 seconds]
replay has quit [Ping timeout: 265 seconds]
jlast has quit [Remote host closed the connection]
troyready has joined #ruby
<shevy> :(
<shevy> they really should have prepared that transition better
nanoyak has joined #ruby
<wallerdev> its a lost cause at this point :p
michaeldeol has joined #ruby
<centrx> shevy, They did plan it, they are just retarded
<wallerdev> everyone is flocking to ruby in mass quantities
<wallerdev> :p
<centrx> shevy, They just extended the end of life for Python 2 by five years
<wallerdev> jk everyones switching to nodejs :|
<centrx> shevy, They changed it last month or whenever
armyriad has quit [Ping timeout: 240 seconds]
andrewjanssen has joined #ruby
jxf has quit [Ping timeout: 264 seconds]
<alpha123> wallerdev: NodeJS is awesome :)
<wallerdev> agreed
troyreadyy has joined #ruby
<shevy> ack
<wallerdev> javascript is the future like it or not
<shevy> ack
<alpha123> ...Not quite as awesome as luvit, but pretty cool nonetheless
<shevy> ack
<alpha123> shevy: We know how you feel about JS, shuddup and let us be insane together
<shevy> I need to change the topic here
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<wallerdev> JS does everything and it really has no drawbacks at all
<shevy> man
<alpha123> ...Aside from being JS
Burgestrand has quit [Quit: Burgestrand]
odigity2 has quit [Quit: Leaving]
<alpha123> shevy: Change the topic to 'Ruby is great, oh and SmallTalk is greater, please no discussion about JS'?
<centrx> Javascript works well. Node.js is dumb.
mu has joined #ruby
lw has joined #ruby
<shevy> alpha123 no
<mu> hi I'm having some problems with ruby on OS X
<alpha123> centrx: Callback hell?
codeurge has quit [Ping timeout: 258 seconds]
BucOder has quit [Quit: Computer has gone to sleep.]
_djbkd has quit [Remote host closed the connection]
<mu> The goal is to get bundle to install dependencies for this project, but I'm having build issues
troyready has quit [Ping timeout: 252 seconds]
<mu> I tried installing rbenv since there is a specific .ruby-version in the project
<wallerdev> are you on mavericks?
<mu> I'm on Mavericks
jonno11 has quit [Quit: Textual IRC Client: www.textualapp.com]
<mu> I installed the latest XCode command tools through the developer website
<wallerdev> well whats the error
jxf has joined #ruby
djbkd has joined #ruby
atmosx has joined #ruby
<mu> Well, the build fails for `rbenv install 2.0.0-p247` though it's unclear to me why
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
chipotle has quit [Quit: cya]
<mu> it refers to some log file in /var/folders but I can't find any obvious errors
benzrf|offline is now known as benzrf
<mu> I was however able to do `rbenv install 2.1.2`
<mu> and when using `rbenv versions` it shows that 2.1.2 is "active"
codeurge has joined #ruby
<mu> but doing ruby --version shows that I am using 2.0.0p451
<mu> which seems wrong, no?
blackmes1 has quit [Ping timeout: 245 seconds]
Lauritz has quit [Changing host]
Lauritz has joined #ruby
<mu> `which ruby` shows the binary existing in /usr/bin when it seems like it should exist in ~/.rbenv
<mu> or maybe I misunderstand how rbenv works?
sinkensabe has joined #ruby
<terrellt> mu: What about if you do EXPORT RBENV_VERSION=2.1.2 and then ruby --version? If that doesn't switch it, then you probably aren't sourcing the rbenv stuff right
<terrellt> s/EXPORT/export
Bira has joined #ruby
spyderman4g63 has quit [Ping timeout: 264 seconds]
Lauritz has quit [Quit: Linkinus - http://linkinus.com]
nari has quit [Ping timeout: 252 seconds]
<mu> guess it isn't sourcing right
DarsVaeda has left #ruby ["Ex-Chat"]
Stalkr^ has joined #ruby
snath has joined #ruby
Stalkr^ has quit [Changing host]
keen_ has joined #ruby
Stalkr^ has joined #ruby
gigetoo has quit [Remote host closed the connection]
Megtastique has quit []
lmickh has quit [Remote host closed the connection]
Bira has quit [Ping timeout: 255 seconds]
sinkensabe has quit [Ping timeout: 276 seconds]
gigetoo has joined #ruby
<mu> how do I make sure that rbenv is being sourced correctly via .zshrc?
sinkensabe has joined #ruby
einarj has quit [Remote host closed the connection]
scriabin has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
kevind has quit [Quit: kevind]
djbkd has quit [Remote host closed the connection]
garndt has quit [Quit: Connection closed for inactivity]
bradhe has quit [Remote host closed the connection]
Megtastique has joined #ruby
brunops has quit [Ping timeout: 250 seconds]
Megtastique has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
dik_dak has quit [Quit: Leaving]
Megtastique has joined #ruby
spyderman4g63 has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
binaryhat has quit [Quit: Leaving]
freggles has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has quit [Ping timeout: 265 seconds]
chipotle has joined #ruby
JoeGaudet has quit [Ping timeout: 252 seconds]
chrisseaton has quit [Ping timeout: 265 seconds]
nwertman has quit [Ping timeout: 264 seconds]
<mu> I don't understand, these builds are failing but when I go to the working directory to build manually they seem fine
<mu> in that they don't exit with an error like I'd expect
<mu> ./configure then make works...
coderhs has quit [Ping timeout: 250 seconds]
<shevy> configure alone doesn't do much
<shevy> you must run "make"
<mu> also odd that rbenv versions doesn't show 2.1.2 despite it existing in .rbenv/versions
<mu> shevy: yeah I did that
jespada has quit [Quit: Leaving]
<mu> no catastrophic errors to my eyes
pwh has quit []
<mu> in fact
<mu> there is a ruby binary in the build directory that reports the ocrrect version
<mu> which is bizarre
<mu> I'm guessing the error is with ruby-build/rbenv
<shevy> mu k so now you know that the build will be fine
combusean has quit [Ping timeout: 276 seconds]
<shevy> mu there must also be a file called "irb"
<shevy> run it ./bin/irb
<mu> ok I can run it
mary5030 has quit [Remote host closed the connection]
<mu> doesn't exist in the build directory
froy has quit [Quit: kablam!]
AlexRussia has quit [Remote host closed the connection]
<mu> looks like it could be a homebrew issue
jzigmund has quit [Ping timeout: 276 seconds]
<shevy> \o/
<shevy> so it works
<mu> what do you mean
kitak has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<shevy> you said you can run it
sinkensabe has joined #ruby
Tricon has joined #ruby
eighthbit has joined #ruby
eynj has joined #ruby
<mu> yes but the thing is
<mu> I need to run it through rbenv
nicholas040 has quit [Quit: Textual IRC Client: www.textualapp.com]
Rainicorn has joined #ruby
<shevy> huh
<mu> seems like everything defaults to the system ruby binaries which gives me build failures when I try to install dependencies through bundler
LadyRainicorn has quit [Read error: Connection reset by peer]
<shevy> so ruby itself works fine, just the layers you depend on all fail
<mu> granted this is my first exposure to a ruby environment so I might be misunderstanding
<shevy> my ruby environment works fine when ruby works fine
michaeldeol has joined #ruby
chrisseaton has joined #ruby
sinkensabe has quit [Ping timeout: 252 seconds]
klaut has quit [Remote host closed the connection]
bradhe has joined #ruby
<mu> I mean
wldcordeiro_work has quit [Read error: Connection reset by peer]
<mu> I do `bundle install` to try to fetch dependencies
<terrellt> mu: rbenv rehash ?
danijoo has quit [Read error: Connection reset by peer]
<mu> and I get a Gem::Installer::ExtensionBuildError regarding failure to build gem native extension
arrubin has joined #ruby
<shevy> and what part failed specifically
<shevy> building native extensions usually means some C-program
danijoo has joined #ruby
<mu> sigh one second I have to wait for Chromium to crash
<mu> doot doot
<shevy> lol
Arkaniad has joined #ruby
<mu> this is the message I get http://pastebin.com/uXpqmgAF
fantazo has joined #ruby
<mu> it seemed like a ruby error to me so someone suggested I install rbenv
<bricker> Hm, this blog post claims that redis-store supports master/slave replication, but I don't need any evidence in the actual library that that's true: http://blog.togo.io/introducing/redis-store/
razrunelord has quit [Remote host closed the connection]
djbkd has joined #ruby
WishBoy- has quit [Remote host closed the connection]
lw has quit [Quit: s]
<mu> any thoughts on the bundler error?
volty has joined #ruby
<terrellt> bricker: I thought those features were redis-things, not gem things
tomato has quit [Quit: This computer has gone to sleep]
Megtastique has quit []
nfk has quit [Quit: yawn]
<terrellt> Huh, guess not
<bricker> terrellt: Rails would need to know which servers to send the commands to
<bricker> redis-sentinel handles failover, but not writing/reading
<bricker> meh
djbkd has quit [Ping timeout: 258 seconds]
AlexRussia has joined #ruby
<mu> #justgemthings
Tricon has quit [Read error: Connection reset by peer]
Arkaniad has quit [Ping timeout: 250 seconds]
jarray52 has joined #ruby
<mu> seriously though I've been googling around about that error and haven't come up with anything
<shevy> yeah
Tricon has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy> I would reduce the layers you depend on
<jarray52> Is there a way to run a shell command in Ruby code without exiting ruby to the shell environment?
<mu> uhh well I'm trying to get this project running shevy and it's not for me to dictate the layers
<shevy> jarray52 you can use system() and backticks `
<mu> I assume you mean simplifying dependencies or whatever
<shevy> mu no, I mean using ruby as it was meant to be
<mu> There is a high chance that I borked Ruby on my system a while ago
andrewjanssen has quit [Quit: Leaving...]
<shevy> the best part is that you already have it compiled and it works for you
<bricker> jarray52: anything except exec() will do that
<shevy> you tried bin/irb and it runs fine
kitak_ has joined #ruby
<mu> shevy: yes but I don't see your point. This should be using the system ruby binary still
<shevy> what does not work for you are things like bundler and rb*env something, whatever you use therein
<shevy> what is a "system ruby binary" man
<mu> the one in usr/bin/
<shevy> ok wait a moment
<shevy> so you have one ruby in /usr/bin but also several rubies somewhere else?
<mu> idk I thought that was how rbenv worked
<mu> builds multiple versions of ruby
<shevy> no idea, I don't use rbenv
<shevy> it sounds insane what you have there
<mu> ok well I was having this problem before using rbenv
<shevy> I have multiple versions of ruby as well
<shevy> they reside in /Programs/Ruby/VERSION_HERE
nanoyak has joined #ruby
nanoyak has quit [Client Quit]
sqwirl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> where is your main ruby mu?
<shevy> they one you actually need
<mu> which ruby => /usr/bin/ruby
<shevy> ok then why do you need non-main rubies again?
<mu> says it is version 2.0.0p451
<shevy> you already have system ruby there
<mu> I have no idea, I was getting that problem and was told to use rbenv
<mu> as I said, I don't develop in Ruby
<shevy> aha ok, well then ask the guy who told you to use rbenv
<mu> he's out of ideas as well
<jarray52> shevy: Thanks. system works.
<shevy> ok then he is a noob
coderhs has joined #ruby
dukedave has quit [Ping timeout: 240 seconds]
razrunelord has joined #ruby
brunops has joined #ruby
Megtastique has joined #ruby
<mu> I am able to do everything on my desktop using linux
<mu> but the version of ruby there is 2.1.2p95
wnoronha has quit [Quit: Computer has gone to sleep.]
<mu> and I'm sure as far as build tools are concerned there are large differences
razrunelord has quit [Remote host closed the connection]
andrewlio has joined #ruby
redondos has quit [Excess Flood]
redondos has joined #ruby
Hobogrammer_ has quit [Ping timeout: 255 seconds]
<shevy> main ruby source uses the gnu autotools
<shevy> 2.1.2p95 is already the latest -> ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.bz2
<mu> ok the root of the problem is that I am unable to install ruby18_source_location
bricker has quit [Quit: leaving]
<mu> unfortunately the error I'm getting does not appear to be common
anaeem1_ has quit [Remote host closed the connection]
<mu> this is the file that appears not to exist
<mu> also... created 1993? Seriously?
<mu> sure enough, no file
<shevy> never heard of ruby18_source_location
andrewlio has quit [Quit: Leaving.]
<mu> whatever it is seems to be important
<mu> unfortunately simply adding that file to the build directory wasn't enough
<mu> gave me an error regarding getcwd
<mu> so who knows
<shevy> I thought you use ruby 2.1.2?
<mu> 2.1.0
<shevy> ok why is this thing there called rub18_source_location
<shevy> I mean it sounds as if it is for the ruby 1.8.x branch
<RubyPanther> if you read http://mislav.uniqpath.com/poignant-guide/book/chapter-5.html you learn that on the planet Endertromb the planet can read your mind and you don't need a shell. But then you also learn that even there, an interactive terminal is really useful.
sunya7a has joined #ruby
<mu> no idea shevy
<shevy> mu well it is you who should know or? :)
jack_rabbit has quit [Ping timeout: 240 seconds]
<shevy> I mean you are trying to install it hehe
<mu> that's funny
<mu> it fails on my linux system as well
<mu> same error
<shevy> don't say you are randomly installing stuff and don't even know why :P
<mu> so at least it's consistent
<shevy> excellent
<shevy> I hope it fails for all but 1.8.x branches
kitak_ has quit [Remote host closed the connection]
<gizmore> can you set a watch in byebug?
<mu> problem is
<RubyPanther> 1.8 is dead, let it rest in peace.
<mu> I was able to get it working last night on my linux desktop, now this morning I switched branches and I never checked if anything was still workng
<shevy> RubyPanther but he wants to desperately install ruby18_source_location even though when asked why he can not say
<shevy> teaches you to break your running system!
<mu> I assume ruby18 whatever is a dependency of one of the libraries we are using
<shevy> that sounds like a lie
ffranz has quit [Quit: Leaving]
predator217 has joined #ruby
<mu> sigh
<shevy> and I am sure you can not even name "one of the xyz"
<RubyPanther> I'm a great lover of legacy, I'm running xmms for my media player. But 1.8 is dead. You'll need an old OS distro, too.
Tricon has quit [Quit: Linkinus - http://linkinus.com]
<mu> I had really hoped to treat Ruby like a black box
Tricon has joined #ruby
<shevy> yes you can, just don't use stuff like rb*env or bundler!
<mu> but it looks like I'm going to have to figure out this whole "gem" business for the sake of troubleshooting
momomomomo has quit [Quit: momomomomo]
<shevy> because they will break in idiotic ways and then you end up being in a situation as you were before
<shevy> gem itself is super easy
<shevy> gem install NAME
<shevy> gem uninstall NAME
<shevy> that has it covered 99%
<mu> hey! that's fabulous. Talk to my PM
<mu> I'm stuck with bundler
<shevy> I feel with you
<shevy> the pain...
<shevy> the suffering...
<mu> I'm interested in practical solutions, not idealism
<shevy> oh, bundler is totally practical
<RubyPanther> bundler is. 1.9+ is.
<shevy> they even have a #bundler channel
chrisseaton has quit [Ping timeout: 252 seconds]
<mu> for a hoot I'm going to switch back to master branch and see if I can get these dependencies again
<mu> look at that, all good.
<mu> Now to figure out what is breaking on this new branch
Megtastique has quit []
chrisseaton has joined #ruby
mansi has joined #ruby
<terrellt> o.o
<terrellt> shevy: Did...you just argue -against- bundler?
predator117 has quit [Ping timeout: 255 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andrewjanssen has joined #ruby
andrewjanssen has quit [Client Quit]
<yxhuvud> rubypanther: you do know 1.8 still ships with the latest released versions of centos?
<RubyPanther> bundler is the new canon
WishBoy has joined #ruby
marr has quit []
<RubyPanther> yxhuvud: on a centos server the system ruby is used for system services that depend on it, not for hosted applications
<yxhuvud> I wish that were true :(
<RubyPanther> I have servers on old fedora that have 1.8 system ruby
WishBoy has quit [Remote host closed the connection]
<terrellt> We have 1.8 on our CentOS boxes.
<terrellt> Just run rbenv for applications.
<RubyPanther> It all runs in userspace, the only possible problem is an errant BOFH
<shevy> terrellt sure
mansi has quit [Ping timeout: 255 seconds]
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aiguu has quit [Ping timeout: 265 seconds]
<RubyPanther> But there is no technical solution to an evil BOFH, only a level HR or higher cleric can kill those
vlad_starkov has quit [Remote host closed the connection]
<yxhuvud> motivating management to allow time for upgrading can also be a problem.
armyriad has joined #ruby
<shevy> hehe
alex88 has quit [Quit: Leaving...]
Stalkr^ has quit [Quit: Leaving...]
mu has left #ruby ["Ich sage euch: man muß noch Chaos in sich haben, um einen tanzenden Stern gebären zu können."]
maximski has joined #ruby
lele has quit [Ping timeout: 246 seconds]
<reactormonk> how would you remove the last few characters on a string if these characters are in a predefined set?
<shevy> x[-5,5] = ''
<reactormonk> that doesn't check for the set inclusion
maximski has quit [Client Quit]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mercerist has quit [Quit: Computer has gone to sleep.]
Xeago has joined #ruby
jonahR has joined #ruby
eka has joined #ruby