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
kapil___ has quit [Quit: Connection closed for inactivity]
<nehero> Ahhhh and there we have it folks :) Thanks for talking me through it @apeiros
<apeiros> yw
paulr has quit [Ping timeout: 250 seconds]
<RickHull> >> require 'yaml'; "\x01\x02\x03".to_yaml
<ruby[bot]> RickHull: # => "--- !binary |-\n AQID\n" (https://eval.in/899328)
<RickHull> base64?
cschneid_ has quit [Remote host closed the connection]
alveric2 has joined #ruby
cschneid_ has joined #ruby
<apeiros> looks like. quite possible that yaml spec allows other ways too.
<RickHull> yeah, I'm sure there is a hex-like way to do it
hutch34 has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
<apeiros> would certainly be nice
apparition has joined #ruby
cagomez has joined #ruby
alveric1 has quit [Ping timeout: 260 seconds]
uZiel has joined #ruby
cschneid_ has quit [Ping timeout: 240 seconds]
<nehero> Yeah I ended up encoding the strings to base64 and using yamls !!binary syntax
mjolnird has joined #ruby
hutch34 has joined #ruby
<RickHull> I'd rather look at hex than base64, but for a nonce it probably doesn't matter
<RickHull> so uh, what does that key unlock? ;)
xco has quit [Quit: xco]
hutch34 has quit [Ping timeout: 250 seconds]
jackjackdripper1 has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
jackjackdripper has quit [Ping timeout: 248 seconds]
jackjackdripper1 has quit [Client Quit]
nehero has quit [Ping timeout: 248 seconds]
nehero has joined #ruby
hutch34 has joined #ruby
nadir has joined #ruby
apparition has quit [Quit: Bye]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
goyox86 has quit [Quit: goyox86]
hutch34 has quit [Ping timeout: 240 seconds]
roshanavand has quit [Quit: Leaving]
paulr has joined #ruby
dviola has quit [Quit: WeeChat 1.9.1]
plexigras has quit [Ping timeout: 248 seconds]
noizex has joined #ruby
paradisaeidae has joined #ruby
paradisaeidae_ has joined #ruby
hutch34 has joined #ruby
b100s has joined #ruby
goyox86 has joined #ruby
paulr has quit [Ping timeout: 240 seconds]
<b100s> hi2all; i have structure like that: `h={:foo=>{:sid1=>[1, 1, 1], :sid2=>[2, 2, 2]}, :bar=>{:sid1=>[3, 3, 3], :sid2=>[4, 4, 4]}}` hash.hash.arr; i would like to get all array elements by key of first hash, e.g.: y=0; h['foo'].values.each { |x| y+=x }; y # => 9
<b100s> but my example is wrong
troys is now known as troys_
<b100s> this one is wotk: `y=0;h[:foo].values.each { |x| x.each {|xx| y+=xx} }; y` but i expext something more obvious and easy
cschneid_ has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has quit [Remote host closed the connection]
<baweaver> Depends on the version of Ruby
<baweaver> 2.4.x has Array#sum
<b100s> 2.3.3
<RickHull> tmp = {}; h.each { |k, v| tmp[k] = v.values.inject(&:+) }
<RickHull> something like that maybe
tamouse__ has joined #ruby
<RickHull> values.inject(0, &:+) ?
cagomez has joined #ruby
<baweaver> def get_value_sum(hash, key) hash[key].values.flatten.sum end
cagomez has quit [Remote host closed the connection]
<baweaver> or
cagomez has joined #ruby
<RickHull> that said, I'm planning on forever s/inject/reduce/ baweaver :)
<baweaver> def get_value_sum(hash, key) hash[key].values.flatten.reduce(0, :+) end
<baweaver> Reduce uses an odd variant of symbol passing because of 1.8.x
cschneid_ has quit [Ping timeout: 240 seconds]
<RickHull> RIP smalltalk heritage
<baweaver> I just use reduce because I've used JS and some other languages where reduce and foldLeft are the names
Devalo has joined #ruby
<baweaver> that, and the name makes more sense. foldLeft > reduce > inject
<baweaver> inject isn't very intention revealing when you get down to it.
<b100s> baweaver, RickHull, looks likes `h[:foo].values.flatten` is enough
<RickHull> yes, for any one key
<RickHull> you'll have to suck :foo out to generalize
hutch34 has joined #ruby
<baweaver> h.map { |k,v| [k, v.values.flatten] }.to_h
mim1k has joined #ruby
tamouse__ has quit [Ping timeout: 240 seconds]
Devalo has quit [Ping timeout: 240 seconds]
<RickHull> baweaver: while yours is cleaner in one respect, for not having a local var, the array/hash equivalence isn't super clean and would tend to generate a lot of garbage, I think
<b100s> RickHull, haven't get you
nehero has quit [Ping timeout: 268 seconds]
<b100s> `y=0; h[:foo].values.flatten.each {|x| y+=x }; y` everything work good;
hutch34 has quit [Ping timeout: 240 seconds]
<b100s> or are there any caveates?
mim1k has quit [Ping timeout: 240 seconds]
<RickHull> you can express a sum functionally with #sum or #reduce
<baweaver> h[:foo].values.flatten.reduce(0, :+)
<RickHull> and you can express your operation independent of the key :foo
<RickHull> but if you're happy, c'est magnifique!
<baweaver> >> [1,2,3].reduce(0, :+)
<ruby[bot]> baweaver: # => 6 (https://eval.in/899338)
<b100s> it will be great, but actually i need just get them - all elements of arrays of hashes
<b100s> actual action is not sum for me : )
<b100s> sorry
mikecmpbll has quit [Quit: inabit. zz.]
zenspider has quit [Ping timeout: 250 seconds]
cschneid_ has joined #ruby
<b100s> iteration by first level hash by keys is necessary as well
<b100s> so, looks like everything what i want is here
<b100s> thanks a lot
<b100s> flatten - is actually was what helped me
Freshnuts has joined #ruby
hutch34 has joined #ruby
cschneid_ has quit [Ping timeout: 240 seconds]
goyox86 has quit [Remote host closed the connection]
goyox86 has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
knight33 has quit [Ping timeout: 248 seconds]
eckhardt has joined #ruby
hutch34 has joined #ruby
Azure has joined #ruby
griffindy has joined #ruby
enterprisey has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
hutch34 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
ledestin has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
quobo has quit [Quit: Connection closed for inactivity]
hutch34 has joined #ruby
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
aroaminggeek has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 240 seconds]
kryptoz has joined #ruby
mjolnird has quit [Quit: Leaving]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
cdg_ has joined #ruby
cagomez has quit [Remote host closed the connection]
cdg_ has quit [Remote host closed the connection]
cagomez has joined #ruby
hutch34 has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
brendan- has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch34 has quit [Ping timeout: 240 seconds]
kinduff has quit [Remote host closed the connection]
cagomez has quit [Ping timeout: 260 seconds]
gizmore has quit [Ping timeout: 260 seconds]
lunarkitty7 has quit [Ping timeout: 258 seconds]
hutch34 has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 250 seconds]
paradisaeidae has quit [Quit: ChatZilla 0.9.93 [Firefox 56.0.2/20171024165158]]
paradisaeidae_ has quit [Quit: ChatZilla 0.9.93 [Firefox 56.0.2/20171024165158]]
kryptoz has quit [Ping timeout: 260 seconds]
konsolebox has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
kryptoz has joined #ruby
kryptoz has quit [Remote host closed the connection]
hutch34 has joined #ruby
dcunit3d has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 258 seconds]
goyox86 has quit [Quit: goyox86]
cdg has joined #ruby
hutch34 has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
John__ has quit [Read error: Connection reset by peer]
xco has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
drowze has joined #ruby
AlexRussia has joined #ruby
aroaminggeek has joined #ruby
hutch34 has joined #ruby
bmurt has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
alfiemax_ has quit [Remote host closed the connection]
aroaminggeek has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
alfiemax has joined #ruby
gnufied has quit [Quit: Leaving]
drowze has quit [Quit: WeeChat 1.4]
xco has quit [Quit: xco]
jenrzzz has quit [Ping timeout: 248 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 248 seconds]
marxarelli is now known as marxarelli|afk
hutch34 has joined #ruby
dcunit3d has quit [Quit: WeeChat 1.4]
kaspergr1bbe is now known as kaspergrubbe
millz has joined #ruby
troys_ is now known as troys
tamouse__ has joined #ruby
mjolnird has joined #ruby
cdg has joined #ruby
alfiemax has joined #ruby
mim1k has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tamouse__ has quit [Ping timeout: 260 seconds]
cdg has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 248 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 258 seconds]
cschneid_ has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
d^sh_ has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has quit [Ping timeout: 250 seconds]
hutch34 has joined #ruby
cdg has joined #ruby
jrafanie has joined #ruby
d^sh has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
kryptoz has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
orbyt_ has joined #ruby
duckpuppy has quit [Ping timeout: 248 seconds]
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
zacts has quit [Quit: WeeChat 1.4]
zacts has joined #ruby
tamouse__ has joined #ruby
hutch34 has joined #ruby
millz has quit [Quit: Ex-Chat]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 250 seconds]
alfiemax has joined #ruby
alfiemax has quit [Client Quit]
hutch34 has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
kitsunenokenja has joined #ruby
hutch34 has joined #ruby
cpallares has quit [Ping timeout: 240 seconds]
Silthias has quit [Read error: Network is unreachable]
cpallares has joined #ruby
Silthias has joined #ruby
enterprisey has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
alfiemax has joined #ruby
DTZUZU has quit [Quit: WeeChat 1.9]
char_var[buffer] has joined #ruby
ap4y1 has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knight33 has joined #ruby
ap4y has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
papanik has quit [Ping timeout: 240 seconds]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uZiel has joined #ruby
knight33 has joined #ruby
hutch34 has joined #ruby
mjolnird has quit [Quit: Leaving]
knight33 has quit [Ping timeout: 248 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pilne has quit [Quit: Quitting!]
hutch34 has quit [Ping timeout: 258 seconds]
haxx0r has joined #ruby
<haxx0r> can we implement something like Time.is_older?(3.months.ago) ? I really hate to see people write syntax like: if created_at < Time.now-3.month
cpallares has quit [Ping timeout: 268 seconds]
hutch34 has joined #ruby
alex`` has joined #ruby
tamouse__ has quit [Ping timeout: 268 seconds]
cpallares has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
guacamole has joined #ruby
naprimer3 has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 240 seconds]
<mozzarella> is that not some rails monkey patching?
<mozzarella> just add more monkey patching
ur5us has quit [Ping timeout: 240 seconds]
zanoni has quit [Ping timeout: 248 seconds]
naprimer has joined #ruby
Dimik has quit [Ping timeout: 248 seconds]
<haxx0r> yes it is, absolutely
kitsunenokenja has quit [Ping timeout: 240 seconds]
<haxx0r> but, * if date.older?(3.months) * sounds good to me
hutch34 has joined #ruby
<RickHull> it's pretty odd IMHO for 3.respond_to?(:months)
<RickHull> >> 3.respond_to?(:ducks)
<ruby[bot]> RickHull: # => false (https://eval.in/899366)
<baweaver> haxx0r: #RubyOnRails, though: where(created_at: 0..3.months.ago)
<baweaver> ranges work
<haxx0r> i know they do
millerti has quit [Ping timeout: 248 seconds]
cdg has quit [Remote host closed the connection]
<haxx0r> i gonna monkey patch this now. drives me nutz. 5 year old code, reads like shit
hutch34 has quit [Ping timeout: 240 seconds]
CrazyEddy has joined #ruby
hutch34 has joined #ruby
aroaminggeek has joined #ruby
troys is now known as troys_
ur5us has joined #ruby
apofis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 250 seconds]
troys_ is now known as troys
elphe has quit [Ping timeout: 264 seconds]
whippythellama has quit [Quit: WeeChat 1.4]
hutch34 has joined #ruby
NightMonkey has quit [Ping timeout: 248 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 240 seconds]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
NightMonkey has joined #ruby
govg has joined #ruby
Dimik has joined #ruby
hutch34 has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
hutch34 has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
kies has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 248 seconds]
guacamole has joined #ruby
gigetoo has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
aroaminggeek has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
eckhardt has joined #ruby
troys is now known as troys_
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 240 seconds]
duderonomy has joined #ruby
nehero has joined #ruby
nehero has quit [Client Quit]
alex`` has quit [Ping timeout: 250 seconds]
aroaminggeek has joined #ruby
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
iamarun has joined #ruby
Asher has quit [Ping timeout: 252 seconds]
rajno has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
Silthias has quit [Read error: Connection reset by peer]
hutch34 has joined #ruby
Silthias has joined #ruby
konsolebox has quit [Ping timeout: 248 seconds]
hutch34 has quit [Ping timeout: 258 seconds]
konsolebox has joined #ruby
troys_ is now known as troys
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
hutch34 has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
ur5us has quit [Remote host closed the connection]
hutch34 has joined #ruby
troys has quit [Quit: Bye]
rabajaj has joined #ruby
k3rn31 has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
mim1k has joined #ruby
Niak25 has joined #ruby
hutch34 has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
Niak25 has quit [Remote host closed the connection]
jameser has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
sleetdrop has joined #ruby
hutch34 has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
kies has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
hutch34 has joined #ruby
enterprisey has joined #ruby
JsilverT has joined #ruby
cdg has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
lagweezle is now known as lagweezle_away
cdg has quit [Ping timeout: 258 seconds]
hutch34 has joined #ruby
apofis has joined #ruby
AxelAlex has joined #ruby
AnoHito has quit [Quit: Leaving]
ap4y1 has quit [Ping timeout: 248 seconds]
AnoHito has joined #ruby
oleo has quit [Quit: Leaving]
hutch34 has quit [Ping timeout: 258 seconds]
hutch34 has joined #ruby
ltd has left #ruby [#ruby]
Puffball has joined #ruby
aurelien` is now known as aurelien
aurelien has quit [Changing host]
aurelien has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
AliasSpider has quit [Ping timeout: 248 seconds]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch34 has joined #ruby
biberu has joined #ruby
jenrzzz has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
Devalo has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
bhaak has joined #ruby
hutch34 has joined #ruby
Devalo has quit [Ping timeout: 248 seconds]
biberu has quit []
cschneid_ has joined #ruby
Asher has joined #ruby
ta_ has quit [Remote host closed the connection]
cdg has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 258 seconds]
cschneid_ has joined #ruby
hutch34 has joined #ruby
xall has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
hutch34 has quit [Ping timeout: 246 seconds]
gradio has joined #ruby
apeiros has quit [Remote host closed the connection]
iamarun has quit [Quit: Leaving]
apeiros has joined #ruby
iamarun has joined #ruby
LocaMocha has joined #ruby
hutch34 has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
Puffball has quit [Ping timeout: 268 seconds]
dionysus69 has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
hutch34 has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
plexigras has joined #ruby
Mon_Ouie has quit [Ping timeout: 248 seconds]
hutch34 has joined #ruby
nofxx has quit [Remote host closed the connection]
cdg has joined #ruby
elphe has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
conta has joined #ruby
Puffball has joined #ruby
alex`` has joined #ruby
Puffball has quit [Read error: Connection reset by peer]
cdg has quit [Ping timeout: 246 seconds]
guille-moe has joined #ruby
hutch34 has joined #ruby
reber has joined #ruby
uZiel has quit [Remote host closed the connection]
Tempesta has quit [Quit: See ya!]
uZiel has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
Tempesta has joined #ruby
AliasSpider has joined #ruby
Tempesta has quit [Client Quit]
Tempesta has joined #ruby
hutch34 has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
postmodern has quit [Quit: Leaving]
Asher has quit [Quit: Leaving.]
hutch34 has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
sagax has quit [Quit: Konversation terminated!]
ta_ has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mon_Ouie has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
cdg has joined #ruby
hutch34 has joined #ruby
andikr has joined #ruby
alex`` has quit [Ping timeout: 246 seconds]
cdg has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
ged has quit [Read error: Connection reset by peer]
ged has joined #ruby
aufi has joined #ruby
hutch34 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
guille-moe has quit [Ping timeout: 248 seconds]
guille-moe has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
rajno has quit [Quit: Leaving]
hutch34 has quit [Ping timeout: 250 seconds]
biberu has joined #ruby
David_H__ has joined #ruby
David_H_Smith has quit [Ping timeout: 264 seconds]
claudiuinberlin has joined #ruby
aroaminggeek has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch34 has joined #ruby
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
charliesome has joined #ruby
hutch34 has quit [Ping timeout: 252 seconds]
mark_66 has joined #ruby
Hexafox[I] has joined #ruby
apeiros has joined #ruby
dinfuehr has quit [Ping timeout: 248 seconds]
hutch34 has joined #ruby
dinfuehr has joined #ruby
quobo has joined #ruby
hutch34 has quit [Ping timeout: 252 seconds]
xall has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
tomphp has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
sammi` has joined #ruby
apofis has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch34 has joined #ruby
anisha has quit [Ping timeout: 258 seconds]
cdg has joined #ruby
blackmesa has joined #ruby
InfinityFye has joined #ruby
mikecmpbll has joined #ruby
Silthias has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
hutch34 has quit [Ping timeout: 252 seconds]
Silthias has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
c-c-zZ is now known as c-c
cschneid_ has quit [Ping timeout: 252 seconds]
elphe has quit [Ping timeout: 240 seconds]
mjolnird has joined #ruby
hutch34 has joined #ruby
anisha has joined #ruby
zautomata has quit [Ping timeout: 240 seconds]
xall has joined #ruby
elphe has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
zautomata has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
aupadhye has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
hutch34 has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 264 seconds]
guille-moe has joined #ruby
hutch34 has joined #ruby
guille-moe has quit [Ping timeout: 248 seconds]
<waveprop> just had the revelation that tmux is a play on / false rhyme with emacs
guille-moe has joined #ruby
Beams has joined #ruby
mim1k has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
hutch34 has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
cdg has joined #ruby
tamouse__2 has joined #ruby
hutch34 has joined #ruby
<Ober> Emux
drcode has joined #ruby
<Ober> making fun of the Emux project
blackmesa has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 258 seconds]
<waveprop> ha
<waveprop> running racket, i see #<text: here> in error output!
mim1k has quit [Ping timeout: 240 seconds]
<Ober> haha I let emux.org go and Godaddy is charing $69.99 for it
<waveprop> lol nice!
<Ober> bastards
hutch34 has quit [Ping timeout: 246 seconds]
<waveprop> you could have sold it yourself and had enough to buy a few pizzas
<Ober> a play on Tmux but emacs.
<Ober> as if it's worth anything
tamouse__2 has left #ruby [#ruby]
<waveprop> right
mim1k has joined #ruby
hutch34 has joined #ruby
TomyWork has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 250 seconds]
Freshnuts has quit [Quit: Leaving]
hutch34 has joined #ruby
aufi has quit [Read error: Connection reset by peer]
aufi has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
kapil___ has joined #ruby
ferr has joined #ruby
ferr has left #ruby [#ruby]
hutch34 has joined #ruby
cdg has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
cajone has quit [Ping timeout: 268 seconds]
roshanavand has joined #ruby
jottr has joined #ruby
cdg has quit [Ping timeout: 250 seconds]
hutch34 has joined #ruby
beauby has joined #ruby
rgr has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
guille-moe has joined #ruby
Puffball has joined #ruby
cajone has joined #ruby
ShalokShalom_ has joined #ruby
hutch34 has joined #ruby
alexday has joined #ruby
ShalokShalom has quit [Ping timeout: 240 seconds]
guille-moe has quit [Remote host closed the connection]
guille-moe has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
<alexday> I am having a problem. There is a chef cookbook, where there is an attributes/default.rb and then there is an attributes/development.rb . and then there is a templates folder with .erb file. So I just wanted to render that erb file using the values in the file in the attributes folder. but the problem is in (say) attributes/default.rb its written like force_attributes['foo']['bar']['baz'] = [ 'something' ] ;
<alexday> and when I require_relative "attributes/default.rb" then it says undefined local variable or method `force_override' for main:Object . how do I get across this
hutch34 has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
haxx0r has left #ruby [#ruby]
Lyubo1 has quit [Ping timeout: 255 seconds]
alfiemax has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
<adaedra> I think this is a question more suited to the chef channel
<adaedra> ?chef
<ruby[bot]> Please join #chef for help with your cookbooks.
<Bish> how would i quickly check if something is random data
<Bish> entropy or whatever
<adaedra> Check for unicorns
<Bish> adaedra: haven't read your nick in a while
<alexday> okies
<adaedra> ._.
beauby has quit [Quit: leaving]
<Bish> alexday: guess this owuld be a rails question? since it's about how to render templates?
<Bish> so you might wanna try rails?
<Bish> as in #rails
<adaedra> Bish: chef
kryptoz has quit [Remote host closed the connection]
<Bish> uhm, is chef a library otherwise im confused?
<adaedra> It's a devops toolkit
<Bish> holy crap what a stupid name
<Bish> gotta look that up
<Bish> u got to be kidding
<adaedra> ?chef Bish
<ruby[bot]> Bish: Please join #chef for help with your cookbooks.
<adaedra> :p
<Bish> well i don't have a coobbook
hutch34 has joined #ruby
cdg has joined #ruby
<Bish> haha someone should build a linux distro around that
<Bish> the fuck.
<surrounder> what's wrong with it?
<adaedra> people build linux installs with that
Lyubo1 has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
<Bish> surrounder: naming alone
<Bish> it's cool, never heard it tho
<Bish> is it fancy rake? would that describe it?
hutch34 has quit [Ping timeout: 240 seconds]
<Bish> adaedra: well, linux from scratch-like?
<surrounder> no
<adaedra> No, configuration of services
<surrounder> it's like configuration management
<surrounder> just like puppet and ansible and salt and .. and ..
<Bish> yeah i understand, but when saying " a linux distro" with it
cdg has quit [Ping timeout: 252 seconds]
zanoni has joined #ruby
<Bish> would mean kinda like gentoo's "portage"
<adaedra> You have a blank linux (or windows) just installed, you apply your chef things, and you have a fully setup servers
<surrounder> Bish: no
<surrounder> it's rather distro-agnostic if it's done well
<adaedra> It will install packages, put in files, start services, create users, ...
<Bish> surrounder: i get what it is used for.. i mean you COULD make a linux distro where these chef recipes => package manager
<surrounder> like we don't have enough distro's yet
<Bish> well, if they have a right to exist..
<Bish> i love gentoo, but i really dislike the complexity of portage
<elomatreb> Isn't that basically the concept of the AUR? Distributing build scripts for packages?
<Bish> pretty sure this can be done more easily
mim1k has joined #ruby
<Bish> elomatreb: yes, that's like the only option for gentoo users, too
<Bish> (that's a lie, but still).
<adaedra> we're getting completely off-topic here though, people
<Bish> so what
<alexday> no one is replying in chef channe;
<alexday> l
xall has quit [Ping timeout: 240 seconds]
<surrounder> adaedra: is there an offtopic channel?
<adaedra> so I invite you to continue in #ruby-offtopic :)
<surrounder> ah, nice
Silthias1 has joined #ruby
<adaedra> alexday: you may want to wait a bit, people are not always on IRC
Silthias has quit [Ping timeout: 252 seconds]
hutch34 has joined #ruby
anisha has joined #ruby
hutch34 has quit [Ping timeout: 252 seconds]
rgr has quit [Quit: rgr]
hutch34 has joined #ruby
bigkevmcd has joined #ruby
ldnunes has joined #ruby
jaruga has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
<alexday> https://gist.github.com/argentum47/f03fae9655d1f001af73e4b21eef40e6 how do I make this work. ruby file1.rb
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 250 seconds]
AliasSpider has quit [Read error: Connection reset by peer]
<apeiros> alexday: in default.rb, also use @force_attribute (you omitted the @), and ensure that you access existing keys.
<apeiros> e.g. @force_attribute['a'] ||= {}; @force_attribute['a']['b'] = 'abcd' (you can replace the ; with newlines in your code)
<alexday> thats the problem. I cannot change that file. :) . I will have to wait for the chef guys to ell me how do they do this. I cannot understand from the codebase, still looking though
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
hutch34 has joined #ruby
<apeiros> alexday: a local variable is local to the given file. you can't access it elsewhere
<apeiros> or is this a case of "bad example"? is it *really* force_attribute? or is it maybe ForceAttribute?
<apeiros> note that Foo, foo, @foo, @@foo and $foo are 5 different variables
* apeiros afk ~20min
<alexday> yeah I understand they are all different, I copy pasted the names from the file where the variables are defined after the first time I got the error :P
<alexday> I also tried with force_attribute , without the @
alfiemax has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 250 seconds]
hutch34 has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
iamarun has quit [Remote host closed the connection]
tlaxkit has joined #ruby
hutch34 has joined #ruby
sleetdrop has quit [Remote host closed the connection]
Rouge__ has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
<alexday> sorry
<alexday> ignore
<adaedra> Got your answer in #chef?
jottr has quit [Ping timeout: 268 seconds]
Lyubo1 has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
vtx has joined #ruby
hutch34 has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
hs366 has quit [Quit: Leaving]
gregf_ has joined #ruby
<vtx> hi guys. i am trying to mimick a request that i’m seeing in my browser. i’m using RestClient to do this. looking at the params sent in for the request i’m mimicking, some param names contain a . and a _, i.e. i have params called “_.id” and “_.name”. in ruby, i’m trying to create a hash with these same param names, e.g { :_.id => “1234”, :_.name => “myid” }, but ruby doesn’t like that my symbols have underscores and periods in them. is there
<vtx> way to define keys of hashes with periods or underscores?
hutch34 has quit [Ping timeout: 250 seconds]
stan has quit [Read error: Connection reset by peer]
<tbuehlmann> vtx: sure, either use strings as keys or strings as symbols {'_.id': '1234', '_.name': 'myid}
hs366 has joined #ruby
hogetaro has joined #ruby
Mon_Ouie has joined #ruby
k3rn31_ has joined #ruby
hutch34 has joined #ruby
<alexday> adaedra: nope
<alexday> everyone is offline it seems
jaruga has quit [Remote host closed the connection]
<adaedra> Waiting for their cookbooks to play
selim has quit [Ping timeout: 248 seconds]
k3rn31 has quit [Ping timeout: 248 seconds]
<alexday> :D yey
cgfbee has quit [Remote host closed the connection]
selim has joined #ruby
hutch34 has quit [Ping timeout: 252 seconds]
cgfbee has joined #ruby
hutch34 has joined #ruby
drowze has joined #ruby
airdisa has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
guille-moe has joined #ruby
hutch34 has joined #ruby
drowze has left #ruby ["WeeChat 1.4"]
drowze has joined #ruby
guille-moe has quit [Ping timeout: 260 seconds]
drowze has quit [Client Quit]
drowze has joined #ruby
cdg has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
nadir has quit [Quit: Connection closed for inactivity]
truenito has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
cdg has quit [Ping timeout: 252 seconds]
hutch34 has joined #ruby
jameser has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
gradio has quit [Ping timeout: 268 seconds]
kryptoz has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
hutch34 has joined #ruby
drowze has quit [Quit: WeeChat 1.4]
hutch34 has quit [Ping timeout: 240 seconds]
drowze has joined #ruby
<drowze> go linux
kryptoz has quit [Remote host closed the connection]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
hutch34 has quit [Ping timeout: 252 seconds]
aScottishBoat has joined #ruby
Beams has quit [Quit: .]
Rouge__ has quit [Ping timeout: 240 seconds]
conta has quit [Remote host closed the connection]
kyle has joined #ruby
conta has joined #ruby
kyle is now known as Guest63255
AliasSpider has joined #ruby
Guest63255 has quit [Client Quit]
conta has quit [Client Quit]
conta has joined #ruby
Beams has joined #ruby
hutch34 has joined #ruby
guille-moe has joined #ruby
xco has joined #ruby
rabajaj has quit [Quit: Leaving]
hutch34 has quit [Ping timeout: 252 seconds]
guille-moe has quit [Ping timeout: 248 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
uZiel has quit [Ping timeout: 248 seconds]
hutch34 has joined #ruby
shinnya has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
Lyubo1 has joined #ruby
jottr has joined #ruby
tvw has joined #ruby
gradio has joined #ruby
hutch34 has joined #ruby
kryptoz has joined #ruby
coffeejunk has left #ruby [#ruby]
Hexafox[I] has quit [Ping timeout: 246 seconds]
Beams has quit [Quit: .]
howdoi has quit [Quit: Connection closed for inactivity]
hutch34 has quit [Ping timeout: 252 seconds]
airdisa has quit [Remote host closed the connection]
airdisa has joined #ruby
bmurt has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
airdisa has quit [Remote host closed the connection]
airdisa has joined #ruby
hutch34 has joined #ruby
drowze has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 264 seconds]
alfiemax has joined #ruby
xco has quit [Ping timeout: 248 seconds]
rgr has joined #ruby
alfiemax_ has joined #ruby
ta__ has joined #ruby
alfiemax has quit [Ping timeout: 268 seconds]
Rouge has joined #ruby
ta_ has quit [Ping timeout: 248 seconds]
marr has joined #ruby
Beams has joined #ruby
Technodrome has joined #ruby
banisterfiend has joined #ruby
kryptoz has quit [Remote host closed the connection]
cschneid_ has joined #ruby
Beams has quit [Quit: .]
kryptoz has joined #ruby
elphe has quit [Ping timeout: 252 seconds]
AliasSpider has quit [Ping timeout: 246 seconds]
nicesignal has quit [Remote host closed the connection]
mson has joined #ruby
nicesignal has joined #ruby
cschneid_ has quit [Ping timeout: 258 seconds]
guille-moe has joined #ruby
cdg has joined #ruby
polishdub has joined #ruby
dinoangelov has joined #ruby
cdg_ has joined #ruby
elphe has joined #ruby
cdg has quit [Remote host closed the connection]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nhhc has joined #ruby
howdoi has joined #ruby
xall has joined #ruby
drowze has joined #ruby
evie_hammond has joined #ruby
<mikecmpbll> does anybody know of anything to report on the licences of dependencies in a Gemfile.lock?
drowze has quit [Ping timeout: 240 seconds]
AxelAlex has quit [Ping timeout: 240 seconds]
yahmds has joined #ruby
Beams has joined #ruby
yahmds has quit [Quit: yahmds]
<lupine> mikecmpbll: license_finder
<lupine> we use it extensively
Jason has quit [Ping timeout: 264 seconds]
kryptoz has quit [Remote host closed the connection]
hutch34 has joined #ruby
Jason has joined #ruby
Jason is now known as Guest88741
cschneid_ has joined #ruby
kryptoz has joined #ruby
Beams has quit [Quit: .]
dkotlica has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 248 seconds]
Beams has joined #ruby
dkotlica has left #ruby [#ruby]
dkotlica has joined #ruby
cschneid_ has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Quit: WeeChat 1.9.1]
nhhc has quit [Ping timeout: 268 seconds]
airdisa_ has joined #ruby
hutch34 has joined #ruby
mim1k has quit [Disconnected by services]
mim1k_ has joined #ruby
cabotto has joined #ruby
kryptoz has quit [Remote host closed the connection]
xall has quit [Ping timeout: 268 seconds]
dkotlica has quit [Quit: Leaving]
minimalism has quit [Quit: minimalism]
<mikecmpbll> lupine : <33
kryptoz has joined #ruby
airdisa has quit [Ping timeout: 258 seconds]
oleo has joined #ruby
yahmds has joined #ruby
nhhc has joined #ruby
<darix> now we just need to get everyone to use spdx format for their gem license tags
dionysus69 has quit [Ping timeout: 240 seconds]
griffindy has joined #ruby
Beams has quit [Quit: .]
shinnya has quit [Ping timeout: 268 seconds]
griffindy has quit [Client Quit]
AxelAlex has joined #ruby
gnufied has joined #ruby
duckpuppy has joined #ruby
DLSteve has joined #ruby
<mikecmpbll> hmm. that's frustrating. won't run with rubyzip 1.7.7 installed even tho i have the required version also
Beams has joined #ruby
ta__ has quit [Remote host closed the connection]
ta_ has joined #ruby
drowze has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
kryptoz has quit [Remote host closed the connection]
kryptoz has joined #ruby
synthroid has joined #ruby
nhhc has quit [Quit: Leaving]
hutch34 has quit [Ping timeout: 246 seconds]
yahmds has quit [Quit: yahmds]
hutch34 has joined #ruby
iamarun has joined #ruby
banisterfiend has joined #ruby
PaulCape_ has quit [Quit: .]
banisterfiend has quit [Client Quit]
banisterfiend has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
reallycooldude has joined #ruby
hutch34 has joined #ruby
Rapture has joined #ruby
mim1k_ has quit [Ping timeout: 240 seconds]
John__ has joined #ruby
reallycooldude has quit [Ping timeout: 260 seconds]
reallycooldude has joined #ruby
gradio has quit [Ping timeout: 252 seconds]
jackjackdripper has joined #ruby
airdisa_ has quit [Remote host closed the connection]
rippa has joined #ruby
netherwolfe has joined #ruby
netherwolfe has quit [Client Quit]
synthroi_ has joined #ruby
blackmesa has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
drowze has quit [Quit: WeeChat 1.9.1]
drowze has joined #ruby
synthroid has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
SuperLag has quit [Ping timeout: 260 seconds]
blackmesa1 has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
PaulCapestany has joined #ruby
SuperLag has joined #ruby
mim1k has joined #ruby
truenito has quit [Ping timeout: 258 seconds]
hutch34 has joined #ruby
drowze has quit [Quit: WeeChat 1.9.1]
cabotto has quit []
AliasSpider has joined #ruby
enterprisey has quit [Ping timeout: 268 seconds]
rgr has quit [Quit: rgr]
jackjackdripper has quit [Quit: Leaving.]
drowze has joined #ruby
blackmesa1 has quit [Ping timeout: 246 seconds]
drowze has quit [Client Quit]
gizmore has joined #ruby
drowze has joined #ruby
guille-moe has quit [Ping timeout: 248 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tacoboy has joined #ruby
ta_ has joined #ruby
<aScottishBoat> any sysadmins who use Ruby?
<aScottishBoat> how is it?
banisterfiend has joined #ruby
<aScottishBoat> I wish there was a modern book on Ruby sysadmin
nadir has joined #ruby
blackmesa1 has joined #ruby
gregf_ has quit [Ping timeout: 260 seconds]
banisterfiend has quit [Client Quit]
whippythellama has joined #ruby
banisterfiend has joined #ruby
<c-c> aScottishBoat: since homebrew is ruby, thousands of sysadmins use ruby
chouhoulis has joined #ruby
<aScottishBoat> c-c: really? I didn't know that (thousands of sysadmins using ruby)
<aScottishBoat> still wish there was a modern book on leanpub for 2k17 sysadmin work with Ruby
apeiros has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
blackmesa1 has quit [Ping timeout: 240 seconds]
blackmesa1 has joined #ruby
Technodrome has quit [Ping timeout: 260 seconds]
hutch34 has quit [Quit: WeeChat 1.5]
hutch34 has joined #ruby
jrafanie has joined #ruby
ethicalhacker has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
iamarun has quit [Remote host closed the connection]
AxelAlex has quit [Remote host closed the connection]
AxelAlex has joined #ruby
faces has quit [Ping timeout: 258 seconds]
truenito has joined #ruby
guille-moe has joined #ruby
vipaca has joined #ruby
troys has joined #ruby
<mnemon> aScottishBoat: there's also puppet and chef with varying amounts of ruby you can write :P
<aScottishBoat> yeah but we use ansible at work hah
faces has joined #ruby
selim has quit [Ping timeout: 240 seconds]
<mnemon> anyways, for the "how is it?", kinda depends what you want to do :)
truenito has quit [Ping timeout: 268 seconds]
ethicalhacker has left #ruby [#ruby]
AxelAlex has quit [Ping timeout: 248 seconds]
roshanavand has quit [Quit: Leaving]
selim has joined #ruby
DTZUZU has joined #ruby
drowze has quit [Quit: WeeChat 1.9.1]
drowze has joined #ruby
orbyt_ has joined #ruby
urk187 has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
drowze has quit [Client Quit]
dviola has joined #ruby
drowze has joined #ruby
mtkd has joined #ruby
kryptoz has quit [Remote host closed the connection]
ozcanesen has joined #ruby
aufi has quit [Quit: Leaving]
Psybur has joined #ruby
whippythellama has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
<darix> aScottishBoat: any "shell script" that does more data handling than a simple for loop is going to be ruby for me. so it is working really nicely
jackjackdripper has joined #ruby
banisterfiend has quit [Changing host]
banisterfiend has joined #ruby
conta has quit [Ping timeout: 246 seconds]
drowze has quit [Quit: WeeChat 1.9.1]
alfiemax_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has joined #ruby
drowze has joined #ruby
mark_66 has quit [Remote host closed the connection]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 258 seconds]
apeiros has joined #ruby
yqt has joined #ruby
banisterfiend has joined #ruby
thinkpad has quit [Ping timeout: 248 seconds]
banisterfiend has quit [Client Quit]
apeiros has quit [Ping timeout: 240 seconds]
<aScottishBoat> darix, awesome. Good to hear
truenito has joined #ruby
InfinityFye has quit [Quit: Leaving]
banisterfiend has joined #ruby
Devalo has joined #ruby
andikr has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
TomyWork has quit [Remote host closed the connection]
truenito has quit [Ping timeout: 248 seconds]
an_ has joined #ruby
whippythellama has joined #ruby
Devalo has quit [Ping timeout: 248 seconds]
an_ has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
hutch34 has quit [Ping timeout: 252 seconds]
apeiros has joined #ruby
an_ has joined #ruby
an_ has quit [Remote host closed the connection]
banisterfiend has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
alexday has left #ruby ["WeeChat 1.8"]
hutch34 has joined #ruby
dinfuehr has quit [Ping timeout: 250 seconds]
dinfuehr has joined #ruby
enterprisey has joined #ruby
airdisa has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
moei has quit [Quit: Leaving...]
guacamole has joined #ruby
yahmds has joined #ruby
aroaminggeek has joined #ruby
troys is now known as troys_
[Butch] has joined #ruby
tomphp has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
Psybur has quit [Ping timeout: 258 seconds]
<KrzaQ> I'd like to dump the whole command used to run my script (it's `ruby path/file.rb args args args`). ARGV only contains args, what should I use?
enterprisey has quit [Remote host closed the connection]
ttrx has joined #ruby
<aScottishBoat> KrzaQ, $0 is the variable that contains the script name
<KrzaQ> ok, great
<KrzaQ> Thanks!
<aScottishBoat> :)
<KrzaQ> ['ruby', $0, ARGV].flatten.join(' ') <-- does that sound legit?
<aScottishBoat> var = $0 + ARGV.each { |arg| print "#{arg} " } + "\n"
<aScottishBoat> that may be the dumbest thing I've written in a while. Ugh it's been a while since I've used Ruby
blackmesa1 has quit [Ping timeout: 246 seconds]
<aScottishBoat> KrzaQ, hmmm that looks kinda right to me.
blackmesa1 has joined #ruby
<KrzaQ> Great, thanks for the help!
<aScottishBoat> np KrzaQ! Thanks for giving me smth to think about related to Ruby lol
exhiled has joined #ruby
Beams has quit [Quit: .]
<aScottishBoat> Looking to get back into Ruby dev :) I'm doing devOps stuff now, so I'm pushing to use Ruby over Python
papanik has joined #ruby
troys_ is now known as troys
<apeiros> KrzaQ: it's not necessarily ruby
<apeiros> could also be ruby21, jruby, mruby, whatever else
<KrzaQ> I'm willing to take that bet for my case, but if you have a better solution, please share :)
<ttrx> What's the crack with Ruby over Python
<ttrx> I like Python
<ttrx> But I would like to know more about Ruby
<apeiros> also might not have been run through ruby but directly instead (`$ ./some_executable.rb`)
<ttrx> the syntax is a bit wack
<apeiros> ttrx: mostly a matter of personal preference
<apeiros> and re syntax being wack goes around just the same for python :-p
raynold has joined #ruby
Rouge has quit [Ping timeout: 248 seconds]
<apeiros> though there are some areas where library support is stronger for one or the other side (sci stuff for python, web stuff for ruby).
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
<ttrx> Ah figures, there seem to be a lot more available command line Ruby tools too
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yahmds has quit [Ping timeout: 248 seconds]
mim1k has quit [Ping timeout: 248 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
airdisa has quit [Ping timeout: 246 seconds]
ozcanesen has quit [Quit: ozcanesen]
aupadhye has quit [Ping timeout: 240 seconds]
nathani has joined #ruby
PaulCapestany has quit [Read error: Connection reset by peer]
<nathani> What do I need to do to get this working ? https://gist.github.com/anonymous/269092895dac95037a826800e0c10525
blackmesa1 has quit [Ping timeout: 255 seconds]
<apeiros> nathani: system is a method, so it takes normal arguments. and `dig -x …` is not what you want to pass it.
alfiemax has quit [Remote host closed the connection]
PaulCapestany has joined #ruby
ShalokShalom_ has quit [Ping timeout: 240 seconds]
blackmesa1 has joined #ruby
<RickHull> i.e. string arguments -- often the entire command as a single string, but better with multiple string args -- e.g. https://github.com/rickhull/mruby-tools/blob/master/util.rb#L73
kies has quit [Ping timeout: 248 seconds]
jamesaxl has joined #ruby
marxarelli|afk is now known as marxarelli
guille-moe has quit [Ping timeout: 260 seconds]
yahmds has joined #ruby
zautomata has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
dinfuehr has quit [Ping timeout: 264 seconds]
dinfuehr has joined #ruby
vee__ has quit [Ping timeout: 248 seconds]
aroaminggeek has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
p0p0pr37_ has joined #ruby
p0p0pr37_ has joined #ruby
p0p0pr37_ has quit [Changing host]
jottr has quit [Ping timeout: 260 seconds]
jackjackdripper has quit [Quit: Leaving.]
ta_ has joined #ruby
jackjackdripper has joined #ruby
orbyt_ has joined #ruby
michael3 has joined #ruby
p0p0pr37 has quit [Ping timeout: 240 seconds]
jackjackdripper has quit [Read error: Connection reset by peer]
p0p0pr37_ is now known as p0p0pr37
jackjackdripper has joined #ruby
vipaca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
safetypin has joined #ruby
<nathani> that did it
<nathani> thank you apeiros and RickHull
<dminuoso> RickHull, damn you.
<dminuoso> You made me dive back into CT.
ta_ has quit [Remote host closed the connection]
<RickHull> crystal? connecticut?
<dminuoso> category theory.
<RickHull> ha
the_f0ster has joined #ruby
<the_f0ster> trying to load a gem with bundler in my rails project.. but getting "Gem Load Error is: File is already defined" (zipruby), any idea how I can get around/fix this ?
<RickHull> dminuoso: what answers are you searching for?
z3uS has quit [Remote host closed the connection]
<dminuoso> RickHull, Im on the brink of fully cracking the 'All told, a monad is just a monoid in the monoidal category of endofunctors' nut to complete intuition. Ive already grasped it, and just need to work through the commutative diagrams.
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xdb6f has joined #ruby
xdb6f has left #ruby ["Leaving"]
vee__ has joined #ruby
lagweezle_away is now known as lagweezle
<RickHull> the_f0ster: what happens with just: `gem install zipruby` ?
claudiuinberlin has joined #ruby
<RickHull> i'm able to install zipruby-0.3.6 without issue
z3uS has joined #ruby
<RickHull> the_f0ster: if you concur, next step, try a Gemfile with just the one gem
<RickHull> then add half your Gemfile entries and try that
aroaminggeek has joined #ruby
<RickHull> try to narrow down what the combination of factors is that results in the bad behavior
<apeiros> RickHull: sounded to me more like requiring is the problem, not installing
<dminuoso> RickHull, category theory is utterly great.
<RickHull> dminuoso: I swear, CT is some alice in wonderland type adventure
<havenwood> the_f0ster: The gem hasn't been updated in seven years, so the three-year-old PR fixing this issue hasn't been merged: https://github.com/rubyzip/rubyzip/pull/145
ski4x7 has joined #ruby
<dminuoso> RickHull, like, Ive seen the cleanest definition of a ring ever.
<the_f0ster> RickHull havenwood ty.. I am actualy trying to use rubyXL to r/w xlsx files which uses it as a dep
<RickHull> the_f0ster: good point by apeiros above
ski4x7 has quit [Client Quit]
<havenwood> the_f0ster: I'd suggest ditching rubyzip in favor of a maintained gem that plays nice with others.
<dminuoso> RickHull, think about this: A ring is just a monoid in the category of commutative (albelian) groups.
<dminuoso> Or rather the *monodial category of commuative groups.,
<RickHull> i last studied rings and groups etc (CT-lite?) in high school
JsilverT has quit [Ping timeout: 268 seconds]
<the_f0ster> apeiros: yes it is a runtime requiring issue, requiring rubyXL in a non rails project works fine
<dminuoso> If that doesn't get you off, I dont know what will.
<dminuoso> RickHull, and no, they are not CT-lite.
<dminuoso> Though they can be studied in CT.
<RickHull> the_f0ster: alternatively, you can git clone the PR that fixes it, and `gem build`
<havenwood> the_f0ster: You could modify RubyXL's deps to point to the patched version of rubyzip. It's a shame the gem you'd like to use is built on top of a deprecated lib.
<the_f0ster> havenwood: its the only lib i can find that will both read and write xlsx
alex`` has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
<havenwood> the_f0ster: Do roo and spreatsheet gems not do that? I can't recall.
ski7777 has quit [Ping timeout: 248 seconds]
<havenwood> the_f0ster: https://github.com/roo-rb/roo
<the_f0ster> not sure about spreadsheet but from what I read last night, no roo does not do both
<dminuoso> havenwood, what equivalent would you like to see for a maximally empty unit in ruby?
<dminuoso> nil? []?
<dminuoso> {}?
<havenwood> the_f0ster: Check spreadsheet. I think it might.
hahuang65 has joined #ruby
<the_f0ster> thanks
<dminuoso> I mean they are all isomorphic, but I have to pick one.
alfiemax_ has joined #ruby
<dminuoso> nil actually sucks, as its semantically inhabited by all types.
<havenwood> nil does have #to_a and #to_h, mm
<dminuoso> wait. what?
Technodrome has joined #ruby
<dminuoso> >> nil.to_a
<dminuoso> >> nil.to_h
<ruby[bot]> dminuoso: # => [] (https://eval.in/900066)
<ruby[bot]> dminuoso: # => {} (https://eval.in/900067)
<dminuoso> o_o
<dminuoso> Crazy. TIL.
<dminuoso> {}.to_a
<dminuoso> >> {}.to_a
<ruby[bot]> dminuoso: # => [] (https://eval.in/900068)
<RickHull> rings and groups are set theory?
alfiemax has quit [Ping timeout: 248 seconds]
<dminuoso> RickHull, no. algebra in the most raw form.
<havenwood> dminuoso: The last to be added was: [].to_h
<RickHull> abstract algebra
<havenwood> >> [].to_h
<ruby[bot]> havenwood: # => {} (https://eval.in/900069)
<havenwood> You used to have to: Hash([])
kryptoz has joined #ruby
hahuang65 has quit [Client Quit]
<dminuoso> havenwood, or the equivalent Hash[[]]
jrafanie has joined #ruby
<havenwood> >> Hash[[],]
<ruby[bot]> havenwood: # => {} (https://eval.in/900072)
<havenwood> >> Hash[[],()]
<the_f0ster> yeah neither of these can write out xlsx havenwood , I just need to find out how I can include this lib in the rails project, lib works fine stand alone
<ruby[bot]> havenwood: # => {[]=>nil} (https://eval.in/900073)
<dminuoso> havenwood, have you checked out jsfuck yet?
vtx has quit [Quit: vtx]
<dminuoso> ()+[]! are all the characters you need to write *any* JavaScript program.
<havenwood> dminuoso: ha
<dminuoso> Any valid JS program in fact.
<RickHull> i could write an invalid JS program with those
kryptoz has quit [Ping timeout: 255 seconds]
<dminuoso> havenwood, I guess "thanks for weak typing and all the fish" to make that possible.
Gadgetoid has quit [Ping timeout: 248 seconds]
GodFather has joined #ruby
GodFather has quit [Read error: No route to host]
GodFather has joined #ruby
AxelAlex has joined #ruby
GodFather has quit [Client Quit]
GodFather has joined #ruby
gradio has joined #ruby
tomphp has joined #ruby
GodFather has quit [Client Quit]
GodFather has joined #ruby
GodFather has quit [Remote host closed the connection]
kies has joined #ruby
GodFather has joined #ruby
GodFather has quit [Client Quit]
Rr4sT has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
GodFather has joined #ruby
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
exhiled has joined #ruby
exhiled has quit [Client Quit]
Devalo has joined #ruby
Scorpion has joined #ruby
AxelAlex has quit [Quit: AxelAlex]
tacoboy has quit [Quit: Konversation terminated!]
eckhardt has joined #ruby
Devalo has quit [Ping timeout: 255 seconds]
Dimik has joined #ruby
dionysus69 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
enterprisey has joined #ruby
kinduff has joined #ruby
dviola has quit [Quit: WeeChat 1.9.1]
plexigras has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
kinduff_ has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
plexigras has joined #ruby
alfiemax_ has quit [Ping timeout: 255 seconds]
claudiuinberlin has joined #ruby
FrostCandy has joined #ruby
guille-moe has joined #ruby
muelleme has joined #ruby
exhiled has joined #ruby
blackmesa1 has quit [Ping timeout: 250 seconds]
mtkd has quit [Ping timeout: 248 seconds]
ledestin has joined #ruby
guille-moe has quit [Ping timeout: 260 seconds]
mtkd has joined #ruby
safetypin has quit [Read error: Connection reset by peer]
aroaminggeek has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
goyox86 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
blackmesa1 has joined #ruby
tlaxkit has quit [Remote host closed the connection]
tlaxkit has joined #ruby
tlaxkit has quit [Remote host closed the connection]
kinduff_ has quit [Quit: gg]
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
goyox86 has quit [Ping timeout: 248 seconds]
goyox86 has joined #ruby
michael3 has quit [Ping timeout: 240 seconds]
exhiled has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
ta_ has joined #ruby
muelleme has quit [Ping timeout: 260 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
michael3 has joined #ruby
synthroi_ has quit [Remote host closed the connection]
ta__ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
LocaMocha has quit [Ping timeout: 248 seconds]
tvw has quit [Remote host closed the connection]
RickHull_ has joined #ruby
michael3 has quit [Ping timeout: 255 seconds]
RickHull has quit [Ping timeout: 260 seconds]
SeepingN has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
cdg_ has quit [Remote host closed the connection]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroid has joined #ruby
cdg has joined #ruby
claudiuinberlin has joined #ruby
<havenwood> Anyone heading to RubyConf?
<havenwood> Talks should be live-streaming tomorrow.
enterprisey has quit [Ping timeout: 248 seconds]
Technodrome has joined #ruby
mikecmpbll has joined #ruby
zombie__ has joined #ruby
RickHull_ is now known as RickHull
cdg has quit [Ping timeout: 252 seconds]
ttrx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tacoboy has joined #ruby
Asher has joined #ruby
<aScottishBoat> awesome havenwood
<aScottishBoat> but no
gradio has quit [Ping timeout: 255 seconds]
zapata has joined #ruby
<RickHull> looks like fun, wish I was going
<aScottishBoat> Went to New Orleans last year for just an overnight thing. Was fun, though I only had a single beer.
<aScottishBoat> The food is fantastic
enterprisey has joined #ruby
muelleme has joined #ruby
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 240 seconds]
exhiled has joined #ruby
<RickHull> Tulane grad here :) It's an awesome place with tons of character(s)
<havenwood> aScottishBoat: I went to the last RubyConf in New Orleans in 2010, and even the hotel food was to-die-for!
ur5us has joined #ruby
blackmesa1 has quit [Ping timeout: 250 seconds]
<RickHull> there are a lot of tourist traps around the French Quarter - a little research goes a long way
<RickHull> I suppose Yelp takes care of that for the most part
xco has joined #ruby
<RickHull> having a local friend/guide can be invaluable
alex``` has joined #ruby
alex`` has quit [Read error: No route to host]
<aScottishBoat> havenwood, mmm.
<aScottishBoat> I'll have to go back. RickHull what do you mean?
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
<RickHull> there is a lot of depth to New Orleans, a lot of the best parts aren't obvious, with no street barker or blinking neon sign
pilne has joined #ruby
<RickHull> a lot of it is mostly inaccessible to a first time tourist regardless
orbyt_ has joined #ruby
aroaminggeek has joined #ruby
zombie__ has quit [Quit: Textual IRC Client: www.textualapp.com]
<RickHull> sorry if I'm being mysterious :) it's been a while since I've really known the place. but nearly every neighborhood has something exemplary and unique
<RickHull> and there a lots of secret societies and hidden courtyards and private balls while the parades go by for the public
<aScottishBoat> oh wow
<aScottishBoat> that sounds amazing
jackjackdripper has joined #ruby
<RickHull> and the music scene is pretty amazing once you get a feel for it -- jazz / funk / fusion / brass / groove / lounge
<RickHull> JazzFest, hands down, for a great sample of NOLA food and music
<RickHull> 7 days of festival across 2 weekends
<RickHull> late spring, so it's hot but not H O T
<RickHull> I imagine the weather is pretty nice right now
alfiemax has quit [Remote host closed the connection]
<aScottishBoat> hmm bet it is
<RickHull> check out One Eyed Jacks in the FQ for some interesting local music, if it's still there. can be kind of a gritty scene sometimes
<aScottishBoat> When I went it was SO bad. My mate and I decided to skip getting a hostel but we tried sleeping in my car and it was far too hot
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
<RickHull> and the Marigny triangle / Frenchmen street
<aScottishBoat> we got a hostel asap
<RickHull> ha, I'm sure
<aScottishBoat> ah man I wish I was back
<aScottishBoat> I wouldn't mind living there, but I don't do hot weather well
<RickHull> it's the kind of place that rewards a good night's sleep
<RickHull> so I wouldn't skimp there
AlexRussia has quit [Quit: WeeChat 1.9.1]
zombie__ has joined #ruby
<RickHull> A/C and a bed -- skip the couch unless you're under 25 :)
<aScottishBoat> well I've slept outside on some holidays
zombie__ has quit [Client Quit]
<aScottishBoat> simply to save money. I don't mind
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<aScottishBoat> Being young is fun if you embrace it
<aScottishBoat> though you see some weird things
<aScottishBoat> (a reference to a night in Madrid I spent outdoors...)
Coldblackice has quit [Ping timeout: 268 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<aScottishBoat> RickHull, havenwood, anyone, what's your favourite city?
<RickHull> Prague and Amsterdam are near the top in some dimension, based on a few days' visit
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper1 has joined #ruby
jackjackdripper1 has quit [Client Quit]
<RickHull> SF and NYC have a lot going on
<aScottishBoat> ooo never been to Prague, but I *only* hear very exceptional things
<havenwood> Prague, Amsterdam, Barcelona, Venice, New Orleans, etc. Hard to say.
jackjackdripper has joined #ruby
<aScottishBoat> I spent 11 days in Netherlands visiting 3 friends. Pretty much saw the whole (small) country
<RickHull> I imagine London and Edinburgh have similar depth to New Orleans -- you could hardly begin to appreciate them fully in under a year (say)
<aScottishBoat> I just moved from Edinburgh in May. Such a lovely city. Loads to do.
<aScottishBoat> I recommend it. Although I hear my go-to bar recently closed down :(
<havenwood> I'm a fan of Cambridge. Great food and accessible nightlife.
bmurt has joined #ruby
<aScottishBoat> Don't know much of England tbh. I've been to Coventry and London. I've also been to northern Wales.
safetypin has joined #ruby
ldnunes has quit [Quit: Leaving]
<aScottishBoat> my ex gf of 3,5 years is from Ireland. I only went once. She never wanted to go there for vacation cuz it's where she's from. sigh
ur5us has quit [Read error: Connection reset by peer]
<aScottishBoat> there was a ruby conference in Israel a few years back
ur5us has joined #ruby
RickHull has quit [Ping timeout: 260 seconds]
<aScottishBoat> I really wanted to go but it was during right when I had my master's graduation... my ma would have killed me if I didn't go *sigh*
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta2 has joined #ruby
deadnull has joined #ruby
lagweezle is now known as lagweezle_away
RickHull has joined #ruby
conta2 has quit [Ping timeout: 255 seconds]
John__ has quit [Ping timeout: 258 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aScottishBoat has quit [Ping timeout: 240 seconds]
<gizmore> "the computer says no"
knight33 has joined #ruby
knight33 has quit [Max SendQ exceeded]
knight33 has joined #ruby
cagomez has quit [Ping timeout: 248 seconds]
Scorpion has quit [Read error: Connection reset by peer]
lagweezle_away is now known as lagweezle
Scorpion has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
ttrx has joined #ruby
alfiemax has joined #ruby
John__ has joined #ruby
aroaminggeek has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has quit [Ping timeout: 248 seconds]
orbyt_ has joined #ruby
duderonomy has joined #ruby
gnufied has quit [Quit: Leaving]
gnufied has joined #ruby
the_f0ster has quit [Quit: leaving]
alfiemax has quit [Ping timeout: 268 seconds]
aroaminggeek has joined #ruby
aroaminggeek has quit [Client Quit]
vtx has joined #ruby
aroaminggeek has joined #ruby
dinoangelov has quit [Quit: (null)]
hutch34 has quit [Ping timeout: 252 seconds]
biberu has quit []
mjolnird has quit [Quit: Leaving]
hutch34 has joined #ruby
Rr4sT has quit [Quit: Connection closed for inactivity]
jottr has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
shinnya has joined #ruby
cdg has joined #ruby
hutch34 has joined #ruby
mostlybadfly has joined #ruby
ap4y has joined #ruby
exhiled has joined #ruby
<aroaminggeek> spent in Ecuador visiting a long time friend - Puerto Cayo. If you want a sense of the slower pace of S.A. that's one place to experience it!
<aroaminggeek> ^^ 30 days
eckhardt has joined #ruby
cdg_ has joined #ruby
yahmds has quit [Ping timeout: 255 seconds]
deadnull has quit [Quit: deadnull]
cdg has quit [Ping timeout: 248 seconds]
yqt has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
jenrzzz has quit [Ping timeout: 248 seconds]
Neptu_ has quit [Ping timeout: 264 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
kinduff has quit [Quit: gg]
zombie__ has joined #ruby
hutch34 has joined #ruby
cagomez has joined #ruby
nfk has joined #ruby
reber has quit [Remote host closed the connection]
troys is now known as troys_
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
nfk has quit [Client Quit]
matcouto has joined #ruby
ttrx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JJonah has quit [Read error: Connection reset by peer]
JJonah has joined #ruby
zautomata has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
Devalo has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aroaminggeek has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 255 seconds]
claudiuinberlin has joined #ruby
Devalo has quit [Ping timeout: 248 seconds]
centrx has quit [Remote host closed the connection]
hutch34 has joined #ruby
Asher has quit [Quit: Leaving.]
hutch34 has quit [Ping timeout: 255 seconds]
Asher has joined #ruby
hutch34 has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dn`_ has joined #ruby
facest has joined #ruby
hogetaro_ has joined #ruby
mson has joined #ruby
muelleme has quit [Ping timeout: 248 seconds]
eckhardt has joined #ruby
vondruch_ has joined #ruby
vereteran has joined #ruby
olblak_ has joined #ruby
bob_f_ has joined #ruby
badeball_ has joined #ruby
matti__ has joined #ruby
faces has quit [Ping timeout: 250 seconds]
naquad has quit [Ping timeout: 250 seconds]
vondruch has quit [Read error: Connection reset by peer]
hogetaro has quit [Ping timeout: 250 seconds]
dn` has quit [Ping timeout: 250 seconds]
olblak has quit [Ping timeout: 250 seconds]
badeball has quit [Ping timeout: 250 seconds]
matti has quit [Ping timeout: 250 seconds]
bob_f has quit [Ping timeout: 250 seconds]
vondruch_ is now known as vondruch
dn`_ is now known as dn`
hutch34 has quit [Ping timeout: 250 seconds]
majoh_ has quit [Ping timeout: 250 seconds]
lucas has quit [Ping timeout: 250 seconds]
dminuoso has quit [Ping timeout: 250 seconds]
lucas has joined #ruby
majoh_ has joined #ruby
hutch34 has joined #ruby
dminuoso has joined #ruby
dminuoso has quit [Changing host]
dminuoso has joined #ruby
jenrzzz has joined #ruby
PaulCapestany has quit [Quit: .]
eckhardt has quit [Client Quit]
bigkevmcd has quit [Ping timeout: 240 seconds]
cosimo_ has quit [Ping timeout: 260 seconds]
PaulCapestany has joined #ruby
cadillac_ has quit [Ping timeout: 268 seconds]
Kilobyte22 has quit [Ping timeout: 240 seconds]
bier has quit [Excess Flood]
aroaminggeek has joined #ruby
bier has joined #ruby
marxarelli is now known as marxarelli|afk
<jsrtr> Hey, if I have an existing long-running ruby process and I wanted to execute a command in a new thread in that process, how could I do that without killing the process?
cosimo_ has joined #ruby
bigkevmcd has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
Kilo`byte has joined #ruby
jottr has quit [Read error: Connection reset by peer]
<RickHull> I can't think of a good way. i feel like maglev maybe offers something like that
enterprisey has quit [Ping timeout: 255 seconds]
cadillac_ has joined #ruby
elphe has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
mikeric has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
mjolnird has joined #ruby
<eam> can always use gdb
<eam> not a good way, mind, but it is a way
alfiemax has joined #ruby
vtx has quit [Quit: vtx]
kickr has joined #ruby
ttrx has joined #ruby
hahuang65 has joined #ruby
ttrx has quit [Client Quit]
<RickHull> attach to the process with gdb -- then can inject C code?
<RickHull> cool!
enterprisey has joined #ruby
alfiemax has quit [Ping timeout: 250 seconds]
<eam> you'll generally want to be a bit more cautious about where the ruby interpreter is when paused by gdb, maybe carefully set a breakpoint at a known safe place and then go from there
<eam> and calling puts is reckless as hell, since the stdio layer is way way non-reentrant
<eam> but, good enough for a one line demo
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> that demo would pin your CPU in a busy loop, right? versus say sleep 0.01 if not sleep 1?
<eam> yeah
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
eckhardt has joined #ruby
centrx has quit [Read error: Connection reset by peer]
centrx has joined #ruby
centrx has quit [Changing host]
centrx has joined #ruby
duckpuppy has quit [Ping timeout: 268 seconds]
kickr has quit [Quit: Leaving]
kickr has joined #ruby
tvw has joined #ruby
<eam> sometimes I use this technique to attach to a misbehaving ruby process and extract ruby-level data from it (like counts from ObjectSpace or w/e), just write a few routines to check whatever state I'm interested in and print to a file
mim1k has joined #ruby
<lupine> I have done saviour actions in production this way
<lupine> (calling close() on an fd to unblock processes)
<lupine> game of soldiers, etc
hutch34 has quit [Ping timeout: 240 seconds]
kickr has quit [Client Quit]
orbyt_ has joined #ruby
kickr has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
<RickHull> do you get to control where a breakpoint is set, or do you just stab randomly and test the context?
<RickHull> s/randomly/blindly/
err_ok is now known as rawrbot
<lupine> it's difficult, gdb doesn't understand the ruby execution very wel
<lupine> I wouldn't try to interact with ruby constructs in gdb
mim1k has quit [Ping timeout: 248 seconds]
<lupine> underlying resources like sockets and file descriptors are amenable to alteration
<eam> yeah, that's certainly more safe
rawrbot is now known as err_ok
<eam> RickHull: you don't control where you attach, but your first action can be to set a new breakpoint then continue to it
aroaminggeek has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kickr has quit [Client Quit]
<eam> I tell people that if they call rb_ functions from gdb, expect a segfault -- only do this as best effort data extraction before killing the process
kickr has joined #ruby
<eam> we used this approach to find some memory leaks in rspec, for example
hutch34 has joined #ruby
<RickHull> so the first breakpoint is set at the attach point, and then when you continue to it (looping back around?), execution is halted?
kickr has quit [Client Quit]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kitsunenokenja has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Ping timeout: 250 seconds]
eckhardt has joined #ruby
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
kickr has joined #ruby
hutch34 has joined #ruby
<eam> the attach point isn't really a breakpoint, but the process is paused on attach while waiting for input
<eam> execution in the child is halted while gdb is waiting for input
<eam> you can script the inputs to minimize this
kinduff has joined #ruby
kickr has quit [Quit: Leaving]
kickr has joined #ruby
charliesome has joined #ruby
aroaminggeek has joined #ruby
<RickHull> ah ok
centrx has quit [Remote host closed the connection]
nofxx has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FrostCandy has quit []
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
minimalism has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
emilford has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kitsunenokenja has quit [Ping timeout: 255 seconds]
polishdub has quit [Quit: leaving]
thinkpad has joined #ruby
drowze has quit [Ping timeout: 240 seconds]
safetypin has quit [Ping timeout: 248 seconds]
ap4y has quit [Quit: WeeChat 1.9.1]
ap4y has joined #ruby
alex``` has quit [Quit: WeeChat 1.9.1]
orbyt_ has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has joined #ruby
centrx has joined #ruby
centrx has quit [Client Quit]
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
br0d1n has joined #ruby
mikeric has quit []
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 250 seconds]
elphe has quit [Ping timeout: 268 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
c0mrad3 has joined #ruby
orbyt_ has joined #ruby
hutch34 has joined #ruby
aroaminggeek has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elphe has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
hutch34 has quit [Ping timeout: 250 seconds]
marxarelli|afk is now known as marxarelli
erlend has quit [Read error: Connection reset by peer]
hutch34 has joined #ruby
erlend has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
aroaminggeek has joined #ruby
alfiemax has joined #ruby
hutch34 has joined #ruby
Psybur has joined #ruby
BackEndCoder has quit [Ping timeout: 264 seconds]
alfiemax has quit [Ping timeout: 250 seconds]
urk187 has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 255 seconds]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]