jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
InvGhostt has quit [Ping timeout: 240 seconds]
jgt2 has joined #ruby
charliesome has quit [Ping timeout: 272 seconds]
ur5us has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
InvGhosttt has quit [Ping timeout: 240 seconds]
jgt1 has quit [Ping timeout: 240 seconds]
SCHAAP137 has joined #ruby
DeXterbed has quit [Ping timeout: 250 seconds]
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
Cantaberry has joined #ruby
bklane_ has quit [Ping timeout: 240 seconds]
duckpuppy has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rgrmatt has joined #ruby
framling has quit [Ping timeout: 250 seconds]
rgrmatt has quit [Remote host closed the connection]
blackgoat has joined #ruby
bklane has joined #ruby
blackgoat has quit [Client Quit]
duckpuppy has quit [Ping timeout: 272 seconds]
dlitvak has joined #ruby
tvon has joined #ruby
blackgoat has joined #ruby
stannard has joined #ruby
ElFerna has joined #ruby
stannard has quit [Ping timeout: 256 seconds]
bithon has joined #ruby
<bithon> hello
dlitvak has quit [Remote host closed the connection]
marr has quit [Ping timeout: 256 seconds]
<jhass> hi
banister has joined #ruby
dlitvak has joined #ruby
akem has quit [Remote host closed the connection]
dfinninger has joined #ruby
<wolffles> sup
minimalism has joined #ruby
firstdayonthejob has quit [Ping timeout: 272 seconds]
<bithon> One of the few friendly chats I've been to today :D
freerobby has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
zeroDivisible has joined #ruby
bklane has quit [Read error: Connection reset by peer]
ElFerna_ has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
bklane has joined #ruby
ElFerna has quit [Ping timeout: 250 seconds]
akem has joined #ruby
shock_one has joined #ruby
whiteline has joined #ruby
dfinninger has quit [Ping timeout: 272 seconds]
bklane has quit [Ping timeout: 240 seconds]
rgrmatt has joined #ruby
charliesome has joined #ruby
shock_one has quit [Ping timeout: 250 seconds]
Rodya_ has quit [Remote host closed the connection]
steffkes has quit [Ping timeout: 240 seconds]
bklane has joined #ruby
Rodya_ has joined #ruby
_stu_ has joined #ruby
rgrmatt has quit [Ping timeout: 250 seconds]
BTRE has joined #ruby
Ropeney has joined #ruby
kalopsian has quit [Ping timeout: 240 seconds]
prereflect has joined #ruby
stevenxl has quit [Quit: leaving]
<Ox0dea> bithon: Have Ruby question(s)?
stevenxl has joined #ruby
stevenxl has quit [Changing host]
stevenxl has joined #ruby
Guest43890 has quit [Quit: ZNC - 1.6.0 - http://znc.in]
purplexed- has quit [Quit: Leaving]
C0deMaver1ck has joined #ruby
sdothum has quit [Read error: Connection reset by peer]
bklane has quit [Read error: Connection reset by peer]
bklane has joined #ruby
sdothum has joined #ruby
freerobby has quit [Quit: Leaving.]
<bithon> Ox0dea: Nope.
hxegon has quit [Quit: Leaving]
nettoweb has joined #ruby
djbkd has joined #ruby
bronson has joined #ruby
nettoweb has quit [Client Quit]
<wolffles> i probably will have a question soon
jdelaney has joined #ruby
j4cknewt has joined #ruby
freerobby has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
lyoshajapan has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
<shevy> (famous last words)
kalopsian has joined #ruby
bklane has quit [Read error: Connection reset by peer]
juddey has quit [Remote host closed the connection]
bklane has joined #ruby
<bithon> I need an interesting idea for a project.
<bithon> Been learning ruby for some time but I can't think of anything cool that isn't too complex to work on
wildlander has quit [Quit: Saliendo]
<bithon> Come on peeps of the interwebs, direct your fellow aspiring rubyist :D
toretore has quit [Ping timeout: 272 seconds]
<j416> fizzbuzz
<wolffles> bithon: have you done a text adventure rpg game yet?
dlitvak has joined #ruby
<blub> metacircular evaluator
<bithon> umm
<bithon> blub: a what? :D
Guest56608 is now known as saneax_AFK
Stalkr_ has quit [Quit: Leaving...]
rgrmatt has joined #ruby
prereflect has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DavidDudson has joined #ruby
<bithon> blub: could you possibly elaborate?
<bithon> oh
<bithon> crap nvm
<bithon> I read that as metacircuit elevator lol
bklane has quit [Ping timeout: 240 seconds]
<bithon> Too much EE can do that to your head
ornerymoose has quit [Quit: ornerymoose]
duckpuppy has joined #ruby
<pontiki> bithon: write the game of life?
stevenxl has quit [Quit: leaving]
<bithon> I'll figure something out
<bithon> I wanted to write a dropbox clone
<bithon> (I know, lame)
Rodya_ has quit [Remote host closed the connection]
hirmos has quit [Remote host closed the connection]
bklane has joined #ruby
<pontiki> url shortener?
duckpuppy has quit [Ping timeout: 240 seconds]
stevenxl has joined #ruby
stevenxl has quit [Changing host]
stevenxl has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
kirun_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
bbert has joined #ruby
<bithon> Hmm they're all cool ideas I guess
<bithon> I could do some of them
<bithon> blub: Can you elaborate more on what metacircular evaluator is ?
roshanavand has joined #ruby
<bithon> I did check the wiki, but it's too absract for me right now (too tired :))
ponga has joined #ruby
<bithon> Ox0dea: Oh. Thank you! Boomarked it for when the weekend comes to study the material. Thanks ;p
radgeRayden__ has joined #ruby
<Ox0dea> SICP is a holy text; use it wisely.
<bbert> any advice for writing a small ruby daemon that does client I/O over TCP sockets and stores its state in a database (probably sqlite)? I'm already comfortable using TCP in Ruby. I haven't dealt with databases.
<pontiki> bithon: are you looking for something to practice on?
<pontiki> lol
<jhass> bbert: not sure what kind of advice you're seeking
<pontiki> bbert: well, jhass beat me to the question
<bbert> jhass pontiki: basically, to be pointed in the right direction for dealing with databases. maybe orm
<jhass> ah
<jhass> bbert: check Sequel
<jhass> (gem called that)
bklane has quit [Ping timeout: 256 seconds]
<Ox0dea> bbert: Alternatively, use one of the pseudo-databases from the standard library.
<bithon> Yes sir :D
<jhass> does anybody really use them?
<bithon> Well I really just need some sort of brain teaser to keep my mind occupied
<jhass> bithon: codewars.com?
<bithon> I've just wasted the entire weekend watching tv shows and doingbasically nothing
<Ox0dea> bithon: Sounds like you meant to join #selfhelp.
<bithon> Haha :D
kalopsian has quit [Ping timeout: 256 seconds]
wmdrossard has quit [Ping timeout: 250 seconds]
radgeRayden_ has quit [Ping timeout: 250 seconds]
<bithon> Good idea probably
<Ox0dea> Yeah, I wasn't being facetious.
<bithon> I'm either super productive and work 12-14 hours a day
<bithon> or I'm a total slob
roshanavand has quit [Ping timeout: 250 seconds]
<bithon> Can't meet in the middle even if my life depended on it
<Ox0dea> ?ot
<ruboto_> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<bithon> Alrighty
<Ox0dea> See ya there!
blackgoat has quit [Ping timeout: 272 seconds]
<bithon> Well, can I still stay in this channel ?
kalopsian has joined #ruby
bklane has joined #ruby
atomical has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
<jhass> sure
charliesome has quit [Read error: Connection reset by peer]
<bbert> Ox0dea: I like built in functionality... are you referring to something like DBM?
bklane_ has joined #ruby
<wolffles> im sure this is super easy for you guys. i cant get my counter to count :(
bklane has quit [Read error: Connection reset by peer]
<wolffles> def count_vowels(string)
<wolffles> string.scan(/[aeiou]/) { |vowels| vowels =+ 1 }
<wolffles> puts vowels
<wolffles> end
<wolffles> count_vowels("color")
dfinninger has joined #ruby
<jhass> ?gist
<ruboto_> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<bithon> or even pastebin ;)
<jhass> wolffles: anyway, I'm sure you get an error message on that
<jhass> shall we read it together?
<wolffles> yeah i need help :[
kalopsian has quit [Ping timeout: 240 seconds]
<jhass> well, if you want help reading the error message you gotta share it first
bklane has joined #ruby
<wolffles> oh right
zeroDivisible has quit [Quit: WeeChat 1.3]
<wolffles> : syntax error, unexpected '=', expecting end-of-input
<wolffles> =beginputs('count_vowels("abcd...
charliesome has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
krobzaur has joined #ruby
bklane_ has quit [Ping timeout: 240 seconds]
saneax_AFK is now known as saneax
dfinninger has quit [Ping timeout: 240 seconds]
<jhass> wolffles: that doesn't seem to match up with the code you posted
saneax is now known as Guest26785
<wolffles> oh i thought i noted the other part
shock_one has joined #ruby
<wolffles> question5.rb:8:in `count_vowels': undefined local variable or method `vowels' for main:Object (NameError)
bklane_ has joined #ruby
scripore has joined #ruby
<Ox0dea> bbert: Aye, but one of {G,S,Y}DBM might better take your fancy/serve your purpose.
<jhass> wolffles: sorry but that still doesn't seem to match up
<Ox0dea> jhass: Yes, it does; wolffles used `=+`.
bklane has quit [Read error: Connection reset by peer]
jbrhbr has joined #ruby
<Ox0dea> That was in reference to the syntax error, of course.
<jhass> oh, nvm
<jhass> getting tired
<Ox0dea> Reporting for shift change.
<pontiki> o7
<jhass> wolffles: a local variable defined inside a block is not available outside it
<wolffles> oh did not know that
<jhass> wolffles: however a block does inherit local variables defined before it
juddey has joined #ruby
jdelaney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_stu_ has quit [Quit: _stu_]
symm- has quit [Ping timeout: 240 seconds]
shock_one has quit [Ping timeout: 256 seconds]
<Ox0dea> >> 'This sentence contains 9 vowels.'.count('aeiou') # wolffles
<ruboto_> Ox0dea # => 9 (https://eval.in/484537)
<jhass> mh, should we give a solution while theirs doesn't work?
<Ox0dea> >> 'foobar'.scan(/[aeiou]/).size
<ruboto_> Ox0dea # => 3 (https://eval.in/484538)
devoldmx has quit [Remote host closed the connection]
lyoshajapan has joined #ruby
<Ox0dea> jhass: I felt they were well off the right path; better to save them going over, I reckon.
<jhass> well, I usually do that by "look at String#count" and stuff
<jhass> not giving the solution right away
<jhass> me thinks you learn less by that
<wolffles> Ox0dea: thanks that was much easier than mine.
cwong_on_irc has quit [Quit: Leaving.]
<Ox0dea> wolffles: And correct to boot. :P
<Ox0dea> Ruby loves you.
jdelaney has joined #ruby
<Ox0dea> Easy things are easy, hard things are easy.
ElFerna_ has quit [Ping timeout: 240 seconds]
<bithon> The words of wisom! :D
<wolffles> question how come in my book the code looks like (/[aeiou]/) instead you just used (‘aeiou’)… what is hte difference
bklane_ has quit [Remote host closed the connection]
bklane has joined #ruby
<Ox0dea> wolffles: String#scan expects a regular expression to search for, whereas String#count simply expects a string of one or more characters to tally the occurrences thereof.
bklane has quit [Client Quit]
kalopsian has joined #ruby
prereflect has joined #ruby
baweaver has joined #ruby
<al2o3-cr> jesus loves you more then you will know
rgrmatt has quit [Remote host closed the connection]
<al2o3-cr> hey
<wolffles> hmm is there a resource i can use to see what method expects what? i feel like thats something i would want ot memorize.
<havenwood> ?ot
<ruboto_> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<havenwood> al2o3-cr: ^
<Ox0dea> havenwood: ?
<Ox0dea> Oh.
<havenwood> Ox0dea: :)
<havenwood> wolffles: The docs do say what the various method params can be.
<Ox0dea> In his defense, al2o3-cr does normally contain himself to #ot.
<Ox0dea> &ri String#count
<`derpy> method `String#count`: Each +other_str+ parameter defines a set of characters to count. The intersectio… • http://rubydoc.info/stdlib/core/String#count-instance_method
<Ox0dea> wolffles: That should work at your shell too, sans the '&'.
<havenwood> wolffles: One nice way to look at docs is to do it inside the Pry REPL (an alternative to IRB): gem install pry pry-doc && pry -e "show-doc String#count"
kalopsian has quit [Ping timeout: 240 seconds]
<al2o3-cr> havenwood: just ?
<havenwood> wolffles: Or in irb you can enter `help` then: String#count
baweaver has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby
j4cknewt has quit [Remote host closed the connection]
DroidBur_ has quit []
tvon has quit []
ruid has quit [Ping timeout: 256 seconds]
<wolffles> woah i did the irb method and it was confusing
<havenwood> wolffles: Yeah, you enter a help mode. :O
lyoshajapan has quit [Remote host closed the connection]
<al2o3-cr> wolffles: carefully read it, it helps some :)
<TTilus> wolffles: pry is lovely in countless ways, you want to get familiar with it
ElFerna_ has joined #ruby
<havenwood> ?pry
<ruboto_> Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
<havenwood> wolffles: In Pry try `help` for a list of Pry-specific commands.
<havenwood> wolffles: `ls`, `show-doc` and `show-source` are handy sometimes
malconis has joined #ruby
<havenwood> Or `gem-install` for that matter. Nice to install and load a gem without leaving the REPL.
jessemcgilallen has quit [Quit: jessemcgilallen]
mitt3ns has joined #ruby
tenderlove has joined #ruby
<wolffles> i dont have permission lol
kalopsian has joined #ruby
ixti has joined #ruby
atomical_ has joined #ruby
Rickmasta has joined #ruby
ixti has quit [Client Quit]
ixti has joined #ruby
ElFerna_ has quit [Quit: WeeChat 1.3]
atomical has quit [Ping timeout: 240 seconds]
malconis has quit [Client Quit]
ur5us has quit [Remote host closed the connection]
jdelaney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agent_white has quit [Ping timeout: 250 seconds]
jdelaney has joined #ruby
<darix> wolffles: gem install --user-install
<wolffles> i tried sudo it worked
jdelaney has quit [Client Quit]
ixti has quit [Client Quit]
ixti has joined #ruby
<al2o3-cr> Who's digging dig?
framling has joined #ruby
* Ox0dea digs #dig.
<Ox0dea> It's essentially an "operator" too.
krz has joined #ruby
avahey has joined #ruby
<al2o3-cr> Nice :)
<al2o3-cr> I like
Feyn has joined #ruby
kalopsian has quit [Ping timeout: 240 seconds]
<Ox0dea> By which I meant to indicate that custom objects can participate if you define #dig.
sucks has quit [Ping timeout: 256 seconds]
<jhass> boring
<Ox0dea> Probably.
<Ox0dea> Good for deep traversal of complex YAML, I guess.
goodcodeguy has joined #ruby
sucks has joined #ruby
lyoshajapan has joined #ruby
<al2o3-cr> or JSON
roshanavand has joined #ruby
devoldmx has joined #ruby
<jhass> I probably should move my configuration's library's API to it
<jhass> gosh, I can't write anymore
kalopsian has joined #ruby
duckpuppy has joined #ruby
baweaver has joined #ruby
<Ox0dea> al2o3-cr: Do you actually use JSON with custom "types"?
<al2o3-cr> Ox0dea: Nope
Arnvald has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
dfinninger has joined #ruby
<Ox0dea> I must then maintain that JSON has little to do with being able to define Foo#dig and have it Do The Right Thing.
<al2o3-cr> Ox0dea: Ok.
kalopsian has quit [Ping timeout: 240 seconds]
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
akem has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 240 seconds]
Cantaberry has quit [Ping timeout: 260 seconds]
mitt3ns has quit [Client Quit]
rgrmatt has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
lyoshajapan has joined #ruby
kalopsian has joined #ruby
Yzguy has joined #ruby
jgt2 has quit [Ping timeout: 272 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> >> require 'yaml'; 1.times.reduce('', &:to_yaml)
<ruboto_> Ox0dea # => undefined method `write' for 0:Fixnum (NoMethodError) ...check link for more (https://eval.in/484542)
<Ox0dea> What even?
weemsledeux has joined #ruby
<Ox0dea> >> require 'json'; 4.times.reduce('', &:to_json)
<ruboto_> Ox0dea # => "\"\\\"\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\"\\\"\"" (https://eval.in/484543)
<Ox0dea> Why is #to_yaml trying to do IO there?
kalopsian has quit [Ping timeout: 250 seconds]
rgrmatt has quit [Remote host closed the connection]
ornerymoose has joined #ruby
yfeldblum has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
<jhass> >> :to_yaml.to_proc.parameters
<ruboto_> jhass # => [[:rest]] (https://eval.in/484544)
<jhass> >> require "yaml"; Psych.method(:dump).parameters
<ruboto_> jhass # => [[:req, :o], [:opt, :io], [:opt, :options]] (https://eval.in/484545)
dlitvak_ has joined #ruby
<Ox0dea> >> require 'yaml'; ''.to_yaml.to_yaml.to_yaml # jhass
<ruboto_> Ox0dea # => "--- |\n --- |\n --- ''\n" (https://eval.in/484546)
<Ox0dea> Doing it with #reduce shouldn't change that behavior?
<jhass> reduce yields more than one argument
Cantaberry has joined #ruby
<jhass> >> 4.times.inject([], &:<<)
<ruboto_> jhass # => [0, 1, 2, 3] (https://eval.in/484547)
dlitvak has quit [Ping timeout: 256 seconds]
dlitvak_ has quit [Remote host closed the connection]
shock_one has joined #ruby
<Ox0dea> Gotcha.
arooni has quit [Ping timeout: 250 seconds]
<Ox0dea> `foo.to_yaml(bar)` tries to write to `bar`, which is a little weird, but I see the potential for convenience.
<jhass> Crystal does that all the time since that kind of API can avoid unneeded intermediate strings
<jhass> so even the to_s interface is primarily to_s(IO) in crystal
dlitvak has joined #ruby
djbkd has quit [Remote host closed the connection]
<Ox0dea> How does it avoid intermediate strings?
charliesome has quit [Read error: Connection reset by peer]
<Ox0dea> Do you mean "under the hood"?
djbkd has joined #ruby
<jhass> kinda
<jhass> def to_s; "#{@a}#{@b}"; end; vs def to_s(io); @a.to_s(io); @b.to_s(io); end;
<jhass> or more conveniently def to_s(io); io << @a; io << @b; end; since IO#<< just calls .to_s(self)
torpig has quit [Quit: WeeChat 1.1.1]
<Ox0dea> I don't see how swapping the order should have any bearing?
shock_one has quit [Ping timeout: 272 seconds]
lyoshajapan has joined #ruby
<jhass> well, it's more pleasant to the eye to me at least
<jhass> io << @a << @b works too actually since it retains the return self contract from Ruby
<Ox0dea> `foo.write(bar)` and `bar.write(foo)` being equivalent squicks for some reason.
c355e3b has quit [Quit: Connection closed for inactivity]
<jhass> it's not true?
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> anyway
<Ox0dea> Close enough as pertains #to_yaml.
casadei has joined #ruby
Zamerick_ has quit [Ping timeout: 240 seconds]
<Ox0dea> I concede that `obj.to_yaml io` is nicer than `io.write obj.to_yaml`.
tenderlove has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 256 seconds]
<jhass> anyway, that kind of API avoids writing an entire object hierarchy without any string allocation when done stringently
<jhass> *allows
solocshaw has quit [Ping timeout: 240 seconds]
doodleha_ has joined #ruby
djbkd has quit [Ping timeout: 272 seconds]
p0wn3d has joined #ruby
charliesome has joined #ruby
arescorpio has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
Jardayn has quit [Read error: Connection reset by peer]
<al2o3-cr> jhass: When can I play hangman?
freerobby has quit [Quit: Leaving.]
jbrhbr has quit [Quit: Leaving.]
<jhass> 4 more hours
<al2o3-cr> Ok.
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jbrhbr has joined #ruby
bronson has joined #ruby
prereflect has quit [Quit: Textual IRC Client: www.textualapp.com]
jbrhbr has quit [Client Quit]
dlitvak_ has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
kalopsian has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ElFerna has joined #ruby
armyriad has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
Bloomer has joined #ruby
ElFerna has quit [Client Quit]
charliesome has joined #ruby
Arctaire has joined #ruby
dlitvak_ has quit [Ping timeout: 256 seconds]
ur5us has joined #ruby
devbug has joined #ruby
<al2o3-cr> What is string theory?
ur5us has quit [Remote host closed the connection]
kalopsian has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
<mozzarella> ask in ##physics
<al2o3-cr> Apperently javascript can accomplish this
edwinvdg_ has quit [Ping timeout: 272 seconds]
devbug_ has quit [Ping timeout: 240 seconds]
<Ox0dea> al2o3-cr: How come you're never this civil in #ot?
doodleha_ has quit [Remote host closed the connection]
<al2o3-cr> Ox0dea: What do you mean by civil?
goodcodeguy has joined #ruby
<Ox0dea> al2o3-cr: Just not saying things like "chips and fried ricetwice with a vinyl roof, some gravy", I guess.
pawnbox has joined #ruby
dlitvak has joined #ruby
<al2o3-cr> Ox0dea: Well, off-topic I suppose?
<Ox0dea> I'm not sure that sufficiently clarifies the matter.
rgrmatt has joined #ruby
<Ox0dea> It's like you flip some sort of switch between here and there.
rgrmatt has quit [Remote host closed the connection]
<al2o3-cr> Ox0dea: Thought you could express anyting in ot?
<al2o3-cr> *anything
<al2o3-cr> apperently not
slackbotgz has joined #ruby
iamdevnul__ has quit []
iamdevnul has joined #ruby
ibouvousaime has quit [Ping timeout: 256 seconds]
SCHAAP137 has quit [Remote host closed the connection]
<al2o3-cr> Sometimes I just want to be lazy like Ruby
pawnbox has quit [Ping timeout: 272 seconds]
duckpuppy has joined #ruby
<al2o3-cr> But anyhoo
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
prereflect has joined #ruby
prereflect has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackgoat has joined #ruby
charliesome has joined #ruby
kalopsian has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
<pontiki> somehow, i never thought the point of ot was "be as annoying as possible"
iateadonut has joined #ruby
<pontiki> but that's probably ot
AnoHito_ has joined #ruby
dmonster has quit [Ping timeout: 260 seconds]
ElFerna has joined #ruby
<al2o3-cr> pontiki: You'll probably want take that to #ruby-offtopic
RegulationD has joined #ruby
lyoshajapan has quit []
<al2o3-cr> *to
<al2o3-cr> meh
FooMunki has quit [Quit: FooMunki]
AnoHito has quit [Ping timeout: 256 seconds]
dorei has quit []
<pontiki> too late, mate
weemsledeux has joined #ruby
<al2o3-cr> I thought mice never sleep?
casadei has quit [Remote host closed the connection]
<al2o3-cr> Or is that a myth?
<pontiki> rust never sleeps
<al2o3-cr> Neither does al2o3-cr
roshanavand has joined #ruby
lyoshajapan has joined #ruby
stannard has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
<blub> the word forth isnt on that page o_o
<Ox0dea> Should be.
<al2o3-cr> blub: Welcome
<Ox0dea> I actually solved the first ten-or-so Project Euler problems with Mouse, but those programs are lost to time. :/
kalopsian has quit [Ping timeout: 240 seconds]
GlueC has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tenderlove has joined #ruby
lyoshaja_ has joined #ruby
kalopsian has joined #ruby
Rodya_ has quit [Remote host closed the connection]
lyoshajapan has quit [Ping timeout: 272 seconds]
tenderlove has quit [Ping timeout: 256 seconds]
johnpank has quit [Ping timeout: 250 seconds]
lyoshaja_ has quit []
qiukun has joined #ruby
djbkd has joined #ruby
kalopsian has quit [Ping timeout: 250 seconds]
AnoHito_ has quit [Ping timeout: 240 seconds]
kalopsian has joined #ruby
BTRE has quit [Ping timeout: 250 seconds]
speaking1ode has quit [Ping timeout: 272 seconds]
AnoHito has joined #ruby
Exce1l has joined #ruby
dlitvak has joined #ruby
Exce1l has left #ruby [#ruby]
jdm has joined #ruby
dlitvak_ has joined #ruby
qiukun has quit [Quit: qiukun]
kalopsian has quit [Ping timeout: 272 seconds]
qiukun has joined #ruby
jessemcgilallen has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
<al2o3-cr> >> "Merry Christmas".center(80, [[10052].pack('U*')]*20*' ')
<ruboto_> al2o3-cr # => "❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ Merry Christmas❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄" (https://eval.in/484569)
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AnoHito has quit [Read error: Connection reset by peer]
slackbotgz has quit [Remote host closed the connection]
pawnbox has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
dockoneal has joined #ruby
<dockoneal> exit
<dockoneal> lol
<al2o3-cr> :P
dockoneal has quit [Client Quit]
BTRE has joined #ruby
qiukun has quit [Quit: qiukun]
htmldrum has joined #ruby
qiukun has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
kalopsian has joined #ruby
ElFerna has quit [Ping timeout: 272 seconds]
CloCkWeRX has left #ruby [#ruby]
skcin7 has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.3]
jzpmendoza has joined #ruby
kalopsian has quit [Ping timeout: 240 seconds]
iateadonut has quit [Quit: Leaving.]
dimik has quit [Ping timeout: 272 seconds]
dlitvak has joined #ruby
wldcordeiro has quit [Quit: WeeChat 1.3]
jzpmendoza has quit [Client Quit]
pawnbox has joined #ruby
qiukun has quit [Quit: qiukun]
AnoHito has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
al2o3-cr has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
hostess has quit [Remote host closed the connection]
beast has quit [Quit: Leaving]
dlitvak_ has quit [Ping timeout: 250 seconds]
sdothum has joined #ruby
kalopsian has joined #ruby
sdothum has quit [Client Quit]
sdothum has joined #ruby
Rodya_ has joined #ruby
braincrash has quit [Quit: bye bye]
qiukun has joined #ruby
sorbo_ has joined #ruby
Ox0dea has quit [Read error: Connection reset by peer]
juddey has quit [Remote host closed the connection]
avahey has quit [Quit: Connection closed for inactivity]
krz has quit [Ping timeout: 256 seconds]
exadeci has joined #ruby
dlitvak has quit [Remote host closed the connection]
ornerymoose has quit [Quit: ornerymoose]
kalopsian has quit [Ping timeout: 240 seconds]
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
kalopsian has joined #ruby
duckpuppy has joined #ruby
jdm_ has joined #ruby
braincrash has joined #ruby
stannard has quit [Remote host closed the connection]
Yzguy has quit [Quit: Zzz...]
BTRE has quit [Ping timeout: 256 seconds]
krz has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
jdm has quit [Ping timeout: 256 seconds]
hostess has joined #ruby
agent_white has joined #ruby
auzty has joined #ruby
<agent_white> Evenin' folks
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
dlitvak has joined #ruby
sdothum has joined #ruby
mclong has joined #ruby
tenderlove has joined #ruby
<Wsewolod> Evening, agent_white.
Ami0 has joined #ruby
stevenxl has quit [Quit: leaving]
<pontiki> good evening, agent white. what is your report?
Exce1l has joined #ruby
N1GG3RZSUCKD1CK has joined #ruby
N1GG3RZSUCKD1CK was banned on #ruby by ChanServ [*N1GG3R*!*@*]
N1GG3RZSUCKD1CK was kicked from #ruby by ChanServ [Banned: Unacceptable nick - http://ruby-community.com/pages/user_rules#rule_2_10]
dlitvak has quit [Ping timeout: 256 seconds]
Exce1l has left #ruby [#ruby]
gix has quit [Ping timeout: 272 seconds]
Exce1l has joined #ruby
Exce1l has left #ruby [#ruby]
<agent_white> pontiki: \o ! Today I kept the peace on this planet! This planet is very peaceful!
blowmage has quit [Quit: Coyote finally caught me]
Suntzu has joined #ruby
Guest26785 is now known as saneax_AFK
tenderlove has quit [Ping timeout: 240 seconds]
tildes has joined #ruby
davedev2_ has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
AnoHito has quit [Read error: Connection reset by peer]
Ami0 has quit [Quit: Bye]
gix has joined #ruby
ornerymoose has joined #ruby
qiukun has quit [Remote host closed the connection]
Exce1l has joined #ruby
qiukun has joined #ruby
Exce1l has left #ruby [#ruby]
BTRE has joined #ruby
AnoHito has joined #ruby
<havenwood> >> require 'prime'; [Prime.each_cons(2).take(12).map { |x, y| y ** 3 - x ** 3 }.last * 7].pack 'U'
<ruboto_> havenwood # => "
fp- has joined #ruby
fp- has quit [Remote host closed the connection]
fp- has joined #ruby
roshanavand has joined #ruby
arescorpio has quit [Quit: Leaving.]
sorbo_ has quit []
qiukun has quit [Remote host closed the connection]
AnoHito has quit [Read error: Connection reset by peer]
<pontiki> excellent, agent white.
<pontiki> you have the same assignment tomorrow.
qiukun has joined #ruby
AnoHito has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
mclong has quit [Quit: Leaving]
renderf__ has quit [Read error: Connection reset by peer]
psy_ has quit [Remote host closed the connection]
davedev24 has joined #ruby
renderf__ has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
tejasmanohar has quit [Ping timeout: 250 seconds]
sfr^^ has quit [Ping timeout: 250 seconds]
borkdude_ has quit [Ping timeout: 250 seconds]
BackEndCoder has quit [Ping timeout: 250 seconds]
Miron has quit [Ping timeout: 250 seconds]
drbrain has quit [Ping timeout: 250 seconds]
fp- has quit [Quit: Lingo: www.lingoirc.com]
Y_Ichiro_ has quit [Quit: No Ping reply in 180 seconds.]
podman has joined #ruby
Klumben has quit [Ping timeout: 250 seconds]
djbkd has quit [Remote host closed the connection]
crankhar1er is now known as crankharder
Y_Ichiro has joined #ruby
Y_Ichiro has quit [Changing host]
Y_Ichiro has joined #ruby
hahuang61 has quit [Read error: Connection reset by peer]
tejasmanohar has joined #ruby
eggoez has quit [Ping timeout: 250 seconds]
framling has quit [Remote host closed the connection]
hahuang61 has joined #ruby
BLuEGoD has quit [Ping timeout: 250 seconds]
pwnd_nsfw has quit [Ping timeout: 250 seconds]
jokke has quit [Ping timeout: 250 seconds]
threh has quit [Ping timeout: 250 seconds]
drbrain has joined #ruby
sfr^ has joined #ruby
G has quit [Ping timeout: 250 seconds]
FastJack has quit [Ping timeout: 250 seconds]
Miron has joined #ruby
BackEndCoder has joined #ruby
yeticry_ has joined #ruby
borkdude has joined #ruby
G has joined #ruby
threh has joined #ruby
krz has quit [Ping timeout: 240 seconds]
pwnd_nsfw has joined #ruby
krz has joined #ruby
eggoez has joined #ruby
yeticry has quit [Ping timeout: 256 seconds]
jordanm has quit [Ping timeout: 250 seconds]
FastJack has joined #ruby
Rickmasta has joined #ruby
weemsledeux has joined #ruby
BLuEGoD has joined #ruby
<agent_white> pontiki: Fight the bad guys wherever they may be?
Klumben has joined #ruby
CloCkWeRX has joined #ruby
weemsledeux has quit [Client Quit]
yqt has quit [Ping timeout: 256 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<pontiki> affirm and ensure the peace, agent_white
ElFerna has joined #ruby
<agent_white> pontiki: Roger!
hagabaka has joined #ruby
qiukun has quit [Ping timeout: 240 seconds]
<hagabaka> I think we need more people doing adventofcode in Ruby :p http://hagabaka.github.io/advent-of-code/
ElFerna has quit [Ping timeout: 240 seconds]
A5101 has quit [Ping timeout: 240 seconds]
tildes has quit [Ping timeout: 250 seconds]
braincra- has joined #ruby
tildes has joined #ruby
<bbert> can someone explain the syntax for inequality found here: http://sequel.jeremyevans.net/rdoc/files/doc/cheat_sheet_rdoc.html#label-Inequality assuming I have a table named "value" (accessed by the method :value), as well as a variable passed into the current scope named "value"
<pontiki> why do you think so, hagabaka ?
ibouvousaime has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
braincrash has quit [Ping timeout: 240 seconds]
<bbert> ^sorry, not a table named "value", but a column named "value"
berserk_ren has joined #ruby
jokke has joined #ruby
jayzer has joined #ruby
A124 has joined #ruby
xcesariox has joined #ruby
qiukun has joined #ruby
spt0 has quit [Quit: Leaving]
Arnvald has quit [Remote host closed the connection]
quazimodo has joined #ruby
<quazimodo> hey all
norc has quit [Ping timeout: 252 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has quit [Remote host closed the connection]
jdm__ has joined #ruby
duckpuppy has joined #ruby
jdm_ has quit [Ping timeout: 256 seconds]
duckpuppy has quit [Ping timeout: 240 seconds]
DroidBurgundy has joined #ruby
DroidBurgundy has quit [Remote host closed the connection]
jdelaney has joined #ruby
lictor36 has joined #ruby
saneax_AFK is now known as saneax
davedev24 has quit []
saneax is now known as Guest88888
ornerymoose has quit [Quit: ornerymoose]
wolffles has quit [Quit: wolffles]
bigmac has joined #ruby
krobzaur has quit [Ping timeout: 240 seconds]
jessemcgilallen has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
<hagabaka> pontiki: out of the github users on the leaderboard, 9 have python repos for "advent", and only 3 have ruby ones
dionysus69 has quit [Ping timeout: 240 seconds]
<pontiki> um, so what?
techsethi has joined #ruby
gvaughn has quit [Remote host closed the connection]
aspire has joined #ruby
jdelaney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tildes has quit [Ping timeout: 256 seconds]
<hagabaka> see the chart on the page I linked
<pontiki> again, so what?
lxsameer has joined #ruby
<pontiki> is this some sort of contest?
<hagabaka> oh I missed the "so" in "so what"
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox_ has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
pawnbox_ has quit [Ping timeout: 240 seconds]
berserk_ren has quit [Ping timeout: 256 seconds]
astrobun_ has joined #ruby
Arnvald has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobun_ has quit [Read error: Connection reset by peer]
astrobun_ has joined #ruby
pawnbox has joined #ruby
bronson has joined #ruby
Sou|cutter has quit [Quit: WeeChat 0.4.2]
pawnbox_ has joined #ruby
blackgoat has quit [Quit: out]
pawnbox has quit [Ping timeout: 272 seconds]
bronson has quit [Ping timeout: 256 seconds]
tenzan has joined #ruby
tenzan has quit [Client Quit]
reoring has joined #ruby
tenzan has joined #ruby
ur5us has quit [Remote host closed the connection]
lkba has joined #ruby
pawnbox has joined #ruby
passerine has joined #ruby
pawnbox_ has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby
jayzer has quit [Quit: WeeChat 1.3]
qiukun has quit [Quit: qiukun]
CloCkWeRX has quit [Remote host closed the connection]
pawnbox_ has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
CloCkWeRX has quit [Client Quit]
lurch_ has joined #ruby
jdm_ has joined #ruby
jdelaney has joined #ruby
duckpuppy has joined #ruby
tenderlove has quit [Ping timeout: 250 seconds]
TheWhip has joined #ruby
qiukun has joined #ruby
krz has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
qiukun has left #ruby [#ruby]
yardenbar has joined #ruby
pawnbox_ has quit [Read error: Connection reset by peer]
exadeci has quit [Quit: Connection closed for inactivity]
ur5us has joined #ruby
jdm__ has quit [Ping timeout: 256 seconds]
duckpuppy has quit [Ping timeout: 272 seconds]
sucks has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 256 seconds]
wldcordeiro has joined #ruby
CloCkWeRX has joined #ruby
pawnbox has joined #ruby
djbkd has joined #ruby
Guest47420 is now known as ZeeNoodley
ZeeNoodley has quit [Changing host]
ZeeNoodley has joined #ruby
krz has joined #ruby
howdoico1 has quit [Ping timeout: 240 seconds]
yardenbar has quit [Ping timeout: 272 seconds]
A5101 has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ibouvousaime has quit [Ping timeout: 240 seconds]
threh has quit [Ping timeout: 240 seconds]
aspire has quit [Quit: Leaving]
howdoico1 has joined #ruby
tagrudev has joined #ruby
SOLDIERz has joined #ruby
darkf has joined #ruby
ElFerna has joined #ruby
bbert has quit [Ping timeout: 272 seconds]
reoring has quit [Remote host closed the connection]
SOLDIERz has quit [Ping timeout: 250 seconds]
bbert has joined #ruby
bbert has quit [Changing host]
bbert has joined #ruby
dexteryy has joined #ruby
dexteryy has quit [Client Quit]
kalopsian has quit [Ping timeout: 240 seconds]
claw has quit [Ping timeout: 256 seconds]
ElFerna has quit [Ping timeout: 240 seconds]
podman has quit [Quit: Connection closed for inactivity]
trautwein has joined #ruby
htmldrum has quit [Ping timeout: 240 seconds]
shock_one has joined #ruby
xcesariox has joined #ruby
boxofrox has quit [Ping timeout: 250 seconds]
Ishido has joined #ruby
Rodya_ has quit [Quit: Leaving...]
TheWhip has quit [Remote host closed the connection]
techsethi has quit [Quit: techsethi]
Wsewolod has quit [Ping timeout: 240 seconds]
TheWhip has joined #ruby
passerine has left #ruby [#ruby]
TheWhip has quit [Ping timeout: 272 seconds]
dlitvak has joined #ruby
flughafen has quit [Quit: WeeChat 1.3]
raddazong has quit [Changing host]
raddazong has joined #ruby
raddazong is now known as madhatter
cschneid has joined #ruby
jdm has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
bbert has quit [Ping timeout: 240 seconds]
tokik has quit [Ping timeout: 240 seconds]
duckpuppy has joined #ruby
ibouvousaime has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tokik has joined #ruby
solars has joined #ruby
pawnbox has quit [Remote host closed the connection]
jdm_ has quit [Ping timeout: 256 seconds]
christiandsg has joined #ruby
gagrio has joined #ruby
christiandsg has quit [Client Quit]
pawnbox has joined #ruby
RegulationD has joined #ruby
duckpuppy has quit [Ping timeout: 256 seconds]
Arnvald_ has joined #ruby
Arnvald has quit [Read error: Connection reset by peer]
colegatron has joined #ruby
codecop has joined #ruby
techsethi has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
scripore has quit [Quit: This computer has gone to sleep]
varunwachaspati has joined #ruby
colegatron has quit [Ping timeout: 250 seconds]
minimalism has quit [Quit: leaving]
hagabaka has quit [Quit: Communi 3.5.0 - http://communi.github.com]
Pupeno has joined #ruby
yardenbar has joined #ruby
hagabaka has joined #ruby
ledestin has joined #ruby
firstdayonthejob has joined #ruby
CrazyEddy has joined #ruby
Macaveli has joined #ruby
djbkd has quit [Remote host closed the connection]
anisha has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
A5101 has quit [Ping timeout: 256 seconds]
TheWhip has joined #ruby
kmckelvin has quit [Ping timeout: 240 seconds]
skade has joined #ruby
colegatron has joined #ruby
aganov has joined #ruby
Cantaberry has quit [Ping timeout: 260 seconds]
ap4y has quit [Quit: WeeChat 1.3]
vondruch_ has quit [Ping timeout: 272 seconds]
flughafen has joined #ruby
oz has quit [Remote host closed the connection]
<flughafen> shevy: certainty oioioi ;)
Pumukel has joined #ruby
DeXterbed has joined #ruby
hagabaka has quit [Ping timeout: 256 seconds]
ponga has quit []
ponga has joined #ruby
claw has joined #ruby
phatypus has joined #ruby
techsethi has quit [Quit: techsethi]
User458764 has joined #ruby
jgt2 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
tenderlove has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
techsethi has joined #ruby
danneu has quit [Quit: WeeChat 0.4.1]
SegFaultAX has quit [Quit: ZNC - http://znc.in]
tenderlove has quit [Ping timeout: 240 seconds]
kenichi has quit [Quit: ZNC - http://znc.in]
dimik has joined #ruby
e7d has quit [Read error: Connection reset by peer]
astrobu__ has joined #ruby
oz has joined #ruby
astrobun_ has quit [Ping timeout: 256 seconds]
bMalum has joined #ruby
ELLIOTTCABLE has quit [Quit: Lost terminal]
jas02 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zast has quit [Remote host closed the connection]
bMalum has quit [Ping timeout: 256 seconds]
bMalum_ has joined #ruby
matp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol has quit [Ping timeout: 256 seconds]
jdm_ has joined #ruby
jbrhbr has joined #ruby
sucks has joined #ruby
phatypus has quit [Ping timeout: 250 seconds]
duckpuppy has joined #ruby
bMalum_ has quit [Ping timeout: 250 seconds]
jdm has quit [Ping timeout: 256 seconds]
shock_one has quit [Remote host closed the connection]
kmckelvin has joined #ruby
TomyWork has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
krzkrz has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
krz has quit [Read error: Connection reset by peer]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
blackms has joined #ruby
ec\ has joined #ruby
shock_one has joined #ruby
aufi has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
Hounddog has joined #ruby
ElFerna has joined #ruby
lurch_ has quit [Quit: lurch_]
moeabdol has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mark3 has joined #ruby
lurch_ has joined #ruby
wmdrossard has joined #ruby
shock_on_ has joined #ruby
firstdayonthejob has quit [Ping timeout: 272 seconds]
ElFerna has quit [Ping timeout: 250 seconds]
ur5us has quit [Remote host closed the connection]
shock_one has quit [Ping timeout: 256 seconds]
sucks has quit [Remote host closed the connection]
CrazyEddy has joined #ruby
moei has quit [Quit: Leaving...]
skade has joined #ruby
symm- has joined #ruby
nettoweb has joined #ruby
roshanavand has joined #ruby
jgt2 has quit [Ping timeout: 256 seconds]
Lucky__ has joined #ruby
elaptics`away is now known as elaptics
roshanavand has quit [Ping timeout: 256 seconds]
techsethi has quit [Quit: techsethi]
blaxter has joined #ruby
voodo has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
vondruch has joined #ruby
nhhagen has joined #ruby
tokik has quit [Quit: leaving]
ohaibbq has quit [Remote host closed the connection]
User458764 has joined #ruby
tenderlove has joined #ruby
Couch has quit [Ping timeout: 250 seconds]
colli5ion has joined #ruby
tokik has joined #ruby
spider-mario has quit [Remote host closed the connection]
matp has joined #ruby
stan has joined #ruby
reoring has joined #ruby
kp666 has quit [Ping timeout: 250 seconds]
kp666 has joined #ruby
moei has joined #ruby
jdelaney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkxploit has quit [Ping timeout: 272 seconds]
TheWhip has quit [Remote host closed the connection]
bigkevmcd has joined #ruby
tenderlove has quit [Ping timeout: 272 seconds]
reoring_ has joined #ruby
c0m0 has joined #ruby
agent_wh1te has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
jgt2 has joined #ruby
agent_wh1te is now known as agent_white
devoldmx has quit [Remote host closed the connection]
devbug has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
reoring_ has quit [Client Quit]
reoring has quit [Ping timeout: 272 seconds]
TheWhip has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
terlar has joined #ruby
charliesome has joined #ruby
joonty has joined #ruby
tvw has joined #ruby
darkxploit has joined #ruby
p0wn3d has quit [Ping timeout: 240 seconds]
tenzan has quit [Quit: Textual IRC Client: www.textualapp.com]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quazimodo has quit [Ping timeout: 256 seconds]
Snowy has joined #ruby
Couch has joined #ruby
Grey_H has joined #ruby
TheWhip has quit [Remote host closed the connection]
jdm__ has joined #ruby
lurch_ has quit [Quit: lurch_]
astrobu__ has quit [Remote host closed the connection]
jsrn_ is now known as jsrn
lurch_ has joined #ruby
p0wn3d has joined #ruby
chthon has joined #ruby
duckpuppy has joined #ruby
pawnbox has quit [Remote host closed the connection]
jdm_ has quit [Ping timeout: 256 seconds]
pawnbox has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
moei has quit [Quit: Leaving...]
DeXterbed has quit [Ping timeout: 250 seconds]
p0wn3d has quit [Ping timeout: 240 seconds]
jbrhbr has quit [Quit: Leaving.]
tesuji has joined #ruby
lipoqil has joined #ruby
huyderman has joined #ruby
zeljkof has left #ruby [#ruby]
duckpuppy has quit [Ping timeout: 256 seconds]
moei has joined #ruby
skade has joined #ruby
marienz has quit [Quit: maintenance]
voodo has quit [Quit: Leaving...]
n008f4g_ has joined #ruby
rdark has joined #ruby
symm- has quit [Ping timeout: 272 seconds]
kam270 has joined #ruby
colli5ion has quit [Ping timeout: 255 seconds]
krzkrz has quit [Quit: WeeChat 1.2]
dimik has quit [Ping timeout: 256 seconds]
tomphp has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
tulak has joined #ruby
roshanavand has joined #ruby
dmolina has joined #ruby
TheWhip has joined #ruby
colli5ion has joined #ruby
TheWhip has quit [Remote host closed the connection]
kalopsian has joined #ruby
last_staff has joined #ruby
auzty has quit [Quit: Leaving]
SOLDIERz has joined #ruby
kalopsian has quit [Ping timeout: 250 seconds]
rodfersou has joined #ruby
jokke has quit [Quit: WeeChat 1.3]
tenderlove has joined #ruby
yfeldblum has joined #ruby
jokke has joined #ruby
jokke has quit [Client Quit]
jokke has joined #ruby
nateberkope has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
jokke has quit [Client Quit]
roshanavand has quit [Remote host closed the connection]
tenderlove has quit [Ping timeout: 256 seconds]
_ke has joined #ruby
<_ke> my gem executable path is set to ~/bin. is there any way to set it to ~/.gem/bin with my .gemrc?
TheWhip has joined #ruby
jokke has joined #ruby
TheWhip has quit [Read error: Connection reset by peer]
TheWhip has joined #ruby
Downtime is now known as Uptime
DeXterbed has joined #ruby
roshanavand has joined #ruby
colli5ion has quit [Ping timeout: 255 seconds]
techsethi has joined #ruby
colli5ion has joined #ruby
whiteline has quit [Ping timeout: 256 seconds]
roshanavand has quit [Remote host closed the connection]
TheWhip has quit [Ping timeout: 250 seconds]
houhouli_ has joined #ruby
steffkes has joined #ruby
steffkes has quit [Changing host]
steffkes has joined #ruby
devoldmx has joined #ruby
houhoulis has quit [Ping timeout: 256 seconds]
xcesariox has joined #ruby
Zamerick_ has joined #ruby
xcesariox has quit [Max SendQ exceeded]
Xentil has joined #ruby
SCHAAP137 has joined #ruby
platzhirsch has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
mcanevet has quit [Ping timeout: 250 seconds]
colli5io_ has joined #ruby
sdilizio has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
jokke has quit [Quit: WeeChat 1.3]
mcanevet has joined #ruby
colli5ion has quit [Ping timeout: 255 seconds]
quazimodo has joined #ruby
Grey_H has quit [Ping timeout: 240 seconds]
jokke has joined #ruby
sdilizio has left #ruby [#ruby]
jokke has quit [Client Quit]
voodo has joined #ruby
sdilizio has joined #ruby
jokke has joined #ruby
ruby-lang450 has joined #ruby
sdilizio has quit [Quit: Leaving]
houhouli_ has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
ur5us has joined #ruby
jdm_ has joined #ruby
ElFerna has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
last_staff has quit [Read error: Connection reset by peer]
jokke has quit [Client Quit]
last_staff has joined #ruby
_ke has quit [Quit: umount /mnt/me]
duncannz has quit [Remote host closed the connection]
varunwachaspati has quit [Quit: Connection closed for inactivity]
jokke has joined #ruby
duckpuppy has joined #ruby
nfk|laptop has joined #ruby
jdm__ has quit [Ping timeout: 256 seconds]
Stalkr_ has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
ElFerna has quit [Ping timeout: 256 seconds]
ruby-lang450 has quit [Ping timeout: 252 seconds]
<c0m0> _ke: are you talking about shell path?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duckpuppy has quit [Ping timeout: 240 seconds]
papercode has quit [Quit: WeeChat 0.4.3]
<agent_white> Sounds like it.
voodo is now known as voodo|away
TheWhip has joined #ruby
<agent_white> Ah he's gone. Oh well.
JohnBat26 has joined #ruby
ur5us has joined #ruby
<agent_white> Speaking of... why do all the ruby version managers (rbenv/chruby/rvm...) setup the path in bashrc or bash_profile instead of profile?
<agent_white> Just odd, especially with rvm being picky about 'login shells' and not utilizing profile.
Snowy has quit [Remote host closed the connection]
lurch_ has quit [Quit: lurch_]
zenguy_pc has quit [Remote host closed the connection]
lurch_ has joined #ruby
hoylemd has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 272 seconds]
zenguy_pc has joined #ruby
CloCkWeRX has joined #ruby
Snowy has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
colli5io_ has quit []
Zamerick_ has quit [Ping timeout: 240 seconds]
antgel has joined #ruby
jokke has quit [Quit: WeeChat 1.3]
charliesome has joined #ruby
tulak has quit [Remote host closed the connection]
tulak has joined #ruby
JohnBat26 has joined #ruby
zenguy_pc has quit [Quit: see ya!]
A124 has quit [Ping timeout: 272 seconds]
howdoico1 has quit [Ping timeout: 256 seconds]
jxs_ has joined #ruby
Peg-leg has joined #ruby
ruid has quit [Ping timeout: 240 seconds]
tenderlove has joined #ruby
pushpak has joined #ruby
jokke has joined #ruby
pushpak has quit [Client Quit]
zenguy_pc has joined #ruby
bronson has joined #ruby
Arnvald_ has quit [Remote host closed the connection]
tenderlove has quit [Ping timeout: 240 seconds]
jokke has quit [Client Quit]
claw has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
voodo|away is now known as voodo
TheWhip has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 256 seconds]
jokke has joined #ruby
ElFerna has joined #ruby
Xentil has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
claw has joined #ruby
DotMH has joined #ruby
nfk|laptop has quit [Quit: yawn]
DotMH has quit [Remote host closed the connection]
howdoi has joined #ruby
colli5ion has joined #ruby
colli5ion has quit [Read error: Connection reset by peer]
colli5ion has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
colli5io_ has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
colli5ion has quit [Ping timeout: 255 seconds]
tulak_ has joined #ruby
c355e3b has joined #ruby
Suntzu has quit [Read error: Connection reset by peer]
<shevy> flughafen fly baby flyyyy
colli5io_ has quit [Read error: Connection reset by peer]
FooMunki has joined #ruby
gioele has joined #ruby
DefV_ is now known as DefV
dlitvak has joined #ruby
<gioele> hi, how can I execute a lambda (or a proc) using the current binding instead of the original closure?
tulak has quit [Ping timeout: 240 seconds]
TheWhip has joined #ruby
devoldmx has joined #ruby
antgel has quit [Ping timeout: 250 seconds]
<flughafen> shevy: "learning to fly is throwing yourself at the ground and trying to miss"
n008f4g_ has quit [Ping timeout: 272 seconds]
antgel has joined #ruby
colli5ion has joined #ruby
rcs_ has quit [Quit: ZNC - http://znc.in]
Lildirt has quit [Ping timeout: 250 seconds]
<adaedra> gioele: take a look at instance_exec/instance_eval
colli5ion has quit [Max SendQ exceeded]
monthy has joined #ruby
Lildirt has joined #ruby
colli5ion has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
Jet4Fire has joined #ruby
<Jet4Fire> Hello!
spt0 has joined #ruby
charliesome has joined #ruby
jcromartie has joined #ruby
zenguy_pc has quit [Ping timeout: 250 seconds]
polysics has joined #ruby
dlitvak_ has joined #ruby
polysics has quit [Client Quit]
rikkipitt has joined #ruby
GarethAdams has joined #ruby
zenguy_pc has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
CloCkWeRX has quit [Ping timeout: 250 seconds]
blackgoat has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
jokke has quit [Quit: WeeChat 1.3]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
jokke has joined #ruby
jdm__ has joined #ruby
Bloomer has quit [Remote host closed the connection]
<gioele> adaedra: but it looks like instance_exec/eval do not allow a proc to use a variable that was not bound at the time of the its creation
prestorium has joined #ruby
<gioele> B = lambda { p extra } ; self.instance_exec { extra = 10; B.call } NameError: undefined local variable or method `extra' for main:Object
ElFerna has quit [Ping timeout: 240 seconds]
jdm_ has quit [Ping timeout: 256 seconds]
duckpuppy has joined #ruby
Rickmasta has joined #ruby
Vitor has joined #ruby
nfk|laptop has joined #ruby
yashinbasement has joined #ruby
ElFerna has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
shock_on_ has quit [Remote host closed the connection]
<apeiros> gioele: that applies to all blocks.
Rickmasta has quit [Ping timeout: 250 seconds]
<apeiros> if you "create" a variable within a block, it's not usable outside of it.
<apeiros> >> extra = 1; B = lambda { p extra } ; self.instance_exec { extra = 10; B.call }
<ruboto_> apeiros # => 10 ...check link for more (https://eval.in/484712)
Oog has joined #ruby
<Oog> i am ready to pull my hair - htf do i do a regex that does not match a string.......
<apeiros> gioele: ^ if you create it outside the block, the block closes over it, and another block can close over the same.
<Oog> people = data.scan(/event\)">([^\|<]*?) \| LinkedIn<\/a>.*?<div class="f slp">([^<]*?) - ([^<]*apex[^<]*)<\/div><span class="st">/im)
<agent_white> apeiros: Can you pass bindings into a proc, just not out?
<apeiros> Oog: don't. use. regex. for html.
<Oog> the problem is the .*? is eating a span - i want to tell it do not eat span
<apeiros> Oog: use nokogiri, oga or another html/xml parser.
<Oog> this almost works but this one damn problem
ledestin has joined #ruby
<Oog> its too hungry why does it do it
<apeiros> agent_white: it's not really passing bindings.
* apeiros afk, lunch
<agent_white> apeiros: Ah okey doke!
<agent_white> Oog: "Parsing HTML with regex summons tainted souls into the realm of the living." -- Please don't summon demons upon this planet.
<adaedra> We already have Donald Trump, it's enough.
<agent_white> adaedra: Amen.
<shevy> we can parse the world with regexes!
shock_one has joined #ruby
marr has joined #ruby
<gregf_> >> extra = 10; B = lambda { |val| p extra * val } ; self.instance_exec { B.call(10) } # thats probably a clojure?
<ruboto_> gregf_ # => 100 ...check link for more (https://eval.in/484715)
ledestin has quit [Client Quit]
ElFerna has quit [Ping timeout: 250 seconds]
colli5ion has quit [Read error: Connection reset by peer]
DeXterbed has quit [Ping timeout: 250 seconds]
solocshaw has joined #ruby
<Oog> fuck it i figured it out - do the regex and then do a filte rin the for loop afterwards
CloCkWeRX has joined #ruby
<Oog> so fucking annoying i hate regex
Oog has quit [Remote host closed the connection]
arup_r has joined #ruby
<adaedra> They didn't listen, did they?
<gregf_> well looks like they've found the ugliest way to hurt themselves :|
govg has quit [Ping timeout: 256 seconds]
dlitvak has joined #ruby
kmckelvin has quit [Read error: Connection reset by peer]
kmckelvin has joined #ruby
chipotle has joined #ruby
rdark has quit [Quit: WeeChat 1.0.1]
rdark has joined #ruby
dlitvak_ has quit [Ping timeout: 272 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
redondos has quit [Ping timeout: 272 seconds]
Stalkr_ has quit [Quit: Leaving...]
redondos has joined #ruby
<shevy> regexes kinda hurt
drptbl has joined #ruby
jacyzon has joined #ruby
Vitor has quit [Ping timeout: 240 seconds]
gaiada has joined #ruby
drptbl has quit [Max SendQ exceeded]
cassioscabral has joined #ruby
Bellthoven has joined #ruby
toretore has joined #ruby
drptbl has joined #ruby
jcromartie has quit [Quit: Textual IRC Client: www.textualapp.com]
Cantaberry has joined #ruby
solocshaw has joined #ruby
quazimodo has quit [Ping timeout: 256 seconds]
cassioscabral_ has joined #ruby
drptbl has quit [Max SendQ exceeded]
drptbl has joined #ruby
solocshaw1 has joined #ruby
cassioscabral has quit [Ping timeout: 250 seconds]
cassioscabral_ is now known as cassioscabral
f4cl3y has quit [Ping timeout: 272 seconds]
moeabdol has joined #ruby
GarethAdams has quit [Quit: Linkinus - http://linkinus.com]
azgil has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
solocshaw1 is now known as solocshaw
FooMunki has quit [Quit: FooMunki]
drptbl has quit [Max SendQ exceeded]
f4cl3y has joined #ruby
drptbl has joined #ruby
Mon_Ouie has joined #ruby
moeabdol has quit [Ping timeout: 272 seconds]
drptbl has quit [Max SendQ exceeded]
drptbl has joined #ruby
jxs_ has quit [Remote host closed the connection]
vondruch has quit [Ping timeout: 240 seconds]
FooMunki has joined #ruby
cornerma1 has joined #ruby
drptbl has quit [Max SendQ exceeded]
drptbl has joined #ruby
pawnbox has quit [Remote host closed the connection]
Mia has quit [Ping timeout: 256 seconds]
vondruch has joined #ruby
drptbl has quit [Client Quit]
jgt2 has quit [Ping timeout: 250 seconds]
cornerman has quit [Ping timeout: 272 seconds]
cornerma1 is now known as cornerman
Bellthoven has quit []
lipoqil has quit [Quit: Connection closed for inactivity]
ElFerna has joined #ruby
Pupeno has quit [Read error: Connection reset by peer]
symm- has joined #ruby
vondruch has quit [Client Quit]
skade has joined #ruby
ibouvousaime has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
ibouvousaime has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
pawnbox has joined #ruby
chipotle has quit [Quit: cheerio]
jdm_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
kirun has joined #ruby
SylarRuby has joined #ruby
jdm__ has quit [Ping timeout: 256 seconds]
wmdrossard has quit [Ping timeout: 272 seconds]
duckpuppy has joined #ruby
tulak_ has quit [Remote host closed the connection]
Ishido has quit [Remote host closed the connection]
lurch_ has quit [Quit: lurch_]
kp666 has quit [Ping timeout: 240 seconds]
nfk|laptop has quit [Ping timeout: 256 seconds]
Cyther has joined #ruby
Ishido has joined #ruby
duckpuppy has quit [Ping timeout: 256 seconds]
marienz has joined #ruby
nfk|laptop has joined #ruby
sdothum has joined #ruby
pulgolino has joined #ruby
loren has joined #ruby
nettoweb has joined #ruby
TheWhip has quit [Remote host closed the connection]
Cyther has quit [Client Quit]
TheWhip has joined #ruby
tenderlove has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
tk__ has joined #ruby
ornerymoose has joined #ruby
ornerymoose has quit [Client Quit]
voodo has quit [Quit: Leaving...]
dlitvak has joined #ruby
lurch_ has joined #ruby
casadei has joined #ruby
drbrain has quit [Ping timeout: 250 seconds]
jgt2 has joined #ruby
techsethi has quit [Quit: techsethi]
Snowy has quit [Remote host closed the connection]
tenderlove has quit [Ping timeout: 272 seconds]
TheWhip has quit [Ping timeout: 240 seconds]
dede__ has joined #ruby
senayar has quit [Remote host closed the connection]
chipotle has joined #ruby
senayar has joined #ruby
niko has quit [Quit: leaving]
dede__ is now known as dede
niko has joined #ruby
drbrain has joined #ruby
kp666 has joined #ruby
iyan has joined #ruby
kalopsian has joined #ruby
krz has joined #ruby
tvw has quit [Read error: Connection reset by peer]
drbrain has quit [Ping timeout: 240 seconds]
wmdrossard has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
Cyther has joined #ruby
Cantaberry has quit []
chipotle has quit [Quit: cheerio]
bronson has joined #ruby
icey has joined #ruby
<PaulePanter> Hi.
chipotle has joined #ruby
<PaulePanter> So to maintain an array with pairwise uniq elements and not using sets, doing it manually is better than using push and uniq!?!
<PaulePanter> a = (1..10).to_a; a << b if a.include?(b)
<PaulePanter> a = (1..10).to_a; a.push(b).uniq!
<PaulePanter> Is my benchmark carried out incorrectly or do I jus need to accept that?
shock_one has quit [Remote host closed the connection]
<PaulePanter> I would have at least expected for the case, that b is not in a, that the second solution is faster.
iyan is now known as petanikode
<adaedra> add and remove is more expensive than just not adding.
CloCkWeRX has left #ruby [#ruby]
<yorickpeterse> On small arrays the overhead of #include? is next to none
<yorickpeterse> so using that will save you re-allocations of memory
Snowy has joined #ruby
tenderlove has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
rikkipitt has quit [Quit: Leaving...]
<PaulePanter> I’ll try with bigger arrays.
gagrio has quit [Ping timeout: 250 seconds]
vondruch has joined #ruby
DeXterbed has joined #ruby
ornerymoose has joined #ruby
devoldmx has joined #ruby
<PaulePanter> Probably using the already sorted (1..n).to_a does favor the `include` solution too.
<PaulePanter> Bigger arrays of this pattern just makes `push(…).uniq!` even slower.
blackjid has quit [Max SendQ exceeded]
<adaedra> That's normal
blackjid has joined #ruby
cassioscabral has quit [Ping timeout: 272 seconds]
<PaulePanter> adaedra: As written, I understand that for the case where b is already in a.
<PaulePanter> But not for the case, where b is not yet in a.
kobain has joined #ruby
lxsameer has quit [Quit: Leaving]
devoldmx has quit [Ping timeout: 240 seconds]
<adaedra> because #uniq is making way more reads than #include?
synthroid has joined #ruby
<PaulePanter> Ah, that makes sense.
<PaulePanter> Sorry for being dense.
<adaedra> np.
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
bweston92- has quit [Quit: Leaving]
blackgoat has quit [Quit: night night]
ornerymoose_ has joined #ruby
ornerymoose has quit [Ping timeout: 240 seconds]
ornerymoose_ is now known as ornerymoose
TheWhip has joined #ruby
jdm__ has joined #ruby
TheWhip has quit [Remote host closed the connection]
steffkes has quit [Ping timeout: 240 seconds]
TheWhip has joined #ruby
grepwood has joined #ruby
<grepwood> hello everyone
<grepwood> I've got this nasty piece in my code, system "mysql -e 'SET PASSWORD = PASSWORD('#{mysql_root_password}');'"
skade has joined #ruby
<grepwood> no matter how many time I escape the characters, it just doesn't want to parse correctly, mysql client complains that the command is malformed
duckpuppy has joined #ruby
<grepwood> can someone please tell me how to do that nasty piece correctly?
<adaedra> Just use a mysql adapter?
<grepwood> it has to use system, mysql gem has way too many dependencies
<adaedra> &ri Kernel#system
<`derpy> method `Kernel#system`: Executes _command..._ in a subshell. _command..._ is one of following forms. com… • http://rubydoc.info/stdlib/core/Kernel#system-instance_method
jdm_ has quit [Ping timeout: 256 seconds]
<adaedra> Use the variant where you separate arguments
<adaedra> system "mysql" "-e" "SET PASSWORD = ..."
<adaedra> er.
last_staff has quit [Quit: last_staff]
<adaedra> system "mysql", "-e", "SET PASSWORD = ..."
gagrio has joined #ruby
Rickmasta has joined #ruby
steffkes has joined #ruby
steffkes has quit [Changing host]
steffkes has joined #ruby
drbrain has joined #ruby
tlaxkit has joined #ruby
cassioscabral has joined #ruby
govg has joined #ruby
<grepwood> big thanks adaedra !
pulgolino has quit [Quit: WeeChat 0.4.2]
pulgolino has joined #ruby
chipotle has quit [Quit: cheerio]
sgambino has joined #ruby
pulgolino has quit [Client Quit]
pulgolino has joined #ruby
ibouvousaime has quit [Ping timeout: 240 seconds]
yashinbasement has quit [Ping timeout: 256 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Rickmasta has quit [Ping timeout: 250 seconds]
colegatron has quit [Ping timeout: 240 seconds]
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
nmyster has joined #ruby
ibouvousaime has joined #ruby
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shanemcd has joined #ruby
Mia has quit [Ping timeout: 250 seconds]
Feyn has quit [Ping timeout: 240 seconds]
shanemcd has quit [Remote host closed the connection]
shanemcd has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
decoponio has joined #ruby
bMalum_ has joined #ruby
scepticulous has joined #ruby
<GinoManWorks> Wait, so > thing = "stuff"; defines a variable but > Thing = "stuff"; defines a constant?
thejamespinto has quit [Remote host closed the connection]
bbert has joined #ruby
bbert has quit [Changing host]
bbert has joined #ruby
dfinninger has joined #ruby
<GinoManWorks> like the case of the first letter is the cv qualifier?
nateberkope has quit [Quit: Leaving...]
loren has quit [Read error: Connection reset by peer]
<shevy> GinoManWorks yeah
<shevy> in principle you can also change a "constant" in ruby
Bloomer has joined #ruby
shock_one has joined #ruby
<shevy> >> Thing = 'bla'; Thing = 'Ble'; puts Thing
<ruboto_> shevy # => /tmp/execpad-183cd4a8b750/source-183cd4a8b750:2: warning: already initialized constant Thing ...check link for more (https://eval.in/484768)
<shevy> don't mind the warning ruboto_ showed, it works as https://eval.in/484768 says
moeabdol has joined #ruby
<shevy> apeiros loves the name constant there :)
colegatron has joined #ruby
lurch_ has quit [Quit: lurch_]
<GinoManWorks> shevy: So you can change constants in ruby, they'll just give you a warning instead of an error like other languages?
<GinoManWorks> or is that only within the same line?
polysics has joined #ruby
lurch_ has joined #ruby
darkf has quit [Read error: Connection reset by peer]
rodfersou is now known as rodfersou|afk
darkf has joined #ruby
<adaedra> Nah, you can, with a warning, redefine a constant. But you shouldn't.
<shevy> GinoManWorks yeah you can change them, even in a method if you use the Object.const_set() method
<GinoManWorks> gotcha.
<shevy> respectively the namespace you wish to have this constant reside at
<grepwood> how do I convert MatchData into a string?
Vitor_ has joined #ruby
<ljarvis> grepwood: into what string?
<grepwood> just a string
thejamespinto has joined #ruby
<GinoManWorks> I want to say >> MatchData.to_string; but.... I suspect that wasn't what he was looking for.
<ljarvis> what would a String version of a MatchData object look like?
<shevy> :D
<grepwood> the same I think
<grepwood> Ruby is weird
<ljarvis> >> "foo".match(/(.)$/)
<ruboto_> ljarvis # => #<MatchData "o" 1:"o"> (https://eval.in/484780)
<shevy> lol
<ljarvis> >> "foo".match(/(.)$/).to_s
<ruboto_> ljarvis # => "o" (https://eval.in/484781)
<ljarvis> that?
dfinninger has quit [Remote host closed the connection]
moeabdol has quit [Ping timeout: 272 seconds]
TomPeed has joined #ruby
<ljarvis> Ruby isn't weird (not here, anyway), your requirements are weird
<shevy> grepwood rule of thumb is the .to_s method
<grepwood> ljarvis, yeah I think so
netwoodle has joined #ruby
<ljarvis> grepwood: ok, that just returns the entire matched string
<ljarvis> i,e $&
<grepwood> give me a sec, everything is crumbling down in the tests
<ljarvis> >> "1xyz23".match(/[^\d]+/); $&
<ruboto_> ljarvis # => "xyz" (https://eval.in/484782)
thejamespinto has quit [Ping timeout: 256 seconds]
polysics has quit []
<grepwood> alright, I think it got everything right
<grepwood> thank you shevy, ljarvis GinoManWorks
duckpuppy has quit [Ping timeout: 250 seconds]
<GinoManWorks> You're welcome
noodle has quit [Ping timeout: 260 seconds]
netwoodle is now known as noodle
goodcodeguy has joined #ruby
<grepwood> now the reason why I said ruby is weird
tvw has joined #ruby
<grepwood> is cause I'd expect such a match to return a string rather than make a special_snowflake_t for itself
<grepwood> like it's done with grep in bash
<adaedra> because it has to return multiple strings?
duckpuppy has joined #ruby
emilkarl has joined #ruby
trwyth has joined #ruby
<grepwood> that's not a multiple string
<adaedra> >> "grepwood".match(/./).matches
<grepwood> it's a huge string with many \n chars
<ruboto_> adaedra # => undefined method `matches' for #<MatchData "g"> (NoMethodError) ...check link for more (https://eval.in/484790)
<adaedra> >> "grepwood".match(/./).to_a
<ruboto_> adaedra # => ["g"] (https://eval.in/484791)
<grepwood> string is a byte array that ends with 0x00
<adaedra> mh.
<adaedra> >> "grepwood".match(/(.)/).to_a
<ruboto_> adaedra # => ["g", "g"] (https://eval.in/484793)
ramortegui has joined #ruby
<adaedra> >> "adaedra".match(/(.)+/).to_a
<ruboto_> adaedra # => ["adaedra", "a"] (https://eval.in/484794)
<adaedra> ok, I don't remember the thing.
<GinoManWorks> grepwood: in that case it wouldn't be, but you might get no matches, one match, or many matches. The problem is that it would be type-unsafe to just assume you'd get one or the other because accessing them requires different syntax
<adaedra> Anyway, since there can be multiple matches, you have to be able to return them all.
jacyzon has quit [Quit: Connection closed for inactivity]
bbert has quit [Ping timeout: 240 seconds]
d0nn1e_ has quit [Quit: ZNC - http://znc.in]
dlitvak has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
d0nn1e has joined #ruby
<GinoManWorks> In the name of simplicity, Ruby handles typing for you to a large extent, but if you ALWAYS got an array, then you'd have to use array redirection even when you expected and only got one result.
<GinoManWorks> unless I'm wrong, I am still learning myself but I read a couple books several years ago.
<adaedra> You can have no match, you can have multiple matches, you can have named groups, ...
<GinoManWorks> and I remember typing and such that much and if that be the case it makes sense to me
<GinoManWorks> right
<adaedra> also
pandaant has joined #ruby
<GinoManWorks> ah yes, I forgot about "named groups", because then you have to be able to retrieve that matched text
<adaedra> <grepwood> string is a byte array that ends with 0x00 – that's true in C.
<GinoManWorks> and C++
<shevy> fossil languages!
<grepwood> :(
<GinoManWorks> although they prefer you to use the std::string class moreso
<adaedra> and some others like Obj-C, yes.
<shevy> swift to the future!!!
<grepwood> Ruby has a different definition of a string?
<shevy> it's an object
<adaedra> >> "a Ruby string can contain a \x00 character."
<ruboto_> adaedra # => "a Ruby string can contain a \u0000 character." (https://eval.in/484799)
trautwein has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> Modern implementation use a chars array + size couple.
mary5030 has joined #ruby
Pupp3tm4st3r has joined #ruby
<adaedra> Allows more flexibility.
<GinoManWorks> grepwood: also you can call methods directly against a ruby string literal
dlitvak_ has joined #ruby
<grepwood> adaedra, like Pascal
<adaedra> grepwood: what language are you coming from?
<GinoManWorks> >> "this string will respond to messages".capitalize
<ruboto_> GinoManWorks # => "This string will respond to messages" (https://eval.in/484803)
<grepwood> adaedra, C and bash
ledestin has joined #ruby
<adaedra> I see.
Macaveli has quit [Ping timeout: 256 seconds]
<grepwood> I started with Python though
dlitvak has quit [Ping timeout: 272 seconds]
tenderlove has quit [Remote host closed the connection]
<adaedra> Ah.
<grepwood> but my first ever project, prime number bruteforcer, was really slow in Python
<shevy> well doesn't python have a somewhat similar definition of a string?
<grepwood> rewrote it in C and that kinda sold it to me
<grepwood> it does yes
gagrio has quit [Ping timeout: 240 seconds]
<adaedra> grepwood: note that in Ruby you don't often care about the underlying implementation. A string is a string; how it is stored in memory doesn't really matter, except if you're doing things inside Ruby itself.
Wsewolod has joined #ruby
<GinoManWorks> Say, does ruby have a syntax checking commandline switch?
polysics has joined #ruby
<adaedra> ruby --help
<GinoManWorks> 0c
<GinoManWorks> -c * rather
<GinoManWorks> thanks
<adaedra> It's rather basic tho; if you want something tougher (checks style), you have rubocop.
<grepwood> adaedra, is it possible to do low-level stuff in Ruby? I have LZSS decompression algo implemented in C, C++ and Pascal at home, and I just now wondered if that's possible in Ruby too
artX000 has quit [Remote host closed the connection]
<adaedra> Depends how low, but should be possible, yes.
<grepwood> that doesn't even require 64bit math so it's pretty easy
trautwein has joined #ruby
duckpuppy has quit [Ping timeout: 272 seconds]
jordanm has joined #ruby
<adaedra> If what you're looking for is direct bytes access, you have ri:Array#pack and ri:String#unpack
<adaedra> (bytes or any other low-level type.)
nateberkopec has joined #ruby
artX000 has joined #ruby
<grepwood> something like this http://pastebin.com/raw.php?i=fjUAvTwC
<ruboto_> grepwood, as I told you already, please use https://gist.github.com
<grepwood> oops, sorry
kam270 has quit [Quit: Leaving]
<bithon> astebin is fine too
<bithon> pastebin
<bithon> How come nobody ever suggests pastebin
_stu_ has joined #ruby
<adaedra> bithon: that's exactly the thing the bot asks not to use.
<grepwood> people don't like ads
<adaedra> grepwood: seems doable. Not in direct translation; but seems doable.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra> ?pastebin
<ruboto_> Please don't use Pastebin! Pastebin sucks because it loads slowly, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org).
<adaedra> Some people here won't even open your thing if you post it in pastebin, mind.
<bithon> Now that's just silly
kalopsia1 has joined #ruby
<bithon> One word: adblock.
<adaedra> Doesn't solve the other problems.
<GinoManWorks> actually grepwood, if you already implemented it in C, why not retrofit it to be a ruby module you can call?
<grepwood> I'm guessing pastebin has a lot of scripts under the hood that don't do anything useful too
<bithon> Never really had any slowdowns
govg has quit [Ping timeout: 250 seconds]
<bithon> But whatever, gist is just as fine in my eyes
<grepwood> GinoManWorks, could do in my spare time
jpank has joined #ruby
<bithon> not about to start a religious war
<adaedra> Anyway, if you want to discuss channel policies, go #ruby-community.
<grepwood> but what would it be useful for?
bMalum_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<grepwood> LZSS is only ever used in... old games? Final Fantasy 7, Fallout 1, etc...
* bithon slowly steps away from the debate
<shevy> hmm
<shevy> channel policy states that pastebin is not allowed?
<bithon> Apparently
<GinoManWorks> grepwood: if you retrofitted it, you could use it in your ruby programs, the algorithm would have the same speed as the C version (because it is the C version, even though now-a-days that's not so much an issue) and it's DRY friendly
<shevy> can I read up on this
Zamerick_ has joined #ruby
<bithon> It almost feels like emacs vs vim debate imho lol
<shevy> anyway, pastebin is inferior to pastie or gis
B1n4r10 has joined #ruby
govg has joined #ruby
<shevy> emacs vs vim is bad because there are only two losers
<bithon> :O Oh no you ddn't
<c355e3b> In that debate we already know the winner bithon
<bithon> didn't*
<bithon> vim?
symbol has joined #ruby
<c355e3b> Emacs
<adaedra> ok, editor war goes in #ruby-offtopic now.
<shevy> bithon I remember how pastebin had annoying flash ads that played loud music once... I hated it since that day, that shocked me
<c355e3b> Fair enough
trwyth has quit [Read error: Connection reset by peer]
<c355e3b> Pastebin is super ad heavy
* GinoManWorks gives a thumbs up to the editor war going away (all hail vim)
<shevy> GinoManWorks hahaha
<bithon> GinoManWorks <3
<shevy> sublime forever!!!
jdm has joined #ruby
<bithon> no shevy, just no.
<c355e3b> I can see why people would not want to use it
<adaedra> er.
symbol has quit [Client Quit]
<GinoManWorks> I like notepad++ but when I'm on the command line on Linux and have to edit config files, vim all the way
<shevy> :D
<bithon> Well I use vim or gvim everywhere I go
<adaedra> ok, editor war goes in #ruby-offtopic now. 2nd call.
<bithon> as a matter of fact, I have a usb with Vim on it with my vimrc and all that jazz
<shevy> ok now I can understand vim actually... but gvim? really?
<bithon> adaedra aye aye!
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<GinoManWorks> anyways grepwood, I would recommend at least looking into that if for no other reason that repurposing the same code without having to rewrite it
<GinoManWorks> i.e. "DRY friendly"
mary5030 has joined #ruby
atomical has joined #ruby
vdamewood has joined #ruby
<grepwood> GinoManWorks, what's DRY?
<apeiros> shevy, bithon: no, channel policy doesn't forbid any paste service. the information is courtesy, mostly because as adaedra said, lots of high profile helpers won't even read a pastebin.com paste.
<GinoManWorks> Don't Repeat Yourself
jdm__ has quit [Ping timeout: 256 seconds]
<GinoManWorks> There's a book out there called "The Productive Programmer" where he talks about ways to be more efficient as a programmer and one of them was "DRY - Don't Repeat Yourself"
<bithon> Fair enough
<GinoManWorks> he being the author*
<bithon> I almost feel like productivity hacks are in itself a waste time
<bithon> a time waster*
<GinoManWorks> Another one is YAGNI - You Aint Gonna Need It
rgtk has joined #ruby
DeXterbed has quit [Ping timeout: 250 seconds]
shock_one has quit [Remote host closed the connection]
<GinoManWorks> bithon: They're not so much hacks as principles. They're broader than just "in this one situation, don't do this", it's like "in general observe this principle..."
Guest88888 is now known as saneax_AFK
<shevy> apeiros \o/ I don't use pastebin anyway, it's indeed awful
gagrio has joined #ruby
govg has quit [Ping timeout: 240 seconds]
mary5030 has quit [Ping timeout: 240 seconds]
<bithon> GinoManWorks: I know. That was my terrible attempt at humor that I decided belongs to the offtopic channel rather than here. I mean after all, I don't want to be banned from you all beautiful peeps :P;2u
symbol has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<GinoManWorks> The program I'm re-learning ruby to make I started making in C++ originally and I created a class that would contain all the parsed command line options as C++ types and I kept adding features to the program and then I realized that most of the features had NOTHING to do with the problem I was trying to solve so I commented them out and put an explanation that maybe I'll add these features later but for now they're commented out because YAGNI
<apeiros> adaedra: we need a clippy-bot :D
<adaedra> what would it do?
<apeiros> adaedra: "It looks like you try to start a flame war, would you like to continue in #ruby-offtopic?"
<adaedra> ahah
<GinoManWorks> apeiros: It could make it so that we could private message it code pastes and then send it like an "end" command and it would generate a gist.github.com url
symm- has quit [Read error: Connection reset by peer]
atomical has joined #ruby
<apeiros> GinoManWorks: I don't follow?
<GinoManWorks> that'd be cool
<GinoManWorks> clippy bot I assumed you meant for pastes
boxofrox has joined #ruby
<adaedra> apeiros: he wants ruboto_ to autopaste code we would pm ruboto_.
aryaching has joined #ruby
<apeiros> GinoManWorks: heh, no, for automatically recognizing certain behaviors
djcp has joined #ruby
<GinoManWorks> oh
<apeiros> ruboto_: y u goz tail?!?
thejamespinto has joined #ruby
<GinoManWorks> brb
GinoManWorks is now known as GinoManAFK
Jardayn has joined #ruby
<adaedra> apeiros: I told you yesterday about it!
babblebre has joined #ruby
<apeiros> u did?
bMalum_ has joined #ruby
symm- has joined #ruby
<bithon> Somebody should make a git repo of that. And in the meantime while it's being developed you could direct people's attention to that rather than the flame war
<bithon> It's a win-win sitaution
bithon has quit [Quit: WeeChat 0.4.2]
uri_ has joined #ruby
dstarh has joined #ruby
<apeiros> I keep forgetting how tf to change the nick in cinch
<apeiros> always assume .nick= would set the value, not trigger a message to the server…
<adaedra> I'm cheating: the bot is connected to ZNC, so I can connect directly and /nick myself. Way easier.
codecop has quit [Remote host closed the connection]
<apeiros> adaedra: ah, 2100 - at that time I finally allowed myself some leisure time with xenoblade
<apeiros> adaedra: oh. clever.
kiez0rd has quit [Ping timeout: 240 seconds]
<apeiros> capital idea. will steal.
bithon_web has joined #ruby
<`derpy> Also, makes a great puppet.
thejamespinto has quit [Ping timeout: 256 seconds]
symbol has quit [Quit: WeeChat 1.1]
inteq has quit [Remote host closed the connection]
grill has joined #ruby
bithon has joined #ruby
The_Phoenix has joined #ruby
jgt2 has quit [Ping timeout: 240 seconds]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bithon_web has quit [Client Quit]
atomical_ has joined #ruby
roshanavand has joined #ruby
rvchangue has quit [Ping timeout: 260 seconds]
diego2 has joined #ruby
mary5030 has joined #ruby
diego2 is now known as dviola
atomical has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 240 seconds]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
rvchangue has joined #ruby
Tempesta has quit [Quit: See ya!]
mostlybadfly has joined #ruby
malconis has joined #ruby
nhhagen has quit [Ping timeout: 240 seconds]
TheWhip has quit []
rodfersou|afk is now known as rodfersou
polishdub has joined #ruby
djcp has quit [Quit: WeeChat 1.0.1]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
B1n4r10 has quit [Ping timeout: 272 seconds]
scripore has joined #ruby
roshanavand has quit [Remote host closed the connection]
dlitvak_ has quit [Remote host closed the connection]
djcp has joined #ruby
dlitvak has joined #ruby
symm- has quit [Quit: Leaving...]
roshanavand has joined #ruby
mary5030 has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
aspire has joined #ruby
dh64 has quit [Quit: Konversation terminated!]
tenderlove has joined #ruby
dorei has joined #ruby
mhib has joined #ruby
bithon has quit [Quit: WeeChat 0.4.2]
blackms has quit [Ping timeout: 256 seconds]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
jgt2 has joined #ruby
ItSANg___ has quit [Quit: Leaving...]
bronson has joined #ruby
jgpawletko has joined #ruby
Stalkr_ has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
tk__ has quit [Quit: ばいばい]
tenderlove has quit [Ping timeout: 256 seconds]
krobzaur has joined #ruby
B1n4r10 has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
dfinninger has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rodfersou is now known as rodfersou|lunch
tagrudev has quit [Remote host closed the connection]
goodcodeguy has joined #ruby
bithon has joined #ruby
dfinninger has quit [Remote host closed the connection]
tulak has joined #ruby
slackr has joined #ruby
slackr is now known as ehth77
gregf has joined #ruby
stannard has joined #ruby
lurch_ has quit [Quit: lurch_]
whippythellama has joined #ruby
<grepwood> is there a way to capture output of system into a variable?
<al2o3-cr> grepwood: not with system
devoldmx has joined #ruby
duckpuppy has joined #ruby
lurch_ has joined #ruby
<grepwood> as noted before I'm avoiding the mysql gem, it needs to many deps to work
<adaedra> grepwood: there are the backticks, but you'll get back to your escaping problem.
blackms has joined #ruby
<grepwood> so I do this, system 'mysql -e \'SELECT "Hello World!";\' | base64', to get a base64 of mysql's response
<al2o3-cr> grepwood: ``, %x(), IO.popen
<adaedra> Also, I remember that the dependencies for mysql gem is just the mysql dev package.
ItSANgo_ has joined #ruby
<grepwood> it should be "SGVsbG8gV29ybGQhCkhlbGxvIFdvcmxkIQo=" if the database is working alright
<grepwood> adaedra, it fails to build in a horrible way on my vms
chipotle has joined #ruby
<grepwood> don't think boss would fancy my script having more than 300 lines already
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<adaedra> Fix that. It will be way less painful to do than to try to make everything go through mysql binary.
bweston92 has joined #ruby
nettoweb has joined #ruby
Wsewolod has quit [Ping timeout: 250 seconds]
ehth77 has quit [Quit: Leaving]
devoldmx has quit [Ping timeout: 256 seconds]
underplank has joined #ruby
kp666 has quit [Ping timeout: 272 seconds]
casadei has quit [Remote host closed the connection]
mary5030 has joined #ruby
kalopsian has quit [Quit: leaving]
anisha has quit [Quit: Leaving]
underplank has quit [Ping timeout: 240 seconds]
<jhass> grepwood: use the mysql2 gem
loren has joined #ruby
casadei has joined #ruby
Phage has left #ruby [#ruby]
jdm_ has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
mchu has joined #ruby
bbert has joined #ruby
bbert has quit [Changing host]
bbert has joined #ruby
ttilley has joined #ruby
ttilley has quit [Changing host]
ttilley has joined #ruby
azgil has quit [Quit: Leaving]
jdm has quit [Ping timeout: 246 seconds]
tulak has quit [Remote host closed the connection]
kiez0rd has joined #ruby
kp666 has joined #ruby
solocshaw has joined #ruby
tulak has joined #ruby
Suntzu has joined #ruby
Rickmasta has joined #ruby
cdg has joined #ruby
Stalkr_ has quit [Read error: Connection reset by peer]
ornerymoose has quit [Quit: ornerymoose]
kp666 has quit [Ping timeout: 272 seconds]
Rickmasta has quit [Ping timeout: 240 seconds]
ornerymoose has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
kaka__ has joined #ruby
moeabdol has joined #ruby
casadei has quit [Remote host closed the connection]
rippa has joined #ruby
atomical has joined #ruby
gaiada has quit [Ping timeout: 240 seconds]
kp666 has joined #ruby
failshell has joined #ruby
atomical_ has quit [Ping timeout: 240 seconds]
arup_r has quit [Remote host closed the connection]
mustmodify has joined #ruby
<mustmodify> Is there a way to ask gem where a certain gem lives?
<mustmodify> like, give me the directory where you stashed all that code?
moeabdol has quit [Ping timeout: 240 seconds]
<adaedra> gem which
solocshaw has quit [Ping timeout: 250 seconds]
ElFerna has quit [Ping timeout: 250 seconds]
<mustmodify> adaedra: Now that you've sent it, I'm kind of disappointed in myself I didn't just try that. :)
<apeiros> mustmodify: there's also always `gem help` ;-)
BSaboia has joined #ruby
freerobby has joined #ruby
bbert has quit [Ping timeout: 250 seconds]
<jhass> mustmodify: gem open is a thing too
Pumukel has quit [Ping timeout: 240 seconds]
solocshaw has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
n0xff has joined #ruby
grill has quit [Ping timeout: 240 seconds]
marr has joined #ruby
grill has joined #ruby
akem has joined #ruby
<grepwood> ...found it
<grepwood> i = Base64.encode64(IO.popen(["mysql", "-e", 'SELECT "Hello World!";']) { |ls_io| ls_result_with_error = ls_io.read })
<grepwood> couldn't understand a word of the mysql2 gem docs
<jhass> grepwood: I can honestly say that is the most horrible approach to something I've seen in a long time
<grepwood> thank you
aspire has quit [Read error: No route to host]
<DefV> Oh boy
<adaedra> Is this #ruby-masochism?
<DefV> I assumed #ruby-antipatterns
axl_ has joined #ruby
roshanavand has quit [Remote host closed the connection]
<adaedra> #ruby-dontdothat
dopie has quit [Quit: Leaving]
aspire has joined #ruby
arup_r has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
dfinninger has joined #ruby
jdm_ has quit [Ping timeout: 246 seconds]
<DefV> #ruby-wat-r-u-doin-stahp
shanemcd has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
mchu has quit [Ping timeout: 272 seconds]
emilkarl has quit [Quit: emilkarl]
tenderlove has joined #ruby
shanemcd has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
<apeiros> adaedra: see, again, clippy time
<adaedra> apeiros: we need one for HTML and Regex.
<apeiros> "it looks like you try to create an sql injection backdoor, do you wish some help?"
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
dlitvak has joined #ruby
mchu has joined #ruby
nmyster has quit [Quit: Connection closed for inactivity]
<adaedra> "it looks like you're trying to parse HTML with regex, do you wish me to ask you WHAT THE FUCK YOU ARE DOING?"
symm- has joined #ruby
<apeiros> "we offer regex consultancy services, and psychological counseling"
<apeiros> "trust us, you'll need both"
<adaedra> :D
tenderlove has quit [Ping timeout: 256 seconds]
spt0 has quit [Ping timeout: 240 seconds]
wmdrossard has quit [Ping timeout: 272 seconds]
roshanavand has joined #ruby
<grepwood> it's dirty as heck but it works
scripore has quit [Quit: This computer has gone to sleep]
spt0 has joined #ruby
speakingcode has joined #ruby
spt0 has quit [Max SendQ exceeded]
SenpaiSilver has joined #ruby
spt0 has joined #ruby
<ljarvis> 10:40 < jhass> grepwood: I can honestly say that is the most horrible approach to something I've seen in a long time
<ljarvis> 10:41 < grepwood> thank you
<ljarvis> :D
dfinninger has quit [Remote host closed the connection]
ibouvousaime has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
casadei has joined #ruby
aufi has quit [Remote host closed the connection]
Cyther has quit [Quit: Leaving]
rkazak has quit [Ping timeout: 256 seconds]
yqt has joined #ruby
<yorickpeterse> I'm currently grepping Ruby code to determine which methods use ActiveRecord, so that I can instrument them
* yorickpeterse shivers
<ljarvis> :/
agent_white has quit [Read error: Connection reset by peer]
mustmodify has left #ruby [#ruby]
huyderman has quit [Remote host closed the connection]
<yorickpeterse> check this out
kmckelvin has quit [Read error: Connection reset by peer]
<yorickpeterse> ᕕ(ᐛ)ᕗ
kmckelvi1 has joined #ruby
indy_bali has joined #ruby
ibouvousaime has joined #ruby
<adaedra> dat filename.
<indy_bali> good night all
jdm has joined #ruby
<indy_bali> greetings from bali, indonesia
<yorickpeterse> somehow this breaks Devise though
<adaedra> Hi, indy_bali.
<yorickpeterse> it starts moaning about my secret key being gone
<indy_bali> hi adaedra
agent_white has joined #ruby
dhollinger has joined #ruby
<indy_bali> how are you, adaedra?
jdm_ has joined #ruby
<adaedra> I'm doing ok. Do you have a question to ask us?
rodfersou|lunch is now known as rodfersou
RegulationD has joined #ruby
loren has left #ruby ["Leaving"]
<indy_bali> i don't think so for this time. i just join in
<adaedra> If you want to smalltalk, I invite you to join #ruby-offtopic too.
<indy_bali> ok, please
Pupp3tm4st3r has quit [Remote host closed the connection]
Xentil has joined #ruby
jdm has quit [Ping timeout: 250 seconds]
ixti has quit [Quit: WeeChat 1.3]
arup_r has quit [Remote host closed the connection]
sepp2k has joined #ruby
arup_r has joined #ruby
kalopsia1 has quit [Ping timeout: 250 seconds]
dopie has joined #ruby
SOLDIERz has quit [Ping timeout: 240 seconds]
tesuji has quit [Killed (asimov.freenode.net (Nickname regained by services))]
tesuji_ has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
codecop has joined #ruby
shock_one has joined #ruby
ibouvousaime has quit [Ping timeout: 240 seconds]
scepticulous has quit [Ping timeout: 256 seconds]
bb010g has joined #ruby
kmckelvi1 has quit [Ping timeout: 256 seconds]
Suntzu has quit [Remote host closed the connection]
wmdrossard has joined #ruby
ZiggyTheHamster has joined #ruby
ZiggyTheHamster has quit [Changing host]
ZiggyTheHamster has joined #ruby
Pupeno has quit [Quit: Leaving...]
Ziggy has quit [Ping timeout: 272 seconds]
failshell has quit [Remote host closed the connection]
hxegon has joined #ruby
Suntzu has joined #ruby
blackms has quit [Ping timeout: 256 seconds]
YankNYC has joined #ruby
indy_bali has quit []
marr has quit [Ping timeout: 250 seconds]
roshanavand has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
duckpuppy has joined #ruby
bMalum_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sou|cutter has joined #ruby
bMalum_ has joined #ruby
Jackneill has joined #ruby
dlitvak_ has joined #ruby
dh64 has joined #ruby
FooMunki has quit [Quit: FooMunki]
jdm_ has quit [Ping timeout: 250 seconds]
slawrence00 has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
mark3 has left #ruby ["PART #RubyOnRails :PART #jquery :PART #reactjs :PART ##javascript :PART #elixir-lang :PART #debian :PART #zsh :PART #nethunter :PONG :leguin.freenode.net"]
trautwein has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duckpuppy has quit [Ping timeout: 250 seconds]
kalopsian has joined #ruby
krobzaur has quit [Ping timeout: 256 seconds]
failshell has joined #ruby
whiteline has joined #ruby
atumzin has quit [Ping timeout: 256 seconds]
aganov has quit [Remote host closed the connection]
<TheBrayn> if you want smalltalk, join ##smalltalk
dfinninger has joined #ruby
<bithon> Hahah good one
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
<bithon> (hopefully that was a pun :D
<bithon> )
cwong_on_irc has joined #ruby
Peg-leg has quit [Quit: Leaving.]
[Butch] has joined #ruby
Vitor_ has quit [Ping timeout: 272 seconds]
AugustoC has joined #ruby
SylarRuby has quit [Remote host closed the connection]
Vitor_ has joined #ruby
dviola has quit [Ping timeout: 240 seconds]
zenlot has joined #ruby
dviola has joined #ruby
jawa_ has joined #ruby
blackms has joined #ruby
yardenbar has quit [Ping timeout: 250 seconds]
shanemcd has quit [Remote host closed the connection]
marens has joined #ruby
marens has quit [Changing host]
marens has joined #ruby
dviola has quit [Changing host]
dviola has joined #ruby
mchu has quit [Ping timeout: 272 seconds]
shock_one has quit [Remote host closed the connection]
synthroid has quit [Remote host closed the connection]
jawa_ has quit [Ping timeout: 250 seconds]
tenderlove has joined #ruby
failshell has quit []
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
hobodave has joined #ruby
mchu has joined #ruby
dlitvak_ has quit [Remote host closed the connection]
dlitvak has joined #ruby
<Papierkorb> >> require 'yaml'; YAML.dump("foo")
<ruboto> Papierkorb # => "--- foo\n...\n" (https://eval.in/484905)
<Papierkorb> >> require 'psych'; Psych.dump("foo")
<ruboto> Papierkorb # => "--- foo\n...\n" (https://eval.in/484906)
<Papierkorb> Huh, when I do that in pry it says "NoMethodError: undefined method `dump' for Psych:Module"
dfinninger has quit [Remote host closed the connection]
Encapsulation has joined #ruby
<Papierkorb> $ gem uninstall psych # fixed it
roshanavand has quit [Remote host closed the connection]
tenderlove has quit [Ping timeout: 272 seconds]
lurch_ has quit [Quit: lurch_]
roshanavand has joined #ruby
atumzin has joined #ruby
atumzin has quit [Changing host]
atumzin has joined #ruby
sucks has joined #ruby
shock_one has joined #ruby
tulak has quit [Remote host closed the connection]
p0wn3d has joined #ruby
zenlot has quit [Quit: WeeChat 1.1.1]
Vile` has quit [Ping timeout: 272 seconds]
vasilakisfil has joined #ruby
<Papierkorb> Is there a way to always put quotation marks on strings when generating YAML? So I get ' foo: "bar" ' instead of ' foo: bar '
<vasilakisfil> is there any alternative to timeout ?
Lucky___ has joined #ruby
ornerymoose has quit [Quit: ornerymoose]
steffkes has quit [Ping timeout: 250 seconds]
<toretore> vasilakisfil, the only real alternative is to use IO timeouts that are specific to each library
<toretore> i.e. Net::HTTP has a timeout that is set on IO operations directly
mcanevet has quit [Quit: Ex-Chat]
jdelaney has joined #ruby
<toretore> but Timeout is the only "generic" solution
ElFerna has joined #ruby
steffkes has joined #ruby
steffkes has quit [Changing host]
steffkes has joined #ruby
<jhass> Papierkorb: I haven't found any beyond using ya2yaml :/
grepwood has quit [Quit: Leaving]
jhooker has joined #ruby
<Papierkorb> jhass: meh. thanks.
roshanavand has quit []
rcs has joined #ruby
senayar has quit [Read error: Connection reset by peer]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
nateberkopec has quit [Quit: Leaving...]
jas02 has quit [Quit: jas02]
nfk|laptop has quit [Quit: yawn]
Vile` has joined #ruby
synthroid has joined #ruby
madcodes has joined #ruby
steffkes has quit [Ping timeout: 272 seconds]
synthroid has quit [Read error: Connection reset by peer]
amclain has joined #ruby
devoldmx has joined #ruby
synthroid has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moeabdol has joined #ruby
tomphp has quit [Ping timeout: 272 seconds]
Snowy has quit [Remote host closed the connection]
Vile` has quit [Ping timeout: 272 seconds]
dimik has joined #ruby
Hounddog has quit [Ping timeout: 250 seconds]
araujo has quit [Ping timeout: 250 seconds]
devoldmx has quit [Ping timeout: 240 seconds]
Bloomer has quit []
jbrhbr has joined #ruby
ta has joined #ruby
dionysus69 has joined #ruby
dravine_ has joined #ruby
claw has quit [Ping timeout: 272 seconds]
DrCode has quit [Remote host closed the connection]
dravine has quit [Ping timeout: 256 seconds]
dravine_ is now known as dravine
Couch has quit [Ping timeout: 240 seconds]
claw has joined #ruby
nertzy has joined #ruby
joonty has quit [Quit: joonty]
Vile` has joined #ruby
tomphp has joined #ruby
ElFerna has quit [Ping timeout: 256 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
gusTester has joined #ruby
Lildirt has quit [Ping timeout: 272 seconds]
Lildirt has joined #ruby
krz has quit [Quit: WeeChat 1.2]
FooMunki has joined #ruby
techsethi has joined #ruby
steffkes has joined #ruby
steffkes has quit [Changing host]
steffkes has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
techsethi has quit [Client Quit]
ornerymoose has joined #ruby
dfinninger has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
dlitvak has joined #ruby
dfinninger has quit [Remote host closed the connection]
shanemcd has joined #ruby
gaiada has joined #ruby
Rickmasta has joined #ruby
senayar has quit []
[Butch] has quit [Quit: I'm out . . .]
dlitvak has quit [Remote host closed the connection]
CrazyEddy has joined #ruby
kaka__ has quit [Ping timeout: 240 seconds]
gusTester has quit [Quit: Leaving.]
duckpuppy has joined #ruby
shanemcd has quit [Ping timeout: 250 seconds]
gusTester has joined #ruby
polishdub has quit [Quit: Leaving]
ledestin has joined #ruby
Rickmasta has quit [Ping timeout: 240 seconds]
<mchu> hello, a little help. can anyone explain what this code means?
<mchu> if login_with_credentials resource.username, params[:roster_session][:password]
<adaedra> which part?
<mchu> resource.username, params[:roster_session][:password]
moeabdol has quit [Ping timeout: 240 seconds]
<mchu> why is there a comma after resource.username? what does that mean
<adaedra> those are the parameters of login_with_credentials
<adaedra> if we put back optional parenthesis, it's `if login_with_credentials(resource.username, params[:roster_session][:password])`
<mchu> oh i see. ok thanks, let me try to work with that really quick
Sou|cutter has quit [Quit: WeeChat 0.4.2]
<adaedra> :q
<adaedra> oops
Sou|cutter has joined #ruby
steffkes has quit [Ping timeout: 272 seconds]
RobertBirnie has joined #ruby
duckpuppy has quit [Ping timeout: 250 seconds]
<shevy> a vimster!
<shevy> it tampers with ze brains
<mchu> adaedra: is it normal to have parameters for an If Statement? i thought parameters are usually for methods
nateberkopec has joined #ruby
<adaedra> you have a method, it's login_with_credentials
<adaedra> it's calling login_with_credentials with the two given parameters, and the if is done on the return of this method
mikecmpbll has quit [Ping timeout: 250 seconds]
sol has joined #ruby
<mchu> ohh right
psy_ has joined #ruby
sol is now known as Guest66804
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ruby
tenderlove has joined #ruby
solars has quit [Ping timeout: 256 seconds]
<mchu> thanks adaedra
<adaedra> yw
monthy has quit [Ping timeout: 256 seconds]
mikecmpbll has joined #ruby
blackms has quit [Quit: Leaving]
tenderlove has quit [Ping timeout: 240 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
polishdub has joined #ruby
kenichi has joined #ruby
akem has quit [Remote host closed the connection]
TheBloke- has joined #ruby
fantazo has joined #ruby
moeabdol has joined #ruby
pdoherty has quit [Ping timeout: 272 seconds]
tildes has joined #ruby
davedev24 has joined #ruby
TheBloke has quit [Ping timeout: 250 seconds]
ornerymoose has quit [Quit: ornerymoose]
nertzy has quit [Quit: This computer has gone to sleep]
ruby-lang437 has joined #ruby
lemur has joined #ruby
TheBloke- is now known as TheBloke
jgt2 has quit [Ping timeout: 256 seconds]
moeabdol has quit [Ping timeout: 256 seconds]
chthon has quit [Ping timeout: 255 seconds]
dmolina has quit [Quit: Leaving.]
momomomomo has joined #ruby
sucks has quit [Read error: Connection reset by peer]
jbrhbr has joined #ruby
spt0 has quit [Quit: Leaving]
Lildirt has quit [Ping timeout: 272 seconds]
spt0 has joined #ruby
ornerymoose has joined #ruby
Lildirt has joined #ruby
ruby-lang437 has quit [Ping timeout: 252 seconds]
berserk_ren has joined #ruby
lemur is now known as baweaver_
baweaver has quit [Disconnected by services]
baweaver_ is now known as baweaver
lemur has joined #ruby
Fire-Dragon-DoL has quit [Read error: Connection reset by peer]
gizmore has joined #ruby
dede has quit [Quit: Connection closed for inactivity]
yqt has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
ElFerna has joined #ruby
baweaver has quit [Remote host closed the connection]
zast has joined #ruby
howdoico1 has joined #ruby
Saklovich has joined #ruby
Saklovich was kicked from #ruby by ChanServ [Banned: trolling]
scripore has joined #ruby
MasterNayru has quit [Remote host closed the connection]
Synthead has quit [Quit: Synthead]
Synthead has joined #ruby
TomyLobo has joined #ruby
baweaver has joined #ruby
RegulationD has quit [Remote host closed the connection]
Lildirt has quit [Ping timeout: 250 seconds]
dviola has quit [Quit: WeeChat 1.3]
JDiPierro has joined #ruby
SylarRuby has joined #ruby
angrywombat has joined #ruby
InvGhost has joined #ruby
SylarRuby has quit [Client Quit]
SegFaultAX has joined #ruby
bMalum_ has quit [Ping timeout: 240 seconds]
angrywombat has left #ruby [#ruby]
nickjj has quit [Read error: Connection reset by peer]
Lildirt has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has quit [Remote host closed the connection]
tomphp has joined #ruby
emilkarl has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
ibouvousaime has joined #ruby
Cohedrin has joined #ruby
jpfuentes2 has joined #ruby
rehat has joined #ruby
Cohedrin has quit [Max SendQ exceeded]
banister has joined #ruby
djbkd has joined #ruby
snockerton has joined #ruby
<thomasfedb_> How're we looking for a Flynn that I can update?
<thomasfedb_> (without reinstalling)
pdoherty has joined #ruby
[Butch] has joined #ruby
_djbkd has joined #ruby
jgt2 has joined #ruby
<shevy> flynn?
kfpratt has joined #ruby
<snockerton> i need a way to do a #merge equivalent on an existing OpenStruct object - doesn't look like it's supported natively - any ideas?
djbkd has quit [Remote host closed the connection]
fantazo has quit [Ping timeout: 240 seconds]
arooni has joined #ruby
colleenmcguckin has joined #ruby
<apeiros> snockerton: #to_hash, merge, construct new openstruct from result
<snockerton> doh, just realized i could to_h it
<snockerton> thx
<apeiros> ah right, to_h, not to_hash (to_hash was my name for it when to_h didn't exist yet)
<snockerton> is there an actual difference?
Lildirt has quit [Ping timeout: 272 seconds]
<snockerton> i just figured it was a ruby lazy-ism
aibot_ has quit [Ping timeout: 250 seconds]
scripore has joined #ruby
Lildirt has joined #ruby
hakunin_ is now known as hakunin
duckpuppy has joined #ruby
tlaxkit has quit [Quit: ¡Hasta luego!]
rakm has joined #ruby
colleenmcguckin has quit [Read error: Connection reset by peer]
colleenmcguckin has joined #ruby
snguyen has joined #ruby
duckpuppy has quit [Ping timeout: 256 seconds]
momomomomo has quit [Quit: momomomomo]
Eiam has joined #ruby
pawnbox has quit [Remote host closed the connection]
dlitvak has joined #ruby
pawnbox has joined #ruby
bronson has joined #ruby
elaptics is now known as elaptics`away
frem has joined #ruby
kmckelvi1 has joined #ruby
weaksauce has quit [Ping timeout: 246 seconds]
arup_r has quit []
pawnbox has quit [Ping timeout: 240 seconds]
sepp2k has quit [Read error: Connection reset by peer]
howdoico1 has quit [Ping timeout: 250 seconds]
c0m0 has quit [Ping timeout: 250 seconds]
ur5us has joined #ruby
jessemcgilallen has joined #ruby
jbrhbr has quit [Quit: Leaving.]
azgil has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
s00pcan has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jgt2 has quit [Ping timeout: 240 seconds]
pika_pika has joined #ruby
platzhirsch has left #ruby [#ruby]
zdman135 has joined #ruby
howdoico1 has joined #ruby
weaksauce has joined #ruby
emilkarl has quit [Quit: emilkarl]
The_Phoenix has quit [Read error: Connection reset by peer]
B1n4r10 has quit [Quit: Lost terminal]
dionysus69 has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
aibot_ has joined #ruby
last_staff has joined #ruby
howdoico1 has quit [Ping timeout: 256 seconds]
papercode has joined #ruby
thomasfedb_ is now known as thomasfedb
thomasfedb has quit [Changing host]
thomasfedb has joined #ruby
B1n4r10 has joined #ruby
vasilakisfil has quit [Ping timeout: 240 seconds]
jbrhbr has joined #ruby
weaksauce has quit [Ping timeout: 250 seconds]
jdelaney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Omen-DiE- has joined #ruby
Synthead has quit [Remote host closed the connection]
jokke has quit [Quit: WeeChat 1.3]
kadoppe_ has quit [Ping timeout: 256 seconds]
akem has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
spt0 has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
kadoppe has joined #ruby
Omen-DiE- has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
thejamespinto has joined #ruby
Omen-DiE- has joined #ruby
xaxisx has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
shadoi has joined #ruby
firstdayonthejob has joined #ruby
baweaver has quit [Remote host closed the connection]
davejlong has joined #ruby
weaksauce has joined #ruby
pdoherty has quit [Remote host closed the connection]
bl4ckw4ter has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
thejamespinto has quit [Ping timeout: 256 seconds]
jokke has joined #ruby
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
Vitor_ has quit [Ping timeout: 240 seconds]
guacjack has joined #ruby
ElFerna has quit [Quit: WeeChat 1.3]
saddad has joined #ruby
djbkd has joined #ruby
bl4ckw4ter has left #ruby [#ruby]
jessemcgilallen has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
mchu has quit [Quit: mchu]
ElFerna has joined #ruby
dlitvak has joined #ruby
_djbkd has quit [Ping timeout: 256 seconds]
Pupeno has quit [Remote host closed the connection]
RegulationD has joined #ruby
thejamespinto has joined #ruby
howdoico1 has joined #ruby
calderonroberto has joined #ruby
ta has quit [Read error: Connection reset by peer]
ta has joined #ruby
Lildirt has quit [Ping timeout: 240 seconds]
devoldmx has quit [Ping timeout: 240 seconds]
Regulati_ has joined #ruby
kalopsian has quit [Ping timeout: 250 seconds]
xaoz_ has joined #ruby
Cohedrin has joined #ruby
blaxter has quit [Quit: foo]
Lildirt has joined #ruby
n008f4g_ has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> snockerton I assume it is probably out of consistency, we have .to_s, .to_i, .to_f and .to_a; there also is .to_str though
spider-mario has joined #ruby
<shevy> I have no idea why apeiros associates .to_h with .to_hash but not .to_a with .to_array though :)
dorei has quit [Ping timeout: 272 seconds]
jdelaney has joined #ruby
<shevy> oh I forgot .to_sym
<jbrhbr> my interpretation is that he had his own library that defined .to_hash before .to_h existed in ruby
<apeiros> shevy: never had a need of defining a to_array
kalopsian has joined #ruby
<apeiros> jbrhbr: correct
RegulationD has quit [Ping timeout: 272 seconds]
thejamespinto has quit []
<apeiros> ruby didn't standardize for to_h back then.
skcin7 has joined #ruby
<jbrhbr> only weird thing there for a newcomer such as myself, which i brought up a couple of weeks ago, is that there is no .to_b
<apeiros> (nor did any core class have a to_h)
<apeiros> jbrhbr: to_boolean?
<jbrhbr> yeah
<apeiros> we rarely ever need that
<apeiros> false/nil being the only falsy values obviates the need in most cases
xaoz_ is now known as dorei
<shevy> x = "true"; x.to_bool now that would be something
<jbrhbr> i admit its use is limited, but there seems to be other things that would be used less but are still in the language, whereas this creates a slight inconsistency
Pupeno has joined #ruby
<jbrhbr> shevy: your example is probably why it doesn't exist
<apeiros> jbrhbr: it's easy to add
<jbrhbr> shevy: ppl argue that the semantics are ambiguous because some people want to define it as you have written
<apeiros> class NilClass; def to_b; false; end; end; class FalseClass; def to_b; false; end; end; class Object; def to_b; true; end; end
<jbrhbr> i argue that it should just be: !!v, ie, "pass it through the truthiness algorithm"
kalopsian has quit [Client Quit]
yardenbar has joined #ruby
kalopsian has joined #ruby
jessemcgilallen has joined #ruby
<shevy> jbrhbr hmm yeah... I only had to do this for strings though actually
<shevy> I got tired of having to write true or false in yaml files to I simply used t and f instead :D
<jbrhbr> yeah
Lucky___ has quit [Quit: Textual IRC Client: www.textualapp.com]
howdoico1 has quit [Ping timeout: 256 seconds]
<jbrhbr> my curiosity was just piqued because i saw the !!v idiom being used here at work and i was like "why didn't this code use .to_b? ops, it doesn't exist". but the better argument is why !!v is needed at all perhaps
djbkd has quit [Remote host closed the connection]
<shevy> I like the ! toggler
djbkd has joined #ruby
zast has quit [Remote host closed the connection]
tenderlove has joined #ruby
<shevy> it's like turning a switch on and off ... "turn into a pigeon! turn into a pigeon!"
Lucky___ has joined #ruby
<shevy> eventually I will have a pigeon
axl_ has quit [Quit: axl_]
bbert has joined #ruby
bbert has quit [Changing host]
bbert has joined #ruby
<jbrhbr> bang enough, and you'll have a pigeon
<shevy> hahaha
momomomomo has joined #ruby
dlitvak_ has joined #ruby
<shevy> I think I saw it first in ruby ... I was using perl, then php but can't remember having used that there
Rickmasta has joined #ruby
mg^^ is now known as mg^
colegatron has quit [Ping timeout: 240 seconds]
tenderlove has quit [Ping timeout: 240 seconds]
dlitvak has quit [Ping timeout: 256 seconds]
<apeiros> the most common case where I translate a value to a boolean is when I don't want to expose inner state
duckpuppy has joined #ruby
<apeiros> e.g. there's plenty of people who'll write code like: `def foo?; @some_complex_value; end`
tvw has quit []
<apeiros> and @some_complex_value can be either nil or a complex value - which represent the falsy and truthy results
ponga has quit [Quit: Connection closed for inactivity]
<apeiros> I prefer to actually return a boolean, to avoid that complex value ending up being referenced somewhere it doesn't belong
ap4y has joined #ruby
Rickmasta has quit [Ping timeout: 272 seconds]
ta has quit [Read error: Connection reset by peer]
<apeiros> additionally to avoid people stupidly not reading the docs and relying on foo? to return the complex value
ta has joined #ruby
<apeiros> though, that's a minor concern. people who do that deserve the hurt :)
troulouliou_dev has joined #ruby
troulouliou_dev has quit [Max SendQ exceeded]
ta has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
ta has joined #ruby
troulouliou_dev has joined #ruby
Xentil has quit [Ping timeout: 250 seconds]
edwinvdgraaf has joined #ruby
troulouliou_dev has quit [Max SendQ exceeded]
axl_ has quit [Client Quit]
chouhoul_ has joined #ruby
troulouliou_dev has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
duckpuppy has quit [Ping timeout: 256 seconds]
troulouliou_dev has quit [Max SendQ exceeded]
nettoweb has joined #ruby
jdm has joined #ruby
troulouliou_dev has joined #ruby
dfinninger has joined #ruby
<shevy> there are two difficult-to-handle things in software evolution
Vitor_ has joined #ruby
<shevy> - complexity
<shevy> - naming things
troulouliou_dev has quit [Max SendQ exceeded]
aspire has quit [Ping timeout: 240 seconds]
<eam> - off by one errors
edwinvdgraaf has joined #ruby
troulouliou_dev has joined #ruby
<apeiros> classic
<shevy> haha
chouhoulis has quit [Ping timeout: 240 seconds]
troulouliou_dev has quit [Max SendQ exceeded]
jdm has quit [Remote host closed the connection]
axl_ has joined #ruby
SHyx0rmZ has joined #ruby
troulouliou_dev has joined #ruby
msx has joined #ruby
jdm has joined #ruby
<icey> "\n".gsub(/\n/, 'yay') => "yay"; '\n'.gsub(/\n/, 'yay') => "\\n"
kalopsian has quit [Ping timeout: 240 seconds]
troulouliou_dev has quit [Max SendQ exceeded]
<icey> how can I get a regular expression to match the second format as well?!
<eam> Icey: /\n|\\n/
<apeiros> Icey: you realize that '\n' is a backslash followed by an n, NOT a newline?
<eam> also what apeiros said
<icey> yes apeiros I'm working on parsing
<apeiros> >> "\n" == '\n' # will be false
<ruboto> apeiros # => false (https://eval.in/485007)
<eam> Icey: are you, by chance, doing advent of code?
<slash_nick> lol
<apeiros> Icey: well, then what eam said. because /\n/ matches a newline.
<slash_nick> i wondered that
<icey> just wondering what the case for a string containing \n but not being a newline would be
<icey> no to advent of code
<eam> slash_nick: I just started again
cdg has quit [Remote host closed the connection]
<eam> I'm doing look and say
<slash_nick> eam: i didn't get to spend any time at a computer last weekend, so i have to catch up
<slash_nick> look and say was so much fun, i thought
<apeiros> Icey: eh, the point is that your string does not contain \n. it contains \\n
<icey> fair enough
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<slash_nick> Icey: be consistent with your decision to use single or double quotes
djbkd has quit [Remote host closed the connection]
<icey> I'm contemplating a compiler, so my program will be fed strings
<icey> I won't get to decide what the strings are, just what I don't support :)
Vitor_ has quit [Ping timeout: 250 seconds]
<mg^> heh advent of code, looks fun
<slash_nick> mg^: much much
<slash_nick> also, the gchq christmas card puzzles
<eam> it has a nice progression from trivial to taking some consideration
edwinvdgraaf has quit [Remote host closed the connection]
howdoico1 has joined #ruby
edwinvdgraaf has joined #ruby
colegatron has joined #ruby
jbrhbr has quit [Quit: Leaving.]
kalopsian has joined #ruby
pdoherty has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
<mg^> my brain doesn't do crypto puzzles well, so I'll look at the gchq stuff when I have run out of everything else to do
<mg^> but writing a reindeer simulation is well within my skill set
chouhoulis has joined #ruby
Vitor_ has joined #ruby
weemsledeux has joined #ruby
yfeldblum has joined #ruby
BadQuanta has joined #ruby
yqt has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
f00bar-32 has joined #ruby
aspire has joined #ruby
weemsledeux has quit [Max SendQ exceeded]
BadQuanta has quit [Client Quit]
jbrhbr has joined #ruby
djbkd has joined #ruby
Omen-DiE- has quit [Quit: Leaving]
tulak has joined #ruby
rikai has quit [Ping timeout: 240 seconds]
<slash_nick> lol
<slash_nick> yeah, something satsifying about driving a robotic santa around a 2d grid
freerobby has quit [Quit: Leaving.]
dionysus69 has quit [Ping timeout: 250 seconds]
ta has quit [Remote host closed the connection]
_stu_ has quit [Quit: _stu_]
ElFerna has quit [Ping timeout: 240 seconds]
djbkd has quit [Ping timeout: 256 seconds]
gioele has left #ruby [#ruby]
aryaching has joined #ruby
momomomomo has quit [Quit: momomomomo]
Snowy has joined #ruby
djbkd has joined #ruby
<shevy> what are crypto puzzles
<shevy> writing a reindeer simulation sounds like fun though
akem has quit [Ping timeout: 240 seconds]
rikai has joined #ruby
<shevy> apeiros once famously wrote an audio song alle meine entlein... perhaps he does a new variant for xmas melodies :D
jdelaney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has quit [Remote host closed the connection]
<shevy> (except when it would be "last xmas, I gave you my heart ...")
baweaver has joined #ruby
dfinninger has joined #ruby
rikai has quit [Ping timeout: 240 seconds]
<eam> crypto puzzles are stuff like "why is my openssl library linking all screwed up"
<shevy> oh damn
<gizmore> shevy: ?selzzup otpyrc
<shevy> that reminds me... I had a mix up when I had installed both libressl and openssl, one program was using libressl rather than openssl when I tried to compile it
<shevy> gizmore let me decipher that...
kalopsian has quit [Ping timeout: 240 seconds]
<shevy> k seems like .reverse
<gizmore> actually it´s a book cipher
colleenmcguckin has quit [Read error: Connection reset by peer]
snockerton has quit [Ping timeout: 265 seconds]
<gizmore> "selzzup otpyrc" means "you are right, this is not crackable and plausible deniable"
snockerton has joined #ruby
<shevy> hmmmmmmm
<shevy> >> "selzzup otpyrc".reverse
<ruboto> shevy # => "crypto puzzles" (https://eval.in/485017)
snockerton has quit [Client Quit]
<gizmore> coincidence :)
colleenmcguckin has joined #ruby
<gizmore> of course the words in the codebook are chosen to distract you!
baweaver has quit [Ping timeout: 240 seconds]
<gizmore> read up on navajo code book
DroidBurgundy has joined #ruby
ElFerna has joined #ruby
<hxegon> 'egg'
<shevy> a crypto egg?
howdoico1 has quit [Ping timeout: 272 seconds]
otherj has joined #ruby
<mg^> OK I know which reindeer is ahead at 2503 seconds.
nhhagen has joined #ruby
bbert has quit [Ping timeout: 240 seconds]
<gizmore> Cryptologist are not allowed in casinos, because they tend to count cards
<mg^> heh, I learned how to count cards, can't help myself now at the blackjack table
<mg^> I just force myself to leave when I am about $20 ahead
<shevy> I saw some videos about professional cheaters in casino... pretty creative some of them were there
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mg^> because I'm not at all slick about it like that movie
yqt has quit [Ping timeout: 250 seconds]
edwinvdgraaf has quit [Read error: Connection reset by peer]
<gizmore> mg^: isn´t it pretty hard with 4 or 6 decks,.... or better said, quite useless?
<mg^> no, number of decks doesn't matter
pandaant has quit [Remote host closed the connection]
<mg^> it's how often they shuffle
edwinvdgraaf has joined #ruby
<gizmore> as they stop at the half?
<mg^> and how many they burn off the top
rikai has joined #ruby
<gizmore> :D
<shevy> so many things you have to keep in mind
atomical has joined #ruby
<mg^> basically, the more decks, the longer you need the cards to stay in play before your count becomes useful
<gizmore> Do you want another card? "yes" - The next card would have been a sheep!, wanna re-consider?
<shevy> same thing with professional players in games, like warcraft 3 or starcraft 2... the amount of factors they consider, or what they have to calculate to min-max, at which specific time ...
<gizmore> i´d say sc2 and such games are quite easy to play well with lots of clicks and keyboard gestures
<gizmore> it´s more about concentration on the movement and build up quickly, than strategic decisions
Vitor_ has quit [Ping timeout: 272 seconds]
<gizmore> of course, you should not make horrible mistakes and have a strategy... but in the end the clickspersecond matter a lot
<shevy> gizmore I may have thought so too until I listened to some of grubby's post-play commentaries... one of the best statements he made was "to enable later opportunities"... that is, if you adapt your playing style, e. g. push for more pressure at the right time, the game may be easier lateron
colleenmcguckin has quit [Read error: Connection reset by peer]
nettoweb has quit [Ping timeout: 240 seconds]
colleenmcguckin has joined #ruby
tildes has quit [Ping timeout: 240 seconds]
tenderlove has joined #ruby
<gizmore> shevy: yeah... but the research etc is not _that_ important i bet, compared to resource hogging and such things
momomomomo has joined #ruby
jessemcgilallen has quit [Read error: Connection reset by peer]
<gizmore> who gets second resources first, usually was the winner in sc1
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
slawrence00 has quit [Quit: Textual IRC Client: www.textualapp.com]
rikai has quit [Ping timeout: 250 seconds]
jessemcgilallen has joined #ruby
tenderlove has quit [Ping timeout: 240 seconds]
mchu has joined #ruby
shanemcd has joined #ruby
steffkes has joined #ruby
steffkes has quit [Changing host]
steffkes has joined #ruby
AnoHito has quit [Ping timeout: 240 seconds]
rikai has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
_stu_ has joined #ruby
tildes has joined #ruby
kmckelvi1 has quit [Quit: WeeChat 1.3]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
yqt has joined #ruby
Snowy has quit [Remote host closed the connection]
kmckelvin has joined #ruby
shanemcd has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
Vitor has joined #ruby
Pupeno_ has joined #ruby
Pupeno has quit [Read error: Connection reset by peer]
duckpuppy has joined #ruby
AnoHito has joined #ruby
prestorium has quit [Quit: Leaving]
tvw has joined #ruby
bbert has joined #ruby
bbert has quit [Changing host]
bbert has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
duckpuppy has quit [Ping timeout: 250 seconds]
ElFerna has quit [Ping timeout: 272 seconds]
codecop has quit [Remote host closed the connection]
Idakyne has joined #ruby
prestorium has joined #ruby
n_blownapart has joined #ruby
<mchu> can i get some help?
tildes has quit [Remote host closed the connection]
<mchu> error: undefined method `empty?' for 1:Fixnum
<mchu> for line: %a{href: incidents_chapter_root_path(current_chapter)}
nhhagen has quit [Ping timeout: 240 seconds]
bbert has quit [Ping timeout: 240 seconds]
dfinning_ has joined #ruby
dfinninger has quit [Ping timeout: 240 seconds]
<havenwood> >> 1.empty?
otherj has quit [Quit: .]
<ruboto> havenwood # => undefined method `empty?' for 1:Fixnum (NoMethodError) ...check link for more (https://eval.in/485025)
zdman135 has quit [Quit: Leaving...]
<mchu> how do i fix it?
<mchu> i dont understand the error
<havenwood> >> 1.respond_to? :empty?
<ruboto> havenwood # => false (https://eval.in/485027)
kmckelvin has quit [Ping timeout: 240 seconds]
ElFerna has joined #ruby
<havenwood> mchu: ^, but for example:
<havenwood> >> [].respond_to? :empty?
<ruboto> havenwood # => true (https://eval.in/485028)
<havenwood> mchu: Are you familiar with irb or Pry?
<mchu> irb
petanikode has quit [Ping timeout: 256 seconds]
<mchu> not great with it, but some what know it
bigkevmcd has quit [Read error: Connection reset by peer]
<havenwood> mchu: In irb try `[].empty?` and `[0, 42].empty?` or `"".empty?` and `"guffaw!".empty?`.
<mchu> ok thanks
kobain has quit [Ping timeout: 240 seconds]
bigkevmcd has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
rikai has quit [Remote host closed the connection]
bbert has joined #ruby
bbert has quit [Changing host]
bbert has joined #ruby
<mchu> i understand ‘.empty?’ however i dont understand why i’m getting an error on the line
<mchu> .app
<mchu> %a{href: incidents_chapter_root_path(current_chapter)}
<mchu> %i.fa.fa-fire.fa-2x
<havenwood> mchu: Are you looking at redcross arcdata then?
<mchu> Yes
<mchu> howd you know haha
<mchu> oh nvm
kmckelvin has joined #ruby
<havenwood> mchu: The best place for Rails questions is the #RubyOnRails channel. That'd be the place to ask why you're getting a Fixnum rather than the expected Object that responds to #empty?.
<mchu> ok thanks!
<havenwood> mchu: you're welcome
blackgoat has joined #ruby
scripore has joined #ruby
djbkd has quit [Remote host closed the connection]
moeabdol has joined #ruby
<mchu> havenwood: getting an error when typing in #rubyonrails room
<mchu> “can’t send to room “#rubyonrails” on “cht.freenode.net”"
dfinning_ has quit [Remote host closed the connection]
<mchu> any ideas why?
dfinninger has joined #ruby
<havenwood> mchu: Register your IRC nick and identify yourself: https://freenode.net/faq.shtml#nicksetup
<havenwood> mchu: /msg NickServ HELP REGISTER
<mchu> thanks
<havenwood> np
dhollinger has quit [Ping timeout: 272 seconds]
jgpawletko has joined #ruby
EvilDMP has left #ruby ["Textual IRC Client: www.textualapp.com"]
moeabdol has quit [Ping timeout: 250 seconds]
jgt2 has joined #ruby
p0wn3d has quit [Ping timeout: 272 seconds]
mary5030 has quit [Remote host closed the connection]
dhollinger has joined #ruby
mary5030 has joined #ruby
kalopsian has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
gusTester has left #ruby [#ruby]
mary5030 has joined #ruby
kalopsian has quit [Client Quit]
Fire-Dragon-DoL has joined #ruby
agent_white is now known as agent_zzz
zequix has joined #ruby
bap1313 has joined #ruby
gizless has joined #ruby
colleenmcguckin has quit [Read error: Connection reset by peer]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
SylarRuby has joined #ruby
colleenmcguckin has joined #ruby
kobain has joined #ruby
freerobby has joined #ruby
juddey has joined #ruby
zeroDivisible has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
saddad has quit [Ping timeout: 272 seconds]
FernandoBasso has joined #ruby
freedrull has quit [Remote host closed the connection]
adamholt has quit [Quit: ZNC - http://znc.sourceforge.net]
jessemcgilallen has quit [Quit: jessemcgilallen]
synthroid has quit []
rgtk has quit [Remote host closed the connection]
Takumo has quit [Quit: ZNC is going down!]
ta has joined #ruby
prestorium has quit [Quit: Leaving]
SenpaiSilver has quit [Read error: Connection reset by peer]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SenpaiSilver has joined #ruby
SenpaiSilver has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
baweaver has quit [Remote host closed the connection]
atomical has joined #ruby
n_blowna_ has joined #ruby
devoldmx has joined #ruby
n_blownapart has quit [Read error: Connection reset by peer]
ricer2 has joined #ruby
decoponio has quit [Quit: Leaving...]
DavidDudson has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
n_blowna_ has quit [Client Quit]
Pupeno_ has quit [Remote host closed the connection]
ta has quit [Read error: Connection reset by peer]
<shevy> hmmmm
<shevy> unfinished thought here ...
ta has joined #ruby
<shevy> we have ... modules and classes. we can add methods from a module, into a class, but we have to do a include
<shevy> is there a way to add methods of a module to a class, without using include or extend?
<gizless> shevy: yes... with kinda reflection
<gizless> hmmm wait
<shevy> hmm
gizless is now known as gizmore
<gizmore> in theory with kinda reflection, no?
FernandoBasso has quit [Ping timeout: 240 seconds]
pwnd_nsfw has joined #ruby
<shevy> reason I ask this is ... I have a main namespace right now which is a module, there I add some methods to the main namespace... but I also want to have these methods in the main namespace be available for classes, without include... I guess it may not be possible but I am asking for confirmation
<gizmore> "just" get the methods for a module and add them to the class... maybe possible
<shevy> gizmore I dunno, it is over the top of my head right now
<havenwood> shevy: prepend
devoldmx has quit [Ping timeout: 240 seconds]
tenderlove has joined #ruby
<adaedra> >> module A; def self.foo; "Hello"; end; end; class B; end; B.send(:define_method, :bar, &A.method(:foo)); B.new.bar
<ruboto> adaedra # => "Hello" (https://eval.in/485047)
[gmi] has joined #ruby
berserk_ren has quit [Ping timeout: 250 seconds]
<shevy> hmm let me think
<havenwood> shevy: PR merged so it'll be fixed when rubygems.org next deploys.
pawnbox has joined #ruby
<shevy> havenwood wheeee \o/
bbert has quit [Ping timeout: 240 seconds]
casadei has quit []
tenderlove has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
Idakyne has quit [Quit: Textual IRC Client: www.textualapp.com]
moeabdol has joined #ruby
moeabdol has quit [Client Quit]
hobodave has joined #ruby
Guest66804 has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
[gmi] has quit [Client Quit]
dlitvak_ has quit [Ping timeout: 240 seconds]
kerframil has joined #ruby
pawnbox has quit [Ping timeout: 256 seconds]
bbert has joined #ruby
bbert has quit [Changing host]
bbert has joined #ruby
darkf has quit [Quit: Leaving]
kmckelvin has quit [Ping timeout: 240 seconds]
jackjackdripper has joined #ruby
colleenmcguckin has quit [Read error: Connection reset by peer]
ESpiney has joined #ruby
colleenmcguckin has joined #ruby
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
mhib has quit [Remote host closed the connection]
DrCode has joined #ruby
Dreamer3 has joined #ruby
howdoico1 has joined #ruby
baweaver has joined #ruby
spt0 has joined #ruby
spt0 has quit [Max SendQ exceeded]
JDiPierro has quit [Remote host closed the connection]
akem has joined #ruby
Pumukel has joined #ruby
drys has joined #ruby
Rickmasta has joined #ruby
drys has quit [Client Quit]
moeabdol has joined #ruby
bbert has quit [Ping timeout: 256 seconds]
BrunoSaboia has joined #ruby
rgtk has joined #ruby
duckpuppy has joined #ruby
dlitvak has quit [Remote host closed the connection]
Rickmasta has quit [Ping timeout: 256 seconds]
dlitvak has joined #ruby
dlitvak has quit [Remote host closed the connection]
BSaboia has quit [Ping timeout: 256 seconds]
akem has quit [Ping timeout: 250 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
JDiPierro has joined #ruby
rgtk has quit [Remote host closed the connection]
zequix has quit [Read error: Connection reset by peer]
duckpuppy has quit [Ping timeout: 250 seconds]
DavidDudson has joined #ruby
ta has quit [Remote host closed the connection]
akem has joined #ruby
makenoise has joined #ruby
BrunoSaboia has quit [Ping timeout: 250 seconds]
guacjack has quit [Quit: Textual IRC Client: www.textualapp.com]
moeabdol1 has joined #ruby
shock_one has quit [Read error: Connection reset by peer]
petanikode has joined #ruby
shock_one has joined #ruby
makenoise has quit [Remote host closed the connection]
bbert has joined #ruby
bbert has quit [Changing host]
bbert has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
minimalism has joined #ruby
akem2 has joined #ruby
akem has quit [Read error: No route to host]
seitensei has joined #ruby
seitensei has joined #ruby
gusTester has joined #ruby
steffkes has quit [Ping timeout: 256 seconds]
Ishido has joined #ruby
makenoise has joined #ruby
ledestin has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
nettoweb has joined #ruby
shock_one has quit [Read error: Connection reset by peer]
shock_one has joined #ruby
howdoico1 has quit [Quit: WeeChat 1.3]
howdoicomputer has joined #ruby
steffkes has joined #ruby
steffkes has quit [Changing host]
steffkes has joined #ruby
duncannz has joined #ruby
kerframil has quit [Ping timeout: 272 seconds]
akem has joined #ruby
drysjasper has joined #ruby
ttilley has quit [Quit: Linkinus - http://linkinus.com]
zenlot has joined #ruby
akem2 has quit [Ping timeout: 256 seconds]
radgeRayden_ has joined #ruby
akem has quit [Read error: No route to host]
akem2 has joined #ruby
drysjasper is now known as drysjasperfx
howdoicomputer has quit [Quit: WeeChat 1.3]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
htmldrum has joined #ruby
howdoicomputer has joined #ruby
drysjasperfx is now known as drysjasper
radgeRayden__ has quit [Ping timeout: 256 seconds]
hxegon has quit [Read error: Connection reset by peer]
davedev2_ has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
makenoise has quit []
claw has quit [Ping timeout: 272 seconds]
jgpawletko has quit [Quit: jgpawletko]
ttilley has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
akem2 has quit [Read error: No route to host]
akem has joined #ruby
atomical has joined #ruby
claw has joined #ruby
baweaver has quit [Remote host closed the connection]
ttilley has quit [Changing host]
ttilley has joined #ruby
chouhoul_ has joined #ruby
drysjasper has quit [Quit: Konversation terminated!]
houhoulis has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
neanderslob has joined #ruby
cdg has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
chouhoulis has joined #ruby
drys has joined #ruby
davejlong has quit []
akem has quit [Read error: No route to host]
jdelaney has joined #ruby
akem has joined #ruby
threh has joined #ruby
rikai has joined #ruby
tenderlove has joined #ruby
ornerymoose has quit [Ping timeout: 272 seconds]
B1n4r10 has quit [Ping timeout: 240 seconds]
rayzaum has joined #ruby
rikai has quit [Remote host closed the connection]
cassioscabral has quit [Quit: cassioscabral]
jdelaney has quit [Client Quit]
leat1 has quit [Remote host closed the connection]
polishdub has quit [Quit: Leaving]
leat1 has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djcp1 has joined #ruby
rdark has quit [Ping timeout: 272 seconds]
tenderlove has quit [Ping timeout: 240 seconds]
tulak has quit [Remote host closed the connection]
bithon has quit [Ping timeout: 240 seconds]
djcp has quit [Ping timeout: 256 seconds]
tulak has joined #ruby
riceandbeans has left #ruby [#ruby]
aryaching has quit [Read error: Connection reset by peer]
Kabaka has quit [Ping timeout: 260 seconds]
pdoherty has quit [Remote host closed the connection]
dlitvak has joined #ruby
cassioscabral has joined #ruby
pdoherty has joined #ruby
Jackneill has quit [Remote host closed the connection]
bbert has quit [Ping timeout: 256 seconds]
jdelaney has joined #ruby
JDiPierro has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
howdoicomputer has quit [Quit: WeeChat 1.3]
kmckelvin has joined #ruby
howdoicomputer has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
xaxisx has left #ruby [#ruby]
<fcser> Hmm I have a silly question about scope.... I have a cinch bot with the megahal plugin. I want megahal to respond to it's own name instead of a prefix / string. Is there a way to make @bot available outside of methods to make line #51 work? http://pastie.org/10632875#49
zequix_ has joined #ruby
zequix_ has quit []
axl__ has joined #ruby
axl_ has quit [Ping timeout: 240 seconds]
axl__ is now known as axl_
ESpiney has quit [Quit: Leaving]
<TomyLobo> if you want #megahal to respond, ask in #megahal. as to your question of scope. this is clearly out of scope :P
Kabaka has joined #ruby
howdoicomputer has quit [Client Quit]
howdoicomputer has joined #ruby
<shevy> fcser if you have a butler bot you could perhaps ask apeiros!
freerobby has quit [Quit: Leaving.]
hobodave has quit [Quit: Computer has gone to sleep.]
<fcser> lol
<shevy> dominikh wrote cinch, he used to be on #ruby-lang but seems to not have survived the transition into #ruby
tulak has quit [Remote host closed the connection]
mclong has joined #ruby
<fcser> well I was just curious I thought there was some way to make the variable available "out of scope"..
<fcser> with lambda or somethin or maybe it's not possible
<fcser> or just checking every message the way it is now is fine
pika_pika has quit [Ping timeout: 240 seconds]
<TomyLobo> fcser, as to your actual question about scope, you have a lifetime problem there, not just a scope problem
<adaedra> not this way
<TomyLobo> fcser, i assume you mean @hal, yes?
<TomyLobo> @hal is initialized upon instantiation and it belongs to an instance of HAL
<fcser> Ok
<adaedra> fcser: I don't think this can work this way; if your bot get renamed, you want it to respond to your new name, right?
<TomyLobo> that match is in calss scope and is run way earlier, when the class HAL is first loaded
<fcser> adaedra: correct
<TomyLobo> s/calss/class/
hxegon has joined #ruby
bithon has joined #ruby
Xentil has joined #ruby
<fcser> TomyLobo: ok yes this is what I'm experiencing
<fcser> since bot is empty at that point
<fcser> so it's just 'not possible' I'm approaching it wrong or something
<adaedra> fcser: I think you'll have to intercept all messages, and match afterwards, in the handler. Here your name will be available.
<fcser> Ok
<fcser> that's what I'm doing - was just concrned if that was too... heavy handed
<fcser> but it will work
<adaedra> that's what cinch is doing anyway.
gaiada has quit [Ping timeout: 256 seconds]
<TomyLobo> fcser, well you need your name variable to exist before that match line is run
<adaedra> You're just moving the match from cinch code to your code.
cassioscabral has quit [Quit: cassioscabral]
jdelaney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Azure has quit [Ping timeout: 272 seconds]
gaiada has joined #ruby
claw has quit [Ping timeout: 256 seconds]
ni291187 has joined #ruby
kmckelvin has quit [Ping timeout: 240 seconds]
<fcser> TomyLobo: I did try defining a special @botnick = @bot.nick variable in the initialization method but @bot.nick is empty at that point too
claw has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
<fcser> either way thanks i'm understanding a bit more
<TomyLobo> fcser, the initialization method is an instance method
<TomyLobo> when "match" is run, no instance exists yet
Azure has joined #ruby
<TomyLobo> because, for one, the class isnt even fully initialized yet
ramortegui has quit [Remote host closed the connection]
ornerymoose has joined #ruby
SCHAAP137 has joined #ruby
djcp1 has quit [Ping timeout: 250 seconds]
<fcser> TomyLobo: ok makes sense - I was just thinking @bot.nick would be available since megahal is a subclass of cinch bot
<TomyLobo> that doesnt matter at all
<TomyLobo> there is no instance yet
ni291187 has left #ruby [#ruby]
<TomyLobo> not even a fully initialized class
<TomyLobo> and hence no instance methods can possibly have been called yet
<TomyLobo> not even the initialization method
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
B1n4r10 has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jessemcgilallen has joined #ruby
bithon has quit [Quit: WeeChat 0.4.2]
EllisTAA has joined #ruby
bithon has joined #ruby
<fcser> TomyLobo: ok I see - I thought there may have been some way to create an instance to get the bot name (then disregard that instance) and use match etc - but apparently I'm just confused
<fcser> I'll stop trying to do it the hard way hhe
InvGhost has quit [Ping timeout: 240 seconds]
f00bar-32 has quit [Ping timeout: 256 seconds]
jdelaney has joined #ruby
tomphp has joined #ruby
scripore has joined #ruby
yfeldblum has joined #ruby
momomomomo has quit [Quit: momomomomo]
hobodave has joined #ruby
tenderlove has joined #ruby
<EllisTAA> i’m trying to create a method inside of a method … this doesn’t seem to work https://gist.github.com/ellismarte/02687f16f0565da6ad02#file-trie-rb-L13-L15
dlitvak has joined #ruby
Xentil has quit [Ping timeout: 250 seconds]
EllisTAA has quit [Quit: ellistaa]
EllisTAA has joined #ruby
snockerton has joined #ruby
_stu_ has quit [Quit: _stu_]
idefine has joined #ruby
tenderlove has quit [Ping timeout: 240 seconds]
DroidBur_ has joined #ruby
idefine has quit [Remote host closed the connection]
akem has quit [Read error: No route to host]
dlitvak has quit [Ping timeout: 250 seconds]
ibouvousaime has quit [Ping timeout: 250 seconds]
akem has joined #ruby
kalopsian has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.92 [Firefox 42.0/20151029151421]]
ornerymoose has quit [Quit: ornerymoose]
finisherr has joined #ruby
zenlot has quit [Ping timeout: 272 seconds]
djcp1 has joined #ruby
<soahccc> ellistaa: define_method is a class method. What do you want to do there? a.b.something? I'm not sure if this is the best way of doing things :)
marr has joined #ruby
akem has quit [Read error: No route to host]
akem2 has joined #ruby
idefine has joined #ruby
DroidBurgundy has quit [Ping timeout: 272 seconds]
<EllisTAA> soahccc: ty! i just fixed it https://gist.github.com/ellismarte/02687f16f0565da6ad02 i’m trying to create a trie data structure where every node is a letter and you traverse it to find words …
zenlot has joined #ruby
nickjj has joined #ruby
nickjj has quit [Client Quit]
scripore has quit [Quit: This computer has gone to sleep]
gaiada has quit [Ping timeout: 256 seconds]
nickjj has joined #ruby
akem2 has quit [Read error: No route to host]
akem has joined #ruby
tulak has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
baweaver has joined #ruby
claw has quit [Ping timeout: 272 seconds]
akem has quit [Read error: No route to host]
kalopsian has quit [Quit: leaving]
akem has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
sucks has joined #ruby
InvGhost has joined #ruby
rayzaum has quit [Quit: Leaving]
claw has joined #ruby
dhollinger has quit [Quit: WeeChat 1.3]
quazimodo has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
cdg has quit [Remote host closed the connection]
jgpawletko has joined #ruby
akem2 has joined #ruby
idefine has quit [Remote host closed the connection]
akem has quit [Read error: No route to host]
gusTester has quit [Quit: Leaving.]
gusTester has joined #ruby
gusTester has left #ruby [#ruby]
akem has joined #ruby
akem2 has quit [Read error: No route to host]
ElFerna has quit [Ping timeout: 240 seconds]
jhooker has quit [Ping timeout: 250 seconds]
<EllisTAA> soahccc: could u explain that to me? i dont get what accept_virutal is
rgrmatt has joined #ruby
<soahccc> ellistaa: this is just an extracted method from our base model. We use it when we need accessors for form_for etc. and don't want to define them on the class generally. But it does what you want I guess and the caveats :) The first version is bogus and I took ages to realize
Blaguvest has quit []
akem has quit [Read error: No route to host]
akem has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
devoldmx has joined #ruby
<soahccc> ellistaa: so basically you have to call define_method on the instance metaclass (it's a bit complicated in ruby)
<EllisTAA> soahccc: what do u mean accessors for form_for?
<soahccc> ellistaa: rails related
<EllisTAA> soahccc: does that refer to strong params?
bnizzle has joined #ruby
TomyLobo has quit [Ping timeout: 272 seconds]
kiez0rd has quit [Ping timeout: 272 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<soahccc> ellistaa: not really. If you use form_for in rails (with a model) and you do `form.text_field :something` that "something" has to be a method on the model. Sometimes you have fields only in that form and we don't want to put the accessor in the class generally so we set it dynamically
devbug has joined #ruby
<EllisTAA> soahccc: oh i see … so if you wanted info like zip code and you didn’t want to include that in the model you’d use the code you linked to? that’s cool
dfinninger has quit [Remote host closed the connection]
hobodave has quit [Ping timeout: 240 seconds]
gizless has joined #ruby
Rickmasta has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
<jbrhbr> in trying to understand `a.map(&:foo)`, i tried `a.map(->(v) { v })` and was surprised to see this doesn't work. instead you have to write it as `a.map(&->(v) { v })`. can anyone explain that? in the :foo case, it's calling .to_proc and sending that symbol to the object you're iterating over. but a lambda is already a proc, so why does it need the &?
dlitvak has joined #ruby
dfinninger has joined #ruby
pika_pika has joined #ruby
gizmore has quit [Ping timeout: 250 seconds]
SCHAAP137 has quit [Ping timeout: 256 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
<soahccc> jbrhbr: a method can accept any amount of arguments but either one or no "code block". But you can pass multiple procs/lambdas as arguments. Does that help?
<jbrhbr> i knew that actually, but your restatement there seems to illuminate hte problem here
jessemcgilallen has joined #ruby
<jbrhbr> i guess map is using the default block and using &->(){} causes that lambda to become the default block
Qantourisc has quit [Ping timeout: 246 seconds]
<jbrhbr> otherwise it's just an argument
<EllisTAA> could someone tell me how i could call this line but get the result ‘christmas.h’ instead of christmas.letter?
CloCkWeRX has joined #ruby
Vitor has quit [Ping timeout: 272 seconds]
dlitvak has quit [Ping timeout: 250 seconds]
<shevy> you call a method called letter
cdg has joined #ruby
<shevy> does your object respond to a method called .letter
<EllisTAA> shevy: alright ill try that
kirun has quit [Quit: Client exiting]
<shevy> no that is a question
<EllisTAA> no
cdg has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
<shevy> if the method exists you could try
<shevy> christmas.send letter
<shevy> to check if your object responds to, you can do: object.respond_to?
<shevy> word = "hello".split("") # => ["h", "e", "l", "l", "o"]
<EllisTAA> shevy: i used christmas.method(letter)
saneax_AFK is now known as saneax
<shevy> so your object would have to respond to .h .e .l .l .o
<EllisTAA> is send a better approach?
InvGhost has quit [Ping timeout: 240 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> who knows if it is better or not but
<EllisTAA> shevy: thanks for the help
<shevy> in your code, you invoke .letter all the time
saneax is now known as Guest44309
<shevy> so that is quite pointless to iterate via .each
gizless is now known as gizmore
<shevy> since you invoke the same method there
<shevy> here is the documentation for .send http://ruby-doc.org/core-2.2.3/Object.html#method-i-send
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<EllisTAA> send seems to work better than method
<shevy> via .method you can get a handle onto a method
mchu has quit [Quit: mchu]
<shevy> so in theory you could turn a method into an object, or reattach it
<shevy> .send is much simpler, you can think that it is equivalent to calling the method itself
<shevy> >> 'abc'.send :size
<ruboto> shevy # => 3 (https://eval.in/485128)
<EllisTAA> shevy: yeah sends seems easier
n008f4g_ has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
steffkes has quit [Ping timeout: 250 seconds]
axl_ has quit [Quit: axl_]
Synthead has joined #ruby
kmckelvin has joined #ruby
ornerymoose has joined #ruby
AnoHito has quit [Read error: Connection reset by peer]
jgpawletko has quit [Quit: jgpawletko]
chouhoulis has quit [Remote host closed the connection]
whiteline has quit [Quit: Leaving]
claw has quit [Ping timeout: 250 seconds]
PaulCapestany has quit [Quit: .]
chouhoulis has joined #ruby
spider-mario has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
solocshaw has joined #ruby
claw has joined #ruby
spt0 has joined #ruby
kmckelvin has quit [Ping timeout: 256 seconds]
duckpuppy has joined #ruby
whippythellama has quit [Quit: WeeChat 1.3]
tenderlove has joined #ruby
whiteline has joined #ruby
f00bar-32 has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Remote host closed the connection]
whiteline has quit [Client Quit]
duckpuppy has quit [Ping timeout: 272 seconds]
cassioscabral has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.3]
uri_ has quit [Ping timeout: 256 seconds]
akem has quit [Read error: Connection reset by peer]
SylarRuby has quit [Remote host closed the connection]
akem has joined #ruby
mary5030_ has joined #ruby
ornerymoose has quit [Quit: ornerymoose]
f00bar-32 has quit [Ping timeout: 256 seconds]
akem has quit [Read error: No route to host]
akem has joined #ruby
shock_one has quit [Read error: Connection reset by peer]
shock_one has joined #ruby
whiteline has joined #ruby
mary5030 has quit [Ping timeout: 256 seconds]
akem has quit [Read error: No route to host]
CrazyEddy has quit [Remote host closed the connection]
akem has joined #ruby
whiteline has quit [Client Quit]
al2o3-cr has joined #ruby
jdelaney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wmdrossard has quit [Ping timeout: 272 seconds]
akem has quit [Read error: No route to host]
akem2 has joined #ruby
akem2 has quit [Read error: No route to host]
akem has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
akem has quit [Read error: No route to host]
slieb has joined #ruby
akem has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
zeroDivisible has joined #ruby
slieb has left #ruby [#ruby]
akem has quit [Read error: No route to host]
akem has joined #ruby
claw has quit [Read error: Connection reset by peer]
banister has joined #ruby
dfinninger has quit [Remote host closed the connection]
Qantourisc has joined #ruby
akem has quit [Read error: No route to host]
akem2 has joined #ruby
ta has joined #ruby
claw has joined #ruby
devbug has quit [Ping timeout: 240 seconds]
ta has quit [Remote host closed the connection]
scripore has joined #ruby
ta has joined #ruby