havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<tsunamie> netule, references?
idefine has joined #ruby
idefine_ has quit [Read error: Connection reset by peer]
Derailed has quit [Ping timeout: 264 seconds]
<netule> http://ruby-doc.org/ is a great place to start for a Ruby reference
<Ox0dea> tsunamie: But now that you know about the #methods method...
<netule> Ox0dea I didn't suggest that codeacademy was a reference
<netule> maybe my phrasing was off, im getting to my 4:00 PM burnout
_aeris_ has joined #ruby
Derailed has joined #ruby
eminencehc has quit [Remote host closed the connection]
<Ox0dea> netule: How else could I have interpreted "that's what references are for" in the context of a discussion about Codecademy?
millerti has joined #ruby
devoldmx has joined #ruby
<tsunamie> Ox0dea, netule sorry for ranting. I am going to sleep it's midnight here
ruurd has joined #ruby
<Ox0dea> tsunamie: Night.
idefine has quit [Read error: Connection reset by peer]
idefine_ has joined #ruby
<tsunamie> just so we are clear. how would I find all the methodes for an object?
krzkrz has quit [Ping timeout: 260 seconds]
<Ox0dea> tsunamie: The #methods method.
millerti has quit [Max SendQ exceeded]
arescorpio has joined #ruby
s00pcan has quit [Ping timeout: 244 seconds]
<Ox0dea> >> [1,2,3].methods # tsunamie
<ruboto> Ox0dea # => [:inspect, :to_s, :to_a, :to_h, :to_ary, :frozen?, :==, :eql?, :hash, :[], :[]=, :at, :fetch, :first ...check link for more (https://eval.in/463968)
<tsunamie> ahhhhhhhhhhhhhh
<tsunamie> okay
kalusn has quit [Remote host closed the connection]
SenpaiSilver has quit [Quit: Leaving]
<tsunamie> Ox0dea, are you based in london?
<zenspider_> tsunamie: that sucks. Everytime I teach the FIRST thing I do is teach ri and irb
<tsunamie> I want to buy you a drink
<Ox0dea> >> [1,2,3].methods == Array.instance_methods # tsunamie
<ruboto> Ox0dea # => true (https://eval.in/463969)
nibbo has joined #ruby
idefine_ has quit [Read error: Connection reset by peer]
<Ox0dea> tsunamie: Nah, and I don't think I deserve a beer for giving you the incentive to stay up now. :P
idefine has joined #ruby
<tsunamie> lol goodnight and thanks everyone
diegoaguilar has quit [Read error: Connection reset by peer]
<zenspider_> tsunamie: please give them feedback. that's a huge oversight
s00pcan has joined #ruby
<tsunamie> zenspider_, sure thing
millerti has joined #ruby
firstdayonthejob has quit [Ping timeout: 240 seconds]
slash_nick is now known as slash_part
ruurd has quit [Read error: Connection reset by peer]
rabbithole has quit [Ping timeout: 272 seconds]
devoldmx has quit [Ping timeout: 260 seconds]
idefine has quit [Read error: Connection reset by peer]
idefine has joined #ruby
<netule> Ox0dea yup, like I said, my phrasing was way off on that sentence.
vigintas has quit [Ping timeout: 255 seconds]
<Ox0dea> netule: "Off" is a little lukewarm, don't you think?
<Ox0dea> It's okay to be wrong sometimes.
<netule> sure
TheNet has joined #ruby
umgrosscol has quit [Remote host closed the connection]
SCHAAP137 has quit [Ping timeout: 260 seconds]
atomical has quit [Ping timeout: 255 seconds]
ruurd has joined #ruby
shmilan has quit [Ping timeout: 246 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kstuart has quit [Ping timeout: 246 seconds]
Blaguvest has joined #ruby
mag42c has quit [Quit: mag42c]
user9956 has joined #ruby
<user9956> hello
baweaver has quit [Remote host closed the connection]
<user9956> may I ask what is the "::" operator in Ruby
<user9956> ?
<user9956> can I use it in "send" method for example to dynamically dereference nested modules?
Guest53152 has quit [Ping timeout: 252 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ruurd has quit [Read error: Connection reset by peer]
<jhass> user9956: primarily the namespace resolution operator
<zenspider_> user9956: it's 2 things. it is an alias for "." as in Module::method
<jhass> user9956: you can use it in place of . too, but that's highly discouraged
baweaver has joined #ruby
<zenspider_> it's also namespace access: Module::SubModule
zenspider_ is now known as zenspider
<Ox0dea> user9956: The method you want is #const_get.
jgt1 has quit [Ping timeout: 260 seconds]
vigintas has joined #ruby
rcvalle has quit [Quit: rcvalle]
<user9956> how can I call it dynamically?
roxtrong_ has joined #ruby
<user9956> for example like Module1.send "::", "Module2"
<user9956> ?
rabbithole has joined #ruby
<Ox0dea> user9956: M1.const_get 'M2'
Musashi007 has quit [Quit: Musashi007]
<user9956> but I don't want to get the constant
<user9956> i want to dynamically execute the operator
<user9956> or isnt it possible
<user9956> ?
barhum2013 has joined #ruby
<Ox0dea> >> module A; module B; end end; A.const_get 'B' # user9956
<ruboto> Ox0dea # => A::B (https://eval.in/463970)
<Ox0dea> Tada!
<Ox0dea> Check your assumptions.
_blizzy_ has quit [Ping timeout: 264 seconds]
A124 has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
zenguy_pc has quit [Ping timeout: 260 seconds]
<adaedra> class Z; end <=> Z = Class.new
<Ox0dea> 1
DiCablo has joined #ruby
ruurd has joined #ruby
kimegede has quit [Quit: Leaving...]
<Ox0dea> It's situational, though.
nertzy has joined #ruby
northfurr has joined #ruby
<user9956> ok thanks
<zenspider> user9956: what are you REALLY trying to do?
<user9956> nothing, just a beginner in Ruby
chipotle has quit [Read error: Connection reset by peer]
<user9956> trying to unserstand the message passing nature of method calls
mattwildig has quit [Remote host closed the connection]
<user9956> thought I could execute the operator in the form of smalltalk messaging
moeabdol has joined #ruby
marr has quit [Ping timeout: 250 seconds]
<Ox0dea> user9956: That understanding is valid only for the operators that're actually methods.
yfeldblum has quit [Remote host closed the connection]
<Ox0dea> >> [].methods.sort.take 14 # user9956: These, more or less.
<ruboto> Ox0dea # => [:!, :!=, :!~, :&, :*, :+, :-, :<<, :<=>, :==, :===, :=~, :[], :[]=] (https://eval.in/463972)
nkts_ has quit [Ping timeout: 272 seconds]
babblebre has quit [Quit: Connection closed for inactivity]
<Ox0dea> That's missing :|, :^, :+@, :-@, :~, and :>>.
ruurd has quit [Read error: Connection reset by peer]
<Ebok> wouldnt take 20 have included them? >_>
<Ebok> :P
<Ox0dea> Nerp.
yfeldblum has joined #ruby
<Ox0dea> They don't all have definitions on Array.
<Ebok> ah right array--yeah
tubuliferous has quit [Read error: Connection reset by peer]
<user9956> ahh ok understood now Ox0dea
<Ox0dea> >> ObjectSpace.each_object(Class).flat_map(&:instance_methods).uniq.grep(/^\W/).size
<ruboto> Ox0dea # => 27 (https://eval.in/463973)
<Ox0dea> user9956: There are 27 "operators" you can #send.
<Ox0dea> We're not quite Smalltalk, but you can't get too much closer.
djbkd has quit [Remote host closed the connection]
roxtrongo has joined #ruby
moeabdol has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby
jgt1 has joined #ruby
solocshaw has joined #ruby
jobewan has quit [Quit: Leaving]
zenguy_pc has joined #ruby
DLSteve has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
yfeldblum has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
nateberkopec has joined #ruby
djbkd has joined #ruby
predator117 has quit [Ping timeout: 240 seconds]
VeryBewitching has quit [Ping timeout: 250 seconds]
ruurd has joined #ruby
predator117 has joined #ruby
mndoci has joined #ruby
yfeldblum has joined #ruby
user9956 has quit [Quit: leaving]
wilbert has joined #ruby
vigintas has quit [Ping timeout: 240 seconds]
Gooddaytoyousir has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
wilbert has quit [Client Quit]
nateberkopec has quit [Ping timeout: 264 seconds]
gusTester has joined #ruby
RegulationD has joined #ruby
netule has quit [Quit: Textual IRC Client: www.textualapp.com]
tmtwd has quit [Remote host closed the connection]
lemur has joined #ruby
shmilan has joined #ruby
<zenspider> ARGH... my stuuupid apache setup is trying to run "seattle.rb.png" as a cgi because .rb is in the middle. wtf
idefine has quit [Remote host closed the connection]
tmtwd has joined #ruby
<zenspider> so much for apache looking at the "extension" of the file
idefine has joined #ruby
<bnagy> that... o_0 that sounds like a security issue
DEA7TH has quit [Quit: DEA7TH]
<adaedra> MultiViews?
<bnagy> for anything that allows user uploaded images, anyway
ruurd has quit [Read error: Connection reset by peer]
bahar has joined #ruby
bahar has joined #ruby
roxtrongo has quit [Remote host closed the connection]
gusTester has quit [Client Quit]
ruurd has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
<zenspider> adaedra: pardon?
lemur has quit [Ping timeout: 250 seconds]
<zenspider> bnagy: it's all static shit. I could rename the file to make this problem go away but that's a hassle (not that this config shit isn't)
vdamewood has quit [Quit: Life beckons.]
<bnagy> yeah, not a security issue for you, but maybe for someone
<adaedra> zenspider: mh, looks like I mixed it with something else.
<zenspider> adaedra: ah I see what you're asking. yes, MultiViews is on. dunno what that is
<bnagy> assuming this setup isn't unique to you :P
abucha has joined #ruby
<adaedra> But I remember there is an option for Apache to consider consecutive file extensions or something like that.
<adaedra> Haven't apached for sometime though.
<adaedra> May be totally wrong.
VeryBewitching has joined #ruby
<zenspider> I'm turning it off and poking
cdg has quit [Remote host closed the connection]
<zenspider> argh. no help.
<zenspider> Options ExecCGI is off in this directory: .../Ruby_Sadist_files/Seattle.rb.small.png, referer: http://sadi.st/Ruby_Sadist.html
<zenspider> adaedra: that's totally relevant. Thanks. I'll patch it that way
<zenspider> UGH
<adaedra> yw
lacrymol1gy has quit [Quit: leaving]
pontiki_ has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
_blizzy_ has joined #ruby
pontiki_ has quit [Remote host closed the connection]
<zenspider> that did it
<zenspider> thanks
eminencehc has joined #ruby
<adaedra> Good ol' apache.
moeabdol has joined #ruby
idefine has quit [Remote host closed the connection]
karapetyan has joined #ruby
hxegon has joined #ruby
ruurd has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eminencehc has quit [Ping timeout: 250 seconds]
Spleeze has quit [Ping timeout: 264 seconds]
duncannz has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
idefine has joined #ruby
freerobby has quit [Quit: Leaving.]
roxtrongo has joined #ruby
mistermocha has quit [Remote host closed the connection]
th0m_ has quit [Ping timeout: 240 seconds]
kaskalu has joined #ruby
<shevy> may it rest in peace
baweaver has quit [Remote host closed the connection]
mistermocha has joined #ruby
kaskalu has quit [Client Quit]
d34th4ck3r has joined #ruby
Spleeze has joined #ruby
shazaum_ has quit [Quit: Leaving]
[Butch] has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest71379
<Ox0dea> What is the opposite of "rest in peace"?
tkuchiki has joined #ruby
<shevy> zombie!
<Ox0dea> I'm not sure that's right.
th0m_ has joined #ruby
<Ox0dea> Whatever it is, it applies to Apache with its ~50% market share.
asad_ has joined #ruby
<pontiki> "to your health"
nertzy has quit [Quit: This computer has gone to sleep]
<asad_> I have a shell command that has an alias. How can I invoke the command using the alias from within ruby?
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
mndoci has quit [Remote host closed the connection]
Guest71379 has quit [Ping timeout: 244 seconds]
dopie has quit [Quit: This computer has gone to sleep]
mndoci has joined #ruby
niftylettuce has quit [Quit: Connection closed for inactivity]
etcetcetc has joined #ruby
asad_ has quit [Client Quit]
hxegon has quit [Ping timeout: 246 seconds]
<pontiki> hmm
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
roxtrongo has quit [Remote host closed the connection]
ekinmur has joined #ruby
mndoci has quit [Ping timeout: 246 seconds]
hxegon has joined #ruby
freerobby has joined #ruby
duckpupp1 has joined #ruby
beauby has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
jdawgaz has joined #ruby
duckpupp1 has quit [Ping timeout: 265 seconds]
Nick_ZWG has joined #ruby
[Butch] has joined #ruby
cyle has joined #ruby
jgt1 has quit [Ping timeout: 250 seconds]
ekinmur has quit [Quit: Textual IRC Client: www.textualapp.com]
mndoci has joined #ruby
EllisTAA has joined #ruby
DiCablo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> aliases = `bash -cl 'declare -p BASH_ALIASES'`.scan(/\[([^\]]+)\]="([^"]+)/).to_h
<Ox0dea> Reminiscent of the bad ol' days.
Iota-Spencer is now known as ZeeNoodley
nateberkopec has joined #ruby
blue_deref has quit [Ping timeout: 260 seconds]
skweek has joined #ruby
Musashi007 has joined #ruby
mattwildig has joined #ruby
cwong_on_irc has joined #ruby
nateberkopec has quit [Ping timeout: 246 seconds]
djbkd has quit [Remote host closed the connection]
<Ox0dea> So, you can include "Rakefile" in a gem's extension list to have your default Rake task executed post-install; this is pretty awesome, but RubyGems is mucking about with the output streams, so printing is annoying. :< https://eval.in/463874 only prints "--0--", indicating that I apparently have to repurpose stdin for output, and I don't wanna do that. Please advise.
baweaver has joined #ruby
rakm has joined #ruby
djbkd has joined #ruby
sankaber has joined #ruby
dnomyar has joined #ruby
odigity has quit [Quit: Leaving]
cyle has quit [Quit: leaving]
baweaver has quit [Ping timeout: 272 seconds]
<havenwood> Ox0dea: --0----1----2--=> [#<Proc:0x007f8c140d9bf0@(pry):2>]
axsuul_ has quit [Ping timeout: 246 seconds]
<Ox0dea> havenwood: Did you execute `rake` directly?
<havenwood> Ox0dea: Rake::Task[:default].invoke
Rinzlit_ has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bb010g has joined #ruby
<havenwood> Ox0dea: I just ran it in Pry.
<Ox0dea> havenwood: Right, it's specifically RubyGems' invocation of `rake` that's causing this.
<havenwood> Ox0dea: Gotcha, that makes sense.
<havenwood> Ox0dea: Just confirming.
<Ox0dea> I don't think I'm able to get in front of it to stop it redirecting output to Gem::Util::NULL_DEVICE. :<
soulisson_ has joined #ruby
blue_deref has joined #ruby
dnomyar has quit [Ping timeout: 272 seconds]
chipotle has quit [Max SendQ exceeded]
mdih has joined #ruby
<Ox0dea> I could put code in the gemspec. :<
Rinzlit has quit [Ping timeout: 246 seconds]
chipotle has joined #ruby
<Ox0dea> I think I'm just gonna write to stdin.
mikecmpbll has quit [Quit: i've nodded off.]
jessemcgilallen has quit [Quit: jessemcgilallen]
giuseppesolinas has joined #ruby
chipotle has quit [Max SendQ exceeded]
Musashi007 has quit [Quit: Musashi007]
soulisson_ has quit [Ping timeout: 240 seconds]
<havenwood> Ox0dea: I didn't know about default post-install with extension list include. Interesting!
idefine has quit [Remote host closed the connection]
x-light has joined #ruby
devoldmx has joined #ruby
TheNet has quit [Remote host closed the connection]
krzkrz has joined #ruby
soulisson_ has joined #ruby
Musashi007 has joined #ruby
Nick_ZWG has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kobain has quit [Read error: Connection reset by peer]
EllisTAA has quit [Quit: EllisTAA]
cwong_on_irc has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 240 seconds]
cwong_on_irc has joined #ruby
<soulisson_> Sorry, connection issue
TheNet has joined #ruby
<Ox0dea> havenwood: With great power...
soulisson_ has quit [Client Quit]
rabbithole has quit [Ping timeout: 250 seconds]
rabbithole has joined #ruby
leafybas_ has quit [Remote host closed the connection]
simplyianm has quit [Ping timeout: 265 seconds]
kstuart has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
hxegon_ has joined #ruby
s00pcan has quit [Ping timeout: 265 seconds]
hxegon has quit [Ping timeout: 240 seconds]
s00pcan has joined #ruby
wprice has quit [Quit: wprice]
yfeldblum has quit [Remote host closed the connection]
beauby has quit [Ping timeout: 260 seconds]
rgrmatt has joined #ruby
kstuart has quit [Ping timeout: 255 seconds]
edj979 has joined #ruby
bruno- has joined #ruby
Musashi007 has quit [Quit: Musashi007]
bruno- is now known as Guest60160
Nick_ZWG has joined #ruby
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beauby has joined #ruby
Guest60160 has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
roshanavand has joined #ruby
cdg has joined #ruby
charliesome has joined #ruby
kobain has joined #ruby
qiukun has joined #ruby
EllisTAA has joined #ruby
EllisTAA has quit [Client Quit]
mistermo_ has joined #ruby
TomPeed has joined #ruby
mattwildig has quit [Remote host closed the connection]
qiukun has quit [Remote host closed the connection]
zenguy_pc has quit [Ping timeout: 252 seconds]
roshanavand has quit [Ping timeout: 272 seconds]
to_json has joined #ruby
to_json has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
qiukun has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
mistermo_ has quit [Ping timeout: 244 seconds]
duckpupp1 has joined #ruby
blackmesa has joined #ruby
mistermocha has joined #ruby
bigmac_ has joined #ruby
freerobby has quit [Ping timeout: 250 seconds]
<bigmac_> what are all special characters that will cause issues with gsub?
<bigmac_> like backslash for exmaple
freerobby has joined #ruby
<pontiki> see the docs for Regexp
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> >> all = [*?!..?~]; all - all.select { |c| /#{c}/ rescue nil } # bigmac_
<ruboto> Ox0dea # => ["(", ")", "*", "+", "?", "[", "\\"] (https://eval.in/463996)
ledestin has joined #ruby
<Ox0dea> But that fails to account for various contexts.
duckpupp1 has quit [Ping timeout: 250 seconds]
Nick_ZWG has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 240 seconds]
<Ox0dea> '^', '-', and ']' are meaningful in character classes, for instance.
blackmesa has quit [Ping timeout: 240 seconds]
* pontiki still prefers reading the docs
mistermocha has joined #ruby
Aasha is now known as Wsewolod
diegoviola has quit [Quit: WeeChat 1.3]
zenguy_pc has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
TheNet has quit [Remote host closed the connection]
Musashi007 has joined #ruby
malconis has joined #ruby
radgeRayden has joined #ruby
<Ox0dea> pontiki: Needs more Jedi.
hxegon_ has quit [Ping timeout: 240 seconds]
<havenwood> The source is strong with this one...
nateberkopec has joined #ruby
yqt has quit [Ping timeout: 272 seconds]
Musashi007 has quit [Client Quit]
radgeRayden_ has quit [Ping timeout: 244 seconds]
inteq has joined #ruby
Musashi007 has joined #ruby
nateberkopec has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
rgrmatt has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solocshaw has quit [Ping timeout: 246 seconds]
cwong_on_irc has quit [Read error: Connection reset by peer]
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
towski__ has quit [Remote host closed the connection]
willardg has joined #ruby
RobertBirnie has quit [Ping timeout: 260 seconds]
Melpaws has joined #ruby
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
baweaver has quit [Ping timeout: 240 seconds]
cwong_on_irc has joined #ruby
edj979 has quit [Ping timeout: 246 seconds]
malconis has quit [Quit: Textual IRC Client: www.textualapp.com]
<Melpaws> i need some guidance on converting a string to an array (i know how to convert strings to array). But my problem is i need to convert the string based on a regex pattern . So, the string would be broken up as the first part as [0], and the #after # to be [1] . String example : Doctor Strange #1 . Suggestions?
shmilan has quit [Ping timeout: 246 seconds]
niftylettuce has joined #ruby
DexterLB has quit [Ping timeout: 260 seconds]
c_nick has joined #ruby
mndoci has quit [Remote host closed the connection]
atomical has joined #ruby
mndoci has joined #ruby
TheNet has joined #ruby
<havenwood> Melpaws: I don't understand the example.
Jardayn has quit [Quit: Leaving]
A124 has quit [Read error: Connection reset by peer]
<c_nick> I have a MySQL::Results object which essentailly is an array of hashes. [{:name => "Nicolas", :continent => "EU"},{:name => "Nathan", :continent => "US"}] and I want to create an array of all unique names from this how should i go about it .. i can loop and store hash[:name] in another array and use but I am not sure if this is the right way to do it
<havenwood> c_nick: You've said what you have. What do you want? What would the desired result look like?
<bnagy> >> "Doctor Strange #1".split '#'
<ruboto> bnagy # => ["Doctor Strange ", "1"] (https://eval.in/463999)
mistermocha has quit [Remote host closed the connection]
<Melpaws> ah
<Melpaws> thank you both
<bnagy> c_nick: check Enumerable#group_by maybe
<havenwood> bnagy: You're better at . : notation than I am. :P
_blizzy_ has quit [Ping timeout: 246 seconds]
<havenwood> I was so lost with that example.
ebbflowgo has joined #ruby
mndoci has quit [Ping timeout: 250 seconds]
<bnagy> was kind of guessing :/
TheNet has quit [Ping timeout: 240 seconds]
opensource_ninja has quit [Quit: opensource_ninja]
<c_nick> bnagy: Ah! yes group by could help
<havenwood> c_nick: What would the desired result look like? An example?
drizzle has joined #ruby
drizzle has left #ruby [#ruby]
qiukun has quit [Quit: qiukun]
ebbflowgo has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
charliesome has joined #ruby
<havenwood> c_nick: What you're looking for leaves much to guess. A couple examples of expected input and desired output work wonders.
<havenwood> Or at least one example of desired output.
ebbflowgo has joined #ruby
hxegon has joined #ruby
favadi has joined #ruby
to_json has quit [Quit: Leaving.]
Prawnzy has joined #ruby
<havenwood> c_nick: Anyways, in absence of any examples of desired output I'll guess: map { |h| h[:name] }.uniq
kinduff has joined #ruby
<havenwood> Who knows...
mistermocha has quit [Ping timeout: 265 seconds]
<bnagy> a.group_by {|e| e[:name]}.keys! \o/
solocshaw has joined #ruby
<havenwood> c_nick: ?
TheNet has joined #ruby
maxz has quit [Disconnected by services]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobunny has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
abucha_ has joined #ruby
<c_nick> havenwood: sorry i was AFK
abucha_ has quit [Remote host closed the connection]
<c_nick> more than map collect seems better .
abucha_ has joined #ruby
<c_nick> This is what i have : [ {:name => "Nicolas", :continent => "EU"} , {:name => "Nathan", :continent => "US"} ]
mordocai has joined #ruby
<c_nick> This is what I want : array of all :name
<Ox0dea> c_nick: foo.map { |h| h[:name] }
<Ox0dea> How come that's not good?
<c_nick> that should work too
<c_nick> thats essentially same like array1 = [] MySql_Object.each { |s| array1 << s }
abucha has quit [Ping timeout: 272 seconds]
<c_nick> s[:name]*
<Ox0dea> c_nick: Yes, but #map more clearly expresses the intent in this case.
<Ox0dea> It's a transformation, not a process.
<c_nick> >> [{:name => "Nicolas", :continent => "EU"} , {:name => "Nathan", :continent => "US"}].map{ |k| k{:name]}.uniq
<ruboto> c_nick # => /tmp/execpad-af0cef562468/source-af0cef562468:2: syntax error, unexpected ']', expecting '}' ...check link for more (https://eval.in/464000)
<c_nick> >> [{:name => "Nicolas", :continent => "EU"} , {:name => "Nathan", :continent => "US"}].map{ |k| k[:name]}.uniq
<c_nick> map says that I will apply some algorithm on every element of the array / list .. while group by says i will group all the elements in the array based on a condition
<c_nick> map would be faster than group by per say ..
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
finisherr has joined #ruby
<c_nick> Ox0dea: yes, a transformation
<c_nick> your right
<Ox0dea> c_nick: #group_by is also a transformation, but it's overly complex here.
duckpupp1 has joined #ruby
djbkd has quit [Remote host closed the connection]
A124 has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
to_json has joined #ruby
to_json has quit [Changing host]
to_json has joined #ruby
hxegon_ has joined #ruby
blackmesa has joined #ruby
<c_nick> yeah ok cool thanks all
<c_nick> i'll use map/collect
hxegon has quit [Ping timeout: 240 seconds]
<Ox0dea> Just #map.
<Ox0dea> Nobody uses #collect.
<c_nick> hmm ok :)
kp666_ has quit [Quit: Leaving]
Guest53 has joined #ruby
c_nick has quit [Quit: "be back later"]
duckpupp1 has quit [Ping timeout: 240 seconds]
<adam12> Ox0dea: :( I wish I was consistent but I use collect a lot more.
<Ox0dea> adam12: I don't understand.
<Ox0dea> Do you also use #collect_concat instead of #flat_map?
<adam12> No, but I use flat_map very rarely sooo
blackmesa has quit [Ping timeout: 252 seconds]
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DLSteve has joined #ruby
blue_deref has quit [Quit: bbn]
nateberkopec has joined #ruby
Musashi007 has quit [Quit: Musashi007]
arescorpio has quit [Quit: Leaving.]
mattwildig has joined #ruby
sanjayu has joined #ruby
Musashi007 has joined #ruby
<Ox0dea> I just don't get it. https://eval.in/464011
baweaver has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<Ox0dea> Object.const_missing is definitely the method that gets invoked at the top level, and it clearly has no supermethod, and yet `super` works just fine.
d5sx43 has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
d5sx43 has quit [Client Quit]
rabbithole has quit [Ping timeout: 252 seconds]
rabbithole has joined #ruby
d5sx43 has joined #ruby
davedev24 has quit []
Coldblackice has quit [Ping timeout: 240 seconds]
The_Phoenix has joined #ruby
peteykun has joined #ruby
slawrence00 has joined #ruby
d5sx43 has quit [Client Quit]
moeabdol has quit [Quit: WeeChat 1.3]
<EasyCo> Hey team, how do you guys typically test main/run type method? For instance, imagine a class method called .run. In that method we initialize a few other classes then we return a result in the form of a string.
dorei has quit []
sanjayu has quit [Ping timeout: 244 seconds]
abucha has joined #ruby
<EasyCo> Would you actually test what's happening inside that method or would you just black-box it and test the result of calling that method?
mndoci has joined #ruby
devoldmx has joined #ruby
<Ox0dea> EasyCo: Make pure everything that can be, and test those things.
krzkrz has quit [Read error: Connection reset by peer]
kinduff has quit [Quit: Textual IRC Client: www.textualapp.com]
<EasyCo> Ox0dea: What do you mean by make pure?
<Ox0dea> EasyCo: "Pure" here means "not reliant on state".
krzkrz has joined #ruby
abucha_ has quit [Ping timeout: 260 seconds]
braincrash has quit [Quit: bye bye]
<EasyCo> Right, that's still all pretty vague to me, haha.
RegulationD has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
slackbotgz has joined #ruby
cacam9621 has joined #ruby
d34th4ck3r has quit [Quit: zzz]
mndoci has quit [Ping timeout: 260 seconds]
gusTester has joined #ruby
braincras has joined #ruby
kstuart has joined #ruby
gix- has quit [Ping timeout: 265 seconds]
baweaver has joined #ruby
devoldmx has joined #ruby
kstuart has quit [Ping timeout: 260 seconds]
gix has joined #ruby
ni431 has joined #ruby
tmtwd has quit [Quit: Leaving]
krzkrz has quit [Ping timeout: 255 seconds]
subscope has joined #ruby
<Melpaws> im converting a line in a file to an array but i get the \r\n in it. Example line : 1602 Witch Hunter Angela #4 . Example code : content = line.split '#'. . Example result : ["1602 Witch Hunter Angela ", "4\r\n"] . What am I doing wrong?
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_stu_ has quit [Quit: _stu_]
yfeldblum has quit [Ping timeout: 246 seconds]
<Ox0dea> >> "foo\r\n".chomp # Melpaws
<ruboto> Ox0dea # => "foo" (https://eval.in/464035)
leafybas_ has joined #ruby
<Melpaws> ty
<Ox0dea> A line isn't technically a line without a terminator.
<Ox0dea> I know it seems annoying, but it's actually the right definition.
kp666 has joined #ruby
krzkrz has joined #ruby
Contigi777 has joined #ruby
leafybas_ has quit [Ping timeout: 265 seconds]
Contigi has quit [Ping timeout: 246 seconds]
zenguy_pc has quit [Ping timeout: 265 seconds]
baweaver has quit [Remote host closed the connection]
duckpupp1 has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Blaguvest has quit []
tkuchiki has joined #ruby
nateberkopec has quit [Quit: Leaving...]
cwong_on_irc has quit [Read error: Connection reset by peer]
cwong_on_irc has joined #ruby
blackmesa has joined #ruby
duckpupp1 has quit [Ping timeout: 240 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
RobertBirnie has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
mdih has quit [Ping timeout: 265 seconds]
foomanchu has joined #ruby
ni431 has quit [Quit: Light travels faster then sound, which is why some people appear bright, until you hear them speak]
mistermocha has quit [Ping timeout: 240 seconds]
slackbotgz has quit [Remote host closed the connection]
solocshaw has joined #ruby
zenguy_pc has joined #ruby
slackbotgz has joined #ruby
krzkrzkrz has joined #ruby
Musashi007 has quit [Quit: Musashi007]
beauby has quit [Ping timeout: 250 seconds]
abucha_ has joined #ruby
darkf has joined #ruby
krzkrz has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
mloy has joined #ruby
cwong_on_irc has quit [Read error: Connection reset by peer]
cwong_on_irc has joined #ruby
saddad has joined #ruby
mattwildig has quit [Remote host closed the connection]
rbennacer has joined #ruby
infamos has joined #ruby
bluOxigen has joined #ruby
abucha has quit [Ping timeout: 265 seconds]
baweaver has joined #ruby
Ox0dea has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
Ox0dea has joined #ruby
to_json has quit [Quit: Leaving.]
lemur has joined #ruby
foomanchu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has quit [Ping timeout: 240 seconds]
Musashi007 has quit [Client Quit]
baweaver has quit [Ping timeout: 246 seconds]
skweek has quit [Read error: Connection reset by peer]
skweek has joined #ruby
cwong_on_irc has quit [Read error: Connection reset by peer]
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
dionysus69 has joined #ruby
cwong_on_irc has joined #ruby
haraoka has joined #ruby
freerobby has quit [Quit: Leaving.]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edj has joined #ruby
<edj> is there a better place for ruby methods and stuff than ruby docs?
<edj> rubys docs is kind of sloppy and unorganized
mesamoo has joined #ruby
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<edj> anibodi ?
lemur has quit [Read error: Connection reset by peer]
<Ox0dea> edj: Could you cite a particularly egregious offender?
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<edj> I'm not sure what you mean by that?
<edj> are you talking about pages?
subscope has joined #ruby
trosborn has joined #ruby
krzkrzkrz has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<Ox0dea> edj: What prompted you to ask for alternatives?
kfpratt has quit [Remote host closed the connection]
<edj> It's difficult to navigate. Especially when I'm not entirely sure what I'm looking for.
<edj> I'm looking for something formated more like mdn
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> So it's just a stylistic concern?
moei has quit [Quit: Leaving...]
shinenelson has joined #ruby
dopie has joined #ruby
kobain has quit [Ping timeout: 240 seconds]
luriv has joined #ruby
<edj> I'm more concerned with the form of the data.
<edj> The way this is organized seems more logical to me. That being said I am a total noob.
<edj> I probably don't even know how to say what I'm having trouble with.
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rokr1 has joined #ruby
slackbotgz has quit [Remote host closed the connection]
agent_white has quit [Quit: boop]
astrobunny has quit [Remote host closed the connection]
[Butch] has quit [Quit: I'm out . . .]
RegulationD has quit [Remote host closed the connection]
rokr1 has quit [Quit: Bye]
roxtrongo has joined #ruby
etcetcetc has quit [Remote host closed the connection]
leafybas_ has joined #ruby
roxtrongo has quit [Client Quit]
rabbitho1e has joined #ruby
leafybas_ has quit [Ping timeout: 240 seconds]
ohaibbq has joined #ruby
mistermocha has joined #ruby
peppers has joined #ruby
rabbithole has quit [Ping timeout: 255 seconds]
baweaver has joined #ruby
duckpupp1 has joined #ruby
Nick_ZWG has joined #ruby
blackmesa has joined #ruby
simplyianm has joined #ruby
simplyianm has quit [Read error: Connection reset by peer]
x-light has quit [Ping timeout: 264 seconds]
baweaver has quit [Ping timeout: 265 seconds]
simplyia_ has joined #ruby
infamos has quit [Ping timeout: 244 seconds]
mistermocha has quit [Remote host closed the connection]
duckpupp1 has quit [Ping timeout: 250 seconds]
<Ox0dea> edj: I concede that those docs are "nicer", but it doesn't strike me as a fundamentally "better" way to present that kind of information.
favadi has joined #ruby
kfpratt has joined #ruby
x-light has joined #ruby
neanderslob_ has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
pdoherty_ has quit [Ping timeout: 240 seconds]
peteykun has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Remote host closed the connection]
neanderslob_ has quit [Remote host closed the connection]
User458764 has joined #ruby
tkuchiki has joined #ruby
kstuart has joined #ruby
simplyia_ has quit []
tjohnson has quit [Quit: Connection closed for inactivity]
luriv has quit [Quit: Leaving]
mistermocha has joined #ruby
krzkrzkrz has joined #ruby
peteykun has joined #ruby
pdoherty_ has joined #ruby
charliesome has joined #ruby
infamos has joined #ruby
TheNet has quit [Remote host closed the connection]
DrCode has quit [Quit: ZNC - http://znc.in]
Fire-Dragon-DoL has quit []
mordocai has quit [Read error: Connection reset by peer]
DrCode has joined #ruby
Badman703 has joined #ruby
<Badman703> hi guys i need some help with ruby
<Badman703> first time user, jsut installed it for windows
GeissT has quit [Ping timeout: 260 seconds]
arup_r has joined #ruby
<Badman703> im trying to run a script thing and in the installation it says
<Badman703> "Add this line to your application's Gemfile:"
<Badman703> what does that mean?
<Ox0dea> Badman703: Could you elaborate on "script thing"?
<Badman703> its a program/script that merges two images
<Badman703> Can you help me with this?
<Ox0dea> Badman703: If you've installed Ruby properly, you should be able to say `gem install doubleVision`.
<Badman703> in cmd?
<Ox0dea> Yes.
d34th4ck3r has joined #ruby
<Badman703> ok that seem slike it worked
<Badman703> 2 gems installed
zoskia has joined #ruby
<Ox0dea> Badman703: Excellent. And now you can follow the usage instructions presented in the README.
<zoskia> $ ruby -e $'p :#\n foo'
<zoskia> :foo
<zoskia> :(
<Ox0dea> zoskia: It's been fixed.
<Badman703> doubleVision withgamma.png withoutgamma.png out.png
<Badman703> so thats how i urn it?^
<Ox0dea> Indeed.
<Badman703> what abotu the file loactiopn of the actula png?
<Ox0dea> You'll have to provide them?
<Badman703> di put the path or where i put them
<zoskia> 3562: That it was a problem to begin with, relied upon for years, is the issue.
<Badman703> ok si instead doubleVision foldder/withgamma.png fodler/withoutgamma.png out.png
<Ox0dea> zoskia: Relied upon?
kfpratt has quit [Remote host closed the connection]
krzkrzkrz has quit [Ping timeout: 246 seconds]
<Ox0dea> Badman703: Yes, but you could also `cd` into that folder and run it without the explicit path.
<Badman703> would it default the loaction to whatever cmd says, so c:/users/myusername> ?
<Badman703> ok great i shoudl know how to take it form here
<Badman703> lets see if it works
<Ox0dea> Godspeed.
<Badman703> how do i cd up a directory?
astrobunny has joined #ruby
<Badman703> like backwards?
<Ox0dea> `cd ..` might work.
Melpaws has quit [Quit: Leaving.]
<Badman703> yup, thanks, dont use cmd often
<Ox0dea> Nor I. :P
Nick_ZWG has quit [Read error: Connection reset by peer]
Nick_ZWG has joined #ruby
mkilic has joined #ruby
<zoskia> None of you learned to Linux.
<Ox0dea> I think you missed my joke...
mkilic has quit [Client Quit]
<zoskia> Clearly, 3562.
<Badman703> im takign a UNIX class next sem
<Ox0dea> >> eval ":#\nfoo" # zoskia: So how come you were using this trick?
<ruboto> Ox0dea # => :foo (https://eval.in/464046)
<Ox0dea> Badman703: UNIX all caps is the AT&T trademark.
<zoskia> Was just going through parser rejected code that Ruby MRI erroneously accepts.
<Ox0dea> I don't believe you.
<zoskia> I don't think I care.
<zoskia> Badman703: Studying the SuS probably?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Ox0dea> You are a character, eh?
<Badman703> sus?
<zoskia> Not particularly. It's just simpler to say that where the patch for a bug is backported to releases several years old, I'm pretty sure the syntax can be said to be erroneous.
<zoskia> Badman703: UNIX. :)
<Ox0dea> Yes, it was obviously a bug, but that it survived so long is indicative of the fact that nobody encountered it.
<zoskia> I think apeiros is going to give me an earshot for a change-of-nick against #ruby-pro again. Not sure I'm ready to deal with it. :(
<Ox0dea> *earful
diegoaguilar has joined #ruby
x-light has quit [Ping timeout: 260 seconds]
Nick_ZWG has quit [Read error: Connection reset by peer]
<zoskia> Word.
Nick_ZWG has joined #ruby
<zoskia> Badman703: There is no UNIX, only the trademark where things are UNIX compliant against the Single UNIX Specification.
<Badman703> ok
dhjondoh has joined #ruby
<zoskia> Like Mac OS!
abucha_ has quit [Remote host closed the connection]
<zoskia> I have trouble deciding on a Dell XPS or the (upcoming, unreleased, undocumented) Macbook Pro.
bruno- has joined #ruby
bruno- is now known as Guest30822
abucha has joined #ruby
mistermocha has quit [Remote host closed the connection]
<Ox0dea> "UNIX" is like some sort of reverse-shibboleth, like "VIM" and "Brainfuck"; miscasing them reveals you to be an outsider.
cwong_on_irc has quit [Read error: Connection reset by peer]
Nick_ZWG has quit [Read error: Connection reset by peer]
cwong_on_irc has joined #ruby
tubuliferous has joined #ruby
<Badman703> it works!
axsuul has joined #ruby
RegulationD has joined #ruby
<Ox0dea> Yay, computers!
Nick_ZWG has joined #ruby
x-light has joined #ruby
roshanavand has joined #ruby
Guest30822 has quit [Ping timeout: 272 seconds]
abucha has quit [Quit: Leaving...]
abucha_ has joined #ruby
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 255 seconds]
araujo has joined #ruby
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
aufi has joined #ruby
fantazo has joined #ruby
roshanavand has quit [Ping timeout: 272 seconds]
karapetyan has joined #ruby
zenguy_pc has quit [Ping timeout: 255 seconds]
eminencehc has joined #ruby
timonv has joined #ruby
baweaver has joined #ruby
djbkd has quit [Remote host closed the connection]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duckpupp1 has joined #ruby
rrichardsr3 has joined #ruby
solocshaw has quit [Remote host closed the connection]
solocshaw has joined #ruby
karapetyan has quit [Ping timeout: 264 seconds]
krzkrzkrz has joined #ruby
eminencehc has quit [Ping timeout: 240 seconds]
northfurr has quit [Quit: northfurr]
blackmesa has joined #ruby
ZYPP is now known as hool
shinnya has quit [Ping timeout: 240 seconds]
startupality has joined #ruby
hool is now known as ZYPP
abucha has joined #ruby
baweaver has quit [Ping timeout: 265 seconds]
duckpupp1 has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
abucha_ has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 265 seconds]
startupality has quit [Quit: startupality]
Fredrich010 has quit [Read error: Connection reset by peer]
Fredrich010 has joined #ruby
tagrudev has joined #ruby
zenguy_pc has joined #ruby
hxegon_ has quit [Ping timeout: 272 seconds]
krzkrzkrz has quit [Ping timeout: 264 seconds]
krzkrzkrz has joined #ruby
last_staff has joined #ruby
<zoskia> You enjoy your own company a little too much.
hxegon has joined #ruby
fedexo has joined #ruby
klaas has joined #ruby
ruurd has joined #ruby
abucha_ has joined #ruby
User458764 has joined #ruby
saddad has quit [Ping timeout: 265 seconds]
Badman703 has quit [Quit: Leaving]
Pupp3tm4st3r has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
Pupp3tm4st3r has joined #ruby
krzkrzkrz has quit [Ping timeout: 264 seconds]
krzkrzkrz has joined #ruby
Guest16071 is now known as awk
abucha has quit [Ping timeout: 244 seconds]
roshanavand has joined #ruby
Xzanron has joined #ruby
axsuul_ has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
solocshaw has quit [Ping timeout: 240 seconds]
etcetcetc has joined #ruby
auzty has joined #ruby
lsmola has joined #ruby
dikaio has joined #ruby
fantazo has quit [Quit: Verlassend]
yfeldblum has joined #ruby
djbkd has quit [Remote host closed the connection]
x-light has quit [Ping timeout: 244 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
mndoci has joined #ruby
CloCkWeRX1 has left #ruby [#ruby]
Dreamer3 has joined #ruby
axsuul_ has quit [Ping timeout: 244 seconds]
x-light has joined #ruby
arup_r has quit [Ping timeout: 260 seconds]
mndoci has quit [Ping timeout: 244 seconds]
astrobu__ has joined #ruby
rrichardsr3 has quit [Quit: He who dares .... wins.]
astrobunny has quit [Ping timeout: 250 seconds]
kies^ has joined #ruby
bMalum has joined #ruby
rabbitho1e has quit [Ping timeout: 272 seconds]
trosborn has quit [Quit: trosborn]
jas02 has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
bigkevmcd has joined #ruby
ponga has joined #ruby
sanjayu has joined #ruby
donske has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruurd has quit [Read error: Connection reset by peer]
ahmetkapikiran has joined #ruby
abucha_ has quit [Remote host closed the connection]
abucha has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlexRussia has quit [Ping timeout: 272 seconds]
passcod has quit [Remote host closed the connection]
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
arup_r is now known as Guest90449
passcod has joined #ruby
codecop has joined #ruby
ruurd has joined #ruby
firstdayonthejob has joined #ruby
Guest90449 is now known as arup_r
bMalum has quit [Quit: bMalum]
bMalum has joined #ruby
baweaver has joined #ruby
Nick_ZWG has quit [Read error: Connection reset by peer]
bMalum has quit [Client Quit]
moei has joined #ruby
Nick_ZWG has joined #ruby
duckpupp1 has joined #ruby
blackmesa has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
duckpupp1 has quit [Ping timeout: 264 seconds]
ta has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
vigintas has joined #ruby
kalusn has joined #ruby
abucha_ has joined #ruby
abucha has quit [Ping timeout: 240 seconds]
bluOxigen has left #ruby [#ruby]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
NeverDie has quit [Quit: http://radiux.io/]
symm- has joined #ruby
Coldblackice has joined #ruby
Pupp3tm4_ has joined #ruby
kalusn has quit [Remote host closed the connection]
x-light has quit [Ping timeout: 240 seconds]
terlar has quit [Quit: WeeChat 1.3]
x-light has joined #ruby
Pupp3tm4st3r has quit [Ping timeout: 260 seconds]
symm- has quit [Ping timeout: 272 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
diegoaguilar has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
charliesome has joined #ruby
sgambino has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krzkrzkrz has quit [Read error: Connection reset by peer]
Bloomer has joined #ruby
DoubleMalt has joined #ruby
krzkrzkrz has joined #ruby
Prawnzy has quit [Ping timeout: 250 seconds]
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
devoldmx has quit [Remote host closed the connection]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
Xeago has joined #ruby
djbkd has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
yashinbasement has joined #ruby
relix has joined #ruby
charliesome has quit [Ping timeout: 250 seconds]
teclator has joined #ruby
charliesome has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
solars has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
fedexo has quit [Ping timeout: 246 seconds]
craysiii has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ahmetkapikiran has joined #ruby
pwnd_nsfw has quit [Ping timeout: 252 seconds]
krzkrzkrz has quit [Ping timeout: 260 seconds]
sheperson has joined #ruby
marr has joined #ruby
bruce_lee has joined #ruby
sudiptamondal has joined #ruby
rabbithole has joined #ruby
trosborn has joined #ruby
charliesome has joined #ruby
firstdayonthejob has quit [Ping timeout: 250 seconds]
scottstamp has quit [Ping timeout: 265 seconds]
peppers has quit [Quit: Leaving]
trosborn has quit [Ping timeout: 246 seconds]
pwnd_nsfw has joined #ruby
zenguy_pc has quit [Ping timeout: 240 seconds]
scottstamp has joined #ruby
Nick_ZWG has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ELCALOR_ is now known as ELCALOR
troulouliou_div2 has joined #ruby
shredding has joined #ruby
niftylettuce has quit [Quit: Connection closed for inactivity]
polysics has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Voker57 has joined #ruby
dionysus69 has joined #ruby
araujo has joined #ruby
duckpupp1 has joined #ruby
roshanavand has quit [Remote host closed the connection]
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
jgt1 has joined #ruby
build22 has joined #ruby
krzkrzkrz has joined #ruby
duckpupp1 has quit [Ping timeout: 265 seconds]
lkba has quit [Ping timeout: 240 seconds]
Eising_ is now known as Eising
acke has joined #ruby
brendan- has quit [Read error: Connection reset by peer]
_lazarevsky_ has quit [Quit: Page closed]
brendan- has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
haraoka has quit [Ping timeout: 244 seconds]
zenguy_pc has joined #ruby
roshanavand has joined #ruby
lipoqil has joined #ruby
skade has joined #ruby
vigintas has quit [Ping timeout: 264 seconds]
teclator has quit [Ping timeout: 246 seconds]
edj has quit [Quit: Page closed]
Thaumiel|Work has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
kalusn has joined #ruby
bahar has quit [Ping timeout: 264 seconds]
bahar has joined #ruby
pu22l3r_ has joined #ruby
d34th4ck3r has quit [Remote host closed the connection]
daivyk has quit [Ping timeout: 250 seconds]
timonv has quit [Ping timeout: 246 seconds]
nkts_ has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
catsquotl has joined #ruby
subscope has joined #ruby
<catsquotl> hi
<apeiros> moin
<catsquotl> can someone help me with something i don't understand?
<apeiros> maybe
<catsquotl> I have a small class
haraoka has joined #ruby
<catsquotl> that i wrapped inside a module
subscope has quit [Client Quit]
<apeiros> ?gist catsquotl
<ruboto> catsquotl, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<catsquotl> I later removed the module code
<catsquotl> now the class wont instantiate due to a typeerror
kimegede has joined #ruby
<apeiros> ok. gist the relevant code and the full error.
<catsquotl> just a minute i'll put it in a gist
A124 has quit [Ping timeout: 268 seconds]
<apeiros> you can gist the code and error in separate files (same gist, though), so code has proper highlighting
<yorickpeterse> also morning
<apeiros> moin yorickpeterse
skade has quit [Quit: Computer has gone to sleep.]
A124 has joined #ruby
nfk|laptop has joined #ruby
skade has joined #ruby
<apeiros> yorickpeterse, interesting change, do you know the rationale behind it?
<blubjr> hi yorickpeterse
axsuul has joined #ruby
teclator has joined #ruby
mikecmpbll has joined #ruby
ohaibbq has quit [Quit: Leaving...]
<Ox0dea> catsquotl: You didn't completely remove the module.
<Ox0dea> A module and a class aren't allowed to have the exact same name.
devoldmx has joined #ruby
<Ox0dea> >> Marshal.class # catsquotl
<ruboto> Ox0dea # => Module (https://eval.in/464163)
<catsquotl> this error comes after i removed all module related code
<Ox0dea> catsquotl: Marshal is part of Ruby core.
<catsquotl> does ruby hold on to modules it loaded before?
<Ox0dea> Am I muted?
<catsquotl> so it seems.. I just can't find how or why.
joonty has joined #ruby
<Ox0dea> catsquotl: Marshal is already a thing.
<catsquotl> ah...
<catsquotl> i see..
DEA7TH has joined #ruby
<catsquotl> so renaming it should fix it?
<Ox0dea> catsquotl: It worked before because you had your Marshal in its own namespace.
polysics has quit [Remote host closed the connection]
SamGerber has joined #ruby
<Ox0dea> YourModule::Marshal != ::Marshal
<catsquotl> duh... feeling stupid now..
<catsquotl> thanks so much
<Ox0dea> Happy to help.
<catsquotl> it had me baffled for days now
chthon has joined #ruby
user083 has quit [Ping timeout: 250 seconds]
devoldmx has quit [Ping timeout: 250 seconds]
arne has joined #ruby
<arne> hi, when having a hash containing a string containing a binary string, i cannot serialize it using json, any tips?
<arne> hm, json simply does not support binary data, bullocks.
stan has joined #ruby
<Ox0dea> catsquotl: What's your nick about, if you don't mind my prying? Axolotl? Quetzalcoatl?
<catsquotl> Quetzalcoatl
mndoci has joined #ruby
<Ox0dea> Is it ironic that "bullock" refers to a bull with no bollocks?
<catsquotl> didn't know how to spell it many years ago
<Ox0dea> That's adorable.
<catsquotl> but it's been my nick ever since
<Ox0dea> arne: Well, your timing couldn't've been worse; we were just (inadvertently) discussing the Marshal module.
<danneu> arne: you could base64 it
<arne> Ox0dea, ;) hi again
<arne> yeah i know that i could encode it, but im lazy and i built a generalized interface to my database, i have no clue to tell the client "this is binary data in base64"
<catsquotl> well my Marshal(l) is a pathfinder character..
Xeago has joined #ruby
cacam9621 has quit [Ping timeout: 255 seconds]
<arne> i was just assuming json would handle binary data
roshanavand has quit [Remote host closed the connection]
<Ox0dea> It's kinda dumb that it doesn't.
x-light has quit [Remote host closed the connection]
<arne> json was so cool when discovered it, but over time, there are soooo many flaw
<arne> s
<arne> like the missing date datatype
<Ox0dea> Put a little more YAML in your life.
<Ox0dea> (You'll thank you.)
cacam9621 has joined #ruby
<arne> well, im trying my best at my first webapp, learning a lot during it. but already did everything in json
mndoci has quit [Ping timeout: 246 seconds]
<arne> can you decode yaml in javascript ( i know that question is googleable, but you guys are always so nice )
Bloomer has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 260 seconds]
luriv has joined #ruby
subscope has joined #ruby
vigintas has joined #ruby
bruno- has joined #ruby
<danneu> yeah
User458764 has joined #ruby
mark2 has joined #ruby
bruno- is now known as Guest16584
blackmesa has joined #ruby
User458764 has quit [Client Quit]
SamGerber has quit [Ping timeout: 255 seconds]
<arne> well im having a angular frontend with a ruby backend, how to i get my data to the frontend side :(, sure this is not a ruby question
cacam9621 has quit [Ping timeout: 265 seconds]
axsuul has joined #ruby
<danneu> i'd just use json
senayar has joined #ruby
dANO- has joined #ruby
<danneu> though i don't understand your limitation
Peg-leg has joined #ruby
<arne> well i do, but when having binary data ( which i loooooooooooooooooove to ), this sucks
<sheperson> Does anyone know a good resource for teaching programming with Ruby?
<arne> and when having to encode it, how do i know that i have to encode it?
<apeiros> catsquotl: sorry, got interrupted at work. but I see somebody else already helped you :)
<sheperson> A friend of mine asked me to help her learn how to program
leafybas_ has joined #ruby
<catsquotl> Thats ok...
<sheperson> and I am looking for a book (or anything) for her
<sheperson> He knows nothing about programming
<sheperson> s/He/She
<catsquotl> learn to program by...
<catsquotl> pine?
<arne> sheperson, http://tryruby.org/levels/1/challenges/0 <= this is great, got me into ruby
Guest16584 has quit [Ping timeout: 260 seconds]
<apeiros> ?books sheperson
<ruboto> sheperson, You can find a list of recommended books at http://ruby-community.com/pages/links
<arne> danneu, i want to build an import mechanism, where a token acts as authorization, i got that one as random bytes in the database, how would you do it?
Bloomer has joined #ruby
<sheperson> yes, books
vigintas has quit [Read error: Connection reset by peer]
<Ox0dea> arne: Restrict the bytes to seven bits?
<arne> Ox0dea, your ideas are always great! how can anyone hire you!?
<Ox0dea> You fully halve the keyspace, so maybe you shouldn't do that.
TheHodge has joined #ruby
<danneu> i'd just keep it encoded in some text format
<Ox0dea> arne: I try to keep my suggestions balanced between great and mind-numbingly terrible.
<arne> but that would mean bad performance?
<danneu> no
<arne> why not?
<danneu> if you have millions and millions of rows, it will take up more space
mooru has joined #ruby
<arne> no actually even long strings would be fine :/ i just like the idea to have performance
tkuchiki has quit [Remote host closed the connection]
<arne> danneu, so you would just save a random string, like a password?
<arne> well, like an unhashed password.
sebstrax has joined #ruby
leafybas_ has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
<Ox0dea> arne: Why do you want an auth token to be binary...?
dhjondoh has quit [Quit: dhjondoh]
<danneu> yeah, for the same reason i would keep a UUID in text UUID format
<arne> i don't want it to be binary, i would encode it and decode it
vigintas has joined #ruby
<arne> just binary in database
<danneu> binary in db is just a space optimization
cacam9621 has joined #ruby
<danneu> roundtripping through encodings client side is far worse
al2o3-cr has quit [Ping timeout: 255 seconds]
<arne> okay, i gonna store it as string
Xzanron_ has joined #ruby
<danneu> what db are you using?
<arne> mysql
<Ox0dea> arne: A 40-character SHA1 is still 20 bytes encoded; the "savings" are scarcely worth it.
<arne> i would like to use mongodb, but my data is highyl relational
rdark has joined #ruby
galeido has joined #ruby
Feyn has joined #ruby
<danneu> i use the UUID column in postgres all the time for random numbers like tokens
<arne> yeah i wanted to stick to things i know, because i get paid a lot, lol.
<arne> otherwise i would've experimented.
ahmetkapikiran has quit [Quit: ahmetkapikiran]
Xzanron has quit [Ping timeout: 246 seconds]
duckpupp1 has joined #ruby
terlar has joined #ruby
baweaver has joined #ruby
<danneu> it's for the best
<danneu> nobody ever used mongo and, 6 months later, went "man this was a great decision"
avril14th has joined #ruby
Balllkenende has joined #ruby
<arne> yeah i figured
<danneu> "sure glad i used mongo instead of postgres, nectar of the gods"
<arne> but for small things i did, it was a charm
<arne> if mongo was always as great, or usable for relational stuff
<arne> that would be cool *_*
al2o3-cr has joined #ruby
cacam9621 has quit [Ping timeout: 252 seconds]
avril14th has quit [Remote host closed the connection]
avril14th has joined #ruby
<arne> i remember having a slow query on mongodb, and i was like "hm, this should be a key" *adds key in runtime*, works. that was impressive, but i always imagined it wouldn't be that easy in big projects
duckpupp1 has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
baweaver has quit [Ping timeout: 265 seconds]
<danneu> is that much different than `create index users (user_id)` in sql?
Fredrich010 has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
<arne> well, if i remember correctly the last time i did that, it ended up in a pile of slow queries. but again, that could've been because of the size
<danneu> as in the query planner got confused?
<arne> well, im not a database experts.. the querries were slow and piled up, i don't know more
tkuchiki has joined #ruby
astrobu__ has quit [Remote host closed the connection]
<arne> also import and export of mongodb always been faster, even for high amount of data.
sheperson has quit [Quit: sheperson]
colegatron has joined #ruby
user083 has joined #ruby
djbkd has quit [Ping timeout: 265 seconds]
<danneu> yeah, mongo is definitely more beginner friendly
<shevy> catsquotl do you have anything to do with cats?
<yorickpeterse> apeiros: re rationale, no
<Ox0dea> I think it's a much better.
elaptics`away is now known as elaptics
<Ox0dea> And it feels like it's opened the door for `.=`.
<arne> danneu, irony?
<apeiros> yorickpeterse: I wonder whether they thought "foo&.bar is closer to the current foo && foo.bar pattern"
<danneu> arne: ?
<Ox0dea> apeiros: Clearly?
<apeiros> other whether they detected a syntax issue
<arne> >danneu> yeah, mongo is definitely more beginner friendly
<catsquotl> @shecy uhm no
<danneu> what's the irony :p
<catsquotl> @shevy uhm no
trosborn has joined #ruby
<shevy> Ox0dea huh what happened there?
<yorickpeterse> apeiros: at this point I just think they're drunk
<Ox0dea> shevy: A discussion amongst the Japanese developers, it seems.
<shevy> hahaha
<shevy> so it is no longer "u.?profile.?thumbnails.?large" ?
<arne> danneu, im asking if you were serious about that
<Ox0dea> shevy: Nope; `u&.profile&.thumbnails&.large`.
<danneu> arne: yeah, i think it's uncontroversial to say that mongo has a better quickstart experience than a sql database
<shevy> hmmmm
<apeiros> danneu: uh, no
<apeiros> danneu: best quickstart is sqlite :-p
<shevy> I can't help it...
<shevy> I think both variants are ugly :(
<Ox0dea> shevy: Thomas Enebo suggested \
<apeiros> and it probably has better safety guarantees than mongo too *trollol*
<shevy> omg
nkts_ has quit [Ping timeout: 260 seconds]
<Ox0dea> I think he was sent to the issue tracker by Satan.
<shevy> or the php devs
<shevy> they use \\ as namespace right?
<Ox0dea> Well, just one, yeah?
<Ox0dea> You don't have to escape it in IRC. :P
Voker57 has quit [Remote host closed the connection]
<shevy> hmm I thought it was two
<shevy> like :: in ruby
<Ox0dea> Nah.
* apeiros uses / in his toy language
<apeiros> maps nicely to filenames
<Ox0dea> But that was the PHP logic.
<apeiros> yeah, friggin windows devs :D
<shevy> hehe
<apeiros> everbody knows that slash is the one true™ separator
<Ox0dea> apeiros, yorickpeterse: Halp? https://eval.in/464011
tomphp has joined #ruby
User458764 has joined #ruby
<Ox0dea> Where's it coming from?!
<apeiros> Ox0dea: if this is one of your asciiless codes I'm going to eyebleach
<Ox0dea> > asciiless
dhruvasagar has quit [Quit: ZNC - http://znc.in]
<shevy> the only ever useful code written by Ox0dea is related to the unicode snowman!
catsquotl has quit [Quit: Leaving]
<Ox0dea> Literally ever.
<apeiros> Ox0dea: blind guess - it's in C and not exposed
<Ox0dea> apeiros: I'm not sure I follow?
<yorickpeterse> Ox0dea: you're defining const_missing on Object, not an instance of Object
last_staff has quit [Quit: last_staff]
<apeiros> with regards to unicode emoji, this is all I've got to say: http://dilbert.com/strip/2015-11-06
<Ox0dea> yorickpeterse: Right, as intended.
<yorickpeterse> errr wait, that was supposed to be a class method yeah
<apeiros> yorickpeterse: it triggers correctly
<apeiros> i.e. it's the right place
tomphp has quit [Max SendQ exceeded]
cwong_on_irc has quit [Read error: Connection reset by peer]
cwong_on_irc has joined #ruby
<apeiros> Ox0dea: I mean that your super call causes the normal const lookup to resume and against expectations doesn't raise a nomethod error and instead triggers the normal const missing ex
<yorickpeterse> https://eval.in/464198 this works
tulak has quit [Remote host closed the connection]
tomphp has joined #ruby
<yorickpeterse> Ah wait
dhjondoh has joined #ruby
<apeiros> Ox0dea: and I assume it's got to do with how that all is implemented in C at the root level.
* Ox0dea waves hands too.
<apeiros> Ox0dea: and I assume your confusion is "why doesn't this raise a NoMethodError"?
sepp2k has joined #ruby
<apeiros> iirc method_missing behaves the same
Xzanron has joined #ruby
* apeiros checks
<Ox0dea> Nope, #method_missing is implemented correctly. :<
<Ox0dea> Constant resolution doesn't like to be poked this hard.
<apeiros> Ox0dea: nope, method_missing does the same
colegatron has quit [Quit: Leaving]
<apeiros> unless I misunderstand what you're confused about
nfk|laptop has quit [Ping timeout: 264 seconds]
codecop has quit [Remote host closed the connection]
Xzanron_ has quit [Ping timeout: 250 seconds]
nfk|laptop has joined #ruby
<apeiros> Ox0dea: https://eval.in/464204
leafybas_ has joined #ruby
duncannz has quit [Ping timeout: 240 seconds]
<apeiros> same behavior. there's no super, super in Object resumes normal behavior
<shevy> superman!
<apeiros> supermethodman!
<apeiros> wasn't there a singer who called himself methodman?
<shevy> yeah I think some rapper in the old days
<apeiros> ah right, wu-tang
<Ox0dea> apeiros: https://eval.in/464206
<Ox0dea> #const_missing and #method_missing do not exhibit the same behavior at all.
d34th4ck3r has joined #ruby
<Ox0dea> Object's #method_missing can be refined.
BSaboia has quit [Ping timeout: 265 seconds]
<Ox0dea> But that trace demonstrates that top-level #const_missing is absolutely the one on Object's singleton class.
<apeiros> Ox0dea: I'm not sure what your evalin should show. yes, constant resolution happens in class space, method resolution in instance space. obvious, no?
<Ox0dea> But then where is Object finding a supermethod for #const_missing?
musou has quit [Quit: Connection closed for inactivity]
<apeiros> same as method_missing - it resumes what would happen if you hadn't defined it at all.
krzkrzkrz has quit [Ping timeout: 246 seconds]
<apeiros> and wrt method_missing - same behavior if you work with main instead of Object
blackmesa has quit [Ping timeout: 240 seconds]
<apeiros> (i.e. main.singleton_class, aka toplevel self.singleton_class)
ebbflowgo has joined #ruby
nfk|laptop has quit [Ping timeout: 240 seconds]
<Ox0dea> >> method(:method_missing).super_method # You're right.
<ruboto> Ox0dea # => nil (https://eval.in/464207)
nfk|laptop has joined #ruby
leafybas_ has quit [Remote host closed the connection]
leafybas_ has joined #ruby
dravine has quit [Read error: Connection reset by peer]
dravine has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
rikkipitt has joined #ruby
tkuchiki has quit [Remote host closed the connection]
stamina has joined #ruby
tkuchiki has joined #ruby
leafybas_ has quit [Remote host closed the connection]
<Ox0dea> It doesn't look like the C is doing anything particularly fancy.
terlar has quit [Quit: WeeChat 1.3]
<Ox0dea> It just sends #const_missing, and the default implementation on Object is to raise a NameError.
cwong_on_irc has quit [Quit: Leaving.]
<Ox0dea> It's not creating any weird anonymous modules or anything.
terlar has joined #ruby
terlar has quit [Client Quit]
platzhirsch has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
[ddmp] has joined #ruby
charliesome has joined #ruby
terlar has joined #ruby
cacam9621 has joined #ruby
bruno- has joined #ruby
terlar has quit [Client Quit]
Fredrich010 has joined #ruby
bruno- is now known as Guest36046
tomphp has joined #ruby
charliesome has quit [Client Quit]
bonemind has joined #ruby
charliesome has joined #ruby
Thaumiel|Work has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
charliesome has quit [Client Quit]
RegulationD has joined #ruby
but3k4 has joined #ruby
Thaumiel|Work has joined #ruby
<Ox0dea> apeiros: I guess it's the "does what it would've done" aspect of your explanation that's not clicking for me; are we not actually redefining methods when we redefine them?
Guest36046 has quit [Ping timeout: 272 seconds]
minimalism has quit [Quit: leaving]
TheMoonMaster has quit [Ping timeout: 265 seconds]
shinenelson has quit [Ping timeout: 240 seconds]
cbetta has quit [Ping timeout: 240 seconds]
bjmllr has quit [Ping timeout: 240 seconds]
bjmllr has joined #ruby
cbetta has joined #ruby
colstrom has quit [Ping timeout: 240 seconds]
RegulationD has quit [Ping timeout: 260 seconds]
shinenelson has joined #ruby
zenguy_pc has quit [Ping timeout: 240 seconds]
colstrom has joined #ruby
<apeiros> Ox0dea: try removing the method
<Ox0dea> apeiros: It removes just fine.
<apeiros> also fun: Object.method(:const_missing).owner # => Module
<apeiros> Ox0dea: how did you remove it?
<Ox0dea> apeiros: Object.singleton_class.send :undef_method, :const_missing
terlar has joined #ruby
<Ox0dea> And then referencing an uninitialized constant tries to invoke Object.const_missing and fails.
<apeiros> use remove_method. undef inserts a method which prevents calling iirc
dikaio has quit [Quit: ........]
DEA7TH has quit [Quit: DEA7TH]
terlar has quit [Client Quit]
leafybas_ has joined #ruby
ahmetkapikiran has joined #ruby
<Ox0dea> It says it's not defined on Object or its singleton class.
leafybas_ has quit [Remote host closed the connection]
TheMoonMaster has joined #ruby
leafybas_ has joined #ruby
it_tard has joined #ruby
<Ox0dea> Because good reasons, surely.
<apeiros> mhm
<apeiros> curious, isn't it? :)
nfk|laptop has quit [Ping timeout: 250 seconds]
<Ox0dea> It's wrong... somehow.
<apeiros> but I think it answers the "are we not redefining?"
qba73 has joined #ruby
<Ox0dea> Aye, and thus invalidates your "does what it would've done" explanation for that magic supermethod.
<apeiros> I'm not sure I concur on that :D
d34th4ck3r has quit [Quit: zzz]
<Ox0dea> Have we not concluded that it is in fact Object's singleton class's #const_missing which is invoked if all else fails?
<apeiros> owner says it's not in Object. c source says same.
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> says it's Module. but removing that method says it doesn't exist
<apeiros> same for object
duckpupp1 has joined #ruby
<apeiros> which IMO rather reinforces that it's low level trapping which is triggered upon a missing constant
baweaver has joined #ruby
ldnunes has joined #ruby
<apeiros> and that defining your own Object.const_missing calling super invokes the same low level trapping
<apeiros> but reading the C source I'm not sure how that actually happens
<apeiros> because so far it looks like an ordinary method on Module
<apeiros> (class method)
lukaszes has joined #ruby
<Ox0dea> Well, that call to rb_vm_pop_cfunc_frame() in rb_mod_const_missing() is surely of some pertinence.
<Ox0dea> That's where I lose the plot, though. :<
but3k4 has quit [Read error: Connection reset by peer]
<apeiros> I fear I lack the time to do a proper analysis
<apeiros> but I'm interested in your findings when your done :D
<Ox0dea> I shall surely share them.
<Ox0dea> (I appreciate the subtle jab.)
charliesome has joined #ruby
favadi has quit [Quit: Textual IRC Client: www.textualapp.com]
duckpupp1 has quit [Ping timeout: 252 seconds]
baweaver has quit [Ping timeout: 240 seconds]
<dtordable> cool
ramfjord has joined #ruby
zenguy_pc has joined #ruby
<dtordable> is Ruby so complicated that has a dont-know-what-happens mode?
<Ox0dea> Ha.
<dtordable> heh...
<yorickpeterse> uguugugh I hate Socket
<yorickpeterse> another 17 methods to implement and test
<yorickpeterse> this time for Socket::AncillaryData
<dtordable> that makes it more interesting to me..
tomphp has joined #ruby
it_tard has quit [Read error: Connection reset by peer]
<yorickpeterse> at least the rdoc is usefuk
<yorickpeterse> * useful
it_tard has joined #ruby
tulak has joined #ruby
Rollabunna has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
infamos has quit [Ping timeout: 244 seconds]
sudiptamondal has quit [Quit: Leaving.]
abucha_ has quit [Remote host closed the connection]
lipoqil has quit [Quit: Connection closed for inactivity]
<dtordable> what is that rdpc?
Bloomer has quit [Remote host closed the connection]
abucha has joined #ruby
<yorickpeterse> I guess the nice part about implementing shit in rubysl is not having to write documentation ᕕ(ᐛ)ᕗ
<yorickpeterse> because this code totally explains itself
Bloomer has joined #ruby
peitera has quit [Quit: acy]
bruno-_ has joined #ruby
<dtordable> rdoc i mean...
tkuchiki has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 250 seconds]
giuseppesolinas has joined #ruby
<Ox0dea> yorickpeterse: How come rubysl is a thing?
<yorickpeterse> because Rubinius needs a stdlib?
<yorickpeterse> one that doesn't involve all the piles of shit from MRI
<Ox0dea> Fair enough.
<yorickpeterse> e.g. simple example: bigdecimal uses a bunch of MRI internals we can't support
<yorickpeterse> so we actually can't upgrade to the latest version atm
<yorickpeterse> until we port all that crap
<yorickpeterse> which I started over a year ago but never got to completing
troulouliou_div2 has quit [Ping timeout: 240 seconds]
<yorickpeterse> For a few Gems (e.g. openssl) we just copy MRI's stuff and make it work
Thaumiel|Work has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<yorickpeterse> but for others we do things in Ruby
<yorickpeterse> e.g. our Socket stdlib is pure Ruby
<yorickpeterse> (with some FFI)
<yorickpeterse> it's a massive time spunge, but so is keeping up with all MRI internals
cacam9621 has quit [Ping timeout: 250 seconds]
Thaumiel|Work has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
but3k4 has joined #ruby
chthon has quit [Quit: Ex-Chat]
<yorickpeterse> For Socket the problem is that its codebase is based on 1.8
<yorickpeterse> so basically everything added starting from 2009 is missing
<yorickpeterse> which is a lot
tomphp has joined #ruby
<yorickpeterse> and the people that worked on it didn't really keep things consistent, so I had to clean up a ton as well
<yorickpeterse> blegh
<gregf_> o_O an HTTP server in 8 lines of code
tkuchiki has quit [Remote host closed the connection]
<gregf_> i guess thats what its all about :( bind --> listen --> accept connections
<yorickpeterse> eh?
SCHAAP137 has quit [Remote host closed the connection]
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<gregf_> yorickpeterse: sorry for being so vague :/. i was reading the docs for 'socket'
<yorickpeterse> Ah
badeball_ is now known as badeball
<gregf_> the RFC for the HTTP protocol are prolly some 50 pages *exaggerating*, but the implementation is only 8 lines :/
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aganov has joined #ruby
karapetyan has quit []
<yorickpeterse> "+4,563 −1,870 " lol dat diffstat
<yorickpeterse> and still more to come
devoldmx has joined #ruby
karapetyan has joined #ruby
blackmesa has joined #ruby
weckl has joined #ruby
cacam9621 has joined #ruby
blaxter has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
tubuliferous has quit [Ping timeout: 250 seconds]
Xeago has quit [Remote host closed the connection]
leafybas_ has quit [Read error: Connection reset by peer]
leafybas_ has joined #ruby
ibouvousaime has joined #ruby
aspiers has joined #ruby
ibouvousaime has quit [Client Quit]
ibouvousaime has joined #ruby
_blizzy_ has joined #ruby
<yorickpeterse> Hm, I do like how the Socket::AncillaryData docs are lying
<yorickpeterse> " Socket::SCM_RIGHTS, "SCM_RIGHTS", "RIGHTS", :SCM_RIGHTS, :RIGHTS for SOL_SOCKET"
<yorickpeterse> Socket::AncillaryData.new(:INET, :TCP, :TIMESTAMP, '') # => works fine
peteykun has quit [Ping timeout: 260 seconds]
<yorickpeterse> which is also an SCM_ option
<ljarvis> Socket::Yorick
<yorickpeterse> Yet when you pass it :RIGHTS (= Socket::SCM_RIGHTS) it does barf
<yorickpeterse> like wtf
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<yorickpeterse> well, time to read MRI C code I guess
Billias has quit [Ping timeout: 246 seconds]
tomphp has joined #ruby
<yorickpeterse> it's kinda worrying I have to read C code to see how a Ruby method has to behave
abucha_ has joined #ruby
haraoka has quit [Remote host closed the connection]
Rickmasta has joined #ruby
abucha_ has quit [Remote host closed the connection]
abucha_ has joined #ruby
mndoci has joined #ruby
nettoweb has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
prestorium has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<ljarvis> gl master
<ljarvis> oh dear
hxegon has quit [Ping timeout: 272 seconds]
Fredrich010 has quit [Read error: Connection reset by peer]
bMalum has joined #ruby
abucha has quit [Ping timeout: 255 seconds]
skade has quit [Quit: Computer has gone to sleep.]
Fredrich010 has joined #ruby
<Ox0dea> Hypothetically, is there any way to circumvent the interpreter's preference for constants over no-arg method calls?
blackmesa has quit [Ping timeout: 260 seconds]
Billias has joined #ruby
abucha_ has quit [Ping timeout: 265 seconds]
User458764 has joined #ruby
<Ox0dea> To clarify, I'm trying to make `using Foo` use the method named Foo and not the module.
<yorickpeterse> Ox0dea: No, you can only do so by adding parenthesis
<yorickpeterse> Since the difference is determined on parser level
<Ox0dea> yorickpeterse: Right. There's also sticking one of the unary operators in to "catch" the call, but that's gross.
<Ox0dea> Well, to catch the reference and invoke the call.
mndoci has quit [Ping timeout: 260 seconds]
<yorickpeterse> what on earth are you trying to do?
bruno-_ has quit [Read error: Connection reset by peer]
<Ox0dea> Module has #included, #extended, and #prepended, but not #used. :<
bruno- has joined #ruby
<yorickpeterse> what would #used do?
<Ox0dea> Be the hook for `using`?
bruno- is now known as Guest65735
<yorickpeterse> eh?
auzty has quit [Remote host closed the connection]
<yorickpeterse> "what does this method do" "it's the hook for X" <- that doesn't describe behaviour
<Ox0dea> `include Foo` tries to invoke `Foo.included`...
<yorickpeterse> Aah
<ljarvis> eyah that does kinda make sense
<ljarvis> eyah! like a cowboy
<yorickpeterse> brrrr, refinements
<Ox0dea> #dealwithem
<yorickpeterse> but hey clearly MRI makes good design decisions
<yorickpeterse> right
<yorickpeterse> RIGHT?
<yorickpeterse> see recent .?
<yorickpeterse> I mean &.
<yorickpeterse> or was it !. by now?
<yorickpeterse> hm, maybe it will be changed to .(╯°□°)╯︵ ┻━┻ tomorrow
<ljarvis> yeh that .? is absolute bollocks
<Ox0dea> Ruby 3 is the new Perl 6.
<yorickpeterse> some_model.(╯°□°)╯︵ ┻━┻address.(╯°□°)╯︵ ┻━┻.street # just like Rails
<Ox0dea> ljarvis: No such thing.
<ljarvis> you knew what i mean pedant
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> (By which I mean it's gonna take forever to arrive and everybody'll've moved on. :<)
<ljarvis> i would not have
<yorickpeterse> Nah
<yorickpeterse> It will be in Ruby 2.3
<Ox0dea> It *is* in 2.3.
<yorickpeterse> or maybe even 2.2.4
<Ox0dea> I was talking about 3.0.
<ljarvis> yeah, and 2.3 will be release christmas day 2021
<yorickpeterse> because fukit why not
<ljarvis> herp derp
<yorickpeterse> Christmas versioning really is annoying
<yorickpeterse> still no clue if shit's going to break or not
<ljarvis> but yeah seriously, why not a fucking method name
<yorickpeterse> I don't get why people just don't use a fucking if statement
<ljarvis> well that too
<yorickpeterse> or maybe stop writing Ruby like they're writing jQuery
<Ox0dea> Someone needs more Sandi Metz in their life.
<yorickpeterse> it's called Ruby on Rails, RUBY on Rails, not jQuery on Rails
<ljarvis> also try() is a code smell, why the hell that was ever added is beyond me
<ljarvis> try should function like try! ffs
bluOxigen has joined #ruby
<ljarvis> NUBS EVERYWHERE
<ljarvis> *signs off*
bluOxigen has left #ruby [#ruby]
<yorickpeterse> Rails really is it's own language at this point
<ljarvis> hey, recruiters believe that already so why not
<yorickpeterse> You can hardly call it "just Ruby" since it adds so many things and forces people to work in such weird ways at times
<yorickpeterse> I eagerly away the day until we have BasicObject::Base
<ljarvis> to be fair we have an incredibly "Rubyish" rails app
<ljarvis> nooo
tomphp has joined #ruby
<yorickpeterse> String::Base
<yorickpeterse> String::Base#create_new_string_from_ruby_string
<ljarvis> Base::Base
duckpupp1 has joined #ruby
<ljarvis> Base::BasicBase
<ljarvis> ok I'm off, bye
<yorickpeterse> there should also be base eigenclasses
<yorickpeterse> beigenclasses
bMalum has quit [Quit: bMalum]
gizmore has joined #ruby
yardenbar has joined #ruby
norc has joined #ruby
joonty has quit [Quit: joonty]
<Ox0dea> >> 42.times.reduce([]){|_|_.singleton_class}.to_s[/\W+$/]
<ruboto> Ox0dea # => ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" (https://eval.in/464309)
CoderPuppy has joined #ruby
joonty has joined #ruby
duckpupp1 has quit [Ping timeout: 260 seconds]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Balllkenende is now known as Ballkenende
Ballkenende is now known as Balllkenende
ahmetkapikiran has quit [Quit: ahmetkapikiran]
Bloomer has quit [Remote host closed the connection]
lukaszes has joined #ruby
adac has joined #ruby
cpup has quit [Ping timeout: 240 seconds]
subscope has joined #ruby
<norc> Just to verify I didnt say nonsense.
<norc> >> NilClass.new
<ruboto> norc # => undefined method `new' for NilClass:Class (NoMethodError) ...check link for more (https://eval.in/464311)
snebel has joined #ruby
<yorickpeterse> nil is a singleton
<norc> Is this failing because NilClass is only a singleton class and thus cant be constructed?
<snebel> Hi @All
<yorickpeterse> norc: technically it doesn't work because MRI just removes the "new" method
<yorickpeterse> `nil` basically refers to an already existing instance
<snebel> I'm trying to understand if is possible to call a class method from a class variable within a class
<yorickpeterse> I guess you could consider it sort of like a global variable
<snebel> Not sure even if this really make sense..
dzejrou has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
<yorickpeterse> snebel: you'd have to move the variable after the method definition
<yorickpeterse> since right now the method is called before it's defined
tomphp has joined #ruby
<norc> yorickpeterse: Let me see whether I can apply the gathered knowledge from my book to figure this one out. :)
<snebel> ah cool! just that…. I didn't realize
<snebel> cause i have the feeling for method when calling other method order doesn't matter
<snebel> but now not sure completely
Billias has quit [Read error: Connection reset by peer]
ghostbox has joined #ruby
Billias has joined #ruby
monthy has joined #ruby
<norc> yorickpeterse: In YARV I see a putnil here, so this seems to be optimized away directly at compile time.
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<yorickpeterse> snebel: it does when you call methods on class level
syath has joined #ruby
<yorickpeterse> norc: correct
krzkrzkrz has joined #ruby
<norc> Damn this RubyVM::InstructionSequence is neat. :)
TDJACR has quit [Ping timeout: 246 seconds]
<Ox0dea> Ain't it just?
<yorickpeterse> MRI, Rubinius and JRuby all have special instructions for `nil` IIRC
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has joined #ruby
<snebel> cool! really appreciated i always have good answers here even if my questions may be are not very interesting.. +1 for ruby community!
<Ox0dea> >> RubyVM::INSTRUCTION_NAMES.size # norc
<ruboto> Ox0dea # => 88 (https://eval.in/464312)
trosborn has quit [Quit: trosborn]
peteykun has joined #ruby
giuseppesolinas has joined #ruby
<norc> Ox0dea: Just started on the topic today on the train.
DEA7TH has joined #ruby
blackmesa has joined #ruby
<Ox0dea> norc: `bitblt` and `answer` are the best instructions.
<Ox0dea> Also, I have no idea why `toregexp` is one.
ahmetkapikiran has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
charliesome_ has joined #ruby
TDJACR has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
dhjondoh has quit [Quit: dhjondoh]
pawnbox has joined #ruby
Xeago has joined #ruby
* zoskia mumbles "xps vs mbp" in his sleep.
<norc> Ox0dea: One bit at a time. Was the first time I heard about stack machines today. :)
<norc> Before I dive into weird "joke" (is this for real) vm instructions. :
roshanavand has joined #ruby
it_tard is now known as nfk|laptop
northfurr has joined #ruby
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> norc: Ah, my apologies; it's not often one accidentally stumbles onto that particular Ruby class. :P
<Ox0dea> They're real, but you have to compile Ruby with -DSUPPORT_JOKE, and you can't not get __goto__ support.
<norc> "Ruby Under a Microscope" led me under that stone. :)
<Ox0dea> Ah, yep, that'd do it.
shredding has quit [Ping timeout: 250 seconds]
SCHAAP137 has joined #ruby
donske has joined #ruby
donske has quit [Max SendQ exceeded]
roshanavand has quit [Ping timeout: 265 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
FDostoyevsky has joined #ruby
build22 has quit [Remote host closed the connection]
EasyCo has quit [Quit: Connection closed for inactivity]
karapetyan has quit [Remote host closed the connection]
DexterLB has joined #ruby
charliesome has joined #ruby
karapetyan has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
nfk|laptop has quit [Read error: Connection reset by peer]
nfk|laptop has joined #ruby
yardenbar has quit [Remote host closed the connection]
Xzanron has quit [Ping timeout: 250 seconds]
mndoci has joined #ruby
karapetyan has quit [Remote host closed the connection]
klingeldraht has quit [Ping timeout: 250 seconds]
leafyba__ has joined #ruby
leafybas_ has quit [Read error: Connection reset by peer]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Coldblackice has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
zenguy_pc has quit [Ping timeout: 240 seconds]
mndoci has quit [Ping timeout: 265 seconds]
SCHAAP137 has joined #ruby
karapetyan has joined #ruby
wprice has joined #ruby
Voker57 has joined #ruby
mooru has quit [Ping timeout: 264 seconds]
build22 has joined #ruby
solocshaw has joined #ruby
finisherr has quit [Quit: finisherr]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
moeabdol has joined #ruby
duckpupp1 has joined #ruby
krzkrzkrz has quit [Ping timeout: 244 seconds]
radgeRayden_ has joined #ruby
skweek has quit [Ping timeout: 265 seconds]
gizmore has quit [Ping timeout: 264 seconds]
weihan has joined #ruby
ahmetkapikiran has joined #ruby
radgeRayden has quit [Ping timeout: 244 seconds]
tvw has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
Xzanron has joined #ruby
duckpupp1 has quit [Ping timeout: 240 seconds]
solocshaw1 has joined #ruby
zenguy_pc has joined #ruby
ramfjord has joined #ruby
arup_r has quit [Quit: Leaving]
solocshaw has quit [Ping timeout: 246 seconds]
solocshaw1 is now known as solocshaw
Jardayn has joined #ruby
bigmac_ has quit [Quit: Leaving]
miskatonic has joined #ruby
Icey has joined #ruby
prestorium_ has joined #ruby
Xeago has quit [Remote host closed the connection]
Balllkenende has quit [Remote host closed the connection]
jdawgaz has joined #ruby
Balllkenende has joined #ruby
bahar has quit [Changing host]
bahar has joined #ruby
tk__ has joined #ruby
weihan has quit [Ping timeout: 260 seconds]
gizmore has joined #ruby
sdothum has joined #ruby
prestorium has quit [Ping timeout: 272 seconds]
sankaber has joined #ruby
sankaber has quit [Remote host closed the connection]
bodik has joined #ruby
sankaber has joined #ruby
<bodik> hi, can i somehow log some selfid or something through logger ? . when i try logger.debug(self) or self.inspect the thread hangs ;(
Feyn has quit [Quit: Leaving]
sankaber has quit [Client Quit]
VladGh has quit [Quit: leaving]
<norc> bodik: Can you provide some context?
mdih has joined #ruby
mdih has quit [Max SendQ exceeded]
kab has joined #ruby
<norc> >> Logger.new(STDOUT).debug(self)
<ruboto> norc # => uninitialized constant Logger (NameError) ...check link for more (https://eval.in/464340)
<norc> >> require 'logger', Logger.new(STDOUT).debug(self)
<ruboto> norc # => uninitialized constant Logger (NameError) ...check link for more (https://eval.in/464341)
kab has left #ruby [#ruby]
<norc> >> require 'logger'; Logger.new(STDOUT).debug(self)
<ruboto> norc # => D, [2015-11-06T12:58:10.748752 #25198] DEBUG -- : main ...check link for more (https://eval.in/464342)
mdih has joined #ruby
lubarch has joined #ruby
FDostoyevsky has quit [Quit: WeeChat 1.3]
VladGh has joined #ruby
_stu_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
yashinbasement has quit [Ping timeout: 246 seconds]
bMalum has joined #ruby
rabbithole has quit [Ping timeout: 255 seconds]
Spami has joined #ruby
mattwildig has joined #ruby
<apeiros> norc: seems to work? maybe your object's #inspect is bugged?
synthroid has joined #ruby
s00pcan has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
monthy has quit [Read error: Connection reset by peer]
<norc> apeiros > bodik
Balllkenende has quit [Remote host closed the connection]
<apeiros> ah, I see. 10min no answer to your follow up question. I guess bodik doesn't care too much for an answer then.
tvw has quit []
tvw has joined #ruby
<norc> Some channels have a response time of a few hours. :)
s00pcan has joined #ruby
<apeiros> norc: sure, but that's for the person who asks. not for those who help.
<apeiros> if somebody's not willing to check back in sensible intervals, then I can't be bothered to help them
<norc> True. I mean I am not hurt either way, each interaction helps me figure out bits and pieces about Ruby. :)
nateberkopec has joined #ruby
kobain has joined #ruby
karapetyan has quit [Remote host closed the connection]
build22 has quit [Remote host closed the connection]
fgo has joined #ruby
VladGh has quit [Quit: leaving]
karapetyan has joined #ruby
yqt has joined #ruby
dANO- has quit []
VladGh has joined #ruby
polysics has joined #ruby
polysics has quit [Client Quit]
joonty has quit [Quit: joonty]
avril14th has quit [Read error: Connection reset by peer]
rippa has joined #ruby
rikkipit_ has joined #ruby
segfalt has joined #ruby
rikkipitt has quit [Ping timeout: 240 seconds]
<yorickpeterse> "1 file, 43 examples, 43 expectations, 0 failures, 0 errors" yay, that only took 4-something hours
professor_soap has joined #ruby
professor_soap has quit []
<yorickpeterse> now to clean up this giant case/else statement
dionysus69 has quit [Ping timeout: 240 seconds]
sanjayu has quit [Ping timeout: 255 seconds]
rabbithole has joined #ruby
zapata_ has joined #ruby
<shevy> did you inherit that codebase?
goodcodeguy has joined #ruby
<shevy> norc are you really using ruby :)
<yorickpeterse> shevy: No, this is what I wrote
<shevy> ah ok
blackmesa has quit [Ping timeout: 240 seconds]
<yorickpeterse> it's a pretty much literal transaltion of MRI's C implementation
<yorickpeterse> without any proper cleanups yet
troulouliou_div2 has joined #ruby
<norc> shevy: If I say no, will it stop your comments?
zapata has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
abucha has joined #ruby
dionysus69 has joined #ruby
mostlybadfly has joined #ruby
RegulationD has joined #ruby
mndoci has joined #ruby
Balllkenende has joined #ruby
davedev24 has joined #ruby
Jackneill has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roshanavand has quit [Ping timeout: 264 seconds]
RegulationD has quit [Ping timeout: 250 seconds]
Balllkenende has quit [Ping timeout: 244 seconds]
mattwildig has quit [Remote host closed the connection]
mndoci has quit [Ping timeout: 260 seconds]
postmodern has quit [Quit: Leaving]
jdawgaz has joined #ruby
AlexRussia has joined #ruby
<ljarvis> yorickpeterse: what even is that
Guest53 has joined #ruby
prestorium_ is now known as prestorium
* ljarvis passes yorickpeterse some methods
<shevy> norc I'll remain sceptical but curious :)
k3asd` has joined #ruby
<ljarvis> oh "now to clean up" you get a pass
pu22l3r_ has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
build22 has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Xeago has joined #ruby
duckpupp1 has joined #ruby
joonty has joined #ruby
sdothum has joined #ruby
rzsd has joined #ruby
SamGerber has joined #ruby
diegoaguilar_ has joined #ruby
diegoaguilar has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
DoctorOsman has joined #ruby
<DoctorOsman> GENERAL SERVER ?
DoctorOsman has left #ruby [#ruby]
duckpupp1 has quit [Ping timeout: 250 seconds]
Rodya_ has joined #ruby
yalue has joined #ruby
<yorickpeterse> ljarvis: welcome to Socket
anisha has joined #ruby
atomical has joined #ruby
<ljarvis> no tnx *walks to exit*
<yorickpeterse> now to doc a bunch of things
solocshaw has quit [Ping timeout: 255 seconds]
<ljarvis> and by cleaned up you mean still a giant constructor. Can't you lazy load some of the ivars?
<yorickpeterse> lazy load? wtf
<yorickpeterse> No
Balllkenende has joined #ruby
luriv_ has joined #ruby
<yorickpeterse> Shit like this is sadly kinda required if you want to support stdlib
dstarh has joined #ruby
kimegede has quit [Quit: Leaving...]
<ljarvis> :/
bMalum has quit [Quit: bMalum]
northfurr has quit [Quit: northfurr]
<ljarvis> im not sure why the suggestion was so baffling but does seem like you're having to jump through hoops so i'm not envious
Xeago has quit [Remote host closed the connection]
<yorickpeterse> haha
<yorickpeterse> Once I have everything implemented I do intend to do a final cleanup
<yorickpeterse> Probably at that point there are quite a few bits that are re-used
<apeiros> "final". haha.
<yorickpeterse> right now I just dump all those in a Helpers module, but that one should be broken up
<yorickpeterse> apeiros: "final" as in "final before I ship it"
<apeiros> akak "final before I have my breakdown"? :D
<norc> shevy: But yes, I have written a fully working production library in Ruby so far.
<apeiros> *aka
bMalum has joined #ruby
<norc> shevy: Nothing major in the grand scheme of things, and developing Ruby applications is not my main occupation.
<ddv> size of the intialize is insane
<ljarvis> :D
luriv has quit [Ping timeout: 260 seconds]
Macaveli has joined #ruby
<norc> Most other things in Ruby Im doing are small in comparison.
<apeiros> norc: in the grand scheme of things nothing man made ever was nor ever will be major :(
<yorickpeterse> brace yourselves, the "methods should be no more than 5 lines" people are coming
<ddv> yes
<ljarvis> norc: don't feel any obligation to explain yourself
<ddv> well 10 or something
<apeiros> 3
inteq has quit [Read error: Connection reset by peer]
<apeiros> if you have more than a single line between your def/end, yer doin it wröng!
<yorickpeterse> Yeah
<yorickpeterse> Every method should just contain 1 method call to something else
<ddv> you can joke about it but it way too large
<yorickpeterse> then it's easy to read
<apeiros> I like decomposing stuff into functional units
<apeiros> but sometimes locality beats that
SamGerber has quit [Ping timeout: 265 seconds]
<yorickpeterse> ddv: there are a few things you're forgetting here
<yorickpeterse> 1) this isn't some dumb Rails app
<yorickpeterse> 2) this is low level stuff where I have to replicate MRI behaviour, which is super gnarly
<yorickpeterse> 3) delegating everything to extra methods can lead to negative performance impacts
<ddv> excuses
<ddv> :)
<yorickpeterse> But yes, there's work to be done
<apeiros> decomposing a 50 line method into 10 5 line methods which are each called once does not always increase readability.
ahmetkapikiran has quit [Quit: ahmetkapikiran]
ruurd has joined #ruby
<yorickpeterse> apeiros: shut up, I read this book that says otherwise
* apeiros hands yorickpeterse a torch
<apeiros> print is dead
<ljarvis> did you just use a method overhead excuse
JDiPierro has joined #ruby
<apeiros> s/excuse//
<ljarvis> the struggle is real
<yorickpeterse> ljarvis: that was a joke reference to the 1 method call per method call
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<yorickpeterse> But there's a hint of truth to it
snebel has quit [Quit: Leaving]
<norc> yorickpeterse: Just as a taste where one of the core functions of the ruby implementation "slightly" exceeds that common 10 lines idiom.
<yorickpeterse> norc: nothing beats parse.y
<ljarvis> you gotta be doing some deep ass level of nesting to care in most scenarios
<ljarvis> deep ass is regretable part of that sentence
<apeiros> norc: I think C isn't considered wrt 5lines/method
<ljarvis> in b4 that big ass method in Ruby that I forgot the location of
<ljarvis> benchmark?
<ljarvis> it was like 500 lines or something
<ljarvis> optionparser has some of those
<norc> apeiros: Commonly C functions should be small too. The thing most of the time is either readability (so you dont have to scroll over a function to get an impression what it does), or general code style.
ahmetkapikiran has joined #ruby
<norc> The issue is just: Small functions dont lead to better code. But good code often consists of small functions.
<ljarvis> fat c functions dont offend me, i've seen too many pointer mistakes to care
mist is now known as groupcat
groupcat is now known as group
ruurd has quit [Read error: Connection reset by peer]
group is now known as Guest23234
ghostbox has quit [Read error: Connection reset by peer]
build22 has quit []
<norc> So when rubocop complains about large methods, it can (!) be an indicator of bad code design. Simply shortening the functions does not necessarily address that.
Pupeno has joined #ruby
Pupeno has joined #ruby
<yorickpeterse> finally somebody who doesn't just go "SHORTER IS BETTER BECAUSE RUBOCOP SAYS SO"
<ljarvis> but my boss says so
ruurd has joined #ruby
<apeiros> norc: precisely
<ljarvis> haha just kidding i dont have a boss
Xeago has joined #ruby
<yorickpeterse> ljarvis: you do
VladGh has quit [Remote host closed the connection]
<yorickpeterse> The European railroad schedules :>
<bougyman> I generally see a handful of # rubocop:disable Metrics/LineLength and three or fewer Metrics/MethodLength is a normal project.
<ljarvis> yorickpeterse: right in the feels :(
kp666 has quit [Remote host closed the connection]
<bougyman> also I set my LineLength to 110
jgt2 has joined #ruby
<ljarvis> :o
<ljarvis> hethen!
<ljarvis> heathen?
abucha has quit [Remote host closed the connection]
<bougyman> hey, 220 fits find in a side-by-side diff on my screen.
<bougyman> get a better monitor.
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ljarvis> mine is 120
<ljarvis> so yeah
<bougyman> :)
abucha has joined #ruby
<ddv> we can't be all geniuses like me
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ytti> resolutions keep getting better
<ytti> and my eye sight keeps getting worse
_blizzy_ has quit [Ping timeout: 246 seconds]
<yorickpeterse> The whole resolution argument is bollocks but let's not go there
<ljarvis> NO
<ljarvis> lets go there
jgt1 has quit [Ping timeout: 240 seconds]
<ljarvis> get a 5k imac and be done with it
Guest53 has joined #ruby
skade has joined #ruby
TheNet has joined #ruby
magic__ has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest53 has quit [Client Quit]
duckpupp1 has joined #ruby
gusTester has joined #ruby
araujo_ has joined #ruby
InternetFriend has joined #ruby
<dtordable> ñresolution are getting strange
SamGerber has joined #ruby
araujo_ has quit [Max SendQ exceeded]
subscope has joined #ruby
<yorickpeterse> yay I get to check off one more method of my TODO
<yorickpeterse> 90 more to go
araujo_ has joined #ruby
luriv_ has quit [Ping timeout: 246 seconds]
ruurd has quit [Read error: Connection reset by peer]
kimegede has joined #ruby
<dtordable> screens are getting comfortable nowadays
Guest53 has joined #ruby
big|bad|wolf has joined #ruby
araujo has quit [Ping timeout: 255 seconds]
<norc> I still prefer a pillow at night though.
treehug88 has joined #ruby
<norc> But I'm oldschool when it comes to things like that so...
sankaber has joined #ruby
ElFerna has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
abucha_ has joined #ruby
nopolitica has quit [Quit: leaving]
shredding has joined #ruby
<yorickpeterse> lol
skade has quit [Ping timeout: 260 seconds]
<yorickpeterse> Yeah I'm not going to replicate that
<yorickpeterse> fukit it's just #inspect
jdawgaz has joined #ruby
umgrosscol has joined #ruby
Xeago has quit [Remote host closed the connection]
etcetcetc has quit [Ping timeout: 246 seconds]
nateberkopec has quit [Quit: Leaving...]
spew has joined #ruby
abucha has quit [Ping timeout: 265 seconds]
blaxter has quit [Quit: foo]
maikowblue has joined #ruby
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> well it's not just about resolution but also about how much information your brain can process. since I have a bad brain, I happily accepted 80 chars per lines :)
sankaber has quit [Remote host closed the connection]
ruurd has joined #ruby
sankaber has joined #ruby
pdoherty_ has quit [Ping timeout: 240 seconds]
<yorickpeterse> no but everybody has HiDPI these days
<yorickpeterse> so it's totally OK to dump 200 characters on a line
<yorickpeterse> just like you do when writing in a book
nertzy has joined #ruby
<yorickpeterse> everybody has big books these days
<yorickpeterse> I personally prefer 4 meter wide books, it's really pleasant to write everything on a single line
<norc> shevy: Just do some Java coding in between your gems. After a week, you will even ignore the width of your monitor if you follow some peoples conventions..
skweek has joined #ruby
ruurd has quit [Client Quit]
cdg has joined #ruby
<shevy> I can't do java... it's way too verbose
babblebre has joined #ruby
Guest65735 has quit [Ping timeout: 240 seconds]
klingeldraht has joined #ruby
to_json has joined #ruby
to_json has joined #ruby
ruurd has joined #ruby
Xeago has joined #ruby
rbennacer has joined #ruby
gusTester has left #ruby [#ruby]
ruurd has quit [Read error: Connection reset by peer]
<ddv> You need to tilt your monitor to work with Java
mattwildig has joined #ruby
<ddv> Because of its verboseness
cfloare has quit [Ping timeout: 252 seconds]
cgfbee has quit [Ping timeout: 272 seconds]
ibouvousaime has quit [Ping timeout: 265 seconds]
hanmac has quit [Ping timeout: 246 seconds]
ibouvousaime has joined #ruby
ruurd has joined #ruby
jamesaxl has joined #ruby
rbennacer has quit [Remote host closed the connection]
roshanavand has joined #ruby
ruurd has quit [Client Quit]
kies^ has quit [Ping timeout: 260 seconds]
<User458764> Hi, I want to do basic cryptography my goal is have an url with a cryptographic code that I can decrypt with key and give me the correct address mail I am looking for. It is a mailing list unsubscribe system
<User458764> How do I do that?
jamesaxl has quit [Client Quit]
TheHodge has quit [Quit: Connection closed for inactivity]
kfpratt has joined #ruby
zenguy_pc has quit [Ping timeout: 240 seconds]
tlaxkit has joined #ruby
jamesaxl has joined #ruby
ElFerna has quit [Max SendQ exceeded]
dionysus69 has quit [Ping timeout: 265 seconds]
<ddv> User458764: this won't end well
saddad has joined #ruby
saddad has quit [Client Quit]
<User458764> ddv ok so what is the solution? I have an url like unsubscribe.mydomain.com/<code> and would like to retrieve the mail?
roshanavand has quit [Ping timeout: 240 seconds]
brendan- has quit [Excess Flood]
tinyhippo is now known as happyhippo
jamesaxl|2 has joined #ruby
ruurd has joined #ruby
agentmeerkat has quit [Ping timeout: 255 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agentmeerkat has joined #ruby
peteykun has quit [Ping timeout: 246 seconds]
whippythellama has joined #ruby
idefine has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
bigmac has joined #ruby
freerobby has joined #ruby
<bigmac> i have 2 arrays, how do i find the difference between the 2...
<bigmac> a.size=262144
<bigmac> b.size=262145
idefine_ has joined #ruby
<bigmac> there i tried a-b but it shows nothing
idefine has quit [Read error: Connection reset by peer]
<bigmac> oh, it worked lol
hanmac has joined #ruby
malconis has joined #ruby
bMalum has quit [Read error: No route to host]
abucha has joined #ruby
<ddv> bigmac would be nice
<ddv> still stuck at work tho
<bigmac> wish it was served all day
Cyberheb has joined #ruby
<ddv> lol
Cyberheb has left #ruby [#ruby]
nfk|laptop has quit [Read error: Connection reset by peer]
<bigmac> is there a way i can make irb, silent
bMalum has joined #ruby
idefine_ has quit [Read error: Connection reset by peer]
<bigmac> a.each{|x| }
<bigmac> this block will output the contents of a,
RegulationD has joined #ruby
<bigmac> a.each{|x| }; sleep 1
<bigmac> this will now be silent
nfk|laptop has joined #ruby
idefine has joined #ruby
TheNet has quit [Remote host closed the connection]
cgfbee has joined #ruby
kp666 has joined #ruby
cfloare has joined #ruby
zenguy_pc has joined #ruby
abucha_ has quit [Ping timeout: 240 seconds]
timmow has joined #ruby
<yorickpeterse> "TypeError: size differ. expected as sizeof(int)=4 but 3"
<yorickpeterse> lol what an error
<norc> bigmac: You can either set IRB.conf[:PROMPT][:DEFAULT][:RETURN] = ""
rikkipit_ has quit [Quit: Leaving...]
<norc> bigmac: Or if you just want it once, append something like "and nil" to your statement.
<bigmac> ok
yardenbar has joined #ruby
<bigmac> ty
ruurd has joined #ruby
roshanavand has joined #ruby
roshanavand has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 246 seconds]
tomaz_b has joined #ruby
roshanavand has joined #ruby
timmow has quit [Client Quit]
RegulationD has quit [Ping timeout: 260 seconds]
TomPeed has joined #ruby
bdnelson has joined #ruby
<tomaz_b> hi guys... i need some newbie help. how could i know which gem would allow me to require this as -> require 'xsd/mapping'
timmow has joined #ruby
<tomaz_b> i need some functionality from it... but i am not really sure which one is it
krzkrzkrz has joined #ruby
timmow has quit [Remote host closed the connection]
<apeiros> tomaz_b: if the author is sane, either xsd, or xsd-mapping
timmow has joined #ruby
idefine_ has joined #ruby
idefine has quit [Read error: Connection reset by peer]
lubarch has quit [Quit: leaving]
blackmesa has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
Xeago has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
_blizzy_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
<tomaz_b> apeiros: thanks
tk__ has quit [Quit: ばいばい]
<apeiros> (if it's neither, that consequently means the author is not sane and should be hit with the bug-stick)
Kero has quit [Ping timeout: 264 seconds]
freerobby has quit [Quit: Leaving.]
dharmdip_ has joined #ruby
psy_ has joined #ruby
freerobby has joined #ruby
<tomaz_b> i am affraid it is this last option
psy_ has quit [Max SendQ exceeded]
<tomaz_b> :/
Kero has joined #ruby
psy_ has joined #ruby
ruurd has joined #ruby
<apeiros> tomaz_b: I'd use google then. site:rdoc.info Xsd::Mapping
dharmdip_ has quit [Client Quit]
karapetyan has quit [Ping timeout: 255 seconds]
decoponio has joined #ruby
musou has joined #ruby
<ljarvis> bug stick
<apeiros> tomaz_b: or does that require succeed in any of your projects?
<ljarvis> doesn't sound very useful if it's just a stick
shum has joined #ruby
norc has quit [Ping timeout: 246 seconds]
<apeiros> ljarvis: it's painful enough if you stab the person in the eye with it
<ljarvis> ah yes that'll do it
lavros has joined #ruby
sdothum has quit [Read error: Connection reset by peer]
mark2 has left #ruby ["PART #RubyOnRails :PART #jquery :PART #reactjs :PART ##javascript :PART #elixir-lang :PART #debian :PART #zsh :PART #nethunter :PONG :sendak.freenode.net"]
<tomaz_b> i am following this -> if anyone can see anything. http://stackoverflow.com/questions/543709/generate-ruby-classes-from-xsd
<tomaz_b> i have a working xsd2ruby.rb
skweek has joined #ruby
Rodya_ has quit [Remote host closed the connection]
<tomaz_b> but this last answer... somehow i can't figure it out ... how to get this
<apeiros> tomaz_b: oy, it looks like it's actually from stdlib
<apeiros> maybe older ruby
axl_ has joined #ruby
blue_deref has joined #ruby
<tomaz_b> this is what i get from irb LoadError: cannot load such file -- xsb/mapping
ruurd has quit [Read error: Connection reset by peer]
okdas has quit [Max SendQ exceeded]
<ljarvis> xsd*
The_Phoenix has quit [Quit: Leaving.]
idefine has joined #ruby
<tomaz_b> sorry mistake
<apeiros> XSD4R
polishdub has joined #ruby
<tomaz_b> but the same error
okdas has joined #ruby
okdas has quit [Changing host]
okdas has joined #ruby
<apeiros> yes, it's no longer in stdlib
<apeiros> it was in 1.8.7 (long dead)
idefine_ has quit [Read error: Connection reset by peer]
<ljarvis> oO
to_json has quit [Quit: Leaving.]
<tomaz_b> i've installed soap4r-ng...
<tomaz_b> to get this cmd tool
<apeiros> does not look like this has ever been released as a gem
<apeiros> it just died
kobain has quit [Ping timeout: 240 seconds]
The_Phoenix has joined #ruby
Thaumiel|Work has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<tomaz_b> which works quite ok... but the problem is... if i start creating objects from those XSD classes... i somehow can't find a way to write them to a actual xml file... in a way that i would get TAG names correct
<shevy> ddv> bigmac would be nice
<shevy> ddv you are always so hungry!!!
aadam21 has joined #ruby
idefine has quit [Read error: Connection reset by peer]
<ddv> perhaps
Thaumiel|Work has joined #ruby
<shevy> don't worry, if the bigmac won't suit you, we also got some noodle and mozzarella here
<shevy> it's a cuisine channel after all
rgb-one has joined #ruby
idefine has joined #ruby
tulak has quit [Ping timeout: 240 seconds]
abucha has quit [Quit: Leaving...]
The_Phoenix has quit [Read error: Connection reset by peer]
tagrudev has quit [Remote host closed the connection]
cacam9621 has quit [Read error: Connection reset by peer]
<ddv> lol
ruby-lang109 has joined #ruby
<ddv> pizzaops
aganov has quit [Remote host closed the connection]
ruurd has joined #ruby
diegoaguilar_ has quit [Ping timeout: 260 seconds]
thezanke has joined #ruby
kalusn has quit [Remote host closed the connection]
ruurd has quit [Client Quit]
<thezanke> Has anyone used HTTParty for consuming an api? Is there a better option?
ruby-lang109 has quit [Ping timeout: 246 seconds]
cfloare has quit [Ping timeout: 252 seconds]
The_Phoenix has joined #ruby
<yorickpeterse> lets just inject ivars from the outside
<yorickpeterse> because fukit
rbennacer has joined #ruby
ruurd has joined #ruby
cgfbee has quit [Ping timeout: 250 seconds]
Croves has joined #ruby
<havenwood> thezanke: Maybe give HTTP.rb a look: https://github.com/httprb/http#readme
anisha has quit [Quit: Leaving]
rabbithole has quit [Ping timeout: 272 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
lavros_ has joined #ruby
lavros has quit [Ping timeout: 244 seconds]
aspiers has quit [Ping timeout: 272 seconds]
solars has quit [Quit: WeeChat 0.4.2]
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby
ekinmur has joined #ruby
dopie has quit [Ping timeout: 240 seconds]
blueOxigen has joined #ruby
TheNet has joined #ruby
blueOxigen has left #ruby [#ruby]
cfloare has joined #ruby
roshanavand has quit [Read error: Network is unreachable]
yqt has quit [Ping timeout: 264 seconds]
acke has quit [Quit: Leaving...]
cgfbee has joined #ruby
kalusn has joined #ruby
roshanavand has joined #ruby
big|bad|wolf has joined #ruby
dmitch has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
teclator has quit [Ping timeout: 250 seconds]
TheNet has quit [Remote host closed the connection]
big|bad|wolf has quit [Max SendQ exceeded]
gard_ has joined #ruby
idefine has quit [Read error: Connection reset by peer]
idefine has joined #ruby
peteykun has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
to_json has joined #ruby
to_json has joined #ruby
bluOxigen has joined #ruby
mdih has quit [Ping timeout: 250 seconds]
davedev24 has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
User458764 has joined #ruby
jas02 has quit [Quit: jas02]
Fire-Dragon-DoL has joined #ruby
NeverDie has joined #ruby
solars has joined #ruby
Balllkenende is now known as JanPeter
pandaant has joined #ruby
bluOxigen has quit [Remote host closed the connection]
bruno- has joined #ruby
bruno- is now known as Guest76630
idefine has quit [Read error: Connection reset by peer]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
idefine has joined #ruby
The_Phoenix has quit [Ping timeout: 265 seconds]
rabbithole has joined #ruby
nfk|laptop has quit [Quit: yawn]
momomomomo has quit [Quit: momomomomo]
Thaumiel|Work has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
bluOxigen has joined #ruby
kimegede has quit [Quit: Leaving...]
synthroid has quit [Remote host closed the connection]
sinkensabe has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
shredding has quit [Ping timeout: 265 seconds]
dnomyar has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
teclator has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
_stu_ has quit [Quit: _stu_]
arne has quit [Quit: Leaving]
miskatonic has quit [Quit: miskatonic]
leafyba__ has quit [Read error: Connection reset by peer]
leafybas_ has joined #ruby
Xeago has quit [Remote host closed the connection]
dnomyar has quit [Read error: Connection reset by peer]
zapata_ has quit [Quit: WeeChat 1.3]
jeffreylevesque has joined #ruby
blackmesa has quit [Read error: Connection reset by peer]
mordocai has joined #ruby
Zarthus has quit [Quit: I can't go to hell. I'm all out of vacation days.]
Zarthus has joined #ruby
rgb-one has quit [Ping timeout: 246 seconds]
TheNet has joined #ruby
hbx has joined #ruby
ramfjord has joined #ruby
gusTester has joined #ruby
sung has joined #ruby
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
infamos has joined #ruby
<sung> hola. i've a variable that has a long string in it with lots of funky characters. i want to encode/escape them so that i can use it in a printed SQL statement for a mysql database (not located on the machine where the script is running). the different libraries i've found for mysql that have an escape function seemingly require connectivity to a mysql database to perform the escape. any ideas on how i can do this without also installing mysql on my dev machine?
Xeago has joined #ruby
gusTester has left #ruby [#ruby]
blackmesa has joined #ruby
dmitch has joined #ruby
RegulationD has joined #ruby
rodfersou has joined #ruby
build22 has joined #ruby
<yorickpeterse> >> p "\x9A\x02\x00\x00\x7F\x00\x00\x01\x7F\x00\x00\x01".unpack('Ic*')
<ruboto> yorickpeterse # => [666, 127, 0, 0, 1, 127, 0, 0, 1] ...check link for more (https://eval.in/464425)
<yorickpeterse> hm
_stu_ has joined #ruby
The_Phoenix has joined #ruby
<yorickpeterse> fukit, I'll assume this works everywhere
<yorickpeterse> yay unpacking structures
jxs_ has quit [Remote host closed the connection]
gusTester has joined #ruby
gusTester has quit [Client Quit]
baweaver has joined #ruby
I has joined #ruby
I is now known as Guest92672
gusTester has joined #ruby
baweaver has quit [Remote host closed the connection]
gard_ has quit [Ping timeout: 265 seconds]
Rodya_ has joined #ruby
Pupeno has quit [Remote host closed the connection]
slawrence00 has joined #ruby
Melpaws has joined #ruby
mary5030 has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
ruurd has quit [Quit: ZZZzzz…]
ESpiney has joined #ruby
mary5030 has quit [Remote host closed the connection]
radgeRayden_ has quit [Ping timeout: 255 seconds]
davedev2_ has joined #ruby
nibbo has quit [Ping timeout: 255 seconds]
ruurd has joined #ruby
mary5030 has joined #ruby
Peg-leg has quit [Quit: Leaving.]
davedev2_ is now known as davedev24_
davedev24_ has quit [Client Quit]
davedev2_ has joined #ruby
<jhass> sung: run the script on something with connectivity to the mysql server?
marr has quit [Ping timeout: 260 seconds]
<jhass> sung: the proper solution to this doesn't use escaping at all, it sends the query with a placeholder and the data separately to the db
Pupp3tm4_ has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 264 seconds]
Rodya_ has quit [Ping timeout: 244 seconds]
<sung> jhass: agreed, but that's assuming i have access to od anything else besisdes say "hey, take newupdates.sql and run this" (which i don't)
xet7 has quit [Read error: Connection reset by peer]
<sung> jhass: so i was hoping to generate all the necessary sql somewhere else
ramfjord has quit [Ping timeout: 246 seconds]
<jhass> can't you do hey, take newupdates.json and run ruby import.rb newupdates.json ?
davedev24 has quit [Ping timeout: 240 seconds]
<jhass> but I mean you want to test this stuff, so you'll need a local mysql server anyway
<jhass> it's not like this is any harder than package_manager install mysql/mariadb
arup_r has joined #ruby
radgeRayden has joined #ruby
umgrosscol has quit [Ping timeout: 252 seconds]
nibbo has joined #ruby
centrx has joined #ruby
Meow-J has quit [Quit: Connection closed for inactivity]
TomyWork has quit [Ping timeout: 260 seconds]
fedexo has joined #ruby
pandaant has quit [Remote host closed the connection]
victortyau has joined #ruby
kies^ has joined #ruby
malconis_ has joined #ruby
malconis_ has quit [Remote host closed the connection]
Quandl has joined #ruby
malconis has quit [Ping timeout: 260 seconds]
malconis_ has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
aufi has quit [Quit: Konversation terminated!]
finisherr has joined #ruby
Xzanron has quit [Quit: Leaving]
Nick_ZWG has joined #ruby
momomomomo has joined #ruby
<tsunamie> can someone help me?
dhollinger has joined #ruby
<havenwood> tsunamie: OS/distro?
<tsunamie> havenwood, cygwin
TheNet has quit [Remote host closed the connection]
<tsunamie> I am setting up my local env for development and I prefer linux enviroments
<tsunamie> even thow I am on windows
<havenwood> tsunamie: Usually one would install the ca-certificates packages. I'm not sure how that works for cygwin.
<tsunamie> havenwood, how would you install that package for you?
TheNet has joined #ruby
<tsunamie> yum, aptget or simply a download drop in
leafybas_ has quit [Read error: Connection reset by peer]
leafyba__ has joined #ruby
<havenwood> tsunamie: apt-get/yum/brew/etc install ca-certificates
<tsunamie> havenwood, I see
<tsunamie> looks like my version should work it's the latest version of gem
<tsunamie> or is that refering to ruby version
synthroid has joined #ruby
<havenwood> tsunamie: The latest version of RubyGems is actually now 2.5.0 with a recent release.
Bloomer has joined #ruby
<tsunamie> I see
<tsunamie> if I install that will I need to talso update ruby?
leafybas_ has joined #ruby
<havenwood> tsunamie: I ran into someone else with a similar issue and made a little Ruby script to add a trust certificate. Unfortunately I forgot I'm grabbing it from an https location so it doesn't quite work: https://gist.github.com/havenwood/9cd08a0b66b75d726ef6
timonv has joined #ruby
shinenelson has quit [Quit: Connection closed for inactivity]
<havenwood> tsunamie: But that might give you some insight into how you can solve it manually. Or yeah, Lavena's gist!
victortyau has quit [Ping timeout: 260 seconds]
bMalum has quit [Ping timeout: 260 seconds]
bMalum_ has joined #ruby
<havenwood> tsunamie: If you change that URL ^ to a non-https one I think it actually would work.
ELCALOR has quit [Ping timeout: 264 seconds]
nibbo has quit [Ping timeout: 260 seconds]
<havenwood> tsunamie: I wouldn't be surprised if there was a ca-certificates package for cygwin, but yeah I'm unfamiliar.
<tsunamie> thanks
<havenwood> np
lubarch has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
lubarch has quit [Client Quit]
lubarch has joined #ruby
leafyba__ has quit [Ping timeout: 272 seconds]
ELCALOR has joined #ruby
Xeago has quit [Remote host closed the connection]
leafybas_ has quit [Remote host closed the connection]
victortyau has joined #ruby
leafybas_ has joined #ruby
blueOxigen has joined #ruby
<tsunamie> havenwood, says ssl_certs does'nt exist
TheNet has quit [Remote host closed the connection]
<tsunamie> in /usr/share/rubygems/rubygems ssl_certs does'nt exist
umgrosscol has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
<havenwood> aha
TheNet has joined #ruby
k3asd` has quit [Quit: leaving]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Trieste has quit [Ping timeout: 264 seconds]
<tsunamie> havenwood, manaylly created and just droped the file in there
<tsunamie> running gem install now and seeing it this works
A124 has quit [Ping timeout: 268 seconds]
radgeRayden has quit [Read error: Connection reset by peer]
<havenwood> tsunamie: Yay! Yeah, I never tested the script but would be nice to get one working for the folk who run into this.
momomomomo has quit [Quit: momomomomo]
radgeRayden has joined #ruby
Trieste has joined #ruby
atomical_ has joined #ruby
solenoids has quit [Ping timeout: 260 seconds]
<tsunamie> havenwood, this is the new error https://gist.github.com/anonymous/e66ddf591ee31fd86b02
cajone has left #ruby [#ruby]
<havenwood> tsunamie: Oops
<tsunamie> permissions seem fine
<havenwood> tsunamie: Sems to be balking at verifying the fastly CDN cert now.
<tsunamie> havenwood, don't know what is wrong
cajone has joined #ruby
baroquebobcat has joined #ruby
zenguy_pc has quit [Ping timeout: 244 seconds]
arthurix has joined #ruby
hhatch has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<havenwood> tsunamie: If you're going through a proxy you might need to put the proxy's root CA cert in the ssl_cert dir as well.
atomical has quit [Ping timeout: 255 seconds]
Elysia has quit [Ping timeout: 264 seconds]
rgb-one has joined #ruby
<tsunamie> havenwood, gem sources -a http://rubygems.org
<tsunamie> I am hoping this will work
<havenwood> tsunamie: Ooh, nope
<havenwood> tsunamie: https://rubygems.org
TheNet has quit [Remote host closed the connection]
<havenwood> tsunamie: https!
The_Phoenix has quit [Ping timeout: 244 seconds]
mattwildig has quit [Remote host closed the connection]
<tsunamie> havenwood, why?
fgo has joined #ruby
<tsunamie> I purpously removed it
<havenwood> tsunamie: Don't do that!
<tsunamie> havenwood, why?
<tsunamie> its not working
mattwildig has joined #ruby
bb010g has quit [Ping timeout: 264 seconds]
apeiros has quit [Ping timeout: 264 seconds]
apeiros has joined #ruby
rgb-one has left #ruby [#ruby]
bb010g has joined #ruby
The_Phoenix has joined #ruby
arthurix_ has quit [Ping timeout: 272 seconds]
willardg has joined #ruby
<havenwood> tsunamie: The same reason one doesn't disable SSL across the board. I don't like to start taking those gambles. We have little enough security as is that I don't want to disable the little shreds we do have.
k3asd` has joined #ruby
The_Phoenix has quit [Client Quit]
mistermocha has joined #ruby
<tsunamie> havenwood, just me downloading gems right
mistermocha has quit [Remote host closed the connection]
retornam has quit [Ping timeout: 264 seconds]
mistermocha has joined #ruby
Xeago has joined #ruby
<havenwood> tsunamie: I cringe when folk disable SSL but *maybe* in practice you wont get MITMed. :P
fgo has quit [Ping timeout: 252 seconds]
<tsunamie> :)
senayar has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
<havenwood> Speaking of RubyGems security, who wants to finish the TUF implementation?!
<tsunamie> one everything else like git and so on I still have it
<tsunamie> so I am cool there
Nick_ZWG has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
retornam has joined #ruby
roshanavand has quit [Remote host closed the connection]
minimalism has joined #ruby
senayar has joined #ruby
jxs_ has joined #ruby
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Wsewolod has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
eminencehc has joined #ruby
solars has quit [Quit: WeeChat 0.4.2]
AnoHito has joined #ruby
<tsunamie> havenwood, wtf?
solars has joined #ruby
AnoHito_ has quit [Ping timeout: 264 seconds]
symm- has joined #ruby
Pupeno has joined #ruby
<havenwood> tsunamie: Since you're familiar with GNU/Linux and that's a smoother path you might should consider Vagrant or Docker or some sort of VM.
<tsunamie> havenwood, DOCKER! FTW
hxegon has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> tsunamie: I'd expect you'll run into a fair number of funky issues with Cygwin.
solenoids has joined #ruby
<havenwood> tsunamie: A quick Vagrant box might save you a lot of hassle.
<tsunamie> havenwood, however I can download gems now :) OVER HTRTP muhahaha let it burn inside you
jackjackdripper has joined #ruby
<havenwood> :O
<tsunamie> burn I say burn
<tsunamie> :) I needed some release sorry I don't know what came over me
<tsunamie> its Friday
Guest53 has joined #ruby
<havenwood> Freyja's Day!
atomical has joined #ruby
blueOxigen has left #ruby [#ruby]
ahmetkapikiran has joined #ruby
bruce_lee has quit [Read error: Connection reset by peer]
* havenwood rides off on a sky chariot pulled by cats
zenguy_pc has joined #ruby
bruce_lee has joined #ruby
k3asd` has quit [Ping timeout: 244 seconds]
gusTester has left #ruby [#ruby]
atomical_ has quit [Ping timeout: 255 seconds]
ivanskie has joined #ruby
Pupeno has quit [Remote host closed the connection]
k3asd` has joined #ruby
solars has quit [Ping timeout: 250 seconds]
luriv_ has joined #ruby
diegoaguilar has joined #ruby
eminencehc has quit [Remote host closed the connection]
mrevd has joined #ruby
A124 has joined #ruby
finisherr has quit [Quit: finisherr]
JDiPierro has quit [Remote host closed the connection]
A124 is now known as Guest1049
magic__ has quit [Ping timeout: 240 seconds]
JDiPierro has joined #ruby
nibbo has joined #ruby
hxegon has quit [Ping timeout: 264 seconds]
hxegon has joined #ruby
hbx has quit [Remote host closed the connection]
Elysia has joined #ruby
Oatmeal has joined #ruby
centrx has quit [Remote host closed the connection]
<momomomomo> >> puts "POOP"
<ruboto> momomomomo # => POOP ...check link for more (https://eval.in/464440)
JDiPierro has quit [Ping timeout: 240 seconds]
[Butch] has joined #ruby
sinkensabe has quit [Remote host closed the connection]
mattwildig has quit [Remote host closed the connection]
diegoaguilar has quit [Ping timeout: 272 seconds]
araujo_ has quit [Quit: Leaving]
tulak has joined #ruby
danieli has joined #ruby
zarathostra has joined #ruby
eminencehc has joined #ruby
<zarathostra> Hey, I was wondering how does Ruby parser deals with custom operators since it doesn't now it's precendence, do you guys have any ideas ?
mattwildig has joined #ruby
relix has joined #ruby
mrevd has left #ruby [#ruby]
baweaver has joined #ruby
Pupeno has joined #ruby
gard_ has joined #ruby
araujo has joined #ruby
leafyba__ has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
diegoaguilar has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
willardg has joined #ruby
gigetoo has quit [Remote host closed the connection]
JanPeter has quit [Remote host closed the connection]
leafybas_ has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
karapetyan has joined #ruby
<shevy> there are no "custom" operators
RobertBirnie has joined #ruby
leafyba__ has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
elcontrastador has quit [Ping timeout: 250 seconds]
gusTester has joined #ruby
Xeago has joined #ruby
baweaver has joined #ruby
mikecmpbll has quit [Ping timeout: 246 seconds]
aadam21 has quit [Remote host closed the connection]
arup_r has quit [Ping timeout: 240 seconds]
RobertBirnie has quit [Read error: Connection reset by peer]
RobertBirnie has joined #ruby
<zarathostra> shevy: Ok I've never done Ruby but I heard that you could define for example "def +(rhs) ... end" so you could write "obj + rhs" as a shortcut for "obj.+(rhs)"
aadam21 has joined #ruby
arup_r has joined #ruby
<zarathostra> couldn't you define a new operator with a different (not builtin) symbol ?
vigintas has quit [Read error: Connection reset by peer]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
kalusn has quit [Remote host closed the connection]
vigintas1 has joined #ruby
arup_r is now known as Guest84510
timonv has quit [Ping timeout: 272 seconds]
tomphp has quit [Ping timeout: 240 seconds]
qba73 has quit []
ahegyi has joined #ruby
baweaver has quit [Remote host closed the connection]
bMalum_ has quit [Quit: bMalum_]
eminencehc has quit [Remote host closed the connection]
vigintas1 is now known as vigintas
senayar has quit []
eminencehc has joined #ruby
towski_ has joined #ruby
pdoherty has joined #ruby
aadam21 has quit [Ping timeout: 260 seconds]
Nick_ZWG has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
baweaver has joined #ruby
mistermocha has quit [Remote host closed the connection]
rabbithole has quit [Ping timeout: 272 seconds]
rbennacer has quit [Remote host closed the connection]
gard_ has quit [Ping timeout: 255 seconds]
__butch__ has joined #ruby
__butch__ has quit [Remote host closed the connection]
_stu_ has quit [Quit: _stu_]
zarathostra has quit [Quit: Page closed]
mistermocha has joined #ruby
ibouvousaime has quit [Ping timeout: 240 seconds]
lubarch has quit [Quit: leaving]
agentmeerkat has quit [Ping timeout: 252 seconds]
rbennacer has joined #ruby
stan has quit [Ping timeout: 250 seconds]
RegulationD has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
umgrosscol has quit [Ping timeout: 265 seconds]
Spami has quit [Quit: This computer has gone to sleep]
Nick_ZWG has quit [Ping timeout: 260 seconds]
finisherr has joined #ruby
<shevy> and another webchatster gone, didn't even have the patience to idle to power
foomanchu has joined #ruby
<shevy> when someone includes a method, into a class from a module, is there a way to find out where it was defined? e. g
<shevy> class Foo; def test; end; end
<shevy> versus: module Foo; def test; end; end; class Bar; include Foo; end
blackmesa has quit [Ping timeout: 272 seconds]
<shevy> I need to override some methods dynamically, depending on whether they were defined in the class itself, or whether they were pulled-in from another module
mooru has joined #ruby
<Ox0dea> shevy: #method+added + Method#owner?
<Ox0dea> *#method_added
Xeago has quit [Remote host closed the connection]
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has joined #ruby
<Ox0dea> Well, no, #included in this case, but the Method class surely has all the methods you'll need.
<Ox0dea> >> method(:method).methods.method(:method).owner
<ruboto> Ox0dea # => Kernel (https://eval.in/464481)
krzkrzkrz has quit [Quit: WeeChat 1.2]
bricker has quit [Quit: Lost terminal]
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cwong_on_irc has joined #ruby
dc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
infamos has quit [Ping timeout: 264 seconds]
cwong_on_irc has joined #ruby
gusTester has left #ruby [#ruby]
purplexed- has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
<shevy> hmm
subscope has joined #ruby
<shevy> you did this on purpose right... using 5 times the word 'method' there
shum has quit [Read error: Connection reset by peer]
sdothum has joined #ruby
marr has joined #ruby
zoskia has quit [Quit: Changing server]
nertzy has joined #ruby
umgrosscol has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
rabbithole has joined #ruby
Melpaws has quit [Ping timeout: 246 seconds]
cornerma1 has joined #ruby
idefine has quit [Read error: Connection reset by peer]
fgo has joined #ruby
Guest53 has joined #ruby
<tomaz_b> guys what would you use for handling XMLs especially workflow... XSD -> XML (signed) today... with ruby > 2.1.x
dotix has joined #ruby
dotix has joined #ruby
idefine has joined #ruby
Contigi777 has quit [Ping timeout: 246 seconds]
<tomaz_b> i spent few hours on soap4r but it looks like... it is buggy... since it calls/uses xsd from rubys std library... which was last used in ruby 1.8.x
<tomaz_b> ??
infamos has joined #ruby
Guest53 has quit [Client Quit]
<tomaz_b> or let say... xsd2ruby which you get with this gem does.
<tomaz_b> i might be wrong... since i am really new to ruby..
musou has quit [Quit: Connection closed for inactivity]
<tomaz_b> anyone?
cornerman has quit [Ping timeout: 244 seconds]
cornerma1 is now known as cornerman
FDostoyevsky has joined #ruby
Guest53 has joined #ruby
Melpaws has joined #ruby
The_Phoenix has joined #ruby
agentmeerkat has joined #ruby
bonemind has quit [Quit: WeeChat 1.0]
mooru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joonty has quit [Quit: joonty]
fgo has quit [Ping timeout: 255 seconds]
axl_ has quit [Quit: axl_]
Musashi007 has quit [Quit: Musashi007]
ZeeNoodley has quit [Changing host]
ZeeNoodley has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
bb010g has joined #ruby
mikecmpbll has joined #ruby
JDiPierro has joined #ruby
lavros_ has quit [Quit: leaving]
aspiers has joined #ruby
<Ox0dea> shevy: I didn't "pick" five; that's just how many mentions it takes to get to the cent^W fixpoint.
peteykun has quit [Ping timeout: 252 seconds]
sdothum has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
<shevy> method(:method).methods.method(:method)
sdothum has joined #ruby
<shevy> I can't help it...
<shevy> tomaz_b I radically abandoned XML, you are a brave person to still use it
<shevy> people tend to use nokogiri when they want to traverse around xpath-thingies
<tomaz_b> shevy: shit if would be up to me... i would be faaaar away :D but i have to fix something for some government tax bla, bla
robbyoconnor has quit [Ping timeout: 246 seconds]
<shevy> damn governments
djbkd has joined #ruby
mrtomme has quit [Ping timeout: 260 seconds]
<Ox0dea> shevy: That was yesterday.
idefine has quit [Read error: Connection reset by peer]
tulak has quit [Remote host closed the connection]
mrtomme has joined #ruby
cdg has joined #ruby
willardg has joined #ruby
cdg has quit [Read error: Connection reset by peer]
cdg has joined #ruby
Contigi has joined #ruby
UtkarshRay has joined #ruby
skweek has quit [Ping timeout: 246 seconds]
idefine has joined #ruby
jpfuentes2 has joined #ruby
cdg has quit [Remote host closed the connection]
casadei_ has quit [Read error: Connection reset by peer]
casadei has joined #ruby
Bloomer has quit []
fedexo has quit [Ping timeout: 246 seconds]
cdg has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
robbyoconnor has joined #ruby
User458764 has joined #ruby
Rodya_ has quit [Read error: Connection reset by peer]
ruurd has joined #ruby
Spami has joined #ruby
Spami has quit [Remote host closed the connection]
soulisson has joined #ruby
tubuliferous has joined #ruby
kalusn has joined #ruby
luriv_ has quit [Quit: Leaving]
bdnelson has quit [Quit: Computer has gone to sleep.]
lemur has joined #ruby
<soulisson> Hello, sorry to bother you, I'm new to Ruby, I would like to know if in "loop do ... end" the "do ... end" part is considered a block in the Ruby sense?
Rodya_ has joined #ruby
idefine has quit [Read error: Connection reset by peer]
TheNet has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has joined #ruby
jas02 has joined #ruby
<Ox0dea> soulisson: Yep.
darthdeus has joined #ruby
rakm has joined #ruby
ekinmur has joined #ruby
kfpratt has quit [Remote host closed the connection]
kfpratt has joined #ruby
<gregf_> a = 1; loop do a+=1; sleep 1; break if a == 10 end == 'a = 1; loop { a+=1; sleep 1; break if a == 10 }'
kfpratt has quit [Remote host closed the connection]
<soulisson> Ox0dea, ok, I thought a block must be associated to a yield
kfpratt has joined #ruby
rbennacer has joined #ruby
<Ox0dea> soulisson: The #loop method is yielding to your block.
Guest1049 has quit [Quit: '']
troulouliou_div2 has quit [Remote host closed the connection]
<soulisson> Ox0dea, ok, loop is a method?
nertzy has quit [Quit: This computer has gone to sleep]
<Ox0dea> >> method(:loop) # soulisson: Sure is.
<ruboto> Ox0dea # => #<Method: Object(Kernel)#loop> (https://eval.in/464489)
idefine_ has joined #ruby
idefine has quit [Read error: Connection reset by peer]
<soulisson> thanks
lemur has quit [Ping timeout: 265 seconds]
<Ox0dea> soulisson: def loop; yield while true; end
<Ox0dea> And there's how you could implement it yourself. :P
cwong_on_irc has quit [Quit: Leaving.]
jobewan has joined #ruby
A124 has joined #ruby
<soulisson> Ox0dea, and is this also the case with the while statement?
<Ox0dea> soulisson: No, that's special.
PaulCape_ has quit [Quit: .]
jas02 has quit [Ping timeout: 264 seconds]
<soulisson> Ox0dea, so ywhile true do ... end, do ... end is not really a block in the ruby sense?
<Ox0dea> soulisson: Yes, it is.
<Ox0dea> Oh, wait.
Pupeno has quit [Remote host closed the connection]
PaulCapestany has joined #ruby
<Ox0dea> soulisson: You're right, it's not, and that's why you shouldn't use `do` in a `while` header; it's superfluous and potentially confusing.
tlaxkit has quit [Quit: ¡Hasta luego!]
Rodya_ has quit [Ping timeout: 260 seconds]
<Ox0dea> But the `do...end` passed to #loop *is* a block.
<soulisson> Ox0dea, thanks, sorry about this questions I'm still very new to Ruby
<shevy> 'while true' is worse than 'loop {}' !
shinnya has joined #ruby
<Ox0dea> Well, yeah, but the former leads to the "cleanest" definition of the latter.
agentmeerkat has quit [Ping timeout: 260 seconds]
<craysiii> what about cycle
maletor has joined #ruby
rzsd has quit [Ping timeout: 246 seconds]
dc has quit [Remote host closed the connection]
<Ox0dea> Whale, there are any number of ways to get hold of "forever" in Ruby, but #loop is procedural and shouldn't bother to hide it.
<shevy> you and your whales
arthurix_ has joined #ruby
<Ox0dea> logs $ grep -ci 'Ox.*whale' *ruby.*
<Ox0dea> 7
<Ox0dea> Could be worse.
aadam21 has joined #ruby
arthurix has quit [Ping timeout: 240 seconds]
pandaant has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kfpratt has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
kfpratt has joined #ruby
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Ping timeout: 240 seconds]
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheHodge has joined #ruby
aspiers has quit [Ping timeout: 272 seconds]
<mozzarella> guys
Spami has joined #ruby
aadam21 has quit [Ping timeout: 246 seconds]
Fredrich010 has quit [Remote host closed the connection]
northfurr has joined #ruby
EllisTAA has joined #ruby
xet7 has joined #ruby
dikaio has joined #ruby
Wsewolod has joined #ruby
jackjackdripper1 has quit [Ping timeout: 240 seconds]
ruby-lang421 has joined #ruby
jackjackdripper has joined #ruby
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kies^ has quit [Ping timeout: 260 seconds]
lsmola has quit [Ping timeout: 260 seconds]
RegulationD has joined #ruby
ruby-lang421 has quit [Client Quit]
<mozzarella> my gems are installed in $HOME/.gem/ruby/gems, but every time I install a new OS, it seems that the currently installed gems are ignored and get downloaded again when I run "bundle install", why is this?
roshanavand has quit [Remote host closed the connection]
Rollabunna has quit [Remote host closed the connection]
kalusn has quit [Remote host closed the connection]
Musashi007 has joined #ruby
yfeldblum has joined #ruby
Guest53 has joined #ruby
closer has quit [Ping timeout: 272 seconds]
dikaio has quit [Ping timeout: 265 seconds]
maletor has quit [Ping timeout: 264 seconds]
maletor has joined #ruby
bdnelson has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
roshanavand has joined #ruby
User458764 has joined #ruby
willywos has joined #ruby
willywos has quit [Client Quit]
closer has joined #ruby
RegulationD has joined #ruby
skweek has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
SleepySensei has joined #ruby
roshanavand has quit [Remote host closed the connection]
Rodya_ has joined #ruby
TheNet has quit [Remote host closed the connection]
Pupeno has joined #ruby
zenguy_pc has quit [Ping timeout: 255 seconds]
roshanavand has joined #ruby
roshanavand has quit [Remote host closed the connection]
postmodern has joined #ruby
roshanavand has joined #ruby
Pupeno has quit [Remote host closed the connection]
tubuliferous has quit [Ping timeout: 260 seconds]
fgo has joined #ruby
DEA7TH has joined #ruby
leafybas_ has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
radgeRayden has quit [Ping timeout: 246 seconds]
roshanavand has quit [Remote host closed the connection]
kalusn has joined #ruby
mattwashere has joined #ruby
th0m__ has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
ruurd has quit [Quit: ZZZzzz…]
Rodya_ has quit [Read error: Connection reset by peer]
FDostoyevsky has quit [Quit: WeeChat 1.3]
Spami has quit [Quit: This computer has gone to sleep]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Spami has joined #ruby
Spami has quit [Remote host closed the connection]
tubuliferous has joined #ruby
Spami has joined #ruby
SleepySensei has quit [Ping timeout: 240 seconds]
zenguy_pc has joined #ruby
jamesaxl|2 has quit [Read error: Connection timed out]
blackmesa has joined #ruby
asianMike has joined #ruby
dikaio has joined #ruby
Guest76630 has quit [Ping timeout: 255 seconds]
tjohnson has joined #ruby
karapetyan has quit [Remote host closed the connection]
Guest84510 is now known as arup_r
karapetyan has joined #ruby
danieli has quit [Ping timeout: 250 seconds]
idefine_ has quit [Read error: Connection reset by peer]
idefine has joined #ruby
dikaio has quit [Client Quit]
pdoherty has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
danieli has joined #ruby
idefine has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
idefine has joined #ruby
danieli has quit [Read error: Connection reset by peer]
leat has quit [Remote host closed the connection]
karapetyan has quit [Ping timeout: 272 seconds]
leat has joined #ruby
idefine has quit [Read error: Connection reset by peer]
yqt has joined #ruby
p0wn3d__ has joined #ruby
idefine has joined #ruby
ruurd has joined #ruby
dc_ has joined #ruby
karapetyan has joined #ruby
TheNet has joined #ruby
JinglesCafe has joined #ruby
<JinglesCafe> I love ruby, its better than fortan
Spami has quit [Quit: This computer has gone to sleep]
jas02 has joined #ruby
idefine has quit [Read error: Connection reset by peer]
Rodya_ has quit [Remote host closed the connection]
idefine has joined #ruby
_blizzy_ has quit [Quit: Leaving]
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
Melpaws1 has joined #ruby
fantazo has joined #ruby
Melpaws has quit [Ping timeout: 240 seconds]
JinglesCafe has quit [Client Quit]
idefine has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
dionysus69 has quit [Remote host closed the connection]
idefine has joined #ruby
dionysus69 has joined #ruby
dionysus69 has quit [Client Quit]
jdawgaz has joined #ruby
skweek has joined #ruby
Pupeno has joined #ruby
lemur has joined #ruby
mattwashere has quit [Remote host closed the connection]
sdothum has quit [Read error: Connection reset by peer]
mattwashere has joined #ruby
Rodya_ has joined #ruby
elaptics is now known as elaptics`away
willardg has left #ruby ["Textual IRC Client: www.textualapp.com"]
sdothum has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
bahar has quit [Ping timeout: 246 seconds]
Rodya_ has quit [Remote host closed the connection]
Okioo has joined #ruby
willardg has joined #ruby
mistermocha has joined #ruby
SCHAAP137 has joined #ruby
<willardg> I keep getting an error telling me that I need the right ruby version. the snippit shows all the versions I have right now
The_Phoenix has joined #ruby
<Okioo> Hello, I have seen a class declaring a function like this: def []() , can someone explain me this syntax please ? It seems weird
darkf has quit [Quit: Leaving]
<willardg> rbenv issue, sorry, didn't preface that
gard_ has joined #ruby
The_Phoenix has quit [Client Quit]
bahar has joined #ruby
<Ox0dea> Okioo: You know how you say some_array[n] to get the nth element?
lemur has quit [Ping timeout: 260 seconds]
<Okioo> Ox0dea: yes sure
<Okioo> but here it looks like it is the name of the function ?
<Ox0dea> Okioo: Yeah, #[] is just a regular method.
<Ox0dea> Objects can define their own version for custom behavior.
axsuul has joined #ruby
<Okioo> Ox0dea: so I can call it like this myvariable= []() ?
<Ox0dea> >> class Doubler; def [](n); n * 2; end end; Doubler.new[21] # Okioo
<ruboto> Ox0dea # => 42 (https://eval.in/464503)
yardenbar has quit [Ping timeout: 272 seconds]
mattwildig has quit [Remote host closed the connection]
<Ox0dea> You'd have to define #[]= to create a writer, but yeah.
fantazo has quit [Ping timeout: 260 seconds]
hahuang65 has joined #ruby
acy has joined #ruby
<Okioo> Ox0dea: in your example, it looks like it is the constructor
mattwildig has joined #ruby
<Ox0dea> Okioo: Aye, it is there, but you can define it arbitrarily.
lucianosousa has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<Okioo> that's so strange but I think i get it
<Okioo> would you have an other quick example with a String instead of an array please ?
<Ox0dea> Another idiom is to have it delegate to a Hash, so that you can say `MyThing[prop] = value` for "pretty" configuration.
<Ox0dea> Okioo: Well, String already has #[]?
<Ox0dea> I think the problem is that you're association the #[] method with Arrays.
<Ox0dea> It's just a valid method name, and any object can potentially respond to it.
<Ox0dea> *associating
fantazo has joined #ruby
<eam> kinda funny that String doesn't inherit from Array
<Okioo> but in your example" Doubler.new[21] it really looks like it is an array
axl_ has joined #ruby
<Okioo> if it was the method it would be more like Doubler.[](21) I guess
<eam> Okioo: [] is a method that takes its args inside the []
<Okioo> ooh
gard_ has quit [Ping timeout: 265 seconds]
<Ox0dea> >> String.include(Enumerable).send :alias_method, :each, :each_char; '`vdrnld'.map(&:next) # eam
<ruboto> Ox0dea # => ["a", "w", "e", "s", "o", "m", "e"] (https://eval.in/464518)
<Ox0dea> Almost.
acy is now known as peitera
synthroid has quit [Ping timeout: 244 seconds]
<Okioo> that's funny first time I see that
<eam> >> class Thing; def [](a, b); a + b; end; end; Thing.new[1,2]
<ruboto> eam # => 3 (https://eval.in/464519)
<Croves> I run sudo gem install rails but nothing happens
<Ox0dea> >> ObjectSpace.each_object(Class).flat_map(&:instance_methods).uniq.grep(/^\W/).sort # Okioo
<ruboto> Ox0dea # => [:!, :!=, :!~, :%, :&, :*, :**, :+, :+@, :-, :-@, :/, :<, :<<, :<=, :<=>, :==, :===, :=~, :>, :>=, : ...check link for more (https://eval.in/464520)
ruurd has joined #ruby
<Ox0dea> Okioo: Those are all the "operators" that are actually method calls.
nfk has joined #ruby
<Ox0dea> And they're all at your disposal.
<pipework> Ox0dea: Sir, I have a thing I'm doing that might be neat or it might be trash.
<Ox0dea> pipework: Me too! <3
_stu_ has joined #ruby
<Ox0dea> Please do go on.
<Ox0dea> Mine involves a suicidal TracePoint. ^_^
roshanavand has joined #ruby
dnewkerk has joined #ruby
aadam21 has joined #ruby
benjwadams has joined #ruby
<pipework> Ox0dea: You are truly nuts, sir. How do you find all the time to explore so much?
<benjwadams> where are file locks stored in ruby? A process crashed due to OOM and I have a lock that was not released properly
gard_ has joined #ruby
<pipework> benjwadams: Did you get the pid?
<Ox0dea> benjwadams: Flocks are stored on instances of IO themselves.
<eam> benjwadams: what kind of lock?
eminencehc has quit [Remote host closed the connection]
<benjwadams> LOCK_EX
<benjwadams> i'm going to try to do LOCK_UN
infamos has quit [Ping timeout: 255 seconds]
<pipework> Ox0dea: are those like file descriptors with a mutex in front?
ruurd has quit [Client Quit]
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam> benjwadams: flock() locks are removed when the descriptors are closed
<eam> I suspect your crashed process is not fully dead
leafybas_ has quit [Read error: Connection reset by peer]
tubuliferous has quit [Ping timeout: 272 seconds]
<pipework> benjwadams: http://unix.stackexchange.com/a/85997 does that help?
<eam> you can use fuser / lsof to see what processes have a descriptor on the file open
roshanavand has quit [Ping timeout: 240 seconds]
yardenbar has joined #ruby
leafybas_ has joined #ruby
aadam21 has quit [Ping timeout: 244 seconds]
<shevy> fuser! fuuuuuser!
<shevy> fuuuuuuuuuuuuser!!!
<pipework> shevy: luser
baweaver has quit [Remote host closed the connection]
<shevy> pipe|work
synthroid has joined #ruby
rabbithole has quit [Ping timeout: 272 seconds]
deg_ has joined #ruby
<pipework> |work?
pipework is now known as |work
dikaio has joined #ruby
<|work> I am |work!
eminencehc has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
Arkon has joined #ruby
Okioo has quit [Quit: Page closed]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
|work is now known as spaceghost|work
sdothum has joined #ruby
synthroi_ has joined #ruby
Melpaws1 has quit [Ping timeout: 240 seconds]
idefine_ has joined #ruby
spider-mario has joined #ruby
Melpaws has joined #ruby
idefine has quit [Read error: Connection reset by peer]
<shevy> hmm
dc_ has quit [Remote host closed the connection]
vigintas has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
pedahzur has joined #ruby
synthroid has quit [Ping timeout: 244 seconds]
kaleido has joined #ruby
hahuang65 has joined #ruby
kaleido has left #ruby [#ruby]
<benjwadams> Thanks so much! The `fuser -k` did the trick
jas02 has quit [Ping timeout: 240 seconds]
<spaceghost|work> Ox0dea: Mine has to do with wrapping json-schema into a lot of cool tooling so that you can build a system by writing the documentation for it, which will write the tests for the endpoints, and do a lot more than just testing.
nertzy has joined #ruby
mattwildig has quit [Remote host closed the connection]
<pedahzur> Sorry to ask this here. I've asked in #berkshelf, and am getting no response. I'm hitting ":gzip is not registered on Faraday::Response" when trying to run 'berks update' and cannot figure out a solution. Unlike https://github.com/berkshelf/berkshelf/issues/1466, I am *NOT* running it from 'chef exec'. I've tried fiddling with Faraday versions and berks-api-client versions, but have not gotten anywhere!
<spaceghost|work> Executable specification through the use of something like swagger's spec or something helpful for describing the API.
stamina has quit [Ping timeout: 265 seconds]
ss_much has joined #ruby
<Ox0dea> spaceghost|work: Using NLP to parse the documentation, then, or?
ahegyi_ has joined #ruby
zapata has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
gard_ has quit [Ping timeout: 260 seconds]
<spaceghost|work> Ox0dea: No, write the docs in json schema!
<spaceghost|work> It's nestable!
tomphp has quit [Client Quit]
<spaceghost|work> It has mixins!
[Butch] has quit [Quit: I'm out . . .]
<Ox0dea> Ah, gotcha.
_stu_ has quit [Quit: _stu_]
[Butch] has joined #ruby
odigity has joined #ruby
<Ox0dea> spaceghost|work: How faithfully do you intend to represent Ruby's object model?
djbkd has joined #ruby
<odigity> If I have an object with an instance var containing a hash, can I delegate the #each method to it?
fgo has joined #ruby
<spaceghost|work> Ox0dea: it has nothing to do with ruby object models though. It's just for describing json schemas.
jackjackdripper has quit [Quit: Leaving.]
<spaceghost|work> It's all written in JSON.
<Ox0dea> spaceghost|work: A JSON schema describing a JSON schema...?
<spaceghost|work> Ox0dea: A nested object, sure. An object type described in JSON Schema that can have other objects inside it.
conta has joined #ruby
ahegyi has quit [Ping timeout: 264 seconds]
ruurd has joined #ruby
<Ox0dea> spaceghost|work: What kind of objects?
<spaceghost|work> Ox0dea: JSON objects.
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<spaceghost|work> They're just JSON objects with a schema file to validate against.
<Ox0dea> To validate what against?
<Ox0dea> Ruby objects, right?
<spaceghost|work> Ox0dea: JSON payloads!
<Ox0dea> Oh, I see.
rabbithole has joined #ruby
<spaceghost|work> Anything could create them, it's not language-bound.
mloy_ has joined #ruby
<spaceghost|work> It's like super slow and not remotely comparable protocol-buffers in an HTTP resource oriented fashion.
<spaceghost|work> Or you could throw 'em down a socket as json payloads wrapped in an envelope
last_staff has joined #ruby
PaulCape_ has joined #ruby
weckl has quit [Remote host closed the connection]
build22_ has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
dotix has quit [Ping timeout: 272 seconds]
fgo has quit [Ping timeout: 260 seconds]
PaulCapestany has quit [Ping timeout: 240 seconds]
infamos has joined #ruby
Coldblackice has joined #ruby
dotix has joined #ruby
dotix has quit [Changing host]
dotix has joined #ruby
kies^ has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
Musashi007 has quit [Quit: Musashi007]
shinnya has quit [Ping timeout: 260 seconds]
tvw has quit []
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agentmeerkat has joined #ruby
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine_ has quit [Read error: Connection reset by peer]
ledestin has joined #ruby
idefine has joined #ruby
lucianosousa has quit [Ping timeout: 272 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
lucianosousa has joined #ruby
mloy_ has quit [Quit: Leaving]
idefine has quit [Read error: Connection reset by peer]
mloy_ has joined #ruby
idefine has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
TheNet has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 255 seconds]
mloy_ has quit [Client Quit]
robbyoconnor has quit [Quit: Konversation terminated!]
<jmonreal> If I have a json array with strings like this {test => ["key1=value1", "key2=value2"] }, how can I get the keys and values ?
<jmonreal> without knowing them of course
VeryBewitching has joined #ruby
<Ox0dea> jmonreal: How did you end up in this position?
<JoshL> Ox0dea: a question we all ask ourselves every day
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghostbox has joined #ruby
Galas has joined #ruby
<jmonreal> Ox0dea: its a json I am getting from someplace
<Ox0dea> jmonreal: But "key=value" isn't really JSON.
mattwildig has joined #ruby
<Ox0dea> Are you sure there's no way to convince your data source to not be a dick?
<jmonreal> Ox0dea: its a string that has that configuration
<jmonreal> its an array of strings
<Ox0dea> Yes, I see.
<VeryBewitching> "Dear Datasource, I've been meaning to mention this for some time now, but never had the heart to tell you... you're a dick."
northfurr has quit [Quit: northfurr]
skweek has quit [Ping timeout: 246 seconds]
<Ox0dea> >> ["key1=value1", "key2=value2"].map { |s| s.split "=" }.transpose # jmonreal
<ruboto> Ox0dea # => [["key1", "key2"], ["value1", "value2"]] (https://eval.in/464554)
bruce_lee has quit [Read error: Connection reset by peer]
<Ox0dea> >> keys, vals = ["key1=value1", "key2=value2"].map { |s| s.split "=" }.transpose; keys
<ruboto> Ox0dea # => ["key1", "key2"] (https://eval.in/464555)
Guest53 has joined #ruby
<jmonreal> thanks Ox0dea
<Ox0dea> jmonreal: Sure thing.
anisha has joined #ruby
<JoshL> >> Hash[["key1=value1", "key2=value2"].map { |item| item.split('=') }] # jmonreal
<ruboto> JoshL # => {"key1"=>"value1", "key2"=>"value2"} (https://eval.in/464556)
<JoshL> to make a hash from it
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dikaio has joined #ruby
<jmonreal> Ox0dea: and what if i want to iterate over them like array.each do |key, value|
felltir has joined #ruby
<Ox0dea> jmonreal: Do that.
mooru has joined #ruby
<jmonreal> but Ox0dea woudl it be something like ["key1=value1", "key2=value2"].map { |s| s.split "=" }.transpose.each do |key, value|
<Ox0dea> jmonreal: Nix the call to #transpose.
<Ox0dea> That groups them in the way your initial question seemed to want.
<Ox0dea> But if you want to iterate over them as key-value pairs, it's enough just to #split 'em.
<odigity> What's the term for the expression 'a, b' in the expression 'a, b = 1, 2'? It's 'array', because that's a type. Is it 'list'?.
<odigity> Also in 'return a, b'
<drbrain> multiple assignment
<drbrain> multiple return values
tomaz_b has quit [Quit: Leaving]
<blubjr> the [] are implicit i think
<blubjr> ruby doesn't have proper multiple return values
<Ox0dea> >> _,(_,_,((_,(foo,_)),_)) = [1, [2, [3, 4], [[5, [:target], 6], [7], 8, [9], 10]]]; foo
<ruboto> Ox0dea # => :target (https://eval.in/464561)
<Ox0dea> I never get tired of whipping that one out.
dc has joined #ruby
<Ox0dea> Ruby has bona fide destructuring, but only for Array. :<
iateadonut has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SHyx0rmZ has joined #ruby
northfurr has joined #ruby
<Ox0dea> >> a,(b,(c,),d),e = [1, [2, [3], 4], 5]; [a, b, c, d ,e] # A little clarity.
<ruboto> Ox0dea # => [1, 2, 3, 4, 5] (https://eval.in/464562)
<odigity> drbrain, multiple assignment/return values describes what you're doing with the whole expression. I guess there's not a term just for the comma-separated rvalue / lvalue list. Ok.
PaulCapestany has joined #ruby
<drbrain> odigity: yeah, I haven't seen any consistent label for it
<odigity> Ox0dea, that hurts muh brain
<Ox0dea> odigity: LHS seems most appropriate?
<drbrain> odigity: if you add * to the mix it gets even more fun
<blubjr> you're destructuring a return value, but there's still only one
<blubjr> multiple return values is different
<eam> perl would call it list context
<Ox0dea> blubjr: Sure, I know Ruby doesn't have real multiple return values, but it does have "real" destructuring.
<odigity> blubjr, that's what weirds my out. it's one value, but it's multiple values, but it's not an array :)
<Ox0dea> odigity: It is an Array, though.
<drbrain> odigity: ruby creates an Array for you
ivanskie has joined #ruby
<drbrain> I use `return a, b` to signal the user "I'm returning multiple values"
<odigity> Ruby creates an array if you do a = 1, 2 but not a,_ = 1, 2 right? like, only if there are no commas on the left side?
<drbrain> and `return [a, b]` to signal "I'm returning an Array" (but usually without the return)
<blubjr> ya Ox0dea
moeabdol has quit [Ping timeout: 250 seconds]
PaulCape_ has quit [Ping timeout: 260 seconds]
<drbrain> you could add an optimization to the compiler that eliminates array creation across the call, but I doubt it would change performance much
<odigity> What I was ultimately trying to figure out is if returning 'a,b' to someone only expecting a would screw things up, or if the b would silently be ignored. so that I could, for example, implement a [] method that returns a piece of metadata about the value in addition to the value, but still have normal ruby libs and idioms work
<odigity> I should have said "implement *an* [] method"
<Ox0dea> odigity: Was it you who asked about this before? :P
<odigity> nope, first time
<drbrain> it would screw things up if they only expected one value
stamina has joined #ruby
<odigity> because they'd get an array
<drbrain> they'd need to change `result = your_method` to `result, = your_method`
<odigity> unless they have a west-side comma
<drbrain> correct
mooru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<odigity> ok. I'll refrain, then :)
rakm has joined #ruby
<odigity> to the editor!
prestorium has quit [Quit: Leaving]
kirun has joined #ruby
<blubjr> odigity you would need real multiple return values for that
<Ox0dea> Some fellow named sphex was also quite displeased with Ruby having forsaken this facet of its heritage.
mattwashere has quit [Read error: Connection reset by peer]
VeryBewitching has quit [Quit: Konversation terminated!]
inate has quit [Read error: Connection reset by peer]
agentmeerkat has quit [Ping timeout: 260 seconds]
dc has quit [Remote host closed the connection]
inate has joined #ruby
kadoppe has quit [Ping timeout: 250 seconds]
ldnunes has quit [Quit: Leaving]
borodin has quit [Quit: Textual IRC Client: www.textualapp.com]
jud has quit [Read error: Connection reset by peer]
mattwashere has joined #ruby
dc has joined #ruby
borodin has joined #ruby
aadam21 has joined #ruby
borodin has quit [Client Quit]
kadoppe has joined #ruby
borodin has joined #ruby
<jmonreal> how can I get the hostname of the server ?
dotix has quit [Ping timeout: 240 seconds]
borodin has quit [Client Quit]
northfurr has quit [Read error: Connection reset by peer]
northfurr_ has joined #ruby
northfurr_ has quit [Client Quit]
<jordanm> jmonreal: Socket.gethostname
ahmetkapikiran has quit [Quit: ahmetkapikiran]
nertzy has joined #ruby
jas02 has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
solenoids has quit [Ping timeout: 240 seconds]
aadam21 has quit [Ping timeout: 250 seconds]
jessemcgilallen has joined #ruby
baweaver has joined #ruby
maletor has joined #ruby
VeryBewitching has joined #ruby
Rollabunna has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ciccio has joined #ruby
<ciccio> ciao
ciccio has left #ruby [#ruby]
yfeldblum has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
skcin7 has joined #ruby
kalusn has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 240 seconds]
FernandoBasso has joined #ruby
thezanke has quit [Quit: Textual IRC Client: www.textualapp.com]
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
tvw has joined #ruby
agentmeerkat has joined #ruby
seydar has joined #ruby
willardg has joined #ruby
hahuang65 has joined #ruby
<spaceghost|work> Why isn't there an ENV() method on Kernel? D:
zenguy_pc has quit [Ping timeout: 250 seconds]
<Ox0dea> spaceghost|work: Because there's ENV?
vigintas has joined #ruby
<seydar> rubygems take too long to load. any wisdom for making them not slow?
<spaceghost|work> Ox0dea: But I just wanna type less to emulate ENV.fetch
<adaedra> syath: load less gems?
VladGh has joined #ruby
<adaedra> seydar*
<spaceghost|work> >> def Kernel.ENV(key); ENV.fetch(key); end; ENV('WAFFLES')
<ruboto> spaceghost|work # => undefined method `ENV' for main:Object (NoMethodError) ...check link for more (https://eval.in/464582)
<spaceghost|work> darn
<seydar> adaedra: i only load one :'(
purplexed- has quit [Quit: Leaving]
<Ox0dea> spaceghost|work: S'gotta be an instance method.
ReK2 has joined #ruby
dtordable has quit [Remote host closed the connection]
<adaedra> &ri ENV @spaceghost|work
purplexed- has joined #ruby
purplexed- has quit [Changing host]
purplexed- has joined #ruby
duncannz has joined #ruby
azure32 has joined #ruby
<adaedra> I'd have hoped something more detailled.
<spaceghost|work> `derpy: I know about ENV, but that's not ENV()
<adaedra> What would it do?
<spaceghost|work> adaedra: Like I showed above, essentially just call fetch.
<jmonreal> jordanm: thanks!
<spaceghost|work> Like when ::Integer() can't return an int, it raises an exception. so should ::ENV()
cbetta has quit [Quit: Connection closed for inactivity]
NeverTired is now known as TheMadMagician
naftilos76 has joined #ruby
<adaedra> What's wrong with ENV#fetch ?
TheMadMagician is now known as NeverTired
NeverTired is now known as TheMadMagician
fgo has joined #ruby
<Ox0dea> There's gotta be a better way. https://eval.in/464583
mattwashere has quit [Read error: Connection reset by peer]
solenoids has joined #ruby
idefine_ has joined #ruby
idefine has quit [Read error: Connection reset by peer]
firstdayonthejob has joined #ruby
blackmesa has joined #ruby
lipoqil has joined #ruby
EllisTAA has joined #ruby
TheMadMagician is now known as AMadMagician
AMadMagician is now known as MadMagician
MadMagician is now known as TheMadMagician
fgo has quit [Ping timeout: 246 seconds]
momomomomo has joined #ruby
rdark has quit [Quit: leaving]
molay has joined #ruby
Coldblackice has quit [Ping timeout: 264 seconds]
zenguy_pc has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jas02 has quit [Ping timeout: 240 seconds]
<molay> is it possible to have ruby code in, say, example.rb rename the file example.rb?
blackmesa has quit [Ping timeout: 264 seconds]
Arkon has quit [Remote host closed the connection]
<molay> in other words, can a .rb file rename itself?
<adaedra> it should be able to
ahegyi_ has quit [Ping timeout: 255 seconds]
<adaedra> at least under non-windows
momomomomo has quit [Quit: momomomomo]
Arkon has joined #ruby
<adaedra> try and see what happens
<molay> well, i'm sure it could be done, especially if I use system commands
<molay> but i'm wondering if there's a ruby way of doing it, so that this would also work for windows users as well.
p0wn3d__ has quit [Ping timeout: 264 seconds]
Pupeno has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<molay> JoshL: would this work in windows too?
<adaedra> Problem is that windows locks open files.
<molay> yeah, i'm using linux, but I'm making this for windows users
bdnelson has quit [Quit: Textual IRC Client: www.textualapp.com]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pupeno has joined #ruby
<molay> I suppose I could have my script call a separate .rb file to do the work for me
Pupeno has quit [Remote host closed the connection]
<JoshL> molay: I don't know what would happen if you tried that code in windows, no
<molay> freakin windows
teclator has quit [Ping timeout: 264 seconds]
jxs_ has quit [Remote host closed the connection]
Arkon has quit [Ping timeout: 240 seconds]
TheNet has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
<molay> thanks adaedra & JoshL
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mwlang has quit [Quit: mwlang]
<JoshL> molay: Not sure how much help I was, but no problem!
tulak has joined #ruby
ekinmur has joined #ruby
dikaio has quit [Ping timeout: 260 seconds]
idefine_ has quit [Read error: Connection reset by peer]
Z00t has joined #ruby
<molay> JoshL: yeah you helped me determine that there's not an easy solution. lol
mattwashere has joined #ruby
idefine has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheNet has quit [Remote host closed the connection]
<adaedra> It may still be worth a try, though.
Ox0dea has quit [Read error: Connection reset by peer]
dmitch has joined #ruby
slawrence00 has joined #ruby
anisha has quit [Quit: Leaving]
ivanskie has joined #ruby
pdoherty has joined #ruby
willardg has joined #ruby
TheNet has joined #ruby
blackmesa has joined #ruby
jgt2 has quit [Quit: WeeChat 1.2]
Ox0dea has joined #ruby
<molay> Here's an idea...
dikaio has joined #ruby
<molay> it appears as though "system('ruby example.rb','')" might work regardless of the OS
momomomomo has joined #ruby
tubuliferous has joined #ruby
Ox0dea has quit [Read error: Connection reset by peer]
EdwardIII has quit [Ping timeout: 252 seconds]
lemur has joined #ruby
dc has quit []
rodfersou has quit [Quit: leaving]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rakm has joined #ruby
charliesome has joined #ruby
last_staff has quit [Quit: last_staff]
postmodern has quit [Quit: Leaving]
EdwardIII has joined #ruby
TheNet has quit [Remote host closed the connection]
luriv has joined #ruby
RegulationD has quit [Remote host closed the connection]
rakm has quit [Client Quit]
lemur has quit [Ping timeout: 240 seconds]
Channel6 has joined #ruby
idefine_ has joined #ruby
hhatch has quit [Remote host closed the connection]
vF3hNGxc47h8 has joined #ruby
idefine has quit [Read error: Connection reset by peer]
<User458764> What library can I use to indent correctly Ruby. I search something like tidy but for Ruby.
RegulationD has joined #ruby
<JoshL> User458764: rubocop will autocorrect indentation if you run it with -a
<JoshL> among other things
<User458764> JoshL thanks :)
<JoshL> If you only want indentation, you can set up a .rubocop.yaml with everything but Style/IndentationWidth disabled
Rodya_ has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
robbyoconnor has joined #ruby
robbyoconnor has quit [Client Quit]
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ahegyi_ has joined #ruby
conta has quit [Ping timeout: 264 seconds]
rakm has joined #ruby
rakm has quit [Client Quit]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
last_staff has joined #ruby
s2013 has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
cdg has quit [Remote host closed the connection]
Coldblackice has joined #ruby
chouhoulis has joined #ruby
vF3hNGxc47h8 has quit [Remote host closed the connection]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
EdwardIII has quit [Ping timeout: 272 seconds]
chouhoulis has quit [Remote host closed the connection]
jas02 has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Spami has joined #ruby
<ruboto> riceandbeans, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/780a6a73a86b3a89aa9a
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
lucianosousa has quit [Quit: lucianosousa]
<riceandbeans> that's annoying, because once you post to gist you can never take it down
aadam21 has joined #ruby
<JoshL> riceandbeans: Yes those two method invocations are the same
mooru has joined #ruby
hakunin has joined #ruby
<riceandbeans> JoshL: would you argue that the latter is more readable for a shorter line?
<riceandbeans> JoshL: the latter would pass my linter
mooru has quit [Client Quit]
syath has quit [Quit: WeeChat 1.2]
felltir has quit [Remote host closed the connection]
<JoshL> riceandbeans: Sure, I often call methods like that. I think rubocop's only lint re: that syntax is that method arguments on subsequent lines are aligned
jas02 has quit [Ping timeout: 240 seconds]
mooru has joined #ruby
seydar has quit [Quit: leaving]
mooru has quit [Client Quit]
Croves has quit [Quit: Textual IRC Client: www.textualapp.com]
EdwardIII has joined #ruby
aadam21 has quit [Ping timeout: 240 seconds]
Coldblackice has quit [Ping timeout: 250 seconds]
umgrosscol has quit [Quit: End of Line]
FernandoBasso has quit [Quit: WeeChat 1.3]
troyready has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving]
Ox0dea has joined #ruby
<Ox0dea> molay: So, uh, whatcha renaming the current file for?
infamos has quit [Ping timeout: 252 seconds]
<Ox0dea> riceandbeans: Gists can be deleted just fine.
yalue has quit [Quit: return 0;]
idefine has joined #ruby
idefine_ has quit [Read error: Connection reset by peer]
infamos has joined #ruby
azure32 has quit [Ping timeout: 244 seconds]
cluda01 has joined #ruby
<riceandbeans> Ox0dea: I dare you to delete the gist that ruboto made
dikaio has quit [Quit: ........]
platzhirsch has left #ruby [#ruby]
soulisson has quit [Ping timeout: 244 seconds]
<Ox0dea> > once you post to gist you can never take it down
dikaio has joined #ruby
<Ox0dea> riceandbeans: I didn't post it. ruboto *could* be made to take it down, though.
axl_ has quit [Ping timeout: 265 seconds]
<riceandbeans> you can modify it if you own it, but you can't delete it
axl__ has joined #ruby
<riceandbeans> ruboto can't take it down because ruboto posted it as anonymous
rabbithole has quit [Ping timeout: 264 seconds]
<riceandbeans> so ruboto forfeited all priveleges to it
karapetyan has quit [Remote host closed the connection]
Arkon has joined #ruby
<riceandbeans> even if you modify though, you have revisions
<Ox0dea> riceandbeans: http://i.imgur.com/Ky4hUWm.png
<riceandbeans> I dislike gist for anything I want to be temporary
<Ox0dea> I'm having trouble reading that first button; could you tell me what it says?
karapetyan has joined #ruby
jeffreylevesque has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
<Ox0dea> riceandbeans: Please, I can't find my glasses.
freerobby has joined #ruby
freerobby has quit [Client Quit]
<riceandbeans> then that's a new feature
<riceandbeans> when I started with github years ago there was no delete feature
<riceandbeans> not for gists
karapetyan has quit [Remote host closed the connection]
<Ox0dea> Cool story. Learn to check your assumptions from time to time.
karapetyan has joined #ruby
chenx has joined #ruby
karapetyan has quit [Remote host closed the connection]
teclator has joined #ruby
<chenx> why is the singleton class returning nil? https://eval.in/464606
azure32 has joined #ruby
<Ox0dea> chenx: Wrong channel.
<Ox0dea> Or wrong paste?
mloy has quit [Remote host closed the connection]
<chenx> wait
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
eminencehc has quit [Remote host closed the connection]
<chenx> this is so weird why is the link python
willardg has joined #ruby
trosborn has joined #ruby
mloy has joined #ruby
mattwashere has quit [Read error: Connection reset by peer]
chenx has quit [Quit: Page closed]
fgo has joined #ruby
subscope has quit [Quit: Leaving]
Wsewolod has quit [Ping timeout: 246 seconds]
Glenny has joined #ruby
Oatmeal has quit [Ping timeout: 265 seconds]
eminencehc has joined #ruby
asianMike has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 250 seconds]
mordocai has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
nickjj_ has joined #ruby
rabbithole has joined #ruby
kobain has joined #ruby
ahegyi_ has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Cork has quit [Quit: .]
JDiPierro has quit [Remote host closed the connection]
sinkensabe has joined #ruby
shock_one has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nickjj has quit [Ping timeout: 246 seconds]
nickjj_ is now known as nickjj
Wsewolod has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
dnewkerk has quit [Quit: dnewkerk]
Z00t has quit [Ping timeout: 252 seconds]
Oatmeal has joined #ruby
freerobby has joined #ruby
build22__ has joined #ruby
build22_ has quit [Ping timeout: 240 seconds]
synthroi_ has quit []
mattwashere has joined #ruby
skweek has joined #ruby
diegoviola has joined #ruby
asianMike has joined #ruby
gard_ has joined #ruby
Cork has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
infamos has quit [Ping timeout: 250 seconds]
victortyau has quit [Quit: Leaving]
diegoviola has quit [Changing host]
diegoviola has joined #ruby
The__Ball has joined #ruby
<The__Ball> What does a -%> end tag in a ruby template mean?
rakm has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
ghostbox has quit []
<shevy> I don't know what the - is there
<danneu> pretty common in templating markup
yardenbar has quit [Ping timeout: 252 seconds]
dfockler has joined #ruby
yardenbar has joined #ruby
Xiti has quit [Quit: Xiti]
mary5030 has quit [Remote host closed the connection]
Z00t has joined #ruby
<The__Ball> Sigma00, ah, I see, thanks
pandaant has quit [Quit: Lost terminal]
djcp has quit [Ping timeout: 246 seconds]
pandaant has joined #ruby
pandaant has quit [Remote host closed the connection]
jud has joined #ruby
infamos has joined #ruby
hahuang65 has joined #ruby
jas02 has joined #ruby
baweaver has quit [Remote host closed the connection]
trosborn has quit [Quit: trosborn]
Pupeno has joined #ruby
ebbflowgo has joined #ruby
tulak has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
tulak has joined #ruby
Coldblackice has joined #ruby
baweaver has joined #ruby
<rakm> do we know if old style ruby hashes will be removed at any point? just curious
mattwashere has quit [Remote host closed the connection]
Xiti has joined #ruby
<havenwood> rakm: Nope, the Hash rocket is around to stay.
<rakm> (talking about {:foo => "bar"} syntax
<rakm> ok cool, just wondeirng
<rakm> was new style purely for syntactic sugar?
inate has quit [Quit: Leaving]
naftilos76 has quit [Quit: Αποχώρησε]
ruurd has quit [Quit: ZZZzzz…]
k3asd` has quit [Ping timeout: 260 seconds]
<Ox0dea> rakm: Literal keys are so often Symbols that it makes sense for there to be a more convenient way to type them.
rbennacer has quit [Ping timeout: 240 seconds]
aadam21 has joined #ruby
<Sigma00> plus it has to stay so that you can do stuff like `:"using-this-sort => 'of key'`
mattwashere has joined #ruby
Rollabunna has joined #ruby
<Sigma00> er, I missed a doublequote
<havenwood> >> {"allowed now?": true}
<ruboto> havenwood # => {:"allowed now?"=>true} (https://eval.in/464616)
<havenwood> Sigma00: ^
<Sigma00> oh
<Sigma00> RIP my reasons
aadam21 has quit [Ping timeout: 265 seconds]
<Ox0dea> `foo: :bar` still squicks, though. :<
Spami has quit [Quit: This computer has gone to sleep]
swgillespie has joined #ruby
symm- has quit [Ping timeout: 246 seconds]
<havenwood> >> {':': :':'}
<ruboto> havenwood # => {:":"=>:":"} (https://eval.in/464617)
yfeldblum has joined #ruby
Rollabunna has quit [Ping timeout: 240 seconds]
momomomomo has joined #ruby
<Ox0dea> It's beautiful... get it away from me.
malconis_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> Oh, hey! I found a bug in the new safe call syntax.
spew has quit [Quit: leaving]
<BraddPitt> please share, Ox0dea
zenguy_pc has quit [Ping timeout: 250 seconds]
<Ox0dea> BraddPitt: Just making sure it's really a bug.
<BraddPitt> ah
<BraddPitt> still interested
ebbflowgo has quit [Quit: ebbflowgo]
polishdub has quit [Quit: Leaving]
idefine has quit [Read error: Connection reset by peer]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
momomomomo has quit [Client Quit]
gard_ has quit [Ping timeout: 255 seconds]
jessemcgilallen has quit [Quit: jessemcgilallen]
idefine has joined #ruby
ivanskie has joined #ruby
Channel6 has quit [Ping timeout: 264 seconds]
ivanskie has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 260 seconds]
ivanskie has joined #ruby
ivanskie has quit [Client Quit]
<Ox0dea> It wasn't a bug.
<Ox0dea> >> 2.*2 + 3
<ruboto> Ox0dea # => 10 (https://eval.in/464618)
<Ox0dea> That's slightly confusing, though.
ivanskie has joined #ruby
<Ox0dea> I realize it's just that invocation binds somewhat loosely.
Synthead has joined #ruby
aadam21 has joined #ruby
TheNet has joined #ruby
adac has quit [Ping timeout: 255 seconds]
ESpiney has quit [Quit: Leaving]
bruno- has joined #ruby
bruno- is now known as Guest64794
symm- has joined #ruby
Z00t has quit [Remote host closed the connection]
teclator has quit [Ping timeout: 255 seconds]
fgo has joined #ruby
jas02 has quit [Ping timeout: 260 seconds]
aadam21 has quit [Ping timeout: 250 seconds]
shock_one has quit [Remote host closed the connection]
Guest64794 has quit [Ping timeout: 260 seconds]
mattwashere has quit [Remote host closed the connection]
stannard has quit [Remote host closed the connection]
molay has quit [Quit: Leaving]
pandaant has joined #ruby
ruurd has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
cbetta has joined #ruby
zenguy_pc has joined #ruby
Channel6 has joined #ruby
dtordable has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ebbflowgo has joined #ruby
dtordable has quit [Client Quit]
lipoqil has quit [Quit: Connection closed for inactivity]
jdawgaz has joined #ruby
doddok has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bluOxigen has joined #ruby
Rodya_ has quit [Remote host closed the connection]
dhollinger has quit [Quit: WeeChat 1.2]
ruurd has quit [Quit: ZZZzzz…]
azure32 has quit [Quit: leaving]
<zenspider> headius: ping. yt?
ruurd has joined #ruby
ruurd has quit [Client Quit]
RegulationD has quit [Remote host closed the connection]
ruurd has joined #ruby
RegulationD has joined #ruby
ruurd has quit [Client Quit]
dotix has joined #ruby
<bodik> norc: thank you for effort ;) i get to the channel buw but in meantime i've solved the issue with Thread...[name]="" and logger.formater ;)
rgb-one has joined #ruby
_blizzy_ has joined #ruby
karapetyan has joined #ruby
asianMike has quit []
Rodya_ has joined #ruby
axsuul has joined #ruby
vdamewood has joined #ruby
sp4rrow has joined #ruby
dotix has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Remote host closed the connection]
karapetyan has quit [Ping timeout: 265 seconds]
baroquebobcat has quit [Read error: Connection reset by peer]
jessemcgilallen has joined #ruby
charliesome has joined #ruby
luriv has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
hxegon has quit [Ping timeout: 240 seconds]
arthurix has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jackneill has quit [Ping timeout: 260 seconds]
<shevy> Hey Ox0dea have you ever seen a rogue exclamation character before?
kies^ has quit [Ping timeout: 246 seconds]
shum has joined #ruby
sdothum has quit [Read error: Connection reset by peer]
arthurix_ has quit [Ping timeout: 240 seconds]
ebbflowgo has joined #ruby
exadeci has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sp4rrow has quit [Ping timeout: 260 seconds]
stannard has joined #ruby
idefine has quit [Remote host closed the connection]
<shevy> 'Further, if we read the output from "xxd" to see what was written to disk, we don?t see any trace of the rogue exclamation point!'
<shevy> damn those rogue characters
<Ox0dea> shevy: These exclamation points are going rogue! https://eval.in/457517
<Ox0dea> Shame about having to cap the iterations.
last_staff has quit [Quit: last_staff]
<Ox0dea> I wonder if it's been proved that Langton's ant never deviates once it gets on the highway.
doddok has quit [Quit: Leaving]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
pu22l3r has joined #ruby
stannard has quit [Ping timeout: 260 seconds]
crdpink has joined #ruby
socialjackie has joined #ruby
riotjon__ has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
riotjones has quit [Ping timeout: 252 seconds]
crdpink2 has quit [Ping timeout: 246 seconds]
arthurix_ has joined #ruby
bruno-_ has joined #ruby
arthurix has quit [Ping timeout: 255 seconds]
dzejrou has quit [Quit: dzejrou]
goodcodeguy has joined #ruby
Yzguy has joined #ruby
pu22l3r has quit [Remote host closed the connection]
pedahzur has quit []
lipoqil has joined #ruby
markfletcher has joined #ruby
to_json has quit [Quit: Leaving.]
rgb-one has quit []
to_json has joined #ruby
to_json has quit [Changing host]
to_json has joined #ruby
aadam21 has joined #ruby
ekinmur has joined #ruby
rabbithole has quit [Ping timeout: 240 seconds]
teclator has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
platzhirsch has joined #ruby
socialjackie has left #ruby ["Leaving"]
<mg^> How ironic is it that I managed to hang up the regexp engine matching a Larry Wall quote about backtracking?
Galas has quit [Quit: Leaving...]
fgo has joined #ruby
aadam21 has quit [Ping timeout: 252 seconds]
TheNet has quit [Remote host closed the connection]
null_ref has quit []
armyriad has quit [Ping timeout: 246 seconds]
<Ox0dea> > fail Errno::EDOOFUS, 'You deserve this confusion.', caller
armyriad has joined #ruby
hahuang65 has joined #ruby
shinnya has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
pandaant has quit [Remote host closed the connection]
sp_ has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
<jhass> mg^: 42 ironic
ss_much has quit [Quit: Connection closed for inactivity]
TomPeed has joined #ruby
<sp_> Lo.
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trosborn has joined #ruby
shock_one has joined #ruby
RegulationD has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
RegulationD has joined #ruby
baweaver has quit [Remote host closed the connection]
<mg^> Well, at least I figured out what particulars about the string it's getting locked up on
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Vile` has quit [Ping timeout: 255 seconds]
symm- has quit [Ping timeout: 265 seconds]
freerobby has quit [Quit: Leaving.]
rabbithole has joined #ruby
Yzguy has quit [Quit: Zzz...]
trosborn has quit [Client Quit]
shock_one has quit [Ping timeout: 250 seconds]
TheMadMagician has quit [Quit: Connection closed for inactivity]
dotix has joined #ruby
duckpupp1 has quit [Ping timeout: 244 seconds]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Vile` has joined #ruby
Oog has joined #ruby
to_json has quit [Ping timeout: 260 seconds]