apeiros changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<eam> % as a method is different from %{} as a syntax construct
<eam> similar to -a vs -1
mrf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Well, I know I wouldn't want ''%{} to do concatenation.
<eam> oh, I see
<eam> ambiguity
<eam> sorry - right that makes sense
<eam> % is really overused
dtcristo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam> >> ?a ?b
<ruboto> eam # => /tmp/execpad-44f85fa13d3e/source-44f85fa13d3e:3: syntax error, unexpected keyword_rescue, expecting ...check link for more (https://eval.in/414423)
rbennacer has quit [Remote host closed the connection]
<eam> doesn't work with ?c in any form
<eam> wait
<eam> >>?h "ello"
<ruboto> eam # => "hello" (https://eval.in/414424)
<Ox0dea> Yikes.
<eam> THAT is weird
f4cl3y__ has quit [Ping timeout: 244 seconds]
<Mon_Ouie> Surprising that it works in some ways. I imagined it wouldn't work at all because ?x used to be an integer literal.
einarj has quit [Remote host closed the connection]
maq has joined #ruby
Muhannad has quit [Remote host closed the connection]
<Ox0dea> 18>> ?w'tf'
<ruboto> Ox0dea # => /tmp/execpad-0103e73658d5/source-0103e73658d5:2: syntax error, unexpected tSTRING_BEG, expecting kEN ...check link for more (https://eval.in/414425)
framling has joined #ruby
<Mon_Ouie> ^ That doesn't work in 1.9/2.x either, by the way
<Mon_Ouie> You need the space for some reason
<Ox0dea> Mon_Ouie: It does?
<Mon_Ouie> From that question, I'm not sure if you expected it to work or not to work
<Mon_Ouie> >> ?w'tf'
<ruboto> Mon_Ouie # => "wtf" (https://eval.in/414428)
<Ox0dea> Tada!
<Mon_Ouie> Oh
<Mon_Ouie> >> ?w"tf"
<ruboto> Mon_Ouie # => "wtf" (https://eval.in/414429)
<Mon_Ouie> pry(main):8> ?h"ello" #=> SyntaxError: unexpected tCHAR, expecting ':'
<Mon_Ouie> not sure what happened with that
<eam> I think (can someone disprove this?) that here documents can't mix with static string concat behavior because they require newlines
<eam> and ruby oddly enough doesn't concat static strings across newlines
TomyLobo has quit [Ping timeout: 244 seconds]
<Ox0dea> eam: It does?
<Mon_Ouie> It does if you use a backslash at the end of a line though, maybe that can allow you to do it with heredocs?
prateekp has joined #ruby
<Ox0dea> >> eval '"\nabc\n""\ndef\n"' # eam
<ruboto> Ox0dea # => "\nabc\n\ndef\n" (https://eval.in/414430)
<eam> Ox0dea: like this
<prateekp> my rdoc is not displaying README.rdoc and other rdoc files
<Ox0dea> emdub: Did you mean that you'd like multiline static strings to concatenate without the newlines?
<prateekp> how to display them in the rdoc
dimasg has joined #ruby
<prateekp> ?
<Ox0dea> eam, not emdub...
<eam> >> eval '"aaa"' + "\n" + '"bbb"'
<ruboto> eam # => "bbb" (https://eval.in/414431)
<eam> it's because of the more general ruby issue where it can't distinguish newline ambiguity as end of statement
<eam> (insert rant about bringing back the semicolon here)
<Mon_Ouie> I prefer the default being no continuation and having a special symbol to indicate a continuation than the other way around
<Ox0dea> No-brainer, really.
<eam> to each his own ;-)
<eam> but like, if you have puts "aaa" "bbbb"
<eam> and you newline it to word wrap -- silent discard of "bbb"
<eam> same issue with puts a - b
hotpancakes has joined #ruby
<Ox0dea> You'd have only yourself to blame, in my opinion. :)
<eam> puts a - \n is ok, but if you \n before the - your math changes
<eam> Ox0dea: that's not true, I can blame anyone I want!
allcentury has quit [Ping timeout: 244 seconds]
maq has quit [Quit: maq]
<prateekp> my rdoc is not displaying README.rdoc and other rdoc files
<prateekp> how to display them in the rdoc
<prateekp> ?
<shevy> eam and Ox0dea are so similar... one fights newlines and semicolons, the other fights $9 versus $10
<eam> what's $9 vs $10
rbennacer has joined #ruby
<eam> ps, my favorite language is ocaml because it uses TWO semicolons
Zggb has quit [Quit: Connection closed for inactivity]
<shevy> that there is some exception for $1 up to $9 but not above. Ox0dea was not amused
[k- has quit [Ping timeout: 250 seconds]
FernandoBasso has quit [Quit: May the force be with you.]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
dgutierrez1287 has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
exadeci has quit [Quit: Connection closed for inactivity]
<eam> does it like clear the first 9 by default or something
<Mon_Ouie> They're not listed by global_variables even if they're set to something
<Ox0dea> Mon_Ouie: But $1 to $9 are.
<eam> aha
<Ox0dea> They're not even global variables, technically.
<eam> hm, it does clear them all
dimasg has quit [Ping timeout: 246 seconds]
<eam> Ox0dea: what are they?
<Ox0dea> eam: They're "scope-local".
Basque has joined #ruby
<eam> like regular old foo?
n008f4g_ has quit [Ping timeout: 246 seconds]
<eam> wooow
<eam> now THAT is surprising
<eam> $ isn't always global
shoutsid has quit [Remote host closed the connection]
marr has quit []
<Ox0dea> eam: Yep, just like regular old foo, except that they evaluate to nil rather than raising a NameError.
Coldblackice has joined #ruby
hotpancakes has quit [Remote host closed the connection]
<eam> are they actually individual, or are they dynamically scoped?
<Mon_Ouie> You might enjoy this abuse of their scoping rules: https://gist.github.com/0x0dea/19494c27b088c5d54710
<Mon_Ouie> Oh, wrong link
casadei_ has joined #ruby
<eam> looks like really local
<eam> well that's expensive
<Ox0dea> >> $v = []; 'foo'[/(\w+)/]; $v << $1; class Foo; 'bar'[/(\w+)/]; $v << $1 end; $v << $1
<ruboto> Ox0dea # => ["foo", "bar", "foo"] (https://eval.in/414432)
ap4y has quit [Ping timeout: 250 seconds]
wprice has joined #ruby
<Ox0dea> I can't even begin to conceive of a justification for that.
mikecmpbll has quit [Quit: i've nodded off.]
<Mon_Ouie> "Who in their right mind writes a regular expression with more than 9 capture groups?"
<Ox0dea> "People parsing `ps aux`."
<Ox0dea> In any case, I don't understand why they're artificially included like that.
<eam> they all look local to me
sevenseacat has joined #ruby
<Ox0dea> $~ and everything derived from it are local, yes.
nahtnam has quit [Quit: Connection closed for inactivity]
havenwood has joined #ruby
ohaibbq has quit [Quit: Leaving...]
f4cl3y__ has joined #ruby
[k- has joined #ruby
nofxx has quit [Ping timeout: 264 seconds]
<Ox0dea> shevy: Don't tell anyone, but I'm only so adamant about $10 because I'm trying to get these bewbs into the test suite: https://gist.github.com/0x0dea/3cf919d6c1a73a1d9965#file-gv-patch-L14
nofxx has joined #ruby
vdamewood has quit [Quit: Life beckons.]
abbe has quit [Remote host closed the connection]
<al2o3-cr> o? right-hook - jk hi everyone :)
<shevy> Ox0dea lol
govg has joined #ruby
dimasg has joined #ruby
hotpancakes has joined #ruby
<Ox0dea> trunk $ ag -F '(.)(.)' | wc -l
abbe has joined #ruby
<Ox0dea> 29
<al2o3-cr> boobies :)
<shevy> ..
ap4y has joined #ruby
<Ox0dea> In fact, that construct is used quite frequently in the documentation for Regexp.
dgutierrez1287 has joined #ruby
EllisTAA has quit [Ping timeout: 260 seconds]
<Ox0dea> test_regexp.rb as well, so I'll leave $10 alone.
dgutierrez1287 has quit [Remote host closed the connection]
<shevy> nobu 1, Ox0dea 0
bb010g has joined #ruby
<al2o3-cr> all i see is boobies
hotpancakes has quit [Ping timeout: 246 seconds]
<prateekp> which is better to use rdoc or yardoc
<prateekp> ?
<shevy> dunno yardoc but yard is the way to go!
<shevy> oh
<shevy> there was a rename
<shevy> I used to have this: https://github.com/lsegal/yard/
<shevy> ok guess it's yardoc
EllisTAA has joined #ruby
<al2o3-cr> my articulate rubling Ox0dea :)
<al2o3-cr> or rubyogi
mistermocha has joined #ruby
hinbody has joined #ruby
hotpancakes has joined #ruby
sarkyniin has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 265 seconds]
cashnguns has joined #ruby
dgutierrez1287 has joined #ruby
<Ox0dea> al2o3-cr: Articulating is for bones.
tvw has quit []
<prateekp> ohh
<prateekp> so i should use yard
<prateekp> and not rdoc
<prateekp> yard is more popular?
dgutierrez1287 has quit [Ping timeout: 250 seconds]
shazaum_ has quit [Quit: Leaving]
<pontiki> hi all
f4cl3y__ has quit [Ping timeout: 260 seconds]
sdwrage has joined #ruby
ledestin has joined #ruby
Kallis has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
jtdoncas has joined #ruby
havenwood has quit [Ping timeout: 265 seconds]
<jtdoncas> hey guys!
Kallis has joined #ruby
dkam has joined #ruby
<dkam> Hey guys - what's a good way to interact with remote services such as smtp or telnet in ruby? I want to be able to read the input, then reply to the prompts within ruby somehow
<BraddPitt> dkam you can use the core Net::SMTP class
Channel6 has quit [Remote host closed the connection]
<dkam> I'm not wanting to actually send email - I want to read the banner and test for relay-denied
<BraddPitt> you can use that interface to both send and receive messages
<dkam> I'm not looking to send / receive email - I just want to read the headers ( banner, TLS enabled ) and send a few commands to check things like relay-denied.
<shevy> prateekp I think so, it is more recent too
<dkam> I'd like to do the same kind of thing with imap - connect to the host and run a few test commands
<jtdoncas> dkam: I googled smtp read banner, and found this: https://github.com/shadyproject/pwb-scripts/blob/master/smtp-user-vrfy.rb. Suggesting, to use the Socket class
<dkam> jtdoncas: Ha - thanks for the google-fu - I'll check that out.
h4ckurate has joined #ruby
<jtdoncas> dkam: okay let me know how it goes, i'd be interested
<Ox0dea> dkam: 'net/telnet' was part of the standard library before 2.0, for what that's worth.
<Ox0dea> Erm... it's apparently still in in 2.2, but not on trunk.
<Ox0dea> Yeah, removed from the standard library May 21 this year.
<Ox0dea> The script jtdoncas linked is essentially doing what Net::Telnet would make slightly more convenient.
hotpancakes has quit [Remote host closed the connection]
<woodruffw> hey all - is anybody familiar with dynamic lookup hashes? i'm trying to use them for string formatting but running into KeyErrors upon lookup
govg has quit [Ping timeout: 265 seconds]
<woodruffw> something along these lines: "%{a}" % Hash.new { |hash, key| hash[key] = "banana" } # => KeyError
hotpancakes has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
zanloy has quit [Ping timeout: 240 seconds]
h4ckurate has quit [Ping timeout: 240 seconds]
<pontiki> huh
<pontiki> i would have expected that to work, actually
<woodruffw> yeah, me too :\
j4cknewt has quit [Read error: Connection reset by peer]
<Ox0dea> woodruffw: What's the use case?
j4cknewt has joined #ruby
cashnguns has quit [Read error: Connection reset by peer]
<woodruffw> Ox0dea: i'm using it to format a string using array sampled values for each hash
icedp has quit [Ping timeout: 255 seconds]
<woodruffw> so, for example, { x: ["a", "b"] } is crushed down to either "a" or "b" dynamically
Kallis has quit [Read error: Connection reset by peer]
<Ox0dea> woodruffw: So you know your keys?
einarj has joined #ruby
RickHull has left #ruby [#ruby]
<woodruffw> the keys are known in the original hash, the way i'm creating the dynamic one looks something like this: CONTENT = Hash.new { |hash, key| hash[key] = CONTENT_ARRS[key].sample }
icedp has joined #ruby
<Ox0dea> woodruffw: ARRS.zip(ARRS.map(&:sample)).to_h, no?
<Ox0dea> Well, not quite, but you see what I was going for.
<woodruffw> Ox0dea: yeah, i see what you're doing there. i'm doing something similar right now: content = Hash[CONTENT.map { |k, v| [k, v.sample] }]
<woodruffw> however, i was just wondering if a dynamic version was possible. it looks a lot cleaner, IMO
<Ox0dea> I do agree that it's a bug.
dorei has quit []
<pontiki> so clearly, format (%) is not accessing the hash input directly
<woodruffw> pontiki: no, it looks like it checks has_key? or something first (which incorrectly reports false for dynamic hashes)
<pontiki> i don't think that's incorrect
einarj has quit [Ping timeout: 246 seconds]
ponga has joined #ruby
<pontiki> even though it will create keys, it shouldn't report that a key exists before it does
<woodruffw> well it's not incorrect in the sense that the hash object itself is empty, but it is incorrect in the sense that a dynamic table has values for every key fed into it
iamninja has joined #ruby
<woodruffw> Ox0dea: you think it's worth reporting to the mailing list?
<Ox0dea> woodruffw: I'm looking into whether or not the current behavior is justified.
mrf has joined #ruby
<Ox0dea> I believe those are the two lines working together to thwart your happiness.
<woodruffw> yep, looks like it. i'll five into st_lookup and see what i come up with.
workmad3 has joined #ruby
<woodruffw> dive*
<Ox0dea> That shouldn't be necessary.
iamninja has quit [Ping timeout: 260 seconds]
j4cknewt has quit [Remote host closed the connection]
<Ox0dea> If I'm not mistaken, using rb_hash_aref() instead of rb_hash_lookup2() should "fix" it.
<woodruffw> oh, you're right. that was silly of me
<woodruffw> i'll bring this up on the mailing list and get some opinions
workmad3 has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
<woodruffw> of course, changing %/sprintf to use rb_hash_aref will cause nil to be formatted in when a key isn't present, which definitely isn't good behavior. perhaps a check against the default value first
devoldmx has joined #ruby
<Ox0dea> woodruffw: Aye, I think that's likely to have been a consideration when the feature was first introduced.
sdwrage has quit [Quit: This computer has gone to sleep]
<woodruffw> Ox0dea: yeah, that wouldn't surprise me ;)
devoldmx has quit [Ping timeout: 244 seconds]
Cronon has quit [Read error: Connection reset by peer]
Cronon has joined #ruby
sdwrage has joined #ruby
<Ox0dea> woodruffw: Perhaps best would be to use rb_hash_lookup2() and then rb_hash_aref() only if the former didn't find anything.
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
xxneolithicxx has quit [Quit: Leaving.]
<Ox0dea> Or maybe even check whether the Hash has a #default defined.
chipotle has joined #ruby
<woodruffw> Ox0dea: that sounds good, definitely better than letting the user silently format their strings with nils
<Ox0dea> >> nil.to_s # woodruffw
<ruboto> Ox0dea # => "" (https://eval.in/414433)
jonee has joined #ruby
bry246 has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
Vile` has quit [Ping timeout: 240 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
xxneolithicxx has joined #ruby
<woodruffw> oh no, i'm aware. i'm just saying that it probably isn't the correct behavior to fill a format string with empty strings, certainly more confusing to debug than a runtime error
Vile` has joined #ruby
_blizzy_ has quit [Ping timeout: 272 seconds]
nymous has quit [Quit: RAGING AXE! RAGING AXE!]
minmax has joined #ruby
mary5030 has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
chipotle has quit [Quit: cheerio]
EllisTAA has quit [Quit: EllisTAA]
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
astrobun_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
yfeldblum has joined #ruby
minmax has quit [Quit: WeeChat 0.4.3]
omegamike has joined #ruby
mrf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tjbiddle has joined #ruby
Musashi007 has joined #ruby
<Inside> hey Ox0dea, havenwood: thanks for the help
<Inside> I got it sorta working
Nieralyte has quit [Quit: Nieralyte]
<Inside> even managed to shoehorn bootstrap in there :D
BotchlaOffUrself has joined #ruby
ramfjord has joined #ruby
<BotchlaOffUrself> NO KLINE NO BAN NO FREEZE AND NO AKICK ARE A MATCH FOR MY HATRED FOR BOTCHLAB
omegamike has quit [Ping timeout: 255 seconds]
<BotchlaOffUrself> NOTHING U MOTHERFUCKERS DO WILL CHANGE ANYTHING
<Inside> <3
<Inside> ur my hero BotchlaOffUrself
<BotchlaOffUrself> NOTHING IS GOING TO FUCKIN STOP ME MOTHERFUCKERS
<BraddPitt> edgy
<BotchlaOffUrself> BOTCHLAB IS FUCKING
<BotchlaOffUrself> D E A D
juanca_ has joined #ruby
<sevenseacat> !ban BotchlaOffUrself !T 1d
BotchlaOffUrself was banned on #ruby by ChanServ [BotchlaOffUrself!*@*]
BotchlaOffUrself was kicked from #ruby by ChanServ [User is banned from this channel]
<sevenseacat> go away.
Feyn has joined #ruby
Basque has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
bazbing80 has joined #ruby
j4cknewt has joined #ruby
<bazbing80> '1234'.gsub('3',"\\") => "12\\4"
<bazbing80> how am I mean to just insert one back slash? :S That inserts two backslashes even though I need to escape it
<woodruffw> BraddPitt: whatcha doing on freenode?
<BraddPitt> idling in #ruby, what else
<bazbing80> woodruffw: I may be wrong but I don't think it's really Brad
<BraddPitt> Oh, it is
<bazbing80> BraddPitt: oh excellent!
<woodruffw> bazbing80: are you talking about the same BraddPitt i am? i recognize his nick from another network
<woodruffw> or do you mean the actor ;)
<bazbing80> woodruffw: actor x)
<woodruffw> ah, lol
astrobu__ has joined #ruby
postmodern has joined #ruby
bry789 has joined #ruby
bruno- has joined #ruby
bry789 has quit [Client Quit]
bry246 has quit [Ping timeout: 260 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
astrobun_ has quit [Ping timeout: 246 seconds]
<bazbing80> How do I insert one back slash into a string using gsub? '1234'.gsub('3','\') #=> syntax error as the backslash escapes the character to the right of it (single quoation. If I try to escape the backslash two backslashes get inserted. Not what I expected at all '1234'.gsub('3',"\\") => "12\\4" | expected "12\4"
<Ox0dea> >> "\\".size # bazbing80
<ruboto> Ox0dea # => 1 (https://eval.in/414435)
<bazbing80> Ox0dea: okay, that string is only 1 index long. But...
<Ox0dea> Well, what does that tell you?
<bazbing80> Ox0dea: that the second backslash is being escaped by the first
<Ox0dea> Thus resulting in a single backslash, yep.
bruno- has quit [Ping timeout: 255 seconds]
<jtdoncas> >> puts '1234'.gsub('3',"\\")
<ruboto> jtdoncas # => 12\4 ...check link for more (https://eval.in/414437)
<bazbing80> >> '1234'.gsub('3','\\')
<ruboto> bazbing80 # => "12\\4" (https://eval.in/414438)
<Ox0dea> This guy.
<Ox0dea> "\\" is just a representation you'll need to get used to; it's a single character.
freerobby has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
gambl0re has quit [Ping timeout: 256 seconds]
<Ox0dea> >> ['1234'.size, '1234'.gsub('3','\\').size] # bazbing80
<ruboto> Ox0dea # => [4, 4] (https://eval.in/414440)
brnpcn has quit []
brnpcn has joined #ruby
gambl0re has joined #ruby
<bazbing80> Ox0dea: I see...so it's impossible to have a string "\" ?
postmodern has quit [Quit: Leaving]
<bazbing80> yeah it is
juanca_ has quit []
<Ox0dea> bazbing80: Are you of the opinion that \ isn't the best escape character?
juanca_ has joined #ruby
astrobu__ has quit [Remote host closed the connection]
willharrison has joined #ruby
astrobun_ has joined #ruby
brnpcn has quit [Ping timeout: 240 seconds]
<Mon_Ouie> Let's make a language where 'e' is used as the escape character!
willharrison has quit [Client Quit]
<eam> ^V is my favorite escape character
<eam> stty lnext e # but e works too
postmodern has joined #ruby
<bazbing80> Ox0dea: Well it confused the hell out of me so no I don't think it is...but one character has to be the escape..I'd just get into the same mess if I wanted one of the literal escape characters
<bazbing80> whateer it was
<bazbing80> *whatever
ghormoon has quit [Quit: ZNC - http://znc.in]
<bazbing80> although it can get hard to read, especially in a regex //
tectonic has joined #ruby
astrobun_ has quit [Ping timeout: 255 seconds]
ghormoon has joined #ruby
einarj has joined #ruby
dopie has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
swgillespie has joined #ruby
blue_deref has quit [Quit: bbn]
towski_ has joined #ruby
pawz has joined #ruby
Ann has quit [Remote host closed the connection]
pawz has left #ruby ["Palaver http://palaverapp.com/"]
hotpancakes has quit [Remote host closed the connection]
Yzguy has quit [Quit: Zzz...]
prereflect has joined #ruby
user1138 has joined #ruby
prereflect has quit [Client Quit]
hotpancakes has joined #ruby
Ox0dea has quit [Quit: WeeChat 1.2]
<woodruffw> Ox0dea: i've done a quick patch, but with my local builds i'm running into an ArgumentError ("unnumbered(1) mixed with named"). i can trace this back to https://github.com/ruby/ruby/blob/trunk/sprintf.c#L134, but i'm not sure where that's being invoked...
astrobun_ has joined #ruby
<woodruffw> and the patch: http://hastebin.com/olafabivof
Musashi007 has quit [Quit: Musashi007]
hahuang61 has joined #ruby
rasengan has left #ruby [#ruby]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
prateekp has quit [Ping timeout: 246 seconds]
swgillespie has joined #ruby
Ox0dea has joined #ruby
postmodern has quit [Quit: Leaving]
<Ox0dea> woodruffw: I also ran into that error, but only when I included the '%{c}' in '%{a}%{b}%{c}'.
michael_mbp has quit [Excess Flood]
<Ox0dea> Not sure what's going on. :/
<Ox0dea> >> %r'////' # bazbing80
<ruboto> Ox0dea # => /\/\/\/\// (https://eval.in/414448)
dimasg has quit [Ping timeout: 246 seconds]
<woodruffw> hmm, stubbing it out with a break causes sprintf to return an empty hash, which definitely isn't right...
michael_mbp has joined #ruby
myztic has quit [Ping timeout: 244 seconds]
braincrash has quit [Quit: bye bye]
dkam has quit [Quit: Be back later ...]
dkam has joined #ruby
radgeRayden has quit [Ping timeout: 255 seconds]
Lucky__ has joined #ruby
aphprentice has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
braincrash has joined #ruby
hinbody has quit [Quit: leaving]
hotpancakes has quit [Remote host closed the connection]
dimasg has joined #ruby
towski_ has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
thiagovsk has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkf has joined #ruby
myztic has joined #ruby
havenwood has joined #ruby
mary5030 has quit [Remote host closed the connection]
bronson has joined #ruby
chipotle has joined #ruby
astrobun_ has quit [Remote host closed the connection]
dimasg has quit [Ping timeout: 245 seconds]
astrobun_ has joined #ruby
casadei_ has quit []
<jtdoncas> woodruffw: your way will also throw an error when you make the default value nil (ie. Hash.new(nil))
ecksit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<woodruffw> jtdoncas: which error does it throw in that case? it makes sense for it to through a KeyError when the default is nil
<woodruffw> oh i see, same ArgumentError. hmm...
<jtdoncas> woodruffw: No, it would throw a KeyError
<jtdoncas> which I don't think is intended behaviour
bronson has quit [Ping timeout: 264 seconds]
astrobun_ has quit [Ping timeout: 240 seconds]
<woodruffw> jtdoncas: what would be the intended behavior in that case? it doesn't make much sense to me for nils to be formatted into the string
<woodruffw> and by the ArgumentError i meant on my current builds, i'm currently tracing it down
j4cknewt has quit [Remote host closed the connection]
hotpancakes has joined #ruby
yh has quit [Ping timeout: 246 seconds]
<jtdoncas> woodruffw: I think throwing an exception on a nil value would be very strange behaviour...
<jtdoncas> it shouldn't be fundamentally different than:
<jtdoncas> >> '%s' % nil
<ruboto> jtdoncas # => "" (https://eval.in/414460)
<woodruffw> jtdoncas: it's not so strange when you consider the alternative, which i think is a lot harder to debug. the difference between your example and the hash is that it doesn't make much sense for NilClass to be a valid key
GeissT has quit [Remote host closed the connection]
<woodruffw> >> '%{a}' % Hash.new(nil)
<ruboto> woodruffw # => key{a} not found (KeyError) ...check link for more (https://eval.in/414462)
<jtdoncas> why not? I think it makes complete sense
GeissT has joined #ruby
<woodruffw> well, it's not the current behavior, and it would result in blank formatting instead of an error
workmad3 has joined #ruby
<woodruffw> >> x = { nil: "a" } ; x[nil]
<ruboto> woodruffw # => nil (https://eval.in/414463)
<jtdoncas> well current behaviour doesn't seem to handle dynamic hash
bmurt has joined #ruby
hotpancakes has quit [Ping timeout: 256 seconds]
<woodruffw> yes, but my solution is consistent with the current behavior re: nil keys. changing the behavior so that all lookups are valid would create a bit of a disparity
<jtdoncas> >> x = { nil => "a" }; x[nil]
<ruboto> jtdoncas # => "a" (https://eval.in/414464)
<Ox0dea> Derp. :P
<woodruffw> ah, symbols.
<Ox0dea> >> '%{a}' % {a: nil} # woodruffw
<ruboto> Ox0dea # => "" (https://eval.in/414465)
<Ox0dea> I don't see how you'd be breaking symmetry with the current behavior.
<Ox0dea> sprintf'ing with a dynamic Hash is quite magical; some potential for confusion is to be expected. :)
<woodruffw> yeah, maybe i'm getting hung up on something here...
<Ox0dea> woodruffw: You lose the notion of "key existence" the moment you give a Hash a default value/Proc.
workmad3 has quit [Ping timeout: 256 seconds]
<Ox0dea> That is, 'foo' % dynamic_hash can't possibly raise a KeyError.
<woodruffw> yeah, that's correct. my apologies jtdoncas, you were right :)
<jtdoncas> woodruffw: :) Still confused why you're getting an argument error :(
iamninja has joined #ruby
<woodruffw> yeah, that error is a real doozy. looking at the mess that is sprintf.c's rb_str_format, it's not gonna be fun to find :\
<jtdoncas> is there a thread I can follow where you reported the bug?
Oka has quit [Quit: さようなら]
<woodruffw> jtdoncas: i'm about to make a post on the mailing list. i'm not quite at the point where i'm willing to declare it a bug, it seems like this behavior was intentionally left out
freerobby has joined #ruby
sarmiena_ has joined #ruby
<jtdoncas> okay ill subscribe and keep an eye out then ;)
<woodruffw> cool :p
sdwrage has quit [Quit: This computer has gone to sleep]
swgillespie has joined #ruby
<Ox0dea> woodruffw: rb_hash_default() is static (and thus not exposed by intern.h), which indicates that it isn't intended to be used outside of hash.c.
iamninja has quit [Ping timeout: 252 seconds]
choke has joined #ruby
<Ox0dea> Of course, you could just copy over the implementation into sprintf.c, but that's smelly.
<woodruffw> yeah, that would not be ideal
<jtdoncas> he didn't use rb_hash_default though
<Ox0dea> But he "should" be doing so.
<Ox0dea> How to decide not to raise the KeyError except by checking whether the Hash has a default value/Proc?
symm- has quit [Ping timeout: 250 seconds]
hotpancakes has joined #ruby
<jtdoncas> true
bmurt has quit []
Matthews_ has joined #ruby
<woodruffw> what i'm doing right now only raises the KeyError if rb_hash_aref returns Qnil *and then* rb_hash_lookup2 returns Qundef, but that catches the case where the default value is set explicitly to `nil`
MatthewsFace has quit [Ping timeout: 260 seconds]
devoldmx has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
<Ox0dea> woodruffw: I think it'd make things much easier to not bother handling Hash.new(nil) differently.
<woodruffw> Ox0dea: i agree
<woodruffw> just made the mailing list post: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/70295
charliesome has quit [Quit: zzz]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
baroquebobcat has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
<jtdoncas> great! I'm off then, night everyone
chipotle has quit [Quit: cheerio]
tjbiddle has quit [Ping timeout: 245 seconds]
<woodruffw> goodnight o/
charliesome has joined #ruby
tjbiddle has joined #ruby
choke has joined #ruby
<Ox0dea> woodruffw: How'd you manage to lose your '='s in the ML post?
fedexo has joined #ruby
jtdoncas has quit [Ping timeout: 255 seconds]
gix has quit [Ping timeout: 240 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
omegamike has joined #ruby
<woodruffw> i have no idea...
<woodruffw> that's strange, how the hell did that happen?
hotpancakes has quit [Ping timeout: 240 seconds]
<woodruffw> i also lost the 'r' in rb_hash_lookup2(hash, sym, Qundef);
choke has quit [Client Quit]
<Ox0dea> Very weird.
aphprentice has quit [Read error: Connection reset by peer]
<Ox0dea> That patch certainly isn't acceptable given its modification of some otherwise unrelated files, but it approximates what I believe to be the right approach.
mistermocha has joined #ruby
<woodruffw> Ox0dea: even stranger, my local copy of that email is formatted correctly.
<Ox0dea> woodruffw: Eh, I'm sure whoever reads it will understand what you were going for.
<Ox0dea> My attempt mostly works, but I have no idea what's going on here:
gix has joined #ruby
<Ox0dea> build $ ./ruby -e "p '%{a}%{b}%{c}%{d}%{e}' % Hash.new { |_, k| k.to_s * 2 }"
<Ox0dea> "aabbddee"
<woodruffw> Ox0dea: yeah, that definitely looks like the right direction re: your patch
<woodruffw> now that's some strange behavior :p
<Ox0dea> Very.
<Ox0dea> I hesitate to call it a bug in the interpreter, but, well...
<woodruffw> it's very possibly that
<Ox0dea> I would think it might have something to do with %c being a format specifier, but so is %d.
<Ox0dea> In fact, all of them are format specifiers, so no clue.
j4cknewt has joined #ruby
astrobun_ has joined #ruby
omegamike has quit [Ping timeout: 250 seconds]
<[k-> what is the problem?
<woodruffw> hmm...and i just wanted an easy way to flatten my format hash :(
<Ox0dea> But we're learning!
<[k-> Ruby added % hash already
<woodruffw> Ox0dea: yep, can't argue with that
<Ox0dea> [k-: Yes, but it only works with boring Hashes.
<woodruffw> not with dynamic ones ;)
mrf has joined #ruby
<[k-> dynamic?
<Ox0dea> Those with a default value/Proc.
<Ox0dea> The term is only applicable in the latter case, I suppose.
<Ox0dea> Then again, magical key existence isn't exactly "static".
<[k-> probably some obscure way they are accessing it
mistermocha has quit [Ping timeout: 244 seconds]
ecksit has joined #ruby
<[k-> instead of doing the slower way, let's just do it the faster way
<woodruffw> well we traced down how % accesses hashes, and it intentionally ignores default values/Procs
<Ox0dea> Yeah, we've pretty much got the thing pinned down.
<Ox0dea> It was probably a design decision. :(
<woodruffw> indeed
ecksit has quit [Client Quit]
CanTonic has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<woodruffw> which is unfortunate, because dynamic formatting would be super awesome
<[k-> you can dynamic format using actual variables
<woodruffw> hm?
<[k-> and leave hash for the speedy things
Mendenhall has quit [Ping timeout: 240 seconds]
<woodruffw> well, my particular use case requires hashes. i need to format a non-determined string dynamically
<Ox0dea> [k-: String % Hash definitely has proper use cases.
<[k-> a = blah blah; "#{a}"
<Ox0dea> On a tangential note, I think this should work:
<Ox0dea> >> '%d %d' % [1].cycle rescue $!
<ruboto> Ox0dea # => #<TypeError: can't convert Enumerator into Integer> (https://eval.in/414472)
<woodruffw> String % Hash is the only way i know in ruby to do template-like strings, interpolation isn't ideal for when you haven't declared the variables yet
<woodruffw> without bringing in a lib, of course
<[k-> but you just want to generate strings!
<Ox0dea> Non-deterministic ones!
<[k-> who generates strings through default_proc
<[k-> weeeeiiiiiiiird
<Ox0dea> Your face.
<[k-> :3
<woodruffw> lol
<[k-> at most {user_id: 3728492, name: "fjeoaogk"}
einarj has joined #ruby
<woodruffw> well, i don't know the keys either ;)
<[k-> this will be horrible for testing
<[k-> if you dont know the keys, how will you interpolate it
<woodruffw> well, i know the keys are present in the hash
<woodruffw> i just don't know which keys they are
<[k-> but you wont be able to order them correctly
<woodruffw> they don't have to be ordered, that's the nice thing about the hash
<[k-> bu
<[k-> but you are formatting strings here
<woodruffw> >> "%{a} %{b}" % { b: "x", a: "y" }
<[k-> the keys are placed into order
<ruboto> woodruffw # => "y x" (https://eval.in/414473)
sdwrage has joined #ruby
<[k-> you dont know the key names!
<woodruffw> you're right, i don't
<woodruffw> [k-: maybe i'm not explaining it well, here's the SO post i made on the issue a few hours ago http://stackoverflow.com/questions/31910205/using-a-dynamic-lookup-hash-with-strings-and/31910726?noredirect=1#comment51735335_31910726
<[k-> what, %{#{hash.first}} ....
<woodruffw> oops, linked you to the comment. well, just remove that part
halcyone3 has joined #ruby
<[k-> now you are just generating keys which do not exist
<[k-> so you want placeholder values
uber has quit [Ping timeout: 256 seconds]
<woodruffw> no, all the keys exist in the "parent" hash
einarj has quit [Ping timeout: 246 seconds]
<woodruffw> the idea is to use the Proc to dynamically associate the parent hash's key with a random element from the parent value array
decaff has joined #ruby
<[k-> just #values and use an array to do it automatically
<[k-> shuffle the array too then
<woodruffw> i'm not sure what you mean
<[k-> >> "a: %s, b: %s, c: %s, d: %s" % [?a, ?b, ?c, ?d].shuffle
<ruboto> [k- # => "a: d, b: b, c: a, d: c" (https://eval.in/414474)
<[k-> look, it did what you wanted
sarmiena_ has left #ruby [#ruby]
<woodruffw> [k-: well, that's not really what i want. i'm constructing sentences, so there is *some* structure to the results
<[k-> probably should have used %w ;-; that was painful, Ox0dea, painful
<[k-> structure means order
calleerlandsson has quit [Quit: Connection closed for inactivity]
Jandre has joined #ruby
<woodruffw> that's what i'm doing, and my current solution
shoutsid has joined #ruby
<[k-> so you want to generate random values
<[k-> to fill the string
<[k-> to make funny strings
<woodruffw> well, i am generating random values. my current solution works just fine, it's just ugly
<woodruffw> (IMO)
<[k-> i did that before, but i did the long way
sepp2k has quit [Quit: Leaving.]
<[k-> like your way actually
<woodruffw> `content = Hash[CONTENT.map { |k, v| [k, v.sample] }]` works, but it's meaning isn't really obvious. i think a dynamic table would be much easier to interpret
bruno- has joined #ruby
ohaibbq has joined #ruby
<[k-> instead of %{} use <key>?
<woodruffw> huh?
<[k-> and extract the key out using a regex and use gsub
<woodruffw> that's kinda kludgey, don't you think?
<Ox0dea> [k-: You're being disruptive.
<[k-> %{imploreaudio} -> <imploreaudio>
<Ox0dea> (For real, though.)
<Ox0dea> Regular expressions are not called for in this case.
<woodruffw> [k-: i get what you mean, but that's not ideal at all
<Ox0dea> You already sound like a Perler. :'(
<[k-> but your way seems very odd
EllisTAA has joined #ruby
<Ox0dea> I think it's perfectly sensible.
<woodruffw> i think my way is pretty clean conceptually
<woodruffw> not my current way, the way i want
<[k-> woodruffw, you said you didnt know the keys
mary5030 has joined #ruby
<[k-> but you *do* know
<woodruffw> i don't know them, they're sampled randomly
<Ox0dea> [k-: A headline is one of many template strings, and the templates can each be one of several random word(s). How does manipulating two calls to #sample not strike you as the right approach?
wprice has quit [Quit: wprice]
bruno- has quit [Ping timeout: 260 seconds]
ghormoon has quit [Ping timeout: 255 seconds]
<[k-> forgive me but it doesnt seem wrong
<[k-> does it not work?
<Ox0dea> woodruffw: I guess the "reasonable" (read: less awesome) approach would be to make your headlines arrays of String|Symbol, then map the Symbols to #sample calls and #join the result.
mary5030 has quit [Ping timeout: 246 seconds]
<woodruffw> hmm, yeah :\
<Ox0dea> HEADLINES.sample.map { |s| Symbol === s ? CONTENT[s].sample : s }.join
<Ox0dea> That doesn't seem so bad.
<Ox0dea> join(' '), obviously.
decaff has quit [Read error: Connection reset by peer]
decaff has joined #ruby
<woodruffw> yeah, that's not bad at all. i'll probably change it to something along those lines, my current solution doesn't sit well with me at all
<Ox0dea> It's the kind of approach I'd take if the strings were being sent to and coming from, say, a tech-unsavvy translator.
<Ox0dea> Those're becoming ever scarcer, though.
<[k-> i dont get you at all?
<Ox0dea> ?
halcyone3 has quit [Ping timeout: 256 seconds]
<[k-> ah forget it, your solution works, and i dont understand the problem at hand
gambl0re has quit []
uber has joined #ruby
<[k-> i'll just go eat something
<Ox0dea> I'm going to go light something on fire.
gambl0re has joined #ruby
<woodruffw> and i'm going to hit the sack
<woodruffw> goodnight :)
lannonbr has quit [Quit: WeeChat 1.2]
halcyone3 has joined #ruby
gambl0re has quit [Client Quit]
gambl0re has joined #ruby
<Ox0dea> Night, woodruffw.
gambl0re has quit [Client Quit]
ghormoon has joined #ruby
ascarter has joined #ruby
gambl0re has joined #ruby
basmoura has quit [Remote host closed the connection]
hotpancakes has joined #ruby
gambl0re has quit [Client Quit]
gambl0re has joined #ruby
arooni-mobile has joined #ruby
arooni-mobile__ has joined #ruby
pepperbreath has left #ruby [#ruby]
baroquebobcat has quit [Quit: baroquebobcat]
Tammyta has joined #ruby
juanca_ has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 250 seconds]
ledestin has joined #ruby
Tempesta has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
Tempesta has joined #ruby
decaff has quit [Read error: Connection reset by peer]
bb010g has quit [Quit: Connection closed for inactivity]
<Tammyta> hello, what am i doing wrong? https://gist.github.com/tammyta/e24d7b89a4cb7dc3c94d
mrf has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> Tammyta: require 'data_mapper'
ivanskie has joined #ruby
<Ox0dea> I don't know why they did that.
Encapsulation has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
<Tammyta> i tried, i get TONS or more errors
<Tammyta> it should be data_mapper anyway?
<Ox0dea> Yes, that's the file to require.
gambl0re has quit [Ping timeout: 244 seconds]
<Tammyta> so datamapper, doesn't exist? i tried gem install with both and neither gave me erros, i also saw tutorials with both of them
<Ox0dea> Tammyta: The gem's name is "datamapper", but its "main file" is named "data_mapper.rb".
<Ox0dea> Thus, you must require 'data_mapper'.
<Tammyta> oh ok, thanks
<Ox0dea> Happy to help.
pawnbox has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby1 has quit [Quit: Leaving.]
<Tammyta> https://gist.github.com/tammyta/e24d7b89a4cb7dc3c94d updated with all the errors i get Ox0dea :P
astrobun_ has quit [Remote host closed the connection]
djbkd has joined #ruby
<Ox0dea> Tammyta: That is one error.
<Tammyta> uhm, i see
psy_ has quit [Ping timeout: 252 seconds]
danieli has quit [Quit: *does an epic backflip into nowhere*]
Encapsulation has joined #ruby
<Ox0dea> Interpolation does not occur within single-quoted strings.
AlexRussia has joined #ruby
<Tammyta> i'm kind of a newb, but i just changed that, and it worked..
psy_ has joined #ruby
<Ox0dea> Yay!
<Tammyta> thanks again
<Ox0dea> Sure thing.
<Tammyta> i mean, worked as in, no errors yet
psy_ has quit [Max SendQ exceeded]
dkam has quit [Quit: Lingo: www.lingoirc.com]
psy_ has joined #ruby
freerobby has joined #ruby
<Tammyta> yay, it's working as i thought it would
symm- has joined #ruby
mistermocha has joined #ruby
riotjones has joined #ruby
choke has joined #ruby
j4cknewt has quit [Remote host closed the connection]
choke has quit [Client Quit]
sdothum has quit [Ping timeout: 250 seconds]
chrissonar has joined #ruby
riotjones has quit [Ping timeout: 246 seconds]
Musashi007 has joined #ruby
freerobby has quit [Quit: Leaving.]
dhjondoh has joined #ruby
JoshGlzBrk has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
EllisTAA has quit [Quit: EllisTAA]
hotpancakes has joined #ruby
Encapsulation has quit [Ping timeout: 256 seconds]
EllisTAA has joined #ruby
fedexo has quit [Ping timeout: 246 seconds]
Inside has quit [Ping timeout: 265 seconds]
EllisTAA has quit [Client Quit]
workmad3 has joined #ruby
radgeRayden has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sylvain31 has joined #ruby
EllisTAA has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang61 has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 265 seconds]
EllisTAA has quit [Client Quit]
chipotle has joined #ruby
tmtwd has quit [Read error: Connection reset by peer]
Tritone has joined #ruby
Tritone has left #ruby [#ruby]
ferhaty has joined #ruby
mary5030 has quit [Remote host closed the connection]
EllisTAA has joined #ruby
EllisTAA has quit [Client Quit]
astrobun_ has joined #ruby
skade has joined #ruby
kp666 has joined #ruby
<flughafen> sup peoples
kp666 has quit [Max SendQ exceeded]
kp666 has joined #ruby
Tammyta has quit [Quit: Tammyta]
kp666 has quit [Max SendQ exceeded]
hotpancakes has quit [Remote host closed the connection]
kp666 has joined #ruby
dopamean_ has quit [Quit: leaving]
riotjones has joined #ruby
kp666 has quit [Max SendQ exceeded]
kp666 has joined #ruby
saddad has quit [Ping timeout: 244 seconds]
ngo_nuong_bbq is now known as crowell
choke has joined #ruby
iamninja has joined #ruby
<[k-> flughafen!
edwinvdg_ has quit [Remote host closed the connection]
swgillespie has joined #ruby
<flughafen> sup [k-
yardenbar has joined #ruby
User458764 has joined #ruby
ramfjord has joined #ruby
<[k-> nothing, after a poorly interpreting question and going for lunch
<[k-> guess i should do my homework now
anisha has joined #ruby
iamninja has quit [Ping timeout: 272 seconds]
krz has joined #ruby
Mendenhall has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
MatthewsFace has joined #ruby
Asher has quit [Read error: Connection reset by peer]
Asher1 has joined #ruby
Asher1 has quit [Client Quit]
Asher has joined #ruby
omegamike has joined #ruby
Matthews_ has quit [Ping timeout: 272 seconds]
_ht has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
_ht has quit [Client Quit]
aganov has joined #ruby
danieli has joined #ruby
hotpancakes has joined #ruby
ap4y has quit [Quit: WeeChat 1.2]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
omegamike has quit [Ping timeout: 256 seconds]
skade has quit [Quit: Computer has gone to sleep.]
yh_ has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
_ht has joined #ruby
<flughafen> [k-: how was your weekend
_ht has quit [Client Quit]
swgillespie has joined #ruby
Trynemjoel has joined #ruby
_ht has joined #ruby
ta has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
skade has joined #ruby
Musashi007 has joined #ruby
halcyone3 has quit [Ping timeout: 244 seconds]
jonee has quit [Ping timeout: 260 seconds]
sinkensabe has joined #ruby
<[k-> i wasted it
j4cknewt has joined #ruby
roolo has joined #ruby
swgillespie has quit [Ping timeout: 250 seconds]
elton has quit [Quit: elton]
tjbiddle has joined #ruby
krz has quit [Quit: WeeChat 1.2]
dented42 has joined #ruby
Encapsulation has joined #ruby
mistermocha has joined #ruby
dimasg has joined #ruby
Jarboe has quit []
halcyone3 has joined #ruby
arooni-mobile has quit [Ping timeout: 240 seconds]
arooni-mobile__ has quit [Ping timeout: 244 seconds]
khebbie has joined #ruby
arup_r has joined #ruby
<flughafen> WAY TO GO
arup_r has quit [Remote host closed the connection]
astrobun_ has quit [Read error: Connection reset by peer]
tjbiddle has quit [Quit: tjbiddle]
astrobun_ has joined #ruby
<wasamasa> and I thought airports did nothing else than wasting people's time
<flughafen> wasamasa: don't make me waste your time!
* flughafen just lost wasamasa's luggage
dimasg has quit [Ping timeout: 260 seconds]
arup_r has joined #ruby
mistermocha has quit [Ping timeout: 245 seconds]
<wasamasa> oh noes
govg has joined #ruby
[spoiler] has quit [Quit: WeeChat 1.1]
Vile` has quit [Ping timeout: 246 seconds]
DoubleMalt has joined #ruby
[spoiler] has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Vile` has joined #ruby
frem has joined #ruby
Tamtam has joined #ruby
Musashi007 has quit [Quit: Musashi007]
tmtwd has joined #ruby
sinkensabe has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
tkuchiki has quit [Remote host closed the connection]
yh_ has quit [Ping timeout: 250 seconds]
Pupeno has joined #ruby
tkuchiki has joined #ruby
michael_mbp has joined #ruby
solars has joined #ruby
codecop has joined #ruby
Violentr has joined #ruby
Macaveli has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
charliesome has quit [Quit: zzz]
Guest24 has quit [Quit: Coyote finally caught me]
elton has joined #ruby
lele has joined #ruby
charliesome has joined #ruby
devoldmx has joined #ruby
JoshGlzBrk has joined #ruby
howdoicomputer has joined #ruby
tmtwd has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 256 seconds]
greenarrow has joined #ruby
user1138_ has joined #ruby
bayed has joined #ruby
sinkensabe has joined #ruby
<ljarvis> moin
GeissT has quit [Remote host closed the connection]
niemcu has joined #ruby
djbkd has quit [Quit: Leaving...]
ta has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
kmossco has joined #ruby
<[k-> vacation over?
kmossco has left #ruby ["Leaving..."]
kmossco has joined #ruby
<apeiros> moin
Philipp__ has joined #ruby
kmossco has left #ruby ["Leaving..."]
<ljarvis> si
ta has quit [Quit: Leaving...]
workmad3 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<[spoiler]> Oo where'd you go, ljarvis? How much fun did you have? :D
pawnbox has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
tkuchiki has joined #ruby
<Ox0dea> Of the 8,505 7 Little Words puzzles currently available, 6 of them have their internal clues out of order.
sdwrage has joined #ruby
<Ox0dea> I wonder what happened.
yh_ has joined #ruby
<[spoiler]> lmao I randomly put something and it was a guess; didn't even know it was a rod
<[spoiler]> Also this is the first time I heard of this game
workmad3 has quit [Ping timeout: 264 seconds]
ta has joined #ruby
<Ox0dea> I'm trying to determine the feasibility of solving them programatically.
<Ox0dea> Without implementing any NLP to interpret the clues, obviously.
radgeRayden has quit [Ping timeout: 265 seconds]
Mendenhall has quit [Ping timeout: 246 seconds]
<[spoiler]> just permute all the boxes, no?
<Ox0dea> Not quite.
<Ox0dea> >> (1..20).reduce(:*) # Also this.
<ruboto> Ox0dea # => 2432902008176640000 (https://eval.in/414574)
lechuk has quit [Quit: leaving]
einarj has joined #ruby
roolo has quit [Remote host closed the connection]
terlar has joined #ruby
<Ox0dea> I suspect there must be some very clever dynamic programming approach to the thing, but I haven't hit upon it yet.
<[spoiler]> If you don't look for clues with a NLP, wouldn't the only other solution be to randomly guess it? I can't think of an other approach
sdwrage has quit [Quit: This computer has gone to sleep]
<Ox0dea> Elimination and backtracking would get most of the way there, I'm sure.
<[spoiler]> another*
<[spoiler]> omg
<[spoiler]> I got all 7 yay me
<[spoiler]> I love this
<Ox0dea> Huzzah!
<[spoiler]> Ok I need to work though :(
mclee has quit [Ping timeout: 250 seconds]
<Ox0dea> To clarify, I intend to use a dictionary to validate guesses, then use some sort of constraint solver to eliminate the impossible combinations.
arup_r has quit []
<Ox0dea> Using *only* the words that actually appear in any of the puzzles feels like cheating, though.
AlphaAtom has joined #ruby
einarj has quit [Ping timeout: 255 seconds]
symm- has quit [Ping timeout: 260 seconds]
<[spoiler]> Oh, good luck with dictionary APIs. They're either slow as fuck or expensive as fuck (I remember having to use one a few years back for a game I was making)
<[spoiler]> well it was a thesaurus+dictionary api, now that I think of it
<Ox0dea> [spoiler]: I suppose I should have said "word list" instead.
hotpancakes has quit [Remote host closed the connection]
<[spoiler]> Where will you find that, though? And I imagine that unless you use something 7LW-specific, the list might be huuuuge
<Ox0dea> ~ $ wc -l < /usr/share/dict/words-insane
<Ox0dea> 675259
mdavid613 has joined #ruby
<Ox0dea> *That* is a huge list, 7LW only uses a total of 8,238 words in its 8,505 English puzzles.
<[spoiler]> Oh wow I wasn't aware of /usr/share/dict; I saw the dir probably, but assumed it was something else
<[spoiler]> this is cool
dopie has quit [Quit: This computer has gone to sleep]
monoprotic has quit [Read error: Connection reset by peer]
<[k-> i didn't know decadelong was a word
ohaibbq has quit [Quit: Leaving...]
pawnbox has joined #ruby
<Ox0dea> It's not in words-insane!
<Ox0dea> Probably ought to be, though? "Yearlong" is there, anyway.
nveselinov has joined #ruby
<[spoiler]> Actually decadelong was the word I randomly tried; I've only ever heard a friend's mum use it to exaggerate time periods
Jandre has quit [Ping timeout: 272 seconds]
mdavid613 has quit [Quit: Leaving.]
<Ox0dea> Maybe somebody wanted that.
<Ox0dea> Notice that all of the "chunks" are in clue order, except for six mysterious outliers.
Averna has joined #ruby
<Ox0dea> I bet there's an intern to blame. "No, Steve, that's not how we do it here! Ugh, ship it."
mdavid613 has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Blaguvest has joined #ruby
omegamike has joined #ruby
iamninja has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
bruno- has joined #ruby
yh_ has quit [Ping timeout: 244 seconds]
bodgix has joined #ruby
JoshGlzBrk has quit [Read error: Connection reset by peer]
conor_ has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
iamninja has quit [Ping timeout: 245 seconds]
omegamike has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
bruno- has quit [Ping timeout: 252 seconds]
<[spoiler]> maybe someone just got lazy
<[spoiler]> or was lazy and then decided "no, I'll do this right!"
<[spoiler]> and mixed them up
<jhass> or they were made a hand and then "Oh shit, I reaaay should script it"
<jhass> *reeally
<jhass> and *by. Not awake yet :(
<adaedra> Hello
<[spoiler]> Hi
bigkevmcd has joined #ruby
<[spoiler]> and, good morninf :)
ponga has quit [Quit: Connection closed for inactivity]
<[spoiler]> morning
dumdedum has joined #ruby
<adaedra> Good morninf to you too :)
yfeldblum has joined #ruby
senayar has joined #ruby
mikecmpbll has joined #ruby
Violentr has quit [Ping timeout: 265 seconds]
czetter_ has joined #ruby
Violentr has joined #ruby
mdavid613 has quit [Quit: Leaving.]
khebbie has quit [Remote host closed the connection]
khebbie has joined #ruby
devbug has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
h4ckurate has joined #ruby
<apeiros> and today: fun with microsoft exchange web services! fun for the whole family!
sylvain31 has quit [Ping timeout: 265 seconds]
rdark has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
sylvain31 has joined #ruby
clad_fraug has joined #ruby
mcgain_ has joined #ruby
mcgain has quit [Ping timeout: 260 seconds]
mcgain_ is now known as mcgain
jimms has joined #ruby
<apeiros> hah, even more fun
<adaedra> ?ot apeiros
<ruboto> apeiros, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<adaedra> :3
<apeiros> adaedra: but it's written in ruby! it's a ruby ews client!
<adaedra> nvm then, carry on
tectonic has quit []
asaaki has joined #ruby
<apeiros> already moved it to OT :-D
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
charliesome has quit [Quit: zzz]
spider-mario has joined #ruby
leafybasil has quit [Remote host closed the connection]
h4ckurate has quit [Quit: h4ckurate]
bweston92 has joined #ruby
jbw has quit [Read error: Connection reset by peer]
Alina-malina has quit [Quit: Leaving]
lampshades has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
bweston has joined #ruby
lampshades has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
pawnbox has quit [Read error: Connection reset by peer]
pawnbox_ has joined #ruby
Guest52508 has joined #ruby
Tamtam has quit [Quit: Tamtam]
bweston92 has quit [Ping timeout: 246 seconds]
michael_mbp has joined #ruby
sylvain31 has quit [Ping timeout: 240 seconds]
mcgain_ has joined #ruby
leat has joined #ruby
mcgain has quit [Ping timeout: 252 seconds]
mcgain_ is now known as mcgain
charliesome has joined #ruby
doertedev has joined #ruby
hotpancakes has quit [Remote host closed the connection]
mcgain has quit [Client Quit]
Tristan-Speccy has quit [Ping timeout: 246 seconds]
bodgix has quit [Quit: Leaving.]
dionysus69 has joined #ruby
c0m0 has joined #ruby
dhtns has joined #ruby
cornerma1 has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
<yorickpeterse> morning
f4cl3y__ has joined #ruby
<maloik> heya
cschneid has quit [Ping timeout: 244 seconds]
cornerman has quit [Ping timeout: 250 seconds]
cornerma1 is now known as cornerman
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gregf_ has quit [Ping timeout: 240 seconds]
anisha_ has joined #ruby
pawnbox has joined #ruby
j4cknewt has quit [Remote host closed the connection]
anisha has quit [Ping timeout: 246 seconds]
mcgain has joined #ruby
gregf_ has joined #ruby
devoldmx has joined #ruby
cschneid has joined #ruby
pawnbox has quit [Remote host closed the connection]
anisha__ has joined #ruby
ndrei has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
tomphp_ has joined #ruby
leafybasil has joined #ruby
Macaveli has joined #ruby
TheHodge has joined #ruby
pawnbox has joined #ruby
anisha_ has quit [Ping timeout: 244 seconds]
<ljarvis> so many tires
<ljarvis> tireds
devoldmx has quit [Ping timeout: 265 seconds]
<maloik> y u no coffee
workmad3 has joined #ruby
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
howdoicomputer has quit [Ping timeout: 255 seconds]
hotpancakes has joined #ruby
<ljarvis> i haz
workmad3 has quit [Ping timeout: 265 seconds]
<ljarvis> it no halp
<yorickpeterse> ljarvis: maybe go to bed earlier
<[k-> hm, classic case of vacation withdrawal syndrome
<yorickpeterse> (says the one who fell asleep in the train this morning)
<yorickpeterse> (and missed his station)
jbw has joined #ruby
<ljarvis> :/
<ljarvis> i went to bed at 10pm
<yorickpeterse> lol wat
<yorickpeterse> are you 85 or something?
aspiers has quit [Ping timeout: 256 seconds]
<ljarvis> i did have a birthday on friday
<adaedra> no, tired he told you
<yorickpeterse> I think I fell asleep somewhere between 01:30 and 02:00
<ljarvis> but not quite 85
<yorickpeterse> darn Witcher 3 is too addictive :<
withnale_ has joined #ruby
hotpancakes has quit [Ping timeout: 244 seconds]
GeissT has joined #ruby
gizmore has joined #ruby
M-mistake has quit [Remote host closed the connection]
MatrixBridge has quit [Remote host closed the connection]
M-prosodyContext has quit [Remote host closed the connection]
quimrstorres has joined #ruby
joonty has joined #ruby
<maloik> current status: installing 187 on my machine :(
quimrstorres has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
sylvain31 has joined #ruby
tomphp_ has quit [Max SendQ exceeded]
<ljarvis> ...
MatrixBridge has joined #ruby
<maloik> nvm, errors... client will have to wait
<ljarvis> i think that's the SOS code
<ljarvis> clearly maloik is under distress
<ljarvis> kidnapped, perhaps
<maloik> :D
AnoHito has quit [Read error: Connection reset by peer]
<ljarvis> today I celebrate moving away from gmail
AnoHito has joined #ruby
einarj has joined #ruby
<[k-> whyyyyyy
<ashleyhindle> I literally just moved some of my email to Fastmail
<ljarvis> ashleyhindle: yep that's where I went too
<ljarvis> couldn't be happier
<ashleyhindle> It's the future
<ashleyhindle> Ditto
<[k-> · · · — — — · · ·
<ljarvis> should have done this ages ago
<[k-> this is a real SOS
ta_ has joined #ruby
tomphp_ has joined #ruby
ta has quit [Read error: Connection reset by peer]
<ljarvis> [k-: every time i get something off of google i gain some happiness
greenarr_ has joined #ruby
greenarr_ has quit [Excess Flood]
jimms has quit [Remote host closed the connection]
astrobu__ has joined #ruby
quimrstorres has joined #ruby
greenarr_ has joined #ruby
greenarr_ has quit [Excess Flood]
<[k-> decentralizing?
<ljarvis> degoogleizing
<[k-> whyyyyyyyy
greenarr_ has joined #ruby
greenarr_ has quit [Excess Flood]
hotpancakes has joined #ruby
spider-mario has quit [Remote host closed the connection]
sevenseacat has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<maloik> anyone here know of good conference room microphones to plug into a laptop? as in, roundtable meetings where one (or more) people are working remotely
quimrstorres has joined #ruby
einarj has quit [Ping timeout: 246 seconds]
greenarr_ has joined #ruby
greenarr_ has quit [Excess Flood]
<maloik> macbook's microphone + hangouts are horrible
<sevenseacat> seems ruby-related
<bnagy> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
aspiers has joined #ruby
<bnagy> like srsly, though wtf
workmad3 has joined #ruby
greenarrow has quit [Ping timeout: 256 seconds]
<adaedra> [k-: because Google is EVIL
solars has quit [Quit: WeeChat 0.4.2]
astrobun_ has quit [Ping timeout: 272 seconds]
Timba-as has joined #ruby
<ashleyhindle> You have to take down Evil Corp
<[k-> but if Google loses customers it can't provide me free services :(
<maloik> sevenseacat: turned out #microphone-buying-advice was empty
<ljarvis> those services they discontinue a year down the line
<sevenseacat> maloik: your loss.
pawnbox has joined #ruby
Violentr has quit [Ping timeout: 246 seconds]
<yorickpeterse> ljarvis: here's the twist though
codecop has quit [Remote host closed the connection]
<yorickpeterse> google pretty much owns everything anyway
<yorickpeterse> So Gmail or no Gmail, it won't make any difference
<ljarvis> of course it will
mclee has joined #ruby
<maloik> how are the spam filters on fastmail though? last I heard they were far worse than google's
<yorickpeterse> All your incoming and outgoing Email is being gobbled up by plenty of organizations
greenarrow has joined #ruby
<yorickpeterse> Google is the least of your worries
<ljarvis> maloik: everyone's is worse than Google's. It's a lot better though
<yorickpeterse> Granted Gmail in itself isn't all that great
solars has joined #ruby
<[k-> no one ever tried to take down Microsoft
pawnbox has quit [Remote host closed the connection]
<jhass> yorickpeterse: but the easiest to remedy, so why not take the opportunity
<yorickpeterse> [k-: Correct, because they just bent over
mistermocha has joined #ruby
pawnbox has joined #ruby
<[k-> so give Google time to bend over
<yorickpeterse> jhass: because it changes nothing
hotpancakes has quit [Ping timeout: 260 seconds]
<ljarvis> i just don't want to keep giving google my stuff voluntarily
<yorickpeterse> That's an entirely different reasoning
<yorickpeterse> e.g. I long for not having to use Google Contacts
<yorickpeterse> or Google calendar
<yorickpeterse> both are shit
<ljarvis> plus they closed one of my gmail accounts
<yorickpeterse> especially the UI
<ljarvis> yep, and i dont use either of those anymore
<ljarvis> and feel a lot better off for it
<yorickpeterse> Fastmail has caldav doesn't it?
<yorickpeterse> and webdav IIRC
<ljarvis> yeah
Vile` has quit [Ping timeout: 245 seconds]
<[k-> at least they actually produce nice ui for certain stuff
<[k-> like material design
<ljarvis> who? google?
<[k-> and holo
<yorickpeterse> lol material design
<yorickpeterse> The biggest excuse for being a lousy designer
<ljarvis> i hate their UI in almost all of their products
<yorickpeterse> "Fuck, I can't design for shit. You know what, lets remove all elements and just use coloured squares. GENIUS"
<elaptics> yorickpeterse: I thought I was the only one who hated google calendar...you've made my day :)
<[spoiler]> I use Google products all the time. I don't really care if Google knows stuff about me, TBF. It doesn't know stuff I don't want it to know
<[k-> i like it :o
hotpancakes has joined #ruby
<[k-> yorickpeterse: flat is tending
<[k-> trending*
<[spoiler]> yorickpeterse: I kinda like Material, too
<maloik> [spoiler]: you think! **puts on tinfoil hat**
<jhass> aaanyway
<[spoiler]> maloik: LOL
<jhass> waaay ?ot ehre
<adaedra> ehre
Vile` has joined #ruby
<[k-> eerh
<yorickpeterse> I don't think anybody has ever actually proven flat/material design to be remotely user friendly
lxsameer has joined #ruby
lxsameer has joined #ruby
<[spoiler]> Go home, ehre. Your offtopicness is not welcome
<yorickpeterse> people just seem to go with it because the big corporations are using it
<yorickpeterse> The single biggest problem with it is that it's nigh impossible to distinguish between a button and just a square
<yorickpeterse> since buttons are usually just...squares
<[spoiler]> yorickpeterse: I prefer flat design over isomorphic design (what apple pushes)
<adaedra> we added all those cool things in CSS3 at the moment the industry went flat design we could do with CSS2.
<[k-> so you think holo is better?
<yorickpeterse> often with just a border, no background
<yorickpeterse> e.g. Bootstrap
<yorickpeterse> I liked the short time between pre flat and post flat
mistermocha has quit [Ping timeout: 244 seconds]
<yorickpeterse> That is, UIs still had depth and what not, but they weren't as flat as the Netherlands
<[spoiler]> Bootstrap is yucky. I seriously don't see why people seem to like it; it's not good at all.
<adaedra> Because everyone else does
<yorickpeterse> Then some hipster came along and went all "works for Netherlands, works for design too"
<adaedra> yorickpeterse: so bike-based design is next?
<[spoiler]> yorickpeterse: subtle gradients are ftw, but I feel like it's dificult to get them right from a design-perspecive (but maybe that's me since I am not a designer)
<yorickpeterse> [spoiler]: exactly my point
<yorickpeterse> People are lousy, thus they use flat UI
<yorickpeterse> so they can get something that requires 0 effort
<[k-> spheres are next
<yorickpeterse> I honestly can't remember a single flat UI that didn't look like the back of a horse
<yorickpeterse> but then again I'm Waldorf & Statler reincarnated into a single body
hotpancakes has quit [Ping timeout: 244 seconds]
<[spoiler]> yorickpeterse: I admit that I find flat design appealing on websites, but I dislike it on GUIs (web or native ones) most of the time.
suchness has joined #ruby
<yorickpeterse> In terms of aesthetics it's not that bad
<yorickpeterse> But removing gradients and what not isn't going to make Jakob Nielsen cream his pants
<[spoiler]> Hmm I am not sure I would call Material *flat* it does have shadows, which removes the flatness, and for some reason it looks kinda matte in my head rather than flat (like Microsoft's designs)
<yorickpeterse> https://www.google.com/design/spec/components/buttons.html#buttons-usage <- drop shadows yes, still as flat as .nl
<yorickpeterse> The new standard for design: if it's flatter than .nl it's bad
<adaedra> I though Belgium was the flat country
<[spoiler]> LMAO
Guest80 has joined #ruby
stamina has joined #ruby
yh_ has joined #ruby
M-mistake has joined #ruby
M-prosodyContext has joined #ruby
<yorickpeterse> No, they're just the wanna-bes
<yorickpeterse> * wannabes
<yorickpeterse> They have good bear, we'll kill them last
<maloik> we don't exactly have mountains, but our hills are pretty famous with cyclists
<adaedra> good bear? :D
<yorickpeterse> lol
<maloik> related, I hate cyclists
<yorickpeterse> I suck
<yorickpeterse> beer
<yorickpeterse> the stuff that gets you in trouble on Friday evening
<yorickpeterse> maloik: 50 year olds on racing bikes are the worst
<yorickpeterse> I recall we even have slang for it
<yorickpeterse> but I can't remember it :<
<maloik> wielerterrorist? :D
<yorickpeterse> No, I recall it being better..lets see if I can find it
sevenseacat has quit [Ping timeout: 240 seconds]
qiukun has joined #ruby
<adaedra> maloik: flemish?
sinkensabe has quit [Read error: Connection reset by peer]
<maloik> yep
pawnbox has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
<yorickpeterse> AH, well one of them is "racefiets babyboomer"
Guest80 has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has joined #ruby
<[spoiler]> yorickpeterse: slang for 50+yo bike racers? that's so odd
<yorickpeterse> Basically how they drive is like this:
<yorickpeterse> RING RING RING RING RING RING MOVE YOUR ASS RING RING RING RING RING
<yorickpeterse> while 10 of them cycle next to each other
<yorickpeterse> at high speed
<yorickpeterse> in the middle of town
<yorickpeterse> you're lucky if they even have a bell
<[spoiler]> oh, I call that "wanker"
<maloik> :D
conor_ has quit [Remote host closed the connection]
<maloik> not too long ago I heard of two cyclists who ran over a puppy at full speed (obviously killing it), turned back and yelled "buy yourself a new one!"... how's that for horrible human being
<yorickpeterse> See, for cases like that I'm all for the death penalty
<yorickpeterse> 1) pretty clear they killed the puppy 2) no remorse 3) fuck em
apfeluser has joined #ruby
<yorickpeterse> death by listening to Justin Bieber
tiagonobre__ has joined #ruby
<[k-> they won't actually die
<[spoiler]> yorickpeterse: yes.
<[spoiler]> [k-: [citation needed]
<adaedra> maloik: wow
<[k-> water torture?
<[k-> [spoiler]: [citation needed]
<[spoiler]> :P
<adaedra> it's not wikipedia here
<[spoiler]> [k- do you mean waterboarding or the chinese dripping thing
last_staff has joined #ruby
<[spoiler]> I'd probably stab myself with a pillow if I had to listen to Justin Bieber for too long
<yorickpeterse> [k-: have you tried?
<[k-> both would be fun
skade has quit [Quit: Computer has gone to sleep.]
<adaedra> [spoiler]: too long, you mean 1 second?
<[spoiler]> adaedra: :D
norc has joined #ruby
skade has joined #ruby
apfeluser has quit [Client Quit]
stef204 has joined #ruby
khebbie has quit [Remote host closed the connection]
<yorickpeterse> I think of all traffic forms I hate car drivers the most
<yorickpeterse> especially in the town that I live in
<yorickpeterse> Those people are mental
<shevy> They are dutch!
<yorickpeterse> "oh you're crossing the street with right of passage? Fuck you I'm a pickup"
jessu has joined #ruby
<yorickpeterse> "You've been waiting for ages to cross the road? Fuck you, I'm a Porsche"
suchness has left #ruby [#ruby]
suchness has joined #ruby
suchness has left #ruby [#ruby]
suchness has joined #ruby
<yorickpeterse> though I take great joy in very slowly crossing the road whenever some sports car comes along
<suchness> Hrm. AWS is down, lovely.
suchness has quit []
<adaedra> D'accord
<yorickpeterse> suffice: nah, just increased error rates
<yorickpeterse> /s
<yorickpeterse> good thing eu-west-1 is going strong
Toska has joined #ruby
<adaedra> I hate bicycles the most here, even if cars are close second
<[spoiler]> I don't hate either, tbf. I hate pedestrians
<adaedra> Difference is that cars make a little effort to follow road rules.
* [spoiler] is just kidding
<yorickpeterse> I once had this dude in a sports car drive through my street once in a while, for some reason every time I had to cross the road on my way back
<yorickpeterse> He'd always drive at top speed and hit the brakes at the last moment
<yorickpeterse> So I took my time crossing the street
<yorickpeterse> while looking at him
<yorickpeterse> Haven't seen him since
* yorickpeterse stuck it to the man
rdark has quit [Remote host closed the connection]
<yorickpeterse> also at times I almost get rammed by people
<[spoiler]> I just walk over the zebra unless the car is really close, and the cars have to stop
conor_ has joined #ruby
<yorickpeterse> few nasty corners on my way to the station where you can't see stuff coming from the left
<[spoiler]> Ah
<yorickpeterse> [spoiler]: see, over here a lot of them just drive anyway
<yorickpeterse> "fuck you I'm a car" etc
<adaedra> “fuck you I don't fear jail”
<yorickpeterse> Ah well, at least it's not as bad as Amsterdam
<[spoiler]> That's so annoying. We have huge *fines* if you hit someone in a car, I think jail would be the least of their problems
<yorickpeterse> There you have to choose between getting run over by drunked tourists, trams, cars or busses
<yorickpeterse> or all at once
<yorickpeterse> * drunk
<yorickpeterse> Jezus, my English is really bad today
<adaedra> Jezus
Toska is now known as suchness
<yorickpeterse> well...can't even spell Jesus
<yorickpeterse> I'll euh....yeah
* adaedra slaps yorickpeterse with an English dictionary
* yorickpeterse slaps adaedra a few times
rdark has joined #ruby
<adaedra> euh
<shevy> this is love
* yorickpeterse likes slapping people and randomly picks shevy to slap
abyss_ is now known as abyss
<yorickpeterse> why does it never pick the funny ones .___.
<[spoiler]> And the system here actually goes out of its way to make the offenders pay (especially traffic offenders). They can literally charge your bank directly, or worse: sell your property to give money to the victim (or the family if the person died). I guess it means little if you died, but the people here are really careful since they introduced this shit
<adaedra> Apparently, they want to remove jail time for driving without license here.
<yorickpeterse> we're talking about a third-world country right?
<[spoiler]> I think people fear losing money more than subtext (it's an anagram) in jail
<adaedra> yorickpeterse: soon
<[spoiler]> yorickpeterse: if you were asking me, then... kinda. Lol, I'm from Croatia.
<yorickpeterse> [spoiler]: oh, heh
<adaedra> 500€ for driving without license? wat
rikkipitt has joined #ruby
platzhirsch has joined #ruby
<yorickpeterse> oh yeah and adaedra is from France
<yorickpeterse> So yeah, third-world country :<
<yorickpeterse> FUCK
<yorickpeterse> I meant :>
<yorickpeterse> ok I'm done until lunch
<shevy> adaedra has great cuisine
sameerynho has joined #ruby
<[spoiler]> Wait, how will France become a 3rd world country?
<bnagy> crushing debt and the collapse of its pension system?
<[spoiler]> bnagy: I should read the news more often
<adaedra> [spoiler]: the day Germany stops being our friend, of course
hotpancakes has joined #ruby
lxsameer has quit [Ping timeout: 246 seconds]
skade has quit [Quit: Computer has gone to sleep.]
<bnagy> we don't call them third world countries anymore, fwiw ;)
f4cl3y__ has quit [Remote host closed the connection]
<[spoiler]> Oh, did they coin a more politically correct term for them?
<bnagy> "developing"
pawnbox has quit [Ping timeout: 252 seconds]
<yorickpeterse> I do like how Germany goes around saying "LOL NO MORE MONEY, TOO EXPENSIVE"
<yorickpeterse> meanwhile they swim in money
<[spoiler]> yorickpeterse: that's the very reason why they swim in money :P
<yorickpeterse> That might just be the old rivalry between .nl and .de speaking
<yorickpeterse> They take our beaches every year, least they could do is give us lots of money
<[spoiler]> I always felt like the EU was kinda centralist-ish because Germany seems to get the most out of the EU.
<yorickpeterse> because they're the biggest economy
<yorickpeterse> so it's not entirely surprising
<[spoiler]> yorickpeterse: Oh, you hear more German than Croatian in my town during summer
<yorickpeterse> Ah, so it's a continental epidemic
* yorickpeterse runs
<yorickpeterse> "Quick run, before you get the Germans!"
<yorickpeterse> Ah yes, Europe
<yorickpeterse> such an interesting place
<[spoiler]> "Eew, he has Germ(an)s!"
<yorickpeterse> nothing beats the good old rivalry between every country
f4cl3y has joined #ruby
f4cl3y has joined #ruby
<yorickpeterse> or the eastern European attitude to solving problems
hotpancakes has quit [Ping timeout: 240 seconds]
<yorickpeterse> Immigration problem? Fuk it, we'll build a fence
<[spoiler]> It is kind of a dysfunctional family, really
nfk has joined #ruby
<yorickpeterse> <UK> Calais? not our problem mate
pawnbox has joined #ruby
<yorickpeterse> <NL> WE NEED TO TAKE MORE PEOPLE IN OUR ALREADY CRAMPED COUNTRY
wprice has joined #ruby
<yorickpeterse> <NL> Oh hey Brussels, here's that 4,5 billion Euros you asked
<yorickpeterse> or w/e it was
leat has quit [Ping timeout: 246 seconds]
<yorickpeterse> meanwhile eastern Europe continues to give no fucks
<yorickpeterse> and Scandinavia continues being filthy rich
lxsameer_ has joined #ruby
<[k-> the money there is filthy?
chipotle has quit [Quit: cheerio]
<maloik> the UK apparently helped build fences and improve security in calais
<bnagy> new norweigan money is awesome
<yorickpeterse> maloik: "improve"
<yorickpeterse> You've seen the videos right?
<maloik> not at all, only read the headline
devoldmx has joined #ruby
<yorickpeterse> bunch of reporters spent the night with some refugees
<yorickpeterse> The fences are...useless
czetter_ has left #ruby [#ruby]
bstrarm has joined #ruby
<yorickpeterse> I also wonder if people relaly didn't learn from the Berlin wall
<yorickpeterse> that worked out so well
User458764 has quit [Read error: Connection reset by peer]
<yorickpeterse> *cough*
<[spoiler]> <HR> *bends over*; <EU> Ok, ok. You can be my friend now... <HR> *bends over some more for money*; <EU> No money, bitch. Now bend over again, if you wanna stay friends!
sameerynho has quit [Ping timeout: 246 seconds]
<[spoiler]> Sounds like an intro to a bad porno... Sorry about that.
<maloik> food time
<adaedra> yorickpeterse: where do you want fences? You're surrounded by countries you agreed having no enforced borders with!
bustrarm has quit [Ping timeout: 250 seconds]
sylvain31 has quit [Ping timeout: 246 seconds]
symm- has joined #ruby
<[spoiler]> ?ot [spoiler]
<ruboto> [spoiler], this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<yorickpeterse> adaedra: I don't want any fences to begin with
khebbie has joined #ruby
halcyone3 has quit [Ping timeout: 264 seconds]
ferhaty has quit []
<[spoiler]> except one around my house, maybe
<adaedra> ah, I misunderstood then
<yorickpeterse> There are 2 ways of viewing it: 1) refugees are a pest 2) refugees are refugees
<yorickpeterse> For 1) you can only prevent people from coming it if you start at the source
<yorickpeterse> make it unattractive to go in the first place
<adaedra> spoiler: we have chosen 1
<yorickpeterse> or barricade the borders with north Africa
devoldmx has quit [Ping timeout: 265 seconds]
<yorickpeterse> (basically kick people back, which our border patrols are _supposed_ to do)
<yorickpeterse> for option 2) this is much more difficult
<yorickpeterse> Because you end up with this debate of legal vs illegal refugees/immigrants
<adaedra> well, it's a bit diffult you see
<yorickpeterse> and what to do with them
hotpancakes has joined #ruby
<yorickpeterse> My opinion is pretty controversial and harsh on it
<adaedra> migrants are coming from water, which we can't really block efficiently
<yorickpeterse> That is, if you're illegal, get others in trouble (e.g. truck drivers) the only thing you'll get is a boot to the head and a one way ticket back
<shevy> DRY THE OCEANS!!!
<[k-> SHEVY
<yorickpeterse> I vote for getting a Kraken
<adaedra> especially when they're left in difficult situation in a soon-to-be-drown boat
<adaedra> shevy: learn2geography. It's a sea, not an ocean.
einarj has joined #ruby
<shevy> hey it's connected to an ocean
lxsameer_ has quit [Ping timeout: 240 seconds]
<yorickpeterse> Either way, the situation is tricky
<adaedra> very
<yorickpeterse> because yes, illegal immigrations have no place, but at the same time they can't really go back
<yorickpeterse> because they'd die over there
<yorickpeterse> Sadly just taking them in doesn't really work either
<adaedra> Look at what they'll accept to come here, too
<yorickpeterse> e.g. there's the age old problem of people refusing to adapt, for whatever reason
<yorickpeterse> which further complicates things
last_staff has quit [Ping timeout: 265 seconds]
<yorickpeterse> "We have a right to live here! Oh and fuck your morals/traditions/rules, we'll have none of that"
<[spoiler]> I am not sure how I feel about illegal immigrants, actually. To clarify: it means you entered the country without registering your entrance, right? Is there a way they can upgrade their status by seeking some sort of asylum?
<yorickpeterse> [spoiler]: it's a blurry definition
<yorickpeterse> I see it as somebody who not only entered a country without a permit, but also got others in trouble
<adaedra> [spoiler]: there's different cases and it depends from country to country
<yorickpeterse> e.g. hiding in trucks, meaning they risk prison time or hefty fines
Iskarlar has joined #ruby
<[spoiler]> yorickpeterse: I don't think the "fuck your traditions/morals/rules" problem applies only to immigrants, though. It's just a symptom of being born a human
<yorickpeterse> Oh yeah, everybody has it
<[k-> live alone in your own country
<yorickpeterse> but if you pile that on top of the other things it doesn't really help
einarj has quit [Ping timeout: 250 seconds]
<[spoiler]> Basically, I welcome anyone, immigrant or not, who doesn't hurt individuals or the community
<yorickpeterse> [spoiler]: sure, that would work if it wasn't for the financial/social impact
<[spoiler]> Otherwise, I'd put them in cages, with collars and make them run in a wheel to give electricity
<yorickpeterse> e.g. you can't just take people in and expect it to solve anything, you need to educate people, provide housing, etc
<yorickpeterse> and for whatever reason it's considered racist when a country says they can't provide that (assuming they're not lying)
Rickmasta has joined #ruby
subtwo has joined #ruby
<[spoiler]> It's a bit stupid. Why would a country provide that? There's a lot of citizens who don't get any of it (homeless people), or people who can't afford education. Why would you provide for someone "new" when you can't provide for what you already have?
<[spoiler]> I am not sure why people expect that of a country
withnale_ has quit [Ping timeout: 260 seconds]
tjbiddle has joined #ruby
big|bad|wolf has joined #ruby
withnale_ has joined #ruby
<[spoiler]> Countries are not omnipotent entities who can conjure stuff up
<adaedra> Problem currently here is: "There are migrant in difficult situation" - "Ok, let's help them" - "OMG YOU HELP MIGRANTS NOT OUR PEOPLE IN THE STREET THEY'RE REPLACING US DUUUUUURRRRR"
<[spoiler]> adaedra: that is a good problem, though?
<[spoiler]> Why not help everyone and just immigrants?
<[spoiler]> I mean it's a good viewpoint, not a good problem
Spami has joined #ruby
* [spoiler] facepalms
yh__ has joined #ruby
<adaedra> Can we help everyone though?
<yorickpeterse> [spoiler]: that's one part of the problem
<yorickpeterse> you can't, and shouldn't, provide for others if you can't provide for your own
<[spoiler]> yorickpeterse: I agree
conor_ has quit [Remote host closed the connection]
<[spoiler]> adaedra: what he said ^
CamonZ has joined #ruby
<yorickpeterse> but for some reason we have idiots like Verhofstadt who just go around yelling "MOAR MOAR MOAR"
<adaedra> and what do we do with the ones from outside currently on ground? Just kick them?
<[spoiler]> this is like "let's add new features without fixing bugs" on a political stage
<yorickpeterse> problem there again is that homelessness (?) will never go away
<[spoiler]> adaedra: No, add those features when you fixed the bugs :)
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<yorickpeterse> so it could be used as an excuse to never take care of others
<adaedra> So, do nothing
<scroff> If you go down that route, you'll never fix everyone
<scroff> anything*
yh_ has quit [Ping timeout: 244 seconds]
<adaedra> [spoiler]: that's not really comparable. Immigrants, either coming here or in transit to UK, are on ground and are a current problem. So it's more a "What problem do we fix first"
<scroff> Lets not help the homeless when there are kids in abusive homes that we need to fix
conor_ has joined #ruby
mistermocha has joined #ruby
<scroff> lets not fix the kids in abusive homes because we need to cure cancer
<scroff> and on and on
<scroff> there's always some "bug" you need to fix before doing something else
<yorickpeterse> ^
<yorickpeterse> social problems like this are really hard
<yorickpeterse> They can be fixed though, largely
<yorickpeterse> e.g. look at Scandinavia
<adaedra> problem also is that people are never happy and always find something to argue about
lucyinthesky has joined #ruby
<adaedra> yorickpeterse: iirc Sweden has some problems with immigration too.
<[spoiler]> yorickpeterse: Ok, let me clarify. If someone gambled his house away, fuck him. If a child is born in a homeless environment, or in an orphanage, then provide for that child. If someone leves because of domestic violence (I volunteered at a homeless shelter, and this was quite common), then create a centre of some sort for those people. There will always be homeless people, but not everyone homeless person
<scroff> The Swedes I know are really against most immigration (but that could just be the people I know)
<[spoiler]> deserves the same treatment.
dabradley has quit [Ping timeout: 246 seconds]
nofxx has quit [Ping timeout: 264 seconds]
<yorickpeterse> [spoiler]: yes
<yorickpeterse> scroff: Scandinavians in general are a bit...."weary" of certain people
<adaedra> scroff: I think like everywhere else, it also depends which immigration (i.e. from where)
GeissT has quit [Remote host closed the connection]
<ytti> we usually think people who have more than we have, just are luckier than us, and people who have less, just are lazier than us
GeissT has joined #ruby
<[spoiler]> ytti: lol!
hotpancakes has quit [Remote host closed the connection]
<ytti> also, if you think you root for the poor, but your plan to fix is, is to take something from the rich
<ytti> i have newsflash to you, you don't care about the poor, you just want to have more to yourself
<ytti> if you root for the poor, your main problem is how to give to the poor, not how to take from the rich
<yorickpeterse> hey don't go around saying Robin Hood was just a thug
<doertedev> ohai rubyists. I have a site where nginx needs to proxy foreign contents from a diff. vendor and i need to keep the caches warm. Anyone have a good spider at hand that easily can be set to "only poll $amount of traffic in $timeframe but only for $domain"?
<[k-> he just wants to gain fame
<[spoiler]> If you don't have capacity for [new] immigrants, then let those immigrants fend for themselves. Did they think that coming to a new country would suddenly turn their life into sunshines and rainbows? Also, immigrants should have a period of time for how long you can accommodate them, say 1 year, by which they have to leave the accommodation. I think 1 year is enough to find a job and move to a low-rent
<[spoiler]> apartment
<yorickpeterse> doertedev: this doesn't really seem Ruby related
tiagonobre__ has quit [Quit: Updating details, brb]
tiagonobre has joined #ruby
<adaedra> [spoiler]: the ones who live in appartements are not the problem
<[spoiler]> yorickpeterse: you have no idea how much we sound like hypocrites right now LOL
mistermocha has quit [Ping timeout: 265 seconds]
<doertedev> yorickpeterse: well i have a ruby toolchain there anyways so...
<adaedra> [spoiler]: and how do you control how long they last?
<yorickpeterse> doertedev: Sure, but the nginx part isn't really related. Either way, I don't think there's something ready made that can do that
lucyinthesky has left #ruby ["Leaving"]
yqt has joined #ruby
<doertedev> yorickpeterse: that's why I'm asking :)
<[spoiler]> adaedra: How long what lasts? The temp accommodation
<[spoiler]> ?*
<yorickpeterse> [spoiler]: eh, I'd disagree
<yorickpeterse> (re hypocrites)
<yorickpeterse> This isn't some black and white topic where you're either right or wrong
<yorickpeterse> In fact, no matter how controversial, all answers are correct
<adaedra> [spoiler]: how long they have been on ground
michael_mbp has quit [Excess Flood]
<[spoiler]> yorickpeterse: No, I mean we sound like hypocrites because we told him this wasn't ruby related (like this topic is :P)
<[spoiler]> his question wasn't ruby related*
<yorickpeterse> Ah
<doertedev> yorickpeterse: i really thought i have asked in #rubyonrails sorry :P
<yorickpeterse> heh
<[spoiler]> :D
<adaedra> Also, there's another problem, where one will come, succeed to implant, and then "Well now I'll make my whole family come"
michael_mbp has joined #ruby
<yorickpeterse> it's quiet otherwise anyway
<yorickpeterse> adaedra: that's just a matter of making immigration policies more strict
<doertedev> [spoiler]: I cannot comment on this topic since i'm german
<yorickpeterse> it's a policy that makes sense in theory, but in practise is all too easy to abuse
<[spoiler]> adaedra: No, I mean. If they register as immigrants, give them 1 year to implant, if they fail, they can go back, or sleep on a park bench. w/e
<[spoiler]> if they do implant, then who cares if they bring their family?
<doertedev> my gov. is stupid enough that in eastern germany we have whole cities where basically noone lives they are like died out. But they keep on stacking immigrants into newly build facilities which are stacked too tight anyways
lxsameer_ has joined #ruby
<doertedev> in cities with a too large amount of ppl anyways. Like munich.
<[spoiler]> doertedev: Croatia has problems with ghost-towns, or where population in some big-ish villages and towns is < 50 people. It's mostly after the war we had with Serbia, though
<adaedra> [spoiler]: >implying they follow the rules
<corpsicle> makes me think of resident evil 4
<[spoiler]> adaedra: if they don't follow the rules, then they can sleep on a bench
<doertedev> yeah those sleep-on-a-benchers are breaking into houses where I live
<adaedra> [spoiler]: that's already what they do
<yorickpeterse> ok lets move this to #ruby-offtopic now :P
<[spoiler]> Arrest them and bullet to the head; they technically exist anyway
<yorickpeterse> WEOW WEOW WEOW OFFTOPIC POLICE
<[spoiler]> don't*
AbdulRehman has joined #ruby
<adaedra> oops
<yorickpeterse> also keep it civilized while I'm out nomming lunch
<AbdulRehman> morning
_blizzy_ has joined #ruby
halcyone3 has joined #ruby
rikkipit_ has joined #ruby
rikkipitt has quit [Ping timeout: 246 seconds]
dumdedum has quit [Ping timeout: 240 seconds]
doertedev has left #ruby [#ruby]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rodfersou has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
bodgix has joined #ruby
terlar has quit [Ping timeout: 272 seconds]
jbw has quit [Ping timeout: 260 seconds]
rikkipit_ has quit [Quit: Leaving...]
ndrei has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_blizzy_ has joined #ruby
einarj has joined #ruby
sylvain31 has joined #ruby
einarj has quit [Remote host closed the connection]
<AbdulRehman> quick question please; I am doing the following Dir.open(YC_POLLING_FOLDER).each do |file| end however the function also returns the '.' and '..' which I want to skip, any advice?
hotpancakes has joined #ruby
<norc> Are there any other ways to access environment variables short of the ENV hash?
<adaedra> next if file == '.' || file == '..' # abdulrehman
<suchness> Dir.open(File.join(YC_POLLING_FOLDER, "*.proper_ext"))
<ytti> norc, you peaked my curiosity, why you'd need another method?
<ytti> norc, i guess you can always fork shell and query there
<stoodfarback> suchness: Try this:
<stoodfarback> Dir.new(dir).each do |entry|
<stoodfarback> next if entry == "." || entry == ".."
<suchness> stoodfarback: That was abdulrehman's question
<norc> ytti: Oh I just want to make sure Im not forgetting something.
<stoodfarback> Ah, yes, my bad.
<ytti> next if %w( . .. ).include? entry
<ashleyhindle> 'next if' is like if() { continue; } ?
<ytti> i like this better, as it's easier to extend
<norc> Im not sure whether I should start disliking the "foo if bar" kind of if statements...
anisha_ has joined #ruby
<AbdulRehman> adaedra: Yah, I thought of a simple logic, just thougth there is a method to get files only back
<AbdulRehman> thanks :D
<[spoiler]> ashleyhindle: `expression1 if expression2` is the same as `if expression2; expression1; end;`
<SebastianThorn> dont forget dirs
<suchness> abdulrehman You can also use the Pathname class, it handles a lot of that stuff and is superiour to Dir and File in a lot of ways.
<stoodfarback> norc: I dislike them in most cases, with the exception of control flow. Ie, `next if` or `return if`
<adaedra> abdulrehman: files only is different
<SebastianThorn> next if File.directory? file
<ashleyhindle> [spoiler]: Cheers ears!
jbw has joined #ruby
dumdedum has joined #ruby
hotpancakes has quit [Ping timeout: 256 seconds]
<AbdulRehman> suchness: can you please forward me the docs for that?
<AbdulRehman> adaedra: not sure what you mean
bruno- has joined #ruby
anisha__ has quit [Ping timeout: 240 seconds]
joonty has quit [Quit: Leaving]
joonty has joined #ruby
<[spoiler]> norc, stoodfarback I use them when using if-end would cause too many LOCs for what it needs to do. I see it as `if (bar) foor;` from C
conor_ has quit [Remote host closed the connection]
<adaedra> abdulrehman: excluding . and .. is not the same as including only files
<AbdulRehman> suchness: many thanks
clad_fraug has quit [Remote host closed the connection]
<AbdulRehman> adaedra: oh ok I understand what you mean
<[spoiler]> there can be directories or symlinks
<[spoiler]> in the dir you're reading from
<stoodfarback> [spoiler]: in those cases I prefer `exp(1) && exp(2)` instead of `exp(2) if exp(1)`
<stoodfarback> [spoiler]: But it's a style thing.
<stoodfarback> Valid either way.
<[spoiler]> stoodfarback: I agree that it is definitely a style thing, but `do_something if something_else` reads nicer, IMO.
GitGud has joined #ruby
Violentr has joined #ruby
Macaveli has joined #ruby
da3mian has joined #ruby
conor_ has joined #ruby
GitGud has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<stoodfarback> Well, with a real example:
<stoodfarback> File.exist?(pid) && Process.kill(0, File.read(pid).to_i)
<stoodfarback> The first reads nicer to me, since it's left-to-right, like most things in ruby (in fact... is there anything else which is right-to-left?)
<stoodfarback> Process.kill(0, File.read(pid).to_i) if File.exist?(pid)
phutchins has joined #ruby
<norc> [spoiler]: I think it can hinder code readability since the test whether a piece of code is executed comes *after* the code.
anisha__ has joined #ruby
Violentr has quit [Ping timeout: 246 seconds]
<[spoiler]> norc: Ofc, that's why you use it for simple thingd. stoodfarback: I'd use if-end in the example you provided. I guess, i do it depending on how long the lines gets. I don't like long, dense lines
<jhass> meh, I hate &&/and/||/or for control flow, rather spend five lines
<ljarvis> "send_emails if subscribed?" reads way better than "subscribed? && send_emails"
<ljarvis> +1 jhass
<[spoiler]> This is a good example: `return if !something.valid?`, this is a bad example: `jesus_fuck_i_am_one_long_expression if oh_bitch_youaint_seen_long_yet_I_am_the_longest_of_them_all`
anisha_ has quit [Ping timeout: 245 seconds]
<ljarvis> [spoiler]: that's a bad example because we have unless ;)
<[spoiler]> ljarvis: oh indeed
<[spoiler]> :D
<norc> stoodfarback: Yes there are some abstract libraries that turn the logic around. But not in the language grammar of Ruby itself.
<norc> stoodfarback: ActiveRecord immediately comes to mind for example
<jhass> if it gets too long just do a regular if/unless, no reason to use modifier- everywhere the body is a single expression
<stoodfarback> [spoiler]: Makes sense. Like I mentioned above, I do like that form for control flow (return, next, break).
<[spoiler]> ljarvis: I use unless when I randomly remember it exists, lol
<[spoiler]> which is rarely
<stoodfarback> norc: wut? Yes it is.
<stoodfarback> norc: Plain ruby.
dumdedum has quit [Ping timeout: 250 seconds]
hotpancakes has joined #ruby
christophe971 has joined #ruby
omegamike has joined #ruby
<[spoiler]> writing unit tests is so boring
carlosoliveira has joined #ruby
<shevy> yeah [spoiler]
omegamike has quit [Ping timeout: 244 seconds]
clad_fraug has joined #ruby
codecop has joined #ruby
tkuchiki has quit [Remote host closed the connection]
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
dgutierrez1287 has joined #ruby
dumdedum has joined #ruby
sdwrage has joined #ruby
sdwrage has quit [Client Quit]
bruno- has quit [Ping timeout: 264 seconds]
northfurr has joined #ruby
sameerynho has joined #ruby
stamina has quit [Ping timeout: 250 seconds]
skade has joined #ruby
lxsameer_ has quit [Ping timeout: 240 seconds]
<[k-> write type signatures instead
conor_ has quit [Remote host closed the connection]
ferhaty has joined #ruby
KnowledgeOwl has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
ldnunes has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
tmtwd has joined #ruby
Oka has joined #ruby
<shevy> that would no longer br uby
<shevy> erm
<shevy> *be ruby
conor_ has joined #ruby
ndrei has joined #ruby
northfurr has quit [Quit: northfurr]
mcgain has quit [Quit: mcgain]
northfurr has joined #ruby
mcgain has joined #ruby
jbw has quit [Ping timeout: 245 seconds]
pawnbox has quit [Remote host closed the connection]
<[k-> i bet shevy don't write no tests
pawnbox has joined #ruby
<suchness> I don't write no tests, and I hate myself for it.
<suchness> Well future me hates present me.
j4cknewt has joined #ruby
<suchness> Present me cares vary little about future me.
<suchness> We agree to live in the moment.
<adaedra> tbh, present me hates present me when I write tests.
<suchness> Exactly!
<shevy> [k- that is true; however had I do test too
senayar has quit [Remote host closed the connection]
<adaedra> but future me will like present me to have written tests
<shevy> there are different things that can be tested. One thing I have to test is to make current functionality available in the future too, in the event that I end up rewriting something
<adaedra> and also hate him for writing tests badly
senayar has joined #ruby
KnowledgeOwl has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
FastJack has quit [Ping timeout: 246 seconds]
but3k4 has joined #ruby
aidarbek has joined #ruby
sinkensabe has joined #ruby
FastJack has joined #ruby
j4cknewt has quit [Ping timeout: 246 seconds]
KnowledgeOwl has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
meph has joined #ruby
Ox0dea has quit [Ping timeout: 264 seconds]
omegamike has joined #ruby
<shevy> "PUG takes no URL arguments; all communication with PUG is through XML."
aidarbek has quit [Client Quit]
<shevy> :(
<flughafen> wtf is the point of that
<flughafen> that reminds me of libvirt and taking only xml arguments in some cases
<[k-> .______________.
<[k-> DIE
northfurr has quit [Quit: northfurr]
<adaedra> no u
KnowledgeOwl has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
omegamike has quit [Ping timeout: 264 seconds]
KnowledgeOwl has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
sylvain31 has quit [Remote host closed the connection]
jbw has joined #ruby
<[spoiler]> I thought this was some joke about pugs at first, shevy
einarj has joined #ruby
<shevy> flughafen I guess I have to use XML again in order to use such remote APIs :)
<[k-> if anything, adaedra should not be allowed to sit
bmurt has joined #ruby
<[spoiler]> [k- yeah, dance instead
<adaedra> [k-: wat
KnowledgeOwl has quit [Remote host closed the connection]
<shevy> sexy french dance
KnowledgeOwl has joined #ruby
jimms has joined #ruby
joonty has quit [Quit: joonty]
<Rinzlit> shevy is it hard to setup an api and transfer the data in XML format o-o?
da3mian has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
einarj has quit [Ping timeout: 250 seconds]
samdunne has joined #ruby
bmurt has quit [Ping timeout: 252 seconds]
sdothum has joined #ruby
KnowledgeOwl has quit [Remote host closed the connection]
shlomo has joined #ruby
KnowledgeOwl has joined #ruby
<shevy> no idea
<shevy> I hate XML
samdunne has quit [Client Quit]
astrobu__ has quit [Remote host closed the connection]
GeissT has quit [Remote host closed the connection]
GeissT has joined #ruby
Muhannad has joined #ruby
<yorickpeterse> XML is lovely
frem has quit [Quit: Connection closed for inactivity]
Muhannad has quit [Max SendQ exceeded]
adaedra has quit [Read error: Connection reset by peer]
fanocksa has joined #ruby
Muhannad has joined #ruby
adaedra has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
<shevy> its verbosity is to love
tylersmith has quit [Ping timeout: 252 seconds]
terlar has joined #ruby
KnowledgeOwl has quit [Remote host closed the connection]
<[k-> shevy loves java thrice as much as he loves xml
KnowledgeOwl has joined #ruby
msnyon has joined #ruby
<shevy> at least java is useful for something
devoldmx has joined #ruby
rideh has joined #ruby
KnowledgeOwl has quit [Remote host closed the connection]
yh__ has quit [Ping timeout: 244 seconds]
KnowledgeOwl has joined #ruby
Ropeney has joined #ruby
AlexRussia_ has joined #ruby
basmoura has joined #ruby
joonty has joined #ruby
devoldmx has quit [Ping timeout: 265 seconds]
KnowledgeOwl has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
pawnbox has quit [Ping timeout: 252 seconds]
AlexRussia has quit [Ping timeout: 260 seconds]
hotpancakes has quit [Ping timeout: 244 seconds]
KnowledgeOwl has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
KnowledgeOwl has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
pawnbox has joined #ruby
decoponio has joined #ruby
Macaveli has joined #ruby
GeissT_ has joined #ruby
KnowledgeOwl has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
jessu has quit [Quit: ruby]
lapide_viridi has joined #ruby
lapide_viridi has quit [Remote host closed the connection]
Nahra has quit [Remote host closed the connection]
stef204 has joined #ruby
<sanguisdex> xml should go the way of the buffalo and be replaced with yml or json
allcentury has joined #ruby
GeissT has quit [Ping timeout: 245 seconds]
<apeiros> yml? seems to me like you're still on DOS 6.22?
bruno- has joined #ruby
<ljarvis> :D
<yorickpeterse> Javascript is the new configuration language
<shevy> I like buffaloes more than XML
<yorickpeterse> write all your config files using Gulp/burp/whatever build system JS people use today
GeissT has joined #ruby
izzol has quit [Quit: leaving]
CatMartyn has joined #ruby
devoldmx has joined #ruby
devoldmx has quit [Remote host closed the connection]
banister has joined #ruby
devoldmx_ has joined #ruby
jeremy04 has joined #ruby
jimms has quit [Remote host closed the connection]
GeissT_ has quit [Ping timeout: 245 seconds]
bruno- has quit [Ping timeout: 256 seconds]
lannonbr has joined #ruby
jbw_ has joined #ruby
devoldmx has joined #ruby
Averna has quit [Quit: Ex-Chat]
yqt has quit [Ping timeout: 250 seconds]
jbw has quit [Ping timeout: 250 seconds]
_blizzy_ has quit [Ping timeout: 272 seconds]
devoldmx_ has quit [Ping timeout: 255 seconds]
ndrei has quit [Ping timeout: 240 seconds]
symm- has quit [Ping timeout: 260 seconds]
KnowledgeOwl has quit [Remote host closed the connection]
fanocksa has quit [Ping timeout: 260 seconds]
KnowledgeOwl has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
ndrei has joined #ruby
<waxjar> when should I prefer minitest spec over minitest unit tests?
jtdoncas has joined #ruby
<yorickpeterse> whenever you prefer the spec writing style
<yorickpeterse> over the unit test style
<waxjar> there's not really a reason to use one over the other?
<yorickpeterse> No, it's just a different writing style
decoponio has quit [Quit: Leaving...]
<waxjar> cool, thx
tkuchiki has joined #ruby
devoldmx has quit [Remote host closed the connection]
<yorickpeterse> oh great, some asshole yanked net-ssh 2.10.0
<yorickpeterse> yet for some reason bundler keeps using it
KnowledgeOwl has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
_blizzy_ has joined #ruby
KnowledgeOwl has quit [Remote host closed the connection]
Tempesta has quit [Ping timeout: 264 seconds]
KnowledgeOwl has joined #ruby
jimms has joined #ruby
chouhoulis has joined #ruby
victortyau has joined #ruby
quimrstorres has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 244 seconds]
<sanguisdex> apeiros: yml makes a great key low syntax requirement key pair value system for config files.
lele|w has joined #ruby
quimrstorres has joined #ruby
<yorickpeterse> now in English
Tempesta has joined #ruby
KnowledgeOwl has quit [Remote host closed the connection]
sdwrage has joined #ruby
KnowledgeOwl has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
umgrosscol has joined #ruby
<ljarvis> in English: yaml is awful
quimrstorres has quit [Ping timeout: 250 seconds]
tkuchiki has joined #ruby
KnowledgeOwl has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
hotpancakes has joined #ruby
_blizzy_ has joined #ruby
danieli has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Remote host closed the connection]
atomical has joined #ruby
rodfersou has quit [Ping timeout: 244 seconds]
chouhoulis has joined #ruby
sgambino has joined #ruby
jriese has joined #ruby
<sanguisdex> I love the snark of this channel
rodfersou has joined #ruby
jriese has quit [Client Quit]
danieli has joined #ruby
govg has quit [Ping timeout: 252 seconds]
KnowledgeOwl has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 256 seconds]
KnowledgeOwl has joined #ruby
erowlin has joined #ruby
shlomo has quit [Quit: WeeChat 1.2]
ferhaty has quit []
einarj has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
leat has joined #ruby
KnowledgeOwl has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
erowlin has quit [Client Quit]
jbw__ has joined #ruby
banister is now known as banisterfiend
<scroff> If I have something like this:
<scroff> array.each do |a|
<scroff> something
<scroff> end if a == 'foo'
<scroff> What does that last if do?
danieli has quit [Ping timeout: 244 seconds]
<scroff> Does it skip the block if it's true?
jbw_ has quit [Ping timeout: 245 seconds]
<ytti> no
<suchness> scroff: yes
erowlin has joined #ruby
<ytti> if it's true, it does not skip it
<suchness> scroff: Or no rather
<ytti> if it's false, it skips it
<scroff> aha
<scroff> thanks
<suchness> scroff: Not the best programming
<ytti> i see no problem in it
<Mon_Ouie> And it doesn't skip "the block", it skips the call to array.each
einarj has quit [Ping timeout: 240 seconds]
<suchness> ytti: You don't see a problem because it's only three lines, if that condition was more it would be very unreadable and hard to debug.
<scroff> thanks
<suchness> It's silly to put conditionals like that at the end.
sinkensabe has quit [Remote host closed the connection]
ferhaty has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
thiagovsk has joined #ruby
fanocksa has joined #ruby
khebbie has quit [Read error: Connection reset by peer]
<ytti> suchness, i disagree
khebbie_ has joined #ruby
<suchness> ytti: Then we will agree to disagree.
<ytti> yes
howdoicomputer has joined #ruby
Tempesta has quit [Ping timeout: 244 seconds]
ndrei has joined #ruby
erowlin has quit [Client Quit]
jbw_ has joined #ruby
<yorickpeterse> scroff: it will result in an error
<yorickpeterse> unless `a` is also defined outside of array.each do ... end
<yorickpeterse> >> [10, 20, 30].each { |num| } if num == 10
Guest50 has joined #ruby
<ruboto> yorickpeterse # => undefined local variable or method `num' for main:Object (NameError) ...check link for more (https://eval.in/414725)
TheHodge has quit [Quit: Connection closed for inactivity]
erowlin has joined #ruby
jbw__ has quit [Ping timeout: 252 seconds]
leat has quit [Ping timeout: 244 seconds]
jeremy04 has quit [Remote host closed the connection]
decoponio has joined #ruby
jeremy04 has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
conor_ has quit [Remote host closed the connection]
Spleeze has quit [Ping timeout: 246 seconds]
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
radgeRayden has joined #ruby
Tempesta has joined #ruby
Iskarlar has joined #ruby
danieli has joined #ruby
hotpancakes has quit [Remote host closed the connection]
shoutsid has quit [Remote host closed the connection]
Cust0sLim3n has quit [Ping timeout: 272 seconds]
kirun has joined #ruby
omegamike has joined #ruby
jtdoncas has quit [Ping timeout: 260 seconds]
<Rinzlit> hey guys random question
al2o3-cr has quit [Ping timeout: 244 seconds]
<Rinzlit> If I make my program collect data from something else if someone requests something from me and I make them grab the information
<Rinzlit> I can't get in trouble if they do something illegal right?
<yorickpeterse> what?
<yorickpeterse> Be more specific
<Rinzlit> Ermm best way to describe is like an iframe to someone elses website
<yorickpeterse> If you're referring to something like scraping, this is a gray area
<Rinzlit> and I build it into what I'm doing
<yorickpeterse> at least in the EU
<yorickpeterse> For stuff like this it really is best to consult somebody or some entity with actual legal expertise
danieli has quit [Ping timeout: 240 seconds]
Spleeze has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<Rinzlit> lol... I need to make friends with a lawyer to ask them random hypothetical questions
<yorickpeterse> or just pay them money
yh_ has joined #ruby
<Rinzlit> I don't think I have that much money, I only have a few grand
howdoicomputer has quit [Ping timeout: 246 seconds]
Cust0sLim3n has joined #ruby
jbw__ has joined #ruby
whippythellama has joined #ruby
erowlin has quit [Quit: erowlin]
<AbdulRehman> sorry but another firey quick question, currently I am doing the following, "some_string_to_read".index('_') and returns the first occurrence of it, any way I can get the second one
jbw_ has quit [Ping timeout: 246 seconds]
<AbdulRehman> returns the position*
<stoodfarback> abdulrehman: #index takes a second argument for offset, so if you put the first index there, it should find the second occurance.
<AbdulRehman> ok, one sec let me try
havenwood has joined #ruby
<AbdulRehman> not sure what I am doing wrong but it does not work,
<stoodfarback> abdulrehman: Ah, you may need to do first index + 1. I'm not sure how the offset is used.
centrx has joined #ruby
CatMartyn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
<AbdulRehman> I am reading the docs, and I am using it the same way it is pointing out, but for some bizzare reason, not working
<AbdulRehman> (I am sure this reason is me) lol
<AbdulRehman> index(substring [, offset])
<ljarvis> abdulrehman: str.index("_", str.index("_")+1)
juanca_ has joined #ruby
allcentury has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devdazed has joined #ruby
jerius has joined #ruby
<ljarvis> > str = "some_string_to_read"; str.index("_", str.index("_")+1)
<AbdulRehman> ljarvis: awesome that works
erowlin has joined #ruby
<AbdulRehman> so basically the offset is a block?
Guest50 has joined #ruby
<ljarvis> the offset is where searching from should start
<ljarvis> index *always* returns the first occurance *from* the offset
Yiota has joined #ruby
<AbdulRehman> ahhh
<AbdulRehman> I see, I thought it would be the occurrence number as in SQL ,
<AbdulRehman> that's great, thank you ljarvis so very much
<AbdulRehman> and stoodfarback
<ljarvis> abdulrehman: if you want more than the second index, you probably want a loop but for the second that code should be fine
startupality has joined #ruby
<startupality> nil is getting converted to 0.0 by using to_f, is there any similar method which has a different behaviour in this use case?
djcp has joined #ruby
<startupality> to 0 . 0
<ljarvis> startupality: what do you want?
<ljarvis> the float representation of nil in Ruby is 0.0
<ljarvis> "different behaviour" is vague
Macaveli has quit [Read error: Connection reset by peer]
<AbdulRehman> thank you ljarvis, that's excatly what I need to do.... thank you very much
hinbody has joined #ruby
<startupality> Im using the Money gem, so I need to convert the values from the database by using to_f for example.By doing this nil gets converted to zero, but I want the nil to be like the “undefined value”.
JoshL has joined #ruby
Feyn has quit [Quit: Leaving]
<ljarvis> startupality: that's still vague, `nil` *is* "undefined value". Do you want it to raise an error?
Macaveli has joined #ruby
hotpancakes has joined #ruby
<ljarvis> also, you shouldn't use floats for money
<ljarvis> ever ever ever
sameerynho has quit [Quit: Leaving]
Spami has quit [Quit: This computer has gone to sleep]
<yorickpeterse> startupality: if you want some other value you'll have to write your own logic
jimms has quit []
<yorickpeterse> this can be as simple as `value = input ? input.to_f : 'undefined value'
<yorickpeterse> also yes, don't use floats for money
<yorickpeterse> use either integers and store data in the most accurate form (e.g. cents) or use a rational of sorts
<yorickpeterse> or a bignum if you need it
<ljarvis> if you in all kinds of $$$
erowlin has quit [Quit: erowlin]
dhjondoh has quit [Quit: dhjondoh]
<yorickpeterse> ljarvis: lrn2english
erowlin has joined #ruby
<ljarvis> my sentence was intentionally written as you see it
mistermocha has joined #ruby
govg has joined #ruby
<yorickpeterse> suuuuuure
hotpancakes has quit [Ping timeout: 252 seconds]
govg has quit [Client Quit]
havenwood has quit [Ping timeout: 246 seconds]
govg has joined #ruby
rbennacer has joined #ruby
Hounddog has joined #ruby
conor_ has joined #ruby
malconis has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
sevenseacat has joined #ruby
quimrstorres has joined #ruby
Hounddog has quit [Ping timeout: 244 seconds]
jordanm has joined #ruby
Vile` has quit [Ping timeout: 255 seconds]
Hounddog has joined #ruby
terlar has quit [Quit: WeeChat 1.2]
krz has joined #ruby
freerobby has joined #ruby
erowlin has quit [Quit: erowlin]
Vile` has joined #ruby
khebbie_ has quit [Remote host closed the connection]
tylersmith has joined #ruby
da3mian has joined #ruby
quimrstorres has quit [Ping timeout: 272 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> startupality you could modify that behaviour in the Money gem, where it uses .to_f
chouhoulis has joined #ruby
rodfersou has quit [Quit: leaving]
quimrstorres has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
chouhoulis has quit [Remote host closed the connection]
paulcsmith has joined #ruby
<yorickpeterse> I'm sure that won't have any side effects
rodfersou has joined #ruby
phutchins has quit [Quit: WeeChat 1.1.1]
phutchins has joined #ruby
<shevy> as if other modifications don't have side effects
i8igmac has quit [Quit: Leaving]
myztic has left #ruby ["Leaving"]
Alayde has joined #ruby
Alayde has quit [Client Quit]
Alayde has joined #ruby
ferhaty has quit []
OrbitalKitten has joined #ruby
ta_ has quit [Remote host closed the connection]
dopamean_ has joined #ruby
leat has joined #ruby
monoprotic has joined #ruby
joonty has quit [Quit: joonty]
L8 has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dfrakk has joined #ruby
joonty has joined #ruby
codecop has quit [Remote host closed the connection]
dfrakk has quit [Remote host closed the connection]
tmtwd has quit [Ping timeout: 260 seconds]
dfrakk has joined #ruby
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
symm- has joined #ruby
<shevy> is this a good name for a project: http://bevacqua.github.io/dragula/
<centrx> Yes
<centrx> Well done
erowlin has joined #ruby
leat has quit [Remote host closed the connection]
sshuff|gone is now known as sshuff
gregf has quit [Quit: WeeChat 1.1.1]
duderonomy has quit [Ping timeout: 246 seconds]
deepu has joined #ruby
riotjones has quit [Remote host closed the connection]
fenjamin has joined #ruby
brain_shim has quit [Ping timeout: 250 seconds]
swills has joined #ruby
<fenjamin> can we put irb in irc?
<maloik> >> puts "like this?"
<ruboto> maloik # => like this? ...check link for more (https://eval.in/414834)
charliesome has quit [Quit: zzz]
<centrx> >> "I am a %s" % "robot"
<ruboto> centrx # => "I am a robot" (https://eval.in/414835)
einarj has joined #ruby
ta has joined #ruby
bronson has joined #ruby
<fenjamin> >> class Test
<ruboto> fenjamin # => /tmp/execpad-4d58935ec1a1/source-4d58935ec1a1:7: syntax error, unexpected end-of-input, expecting ke ...check link for more (https://eval.in/414836)
<fenjamin> cool
<yorickpeterse> fenjamin: you have to put everything in 1 message though
<fenjamin> i like that
omfgtora_ is now known as omfgtora
meph has quit [Remote host closed the connection]
<fenjamin> ok i will play with this for 20 minutes.
brain_shim has joined #ruby
<yorickpeterse> You're not to abuse it in this channel
tmtwd has joined #ruby
<yorickpeterse> Use IRB locally instead
<yorickpeterse> or Pry or something similar
<adaedra> ?experiment
<ruboto> Please use your local irb or pry (see ?pry) to experiment, ruboto's eval functionality is for demonstration purposes only.
<yorickpeterse> should've known we had that stored in the bot
<fenjamin> yes irb
<adaedra> woohoo, got it at the first time
<shevy> you are the best adaedra
Iskarlar has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
<adaedra> I'll quote that for next time any one of you are mean to me
<apeiros> ?adaedra
<ruboto> don't be mean to adaedra
<adaedra> :D
<shevy> lol
einarj has quit [Ping timeout: 260 seconds]
gregf has joined #ruby
<apeiros> I think somebody should revoke my fact adding rights from ruboto…
bronson has quit [Ping timeout: 244 seconds]
<apeiros> then again, I don't remember who somebody was…
Darkwater` has joined #ruby
<adaedra> ?somebody to love
<ruboto> to, I don't know anything about somebody
<shevy> I think it was jhass... unless he was nobody
Darkwater` has quit [Remote host closed the connection]
yqt has joined #ruby
<yorickpeterse> well he is a nobody
<fenjamin> where can i learn about ruboto?
<yorickpeterse> ( •_•) ( •_•)>⌐■-■ (⌐■_■)
<adaedra> fenjamin: on the ruby community web site, see topic
sarkyniin has joined #ruby
AlexRussia_ has quit [Read error: Connection reset by peer]
<yorickpeterse> y u no open sauce ruboto
hotpancakes has joined #ruby
<yorickpeterse> also that list of facts is not up to date
podman has joined #ruby
ponga has joined #ruby
<shevy> fenjamin the most useful part that it has are the >> calls to invoke ruby code; you can even use a specific version of ruby with it.. something like: 19>> puts 'hello world' ... or something like that, I don't remember the syntax offhand
dopie has joined #ruby
<fenjamin> oo baby. beautiful, i like this.
<fenjamin> a wealth of a resource
chrissonar has quit [Remote host closed the connection]
<yorickpeterse> fenjamin: check out Google, it's pretty sick too
AlexRussia has joined #ruby
<yorickpeterse> :>
<fenjamin> hehe
<fenjamin> yeah the internet is a pretty great resource for learning how to program
erowlin has quit [Quit: erowlin]
Torrieri has joined #ruby
Torrieri has joined #ruby
<shevy> there are some good resources and some not so good ones
erowlin has joined #ruby
<shevy> sometimes people may adopt patterns that they can find on the www
<fenjamin> the internet is pretty good, gravel is not so good
<shevy> I think I kept on using ... YAML.load(File.read("bla.yml")) or so until I realized that there is YAML.load_file() - and I think I did not know because the former I saw on a website first
<shevy> or people following outdated guides to resolve problems
erowlin has quit [Client Quit]
<shevy> some years ago RVM was the hype, nowadays you see people mention chruby
dionysus69 has quit [Ping timeout: 240 seconds]
<dudedudeman> chrubyery
pauly_oc has quit [Ping timeout: 250 seconds]
erowlin has joined #ruby
joonty has quit [Quit: joonty]
<fenjamin> ok today will be learning these resources because in learning programming, Mondays are Saturdays!
clad_fraug has left #ruby ["Leaving"]
<shevy> Caturdays!
fenjamin has quit [Quit: 离开]
erowlin has quit [Client Quit]
govg has quit [Ping timeout: 250 seconds]
govg has joined #ruby
withnale__ has joined #ruby
terlar has joined #ruby
erowlin has joined #ruby
Philipp__ has quit [Read error: Connection reset by peer]
withnale_ has quit [Ping timeout: 240 seconds]
joonty has joined #ruby
erowlin has quit [Client Quit]
CorySimmons has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
withnale__ has quit [Ping timeout: 240 seconds]
bigbadbear has joined #ruby
norc has quit [Ping timeout: 246 seconds]
aganov has quit [Remote host closed the connection]
Guest52508 is now known as marr
pawnbox has joined #ruby
bigbadbear has quit [Client Quit]
Kalov has quit [Quit: babai]
conor_ has quit [Remote host closed the connection]
JakFrist has joined #ruby
axl_ has joined #ruby
tjohnson has joined #ruby
axl_ has left #ruby [#ruby]
conor_ has joined #ruby
Rutix has joined #ruby
Rutix has joined #ruby
omfgtora has quit [Quit: Quit]
omfgtora has joined #ruby
dopie has quit [Quit: Leaving]
bstrrm has joined #ruby
banister has joined #ruby
axl_ has joined #ruby
alex88 has joined #ruby
devoldmx has joined #ruby
bstrarm has quit [Ping timeout: 260 seconds]
choke has joined #ruby
mistermocha has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
ta has quit [Remote host closed the connection]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
choke has quit [Client Quit]
mary5030 has joined #ruby
shoutsid has joined #ruby
chu has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
devoldmx has quit [Ping timeout: 272 seconds]
chu has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
juanca_ has quit [Remote host closed the connection]
sdwrage has quit [Quit: Leaving]
yardenbar has quit [Quit: Leaving]
leat has joined #ruby
L8 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Coldblackice has quit [Ping timeout: 246 seconds]
nohminn has joined #ruby
hotpancakes has quit [Remote host closed the connection]
carlosoliveira has quit [Quit: Connection closed for inactivity]
L8 has joined #ruby
govg has quit [Ping timeout: 245 seconds]
jeremy04_ has joined #ruby
hotpancakes has joined #ruby
skade has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sevenseacat has quit [Quit: .]
ndrei has quit [Ping timeout: 264 seconds]
juanca_ has joined #ruby
jeremy04 has quit [Ping timeout: 252 seconds]
niemcu has quit [Ping timeout: 260 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leat has quit [Ping timeout: 264 seconds]
bigbadbear has joined #ruby
hotpancakes has quit [Ping timeout: 260 seconds]
_blizzy_ has quit [Ping timeout: 272 seconds]
dorei has joined #ruby
erowlin has joined #ruby
Guest50 has joined #ruby
ramfjord has joined #ruby
fanocksa has quit [Ping timeout: 255 seconds]
chills42 has joined #ruby
brain_shim has quit [Ping timeout: 244 seconds]
youngbaks has joined #ruby
mdavid613 has joined #ruby
riotjones has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tmtwd has quit [Ping timeout: 250 seconds]
dkphenom has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
nohminn has quit [Remote host closed the connection]
lannonbr has quit [Quit: WeeChat 1.2]
joonty has quit [Quit: joonty]
startupality has quit [Quit: startupality]
einarj has joined #ruby
gambl0re has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
riotjones has quit [Ping timeout: 245 seconds]
startupality has joined #ruby
yh_ has quit [Ping timeout: 264 seconds]
brain_shim has joined #ruby
yeticry has quit [Ping timeout: 245 seconds]
tmtwd has joined #ruby
yeticry has joined #ruby
leat has joined #ruby
joonty has joined #ruby
djstorm has joined #ruby
erowlin has quit [Quit: erowlin]
einarj has quit [Remote host closed the connection]
nohminn has joined #ruby
f4cl3y has quit [Remote host closed the connection]
erowlin has joined #ruby
Alina-malina has joined #ruby
banister has joined #ruby
jeremy04_ has quit [Remote host closed the connection]
jeremy04 has joined #ruby
leat has quit [Ping timeout: 244 seconds]
sarkyniin has quit [Read error: No route to host]
codecop has joined #ruby
Coldblackice has joined #ruby
kp666 has quit [Remote host closed the connection]
nohminn has quit [Ping timeout: 260 seconds]
kappy has quit [Remote host closed the connection]
tercenya has quit []
StevenXL has joined #ruby
higuys has joined #ruby
mdavid613 has quit [Quit: Leaving.]
yh has joined #ruby
gambl0re has quit [Read error: Connection reset by peer]
jonee has joined #ruby
Guest50 has quit [Ping timeout: 255 seconds]
rehat has quit [Remote host closed the connection]
Channel6 has joined #ruby
mclee has quit [Ping timeout: 264 seconds]
govg has joined #ruby
mclee has joined #ruby
saddad has joined #ruby
jonee has quit [Quit: ChatZilla 0.9.91.1 [Firefox 39.0.3/20150806192140]]
user1138_ has quit [Quit: Leaving]
pdoherty has joined #ruby
Channel6 has quit [Quit: Leaving]
carlosoliveira has joined #ruby
jonee has joined #ruby
conor_ has quit [Remote host closed the connection]
hotpancakes has joined #ruby
startupality has quit [Quit: startupality]
conor_ has joined #ruby
startupality has joined #ruby
govg has quit [Ping timeout: 250 seconds]
Torrieri has quit [Quit: Be back later ...]
leat has joined #ruby
silkfox has joined #ruby
startupality has quit [Client Quit]
bruno- has joined #ruby
bigbadbear has quit [Ping timeout: 272 seconds]
leat has quit [Ping timeout: 255 seconds]
mistermocha has joined #ruby
quimrstorres has quit [Remote host closed the connection]
khebbie has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dfockler has joined #ruby
rehat has joined #ruby
TomyLobo has joined #ruby
johnatho_ has joined #ruby
dr3w has joined #ruby
nonparfumee has joined #ruby
nohminn has joined #ruby
mistermocha has quit [Ping timeout: 255 seconds]
<apeiros> sanguisdex: I was alluding to your use of yml instead of the proper yaml
<apeiros> you know, because only systems stuck in the 90's can't deal with .yaml
<TomyLobo> who needs yaml anyway :)
<adaedra> Yay, JSONx for everyone
<TomyLobo> err, no
hobodave has joined #ruby
rideh^ has joined #ruby
<TomyLobo> adaedra, i like this tweet about it: https://twitter.com/rmlewisuk/status/514822727535185920
ndrei has joined #ruby
<adaedra> what's "tweet"
tectonic has joined #ruby
edwinvdgraaf has quit [Ping timeout: 272 seconds]
<TomyLobo> it's like an sms, except online
<centrx> adaedra, A limited form of telegraph
<adaedra> tititi tatata tititi
j4cknewt has joined #ruby
rideh has quit [Ping timeout: 244 seconds]
nohminn has quit [Ping timeout: 256 seconds]
<TomyLobo> adaedra, so, do you want me to pastebin that tweet or should i paste it along with the original tweet that prompted it? i dont think that would fly well here, which is why i just linked it
<adaedra> TomyLobo: send me a telegram
<TomyLobo> that costs money
<adaedra> Technically, IRC costs money, you pay your ISP for Internet
<TomyLobo> yeah, but i have a flatrate so i dont pay more for using it more
<TomyLobo> sunk costs vs. prospective costs
khebbie has quit [Remote host closed the connection]
mdavid613 has joined #ruby
Timba-as has quit [Quit: Be back later ...]
pietr0 has joined #ruby
greenarrow has quit [Quit: 500]
lannonbr has joined #ruby
startupality has joined #ruby
senayar has quit []
Lucky__ has joined #ruby
joonty has quit [Quit: joonty]
tfitts has joined #ruby
youngbaks has quit [Quit: WeeChat 1.2]
paulcsmith has quit [Quit: Be back later ...]
tiagonobre has quit [Quit: Connection closed for inactivity]
amclain has joined #ruby
joonty has joined #ruby
havenwood has joined #ruby
dr3w has quit [Quit: WeeChat 1.2]
ramfjord has quit [Ping timeout: 250 seconds]
hobodave has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tfitts> I'm trying to work with an EPL file (a printing language for thermal printers) in ruby. The file format is mostly plain text but it allows lines of binary data (for images). I'm trying to figure out an issue I'm having with them. I can create epl data from scratch in ruby that includes an image and it works fine. I can also take a base64 encoded epl I receive, decode it, and add plain text
<tfitts> to it and it works fine, but what I'm trying to do is take the epl I receive and add my image data to it. When I do this though I get an error Encoding::CompatibilityError (incompatible character encodings: ASCII-8BIT and UTF-8):
chills42 has quit [Remote host closed the connection]
<TomyLobo> since it's a mixed format, you cant really rely on text mode
atmosx_bsd is now known as atmosx
<tfitts> The epl I make myself each by adding text to an array and then I #join("\r\n"). each line I add has UTF-8 encoding. When I base64 decode and #split("\r\n"), it comes up as ascii 8-bit
<tfitts> if I try forcing to UTF-8 then it says it works but the resulting file doesn't end up printing anything
AlexAltea has quit [Quit: Leaving]
joonty has quit [Client Quit]
tectonic has quit []
<TomyLobo> so are you trying to modify or to generate that file?
anisha__ has quit [Quit: Leaving]
<tfitts> I'm trying to modify it (shipping labels from stamps.com or UPS)
[Butch] has joined #ruby
darkf has quit [Quit: Leaving]
quimrstorres has joined #ruby
hobodave has joined #ruby
EagleDelta has joined #ruby
Spami has joined #ruby
bweston has quit [Quit: Leaving]
<zenspider> you should be force encoding the IO as binary. if you're modifying the IO, you need your regexps and/or strings to ALSO be binary
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider> you can't mix and match encodings
hanmac has quit [Ping timeout: 246 seconds]
mdavid613 has quit [Quit: Leaving.]
troulouliou_div2 has joined #ruby
rbennacer has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 250 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta has joined #ruby
<zenspider> tfitts: ^^
joelataylor has joined #ruby
Aria is now known as ARia
_blizzy_ has joined #ruby
ndrei has joined #ruby
ARia is now known as Aria
<tfitts> zenspider: I'm just trying to figure out how to do binary regexps/strings
j4cknewt has quit [Remote host closed the connection]
mleung has joined #ruby
<zenspider> you can either force encode them the way you did the IO, or you can set the file's internal encoding to binary via a magic encoding comment
CorySimmons has quit [Quit: Bye!]
<zenspider> so, in the top 2 lines, you can have a comment like: # encoding: BINARY
basmoura_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
_blizzy_ has quit [Read error: Connection reset by peer]
basmoura has quit [Ping timeout: 256 seconds]
xcesariox has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
_blizzy_ has joined #ruby
pdoherty has quit [Ping timeout: 246 seconds]
einarj has joined #ruby
mdavid613 has joined #ruby
hotpancakes has quit [Remote host closed the connection]
tkuchiki has joined #ruby
tomphp_ has quit [Ping timeout: 244 seconds]
snockerton has joined #ruby
pawnbox has quit [Remote host closed the connection]
icebourg has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
icebourg has quit [Max SendQ exceeded]
nveselinov has quit [Quit: Connection closed for inactivity]
higuys has quit []
icebourg has joined #ruby
gambl0re has joined #ruby
nohminn has joined #ruby
hanmac has joined #ruby
Cust0sLim3n has quit [Ping timeout: 265 seconds]
paulcsmith has joined #ruby
einarj has quit [Ping timeout: 244 seconds]
quimrstorres has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
clocKwize has joined #ruby
ascarter has joined #ruby
conor_ has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
Hounddog has quit [Remote host closed the connection]
rbennacer has joined #ruby
yqt has quit [Ping timeout: 250 seconds]
startupality has joined #ruby
polpak has joined #ruby
alex88 has quit []
Cust0sLim3n has joined #ruby
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
mikecmpbll has quit [Ping timeout: 246 seconds]
maletor has joined #ruby
dr3w has joined #ruby
<zenspider> man... the Class.inherited hook is fucking useless... I wish it wasn't triggered on class open when NOTHING about the class is known
nohminn has quit []
bricker has joined #ruby
<zenspider> It'd be SO much more useful if there was a trigger on class close
<jhass> what about reopens?
niemcu has joined #ruby
bb010g has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> still not very useful. ... I guess it depends on what you're trying to do
<zenspider> without a trigger on close, you'll always miss the last iteration of data
<jhass> the method_added might be more what you want perhaps?
<jhass> *hook
troyready has quit [Ping timeout: 246 seconds]
OrbitalKitten has joined #ruby
<zenspider> nope. I need both
terlar has quit [Ping timeout: 260 seconds]
<zenspider> but the inherited hook can trigger before the class even has a name or anything
gambl0re has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
gambl0re has joined #ruby
arup_r has joined #ruby
devoldmx has joined #ruby
OrbitalKitten has quit [Client Quit]
joelataylor has quit [Quit: Be back later ...]
hotpancakes has joined #ruby
OrbitalKitten has joined #ruby
devoldmx has quit [Ping timeout: 245 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
<jhass> does describe and/or it return the class/method name/object/anything useful at all?
j4cknewt has joined #ruby
gwl_ has joined #ruby
icebourg has quit []
startupality has quit [Quit: startupality]
gambl0re has quit [Remote host closed the connection]
icebourg has joined #ruby
<jhass> mmmh, nvm, focus describe do doesn't work as API either
gambl0re has joined #ruby
icebourg has quit [Max SendQ exceeded]
<jhass> well I guess you could do focus_describe do
c0m0 has quit [Ping timeout: 255 seconds]
icebourg has joined #ruby
startupality has joined #ruby
mistermocha has joined #ruby
joelataylor has joined #ruby
mappou has joined #ruby
jgpawletko has joined #ruby
<mappou> Anyone ever use Steve Losh's "t" ?
<mappou> I made my own gem version of it http://bit.ly/1DCRX3k
dylannorthrup has left #ruby ["0.4.3"]
<jhass> ?anyone
<ruboto> Just ask your question, if anyone has or can, they will respond.
gwl_ has quit []
<jhass> though, too fast :P
<mappou> :p I doubt many have used it, I just found it useful so made a quick ruby version I could install on all my machines quickly
<mappou> It's yet another task managing app
<mappou> you've probably seen 100 of them
<mappou> Attempted to make a vim plugin for it as well, but my vim happens to die whenever it executes any ruby code
omegamike has quit [Remote host closed the connection]
johnatho_ has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
<apeiros> zenspider: but in your case, you know when you finished defining the class - when the describe block returns. no?
<shevy> mappou never heard of it
towski_ has joined #ruby
chabil has joined #ruby
<zenspider> mappou: there's already a "t" gem
stan has quit [Ping timeout: 246 seconds]
<zenspider> apeiros: yeah. not sure how that helps me
mistermocha has quit [Ping timeout: 256 seconds]
<zenspider> focus_describe isn't a bad idea
symm- has quit [Ping timeout: 244 seconds]
SlopeTeBT has joined #ruby
LoBoGoL has joined #ruby
quimrstorres has joined #ruby
<mappou> Yeah I made mine t.rb
DoubleMalt has quit [Ping timeout: 240 seconds]
chills42 has joined #ruby
gambl0re has quit [Remote host closed the connection]
j4cknewt_ has joined #ruby
gambl0re has joined #ruby
tkuchiki has joined #ruby
tomphp_ has joined #ruby
quimrstorres has quit [Ping timeout: 255 seconds]
bronson has joined #ruby
Cust0sLim3n has quit [Ping timeout: 246 seconds]
j4cknewt has quit [Ping timeout: 246 seconds]
chills42 has quit [Remote host closed the connection]
pdoherty has joined #ruby
<SlopeTeBT> www.cryptos-revolution.com OMG free Bitcoin and Money here!!!! www.cryptos-revolution.com
hobodave has quit [Quit: Computer has gone to sleep.]
<zenspider> !stfu SlopeTeBT
<zenspider> !mute SlopeTeBT
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
<zenspider> !mute SlopeTeBT
yh has quit [Ping timeout: 240 seconds]
SlopeTeBT has quit []
j4cknewt has joined #ruby
<adaedra> .fr
<adaedra> I am disappoint
j4cknewt_ has quit [Ping timeout: 246 seconds]
da3mian has quit [Ping timeout: 256 seconds]
pauly_oc has joined #ruby
niemcu has quit [Ping timeout: 246 seconds]
nicechap has joined #ruby
big|bad|wolf has quit []
erowlin has quit [Quit: erowlin]
einarj has joined #ruby
Cust0sLim3n has joined #ruby
dabradley has joined #ruby
radgeRayden has quit [Ping timeout: 244 seconds]
<zenspider> wierd... I have something that SHOULD work... and it even generates the right filter regexp as I did when I put focus on all the methods... but it runs nothing
<zenspider> I must have broken something else
<adaedra> You broke hope
nateberkopec has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<mappou> hope is gone
<zenspider> I'm not using inherited or method_added in minitest/spec... idgi
<zenspider> it's WAY too early for me. I can barely type
chouhoulis has joined #ruby
nopc0de has quit [Ping timeout: 246 seconds]
chouhoulis has quit [Remote host closed the connection]
pafin has joined #ruby
<nicechap> hi guys, is ruby hard to learn compared to learning perl
pafin has quit [Client Quit]
<jhass> no
mbeasley has joined #ruby
<jhass> ?guys
<ruboto> You probably don't mean to exclude, but not everyone relates to being "one of the guys". Maybe consider using "folks", "y'all" or "everyone" instead?
chouhoulis has joined #ruby
mbeasley has left #ruby [#ruby]
<nicechap> jhass, I am a perl programmer, but would like to make a switch to ruby and ruby on rails. not sure what would be the best strategy
jackjackdripper has joined #ruby
<nicechap> i now work at company as perl programmer...
pafin has joined #ruby
<adaedra> 1/ learn ruby
<nicechap> no ruby here
<adaedra> 2/ make some ruby programs to train
bodgix has quit [Quit: Leaving.]
nopc0de has joined #ruby
<adaedra> 3/ like 1 and 2, but with rails
<BraddPitt> jhass please
sshuff is now known as sshuff|gone
juanca_ has quit [Remote host closed the connection]
JoshL has quit [Read error: Connection reset by peer]
<nicechap> hmm, jhass that sounds promising... claims ruby is idd easier
JoshL has joined #ruby
<nicechap> thanks adaedra too
<adaedra> :)
<nicechap> hopefully can squeeze this in weekends..
RegulationD has quit [Remote host closed the connection]
<nicechap> -into
icebourg has quit []
juanca_ has joined #ruby
hotpancakes has quit [Remote host closed the connection]
tfitts has quit [Ping timeout: 240 seconds]
RegulationD has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
icebourg has joined #ruby
<nicechap> how does popularity of ruby compare to other languages such as python/perl
blt has joined #ruby
<nicechap> I see that ruby programmers appear to be in demand.
<jhass> ruby has a huge ecosystem
<adaedra> \o
psy_ has quit [Ping timeout: 260 seconds]
blt has left #ruby [#ruby]
<jhass> I think relative popularity is fairly irrelevant at this point
Rickmasta has joined #ruby
juanca_ has quit [Remote host closed the connection]
<nicechap> jhass, would you explain why
<mappou> Learn solve problems, doesn't matter what language you use
<eam> it really matters
<nicechap> mappou, I disagree with that a bit
<eam> (if you, say, want to earn money with programming)
j4cknewt has quit [Remote host closed the connection]
<nicechap> perl is quite complex to solve problems sometimes
<mappou> I was hired for my second job with zero ruby experience and it was a pure ruby based stack
<mappou> Language doesn't matter, if you can write code you can learn any language
JoshL has quit [Client Quit]
j4cknewt has joined #ruby
AlphaAtom has joined #ruby
<eam> mappou: that's not really true
<nicechap> mappou, you do have a point though, as in, learn to solve problems. but it doesnt disqualify the choice of the tools
j4cknewt_ has joined #ruby
<nicechap> as in the choice of the language
<jhass> it's well above the threshold that you can get productive and don't have to build the basic wheels
<eam> it takes months to potentially years to get competent in a language
<eam> depending on the complexity of the environment
<ght> Question: I'm trying to optimize my ruby 2.2.2 app to ensure it executes as quickly as possible, I've seen some old guides for legacy versions of Ruby
<ght> does anyone have any tutorials on tips for speeding up Ruby execution?
<eam> some employers will be happy to hire entry level people (for a lot less money) with no skills in the toolsets they use -- but others will not
<ght> Or just general optimization techniques
<eam> and always, in all cases, applicable experience translates into cash money
RegulationD has quit [Ping timeout: 260 seconds]
<nicechap> jhass, 'well above the threshold' does that mean, easy to get productive relatively quickly?
<ght> jhass: Thank you
spider-mario has joined #ruby
<jhass> ght: also get a profiler to identify your hot code paths and bottlenecks
<mappou> It's true certain tools are better for certain jobs but as you pick up tools you will naturally start using the right ones for the right job
<jhass> ght: if your app is simple enough running with ruby -rprofile might give some insight already
<nicechap> mappou, yeh, it is indeed not black and white
<ght> jhass: Thank you kindly, great stuff.
<shevy> I forgot, when will a new ruby release happen? xmas?
<jhass> nicechap: yes
j4cknewt has quit [Ping timeout: 246 seconds]
<nicechap> thanks jhass
<nicechap> I will practice, play with the language a bit in the coming weeks
<nicechap> the problem is, now having mid-level perl job, and then switch to ruby, probably will be a junior position
<jhass> nicechap: http://tryruby.org is nice to get familiar with the basic look and feel
r_baron has joined #ruby
<shevy> nicechap yay come to ruby man \o/
<nicechap> \o
<nicechap> on my way! :)
ivanskie has joined #ruby
stef204 has joined #ruby
nopc0de has quit [Excess Flood]
nopc0de has joined #ruby
tkuchiki has joined #ruby
Ox0dea has joined #ruby
juanca_ has joined #ruby
<Ox0dea> shevy: How do you forget a thing like that?
<BraddPitt> shevy do you have a day job working in ruby?
<shevy> Ox0dea I don't memorize release habits
da3mian has joined #ruby
stryek has quit [Ping timeout: 265 seconds]
lagweezle has joined #ruby
nonparfumee has joined #ruby
<Ox0dea> shevy: But matz & co. made it super-easy!
<shevy> BraddPitt sadly not really; I could use ruby ~14 months ago at a bioinformatics facility, but they were all like +10 years older than I was and mostly perl gurus, so all their ecosystem was perl, shell scripts and a bit of C
twosevenzero has joined #ruby
willywos has joined #ruby
hotpancakes has joined #ruby
<ytti> the anatomy of any old organization
<ytti> perl and c
ndrei has quit [Remote host closed the connection]
jstodberg has joined #ruby
<Ox0dea> The anatomy of the Internet.
<ytti> good luck changing any of that
<shevy> yeah
ndrei has joined #ruby
Jackneill has joined #ruby
<shevy> they had only ruby 1.9.3
doosy has joined #ruby
juanca_ has quit [Remote host closed the connection]
<slash_nick> shevy: there's a server we'd love to retire that only has 1.8.7
<ytti> 1.9.3 is survivable
<ytti> boxes i now use for work have 1.8.7
<shevy> hehe
<slash_nick> ytti: that can be annoying...
<twosevenzero> Anyone out there care to point me towards a gem or technique that will allow me to update a single line on the command line instead of scrolling the terminal
<twosevenzero> so I can have the command line update similar to 1/100, 2/100, tc
<ytti> just add bunch of ^H
<ytti> if it's last line you're editing
pafin has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
<ytti> if not, then you need curses
choke has joined #ruby
<canton7> or \r
<ytti> twosevenzero, perhaps you need this
ndrei has quit [Remote host closed the connection]
pafin has joined #ruby
<twosevenzero> ytti, thanks!
<twosevenzero> I am going to look into the ^H first
<twosevenzero> since its just the above line
da3mian has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pafin has quit [Client Quit]
<Ox0dea> twosevenzero: ^H is "\b"; you probably want "\r" to begin writing the line again from the beginning.
<twosevenzero> Ox0dea, thanks
<Ox0dea> Sure thing.
startupality has quit [Quit: startupality]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hotpancakes has quit [Ping timeout: 245 seconds]
asaaki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pafin has joined #ruby
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ruby
<twosevenzero> reading every line from a file and then update the user on the progress
<twosevenzero> without trashing the terminal
* lagweezle tries to figure out why the name shevy looks so familiar to him.
lessless has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lessless has quit [Client Quit]
hobodave has joined #ruby
<Ox0dea> twosevenzero: What else are you going to be printing?
platosha_ has joined #ruby
platzhirsch has left #ruby [#ruby]
platosha has quit [Ping timeout: 246 seconds]
AlexRussia has quit [Read error: Connection reset by peer]
troyready has joined #ruby
<twosevenzero> Something like this:
<twosevenzero> Trying: word
<twosevenzero> then
<twosevenzero> Found: word
<twosevenzero> when its successful
<Ox0dea> twosevenzero: But you do have multiple lines of non-progress output?
<twosevenzero> yes, which I do not want. Lots of Trying
pawnbox has quit [Remote host closed the connection]
<Ox0dea> I'm not sure I follow. Using "\r" to rewrite the current line is a clean and elegant approach, but it only works well if that's your only line of output.
qhartman has joined #ruby
<Ox0dea> If you need anything remotely akin to an "interface", you'll need to use terminal escape sequences in one way or another.
dionysus69 has joined #ruby
devoldmx has joined #ruby
catbusters has quit [Max SendQ exceeded]
<twosevenzero> no worries. I will keep hacking at it
juanca_ has joined #ruby
catbusters has joined #ruby
troulouliou_div2 has joined #ruby
<twosevenzero> the basic functionality I am looking for is if I looped over an array of words, I want to print them all one by one. replacing the last one on the screen with the current one
GnuYawk has joined #ruby
chouhoulis has quit [Read error: Connection reset by peer]
clocKwize has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> twosevenzero: Then "\r" should do.
roolo has joined #ruby
chouhoulis has joined #ruby
qhartman has quit [Client Quit]
<shevy> lagweezle either because of chevy chase or because of a car called chevy
juanca_ has quit [Remote host closed the connection]
khebbie has joined #ruby
<lagweezle> shevy: No, no, the actually spelling you're using.
<miah> because of the bad mexican restaurant?
<zenspider> holy crap this is stumping me
postmodern has joined #ruby
<lagweezle> miah: hah
noethics has joined #ruby
<Ox0dea> twosevenzero: %w[foo bar baz].each { |word| print "\r#{word}"; sleep 0.42 }
baweaver has joined #ruby
<graft> you'll have problems
<miah> you need a good truck and some chain to get un-stumped
<Ox0dea> graft: It's merely a demonstration.
<graft> if word[1].length < word[0].length
devoldmx has quit [Ping timeout: 250 seconds]
juanca_ has joined #ruby
<graft> you'll have to pad it out with whitespace, probably
marr has quit [Read error: Connection reset by peer]
<Ox0dea> graft: Nah, "\e[K" erases everything to the right.
khebbie has quit [Remote host closed the connection]
<graft> or that :)
<twosevenzero> Ox0dea, yes. exactly.
<Ox0dea> ?
<twosevenzero> your example was exactly what I wanted
<Ox0dea> Excellent.
<twosevenzero> now I just need to find a way to make that work in what I am doing
<zenspider> don't use \r... it'd dumb. just print to stderr. lets you do all your normal redirection / filtering / etc.
<Ox0dea> zenspider: It fits twosevenzero's use case perfectly.
mbeasley has joined #ruby
<graft> you can still do that with \r, it's just a character..
<zenspider> yeah. and I'm saying it is dumb.
Mendenhall has joined #ruby
pafin has quit [Remote host closed the connection]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
troulouliou_div2 has quit [Quit: Leaving]
sbhatore has joined #ruby
<zenspider> graft: compare: ruby -e '%w[foo bar baz].each { |word| puts "#{word}" }' | grep b
baweaver has quit [Ping timeout: 244 seconds]
<zenspider> graft: to: ruby -e '%w[foo bar baz].each { |word| print "\r#{word}" }' | grep b
<[spoiler]> yorickpeterse: is this to be expected, or is it a bug: `Oga::parse_html('<3').to_xml # => "<3></3>"
vvalien has joined #ruby
<zenspider> the input is a bug... gigo rules
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<Ox0dea> "Love ends in heartbreak." -- The Zen of XML
<yorickpeterse> [spoiler]: that's more or less expected
<yorickpeterse> The reason it happens is because "<3" triggers the opening of a new tag, the "</3>" is inserted automatically after it
<[spoiler]> Oh okay, I just assumed Oga was more lenient like browser
dopamean_ has quit [Quit: leaving]
<[spoiler]> browsers*
<[spoiler]> It won't be an issue; I was just making sure
<yorickpeterse> what would you rather have it do, parse it as plain text?
<yorickpeterse> If so, don't think that's something I could add
dopamean_ has joined #ruby
<yorickpeterse> it would require some form of lookahead to determine if there's a ">" somewhere
<[spoiler]> It's invalid HTML, so (webkit's parser at least) just goes back and treats it as text when it occurs the next <
<[spoiler]> when it finds*
<yorickpeterse> seems Nokogiri/libxml just ignores it alltogether
<[spoiler]> I'd expect libxml to treat itas an error and ignore everything lol!
mbeasley has left #ruby ["WeeChat 0.4.2"]
rbennacer has quit [Remote host closed the connection]
<[spoiler]> I worked with libxml once and it was such a mess
mcgain has quit [Quit: mcgain]
lwu has joined #ruby
youngbaks has joined #ruby
<[spoiler]> But anyway, it won't be an issue. I just had different expectations
nateberkopec has quit [Quit: Leaving...]
<yorickpeterse> ok, feel free to report it as an issue if it becomes a problem
doosy_ has joined #ruby
<yorickpeterse> not sure if I can come up with something, but at least the info is there for others that might bump into the same
jeremy04_ has joined #ruby
kies has joined #ruby
Encapsulation has quit [Remote host closed the connection]
jeremy04 has quit [Ping timeout: 272 seconds]
doosy has quit [Ping timeout: 256 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sanguisdex has left #ruby [#ruby]
rbennacer has joined #ruby
j4cknewt_ has quit [Remote host closed the connection]
chabil has quit [Quit: WeeChat 1.2]
doosy has joined #ruby
Encapsulation has joined #ruby
<[spoiler]> Hmm
<[spoiler]> Okay I'll open an issue
Blaguvest has quit [Ping timeout: 250 seconds]
<twosevenzero> Ox0dea, zenspider: Here is what I am getting. Do I need to go the curses route?
jeremy04_ has quit [Remote host closed the connection]
jeremy04 has joined #ruby
RegulationD has joined #ruby
omegamike has joined #ruby
j4cknewt has joined #ruby
renanoronfle has quit [Ping timeout: 250 seconds]
ivanskie has joined #ruby
doosy__ has joined #ruby
<[spoiler]> Tempted to title the issue `Heartbreak`
doosy_ has quit [Ping timeout: 256 seconds]
duderonomy has joined #ruby
Darkwater has quit [Ping timeout: 265 seconds]
jackjackdripper has quit [Quit: Leaving.]
decaff has joined #ruby
jackjackdripper has joined #ruby
dumdedum has quit [Ping timeout: 272 seconds]
nateberkopec has joined #ruby
doosy has quit [Ping timeout: 265 seconds]
fantazo has joined #ruby
jerius has quit [Ping timeout: 244 seconds]
jerius has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
L8 has quit [Ping timeout: 250 seconds]
KnowledgeOwl has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
baweaver has joined #ruby
jhack has joined #ruby
it_tard has joined #ruby
big|bad|wolf has joined #ruby
howdoicomputer has joined #ruby
<yorickpeterse> [spoiler]: eh, if you do at least give it a meaningful title
frem has joined #ruby
tomphp_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nfk has quit [Disconnected by services]
it_tard is now known as nfk
sshuff|gone is now known as sshuff
lannonbr has quit [Quit: WeeChat 1.2]
OrbitalKitten has joined #ruby
pyon has quit [Ping timeout: 255 seconds]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
renanoronfle has joined #ruby
<BraddPitt> sorry shevy stepped into a meeting right as you answered my question. So what do you use for your day job?
tomphp_ has joined #ruby
tomphp_ has quit [Client Quit]
hobodave has quit [Quit: Computer has gone to sleep.]
GBrawl has joined #ruby
tomphp_ has joined #ruby
<twosevenzero> Ox0dea, zenspider: lol.. the words had newlines as well. #fail
rehat has quit [Read error: Connection reset by peer]
lthomas has joined #ruby
vvalien has quit [Quit: vvalien]
gamename has joined #ruby
ndrei has joined #ruby
hotpancakes has joined #ruby
edwinvdgraaf has joined #ruby
tomphp_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hobodave has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gusrub has joined #ruby
baweaver has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlphaAtom has joined #ruby
tomphp_ has joined #ruby
edwinvdgraaf has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
<[spoiler]> yorickpeterse: I was just kidding, don't worry <3></3>
but3k4 has quit [Ping timeout: 240 seconds]
AlphaAtom has joined #ruby
reset has joined #ruby
OrbitalKitten has joined #ruby
<Ox0dea> twosevenzero: Glad you got that sorted, but where's the "\e[K"?
pdoherty has quit [Quit: Leaving]
reset has quit [Client Quit]
jhack has quit [Remote host closed the connection]
<shevy> BraddPitt I do use ruby for pretty much everything, I am not a programmer though, studied biology/molecular genetics so I would do more lab work; but somehow I ended up with more and more bioinformatics even though I am not too overly fond of it
leafybasil has quit [Remote host closed the connection]
da3mian_ has joined #ruby
leafybasil has joined #ruby
da3mian_ has quit [Client Quit]
einarj has quit [Ping timeout: 240 seconds]
mappou has quit [Ping timeout: 250 seconds]
decaff has quit [Quit: Leaving...]
einarj has joined #ruby
<miah> bioinformatics is neat
pyon has joined #ruby
northfurr has joined #ruby
riotjones has joined #ruby
banister has joined #ruby
OrbitalKitten has quit [Client Quit]
youngbaks has quit [Ping timeout: 265 seconds]
tomphp_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 246 seconds]
raypulver has quit [Quit: ZNC - http://znc.in]
suchness has quit [Ping timeout: 256 seconds]
<dfockler> In classes is it better to call an instance variables by it's method or by using @, I know the @ accesses the actual var, while the other is a method call
<TomyLobo> https://eval.in/private/2760f0377ebe5d I kinda get why @@foo is undefined, but how do i set a class variable of the module i'm included from?
leafybasil has quit [Ping timeout: 244 seconds]
khebbie has joined #ruby
<twosevenzero> I added it in the final
<twosevenzero> working great
<[spoiler]> dfockler: if you're within a class, use `@var` over `var`
<twosevenzero> thanks again
howdoicomputer has quit [Ping timeout: 240 seconds]
<TomyLobo> err class i'm included from*
<[spoiler]> dfockler: local variables have precedence
<dfockler> [spoiler]: I've seen some people use self.foo or just foo to access the variable from inside a class
<shevy> miah before I knew it, in the distant past, I thought it is about creating de-novo organisms. I fell from the sky when I noticed that most of it was about maths instead :(
<[spoiler]> it's possible, but if you use self.foo you use public access
khebbie has quit [Remote host closed the connection]
<[spoiler]> because self is a public reference to the object you're calling from
<[spoiler]> which miht be different from just reading from @foo
tomphp_ has joined #ruby
howdoicomputer has joined #ruby
<TomyLobo> talking to me or dfockler? :)
<[spoiler]> using just `foo` is still considered private access, but it can be overriden by lvars
riotjones has quit [Ping timeout: 264 seconds]
bodgix has joined #ruby
<TomyLobo> oh nm he switched to foo first
<[spoiler]> TomyLobo: ok I am not sure anymore *confused, re-reads*
DoubleMalt has joined #ruby
JakFrist has joined #ruby
mappou has joined #ruby
<[spoiler]> Oh, I was talking to dfockler , sorry
<dfockler> shouldn't you only use @ when you want to use the var internally, but not expose it externally?
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jmignault has joined #ruby
banister has joined #ruby
bodgix has quit [Client Quit]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
ledestin has joined #ruby
<[spoiler]> dfockler: Not really. All instance variables are not exposed by default, you have to use attr_reader/attr_writet/attr_accesor to make them read-only/write-only/both
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dfockler> [spoiler]: that's kind of what I meant
<[spoiler]> also you can do `def instance_var_name=(v); @instance_var_name = v*2; end;`
dopamean1 has joined #ruby
but3k4 has joined #ruby
Pupeno has quit [Remote host closed the connection]
<dfockler> so if you want an external view of the var use `instance_var_name` but if you need access to the raw var use @instance_var_name
Blaguvest has joined #ruby
<TomyLobo> https://eval.in/private/70fc76967144a3 i am seriously confused now. self is the same instance in both cases. why is the behaviour of @@ different?
howdoicomputer has quit [Ping timeout: 264 seconds]
hj2007 has joined #ruby
<[spoiler]> Yes, but using @ is still better, for one: there's no method dispatching, and for two: if you did `attr_reader :foo` and then tried to do foo=10, you'd not call a method `SomeClass#foo=`, you'd just define the local variable `foo`
felltir has joined #ruby
edwinvdg_ has joined #ruby
<[spoiler]> and @foo wouldn't be updated
<[spoiler]> so, you'd have a mess
<dfockler> [spoiler]: ok that makes sense
Bish_ is now known as Bish
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
<[spoiler]> when inside class body, and for simple assignments, use @foo.
<[spoiler]> However, if the assignment is something complex, you should still use @foo *but*
KnowledgeOwl has quit [Remote host closed the connection]
<[spoiler]> have a private method called `set_foo`, and alias #= as #set_foo
<[spoiler]> and make #= public, obviously
KnowledgeOwl has joined #ruby
arooni-mobile__ has joined #ruby
duderonomy has quit []
<BraddPitt> interesting shevy. Why not move into software development?
eytanfb has joined #ruby
<shevy> BraddPitt I rather want to create living things :)
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<BraddPitt> thats fair
crdpink has joined #ruby
spider-mario has joined #ruby
edwinvdgraaf has quit [Ping timeout: 256 seconds]
<[spoiler]> dfockler: If it seems weird I can write some quick examples
jhack has joined #ruby
crdpink2 has quit [Ping timeout: 244 seconds]
KnowledgeOwl has quit [Remote host closed the connection]
troulouliou_div2 has joined #ruby
KnowledgeOwl has joined #ruby
clocKwize has joined #ruby
tkuchiki has quit [Remote host closed the connection]
ndrei has joined #ruby
nonparfumee has joined #ruby
Timba-as has joined #ruby
SCHAAP137 has joined #ruby
KnowledgeOwl has quit [Remote host closed the connection]
edwinvdg_ has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
edwinvdgraaf has joined #ruby
yh has joined #ruby
asaaki has joined #ruby
edwinvdg_ has joined #ruby
dopamean_ has quit [Quit: leaving]
dopamean1 has quit [Quit: leaving]
arooni-mobile__ has quit [Remote host closed the connection]
youngbaks has joined #ruby
atomical has joined #ruby
<TomyLobo> monsanto style?
dopamean_ has joined #ruby
yardenbar has joined #ruby
DLSteve has joined #ruby
noob4linux has joined #ruby
TheNet has joined #ruby
edwinvdgraaf has quit [Ping timeout: 260 seconds]
<TomyLobo> or or really de novo? :)
<dudedudeman> whoa. there's a celebrity in here
ponga has quit [Quit: Connection closed for inactivity]
OrbitalKitten has joined #ruby
leafybasil has joined #ruby
<dfockler> [spoiler]: Thanks, but it makes sense :)
KnowledgeOwl has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
<TomyLobo> dudedudeman, who?
<[spoiler]> dudedudeman: finally some recognition! Thank you, thank you!
* [spoiler] is having a Gilderoy Lockhart moment
KnowledgeOwl has quit [Remote host closed the connection]
<TomyLobo> gilwho?
<Ox0dea> >> 0x10e # twosevenzero: What's the significance, if you don't mind my asking?
<ruboto> Ox0dea # => 270 (https://eval.in/414952)
shevy has quit [Remote host closed the connection]
whiteline has quit [Quit: Leaving]
KnowledgeOwl has joined #ruby
chinmay_dd has joined #ruby
whiteline has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
JoshL has joined #ruby
<[spoiler]> TomyLobo: I'm a *huge* Harry Potter nerd (includes LARPing, but that's not limited to Harry Potter, though)
<twosevenzero> ruboto, is right but where did I post 0x10e?
troulouliou_div2 has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 246 seconds]
dgutierrez1287 has joined #ruby
<TomyLobo> >> 0x0dea
<ruboto> TomyLobo # => 3562 (https://eval.in/414953)
KnowledgeOwl has quit [Remote host closed the connection]
tkuchiki has joined #ruby
yeticry has joined #ruby
KnowledgeOwl has joined #ruby
northfurr has quit [Quit: northfurr]
baweaver has joined #ruby
<dudedudeman> [spoiler] is definitely com truise
casadei has joined #ruby
noob4linux has left #ruby ["Konversation terminated!"]
<TomyLobo> [spoiler], and in the spirit of your name, dumbledore dies :)
Cache_Money has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<[spoiler]> I always read 0x0dea like someone with a bizzare Irish accent saying `No Oydea`
dgutierrez1287 has quit [Ping timeout: 260 seconds]
<TomyLobo> Ox odea
<[spoiler]> TomyLobo: Lol :)
<gambl0re> does devise handle email authentication and password resets?
Cust0sLim3n has quit [Ping timeout: 265 seconds]
<TomyLobo> Ox, o dea!
<[spoiler]> gambl0re: yes
<jhass> ?crosspost gambl0re
<ruboto> gambl0re, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
<gambl0re> k thanks
nahtnam has joined #ruby
<gambl0re> i wasnt sure if it did it
kalleth has quit [Quit: No Ping reply in 180 seconds.]
hotpancakes has quit [Remote host closed the connection]
<[spoiler]> gambl0re: also jhass has a good point :)
hotpancakes has joined #ruby
fantazo has quit [Quit: Verlassend]
last_staff has joined #ruby
kalleth has joined #ruby
Ox0dea has quit [Ping timeout: 265 seconds]
Cust0sLim3n has joined #ruby
maletor has quit []
ivanskie has joined #ruby
LoBoGoL has quit [Ping timeout: 244 seconds]
DroidBurgundy has joined #ruby
dabradley has quit [Quit: WeeChat 0.4.2]
dabradley has joined #ruby
maletor has joined #ruby
<nahtnam> Hey!
nateberkopec has joined #ruby
<nahtnam> Quick question
<nahtnam> Can a site detect if I am using mechanize?
lthomas has quit [Quit: lthomas]
phutchins has quit [Ping timeout: 260 seconds]
GBrawl has quit [Read error: Connection reset by peer]
<TomyLobo> what is mechanize
northfurr has joined #ruby
<TomyLobo> user-agent-changing proxy
<brain_shim> nahtnam: If you set the User-Agent header, you can spoof comming from a browser.
<TomyLobo> nope they can't, unless mechanize is bad
tkuchiki has quit [Remote host closed the connection]
<havenwood> TomyLobo: Mechanize is a wrapper around Ruby's Net::HTTP that helps automate interactions with the web.
<nahtnam> Cool
<nahtnam> Also
<nahtnam> If the said site has a ajax form, can I get mechanize to fill it, submit it, and get the ajax respone?
segy has quit [Ping timeout: 265 seconds]
tkuchiki has joined #ruby
Gefn has joined #ruby
jonee has quit [Remote host closed the connection]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<TomyLobo> nahtnam, they might detect you by behaviour
youngbaks has quit [Quit: WeeChat 1.2]
<nahtnam> ?, I want to fill out the form like a normal user
<brain_shim> nahtnam: Find the ajax request and don't bother with filling in the form. Send a post request directly to the route specified.
carlosoliveira has quit [Quit: Connection closed for inactivity]
<nahtnam> brain_shim: What if it has a captcha?
<nahtnam> I am using Death By Captcha
<nahtnam> to solve it
<TomyLobo> wireshark helps
<[spoiler]> nahtnam: if it has a captcha, it's not meant to be submitted by bots
<[spoiler]> Respect that :)
<nahtnam> [spoiler]: Its not meant to be, but i kinda have to do it
kidoz has joined #ruby
<nahtnam> We already do it with selenium
toretore has joined #ruby
<nahtnam> just wondering if Mechanize can do it faster
<TomyLobo> nahtnam, captcha means computer-aided test to tell computers and humans apart. if they employ that, they have a reason for that
dopamean_ has quit [Quit: leaving]
<brain_shim> nahtnam: If you're interacting with a js heavy site, you're probably better off sticking with a headless browser that has a js runtime.
<TomyLobo> i suggest you ask politely for an api
<nahtnam> TomyLobo: We did, they never responded.
<nahtnam> (We need to scrape gift card balances)
<TomyLobo> that sounds fishy
<[spoiler]> nahtnam: your biggest bottleneck is, I'm assuming, the network I/O, not the actual machine. So Selenium might not be the issue.
<TomyLobo> are you trading their gift cards around without authorization?
AlphaAtom has joined #ruby
<nahtnam> trading?
<[spoiler]> TomyLobo: Well, let's not get into the ethics of it. It's beyond this channel probably :(
<TomyLobo> yeah, why else would you need to scrape gift card balances for someone else's shop?
jpiche has joined #ruby
baweaver has quit [Remote host closed the connection]
Mendenhall has quit [Ping timeout: 244 seconds]
dr3w has quit [Ping timeout: 244 seconds]
Torrieri has joined #ruby
Torrieri has joined #ruby
<[spoiler]> nahtnam: Well, I doubt a pure-ruby implementation will be faster than a Java one (I might be wrong, but I doubt that in this case).
<[spoiler]> And mechanize is written in pure Ruby from what I can tell
Muhannad has quit [Read error: Connection reset by peer]
<nahtnam> [spoiler]: But the difference is that mechanize doesnt open up a chrome instance
<nahtnam> where are selenium does
TheNet has quit [Remote host closed the connection]
<nahtnam> Which slows it down **a lot**
<[spoiler]> nahtnam: use a headless browser, then :)
<[spoiler]> nahtnam: something like phantom.js
Yiota has joined #ruby
<[spoiler]> or maybe they call it PhantomJS instead of .js not sure
<nahtnam> We tried that, but some of the sites we scrape found a way to block it
felltir has quit []
<[spoiler]> nahtnam: set the user-agent to something else
<[spoiler]> And besides, it was blocked for a reason
* [spoiler] sighs
<nahtnam> I dont think its that. I think it had to do with some JS on the page. (I never actually tried it out, a co-worker did)
<nahtnam> Hm, ill just try it out
<nahtnam> and see how it goes
zz_Outlastsheep is now known as Outlastsheep
<[spoiler]> I'm not happy with this conversation. I don't think you should do something that a website doesn't want you to do
jerius has quit [Quit: /quit]
LoBoGoL has joined #ruby
<[spoiler]> It's not polite, or ethical towards the people who put effort into creating the website
<nahtnam> Its not my choice, it was just assigned to me, and I personally dont mind doing it considering these are large companies
KnowledgeOwl has quit [Remote host closed the connection]
<[spoiler]> I can't help further. :/ I already feel a little bit guilty for offering the small bits of advice I gave away.
KnowledgeOwl has joined #ruby
dopamean_ has joined #ruby
<gambl0re> spoiler i need your help
<gambl0re> i got two different results when using the same command
C1V0 has joined #ruby
<jhass> [spoiler]: you'll give a couple of lawyers work, creating jobs!
hashrocket has joined #ruby
bweston92 has joined #ruby
jerius has joined #ruby
n008f4g_ has joined #ruby
dopamean_ has quit [Client Quit]
but3k4 has quit [Read error: Connection reset by peer]
preller has joined #ruby
but3k4_ has joined #ruby
<jhass> oh and actually
<nahtnam> gambl0re: #RubyOnRails
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> Railsy Rails Rails
<jhass> !kick gambl0re don't crosspost without informing all sides about it
gambl0re was kicked from #ruby by ruboto [don't crosspost without informing all sides about it]
big|bad|wolf has quit [Read error: Connection reset by peer]
<TomyLobo> nahtnam, "only taking orders" has not been a valid excuse since '45
segy has joined #ruby
<nahtnam> > and I personally dont mind doing it considering these are large companies
clocKwize has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hakunin has joined #ruby
chabil has joined #ruby
<TomyLobo> so you're not amoral but immoral, that makes it better
<jhass> ignorance wins!
KnowledgeOwl has quit [Remote host closed the connection]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dfockler> ah computer ethics, what a fun grey area
KnowledgeOwl has joined #ruby
<[spoiler]> dfockler: especially if you're a unix user. We've all been killers at one point
<[spoiler]> unix/linux*
<dfockler> Only Richard Stallman is a pure computer ethicist
jgpawletko has quit [Quit: jgpawletko]
* [spoiler] sighs
dopamean_ has joined #ruby
<TomyLobo> except if you ask the cddl crowd
<[spoiler]> I've been debugging my code when the behaviour (not even a bug, it's verly likely a feature) wasn't even in my code!
<[spoiler]> Effin great.
<dfockler> The Case of the Missing Method
baweaver has joined #ruby
<[spoiler]> dfockler: no it's worse; it's encodings
saddad has quit [Ping timeout: 250 seconds]
<[spoiler]> I loaaaaathe encodings
<dfockler> Doesn't everything use UTF-8 these days? LOLOLOL
KnowledgeOwl has quit [Remote host closed the connection]
<TomyLobo> nope, oracle for instance still defaults to the platform encoding :)
Timba-as has quit [Quit: Be back later ...]
<TomyLobo> also postgres
KnowledgeOwl has joined #ruby
Muhannad has joined #ruby
<TomyLobo> but postgres is usually installed on systems with sane platform encodings so it doesnt matter
<[spoiler]> Hmm. My code actually alters this type of behaviour (which is kinda good, not sure if I should fix it or leave it)
<[spoiler]> It actually generates what I wanted it to generate, so I guess I win
deepu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
pyon has quit [Ping timeout: 240 seconds]
* [spoiler] does a subtle victory dance, because he's not sure if a real victory dance is appropriate.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<nahtnam> ruboto: Is pretty cool. Where can I find the soruce
<[spoiler]> Oh well. If people complain, I'll fix it. For now I am content.
<twohlix> i might be wrong tho :\
frigidcode has joined #ruby
youngbaks has joined #ruby
<[spoiler]> twohlix: actually, that's a different thing
<twohlix> yea, just read through it
dopamean_ has quit [Quit: Lost terminal]
<[spoiler]> it's probably implemented using cinch
<twohlix> 2 hard problems in CS: naming things, cache invalidation and off by one errors
<twohlix> damn naming things.
Timba-as has joined #ruby
<[spoiler]> ?cinch
<ruboto> I don't know anything about cinch
Musashi007 has joined #ruby
<twohlix> probably is: ruboto has userhost ~cinch@ruby-community.com and real name "cinch"
LoBoGoL has quit [Ping timeout: 240 seconds]
<nahtnam> twohlix: Ehhh, thats a mobile app gem,
<nahtnam> not a bot
tercenya has joined #ruby
<twohlix> yea, i just realized that after reading through it
<nahtnam> Ah k
silkfox has quit [Ping timeout: 256 seconds]
jpiche has quit [Quit: WeeChat 0.4.2]
cgrieger^away has quit [Ping timeout: 256 seconds]
<[spoiler]> omg
devoldmx has joined #ruby
<[spoiler]> I can't stop laughing at this, whoever added this is brilliant
<[spoiler]> ?learning
<ruboto> How learning something works: http://i.imgur.com/l2mInq8.webm
jeremy04_ has joined #ruby
Macaveli has joined #ruby
Macaveli has quit [Max SendQ exceeded]
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Motoservo has quit [Quit: Over & out.]
Macaveli has joined #ruby
KnowledgeOwl has quit [Remote host closed the connection]
<nahtnam> [spoiler]: Where did you find the commnad?
<[spoiler]> apeiros: good work with the learning video :)
iszak_ has joined #ruby
KnowledgeOwl has joined #ruby
<nahtnam> :D I wish I had a dog
jeremy04 has quit [Ping timeout: 250 seconds]
<nahtnam> ?ping
<ruboto> pong
axl_ has left #ruby [#ruby]
devoldmx has quit [Ping timeout: 244 seconds]
ascarter has joined #ruby
JoshL has quit []
mappou has left #ruby ["WeeChat 1.2"]
dopamean_ has joined #ruby
<nahtnam> ?pong
<ruboto> I don't know anything about pong
ascarter has quit [Max SendQ exceeded]
baweaver has quit [Remote host closed the connection]
dopamean_ has quit [Client Quit]
<[spoiler]> nahtnam: you can't pong something if it doesn't ping :P
ascarter has joined #ruby
<nahtnam> But it does ping
<nahtnam> I just checked :D
dopamean_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<[spoiler]> nahtnam: I phrased that badly. I meant, you can't pong to something that didn't ping you first
<nahtnam> But I did ping it...
pyon has joined #ruby
<nahtnam> ?ping
<ruboto> pong
<nahtnam> ?pong
<ruboto> I don't know anything about pong
lalalaaa has joined #ruby
<nahtnam> .....?
RegulationD has quit [Remote host closed the connection]
jgpawletko has joined #ruby
<lalalaaa> Hi! How do I check if path includes `&`? I tried `if path == /\&/` but to no avail.
<[spoiler]> Yes, but the bot can't p*i*ng you if you p*o*ng it.
bruno- has joined #ruby
LoBoGoL has joined #ruby
<nahtnam> ?
<[spoiler]> lalalaaa: use equalish
<nahtnam> ?ping pong
<ruboto> pong, pong
Spami has quit [Quit: Leaving]
jeremy04_ has quit [Remote host closed the connection]
<nahtnam> Ohhhhhhh
<[spoiler]> or =~
<havenwood> nahtnam: If you don't receive a ping, you can't send a pong, how can you send a pong if you don't receive a ping!? You! Yes, you!
<[spoiler]> that's equalish
jeremy04 has joined #ruby
<jhass> lalalaaa: path.include? "&"
<jhass> just use english
<[spoiler]> jhass, lalalaaa: that's an even better solution, because fasterness
<[spoiler]> (depends on how often you call the code, though)
jamto11 has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lalalaaa> jhass: english ftw, thanks
Musashi007 has joined #ruby
<lalalaaa> [spoiler]: equalish works too, much obliged
<[spoiler]> lalalaaa: I started using equalish because I finally found a way to remember the syntax
<jhass> lalalaaa: btw & is nothing special in regex, no need to escape it
<nahtnam> I think there are benchmarks for =~ in there
yqt has joined #ruby
<lalalaaa> jhass: ah yeah i was like.. do i need that?
Vile` has quit [Ping timeout: 240 seconds]
<jhass> nahtnam: but not against include? ?
mesamoo has quit [Excess Flood]
rakm has joined #ruby
<jhass> lalalaaa: always try without, it's surprisingly permissive in those regards
mesamoo has joined #ruby
<jhass> if it actually behaves weird start looking for things to escape
cschneid_ has joined #ruby
lapide_viridi has joined #ruby
<jhass> but if you don't need the escapes, they just obscure it IMO
Vile` has joined #ruby
<[spoiler]> there's few things you need to escape in regexp anyway, though
nfk has joined #ruby
<lalalaaa> cool, got it, thanks again
chinmay_dd has quit [Quit: Leaving]
<jhass> mmh, I'm trying to think of something (apart from the start delimiter) that you need to escape no matter where you put it
mistermocha has joined #ruby
Musashi007 has quit [Client Quit]
jgpawletko has quit [Quit: jgpawletko]
RegulationD has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
<jhass> can't come up with anything though
sdwrage has joined #ruby
northfurr has quit [Quit: northfurr]
mistermocha has joined #ruby
DroidBurgundy has quit [Ping timeout: 260 seconds]
TheNet has joined #ruby
<zenspider> several of those benchmarks are stupid. take it with a grain of salt and measure your own shit to get real numbers.
ivanskie has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
yfeldblum has joined #ruby
k3asd` has joined #ruby
dr3w has joined #ruby
DroidBurgundy has joined #ruby
baweaver has joined #ruby
<TomyLobo> why does my regex look like this? (?-mix:^\/projects$)
<bougyman> tjat
<bougyman> 's the verbose version.
northfurr has joined #ruby
<bougyman> the ?-mix means it's not multiline, not case insensitive, and not extended syntax.
<TomyLobo> ah
mistermocha has quit [Ping timeout: 272 seconds]
KnowledgeOwl has quit [Remote host closed the connection]
pyon has quit [Ping timeout: 265 seconds]
<TomyLobo> bougyman, so it's case sensitive?
<bougyman> correct
KnowledgeOwl has joined #ruby
<TomyLobo> good
<TomyLobo> i wasnt actually thinking about that :)
<TomyLobo> good default
<jhass> TomyLobo: you know about the gotcha's between ^$ vs \A\z ?
gambl0re has joined #ruby
<TomyLobo> nope
gambl0re has quit []
<jhass> ^$ is start/end of line, \A\z is start/end of string
<TomyLobo> same thing in this case :)
Contigi has joined #ruby
youngbaks has quit [Quit: WeeChat 1.2]
exadeci has joined #ruby
<jhass> >> "foo\n/projects\nbar"[%r{^/projects$}]
<ruboto> jhass # => "/projects" (https://eval.in/414973)
<TomyLobo> does enabling the multiline flag change that behaviour?
<jhass> if you're sure about that, it's a common pitfall in validation scenarios
<jhass> don't think so
gambl0re has joined #ruby
EllisTAA has joined #ruby
<TomyLobo> well the worst that could happen is my fuse driver crashing
halcyone3 has quit [Ping timeout: 246 seconds]
<TomyLobo> not a big deal since the person using the fs is probably the person who mounted it
<jhass> >> ["\r\n"[/.+/], "\r\n"[/.+/m]]
<ruboto> jhass # => ["\r", "\r\n"] (https://eval.in/414974)
duderonomy has joined #ruby
<jhass> I think that's the only diff
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
law has joined #ruby
<law> hey all, I'm tasked with mangling some Time objects, and I'm getting a little confused
duderonomy has quit [Max SendQ exceeded]
<law> how can I test if Time.now is within 'business hours', where 'business hours' are defined as 8am to 6pm, Mon thru Fri, in the timezone of my local host?
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
chipotle has joined #ruby
<law> I tried comparing to a range, but couldn't quite get it. Now I'm trying to just say "is Time.now less than 6pm and greater than 8am?", but getting a little wonky on the syntax of such a thing
<jhass> pure ruby, no activesupport?
lapide_viridi has quit [Quit: Leaving]
<law> correct
twosevenzero has left #ruby ["Leaving"]
<[spoiler]> jhass: I'm not a Rails guys, so I'm curious about an active support solution, too!
<[spoiler]> activesupport*
doosy__ has quit [Remote host closed the connection]
lthomas has joined #ruby
juanca_ has quit []
<jhass> [spoiler]: not an expert either. Either way I'd construct the beginning and end time and AS has some helpers to do so
Outlastsheep is now known as zz_Outlastsheep
marr has joined #ruby
<[spoiler]> law, as to your last line: `(8..18).include? Time.now.hour`
Torrieri has quit [Quit: Be back later ...]
<[spoiler]> there's also Time.now.wday
<[spoiler]> 1 is monday, 0 is sunday
<[spoiler]> etc
doosy has joined #ruby
<law> niiiiiice
<law> I can definitely hack it together with that, at least. thank you very much!
Motoservo has joined #ruby
<[spoiler]> law, but there's no need for a range, tbf
PlasmaStar is now known as Guest0
<[spoiler]> might degrade performance since it generates an extra object
<law> this is an 'if' statement to a script that decides whether to wake up a sysadmin if a build fails
<[spoiler]> it probably just calles Range#first and Range#last and then compares if the day is bigger than the former and smaller than the latter
<law> if it runs once an hour, I'll be impressed
blackmesa has joined #ruby
<[spoiler]> calls*
<[spoiler]> oh okay then
<[spoiler]> in that case, range is definitely nicer
casadei has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has quit [Client Quit]
<[spoiler]> BTW: you could probably get fancier with it (although I doubt you'll need it)
pyon has joined #ruby
pyon has quit [Client Quit]
Guest0 is now known as PlasmaStar
tonyfabeen has joined #ruby
tonyfabeen has left #ruby [#ruby]
rdark has quit [Ping timeout: 252 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rdark has joined #ruby
pyon has joined #ruby
swgillespie has joined #ruby
Musashi007 has joined #ruby
doosy_ has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[spoiler]> yorickpeterse: you here? :) I have a question about a possible feature request for Oga (again, it's not an issue, and it might not be difficult to implement :P)
duderonomy has joined #ruby
<zenspider> TomyLobo: multiline (/m)just means that /./ will also match a newline
malconis has joined #ruby
<TomyLobo> ah
doosy has quit [Ping timeout: 256 seconds]
tkuchiki has quit [Remote host closed the connection]
nonparfumee has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<law> how fancy are we talkin'?
Musashi007 has quit [Quit: Musashi007]
dr3w has quit [Ping timeout: 256 seconds]
tkuchiki has joined #ruby
EllisTAA has quit [Ping timeout: 240 seconds]
TheNet has quit [Remote host closed the connection]
Janusz1 has quit [Ping timeout: 255 seconds]
clocKwize has joined #ruby
EllisTAA has joined #ruby
clocKwize has quit [Max SendQ exceeded]
casadei has joined #ruby
jenrzzz has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
ascarter has joined #ruby
<atmosx> law: sample code that uses 'tzinfo': https://gist.github.com/atmosx/e9106907ef237e97e176 you can work out the days and everything to suit your needs.
mcgain has joined #ruby
solars has quit [Ping timeout: 240 seconds]
<law> shiny, thank you!
dr3w has joined #ruby
basmoura_ has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
basmoura has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<atmosx> law: just take a look at strftime: http://apidock.com/ruby/Time/strftime , you can get days by using %u or %w (depending on how do you count the week).
gard has joined #ruby
RobertBirnie has joined #ruby
bweston has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saddad has joined #ruby
lannonbr has joined #ruby
hotpancakes has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 250 seconds]
<law> am I missing something here: https://gist.github.com/law/8bef671f156e00962d54
<law> '13' should be within the 11...18 range
swgillespie has joined #ruby
<darix> law: strftime gives you a string
<atmosx> yeah, it's a string
hotpancakes has joined #ruby
<atmosx> turn that string into number
bweston92 has quit [Ping timeout: 256 seconds]
<atmosx> law: TZInfo::Timezone.get('America/Los_Angeles').strftime('%H').to_i
banister has joined #ruby
omfgtora has quit [Read error: Connection reset by peer]
<law> awesome, thanks
<Zarthus> On Windows, does anyone know how to tell Ruby to use OpenSSL::VERIFY_NONE by default, or to at least not use SSLv3? I checked my OpenSSL::OPENSSL_VERSION, and it seems to be 1.0.1l (patched for heartbleed), but still insisting on some gems to use SSLv3 - i'm okay with VERIFY_NONE, this is development. the production server will verify the end result.
Trynemjoel has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
<darix> Zarthus: how about grabbing a ca-bundle
<Zarthus> The thrown error is `request.rb:37:in `rescue in perform': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (Twitter::Error)`
<darix> like the one from curl
<darix> and then setting up the ssl properly?
<jhass> isn't SSLv3 in openssl terms SSLv3+?
DroidBurgundy has quit []
<jhass> and then you have to disable SSLv3 with some other option?
<TomyLobo> uhm sslv3 is broken and shouldnt be supported anymore
<Zarthus> darix: I suppose it's worth a shot. I assumed by default Twitter would drop SSLv3 traffic anyways, though.
<jhass> ah no, that was SSLv23
irctc151 has joined #ruby
<darix> Zarthus: your problem is not SSLv3
<darix> but the ca bundle missing
Musashi007 has joined #ruby
<irctc151> hello, im trying to do a if statement if a hash is nil or not, and for some reason its making the hash nil.
<darix> irctc151: you used = instead of ==
<darix> or better .nil?
<Zarthus> darix - alright, thanks. i'll try installing curl's ca bundle
<irctc151> ill try ==
<Bish> hey, can i pass a variable to a thread, without it being an issue (local copy)
slide has joined #ruby
<darix> Bish: mutex
_ht has quit [Quit: Konversation terminated!]
pyon has quit [Ping timeout: 244 seconds]
<Bish> i know about mutexes, but i do not want to modify it inside the thread
<Bish> so i m asking if i somehow can copy it into the context, it seems like they're all references
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Contigi has quit [Quit: Leaving]
<darix> Bish: i would protect the assignment anyway
<Bish> darix, i wouldn't
hotpancakes has quit [Ping timeout: 272 seconds]
<Bish> i would just copy them, if that is possible
basmoura has quit [Ping timeout: 256 seconds]
<lalalaaa> *that feeling when your ruby app finally gets the webdesign it deserves*
<slide> I've installed ruby 2.2 on ubuntu 12.04 using a ppa. I'm now trying to upgrade gitlab however after running "bundle install" which says it installs rake, "bundle rake" fails with "bundler: command not found: rake"
<slide> anyone know how I can figure out how to fix this?
* lalalaaa takes this opportunity to watch RUBY SPARKS Trailer 2012 Movie - Official [HD]: https://www.youtube.com/watch?v=W4RJYlSgDKM
<dfockler> hahaha
KnowledgeOwl has quit [Remote host closed the connection]
<dfockler> Bish: are you certain they are actually getting copied?
KnowledgeOwl has joined #ruby
<Bish> no, the oppsotie is the case, but i would love to copy them
jackjackdripper has joined #ruby
last_sta1 has joined #ruby
<dfockler> haha
tkuchiki has quit [Remote host closed the connection]
last_staff has quit [Ping timeout: 246 seconds]
Philipp__ has joined #ruby
<darix> Bish: you can try .dup
<TomyLobo> .derp
KnowledgeOwl has quit [Remote host closed the connection]
tkuchiki has joined #ruby
KnowledgeOwl has joined #ruby
rdark has quit [Ping timeout: 240 seconds]
<irctc151> currently its running as if the hash isnt empty when it is.
<irctc151> <% if @test["uid"] == " " %>
<irctc151> is what im doing
pyon has joined #ruby
<irctc151> basically if the "uid" is empty i want a specific link to show, else if not empty then a different link
KnowledgeOwl has quit [Remote host closed the connection]
<baweaver> #RubyOnRails first off
<baweaver> second, make sure that's == and not =
KnowledgeOwl has joined #ruby
devdazed has quit [Ping timeout: 264 seconds]
<baweaver> they're going to ask you for more of the code there as that'll be insufficient to find the actual issue.
<irctc151> i have it as ==
<baweaver> if it's not in the view you're doing something odd in the controller
<baweaver> but again, #RubyOnRails is where you should probably be asking ERB questions.
<irctc151> kk
irctc151 has quit [Quit: Page closed]
<TomyLobo> well, you dont need rails to use erb
chabil has quit [Quit: WeeChat 1.2]
<TomyLobo> puppet and vagrant both employ erb
<TomyLobo> and neither of them strikes me as a rails app
<baweaver> most of the time
irctc881 has joined #ruby
<baweaver> I'd assume they'd correct me if that was the case.
<baweaver> either way
<atmosx> slide: where did you get that 'bundle rake' command from?
cornerma1 has joined #ruby
plains has quit [Ping timeout: 246 seconds]
<atmosx> slide: you probably wanted to write 'bundle exec rake <something>'
Motoservo has quit [Ping timeout: 245 seconds]
northfurr has quit [Quit: northfurr]
northfurr has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<irctc881> im trying to do a if statement, where if its true, then show a certain link, if not true show aanother link, but its coming as its always false. heres my code https://gist.github.com/anonymous/b075c69694e3a0afdfc7
okdas has quit [Ping timeout: 264 seconds]
banister has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 246 seconds]
<TomyLobo> irctc881, that does sound a lot like rails now :)
j4cknewt has quit [Remote host closed the connection]
bmurt has quit []
<TomyLobo> especially link_to
baweaver has quit [Remote host closed the connection]
<atmosx> lalalaaa: that movie must be terrible
cornerman has quit [Ping timeout: 252 seconds]
cornerma1 is now known as cornerman
Jackneill has quit [Ping timeout: 246 seconds]
irctc881 has quit [Quit: Page closed]
arup_r has quit [Quit: Leaving]
TheNet has joined #ruby
r_baron has quit [Quit: Page closed]
Muhannad has quit [Remote host closed the connection]
avitzurel has joined #ruby
yh has quit [Ping timeout: 244 seconds]
Trynemjoel has quit [Ping timeout: 245 seconds]
Musashi007 has quit [Quit: Musashi007]
mcgain has quit [Quit: mcgain]
TheNet has quit [Ping timeout: 246 seconds]
Lucky__ has joined #ruby
Trynemjoel has joined #ruby
<TomyLobo> so, when addressing a json api on a single http[s] server, httparty or rest-client?
gamename has quit [Remote host closed the connection]
law has left #ruby [#ruby]
gamename has joined #ruby
gard has quit [Ping timeout: 260 seconds]
hotpancakes has joined #ruby
okdas has joined #ruby
okdas has joined #ruby
<atmosx> TomyLobo: Depends on teh interface I guess. If you're more familiar with httparty go for it...
<TomyLobo> i'm not familiar with either
TheNet has joined #ruby
Yiota has joined #ruby
KnowledgeOwl has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
mcgain has joined #ruby
Yiota has quit [Client Quit]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tomphp_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<atmosx> I used faraday once, it was kinda nice... At the tiem I thought it was easier than httparty. Never looked into rest-client. Here is a sample code: https://github.com/atmosx/pritory/blob/master/helpers/skroutz.rb#L55
northfurr has quit [Quit: northfurr]
KnowledgeOwl has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
gamename has quit [Ping timeout: 244 seconds]
Yiota has joined #ruby
northfurr has joined #ruby
Flemzord has joined #ruby
<havenwood> TomyLobo: Here's another option with a nice interface that's not based off of Net::HTTP: https://github.com/httprb/http#readme
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
umgrosscol has quit [Quit: Quit]
<TomyLobo> holy shit RestClient is slow
Flemzord has quit [Client Quit]
KnowledgeOwl has quit [Remote host closed the connection]
C1V0 has quit []
KnowledgeOwl has joined #ruby
<TomyLobo> havenwood, so it's definitely not RestClient :D
<TomyLobo> that chaining api is nice. can i preconfigure a base url?
<havenwood> TomyLobo: Depends if it's good at what you're using it for I suppose.
<TomyLobo> ah, HTTP.persistent, isnt it?
rideh^ has quit [Quit: zap]
FernandoBasso has joined #ruby
mary5030 has quit [Remote host closed the connection]
KnowledgeOwl has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
<TomyLobo> havenwood, the documentation is kinda lacking, or am i missing anything?
ldnunes has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 252 seconds]
<havenwood> TomyLobo: There's documentation?
<TomyLobo> for instance, i cant find anything about HTTP.persistent apart from this one accidental example
Musashi007 has joined #ruby
Michael_Ryan has joined #ruby
Michael_Ryan has left #ruby [#ruby]
zanloy has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
troulouliou_div2 has joined #ruby
EagleDelta has quit [Read error: Connection reset by peer]
last_sta1 has quit [Quit: last_sta1]
tomphp_ has joined #ruby
kirun has quit [Remote host closed the connection]
arooni-mobile has joined #ruby
<havenwood> TomyLobo: Yeah, documentation is lacking.
Trynemjoel has quit [Ping timeout: 250 seconds]
KnowledgeOwl has quit [Remote host closed the connection]
bweston has quit [Ping timeout: 256 seconds]
<[spoiler]> havenwood, TomyLobo: good code documents itself!
Gefn has quit [Quit: Leaving]
KnowledgeOwl has joined #ruby
Trynemjoel has joined #ruby
Musashi007 has quit [Quit: Musashi007]
troulouliou_divn has joined #ruby
troulouliou_divn has quit [Client Quit]
troulouliou_div2 has quit [Ping timeout: 246 seconds]
Philipp__ has quit [Read error: Connection reset by peer]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
rideh has joined #ruby
<infernix> I have a variable called @boot_order which is an array that can be [ "hd" ] or [ "network" ] or [ "hd", "network" ] or [ ""network", "hd" ]. I also have variables called @hd and @network which are arrays of devices I want to do something with. Is there some way to address these @hd and/or @network variables in a .each_with_index loop based on the contents of @boot_order?
<infernix> s/""/"/
KnowledgeOwl has quit [Remote host closed the connection]
<infernix> e.g. some way of expanding the values of the @boot_order array into defined variables that are already defined?
KnowledgeOwl has joined #ruby
nonparfumee has joined #ruby
<jhass> devices = {"hd" => @hd, "network" => @network}
<jhass> perhaps store as such a hash in the first place
<infernix> yeah, but the order has to follow the order in the @boot_order var. that's the tricky part
<infernix> otherwise it wouldn't matter
bmcginty has quit [Ping timeout: 256 seconds]
<jhass> that's not tricky at all
<jhass> @boot_order.flat_map {|category| devices[category] }
kith_ is now known as kith
<infernix> i'm not seeing a nicer way other than to make it into: if @boot_order[0] = foo .... elsif @boot_order[0] = bar ... end
northfurr has quit [Quit: northfurr]
nonparfumee has quit [Remote host closed the connection]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bmcginty has joined #ruby
rodfersou has quit [Quit: leaving]
bb010g has quit [Quit: Connection closed for inactivity]
rodfersou has joined #ruby
Tristan-Speccy has joined #ruby
rodfersou has quit [Client Quit]
chichou has joined #ruby
Tristan-Speccy is now known as Guest55401
rideh has quit [Ping timeout: 264 seconds]
al2o3-cr has joined #ruby
hotpancakes has joined #ruby
Burgestrand has joined #ruby
<infernix> that looks nice, thanks!
<jhass> if it's still not clear to you, I guess your actual problem is on the "something"
Burgestrand has quit [Client Quit]
Burgestrand has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
lannonbr has quit [Ping timeout: 244 seconds]
josh has joined #ruby
josh is now known as Guest2269
<infernix> the something is altering xml with nokogiri, that's rather straightforward
omegamike has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 245 seconds]
Trynemjoel has joined #ruby
jerius has quit [Quit: /quit]
brain_shim has quit [Ping timeout: 240 seconds]
DLSteve has quit [Quit: Leaving]
tkuchiki has quit [Remote host closed the connection]
jenrzzz has joined #ruby
conor_ has joined #ruby
KnowledgeOwl has quit [Remote host closed the connection]
KnowledgeOwl has joined #ruby
conor_ has quit [Remote host closed the connection]
devoldmx has joined #ruby
GeissT has quit [Quit: Bye!]
Trynemjoel has quit [Ping timeout: 250 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[spoiler]> jhass, TomyLobo: god code documents itself! (re: httprb being poorly documented)
<[spoiler]> good, even
rbennacer has quit [Remote host closed the connection]
<jhass> so the perfect code is always a quine, since it needs to generate its own doc comments?
roolo has quit [Remote host closed the connection]
Burgestrand has quit []
<[spoiler]> :P
Burgestrand has joined #ruby
<[spoiler]> btw I have to go to bed, my cat is sick and he wants to cuddle before he falls asleep :/
<[spoiler]> Cheers and tty tomorrow! <3></3>
<jhass> night
jeremy04 has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
tubuliferous_ has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
conor_ has joined #ruby
tubulife- has quit [Ping timeout: 244 seconds]
Yzguy has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
n_blownapart has joined #ruby
conor_ has quit [Remote host closed the connection]
Yzguy has quit [Client Quit]
<miah> sup
<TomyLobo> https://docs.atlassian.com/jira/REST/latest/ the requests in JIRA's API all tart with /jira/rest/api/2/. would you include that in the base path or not?
but3k4_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kallisti5> are ruby's sort's guaranteed to be consistant?
<TomyLobo> consistent? you mean stable?
<kallisti5> I swear it is sorting - vs : differently
avahey has joined #ruby
<TomyLobo> maybe according to locale
conor_ has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
<kallisti5> in one sort: gvfs-common, gvfs:amd64
<kallisti5> in another: gvfs:amd64, gvfs-common
Burgestrand has quit []
Trynemjoel has joined #ruby
<kallisti5> doing a sort_by in each case
Burgestrand has joined #ruby
lalalaaa has quit [Ping timeout: 240 seconds]
sshuff is now known as sshuff|gone
conor_ has quit [Remote host closed the connection]
conor_ has joined #ruby
jstodberg has quit [Quit: Leaving]
<kallisti5> also. one sort: libasound2-data, libasound2:amd64 another: libasound2:amd64, libasound2-data
niemcu has joined #ruby
benlieb has joined #ruby
<kallisti5> strangest thing ever.. sort one seems to favor - while sort 2 favors : all from the same sort_by
davedev24 has quit []
chichouw has joined #ruby
dopamean_ has quit [Quit: leaving]
einarj has quit [Remote host closed the connection]
lannonbr has joined #ruby
chichou has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
baweaver has quit [Remote host closed the connection]
lalalaaa has joined #ruby
swgillespie has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
victortyau has quit [Quit: Leaving]
decoponio has joined #ruby
bazbing80 has quit [Quit: Lost terminal]
LoBoGoL has quit [Quit: Bye]
hobodave has quit [Quit: Computer has gone to sleep.]
jhack has quit [Ping timeout: 250 seconds]
nofxx has joined #ruby
mistermocha has joined #ruby
tmtwd has quit [Ping timeout: 246 seconds]
paulcsmith has quit [Quit: Be back later ...]
[H]unt3r has joined #ruby
jenrzzz has joined #ruby
lthomas has quit [Quit: lthomas]
Trynemjoel has quit [Ping timeout: 250 seconds]
dimasg has joined #ruby
Timba-as has quit [Quit: Be back later ...]
EllisTAA has quit [Quit: EllisTAA]
kies has quit [Ping timeout: 260 seconds]
Trynemjoel has joined #ruby
<TomyLobo> maybe your sort considers them equal and your sort is either not stable or your source dataset has them in varying relative orders
Oka_ has joined #ruby
tomphp_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<kallisti5> I did do a uniq on one :-\
Oka has quit [Ping timeout: 272 seconds]
yardenbar has quit [Quit: Leaving]
EllisTAA has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
n008f4g_ has quit [Ping timeout: 252 seconds]
binaryplease has joined #ruby
<kallisti5> so weird. i'm using the same data for each array... how could it differ? I wrote a test case and it works fine
<ruboto> kallisti5, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/a4dac4dffa4b97ddab6a
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
KnowledgeOwl has quit [Remote host closed the connection]
jbw_ has joined #ruby
KnowledgeOwl has joined #ruby
<kallisti5> the only difference is the uniq on one of them
* kallisti5 tries that in his test case
niemcu has quit [Ping timeout: 265 seconds]
binaryplease has quit [Client Quit]
binaryplease has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
lthomas has joined #ruby
ascarter has joined #ruby
jbw__ has quit [Ping timeout: 272 seconds]
Asher1 has joined #ruby
Asher has quit [Read error: No route to host]
<chichouw> kallisti5: if your gist reflects your code, be aware that chaining uniq! might be dangerous
akkad is now known as gnusmas
bruno- has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland> chichouw: interesting. what are the risks of chaining uniq! ?
<kallisti5> chichouw: yeah. just broke it out
<chichouw> it can return nil
<bradland> ah, fun
<chichouw> if no changes are made
k3asd` has quit [Ping timeout: 246 seconds]
conor_ has quit [Remote host closed the connection]
<chichouw> in a more general perspective, read every bang method's documentation, it could return (or not return) what you expect
radgeRayden has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
conor_ has joined #ruby
j4cknewt has joined #ruby
EllisTAA has joined #ruby
<chichouw> and one tip about the doc too, read the one concerning your ruby version :)
Asher1 has quit [Quit: Leaving.]
Asher has joined #ruby
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Alayde has quit [Ping timeout: 244 seconds]
hashrocket has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CamonZ has quit [Quit: Textual IRC Client: www.textualapp.com]
baweaver has joined #ruby
pyon is now known as grum-pyon
Symbiosisz1 has joined #ruby
bmcginty has quit [Ping timeout: 260 seconds]
willywos has quit [Ping timeout: 246 seconds]
mary5030 has joined #ruby
Kallis has joined #ruby
whippythellama has quit [Quit: WeeChat 1.2]
Trynemjoel has quit [Ping timeout: 245 seconds]
saddad has quit [Ping timeout: 250 seconds]
constantinexvi has quit [Disconnected by services]
constantinexvi has joined #ruby
<kallisti5> hm.. does putting a string into a hash value somehow change it?
dopie has joined #ruby
<bradland> no
Trynemjoel has joined #ruby
paulcsmith has joined #ruby
doosy_ has quit []
constantinexvi has quit [Client Quit]
<bradland> but you're probably asking the wrong question :)
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
<bradland> >> h={};h[:foo]="bar";p h[:foo]
<ruboto> bradland # => "bar" ...check link for more (https://eval.in/414994)
[k- has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 255 seconds]
<kallisti5> wait!
kaps has joined #ruby
<kallisti5> reproduced it!
dudedudeman has quit [Quit: Leaving.]
<ruboto> kallisti5, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/b4e089bb783ca9a854dd
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<Radar> <3 ruboto
<bradland> sry kallisti5, I don't do pastebin on principle
<Radar> kallisti5: :name != "name"
<kallisti5> aahhh.
<bradland> don't sweat it, HashWithIndifferentAccess ruins everyone who uses rails
<kaps> helloo
<kaps> rubists
<kallisti5> yup... fixed
<kallisti5> thanks! :-D
<kaps> do you like hastebin and why you dont like pastebin ?
<bradland> ruboto explains it pretty well
<kaps> sorry haven't read ruboto's response
jbw__ has joined #ruby
<kaps> true that
<bradland> oh snap, ruboto reponses to gist now. didn't even notice.
jbw_ has quit [Ping timeout: 246 seconds]
Symbiosisz1 has quit [Quit: Leaving]
wfoiwnfelo has joined #ruby
hotpancakes has joined #ruby
roger_rabbit has quit [Ping timeout: 246 seconds]
bronson has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
tkuchiki has joined #ruby
arooni-mobile has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 252 seconds]
wfoiwnfelo has quit [Quit: leaving]
TomyLobo has quit [Ping timeout: 264 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
Torrieri has joined #ruby
Torrieri has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
nym has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
conor_ has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
TomyLobo has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
bruno- has joined #ruby
Torrieri has quit [Quit: Be back later ...]
Trynemjoel has quit [Ping timeout: 245 seconds]
PaulCapestany has quit [Quit: .]
PaulCapestany has joined #ruby
dr3w has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
dr3w has joined #ruby
hj2007 has quit [Quit: This computer has gone to sleep]
sdwrage has joined #ruby
snockerton has quit [Quit: Leaving.]
codecop has quit [Remote host closed the connection]
danieli has joined #ruby
TomyLobo has quit [Ping timeout: 246 seconds]
Pupeno has joined #ruby
Pupeno has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
kaps has left #ruby [#ruby]
saddad has joined #ruby
jbw_ has joined #ruby
devoldmx has joined #ruby
lthomas has quit [Quit: lthomas]
hahuang61 has joined #ruby
jbw__ has quit [Ping timeout: 246 seconds]
EllisTAA has quit [Quit: EllisTAA]
davedev24 has joined #ruby
cschneid_ has quit [Remote host closed the connection]
DifferentLambda is now known as DeltaLambda
Trynemjoel has quit [Ping timeout: 250 seconds]
lwu has quit [Quit: This computer has gone to sleep]
EllisTAA has joined #ruby
lthomas has joined #ruby
michael_mbp has quit [Excess Flood]
devoldmx has quit [Ping timeout: 244 seconds]
lthomas has quit [Client Quit]
lwu has joined #ruby
michael_mbp has joined #ruby
dopamean_ has joined #ruby
djstorm has quit [Ping timeout: 265 seconds]
edwinvdg_ has quit []
phutchins has joined #ruby
sarkyniin has joined #ruby
blackmes1 has joined #ruby
baweaver has quit [Remote host closed the connection]
Rutix has quit []
Trynemjoel has joined #ruby
icebourg has quit []
blackmes1 has quit [Client Quit]
juanca_ has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jtdoncas has joined #ruby
jbw__ has joined #ruby
mistermocha has joined #ruby
Ropeney has joined #ruby
dopamean_ has quit [Quit: Lost terminal]
jbw_ has quit [Ping timeout: 244 seconds]
michaeldeol has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
dopamean_ has joined #ruby
startupality has joined #ruby
ivanskie has joined #ruby
Pupeno has quit [Remote host closed the connection]
icedp has quit [Ping timeout: 244 seconds]
mistermocha has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
lannonbr has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 250 seconds]
dudedudeman has joined #ruby
icedp has joined #ruby
ascarter has joined #ruby
krz has quit [Quit: WeeChat 1.2]
gambl0re has quit [Ping timeout: 246 seconds]
binaryplease1 has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
renanoronfle has quit [Read error: Connection reset by peer]
binaryplease has quit [Ping timeout: 260 seconds]
dkphenom has joined #ruby
jackjackdripper1 has joined #ruby
renanoronfle has joined #ruby
saddad has quit [Ping timeout: 240 seconds]
jackjackdripper has quit [Ping timeout: 255 seconds]
zanloy has quit [Ping timeout: 240 seconds]
__butch__ has joined #ruby
Torrieri has joined #ruby
jbw_ has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
[Butch] has quit [Ping timeout: 244 seconds]
jbw__ has quit [Ping timeout: 240 seconds]
hotpancakes has joined #ruby
Inside has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
paulcsmith has quit [Quit: Be back later ...]
hinbody has quit [Quit: leaving]
yfeldblu_ has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
segmond has joined #ruby
hotpancakes has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
baweaver has joined #ruby
EllisTAA has joined #ruby
rakm has joined #ruby
chichouw has quit []
bmcginty has joined #ruby
bronson has joined #ruby
jbw__ has joined #ruby
ascarter has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
kies has joined #ruby
baweaver has quit [Remote host closed the connection]
EllisTAA has quit [Quit: EllisTAA]
jbw_ has quit [Ping timeout: 252 seconds]
Rickmasta has quit [Ping timeout: 250 seconds]
nateberkopec has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
shevy has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
dimasg has quit [Ping timeout: 246 seconds]
MatthewsFace has joined #ruby
<shevy> the topic mentions Ruby 2.2.2; 2.1.6; 2.0.0-p645:
<shevy> let's get rid of all but 2.2.2 \o/
startupality has quit [Quit: startupality]
Amun-re has joined #ruby
mdavid613 has quit [Quit: Leaving.]
Amun-re has left #ruby [#ruby]
Guest55401 is now known as Tristan-Spec
Tristan-Spec is now known as Tristan-Speccy
gusrub has quit [Quit: Leaving]
kies has quit [Ping timeout: 255 seconds]
binaryplease1 has quit [Quit: WeeChat 1.2]
EllisTAA has joined #ruby
dr3w has quit [Ping timeout: 250 seconds]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
casadei has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 265 seconds]
<drbrain> 2.0.0 is still under active maintenance
dimasg has joined #ruby
EllisTAA has quit [Client Quit]
jamto11_ has joined #ruby
joelataylor has quit [Quit: Be back later ...]
marr has quit [Ping timeout: 260 seconds]
<jtdoncas> wow im an idiot, I just realize \o/ isn't a mouth open, but a guy cheering
choke has joined #ruby
EllisTAA has joined #ruby