havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: 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
libastral has joined #ruby
impermanence has joined #ruby
claudevandort has joined #ruby
cosmodanger has joined #ruby
mostlybadfly has joined #ruby
libastral has quit [Ping timeout: 255 seconds]
PresidentBiscuit has joined #ruby
Limix has quit [Quit: Limix]
jgt1 has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
CloCkWeRX has joined #ruby
RobertBirnie has joined #ruby
postmodern has quit [Remote host closed the connection]
libastral has joined #ruby
AndBobsYourUncle has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
AndBobsYourUncle has quit [Client Quit]
AndBobsYourUncle has joined #ruby
AndBobsYourUncle has quit [Client Quit]
AndBobsYourUncle has joined #ruby
AndBobsYourUncle has quit [Client Quit]
xenops has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AndBobsYourUncle has joined #ruby
xenops has joined #ruby
AndBobsYourUncle has quit [Client Quit]
xenops has quit [Client Quit]
AndBobsYourUncle has joined #ruby
xenops has joined #ruby
AndBobsYourUncle has quit [Client Quit]
xenops has quit [Client Quit]
xenops has joined #ruby
xenops has quit [Client Quit]
xenops has joined #ruby
xenops has quit [Client Quit]
xenops has joined #ruby
xenops has quit [Client Quit]
BSaboia has joined #ruby
AndBobsYourUncle has joined #ruby
esObe_ has joined #ruby
raul782 has joined #ruby
esObe_ has quit [Ping timeout: 255 seconds]
GodFather has joined #ruby
Pumukel has joined #ruby
raul782 has quit [Ping timeout: 240 seconds]
jgt1 has joined #ruby
HoloIRCUser3 has quit [Ping timeout: 255 seconds]
Pumukel has quit [Ping timeout: 252 seconds]
CloCkWeRX has quit [Quit: Leaving.]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pumukel has joined #ruby
jdm has joined #ruby
hfp has quit [Ping timeout: 260 seconds]
hfp_work has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
BSaboia has quit [Ping timeout: 240 seconds]
gdonald has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: inabit. zz.]
gdonald has joined #ruby
postmodern has joined #ruby
jdm has quit [Remote host closed the connection]
jdm has joined #ruby
acalycine has joined #ruby
RobertBirnie has joined #ruby
hahuang61 has joined #ruby
<impermanence> what is a program program called? Like in python it's a module, in java it's a class file, in puppet it's a manifest...does ruby have something like that?
<impermanence> ^ ruby program that should have read.
jdm has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 252 seconds]
nankyokusei has joined #ruby
tvw has quit [Ping timeout: 252 seconds]
herbmillerjr has joined #ruby
lxsameer has quit [Quit: WeeChat 1.7]
nankyokusei has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
boz_ has quit [Quit: This computer has gone to sleep]
JeanCarloMachado has joined #ruby
cosmodanger has quit [Quit: leaving]
hfp_work has joined #ruby
hfp has joined #ruby
<llua> thingy
<acalycine> Hey. Shouldn't I get a match in this: https://gist.github.com/anonymous/abe3b7c344ee6be29fd24dc302258592
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
herbmillerjr has quit [Quit: Konversation terminated!]
herbmillerjr has joined #ruby
houhoulis has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 252 seconds]
<llua> in_progress[0].include? 'foo' would
cfec0b8d has quit [Ping timeout: 260 seconds]
<acalycine> Ah. But how can I not specify the group ([0)? Because it could be in any of those.
<acalycine> i.e. recursively search
<llua> in_progress.flatten.include? 'foo'
PresidentBiscuit has quit [Remote host closed the connection]
raul782 has joined #ruby
PresidentBiscuit has joined #ruby
<acalycine> I get `NoMethodError: undefined method `include' for #<Array:0x007fec8b876638>`
<llua> forgot the ?
mzo has joined #ruby
<acalycine> Ah.
<acalycine> That works, thanks.
<acalycine> Now, how could I search for "Adelaide", and get the "820" associated with it?
herbmillerjr has quit [Quit: Konversation terminated!]
raul782 has quit [Ping timeout: 240 seconds]
PresidentBiscuit has quit [Ping timeout: 255 seconds]
libastral has quit [Ping timeout: 240 seconds]
Guest96_ has quit [Remote host closed the connection]
Guest96 has joined #ruby
libastral has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RobertBirnie has joined #ruby
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jameser has joined #ruby
spicerack has quit [Quit: Textual IRC Client: www.textualapp.com]
RobertBirnie has quit [Ping timeout: 240 seconds]
xall has joined #ruby
t-recx has joined #ruby
impermanence has joined #ruby
jameser has quit [Quit: Textual IRC Client: www.textualapp.com]
RobertBirnie has joined #ruby
pifon has quit [Quit: Connection closed for inactivity]
jdelStrother has joined #ruby
jdelStrother is now known as Guest60204
spicerack has joined #ruby
Pumukel has joined #ruby
<nofxx> acalycine, ary.select { |a| a.include? 'Adelaide' }.first
<acalycine> Ahh. And then I just select the first from that?
<nofxx> ops... guess #find , well check which returns only the array
<nofxx> acalycine, try find, like select will get you [[a]], find will [a]
<nofxx> select is for multiple results
<acalycine> That works beautifully. Thanks! :D
rexb0t has joined #ruby
<nofxx> acalycine, if you always searching the second element, you may change include? with a[1] == 'Adelaide'
<acalycine> Well the data will change, but yeah, good idea. Thanks.
JeanCarloMachado has quit [Remote host closed the connection]
p0p0pr37 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
hndk has joined #ruby
cam27 has joined #ruby
rexb0t has quit [Quit: Mutter: www.mutterirc.com]
shinnya has joined #ruby
xall has quit [Ping timeout: 240 seconds]
SteenJobs has quit [Quit: SteenJobs]
gix has quit [Ping timeout: 240 seconds]
gix has joined #ruby
ryan_notabot has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
gk_1wm_su has joined #ruby
gk_1wm_su has left #ruby [#ruby]
hahuang61 has quit [Ping timeout: 240 seconds]
herbmillerjr has joined #ruby
nankyokusei has joined #ruby
enterprisey has joined #ruby
GodFather has quit [Ping timeout: 252 seconds]
acalycine has quit [Quit: bye]
nankyokusei has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
jgt1 has quit [Ping timeout: 240 seconds]
enterprisey has quit [Remote host closed the connection]
kristofferR has joined #ruby
ptx0 has quit [Read error: Connection reset by peer]
gk_1wm_su has joined #ruby
gk_1wm_su has left #ruby [#ruby]
spicerack has quit [Quit: Textual IRC Client: www.textualapp.com]
ptx0 has joined #ruby
herbmillerjr has joined #ruby
Nezith has joined #ruby
spicerack has joined #ruby
raul782 has joined #ruby
enterprisey has joined #ruby
raul782 has quit [Ping timeout: 252 seconds]
t-recx has quit [Ping timeout: 240 seconds]
cagmz has quit [Quit: Leaving]
milardovich has quit [Remote host closed the connection]
_djbkd has joined #ruby
milardovich has joined #ruby
milardovich has quit [Ping timeout: 245 seconds]
milardovich has joined #ruby
claudevandort has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Nezith has quit [Quit: Leaving]
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
_djbkd has quit [Quit: My people need me...]
jdm has joined #ruby
jdm has quit [Remote host closed the connection]
electrostat has quit [Quit: uwotm8]
electrostat has joined #ruby
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Nezith has joined #ruby
agent_white has joined #ruby
b3l914n has quit [Ping timeout: 260 seconds]
hndk has quit [Remote host closed the connection]
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
_djbkd has joined #ruby
blackwind_123 has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
shinnya has quit [Ping timeout: 252 seconds]
dar123 has joined #ruby
jud has quit [Quit: Leaving]
jenrzzz has joined #ruby
cmhobbs has joined #ruby
Nezith has quit [Quit: Leaving]
rakm has joined #ruby
Nezith has joined #ruby
<cmhobbs> i've got an array of strings and i'm trying to make sub arrays based on if a string is matched. so if i have ["foo", "bar", "baz"], i want to make a sub array for every foo resulting in [["foo", "bar"], "baz"]
<cmhobbs> anyone know of an efficient way to go about that?
<cmhobbs> i've been messing with each_index and select, producing some crazy iterators and i don't think i'm going about things right
<cmhobbs> is it possible to get the next element while inside an iterator?
Nezith has quit [Client Quit]
<go|dfish> cmhobbs: perhaps you're looking for .each_cons
<cmhobbs> yeah, i was just looking at that in the docs, thanks
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
rakm has quit [Client Quit]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_whitelogger has joined #ruby
cam27 has quit [Quit: cam27]
mzo has quit [Ping timeout: 240 seconds]
monban has joined #ruby
<nofxx> go|dfish, man...wish I new that already heh thank you
<nofxx> knew*
<go|dfish> nofxx: :)
hahuang61 has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
<nofxx> go|dfish, might change a lot of code... will search for "[i (+|-) 1]" =D
dcluna has quit [Ping timeout: 240 seconds]
HoierM has quit [Ping timeout: 260 seconds]
hahuang61 has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
s1kx has quit [Quit: s1kx]
nankyokusei has quit [Ping timeout: 240 seconds]
Ishido has quit [Read error: Connection reset by peer]
skweek has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
skweek has joined #ruby
enterprisey has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
ayonkhan has joined #ruby
solocshaw has joined #ruby
rhyselsmore has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
Xiti has quit [Quit: Xiti]
raul782 has joined #ruby
raul782 has quit [Ping timeout: 255 seconds]
Channel6 has quit [Quit: Leaving]
_whitelogger has joined #ruby
BaroMeter has joined #ruby
haraoka has quit [Ping timeout: 256 seconds]
bkxd has quit [Ping timeout: 255 seconds]
jusa has joined #ruby
User458764 has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
BubonicPestilenc has joined #ruby
PresidentBiscuit has joined #ruby
bkxd has joined #ruby
PresidentBiscuit has quit [Ping timeout: 252 seconds]
jusa has quit [Ping timeout: 255 seconds]
_djbkd has quit [Quit: My people need me...]
bkxd has quit [Ping timeout: 255 seconds]
jgnagy has quit [Remote host closed the connection]
xenops has joined #ruby
jgnagy has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
xenops has quit [Ping timeout: 240 seconds]
griff has joined #ruby
bkxd has joined #ruby
cyphase has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
hahuang61 has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
whiteline has quit [Read error: Connection reset by peer]
solocshaw has quit [Remote host closed the connection]
solocshaw has joined #ruby
whiteline has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
hahuang61 has quit [Ping timeout: 255 seconds]
BaroMeter has quit [Remote host closed the connection]
nankyokusei has joined #ruby
nankyokusei has quit [Ping timeout: 255 seconds]
Mon_Ouie has joined #ruby
solocshaw has quit [Ping timeout: 252 seconds]
antgel has joined #ruby
jusa has joined #ruby
cfec0b8d has joined #ruby
jamesaxl has joined #ruby
bz has joined #ruby
agent_white has quit [Quit: agent_white]
cyphase has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
grh has joined #ruby
esObe_ has joined #ruby
esObe_ has quit [Ping timeout: 255 seconds]
toretore has joined #ruby
BaroMeter has joined #ruby
djbkd_ has joined #ruby
__main__ has quit [Ping timeout: 240 seconds]
__main__ has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
CloCkWeRX has joined #ruby
pwnd_nsfw` has joined #ruby
pwnd_nsfw has quit [Ping timeout: 240 seconds]
vuoto has joined #ruby
boz_ has joined #ruby
Qchmqs has joined #ruby
hutch34 has joined #ruby
monban has quit [Quit: WeeChat 1.6]
xenops has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
harfangk has joined #ruby
DARPA has joined #ruby
griff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
naprimer_2 has quit [Ping timeout: 264 seconds]
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rgr_ has joined #ruby
Mon_Ouie has joined #ruby
vuoto has quit [Remote host closed the connection]
govg has joined #ruby
minimalism has quit [Quit: minimalism]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
BubonicPestilenc has quit [Quit: Textual IRC Client: www.textualapp.com]
harfangk has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
milardovich has joined #ruby
solocshaw has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
nadir has quit [Quit: Connection closed for inactivity]
vuoto has joined #ruby
PaulCapestany has quit [Quit: .]
solocshaw has quit [Ping timeout: 255 seconds]
raul782 has joined #ruby
rhyselsmore has joined #ruby
rhyselsmore has quit [Client Quit]
Rutix has joined #ruby
Rutix has joined #ruby
Rutix has quit [Changing host]
acalycine has joined #ruby
<acalycine> Does Ruby have a way of ordering array elements by numbers? https://gist.github.com/anonymous/dea8257b4dfa63b58502e04cb2eb218b
Xeago has joined #ruby
raul782 has quit [Ping timeout: 240 seconds]
<apeiros> sort & sort_by
<apeiros> @ acalycine
<apeiros> if you want a more specific answer, provide more specific information
<acalycine> I want to put that ^ in order from highest to lowest.
<acalycine> i.e. the first number in each group of arrays, or whatever it's called
<apeiros> your arrays don't contain numbers, they contain strings
<apeiros> so sort_by and return the first element converted to an int in the sort_by block
djbkd_ has quit [Remote host closed the connection]
<acalycine> I need it as a string later.
<hanmac> acalycine: its no problem, it only temporally converted to a int
<acalycine> Ah ok.
<acalycine> How would I use #sort_by in this case?
djbkd_ has joined #ruby
<apeiros> exactly the way I described it
Jackneill has joined #ruby
<acalycine> I don't understand the syntax for sort_by.
ddffg has joined #ruby
SteenJobs has joined #ruby
<Mon_Ouie> &ri Array#sort_by
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Mon_Ouie> Look at the example with word.length
PaulCapestany has joined #ruby
<acalycine> But sequential order? That's .length
<acalycine> `completed.sort_by { |completed.first.to_i| }`
<acalycine> That's what I can make out
<Mon_Ouie> No, between the || pipes, you have the parameter names for the block i.e. in this case what you want to call the elements of your array
jgt1 has joined #ruby
<apeiros> yes, the example sorts by length (hence sort_by + .length)
<apeiros> and you've almost got it. .sort_by { |number,| number.to_i }
hahuang61 has joined #ruby
<acalycine> Ahhhh.
<acalycine> Could I make it go backwards?
<hanmac> apeiros: oh interesting, in my shortest form i did |number,*| ... interesting that you can leave it out too
lxsameer has joined #ruby
<apeiros> acalycine: either you use fancy maths (-num) or Array#reverse
<apeiros> hanmac: hah, I thought you something :D
<hanmac> currently there is no reverse_sort(_by) imo a bit sad imo
<acalycine> Hmm.
<acalycine> Array#reverse. Let's try that out, haha.
hahuang61 has quit [Ping timeout: 255 seconds]
nankyokusei has joined #ruby
BTRE has quit [Ping timeout: 264 seconds]
nankyokusei has quit [Ping timeout: 255 seconds]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
<acalycine> Why am I getting "1148"? I should be getting "1159", as that's the first array group with "Brisbane" on it. https://gist.github.com/anonymous/4442551ef3e4540b1305cc6952b77966
<Mon_Ouie> What is team?
<acalycine> "Brisbane", sorry.
<Mon_Ouie> >> ["1159", "St Kilda", "Brisbane ", nil, nil].include? "Brisbane"
<ruby[bot]> Mon_Ouie: # => false (https://eval.in/771246)
<Mon_Ouie> ^ that array does not contain "Brisbane"
<acalycine> Oh. Whitespace.
<acalycine> How can I account for the whitespace in all the second parts?
djbkd_ has quit [Remote host closed the connection]
<apeiros> how about you ensure there are none?
<acalycine> Not my data.
esObe_ has joined #ruby
<apeiros> seems to me like they're there by mistake anyway
<apeiros> oh bs
<acalycine> They would be.
djbkd_ has joined #ruby
<apeiros> the moment it's in your system, it's your data :-p
<acalycine> I'm scraping it, but yes.
<acalycine> Sure, I want to fix it *now* it is.
<elomatreb> >> ["test ", nil].map {|value| value&.chomp }
<ruby[bot]> elomatreb: # => ["test ", nil] (https://eval.in/771247)
<apeiros> that step where you "ensure there is none" is called normalization. and you totally should do it.
<apeiros> beats working around broken data.
<acalycine> How do I do normalisation in Ruby, then?
<toretore> gam enstal normalize
<apeiros> there are no silver bullets or magic pixie dust.
esObe_ has quit [Read error: Connection reset by peer]
<apeiros> you see how the data entering your system is mangled and you fix it
<apeiros> you've now noticed one way: surrounding whitespace
esObe_ has joined #ruby
<elomatreb> The only difference between "working around broken data" and "normalization" is where you're doing it in this case
<apeiros> .strip removes surrounding whitespace
<apeiros> elomatreb: correct. normalization is "do it once and in a clear place". the other way is "do it every effing time you work with the data spread over all your code"
<acalycine> I'm not working with the data past that, so it would be corrected, and never used again.
Axy has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
* apeiros shrugs
nofxxx has joined #ruby
<apeiros> I won't convince you of using good practices
<elomatreb> I'd still recommend fixing these errors/inconsistencies directly after where you scrape it
<acalycine> Nah, I agree with you
djbkd_ has quit [Ping timeout: 255 seconds]
<apeiros> I tell you the proper praxis, and then it's up to you whether you want to use it or eff it up
vuoto has quit [Ping timeout: 240 seconds]
esObe_ has quit [Ping timeout: 252 seconds]
nofxx has quit [Ping timeout: 240 seconds]
Mia has quit [Ping timeout: 252 seconds]
Mia has joined #ruby
vuoto has joined #ruby
Axy has quit [Ping timeout: 240 seconds]
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
<hanmac> apeiros: new change in ruby trunk: case xyz; when "0.0.1".."0.0.5" does not create String or Range objects anymore ;P
<apeiros> interesting. case/when is already heavily optimized.
Mia has quit [Ping timeout: 240 seconds]
<Mon_Ouie> What if you redefine Range#===? does range = "0.0.1".."0.0.5"; case object; when range then …; end start to behave differently?
<Mon_Ouie> (differently from having a range literal, that is)
dar123 has quit [Read error: Connection reset by peer]
p0p0pr37 has joined #ruby
p0p0pr37 has joined #ruby
p0p0pr37 has quit [Changing host]
p0p0pr37 has quit [Remote host closed the connection]
p0p0pr37 has joined #ruby
p0p0pr37 has joined #ruby
p0p0pr37 has quit [Changing host]
SteenJobs has quit [Quit: SteenJobs]
esObe_ has joined #ruby
grh has quit [Ping timeout: 260 seconds]
<hanmac> Mon_Ouie: quick test with defining a new === method in Range (not redifine) it still does use the new method (means it does fallback if you overwrite the === method)
<Mon_Ouie> Okay, so the semantics didn't change at all, it's just an optimization for the normal use cases
raul782 has joined #ruby
Guest96 has quit [Remote host closed the connection]
raul782 has quit [Ping timeout: 252 seconds]
aryaching has joined #ruby
Guest96 has joined #ruby
mikecmpbll has joined #ruby
kristofferR has joined #ruby
hutch34 has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
hutch34 has quit [Ping timeout: 255 seconds]
milardovich has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
aryaching has quit [Ping timeout: 240 seconds]
cseder has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit [Ping timeout: 255 seconds]
spicerack has joined #ruby
postmodern has quit [Quit: Leaving]
Lord_of_Life has joined #ruby
ledestin has joined #ruby
Ishido has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
howlinbash has quit [Quit: Leaving]
Ishido has joined #ruby
boz_ has quit [Quit: This computer has gone to sleep]
sepp2k has joined #ruby
aglorei has quit [Read error: Connection reset by peer]
boz_ has joined #ruby
bkxd has quit [Ping timeout: 245 seconds]
p0p0pr37_ has joined #ruby
p0p0pr37_ has joined #ruby
p0p0pr37_ has quit [Changing host]
aglorei has joined #ruby
jespada has joined #ruby
PresidentBiscuit has joined #ruby
p0p0pr37 has quit [Ping timeout: 240 seconds]
p0p0pr37_ is now known as p0p0pr37
PresidentBiscuit has quit [Ping timeout: 255 seconds]
rgtk has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
jespada has quit [Quit: WeeChat 1.7]
jespada has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
Ishido has joined #ruby
jespada has quit [Client Quit]
milardovich has joined #ruby
hutch34 has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
hutch34 has quit [Ping timeout: 240 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
figuresofstick has quit [Quit: Leaving]
hahuang61 has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
figuresofstick has joined #ruby
herbmillerjr has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
leah2 has quit [Ping timeout: 256 seconds]
fusta has joined #ruby
milardovich has joined #ruby
greister has quit [Ping timeout: 246 seconds]
fusta has quit [Ping timeout: 255 seconds]
__Yiota has joined #ruby
ayonkhan has quit [Ping timeout: 252 seconds]
leah2 has joined #ruby
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
herbmillerjr has quit [Remote host closed the connection]
charliesome has joined #ruby
BaroMeter has quit [Quit: Leaving]
acalycine has quit [Quit: bye]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
greister has joined #ruby
am55 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
acalycine has joined #ruby
whenIdoIsudo has joined #ruby
jusa has quit [Ping timeout: 252 seconds]
milardovich has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
shinnya has joined #ruby
am55 has joined #ruby
DARPA has quit [Ping timeout: 252 seconds]
|RicharD| has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
acalycine has quit [Quit: bye]
Lord_of_Life has quit [Excess Flood]
acalycine has joined #ruby
jakkn has joined #ruby
acalycine has quit [Client Quit]
Lord_of_Life has joined #ruby
acalycine has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
fusta has joined #ruby
leah2 has quit [Ping timeout: 252 seconds]
grh has joined #ruby
acalycine has quit [Quit: bye]
acalycine has joined #ruby
RobertBirnie has joined #ruby
herbmillerjr has joined #ruby
Alina-malina has quit [Ping timeout: 240 seconds]
grh has quit [Ping timeout: 260 seconds]
Alina-malina has joined #ruby
claudevandort has joined #ruby
alamar has quit [Ping timeout: 260 seconds]
j has joined #ruby
j is now known as Guest70052
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
leah2 has joined #ruby
Xiti has joined #ruby
xall has joined #ruby
jgt1 has quit [Ping timeout: 255 seconds]
x0f has quit [Ping timeout: 264 seconds]
Guest70052 has quit [Ping timeout: 240 seconds]
ryan_notabot has joined #ruby
j_ has joined #ruby
x0f has joined #ruby
raul782 has joined #ruby
raul782 has quit [Ping timeout: 255 seconds]
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
nadir has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
fusta has quit [Ping timeout: 255 seconds]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 245 seconds]
hahuang61 has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
hahuang61 has quit [Ping timeout: 255 seconds]
spicerack has joined #ruby
hogetaro has joined #ruby
nankyokusei has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 240 seconds]
rgtk has quit [Ping timeout: 252 seconds]
joneshf-laptop has joined #ruby
vuoto has quit [Remote host closed the connection]
ltd has quit [Ping timeout: 260 seconds]
hutch34 has joined #ruby
ltd has joined #ruby
cam27 has joined #ruby
Jackneill_ has joined #ruby
nowhereman has quit [Ping timeout: 252 seconds]
jgt1 has joined #ruby
Jackneill has quit [Ping timeout: 252 seconds]
shinnya has quit [Ping timeout: 255 seconds]
cseder has joined #ruby
libastral has quit [Ping timeout: 240 seconds]
lightheaded has joined #ruby
libastral has joined #ruby
jgt1 has quit [Ping timeout: 252 seconds]
howdoi has joined #ruby
eizua has joined #ruby
yeticry has joined #ruby
Ishido has quit [Ping timeout: 252 seconds]
j_ is now known as alamar
claudevandort has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yeticry_ has quit [Ping timeout: 240 seconds]
PresidentBiscuit has joined #ruby
lenwood has joined #ruby
linux has joined #ruby
t-recx has joined #ruby
PresidentBiscuit has quit [Ping timeout: 245 seconds]
linux has quit [Quit: Konversation terminated!]
whiteline has quit [Read error: Connection reset by peer]
whiteline has joined #ruby
ddffg has quit [Ping timeout: 252 seconds]
__Yiota has joined #ruby
houhoulis has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
vuoto has joined #ruby
User458764 has joined #ruby
DLSteve has joined #ruby
User458764 has quit [Max SendQ exceeded]
User458764 has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
Verity has quit [Quit: Leaving]
marr has joined #ruby
lightheaded has quit [Remote host closed the connection]
rwb has quit [Ping timeout: 240 seconds]
cfec0b8d has quit [Remote host closed the connection]
lightheaded has joined #ruby
hutch34 has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ltd has quit [Ping timeout: 255 seconds]
dionysus69 has joined #ruby
tristanp has joined #ruby
tristanp has quit [Remote host closed the connection]
tristanp has joined #ruby
lightheaded has quit [Ping timeout: 255 seconds]
ltd has joined #ruby
ascio has joined #ruby
mikecmpbll has joined #ruby
<ascio> man webpacker looks awesome
tristanp has quit [Ping timeout: 240 seconds]
ascio has quit [Read error: Connection reset by peer]
claudevandort has joined #ruby
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
tristanp has joined #ruby
genpaku has quit [Ping timeout: 240 seconds]
yokel has quit [Ping timeout: 260 seconds]
zapata has quit [Ping timeout: 264 seconds]
yokel has joined #ruby
genpaku has joined #ruby
grh has joined #ruby
nowhereman has joined #ruby
lightheaded has joined #ruby
ltd has quit [Ping timeout: 252 seconds]
jgt1 has joined #ruby
joneshf-laptop has quit [Quit: Leaving]
jgnagy has quit [Remote host closed the connection]
jgnagy has joined #ruby
zapata has joined #ruby
ascio has joined #ruby
ltd has joined #ruby
jgt1 has quit [Ping timeout: 245 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
BSaboia has joined #ruby
ascio has left #ruby [#ruby]
raul782 has joined #ruby
b3l914n has joined #ruby
Ishido has joined #ruby
antgel has quit [Ping timeout: 255 seconds]
raul782 has quit [Ping timeout: 255 seconds]
naftilos76 has joined #ruby
nicolai86 has quit [Remote host closed the connection]
<hurricanehrndz> is rvm something people are now avoiding?
<hurricanehrndz> I see a lot of tutorials and people opting for rbenv/ruby-install + chruby
<havenwood> hurricanehrndz: plenty of people still use rvm. there are now simpler options like ruby-install for install and yeah chruby for switching.
Ishido has quit [Ping timeout: 255 seconds]
<hurricanehrndz> I have used rvm exclusively and have never had an issue
<havenwood> hurricanehrndz: RVM even has chruby support: https://rvm.io/workflow/chruby
vuoto has quit [Remote host closed the connection]
<matthewd> hurricanehrndz: My personal advice is if it works for you, great -- but I do advise newcomers to prefer rbenv or chruby
<elomatreb> RVM is great as long as it works but becomes very painful when it breaks
<matthewd> And more features = more opportunity for breakage
<hurricanehrndz> cool, i have tried ruby-install didn't have a good experience, I'm on suse and the script doesn't seem to support suse very well
<hurricanehrndz> rbenv seems okay the workflow is a little different and it has taken some time getting use to
nicolai86 has joined #ruby
hahuang61 has joined #ruby
<hurricanehrndz> the one thing I have been confused is about doing this with rbenv https://rvm.io/deployment/god
<allisio> hurricanehrndz: What sort of errors did you get with ruby-install on SUSE?
<hurricanehrndz> allisio: well it zypper package manager is not supported for building dependencies
<hurricanehrndz> is there an rbenv wrapper?
<hurricanehrndz> By the way guys, thanks for all the feedback
houhoulis has quit [Remote host closed the connection]
<matthewd> I recommend directly invoking versioned ruby executables in production, such that you never care what a bare 'ruby' would execute
<matthewd> (whether that's a system-package-provided '/usr/bin/ruby2.3', or a self-compiled one living somewhere more obscure)
<hurricanehrndz> matthewd: ah.. of course
<hurricanehrndz> matthewd: blonde moment
hutch34 has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 255 seconds]
nankyokusei has joined #ruby
nankyokusei has quit [Ping timeout: 255 seconds]
BSAlb has joined #ruby
cgfbee has quit [Quit: cgfbee]
<havenwood> hurricanehrndz: yeah, ruby-install does not support zypper, but it wouldn't be hard to add support
<havenwood> hurricanehrndz: it should work well if you install the deps
xall has quit [Ping timeout: 255 seconds]
xall has joined #ruby
<havenwood> this ^ PR adds zypper support, but it included additional bundler stuff that needs to get removed before it can be merged
BSaboia has quit [Ping timeout: 255 seconds]
BSab has joined #ruby
<hurricanehrndz> havenwood: cool
<hurricanehrndz> havenwood: thanks for the info, I will check it out
<havenwood> at least it's a cheat sheet to the deps you need ;-)
<hurricanehrndz> exactly
<hurricanehrndz> last time i tried didn't have much time to waste, which is the worst time for a program to leave a good impression
lightheaded has quit [Ping timeout: 245 seconds]
<havenwood> hurricanehrndz: i could put together a simplified version of that PR if you have any interest in testing it. seems nice to add zypper support. it's ruby-install's oldest open PR.
BSAlb has quit [Ping timeout: 255 seconds]
lightheaded has joined #ruby
<hurricanehrndz> havenwood: cool, I would appreciated it
houhoulis has joined #ruby
milardovich has joined #ruby
pwnd_nsfw` is now known as pwnd_nsfw
DARPA has joined #ruby
hndk has joined #ruby
rwb has joined #ruby
Qchmqs has quit [Ping timeout: 255 seconds]
jgt1 has joined #ruby
xall has quit [Ping timeout: 240 seconds]
cseder has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Limix has joined #ruby
grh has quit [Ping timeout: 260 seconds]
jgt1 has quit [Ping timeout: 240 seconds]
<havenwood> hurricanehrndz: working on it now
<hurricanehrndz> havenwood: awesome
<hurricanehrndz> havenwood: do you use ruby-install with chruby and gem_home
<hurricanehrndz> havenwood: exclusively??
<havenwood> hurricanehrndz: i don't use gem_home, but otherwise, yes
cseder has joined #ruby
joneshf-laptop has joined #ruby
<hurricanehrndz> havenwood: how do you manage gem sets?
<havenwood> hurricanehrndz: i don't use gem sets, i install gems globally unless i have a reason to do otherwise and use a Gemfile.lock to limit the gems i'm using for an app to just the exact versions needed
<havenwood> hurricanehrndz: RubyGems has built-in Gemfile/Gemfile.lock support or the Bundler gem is the more popular option.
<havenwood> hurricanehrndz: https://bundler.io/gemfile.html
lenwood has quit [Ping timeout: 252 seconds]
<hurricanehrndz> hurricanehrndz: thanks for the info, definitely give it a shot
wbnns has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
fmcgeough has quit [Quit: fmcgeough]
mzo has joined #ruby
<havenwood> that ^ should work with zypper now
<havenwood> hurricanehrndz: if you can test building ruby, jruby, rbx and mruby and all is well then i think this is ready to go!
<hurricanehrndz> havenwood:
<hurricanehrndz> havenwood: awesome, i'll install and test now
<havenwood> hurricanehrndz: thanks!
jgt1 has joined #ruby
rwb has quit [Remote host closed the connection]
jusa has joined #ruby
ebbflowgo has joined #ruby
rippa has joined #ruby
mzo has quit [Remote host closed the connection]
<hurricanehrndz> havenwood: seems like the wrong repository data is being loaded, it is still looking for build-essential
<hurricanehrndz> havenwood: the packages you have listed under zypper seem good to me
<havenwood> does your system also have apt?
<hurricanehrndz> yu
<hurricanehrndz> yup
<havenwood> will normal openSUSE systems have apt?
<havenwood> it's a problem if they will and zypper never gets selected
<hurricanehrndz> good question, i think if you install snappy
<hurricanehrndz> yes
<hurricanehrndz> zypper should come before apt-get, no other distro uses zypper
fergal has joined #ruby
SteenJobs has joined #ruby
<havenwood> hurricanehrndz: pushed a fix
<hurricanehrndz> havenwood: try again
<hurricanehrndz> havenwood: i will
lenwood has joined #ruby
fusta has joined #ruby
boz_ has quit [Quit: This computer has gone to sleep]
jusa has quit [Ping timeout: 240 seconds]
nowhereman has quit [Ping timeout: 255 seconds]
aglorei has quit [Remote host closed the connection]
pifon has joined #ruby
aglorei has joined #ruby
ddrmanxbxfr has joined #ruby
SuperLag_ has joined #ruby
boz_ has joined #ruby
nankyokusei has joined #ruby
SuperLag has quit [Ping timeout: 240 seconds]
<hurricanehrndz> havenwood: seems to be good
<hurricanehrndz> havenwood: thanks
<fergal> hi guys, if i have this data: https://gist.github.com/anonymous/288c5d006299ece7f28f7bf2e644c2cf how can i use ruby to arrange the users into lists of their groups like so: https://gist.github.com/anonymous/25dacb5e56d1bbec7b163a47a1ec290f i’m not familiar with ruby idioms to know which one is the correct way to rearrange the collection in a clean way
cdg has joined #ruby
<fergal> this is what i have so far, and it gives me what i want, but i’m not sure it’s as succinct as it could be: https://gist.github.com/anonymous/728b10db5fe31860b68bf75efe5a3952
nankyokusei has quit [Remote host closed the connection]
<j416> looks fairly readable to me.
jusa has joined #ruby
_sfiguser has joined #ruby
hutch34 has joined #ruby
nankyokusei has joined #ruby
nankyokusei has quit [Remote host closed the connection]
<havenwood> fergal: each_with_object(Hash.new { |k, v| k[v] = [] }) { |(name, h), groups| groups[h['group']] << name }
<fergal> havenwood: coooool, i’’ try that, thanks!
houhoulis has quit [Remote host closed the connection]
marr has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
nankyokusei has quit [Remote host closed the connection]
nankyokusei has joined #ruby
cerulean has joined #ruby
<cerulean> guys
<cerulean> write some more gems with offensive names
<cerulean> ;)
<havenwood> cerulean: bad idea! next.
<cerulean> why is it a bad idea
<apeiros> fergal: you can put all 3 files into a single gist btw.
<cerulean> gems with offensive names are hilarious
<apeiros> cerulean: kk, I'll push cerulean-is-an-idiot right now
<matthewd> cerulean: They're not, and you're not. Move on.
<cerulean> then why did people do it in the first place
<cerulean> i've never seen that in any other language
<Mon_Ouie> Because other languages don't call their libraries gems
<cerulean> ive never seen a library with an offensive name outside of ruby
nowhereman has joined #ruby
<cerulean> so do you guys like fluentd
<cerulean> on a different note
<havenwood> ?crosspost cerulean
<ruby[bot]> cerulean: Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
claudevandort has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mon_Ouie has quit [Read error: No route to host]
claudevandort has joined #ruby
Limix has quit [Quit: Limix]
raul782 has joined #ruby
tildes has joined #ruby
<cerulean> oic
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
raul782 has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 240 seconds]
tildes has quit [Ping timeout: 245 seconds]
Pumukel has joined #ruby
cerulean has quit [Remote host closed the connection]
hahuang61 has joined #ruby
nankyokusei has quit [Ping timeout: 245 seconds]
gnulinuxman has joined #ruby
<gnulinuxman> ~books
<gnulinuxman> !books
<matthewd> ?books
<ruby[bot]> You can find a list of recommended books at http://ruby-community.com/pages/links
<gnulinuxman> matthewd, thanks
acalycine has quit [Quit: bye]
hahuang61 has quit [Ping timeout: 252 seconds]
gnulinuxman has quit [Client Quit]
stupidsenpai has joined #ruby
Mrgoose has quit []
mephistophocles has joined #ruby
armyriad has quit [Quit: Leaving]
singalaut has quit [Quit: paeh]
cerulean has joined #ruby
<cerulean> does anyone remember a guy named James "dreamr" O'Kelly?
armyriad has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
cam27 has quit [Quit: cam27]
cam27 has joined #ruby
cam27 has quit [Client Quit]
stupidsenpai has quit [Quit: Mutter: www.mutterirc.com]
_sfiguser has quit [Ping timeout: 255 seconds]
fergal has quit [Ping timeout: 245 seconds]
linetrace has joined #ruby
stupidsenpai has joined #ruby
marr has joined #ruby
_sfiguser has joined #ruby
stupidsenpai has quit [Client Quit]
fergal has joined #ruby
fergal has quit [Client Quit]
harfangk has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
b3l914n has quit [Ping timeout: 252 seconds]
moei has quit [Quit: Leaving...]
jamesaxl has joined #ruby
jottr has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
jakkn has quit [Ping timeout: 252 seconds]
muelleme_ has joined #ruby
rgtk has joined #ruby
enterprisey has joined #ruby
muelleme_ has quit [Ping timeout: 252 seconds]
<cerulean> guess not
jokester has quit [Ping timeout: 246 seconds]
<cseder> cerulean what about him and how does this relate to #Ruby?
Ishido has joined #ruby
ddffg has joined #ruby
rakm has joined #ruby
User458764 has joined #ruby
minimalism has joined #ruby
balazs has quit [Ping timeout: 264 seconds]
PresidentBiscuit has joined #ruby
Verity has joined #ruby
jusa has quit [Ping timeout: 252 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
mephistophocles has quit [Remote host closed the connection]
mephistophocles has joined #ruby
blackwind_123 has joined #ruby
grh has joined #ruby
<cerulean> i just found out last night he's wanted by the FTC... ive hanged out with him twice in real life, he told me he was a fugitive in arizona but really it turns out to be oregon or something
<cerulean> threatened me in his house in denver, turns out he was wanted for assault
<cerulean> just wondering if anyone knew him, he thanked a LOT of people i recognized from the community on his github
milardovich has quit [Ping timeout: 245 seconds]
hndk has left #ruby ["Leaving"]
milardovich has joined #ruby
mephistophocles has quit [Ping timeout: 240 seconds]
<Verity> lol
jusa has joined #ruby
ltem has joined #ruby
lightheaded has quit [Read error: No route to host]
balazs has joined #ruby
lightheaded has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
cfec0b8d has joined #ruby
nowhereman has quit [Ping timeout: 240 seconds]
fusta has quit [Ping timeout: 252 seconds]
arup_r has joined #ruby
SteenJobs has joined #ruby
hutch34 has quit [Ping timeout: 252 seconds]
mim1k has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
arup_r has quit [Remote host closed the connection]
aredridel has quit [Ping timeout: 256 seconds]
aredridel has joined #ruby
muelleme_ has joined #ruby
Channel6 has joined #ruby
milardovich has quit [Remote host closed the connection]
muelleme_ has quit [Ping timeout: 245 seconds]
nankyokusei has joined #ruby
aredridel has quit [Ping timeout: 252 seconds]
mim1k has quit [Ping timeout: 255 seconds]
hahuang61 has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
nebiros has quit [Ping timeout: 246 seconds]
timvisher has quit [Ping timeout: 256 seconds]
hahuang61 has quit [Ping timeout: 252 seconds]
nowhere_man has joined #ruby
psychicist__ has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
boz_ has quit [Quit: This computer has gone to sleep]
boz_ has joined #ruby
mephistophocles has joined #ruby
nebiros has joined #ruby
nebiros is now known as Guest14813
milardovich has joined #ruby
SteenJobs has joined #ruby
Guest14813 has quit [Ping timeout: 255 seconds]
rgtk has quit [Ping timeout: 252 seconds]
BSab has quit [Read error: Connection reset by peer]
BSaboia has joined #ruby
BSaboia has quit [Max SendQ exceeded]
BSaboia has joined #ruby
nebiros_ has joined #ruby
aredridel has joined #ruby
MissionCritical has quit [Ping timeout: 240 seconds]
jusa has quit [Ping timeout: 240 seconds]
Lord_of_Life has quit [Excess Flood]
Lord_of_Life has joined #ruby
futilegames has joined #ruby
nebiros_ has quit [Ping timeout: 245 seconds]
mephistophocles has quit []
SteenJobs has quit [Quit: SteenJobs]
_tk421_ has joined #ruby
GodFather has joined #ruby
Mission-Critical has joined #ruby
BTRE has joined #ruby
Bob8989|2 has joined #ruby
Bob89893 has joined #ruby
iamayam has quit [Ping timeout: 260 seconds]
iamayam has joined #ruby
raul782 has joined #ruby
b3l914n has joined #ruby
Arpanet69 has joined #ruby
DARPA has quit [Read error: Connection reset by peer]
armando1 has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
raul782 has quit [Ping timeout: 240 seconds]
t-ask has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
armando has joined #ruby
milardovich has quit [Remote host closed the connection]
dionysus69 has joined #ruby
PresidentBiscuit has quit [Remote host closed the connection]
PresidentBiscuit has joined #ruby
rgtk has joined #ruby
PresidentBiscuit has quit [Ping timeout: 255 seconds]
milardovich has joined #ruby
ta_ has joined #ruby
cseder has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
futilegames has quit [Quit: futilegames]
psychicist__ has quit [Quit: Lost terminal]
milardovich has quit []
hndk has joined #ruby
GodFather has quit [Ping timeout: 252 seconds]
BSaboia has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 252 seconds]
Bob89893 has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
Bob8989|2 has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
cisco has joined #ruby
boz_ has quit [Quit: This computer has gone to sleep]
boz_ has joined #ruby
rgr has joined #ruby
Jackneill_ has quit [Remote host closed the connection]
nebiros has joined #ruby
nebiros is now known as Guest89413
rgr_ has quit [Ping timeout: 255 seconds]
electrostat has quit [Quit: uwotm8]
electrostat has joined #ruby
jaequery has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rakm has joined #ruby
rakm has quit [Client Quit]
rakm has joined #ruby
<t-ask> HI, I'm trying got install bundle to "~/.rbenv/shims/bundle" for some hours and I'm lost, why I can't get it installed right there. is this the right channel to ask for help?
rakm has quit [Client Quit]
rakm has joined #ruby
rakm has quit [Client Quit]
rakm has joined #ruby
rakm has quit [Client Quit]
rakm has joined #ruby
ltem has quit [Quit: Leaving]
rakm has quit [Client Quit]
mzo has joined #ruby
grh has quit [Ping timeout: 260 seconds]
eizua has quit [Quit: Leaving]
lenwood has quit [Ping timeout: 240 seconds]
toretore has quit [Ping timeout: 240 seconds]
enterprisey has quit [Remote host closed the connection]
<matthewd> t-ask: Sure. What are you running, and what's it doing?
<t-ask> I'm up to install https://github.com/tootsuite/mastodon/blob/master/docs/Running-Mastodon/Production-guide.md and searched for solution the last hours.
Lord_of_Life has quit [Excess Flood]
<t-ask> everything seems to be fine so far except that I get the bundle installed within that folder
Lord_of_Life has joined #ruby
<matthewd> Okay, that's the problem: that's not using an rbenv-managed 'gem' command
<t-ask> I'm on Arch btw. in '/etc/gem' I have "gem: --user-install"
cseder has joined #ruby
<t-ask> Can you guide me a bit? Should I install something else?
raul782 has joined #ruby
<t-ask> or is it PATH related
<matthewd> Yeah, it's path related
<matthewd> So check `which ruby` & `which gem`, for a start
<t-ask> both in /usr/bin/...
<matthewd> Sounds like rbenv just isn't active at all, then
GodFather has joined #ruby
<cerulean> anyone use fluentd-ui?
<cerulean> i don't seem to have any error log in fluentd-ui?
rgtk has quit [Ping timeout: 252 seconds]
griff has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
NightMonkey has quit [Ping timeout: 240 seconds]
raul782 has quit [Ping timeout: 255 seconds]
<t-ask> matthewd: should I install the rbenv coming with Arch or install it manually?
<matthewd> Either should be fine
br0d1n has joined #ruby
<matthewd> But you need to init it in your shell
NightMonkey has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 264 seconds]
boz_ has quit [Quit: This computer has gone to sleep]
nankyokusei has joined #ruby
rgtk has joined #ruby
PresidentBiscuit has joined #ruby
hahuang61 has joined #ruby
NightMonkey has quit [Ping timeout: 245 seconds]
Emmanuel_Chanel has joined #ruby
nankyokusei has quit [Ping timeout: 255 seconds]
PresidentBiscuit has quit [Ping timeout: 255 seconds]
NightMonkey has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 255 seconds]
Lord_of_Life has quit [Excess Flood]
Lord_of_Life has joined #ruby
ghornet has joined #ruby
br0d1n has quit [Remote host closed the connection]
br0d1n has joined #ruby
timvisher has joined #ruby
ta_ has joined #ruby
moei has joined #ruby
GodFather has quit [Ping timeout: 252 seconds]
ebbflowgo has quit [Ping timeout: 255 seconds]
Verity has left #ruby ["Leaving"]
skweek has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
ta_ has quit [Ping timeout: 255 seconds]
ebbflowgo has joined #ruby
Pierreb|home has joined #ruby
jusa has joined #ruby
<Pierreb|home> how can i execute a script from within ruby and pass along a variable? like system '/opt/ruby/scriptfile variable'
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raul782 has joined #ruby
herbmillerjr has joined #ruby
<jhass> sounds dangerous
<daed> that sounds ripe for injection attacks
<daed> i mean that's pretty much the foundation of injection attacks lol
jusa has quit [Ping timeout: 255 seconds]
<matthewd> Pierreb|home: system('/opt/ruby/scriptfile', variable)
<Pierreb|home> thanks matthewd ill try that
rakm has joined #ruby
Arpanet69 has quit [Ping timeout: 255 seconds]
skweek has joined #ruby
<t-ask> matthewd: is that supposed to be that way? https://bpaste.net/show/0dacda80a475
raul782 has quit [Remote host closed the connection]
<matthewd> Yes.. and that should be at the front of your PATH
raul782 has joined #ruby
HoierM has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
skweek has quit [Remote host closed the connection]
griff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skweek has joined #ruby
skweek has quit [Remote host closed the connection]
claudevandort has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ghornet has quit [Ping timeout: 240 seconds]
jtd has quit [Remote host closed the connection]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SteenJobs has joined #ruby
jtd has joined #ruby
charliesome has joined #ruby
tristanp has quit [Remote host closed the connection]
tristanp has joined #ruby
PresidentBiscuit has joined #ruby
rgtk has quit [Ping timeout: 252 seconds]
tristanp has quit [Ping timeout: 240 seconds]
nbro_ has joined #ruby
<nbro_> Does Ruby support OO better than Python?
<Nilium> How would you measure betterness?
PresidentBiscuit has quit [Ping timeout: 255 seconds]
<nbro_> for example, Python does not really support in the language abstract classes, but as libraries
<nbro_> it does not support interfaces
<nbro_> I mean
<nbro_> there are well-known features that have been proved more dangerous than useful, like multiple inheritance
<nbro_> instead of interfaces
<nbro_> this is what I mean by "better"
TomyLobo has quit [Ping timeout: 240 seconds]
<nbro_> if Ruby sucks as much as Python as a language
<nbro_> then there would really be no point in starting using it
<Nilium> So you mean is it more like Java?
<nbro_> Nilium: well, Java has a better OO system than Python, that’s for sure
<t-ask> matthewd: ok, I think now I messed it up
<Nilium> I'm not sure Java is what I think of when OOP comes up
<matthewd> nbro_: Probably best to use Java then
Toledo has joined #ruby
<nbro_> matthewd: I also use Java
<Nilium> Ruby is more in line with how I view OOP.
Toledo is now known as croberts
<daed> i switched to ruby from python, much prefer it
<nbro_> but I would like to give a try to Ruby
<daed> better looking language, better OOP in my opinion, syntax wise
<nbro_> I would like to know if there are any advantages compared to Python
<daed> perhaps not feature wise, but it definitely looks more pleasant
<nbro_> which I’ve been already using
Guest96 has quit [Remote host closed the connection]
<daed> nbro_: i wrote python for 4 years before switching to ruby and have not looked back
<Nilium> Is there a reason you'd switch now?
<daed> matter of taste in my case
<Nilium> And is it worth the cost of switching?
<daed> i found ruby to be far more intuitive so it was worth the switch for me
<daed> long term
<nbro_> Ruby and Python look more or less the same, honestly
<daed> nbro_: i disagree wholeheartedly
<nbro_> I would like to know if Ruby supports like private fields
<Nilium> I switched my office to Go, since in the long term, scripting languages don't make sense for us.
jtd has quit [Remote host closed the connection]
<daed> "5".methods.sort
<nbro_> real private things
<daed> try that in python
<Nilium> At least not for core systems.
jtd has joined #ruby
Guest96 has joined #ruby
<Nilium> So I think you need to evaluate this less in terms of OOP and more in terms of what your actual requirements are. That's going to be more involved than if it's like Java.
<daed> also evaluate the team, who is going to be maintaining it, long term plans, etc
<nbro_> Nilium: I was trying to find a scripting language similar to Python, but better
<nbro_> lol
<nbro_> even though Python is quite good
<daed> 'better' is subjective
<nbro_> for many things
<daed> i find ruby to be more pleasant to work with, so it's 'better' for me
<Nilium> Better depends on requirements, OOP isn't really a very useful requirement
<daed> some people seem to think python is just fine for their needs
jtd has quit [Remote host closed the connection]
<nbro_> actually guys
jtd has joined #ruby
<nbro_> I just don’t want to specify in more details what I’m saying because I’m tired and lazy
<nbro_> so I’m saying "better" just to get a fast answer
<nbro_> lol
<nbro_> ahah
<nbro_> :D
<Nilium> That's actually a really bad way of getting an answer
<daed> yeah, seriously
<daed> you're asking #ruby if ruby is better
<nbro_> anyway
<Nilium> At any rate, if you don't want to talk about it, you're on your own in researching your problem
<daed> that's going to be a biased answer
howdoi has quit [Quit: Connection closed for inactivity]
<daed> go ask #python if ruby is better, they will say no
<t-ask> its like asking which car is better
<Nilium> And if it were data science needs, I'd even agree with #python just because of history
<nbro_> I was really interested in a language similar to Python which supports OOP in a more similar way to Java than to C++
<daed> nbro_: those are statically typed compiled languages
<daed> ruby and python are interpreted
<daed> you're not really comparing the right things
<nbro_> I’m lazy and tired, I told you, of course I know those kind of questions are not productive
<daed> i still write java/scala
<daed> i still write python on occasion (for saltstack)
<nbro_> anyway
<daed> 'right tool for the job' applies in most cases
<Nilium> Well, I haven't found a case where I'd really want saltstack, but that's also because of history
<nbro_> I think I understood that learning Ruby would be useful only if I get a job where the required language is Ruby
* Nilium has a very unuseful grudge
<nbro_> in other words, it’s not worth learning it just for fun
<daed> Nilium: we've gone through puppet, chef, and ansible extensively
<daed> Nilium: and finally decided on switching, sadly
raul782 has quit []
<daed> despite being all ruby devs
<daed> Nilium: our issue was remote execution at scale
<Nilium> I'd have used either chef or ansible, but that's also just because of what I already know
<daed> saltstack solved that a lot better/faster
<daed> we have scaling issues with puppet
<nbro_> but it wouldn’t take much to learn at least its basics to understand better Ruby code on the web
<nbro_> so maybe I will give it a try anyway
<nbro_> lol
<daed> nbro_: i find the language enjoyable
b3l914n has quit [Ping timeout: 252 seconds]
<nbro_> ok guys
<nbro_> I’m going to sleep
<daed> actually, out of all languages, ruby is the most fun
<nbro_> lol
<daed> for me
<nbro_> bye :D
ta_ has joined #ruby
<Nilium> Probably Go or C++ for me in terms of fun
<Nilium> But that's because of network programming and game dev, so it's a weird hobby.
<daed> i did C++ professionally for a few years
<daed> i don't intend on going back, lol
<daed> much prefer go over C++
nbro_ has left #ruby [#ruby]
<Nilium> I wouldn't mind it. The only thing to ever make me consider quitting a job was PHP.
<daed> oh god, php
<daed> i did that for 8+ years
<daed> never again
<daed> what a complete disaster of a language
<t-ask> :P
<Nilium> I switched us from PHP to Go, so I at least got something improved. So, didn't quit.
<daed> admittedly, go and php's missions are different
<daed> i wouldn't want to write a full blown giant web app in golang exclusively
<Nilium> Yeah, we were using it in high volume processing stuff.. not the right tool for the job.
<t-ask> rust :)
<daed> we used rails at tribune (latimes.com etc)
<Nilium> Our UI is still in PHP, which I'm OK with. Ruby would probably make life easier there, but the cost of switching is too high.
<daed> i'd be checking out rust before i ever considered C++ again
<Nilium> t-ask: Too hard to hire for, too hard to implement a lot of tree-like structures, etc.
<Nilium> And, at the time, Rust wasn't stable.
<daed> last i looked at rust was 3 years ago
<daed> i'm sure it's come quite a ways
<Nilium> It's a good language, not the right language for us.
<daed> we have a guy who's really interested in it
<daed> unfortunately we are doing big data stuff
<Nilium> If memory safety were the concern, I'd use it. If getting things done were the concern, I wouldn't. I still think it's too early.
<daed> there's no rust ecosystem in big data
<daed> it's all JVM
<Nilium> Yeah. All of our analytics stuff is still Java for that reason.
<t-ask> sure. Just saying Rust looks like a lang I would prefer over C++
<Nilium> I would still use C++ just because I use it for game dev. Rust feels like a mountain of pain for that sort of stuff.
<t-ask> while not comparable
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
<daed> hadoop, kafka, spark, flink, HDFS, hbase, cassandra, beam, drill, flume, ORC, parquet, samza, sqoop, lucene, phoenix, pig, zookeeper, accumulo
<Nilium> It might get better with the next few versions as they address the brick wall learning curve.
<daed> the java ecosystem is insane
<daed> no escaping it for me
<Nilium> And it's great that they're aware of the learning curve.
<Nilium> Rust's community is pretty awesome in its willingness to actually address problems with itself and the language.
<daed> makes me wanna pick up a rust book
<daed> wait my employer pays for safari
<daed> maybe there's something on there
<daed> "Programming Rust" May 2017
<daed> looks like a good candidate
<t-ask> :)
<daed> who made this?
<t-ask> it actually just the link from their main page
<daed> so macros are templates kinda eh
ghornet has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 255 seconds]
ghornet has quit [Quit: leaving]
cseder has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hndk has quit [Quit: Leaving]
<t-ask> lol that ASM button:) https://play.rust-lang.org/
cseder has joined #ruby
|RicharD| has quit [Quit: Sto andando via]
ebbflowgo has quit [Quit: ebbflowgo]
_sfiguser has quit [Quit: Leaving]
__Yiota has joined #ruby
charliesome has joined #ruby
cam27 has joined #ruby
<baweaver> daed: then don't use Java
<baweaver> Scala, Kotlin
<baweaver> both of which have support for Spark and other big data platforms
<baweaver> Hadoop is a mess
esObe_ has quit [Remote host closed the connection]
<baweaver> HBase/HDFS can be replaced with Cassandra, and things such as KairosDB build on Cassandra to make a better time series store than OpenTSDB
<baweaver> Zookeeper and Kafka have some really wonky tooling that's essentially a book of shell scripts not properly strung together.
<baweaver> so yeah, that entire ecosystem is a mess. Apache is notorious for bad docs and confusing explinations
<baweaver> Wasn't Lucene overridden by Solr though?
<baweaver> too many danged tools to keep track of anymore
<baweaver> TL;DR: Scala murders Java for fluent big data tasks, hands down. You'll write substantially less code, and what you do write will be easier to compose and understand with a bit of investment in FP classes.
pwnd_nsfw` has joined #ruby
<baweaver> Kotlin is basically Scala without the kitchen sink and better Java interop. Jetbrains made it as their answer
* baweaver wanders off
pwnd_nsfw has quit [Ping timeout: 255 seconds]
nankyokusei has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
t-recx has quit [Quit: t-recx]
PresidentBiscuit has joined #ruby
hahuang61 has joined #ruby
t-recx has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claudevandort has joined #ruby
nankyokusei has quit [Ping timeout: 255 seconds]
xenops has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Axy has quit [Read error: Connection reset by peer]
Snickers has quit [Quit: Snickers]
PresidentBiscuit has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
jtd has quit [Remote host closed the connection]
jtd has joined #ruby
ta_ has joined #ruby
baweaver is now known as baweaver_away
ebbflowgo has joined #ruby
baweaver_away is now known as baweaver
t-ask has quit [Quit: leaving]