havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.2, 2.3.5 & 2.2.8: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
jrabe has quit [Quit: Scheduled maintenance]
kinbiko has joined #ruby
jrabe has joined #ruby
safetypin has quit [Quit: ZZZzzz…]
TomyLobo2 has quit [Ping timeout: 240 seconds]
voldemar has quit [Ping timeout: 260 seconds]
kapil___ has joined #ruby
goyox86 has joined #ruby
KeyJoo has quit [Ping timeout: 258 seconds]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
|ifei5good has joined #ruby
jxv has joined #ruby
|ifei5good has quit [Read error: Connection reset by peer]
|ifei5good has joined #ruby
|ifei5g00d has quit [Read error: Message too long]
nofxx has quit [Ping timeout: 268 seconds]
i32inf has joined #ruby
despai has quit [Quit: ...]
voldemar has joined #ruby
dviola has quit [Quit: WeeChat 1.9.1]
Cohedrin has joined #ruby
rendekarf has joined #ruby
waveprop has quit [Ping timeout: 240 seconds]
rfdavid has joined #ruby
alveric has joined #ruby
voldemar has quit [Ping timeout: 248 seconds]
alveric4 has quit [Ping timeout: 255 seconds]
rendekarf has left #ruby ["Leaving"]
bkxd has quit [Ping timeout: 260 seconds]
waveprop has joined #ruby
waveprop is now known as Guest40558
ctrlaltdev has joined #ruby
voldemar has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
bkxd has joined #ruby
voldemar has quit [Ping timeout: 260 seconds]
voldemar has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
kinbiko has quit [Ping timeout: 260 seconds]
voldemar has quit [Ping timeout: 240 seconds]
bkxd_ has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
astronavt has joined #ruby
baweaver is now known as baweaver_away
kinbiko has joined #ruby
voldemar has joined #ruby
i32inf has quit [Quit: WeeChat 1.9.1]
jtdoncas_ has joined #ruby
voldemar has quit [Ping timeout: 248 seconds]
ur5us has joined #ruby
voldemar has joined #ruby
houhoulis has joined #ruby
voldemar has quit [Ping timeout: 248 seconds]
muelleme has joined #ruby
voldemar has joined #ruby
i32inf has joined #ruby
tvw has quit []
ur5us has quit []
muelleme has quit [Ping timeout: 248 seconds]
konos5 has quit [Quit: Connection closed for inactivity]
voldemar has quit [Ping timeout: 248 seconds]
rfdavid has quit [Quit: leaving]
voldemar has joined #ruby
enterprisey has joined #ruby
voldemar has quit [Ping timeout: 255 seconds]
apparition has joined #ruby
voldemar has joined #ruby
truenito has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
voldemar has quit [Ping timeout: 260 seconds]
goyox86 has quit [Ping timeout: 248 seconds]
bkxd has joined #ruby
cschneid has joined #ruby
ur5us has joined #ruby
voldemar has joined #ruby
astronavt has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 250 seconds]
cschneid has quit [Ping timeout: 255 seconds]
voldemar has quit [Ping timeout: 248 seconds]
truenito1 has joined #ruby
marr has quit [Ping timeout: 248 seconds]
truenito has quit [Ping timeout: 240 seconds]
astronavt has joined #ruby
voldemar has joined #ruby
apparition has quit [Quit: Bye]
thinkpad has quit [Read error: Connection reset by peer]
voldemar has quit [Ping timeout: 255 seconds]
baweaver_away is now known as baweaver
muelleme has joined #ruby
_sfiguser has quit [Quit: Leaving]
thinkpad has joined #ruby
muelleme has quit [Ping timeout: 276 seconds]
i32inf has quit [Quit: WeeChat 1.9.1]
voldemar has joined #ruby
ahrs has quit [Remote host closed the connection]
mim1k has joined #ruby
ahrs has joined #ruby
i32inf has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
voldemar has quit [Ping timeout: 260 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
nowhere_man has quit [Ping timeout: 248 seconds]
mim1k has quit [Ping timeout: 248 seconds]
bkxd has joined #ruby
nowhere_man has joined #ruby
voldemar has joined #ruby
voldemar has quit [Ping timeout: 260 seconds]
voldemar has joined #ruby
truenito1 has quit [Ping timeout: 260 seconds]
christiandsg has joined #ruby
voldemar has quit [Ping timeout: 260 seconds]
jnyw has joined #ruby
Rouge has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
christiandsg has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
bkxd has joined #ruby
bkxd has quit [Max SendQ exceeded]
mikecmpbll has joined #ruby
voldemar has joined #ruby
bkxd has joined #ruby
bkxd has quit [Max SendQ exceeded]
bkxd has joined #ruby
christiandsg has joined #ruby
bkxd has quit [Max SendQ exceeded]
voldemar has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
gizmore|2 has joined #ruby
safetypin has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
gizmore has quit [Ping timeout: 255 seconds]
bmurt has quit [Client Quit]
oetjenj has joined #ruby
safetypin has quit [Quit: ZZZzzz…]
oetjenj has quit [Remote host closed the connection]
xcesariox has joined #ruby
oetjenj has joined #ruby
safetypin has joined #ruby
mfb2 has joined #ruby
shinnya has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
kobain has joined #ruby
mfb2 has quit [Ping timeout: 248 seconds]
d^sh has quit [Ping timeout: 260 seconds]
ctrlaltdev has quit [Quit: leaving]
d^sh has joined #ruby
bkxd has joined #ruby
Rouge has quit [Ping timeout: 240 seconds]
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
safetypin has quit [Quit: ZZZzzz…]
bmurt has joined #ruby
christiandsg has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lexruee has quit [Ping timeout: 248 seconds]
voldemar has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
lexruee has joined #ruby
sspreitz has quit [Ping timeout: 260 seconds]
sspreitz has joined #ruby
kinbiko has quit [Ping timeout: 260 seconds]
kinbiko has joined #ruby
millz has joined #ruby
voldemar has quit [Ping timeout: 255 seconds]
voldemar has joined #ruby
John__ has quit [Read error: Connection reset by peer]
kinbiko has quit [Ping timeout: 248 seconds]
astronavt has quit [Remote host closed the connection]
baweaver is now known as baweaver_away
blackwind_123 has joined #ruby
baweaver_away is now known as baweaver
voldemar has quit [Ping timeout: 248 seconds]
i32inf has quit [Quit: WeeChat 1.9.1]
kinbiko has joined #ruby
voldemar has joined #ruby
kinbiko has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
voldemar has quit [Ping timeout: 260 seconds]
cadillac_ has quit [Ping timeout: 240 seconds]
i32inf has joined #ruby
kinbiko has joined #ruby
voldemar has joined #ruby
kinbiko has quit [Ping timeout: 255 seconds]
cadillac_ has joined #ruby
voldemar has quit [Ping timeout: 240 seconds]
kinbiko has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
orbyt_ has joined #ruby
i32inf has quit [Quit: WeeChat 1.9.1]
nadir has quit [Quit: Connection closed for inactivity]
kinbiko has quit [Ping timeout: 255 seconds]
Guest40558 has quit [Quit: leaving]
voldemar has joined #ruby
kinbiko has joined #ruby
voldemar has quit [Ping timeout: 260 seconds]
konsolebox has quit [Ping timeout: 260 seconds]
kinbiko has quit [Ping timeout: 248 seconds]
konsolebox has joined #ruby
voldemar has joined #ruby
xlegoman has quit [Quit: Textual IRC Client: www.textualapp.com]
safetypin has joined #ruby
Guest15148 has joined #ruby
<Guest15148> Hi every one
<Guest15148> I have a question for you
<Guest15148> do every project on github , that have a Gemfile is a ruby project ?
<baweaver> Not necessarily. It only means that it has some Ruby dependencies.
<baweaver> That said, how one qualifies something as a Ruby project is a bit up to interpretation
<baweaver> Rails projects are most certainly Ruby based but tend to have far more CSS / JS / HTML than actual Ruby code
<baweaver> So the short answer is: it depends
voldemar has quit [Ping timeout: 255 seconds]
kinbiko has joined #ruby
nofxx has joined #ruby
<Guest15148> So is their other way to say if a project is a ruby project ?
safetypin has quit [Quit: ZZZzzz…]
voldemar has joined #ruby
kinbiko has quit [Ping timeout: 248 seconds]
<baweaver> Guest15148: why the interest?
<baweaver> I mean, is a Ruby project one which has Ruby in it?
<baweaver> or perhaps one that is primarily Ruby?
<baweaver> or one built with primarily Ruby tools?
<baweaver> It gets to be vague after a certain point
<Guest15148> yes primarily Ruby
kinbiko has joined #ruby
voldemar has quit [Ping timeout: 255 seconds]
nofxx_ has joined #ruby
nofxx_ has quit [Client Quit]
<Guest15148> but even if they do not have ruby as the primary language(on github) as you said
nofxx has quit [Read error: Connection reset by peer]
cschneid has joined #ruby
kinbiko has quit [Ping timeout: 248 seconds]
voldemar has joined #ruby
chocoelho has quit [Quit: chocoelho]
mim1k has joined #ruby
kinbiko has joined #ruby
safetypin has joined #ruby
raul782 has joined #ruby
voldemar has quit [Ping timeout: 260 seconds]
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
mim1k has quit [Ping timeout: 248 seconds]
voldemar has joined #ruby
houhoulis has quit [Remote host closed the connection]
kinbiko has quit [Ping timeout: 248 seconds]
voldemar has quit [Ping timeout: 255 seconds]
blackwind_123 has quit [Ping timeout: 248 seconds]
uZiel has joined #ruby
voldemar has joined #ruby
blackwind_123 has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<RickHull> Guest15148: if a project is 90% C, 5% Bash, and 5% Ruby, would you consider it a Ruby project?
cschneid has quit [Read error: Connection reset by peer]
<RickHull> it's open to interpretation
ledestin has joined #ruby
cschneid has joined #ruby
<RickHull> Guest15148: what is the significance of whether a project is considered a "Ruby project"? is there some larger goal?
ResidentBiscuit has quit [Remote host closed the connection]
voldemar has quit [Ping timeout: 260 seconds]
ResidentBiscuit has joined #ruby
PresidentBiscuit has joined #ruby
shinnya has quit [Ping timeout: 255 seconds]
kinbiko has joined #ruby
Guest65753 has quit [Ping timeout: 240 seconds]
ResidentBiscuit has quit [Ping timeout: 255 seconds]
quobo has quit [Quit: Connection closed for inactivity]
<Guest15148> RickHull: I don't know about the percentage
kinbiko has quit [Ping timeout: 248 seconds]
<Guest15148> could we say for example if the percentage of ruby files is < x % than it is not a ruby project ?
<RickHull> in general, no
<RickHull> it's open to interpretation -- there are no rules
<RickHull> it's not a well-defined category
<Guest15148> the goal is to study the ruby community on github
<RickHull> I would decide on a % threshold
<RickHull> say 50%
<RickHull> and you should be able to query github for projects which are > 50% ruby code
<Guest15148> i found some ruby project with only 23% !
<RickHull> how do you know it's a ruby project?
<Guest15148> hh
kinbiko has joined #ruby
<Guest15148> this is the question
konsolebox has quit [Ping timeout: 248 seconds]
<Guest15148> ah manually ?
<RickHull> you probably want to come up with a scoring function
pdcawley has quit [Quit: pdcawley]
voldemar has joined #ruby
<RickHull> here are some good indicators: 1. % of code which is ruby (maybe ignore html / css in this calculation)
<RickHull> 2. if there is a Gemfile or *.gemspec in project root
<RickHull> 3. if there is a Rakefile in project root
<RickHull> 3. if the README mentions ruby or gem or bundler
<RickHull> 4. if github considers it a ruby project
<RickHull> I would start with #4 -- you should be able to get this info on per-repo basis from the github API
<Guest15148> but there is some projects that have Gemfile/Rakefile but are not ruby project , (for ex : https://github.com/RestKit/RestKit )
kinbiko has quit [Ping timeout: 248 seconds]
<Guest15148> yes I took all the ones that have ruby as first language
<RickHull> github does not consider a ruby project
<RickHull> er, does not consider it -- RestKit -- a ruby project
voldemar has quit [Ping timeout: 255 seconds]
uZiel has quit [Ping timeout: 248 seconds]
<Guest15148> now i for the others that have some ruby files, I want to say if they are ruby project or not
<Guest15148> filtring by Gemfile/Rakfile, give some projects that are not ruby p
konsolebox has joined #ruby
<RickHull> I would first split all github repos into: github does/doesn't consider it a ruby project
<RickHull> then look for disqualifiers in each group
kinbiko has joined #ruby
<RickHull> so if github does consider it a ruby project, maybe it really isn't according to e.g. my indicators 1-3
<RickHull> and if github doesn't consider it a ruby project, maybe it really is according to 1-3
<RickHull> but likely the original split will give you way more data to chew on than you can handle
gix has joined #ruby
millz has quit [Quit: Ex-Chat]
<Guest15148> I have 102579 projects that have some ruby files, but ruby is not primary language on github
gix- has quit [Ping timeout: 248 seconds]
ur5us has quit []
konsolebox has quit [Ping timeout: 255 seconds]
blackwind_123 has quit [Ping timeout: 260 seconds]
<RickHull> so now score them according to indicators 1-3
<Guest15148> Could a ruby project not having Gemfile/Rakfile/.gemspec files
<RickHull> yes
blackwind_123 has joined #ruby
<RickHull> though it will have two of those soon :)
konsolebox has joined #ruby
<RickHull> you will probably want to have a filter that takes filenames and decides if it is code based on file extension
<RickHull> e.g. ignore *.txt *.html *.css *.md
<RickHull> for calculating which percentage of code is ruby
voldemar has joined #ruby
<RickHull> or just use github's calc
<RickHull> not sure how it works
kinbiko has quit [Ping timeout: 248 seconds]
<RickHull> classification is hard, let's go machine learning ;)
<Guest15148> maybe the files sizes for each language
<Guest15148> hh
xlegoman has joined #ruby
safetypin has quit [Quit: ZZZzzz…]
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
voldemar has quit [Ping timeout: 255 seconds]
kinbiko has joined #ruby
raul782 has quit [Ping timeout: 260 seconds]
raul782 has joined #ruby
kinbiko has quit [Ping timeout: 260 seconds]
nchambers has quit [Quit: So long and thanks for all the fish!]
nchambers has joined #ruby
voldemar has joined #ruby
kinbiko has joined #ruby
raul782 has quit [Remote host closed the connection]
<Guest15148> RickHull: Tnks
lizard2010 has quit [Ping timeout: 264 seconds]
<RickHull> good luck :)
voldemar has quit [Ping timeout: 240 seconds]
kinbiko has quit [Ping timeout: 255 seconds]
christiandsg has joined #ruby
Cohedrin has joined #ruby
kinbiko has joined #ruby
christiandsg has quit [Ping timeout: 248 seconds]
kinbiko has quit [Ping timeout: 248 seconds]
voldemar has joined #ruby
kinbiko has joined #ruby
lizard2010 has joined #ruby
voldemar has quit [Ping timeout: 260 seconds]
kinbiko has quit [Ping timeout: 260 seconds]
kinbiko has joined #ruby
Flashynuff has quit [Quit: Connection closed for inactivity]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
c0ncealed has quit [Remote host closed the connection]
c0ncealed has joined #ruby
safetypin has joined #ruby
kinbiko has quit [Ping timeout: 260 seconds]
voldemar has joined #ruby
kinbiko has joined #ruby
jamesaxl has joined #ruby
voldemar has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 248 seconds]
voldemar has joined #ruby
kinbiko has quit [Ping timeout: 260 seconds]
kinbiko has joined #ruby
bmurt has joined #ruby
voldemar has quit [Ping timeout: 248 seconds]
bkxd has joined #ruby
kinbiko has quit [Ping timeout: 255 seconds]
konsolebox has quit [Ping timeout: 248 seconds]
konsolebox has joined #ruby
kinbiko has joined #ruby
voldemar has joined #ruby
kapil___ has joined #ruby
voldemar has quit [Ping timeout: 260 seconds]
Technodrome has joined #ruby
kinbiko has quit [Ping timeout: 268 seconds]
mfb2 has joined #ruby
mfb2_ has joined #ruby
mfb2 has quit [Read error: Connection reset by peer]
mfb2_ has quit [Remote host closed the connection]
<kapil___> I have a = [ [ 1, 2, 3], [ 4, 5, 6] ] b = [ A, B, C, D, E, F] I want c = [ [ { A: 1 }, { B: 2 }, { C: 3 } ], [ { D: 4 }, { E : 5 }, { F: 6 } ]
<kapil___> How can I do it?
kinbiko has joined #ruby
voldemar has joined #ruby
PresidentBiscuit has quit []
voldemar has quit [Ping timeout: 248 seconds]
kinbiko has quit [Ping timeout: 255 seconds]
kinbiko has joined #ruby
voldemar has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
christiandsg has joined #ruby
voldemar has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
kinbiko has quit [Ping timeout: 248 seconds]
nickjj_ has joined #ruby
goepsilongo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nickjj has quit [Read error: Connection reset by peer]
christiandsg has quit [Ping timeout: 248 seconds]
mim1k has quit [Ping timeout: 248 seconds]
kinbiko has joined #ruby
bkxd has joined #ruby
bkxd has quit [Max SendQ exceeded]
kinbiko has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
bkxd has quit [Max SendQ exceeded]
voldemar has joined #ruby
kinbiko has joined #ruby
<tobiasvl> kapil___: do what?
<kapil___> result c
<tobiasvl> oh sorry, didn't see that "I want" part
voldemar has quit [Ping timeout: 260 seconds]
kinbiko has quit [Ping timeout: 255 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has joined #ruby
kinbiko has joined #ruby
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kapil___> plz help on my above question.
mjolnird has joined #ruby
bkxd has joined #ruby
voldemar has joined #ruby
kinbiko has quit [Ping timeout: 248 seconds]
konsolebox has quit [Ping timeout: 260 seconds]
voldemar has quit [Ping timeout: 255 seconds]
Puffball has quit [Remote host closed the connection]
konsolebox has joined #ruby
kinbiko has joined #ruby
Guest15148 has quit [Quit: Page closed]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> kapil___: start with b.zip a.flatten
plexigras has joined #ruby
<RickHull> well, maybe that isn't the best first step -- but it can give you an idea
bkxd has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
kinbiko has quit [Ping timeout: 240 seconds]
<RickHull> kapil___: is this a homework question? also I see you are asking in multiple channels
<kapil___> its not in shape i want
voldemar has joined #ruby
<kapil___> no i must need it to go ahed in my project.
shinnya has joined #ruby
<ruby[bot]> kapil___: as I told you already, please use https://gist.github.com
uZiel has quit [Ping timeout: 248 seconds]
kinbiko has joined #ruby
bkxd has quit [Max SendQ exceeded]
voldemar has quit [Ping timeout: 255 seconds]
<kapil___> RickHull: Any idea how to do this?
kinbiko has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
<RickHull> sure. result = []; b.zip(a.flatten).each { |(k, v)| # ...
kinbiko has joined #ruby
<kapil___> but what's next?
<RickHull> >> a = [ [ 1, 2, 3], [ 4, 5, 6] ]; b = [ 'A', 'B', 'C', 'D', 'E', 'F']; [b.zip(a.flatten).reduce([]) { |memo, (k,v)| memo << { k => v } }]
<ruby[bot]> RickHull: # => [[{"A"=>1}, {"B"=>2}, {"C"=>3}, {"D"=>4}, {"E"=>5}, {"F"=>6}]] (https://eval.in/912188)
<RickHull> kapil___: why aren't you using gist for pastes?
<kapil___> ok
voldemar has joined #ruby
kinbiko has quit [Ping timeout: 255 seconds]
kinbiko has joined #ruby
konsolebox has quit [Ping timeout: 248 seconds]
voldemar has quit [Ping timeout: 255 seconds]
Cohedrin has joined #ruby
konsolebox has joined #ruby
enterprisey has quit [Remote host closed the connection]
uZiel has joined #ruby
kinbiko has quit [Ping timeout: 248 seconds]
voldemar has joined #ruby
ur5us has joined #ruby
voldemar has quit [Ping timeout: 248 seconds]
konsolebox has quit [Ping timeout: 255 seconds]
kinbiko has joined #ruby
konsolebox has joined #ruby
voldemar has joined #ruby
aupadhye has joined #ruby
kinbiko has quit [Ping timeout: 255 seconds]
lexruee has quit [Ping timeout: 240 seconds]
lexruee has joined #ruby
cschneid has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
cschneid has joined #ruby
kinbiko has joined #ruby
voldemar has quit [Ping timeout: 248 seconds]
mikecmpbll has quit [Client Quit]
cschneid has quit [Ping timeout: 248 seconds]
kinbiko has quit [Ping timeout: 268 seconds]
konos5 has joined #ruby
konos5_ has joined #ruby
aupadhye has quit [Quit: Leaving]
konos5_ has quit [Client Quit]
konsolebox has quit [Ping timeout: 255 seconds]
kinbiko has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
mtkd has joined #ruby
konsolebox has joined #ruby
voldemar has joined #ruby
KeyJoo has joined #ruby
blackwind_123 has quit [Ping timeout: 255 seconds]
<kapil___> i just want to add each b element in appropriate a.
kinbiko has quit [Ping timeout: 255 seconds]
<kapil___> sorry not seen your reduce example
<RickHull> >> a = [ [ 1, 2, 3], [ 4, 5, 6] ]; b = [ 'A', 'B', 'C', 'D', 'E', 'F']; [b.zip(a.flatten).reduce([]) { |memo, (k,v)| memo + [{ k => v }] }]
<ruby[bot]> RickHull: # => [[{"A"=>1}, {"B"=>2}, {"C"=>3}, {"D"=>4}, {"E"=>5}, {"F"=>6}]] (https://eval.in/912189)
<RickHull> (my previous example was mutating memo, which is bad form)
blackwind_123 has joined #ruby
voldemar has quit [Ping timeout: 240 seconds]
<kapil___> thanks, now i want result in form of object a.
<RickHull> the fun part is figuring it out!
konsolebox has quit [Ping timeout: 260 seconds]
<kapil___> ok thanks
<RickHull> you probably won't be using flatten
xlegoman has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
voldemar has joined #ruby
<kapil___> i am not expart can you write it?
kinbiko has joined #ruby
<kapil___> looking cool.. learned new methods..
yeticry has joined #ruby
konsolebox has joined #ruby
voldemar has quit [Ping timeout: 260 seconds]
yeticry_ has quit [Ping timeout: 248 seconds]
kinbiko has quit [Ping timeout: 255 seconds]
kinbiko has joined #ruby
<RickHull> def c(a, b); result = []; a.each { |ary| result << []; ary.each { |i| b_idx = (result.length - 1) * ary.length + result.last.length; result.last << { b[b_idx] => i } } }; result
cschneid has joined #ruby
<RickHull> something like that is a way to step through it. play around with it
<kapil___> ok
<kapil___> thanks
mfb2 has joined #ruby
kinbiko has quit [Ping timeout: 248 seconds]
<kapil___> thanks a lot its working...
voldemar has joined #ruby
<kapil___> can you explain it?
cschneid has quit [Ping timeout: 255 seconds]
<RickHull> a.each { |ary| -- we will iterate over the contents of a -- which is 2 arrays
<kapil___> then
<RickHull> ary.each { |i| -- iterate over each array
cdg has joined #ruby
<RickHull> so the first time this runs, i will be 1, then 2, then 3
mfb2 has quit [Ping timeout: 255 seconds]
<RickHull> then we calculate how to get the b value
<RickHull> we figure out the b_idx
cschneid has joined #ruby
<RickHull> then we make a hash with a single key -- the b value based on b_idx
<RickHull> with a value of i
<RickHull> (which came from a)
<RickHull> and we accumulate those in result, which will match the structure of a
voldemar has quit [Ping timeout: 240 seconds]
<kapil___> understanding it. thanks a lot..
k3rn31 has quit [Ping timeout: 255 seconds]
cdg has quit [Ping timeout: 255 seconds]
cschneid has quit [Ping timeout: 255 seconds]
kinbiko has joined #ruby
voldemar has joined #ruby
mim1k has joined #ruby
nofxx has joined #ruby
kinbiko has quit [Ping timeout: 240 seconds]
voldemar has quit [Ping timeout: 248 seconds]
kinbiko has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
cschneid has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
voldemar has joined #ruby
ur5us has quit []
bkxd has joined #ruby
kinbiko has quit [Ping timeout: 260 seconds]
rabajaj has joined #ruby
voldemar has quit [Ping timeout: 248 seconds]
kinbiko has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
voldemar has joined #ruby
odinsbane has joined #ruby
kinbiko has quit [Ping timeout: 276 seconds]
guille-moe has joined #ruby
voldemar has quit [Ping timeout: 248 seconds]
kinbiko has joined #ruby
pdcawley has joined #ruby
pdcawley has left #ruby [#ruby]
minimalism has quit [Quit: minimalism]
voldemar has joined #ruby
kinbiko has quit [Ping timeout: 255 seconds]
yabbes has joined #ruby
kinbiko has joined #ruby
voldemar has quit [Ping timeout: 260 seconds]
Xano__ has joined #ruby
<odinsbane> darix: I have a 3.22 rails app, and if I want to upgrade to 4.2, it is recommended that I go through 4.0 first. 4.0 doesn't work with ruby 2.4 though. So, it is a bit of a catch 22.
konsolebox has quit [Ping timeout: 248 seconds]
kinbiko has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
konsolebox has joined #ruby
voldemar has joined #ruby
kinbiko has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
voldemar has quit [Ping timeout: 250 seconds]
voldemar has joined #ruby
kinbiko has quit [Ping timeout: 260 seconds]
rippa has joined #ruby
konsolebox has quit [Ping timeout: 255 seconds]
<kapil___> RickHull: can you explain ? b_idx = (result.length - 1) * ary.length + result.last.length;
kinbiko has joined #ruby
konsolebox has joined #ruby
voldemar has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 255 seconds]
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> b_idx needs to go 0..5
voldemar has joined #ruby
<RickHull> but since we choose a's structure, we have two loops, nested
<RickHull> the outer loop, if we had an idx, would be 0 then 1
<RickHull> the inner loop, the idx would go 0..2
<RickHull> how can we get 0..5 from 0..1 and 0..2
<kapil___> i understand it.
<RickHull> 0..1 * 3 + 0..2 yields 0..5
Dimik has quit [Ping timeout: 248 seconds]
guille-moe has quit [Ping timeout: 260 seconds]
kinbiko has quit [Ping timeout: 255 seconds]
<RickHull> I am calculating the outer and inner idx from result's length
<kapil___> so we not need an index
<baweaver> Is that the real data?
<RickHull> but it could be provided directly by e.g. a.each.with_index { |ary, outer_idx| ary.each.with_index { i, inner_idx|
<baweaver> there may well be a simpler way depending on what you're actually doing here.
InfinityFye has joined #ruby
<RickHull> I believe it :)
<baweaver> especially if it involves ActiveRecord somehow
<kapil___> the real data is very big
<kapil___> B is active record
<baweaver> What's the shape of the data or the code that gets it?
<kapil___> columns
<baweaver> Note that it will make it a lot easier for us to help you if you open with what the actual code is
voldemar has quit [Ping timeout: 248 seconds]
<kapil___> I want to loop through all active record column. and add extra columns between it i defined it in yaml file array
kinbiko has joined #ruby
<baweaver> why?
reber has joined #ruby
<baweaver> what's the end game on this one?
<kapil___> because that fields are calculated columns. i want generator to generate fields for it
<kapil___> no i want to explain you
voldemar has joined #ruby
<baweaver> and why do you want the calculated fields generated?
<baweaver> what are you attempting to do with them>
<baweaver> I'm only asking questions to try and get to what your problem is
<kapil___> I want to arrange columns in grid.
<kapil___> so i defined a grind in yaml file
dionysus70 has joined #ruby
<baweaver> you ask us very specific questions related to why you did something when there may be a much simpler way about 5-10 decisions before you got to that point
<kapil___> i want to take each row from yaml file .
<baweaver> Why a YAML file? Are you doing this for your views?
alveric has quit [Quit: WeeChat 1.9.1]
<baweaver> and is this done for each row?
<kapil___> I made a generator to generate view. i need to define grid row and how many columns in each row in yaml file
uZiel has joined #ruby
kinbiko has quit [Ping timeout: 240 seconds]
<baweaver> chances are you don't need that
<baweaver> Can you show us the code you use to generate this in a gist?
<kapil___> yes
voldemar has quit [Ping timeout: 248 seconds]
kinbiko has joined #ruby
mim1k has joined #ruby
kinbiko has quit [Ping timeout: 248 seconds]
christiandsg has joined #ruby
kinbiko has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
<kapil___> so simply.
<kapil___> 1. I want to add some columns to active record columns.
n13z has joined #ruby
<kapil___> 2. I want to add grid like data for them
voldemar has joined #ruby
christiandsg has quit [Ping timeout: 248 seconds]
ShekharReddy has joined #ruby
<baweaver> It seems like you're conflating about 3-4 different techs and doing things very very oddly
<baweaver> honestly it would take a very long time to understand everything you're doing here and why you're likely doing it
TomyLobo2 has joined #ruby
kinbiko has quit [Ping timeout: 268 seconds]
cdg has joined #ruby
<baweaver> The best idea is to take a few steps back. You're making this exceptionally more complicated than it needs to be
voldemar has quit [Ping timeout: 248 seconds]
<kapil___> ok. you are right.
<baweaver> Rails supplies data as JSON. React consumes the data as JSON. React then makes the table and the virtual attributes (totals)
cdg_ has joined #ruby
<kapil___> I made it complex but can u understand above. is it not good
kinbiko has joined #ruby
<kapil___> but i want to add columns between
<baweaver> that would be a virtual attribute
<kapil___> virtual columns
<baweaver> one that is not in the database, but is generated from its data
<kapil___> yes
<kapil___> i want to write somewhere in generator to generate fieds for it
<baweaver> How are the fields calculated?
bkxd has joined #ruby
<baweaver> What is the simplest way you can express it?
<baweaver> I'm going to leave you with that because you really do need to go through some of this on your own
<kapil___> suppose i have qty and pcs . i want a virtual column after pcs, called weight
<kapil___> sorry total pcs = qty * pcs
cdg has quit [Ping timeout: 255 seconds]
cdg has joined #ruby
marr has joined #ruby
cdg_ has quit [Ping timeout: 255 seconds]
kinbiko has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 260 seconds]
kinbiko has joined #ruby
voldemar has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
kinbiko has quit [Ping timeout: 248 seconds]
voldemar has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
kinbiko has joined #ruby
mtkd has joined #ruby
iamarun has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
muelleme has joined #ruby
kinbiko has quit [Ping timeout: 240 seconds]
voldemar has joined #ruby
kinbiko has joined #ruby
voldemar has quit [Ping timeout: 260 seconds]
voldemar has joined #ruby
kinbiko has quit [Ping timeout: 248 seconds]
kinbiko has joined #ruby
voldemar has quit [Ping timeout: 260 seconds]
pdcawley has joined #ruby
d^sh has quit [Ping timeout: 260 seconds]
d^sh has joined #ruby
voldemar has joined #ruby
kinbiko has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
kinbiko has joined #ruby
voldemar has quit [Ping timeout: 255 seconds]
bkxd has quit [Ping timeout: 248 seconds]
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
i32inf has joined #ruby
kinbiko has quit [Ping timeout: 255 seconds]
voldemar has joined #ruby
claudiuinberlin has joined #ruby
<TomyLobo2> I wanna generate spreadsheet column names (A..Z, then AA and so on). Apparently 'A'..'ZZZZ' is adequate for that. Now, how do I pluck an item from the middle of that?
kinbiko has joined #ruby
<TomyLobo2> i mean without generating the entire thing until that point
<TomyLobo2> >> ('A'..'ZZZZ').first(27).last
<ruby[bot]> TomyLobo2: # => "AA" (https://eval.in/912207)
TomyLobo2 is now known as TomyLobo
bkxd has joined #ruby
voldemar has quit [Ping timeout: 248 seconds]
kinbiko has quit [Ping timeout: 248 seconds]
Emmanuel_Chanel has joined #ruby
bkxd has quit [Max SendQ exceeded]
voldemar has joined #ruby
kinbiko has joined #ruby
konsolebox has quit [Ping timeout: 248 seconds]
voldemar has quit [Ping timeout: 240 seconds]
kinbiko has quit [Ping timeout: 248 seconds]
konsolebox has joined #ruby
bkxd has joined #ruby
govg has joined #ruby
pdcawley has quit [Quit: pdcawley]
<tobiasvl> TomyLobo: what about this
<tobiasvl> >> ('A'..'ZZZZ').lazy.class; first(27).last
<ruby[bot]> tobiasvl: # => undefined method `first' for main:Object (NoMethodError) ...check link for more (https://eval.in/912208)
<tobiasvl> >> ('A'..'ZZZZ').lazy.first(27).last
<ruby[bot]> tobiasvl: # => "AA" (https://eval.in/912209)
<tobiasvl> sorry, pasted an itermediate thing I had in irb first
kinbiko has joined #ruby
<TomyLobo> >> ('A'..'ZZZZ').lazy.first(27).class
<ruby[bot]> TomyLobo: # => Array (https://eval.in/912210)
<TomyLobo> is that still lazy?
<tobiasvl> yes
<tobiasvl> well, no, it's not STILL lazy, but the first enumerator was lazy so it only yielded the first 27
<tobiasvl> but those first 27 aren't lazy, they have been yielded
kinbiko has quit [Ping timeout: 248 seconds]
voldemar has joined #ruby
kinbiko has joined #ruby
nicesignal has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 255 seconds]
nicesignal has joined #ruby
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
voldemar has quit [Ping timeout: 240 seconds]
kinbiko has quit [Ping timeout: 255 seconds]
voldemar has joined #ruby
kinbiko has joined #ruby
voldemar has quit [Ping timeout: 255 seconds]
muelleme has quit [Ping timeout: 260 seconds]
kinbiko has quit [Ping timeout: 260 seconds]
kinbiko has joined #ruby
Cohedrin has joined #ruby
Cohedrin has quit [Client Quit]
voldemar has joined #ruby
InfinityFye has left #ruby ["Leaving"]
bkxd has joined #ruby
<TomyLobo> tobiasvl, are you saying that is not what happens without the .lazy?
voldemar has quit [Ping timeout: 255 seconds]
KeyJoo has quit [Ping timeout: 240 seconds]
konos5 has quit [Quit: Connection closed for inactivity]
bkxd has quit [Ping timeout: 276 seconds]
konsolebox has quit [Ping timeout: 240 seconds]
clemens3 has joined #ruby
miskatonic has joined #ruby
mfb2 has joined #ruby
mfb2 has quit [Remote host closed the connection]
voldemar has joined #ruby
konsolebox has joined #ruby
rabajaj has quit [Quit: Leaving]
_sfiguser has joined #ruby
i32inf has quit [Quit: WeeChat 1.9.1]
voldemar has quit [Ping timeout: 276 seconds]
i32inf has joined #ruby
sameerynho has joined #ruby
_sfiguser has left #ruby ["Leaving"]
biberu has joined #ruby
voldemar has joined #ruby
Cohedrin has joined #ruby
csk157 has joined #ruby
<tobiasvl> TomyLobo: yes
voldemar has quit [Ping timeout: 240 seconds]
<TomyLobo> tobiasvl, so you're saying that ('A'..'ZZZZ').first(27) generates the entire range and then only returns the first 27?
<TomyLobo> I'm asking because that does sound like a bad approach to things
kinbiko has quit [Ping timeout: 248 seconds]
csk157_2 has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
kinbiko has joined #ruby
nadie has joined #ruby
nadie is now known as Guest26172
bkxd has joined #ruby
Guest26172 is now known as nadir
voldemar has joined #ruby
naprimer4 has joined #ruby
naprimer has quit [Ping timeout: 240 seconds]
kinbiko has quit [Ping timeout: 260 seconds]
odinsbane has quit [Quit: leaving]
voldemar has quit [Ping timeout: 248 seconds]
bkxd has quit [Ping timeout: 248 seconds]
nowhere_man has quit [Ping timeout: 248 seconds]
lexruee has quit [Ping timeout: 255 seconds]
voldemar has joined #ruby
lexruee has joined #ruby
elphe has quit [Quit: Lost terminal]
zautomata1 has joined #ruby
zautomata has quit [Ping timeout: 240 seconds]
voldemar has quit [Ping timeout: 260 seconds]
mtkd has quit [Ping timeout: 260 seconds]
csk157 has quit [Ping timeout: 255 seconds]
despai has joined #ruby
mtkd has joined #ruby
jnyw has quit [Quit: WeeChat 1.9.1]
bkxd has joined #ruby
voldemar has joined #ruby
mohabaks has joined #ruby
KeyJoo has joined #ruby
mohabaks has quit [Client Quit]
mohabaks has joined #ruby
bkxd has quit [Max SendQ exceeded]
voldemar has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
konsolebox has quit [Ping timeout: 248 seconds]
shinnya has quit [Ping timeout: 260 seconds]
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
voldemar has joined #ruby
konsolebox has joined #ruby
iamarun has quit [Ping timeout: 260 seconds]
despai has quit [Quit: ...]
nowhere_man has joined #ruby
mikecmpbll has joined #ruby
voldemar has quit [Ping timeout: 255 seconds]
quobo has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
<tobiasvl> well that's why lazy exists
bkxd has joined #ruby
voldemar has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
linduxed has quit [Quit: WeeChat 1.9.1]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
voldemar has quit [Ping timeout: 255 seconds]
KeyJoo has quit [Ping timeout: 268 seconds]
bkxd has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
pdcawley has joined #ruby
pdcawley has left #ruby [#ruby]
goyox86 has joined #ruby
janko_s has quit [Quit: Connection closed for inactivity]
despai has joined #ruby
voldemar has joined #ruby
linduxed has joined #ruby
mohabaks has quit [Quit: WeeChat 1.9]
miskatonic has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rouge has joined #ruby
jtdoncas_ has quit [Ping timeout: 268 seconds]
mohabaks has joined #ruby
marr has quit [Ping timeout: 255 seconds]
i32inf has quit [Quit: WeeChat 1.9.1]
cadillac_ has quit [Ping timeout: 248 seconds]
i32inf has joined #ruby
nowhere_man has quit [Ping timeout: 255 seconds]
ta_ has quit [Ping timeout: 268 seconds]
mohabaks has quit [Quit: WeeChat 1.9]
cadillac_ has joined #ruby
GodFather has joined #ruby
GodFather has quit [Client Quit]
GodFather has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
goyox86 has quit [Quit: goyox86]
goyox86_ has joined #ruby
dinfuehr has joined #ruby
n13z has quit [Quit: leaving]
ta_ has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
voldemar has quit [Ping timeout: 255 seconds]
apparition has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
pdcawley has joined #ruby
kinbiko has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mohabaks has joined #ruby
goyox86_ has quit [Quit: goyox86_]
n13z has joined #ruby
mfb2 has joined #ruby
pdcawley has quit [Quit: pdcawley]
mfb2 has quit [Ping timeout: 260 seconds]
kitsunenokenja has joined #ruby
despai_ has joined #ruby
despai has quit [Ping timeout: 260 seconds]
stealth[] has joined #ruby
<jhass> anyone wants to guess how this interacts with Ruby's GC? https://blog.nelhage.com/post/transparent-hugepages/
stealth[] has quit [Quit: Leaving]
stealth[] has joined #ruby
guardianx has joined #ruby
christiandsg has joined #ruby
despai_ has quit [Ping timeout: 248 seconds]
christiandsg has quit [Ping timeout: 248 seconds]
shinnya has joined #ruby
gnufied has joined #ruby
charliesome has joined #ruby
despai has joined #ruby
goepsilongo has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
gnufied has quit [Ping timeout: 255 seconds]
ta__ has joined #ruby
ta_ has quit [Ping timeout: 248 seconds]
livcd has joined #ruby
Rouge has quit [Ping timeout: 260 seconds]
ctrlaltdev has joined #ruby
ibraheem4 has joined #ruby
csk157 has joined #ruby
despai_ has joined #ruby
guardianx has quit []
guille-moe has joined #ruby
despai has quit [Ping timeout: 260 seconds]
AnoHito_ has quit [Ping timeout: 255 seconds]
Blaze_Boy has joined #ruby
ibraheem4 is now known as iabdulma
csk157 has quit [Ping timeout: 248 seconds]
halt has joined #ruby
halt is now known as Guest97055
mtkd has quit [Ping timeout: 260 seconds]
mtkd has joined #ruby
dionysus70 has quit [Ping timeout: 248 seconds]
iabdulma is now known as ibraheem4
ibraheem4 is now known as iabdulma
iabdulma is now known as ibraheem4
despai has joined #ruby
despai_ has quit [Ping timeout: 248 seconds]
apparition has quit [Quit: Bye]
despai_ has joined #ruby
despai has quit [Ping timeout: 248 seconds]
BTRE has quit [Quit: Leaving]
ibraheem4 has left #ruby [#ruby]
BTRE has joined #ruby
AnoHito has joined #ruby
despai_ has quit [Ping timeout: 248 seconds]
despai has joined #ruby
despai has quit [Max SendQ exceeded]
miskatonic has joined #ruby
bmurt has joined #ruby
despai has joined #ruby
despai has quit [Client Quit]
elphe has joined #ruby
despai has joined #ruby
csk157 has joined #ruby
Asher1 has joined #ruby
mim1k has joined #ruby
kitsunenokenja has quit [Quit: WeeChat 1.9.1]
Asher has quit [Ping timeout: 260 seconds]
sepp2k has joined #ruby
csk157 has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
al2o3-cr has quit [Quit: 你变得越安静,你就越能听到]
charliesome has quit [Client Quit]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 250 seconds]
bmurt has joined #ruby
truenito has joined #ruby
goyox86_ has joined #ruby
goyox86_ is now known as goyox86
KeyJoo has joined #ruby
chocoelho has joined #ruby
chocoelho has quit [Client Quit]
Asher1 is now known as Asher
John__ has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
voldemar has joined #ruby
cdg has joined #ruby
goyox86 has quit [Quit: goyox86]
muelleme has joined #ruby
miskatonic has quit [Remote host closed the connection]
voldemar has quit [Ping timeout: 248 seconds]
muelleme has quit [Client Quit]
alex`` has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
dviola has joined #ruby
mohabaks has quit [Quit: WeeChat 1.9]
<TomyLobo> >> (1..10000000000000000000000000000000000).first(3)
<ruby[bot]> TomyLobo: I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
<TomyLobo> okay, this returns instantly in pry
<TomyLobo> >> (1..100).first(3)
<ruby[bot]> TomyLobo: I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
<TomyLobo> ah, the bot is down
<havenwood> 1.upto(Float::INFINITY).first(3) #=> [1, 2, 3]
<TomyLobo> haha
<havenwood> Written nicer as: 1.step.first(3)
<TomyLobo> yeah, well tobiasvl was telling me that first(1) would generate everything in a range and then return the first element
despai has quit [Quit: ...]
<TomyLobo> i would think that would cause a significant delay with a range covering 10000000000000000000000000000000000 integers
<havenwood> TomyLobo: It doesn't turn the whole Range into an Array.
<havenwood> TomyLobo: If you did a #map or #select, etc, it would. In that case #lazy would come in handy.
<TomyLobo> yeah
<TomyLobo> first yields, so lazy.first is useless, right?
<havenwood> TomyLobo: yeah, but you could #take
<havenwood> 1.step.lazy.map(&:abs2).take(3) #=> #<Enumerator::Lazy: ...>
truenito has quit [Remote host closed the connection]
<TomyLobo> what i want is the nth element of a range
<havenwood> 1.step.lazy.map(&:abs2).first(3) #=> [1, 4, 9]
<havenwood> TomyLobo: ah
safetypin has quit [Quit: ZZZzzz…]
jxv has joined #ruby
<TomyLobo> hmm, enumerators dont seem to have a "last" method
safetypin has joined #ruby
<TomyLobo> i guess they can only be enumerated in order
Asher has quit [Ping timeout: 248 seconds]
lexruee has quit [Ping timeout: 248 seconds]
truenito has joined #ruby
xlegoman has joined #ruby
safetypin has quit [Client Quit]
lexruee has joined #ruby
truenito has quit [Ping timeout: 240 seconds]
despai has joined #ruby
isec has joined #ruby
Lyubo1 has quit [Read error: Connection reset by peer]
mfb2 has joined #ruby
mfb2 has quit [Remote host closed the connection]
Lyubo1 has joined #ruby
voldemar has joined #ruby
christiandsg has joined #ruby
safetypin has joined #ruby
meadmoon has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
truenito has joined #ruby
uZiel has joined #ruby
meadmoon has quit [Client Quit]
herbmillerjr has quit [Quit: Konversation terminated!]
chocoelho has joined #ruby
<dminuoso> havenwood: 1.step should have an awesome syntax like (1..)
<dminuoso> or more generally (1, 2..)
<dminuoso> [1, 2..] would work too, wouldnt mind having lazy arrays
<jhass> somehow I never needed .step in the real world though
marr has joined #ruby
truenito has quit [Ping timeout: 255 seconds]
<jhass> was only handy in challenges so far
hello_dave has joined #ruby
safetypin has quit [Quit: ZZZzzz…]
<dminuoso> jhass: It's actually a quite powerful abstraction
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> 1.step(by: 2) is amazing for generating odd numbers
<dminuoso> or 2.step(by: 2) for even ones
NL3limin4t0r has joined #ruby
alex`` has quit [Quit: WeeChat 1.9.1]
hello_dave has quit [Quit: Page closed]
ShalokShalom has quit [Ping timeout: 248 seconds]
<TomyLobo> is anyone aware of a way to efficiently dump a 38 MB json string into an mssql TEXT column using tiny_tds?
<TomyLobo> remote database, or i would use openrowset or something
<TomyLobo> usually i'd use a prepared statement, but TinyTds::Client has no "prepare" method
bmurt has joined #ruby
guille-moe has quit [Ping timeout: 248 seconds]
<dminuoso> TomyLobo: What would a prepared statement help you with?
<dminuoso> All a prepared statement does is safe you re-parsing the query and generating a query plan.
<dminuoso> Would this 38 MiB string go into a single tuple?
uZiel has quit [Remote host closed the connection]
isec has quit [Ping timeout: 248 seconds]
<TomyLobo> it goes straight into the openjson() function, whose result then gets saved into a table
despai has quit [Ping timeout: 260 seconds]
<TomyLobo> dminuoso, are you sure that's what a prepared statement does? that sounds a little inefficient
<TomyLobo> if it gets escaped and interpolated into the query and such
minimalism has joined #ruby
<TomyLobo> client.prepare('SELECT [key], value as value_json into savegame from OPENJSON(?)').execute(json) # basically what i'd do if prepared statements were available
isec has joined #ruby
<dminuoso> TomyLobo: You can usually create templated prepared statements that have placeholders (which incidentally can lead to inefficient query plans because the optimizer does not have all the information available)
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> TomyLobo: But that is somewhat orthogonal to your problem.
isec is now known as macpith
<dminuoso> TomyLobo: Does the data go into a single row or not?
<TomyLobo> no, but that is not what you want to know :)
<TomyLobo> openjson turns that one parameter into n rows
<TomyLobo> it parses the top-level object basically
<TomyLobo> but what goes in is a single value
<TomyLobo> i could move the openjson to a separate statement, so that in the first statement, everything does go into a single row
<TomyLobo> if that changes anything
csk157 has joined #ruby
<TomyLobo> client.prepare('SELECT ? as json into savegame_json').execute(json) # like that, or something similar
chocoelho has quit [Ping timeout: 240 seconds]
<dminuoso> TomyLobo: What would a prepared statement help you with exactly?
<dminuoso> Preparing a statement and immediately executing it is relatively pointless on its own.
<dminuoso> The whole idea of prepared statements is for queries that can't afford to re-parse or rebuild a new query plan.
<TomyLobo> well i would be more than happy if regular statements had support for placeholders and now that you mention it, i never checked whether they do
<dminuoso> (Say because you are hammering the database with the same query with a high frequency, or perhaps building the query plan is expensive (high degrees of join will do that)
Asher has joined #ruby
<dminuoso> I know it's sometimes abused for interpolation and sql escaping because the libraries suck and don't support it themselves.
csk157 has quit [Ping timeout: 248 seconds]
<TomyLobo> ./savetodb.rb:14:in `execute': wrong number of arguments (given 2, expected 1) (ArgumentError)
<TomyLobo> client.execute("SELECT [key], value as value_json into savegame from OPENJSON(?)", json)
<TomyLobo> my point is kinda that parameters dont really get inserted into some kind of string, but that parser makes a note of the placeholder and takes data from the corresponding parameter instead of parsing it from the sql query string
<TomyLobo> the parser*
uZiel has joined #ruby
mtkd has quit [Ping timeout: 255 seconds]
<TomyLobo> and with a 38 MB string, escaping and parsing the string can already be significantly slower than not doing it
mjolnird has quit [Ping timeout: 255 seconds]
chocoelho has joined #ruby
<dminuoso> TomyLobo: Is the performance of this relevant? Is losing a few hundred milliseconds make you lose any sleep?
christiandsg has quit [Remote host closed the connection]
<TomyLobo> also, using placeholders is doing it properly
<dminuoso> Because loading 38MiB from JSON into the database does not sound like something you would do frequently anyway. And if this is so performance critical, well go native and dont do this with some bizarre and badly written database adapter.
<dminuoso> Pick a proper database adapter then.
mtkd has joined #ruby
yabbes has quit [Ping timeout: 255 seconds]
<dminuoso> Pick a proper database then.
<dminuoso> TomyLobo: The code suggests that there is support for it in tiny_tds
<darix> also do the parsing and json querying in the DB
<dminuoso> darix: He is doing the parsing in the DB.
<darix> ok
<dminuoso> TomyLobo: Oh actually no. It seems the underlying library has no support for it.
<TomyLobo> https://technet.microsoft.com/en-us/library/ms378754(v=sql.105).aspx the jdbc driver supports prepared statements, so it's not the database that is the problem.
orbyt_ has joined #ruby
<dminuoso> TomyLobo: If the database forces you to use jdbc in order to gain access to sensible features, I'd say the database is a problem.
<TomyLobo> (also, why microsoft uses their own, horrible doc generator for java is beyond me)
<TomyLobo> dminuoso, the odbc driver is probably fine too
<TomyLobo> actually, why dont i use that... let me try
despai has joined #ruby
<TomyLobo> i even remember doing that once on a rubyinstaller ruby... so long ago ^^
i32inf has quit [Ping timeout: 260 seconds]
macpith has quit [Ping timeout: 260 seconds]
<TomyLobo> i can only get to the source of that thing tomorrow... for now, escapes \o/
i32inf has joined #ruby
<TomyLobo> takes a good chunk of time...
<TomyLobo> yeah this takes more than a minute at least, so it's not usable. Since I've never tried it with prepared statements, I dont know if they'd improve the situation, though :)
i32inf has quit [Ping timeout: 260 seconds]
<TomyLobo> might just be that the azure db is slow
podman is now known as podman[USC]
dn`_ has joined #ruby
Blaze_Boy has left #ruby ["ERC (IRC client for Emacs 25.3.1)"]
dn` has quit [Ping timeout: 258 seconds]
dn`_ is now known as dn`
techn1cs has joined #ruby
techn1cs has quit [Changing host]
techn1cs has joined #ruby
despai has quit [Read error: Connection reset by peer]
despai has joined #ruby
FahmeF has joined #ruby
i32inf has joined #ruby
jtdoncas_ has joined #ruby
jtdoncas_ has quit [Ping timeout: 255 seconds]
chocoelho has quit [Quit: chocoelho]
i32inf has quit [Ping timeout: 276 seconds]
selim has quit [Ping timeout: 260 seconds]
FahmeF has quit [Ping timeout: 255 seconds]
miskatonic has joined #ruby
NL3limin4t0r has quit [Ping timeout: 240 seconds]
despai has quit [Quit: ...]
biox has quit [Quit: probably server crash]
biox has joined #ruby
biox has quit [Client Quit]
biox has joined #ruby
mohabaks has joined #ruby
cdg has quit [Remote host closed the connection]
biox has quit [Client Quit]
csk157 has joined #ruby
toogley has joined #ruby
biox has joined #ruby
<toogley> can someone explain me that error message?
cdg has joined #ruby
csk157 has quit [Ping timeout: 248 seconds]
voldemar has quit [Ping timeout: 260 seconds]
csk157 has joined #ruby
despai has joined #ruby
Xeago has quit [Quit: ZNC 1.6.3 - http://znc.in]
Xeago has joined #ruby
sameerynho has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 255 seconds]
nowhere_man has joined #ruby
Xeago has quit [Client Quit]
Xeago has joined #ruby
csk157 has quit [Ping timeout: 248 seconds]
voldemar has joined #ruby
despai has quit [Ping timeout: 260 seconds]
John__ has quit [Ping timeout: 260 seconds]
mfb2 has joined #ruby
Xeago has quit [Quit: ZNC 1.6.3 - http://znc.in]
Xeago has joined #ruby
mfb2 has quit [Ping timeout: 240 seconds]
<dminuoso> toogley: Is it possible that rake will abort if a shell command returns non-0 exit code?
Technodrome has joined #ruby
<toogley> dminuoso: hm, i try to investiagate. but then the error message wouldn't make sense
<dminuoso> toogley: it does.
<dminuoso> Well, I'd spect some Command failed with status (1): [nc -z localhost 2345...] at least
<dminuoso> But the <top ...> part makes sense, as the blocks being invoked are defined at top level scope.
<dminuoso> There's no classes, modules or defined functions involved.
yqt has joined #ruby
ahurst has joined #ruby
ahurst has left #ruby [#ruby]
<dminuoso> toogley: https://gist.github.com/dminuoso/7b8578ee5e872fde9b720119de062ded this might be more obvious.
<dminuoso> It's just a block that appears in top level scope.
despai has joined #ruby
<toogley> ah, right
<toogley> thanks!
Lyubo1 has quit [Ping timeout: 248 seconds]
selim has joined #ruby
Lyubo1 has joined #ruby
Dimik has joined #ruby
despai has quit [Ping timeout: 255 seconds]
plexigras has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
cschneid has quit [Read error: Connection reset by peer]
cschneid has joined #ruby
Xeago has quit [Quit: ZNC 1.6.3 - http://znc.in]
Xeago has joined #ruby
guille-moe has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: Textual IRC Client: www.textualapp.com]
goyox86 has joined #ruby
NL3limin4t0r has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
kies has quit [Ping timeout: 255 seconds]
ogres has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
Mia has quit [Read error: Connection reset by peer]
TomyLobo has quit [Read error: Connection reset by peer]
Ltem has joined #ruby
voldemar has quit [Ping timeout: 260 seconds]
jtdoncas_ has joined #ruby
Mia has joined #ruby
i8igmac has joined #ruby
goyox86 has quit [Quit: goyox86]
<i8igmac> im working with net-ssh. im trying to duplicate this client command from ssh
<i8igmac> ssh -f user@host 'uname -a'
<i8igmac> ssh -f user@host 'ping google.com'
Axy has quit [Ping timeout: 248 seconds]
<i8igmac> ssh -f user@host 'ping google.com > /dev/null'
<i8igmac> this will connect to the host, run a command in the background then disconnect from the host
<i8igmac> any ideas how this could be done with net-ssh
<dminuoso> i8igmac: Yes. It's done by looking at the documentation.
<i8igmac> well, i looked. i didnt see anything on forking exec
hrg has joined #ruby
kies has joined #ruby
<i8igmac> the only way i could background a process is using a separate application like screen
despai has joined #ruby
<dminuoso> i8igmac: There's various things you can do. The simplest solution would to just be using shell features () and &
<dminuoso> Or & and disown
<dminuoso> i.e. ssh.exec "(foo &)"
<dminuoso> If you need to track this (perhaps with a PID file) then either do it in raw sh, or you need to move the code to the remote server.
<dminuoso> i8igmac: Oh wait that should have been (setsid foo &)
gix- has joined #ruby
gix has quit [Disconnected by services]
<i8igmac> yes, i have seen these kinds of examples
<dminuoso> Or foo & disown
<i8igmac> these examples depend on applications that may not exist
<dminuoso> i8igmac: disown at least is provided by sh/bash/zsh
<dminuoso> so (foo & disown) will get the job done
<dminuoso> Or mmm no I think disown is not enough, you may have to nohup it
<i8igmac> nohup
<dminuoso> Yeah.
<dminuoso> bah thats just disgusting
<dminuoso> i8igmac: nohup seems to be the simplest rigid solution (though that behavior on SIGHUP is not pretty)
<i8igmac> yah, thanks
despai has quit [Quit: ...]
despai has joined #ruby
ozcanesen has joined #ruby
Xiti has quit [Quit: Xiti]
wilbert_ has joined #ruby
i8igmac has quit [Remote host closed the connection]
alex`` has joined #ruby
despai has quit [Quit: ...]
s3nd1v0g1us has joined #ruby
r0nin has joined #ruby
hrg has quit [Quit: Page closed]
csk157 has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
uZiel has joined #ruby
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
mim1k has joined #ruby
tuelz has quit [Remote host closed the connection]
Xiti has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
Qommand0r has joined #ruby
biberu has quit []
gix has joined #ruby
gix- has quit [Ping timeout: 248 seconds]
despai has joined #ruby
Qommand0r has quit [Client Quit]
wilbert_ has quit [Ping timeout: 260 seconds]
Qommand0r has joined #ruby
tuelz has joined #ruby
JaccoP has joined #ruby
waveprop has joined #ruby
armando has quit [Quit: ZNC 1.7.x-nightly-20171122-e1f821a7 - https://znc.in]
jtdoncas_ has quit [Ping timeout: 248 seconds]
pdcawley has joined #ruby
pdcawley has left #ruby [#ruby]
dinfuehr has quit [Ping timeout: 250 seconds]
dinfuehr has joined #ruby
exhiled has joined #ruby
wilbert_ has joined #ruby
armando has joined #ruby
goyox86_ has joined #ruby
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
cdg has quit [Ping timeout: 255 seconds]
KeyJoo has quit [Read error: Connection reset by peer]
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
gbaptista has joined #ruby
TomyLobo has joined #ruby
KeyJoo has joined #ruby
Rouge has joined #ruby
ozcanesen has quit [Quit: ozcanesen]
KeyJoo has quit [Remote host closed the connection]
KeyJoo has joined #ruby
Cohedrin has joined #ruby
Rouge has quit [Ping timeout: 240 seconds]
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
John__ has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
ozcanesen has joined #ruby
guille-moe has joined #ruby
tomphp has joined #ruby
ozcanesen has quit [Quit: ozcanesen]
gbaptista has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
mohabaks has quit [Quit: WeeChat 1.9]
ramfjord has joined #ruby
nowhereman has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
friday has quit [Changing host]
friday has joined #ruby
mfb2 has joined #ruby
mfb2 has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 248 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JaccoP has quit [Remote host closed the connection]
reber has quit [Remote host closed the connection]
JaccoP has joined #ruby
yabbes has joined #ruby
safetypin has joined #ruby
chocoelho has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
<TomyLobo> DBI.connect("DBI:ODBC:#{datasource}", "#{usr}","#{pwd}") gives me DBI::InterfaceError: Unable to load driver 'ODBC' (underlying error: uninitialized constant DBI::DBD::ODBC). I did "gem install dbi" and "gem install dbd-odbc"
JaccoP has quit [Quit: Leaving]
<TomyLobo> I can only assume I am doing something wrong
<TomyLobo> however, what that is escapes me
<TomyLobo> http://gordonotspanish.blogspot.de/2010/02/resolved-uninitialized-constant.html this page is probably outdated. it suggests "require 'odbc'", which doesnt find anything either, and neither does "require 'dbd/odbc'"
<TomyLobo> or "require 'dbd-odbc'"
ramfjord has quit [Ping timeout: 255 seconds]
chocoelho has quit [Quit: chocoelho]
<TomyLobo> i was missing "gem install ruby-odbc", apparently
goyox86_ has quit [Quit: goyox86_]
goyox86_ has joined #ruby
npgm has joined #ruby
goyox86_ has quit [Client Quit]
voldemar has joined #ruby
thyRootest has joined #ruby
yabbes has quit [Quit: lu]
quobo has quit [Quit: Connection closed for inactivity]
<mikecmpbll> pretty dumb question but it's late and i'm tired :D if i have an each loop inside a while loop, what's the easiest way to move onto the next iteration of the while loop from in the each iteration
thyRootest has quit [Client Quit]
<tobiasvl> mikecmpbll: that's not really possible, but maybe you're looking for "break"? that'll break out of the "each" loop
<mikecmpbll> yeah, doh. means i have to complicate the code more than i'd like
safetypin has quit [Quit: ZZZzzz…]
Exagone313 has quit [Quit: see ya!]
<mikecmpbll> the break makes the iterator return nil so i need to check for that case then `next` the external loop
csk157 has quit [Ping timeout: 248 seconds]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 248 seconds]
Exagone313 has joined #ruby
safetypin has joined #ruby
guille-moe has quit [Ping timeout: 255 seconds]
gbaptista has joined #ruby
skweek has joined #ruby
gbaptista has quit [Client Quit]
safetypin has quit [Client Quit]
<dminuoso> mikecmpbll: You can use catch/throw as a clutch for breaking out of deeply nested constrol structures.
<dminuoso> It's equivalent to goto, so use appropriately careful.
sundhell has joined #ruby
safetypin has joined #ruby
<dminuoso> I'd probably prefer this over some some; do_abort = true; break;
ctrlaltdev has quit [Quit: leaving]
mim1k has joined #ruby
sameerynho has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
gbaptista has joined #ruby
mahlon has quit [Quit: WeeChat 1.9]
goyox86 has joined #ruby
gbaptista has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
jsaak has joined #ruby
mjolnird has joined #ruby
goyox86___ has joined #ruby
goyox86 has quit [Ping timeout: 248 seconds]
goyox86___ is now known as goyox86
mahlon has joined #ruby
armyriad has quit [Quit: Leaving]
kitsunenokenja has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
kitsunenokenja has left #ruby [#ruby]
DTZUZO has joined #ruby
armyriad has joined #ruby
r0nin has quit [Remote host closed the connection]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
r0nin has joined #ruby
goyox86 has quit [Read error: Connection reset by peer]
r0nin has quit [Ping timeout: 240 seconds]
jamesaxl has quit [Quit: WeeChat 1.9.1]
ShalokShalom has joined #ruby
elphe has joined #ruby
csk157 has joined #ruby
GodFather has quit [Ping timeout: 248 seconds]
nofxx has quit [Read error: Connection reset by peer]
Xano__ has quit [Ping timeout: 260 seconds]
SirOliver has joined #ruby
nofxx has joined #ruby
ExtremeBunny25 has joined #ruby
trezen has joined #ruby
elphe has quit [Ping timeout: 255 seconds]
stealth[] has quit [Quit: Leaving]
csk157 has quit [Ping timeout: 255 seconds]
kitsunenokenja has joined #ruby
__main__ has quit [Ping timeout: 240 seconds]
silvermine has joined #ruby
sameerynho has quit [Ping timeout: 255 seconds]
<ExtremeBunny25> Quit
ExtremeBunny25 has quit [Quit: Page closed]
vee__ has quit [Ping timeout: 240 seconds]
Azure|dc has quit [Ping timeout: 260 seconds]
alex`` has quit [Ping timeout: 260 seconds]
mson has joined #ruby
r0nin has joined #ruby
Azure has joined #ruby
vee__ has joined #ruby
Azure has quit [Client Quit]
quobo has joined #ruby
NL3limin4t0r has quit [Quit: WeeChat 1.9]
r0nin has quit [Ping timeout: 260 seconds]
xlegoman has quit [Quit: Textual IRC Client: www.textualapp.com]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__main__ has joined #ruby
ramfjord has joined #ruby
jxv has joined #ruby
jxv has quit [Client Quit]
webguynow has joined #ruby
Ltem has quit [Quit: Leaving]
ramfjord has quit [Ping timeout: 268 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
GodFather has joined #ruby
GodFather_ has joined #ruby
GodFather_ has quit [Remote host closed the connection]
_main_ has joined #ruby
_main_ has quit [Read error: Connection reset by peer]
__main__ has quit [Read error: Connection reset by peer]
miskatonic has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
_main_ has joined #ruby
Azure has joined #ruby
_main_ is now known as __main__
carnegie has joined #ruby
despai has quit [Read error: Connection reset by peer]
i32inf has joined #ruby
despai has joined #ruby
SirOliver has quit [Quit: ZZZzzz…]
trezen has left #ruby ["Ex-Chat"]
carnegie_ has joined #ruby
carnegie has quit [Ping timeout: 255 seconds]
csk157 has joined #ruby
despai has quit [Ping timeout: 240 seconds]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
csk157 has quit [Ping timeout: 248 seconds]
TomyLobo has quit [Ping timeout: 260 seconds]
p0p0pr37 has quit [Ping timeout: 260 seconds]
clemens3 has quit [Ping timeout: 276 seconds]
p0p0pr37 has joined #ruby
p0p0pr37 has quit [Changing host]
p0p0pr37 has joined #ruby
ShalokShalom has quit [Remote host closed the connection]
KeyJoo has quit [Ping timeout: 260 seconds]
ShalokShalom has joined #ruby
ShalokShalom has quit [Remote host closed the connection]
ShalokShalom has joined #ruby
jnyw has joined #ruby
mim1k has joined #ruby
voldemar has quit [Ping timeout: 248 seconds]
mim1k has quit [Ping timeout: 260 seconds]
cschneid has quit [Ping timeout: 255 seconds]
Rouge has joined #ruby