jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
[Butch] has quit [Quit: I'm out . . .]
bronson has joined #ruby
akem has quit [Read error: No route to host]
akem has joined #ruby
rhg135 has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
<shevy> xybre I have been wondering about the same question too :)
Ropeney has joined #ruby
firstdayonthejob has quit [Ping timeout: 240 seconds]
eytanfb has joined #ruby
<baweaver> well enough on that one, feel free to discuss in #ruby-offtopic but lets not feed the trolls :)
bronson has quit [Client Quit]
jun_ has joined #ruby
dmolina has joined #ruby
dotix has joined #ruby
akem has quit [Read error: No route to host]
akem2 has joined #ruby
paradisaeidae has joined #ruby
dlitvak has joined #ruby
dfinninger has quit []
dotix has quit [Ping timeout: 272 seconds]
dlitvak has quit [Remote host closed the connection]
Nahra``` has quit [Read error: Connection reset by peer]
Nahra``` has joined #ruby
synthroid has joined #ruby
last_staff has quit [Quit: last_staff]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hxegon> Is making a subclass that basically passes a number of options to the superclass a code smell?
Mr_Psmith has joined #ruby
znz_jp has quit [Ping timeout: 240 seconds]
bb010g has joined #ruby
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> passes how?
CloCkWeRX has joined #ruby
<hxegon> I need to reformulate the question, give me a minute.
bigkevmcd has quit [Ping timeout: 255 seconds]
bb010g has quit [Changing host]
bb010g has joined #ruby
<hxegon> jhass, calling super with specific option hash in #new
<jhass> sounds pretty normal
<xybre> hxegon: why not just a class method?
<hxegon> xybre, I don't know... Is Dog.shitzu better than Shitzu.new?
B1n4r10 has joined #ruby
<Ox0dea> Sometimes.
<hxegon> Ox0dea, that doesn't help me :P
<xybre> Depends.
<hxegon> on what?
<Ox0dea> Context.
<dorei> on the expectations of the end user
<xybre> Yeah and how the API is going to be used.
devbug has quit [Ping timeout: 246 seconds]
<Ox0dea> >> %w[expectations sepiacontext].map { |s| s.chars.sort }.reduce :==
<ruboto> Ox0dea # => true (https://eval.in/486609)
<xybre> Sometimes you want a subclass, sometimes you just want an instance with certain initialization.
ornerymoose_ has joined #ruby
jun_ has quit [Remote host closed the connection]
ornerymoose has quit [Ping timeout: 265 seconds]
ornerymoose_ is now known as ornerymoose
<hxegon> Maybe Dog.shitzu would be better then. I just want named, certain initialization.
<Ox0dea> hxegon: Initialization or instantiation?
synthroid has quit []
InvGhost has quit [Ping timeout: 260 seconds]
calderonroberto has joined #ruby
devbug has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
<hxegon> Ox0dea, pretty sure initialize. I don't really need a separate dog, just certain values in a Dog object. Does that make sense?
<hxegon> Ox0dea, good question.
devoldmx has joined #ruby
akem2 has quit [Read error: No route to host]
<Ox0dea> hxegon: Certain values and no additional behavior?
akem has joined #ruby
JakeSays has joined #ruby
<JakeSays> ?guys
<ruboto> Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<Ox0dea> !cops
<JakeSays> hey guys
<Ox0dea> I'm phoning the authorities.
CloCkWeRX has quit [Ping timeout: 260 seconds]
cassioscabral has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
* havenwood makes siren noises
tulak has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 260 seconds]
<hxegon> Ox0dea, hmmm... I don't think it'd need additional behavior, but probably could use blocks for anything I would need in my case.
FernandoBasso has quit [Quit: Leaving]
<Ox0dea> Perl 6 has objects of type Block. :<
devbug has quit [Ping timeout: 255 seconds]
akem has quit [Read error: No route to host]
akem has joined #ruby
eytanfb has quit [Remote host closed the connection]
<hxegon> Ox0dea, what would your suggestion be if it did need additional behavior?
<Ox0dea> hxegon: A subclass, of course.
DEATHTOAMERICA has joined #ruby
<DEATHTOAMERICA> الله أكبر
<DEATHTOAMERICA> type /join ISIL for freedom
<hxegon> DEATHTOAMERICA, whats up kyle
calderonroberto has quit [Ping timeout: 260 seconds]
DEATHTOAMERICA has quit [K-Lined]
akem has quit [Read error: No route to host]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
<hxegon> DEATHTOAMERICA, probably not the best way to get your ideas across with that nick
<eam> Translate
<eam> can I ask rails questions in here?
akem has joined #ruby
paradisaeidae has quit [Read error: Connection reset by peer]
<eam> oops
<Radar> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<eam> يمكن لي أن أطلب القضبان الأسئلة في هذا المجال؟
cdg has quit [Remote host closed the connection]
<eam> Radar: oh I just beefed the joke
<Radar> eam: Can I ask questions bars in this area?
<JakeSays> so if i were to say "hey fuckturds" - that better than "hey guys"?
<eam> are we gonna play the translation convergence game
<jbrhbr> eam: i appreciate the attempt :p
<hxegon> JakeSays, no, people don't usually identify with fuckturd
Musashi007 has quit [Quit: Musashi007]
<eam> we can say "beefed" though
<Radar> JakeSays: First warning.
DEATHTOINFIDEL has joined #ruby
<DEATHTOINFIDEL> type /join #ISIL for freedom
<DEATHTOINFIDEL> الله أكبر
<Radar> Sigh.
ruid has joined #ruby
<hxegon> ?ot DEATHTOINFIDEL
<ruboto> DEATHTOINFIDEL, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
DEATHTOINFIDEL was kicked from #ruby by Radar [No thanks]
DEATHTOINFIDEL has joined #ruby
<shevy> xybre ^^^ another webchatter bites the dust :D
<hxegon> aww, I like how he took my suggestion lol
<azgil2> alah mudak
colegatron has quit [Ping timeout: 265 seconds]
<DEATHTOINFIDEL> الله أكبر
<JakeSays> well i was just curious as to what the limits were to social correctness.
DEATHTOINFIDEL was banned on #ruby by ChanServ [DEATHTOINFIDEL!*@*]
DEATHTOINFIDEL was kicked from #ruby by ChanServ [User is banned from this channel]
<azgil2> pls dont kick alahdicksuckers
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Radar> Setting +m until we sort out this shit.
<Radar> Please standby.
RegulationD has joined #ruby
<Radar> Thanks for your patience.
<Radar> Users must be reigstered in order to talk in this channel now. If you can't send messages to the channel, please make sure you register with Nickserv first.
skade has quit [Quit: Computer has gone to sleep.]
<JakeSays> am i registered?
<Radar> JakeSays: apparently so
kerframil has quit []
<shevy> lol
jhass changed the topic of #ruby to: Please register to talk, /msg NickServ help || Rules & more: http://ruby-community.com || Ruby 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
brianonymous has joined #ruby
<shevy> hmm
<shevy> >> RUBY_VERSION
<ruboto> shevy # => "2.2.0" (https://eval.in/486610)
RegulationD has quit [Ping timeout: 260 seconds]
eytanfb has joined #ruby
jdm has quit [Quit: Leaving]
druonysus has quit [Ping timeout: 240 seconds]
brianonymous has left #ruby [#ruby]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
phantummm has quit [Quit: WeeChat 1.3]
dmolina has quit [Quit: Leaving.]
jawa_ has quit [Ping timeout: 255 seconds]
JakeSays has left #ruby [#ruby]
Musashi007 has joined #ruby
CloCkWeRX has joined #ruby
<Ebok> Ugh.
<Ebok> That annoyed me, and I wasnt even here for it
arescorpio has joined #ruby
<Ox0dea> The end times might be coming. Look busy or something.
<Ebok> lol
<Ebok> How're you doing Ox0dea?
<Ox0dea> Ebok: Well enough, thanks. Yourself?
jackjackdripper1 has joined #ruby
<Ebok> Good good. I havent touched the language for the last three weeks though. Guilty of fallout4 :/ Need to get back into things.
<Ox0dea> Alas. Have you gotten quite good with Enumerable yet?
<Ebok> I love enumerables.
<Ox0dea> Hm? There is only one.
<Ebok> I was refering to its collective methods
<Ox0dea> Er, sorry. I take your meaning now.
<Ebok> Yeah xD
<Ox0dea> What's your favorite?
<Ox0dea> You can't say #map or #reduce.
jackjackdripper has quit [Ping timeout: 256 seconds]
ruid has quit [Ping timeout: 260 seconds]
<Ebok> Aww. Map is certainly my favorite to use xD But lets see. Well Im going to exclude each and its blatant iterations because useful shouldnt be as weighed heavily as the most fun.
<Ebok> Honestly. I dont know!
<Ox0dea> Well, let's see...
<Ox0dea> >> Enumerable.instance_methods.sample 3
<Ebok> inject probably, but thats cause I'm doing a lot of really basic problems for class prep, and inject is just saving me time
<ruboto> Ox0dea # => [:member?, :max_by, :min] (https://eval.in/486611)
colegatron has joined #ruby
<Ox0dea> Ebok: #inject is #reduce, mind. :)
davedev2_ has joined #ruby
<Ebok> Ah
<Ebok> xD
<Ebok> Well then.
<hxegon> #select is really handy
<Ox0dea> There really are so many good ones. I'm quite fond of #group_by.
<Ebok> Oh true
DLSteve has joined #ruby
<Ebok> Select and group_by are both fun
jdm has joined #ruby
dotix has joined #ruby
<Ox0dea> And unreasonably effective to boot.
<Ebok> xD
<Ebok> Unreasonably effective. I like that.
mary5030 has quit [Remote host closed the connection]
howdoicomputer has quit [Ping timeout: 265 seconds]
Musashi007 has quit [Quit: Musashi007]
jas02 has joined #ruby
<Ebok> Honestly, I consider just about every method in this list to be a lot of fun.
davedev24 has quit [Ping timeout: 260 seconds]
akem has quit [Read error: Connection reset by peer]
akem2 has joined #ruby
<Ebok> Id say one the that makes the least sense to me so far is lazy
<Ebok> But that might simply be due to how it reads in rubydoc
akem2 has quit [Read error: No route to host]
akem has joined #ruby
<jhass> so you like #chunk?
dotix has quit [Ping timeout: 240 seconds]
<Ebok> I havent used it enough to make firm commitment, but it seems to make enough sense.
<jbrhbr> #lazy seems like a bit of a wart
<Ebok> chunk is marked as deprecated, so I figured it was just there because we dont get rid of things.
blackmesa has quit [Ping timeout: 265 seconds]
akem has quit [Read error: Connection reset by peer]
rakm has joined #ruby
akem has joined #ruby
jas02 has quit [Ping timeout: 240 seconds]
Rickmasta has joined #ruby
lacuna has joined #ruby
dlitvak has joined #ruby
znz_jp has joined #ruby
akem has quit [Read error: Connection reset by peer]
akem2 has joined #ruby
<Ox0dea> jbrhbr: ?
paradisaeidae has joined #ruby
TomPeed has joined #ruby
akem2 has quit [Read error: Connection reset by peer]
akem has joined #ruby
rdavila has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
CloCkWeRX has joined #ruby
blackgoat has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
lacuna has quit [Read error: Connection reset by peer]
lacuna has joined #ruby
akem has quit [Read error: No route to host]
akem has joined #ruby
DavidDudson has joined #ruby
lessless has joined #ruby
baweaver has quit [Remote host closed the connection]
akem2 has joined #ruby
marr has quit [Ping timeout: 240 seconds]
jackjackdripper1 has quit [Quit: Leaving.]
tjohnson has quit [Quit: Connection closed for inactivity]
jackjackdripper has joined #ruby
frankS2 has quit [Ping timeout: 250 seconds]
lancetw has quit [Ping timeout: 250 seconds]
troter______ has quit [Ping timeout: 240 seconds]
djbender has quit [Ping timeout: 240 seconds]
_joes___ has quit [Ping timeout: 240 seconds]
frode15243 has quit [Ping timeout: 250 seconds]
benlakey has quit [Ping timeout: 240 seconds]
lancetw has joined #ruby
skmp has quit [Ping timeout: 256 seconds]
huddy has quit [Ping timeout: 256 seconds]
vikaton has quit [Ping timeout: 256 seconds]
troter______ has joined #ruby
_joes___ has joined #ruby
jackcom has joined #ruby
jackcom has left #ruby [#ruby]
djbender has joined #ruby
akem has quit [Ping timeout: 256 seconds]
robbyoconnor has quit [Ping timeout: 256 seconds]
pizzaops has quit [Ping timeout: 256 seconds]
prosody has quit [Ping timeout: 256 seconds]
ElFerna has joined #ruby
frode15243 has joined #ruby
benlakey has joined #ruby
im0b has quit [Ping timeout: 256 seconds]
lacrosse has quit [Ping timeout: 256 seconds]
mrsolo has quit [Ping timeout: 256 seconds]
daxroc has quit [Ping timeout: 256 seconds]
hahuang65 has quit [Ping timeout: 260 seconds]
mikolalysenko has quit [Ping timeout: 256 seconds]
mrsolo has joined #ruby
vikaton has joined #ruby
pizzaops has joined #ruby
huddy has joined #ruby
skmp has joined #ruby
im0b has joined #ruby
lacrosse has joined #ruby
daxroc has joined #ruby
frankS2 has joined #ruby
mikolalysenko has joined #ruby
kirun has quit [Remote host closed the connection]
prosody has joined #ruby
symm- has joined #ruby
ElFerna has quit [Client Quit]
pika_pika has quit [Ping timeout: 240 seconds]
Madhur_ has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
nertzy has joined #ruby
ElFerna has joined #ruby
dsdeiz has joined #ruby
Musashi007 has joined #ruby
hxegon has quit [Ping timeout: 246 seconds]
devbug has joined #ruby
howdoicomputer has joined #ruby
troyready has quit [Remote host closed the connection]
cwong_on_irc has quit [Quit: Leaving.]
icbm has joined #ruby
ElFerna has quit [Quit: WeeChat 1.3]
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rakm> anyone know any perl? i'm trying to port some perl code that gets an image out of sqlite db (stored as blob)
<rakm> not sure how to port that part ^
<rakm> trying to use sqlite3 gem and have the binary string, but writing it to a file doesn't give me the image
<rakm> i'm not sure how to encode it and do those characture substitutions
<ja> omfg pelr
djbkd has quit [Remote host closed the connection]
DotKite has quit [Quit: Page closed]
djbkd has joined #ruby
<ja> I wish I could be of any help, rakm
<rakm> ah no problem, thanks :)
<ja> “need to substitute back in the null characters for 1” — wtf, why are they even doing that? sounds odd
<rakm> i'm looking at an old codebase and trying to make sense of it
<rakm> yeah, not sure at all
<rakm> i see the reverse substition happening at the insert also
<rakm> but i have no idea why
<ja> isn’t that just like `row_ref[0].gsub! /11/, "\0"` and `.gsub! /12/, '1'`?
<rakm> ### decrypt blobs
<rakm> $param{$key} =~ s/11/\0/g; # null is represented by 11
<rakm> $param{$key} =~ s/12/1/g; # 1 is represented by 12
<ja> haha, that sounds extremely hacky
jessemcgilallen has quit [Ping timeout: 255 seconds]
ozzloy has quit [Quit: leaving]
<ja> oh dear
ozzloy has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
<ja> … why‽ some old sqlite version that didn’t support null bytes in blobs, maybe?! :X
<ja> absurd.
<rakm> ja yeah, i tried gsub, but to even do that, i had to encode('utf-8') and then do the gsub
<ja> ohh, why encode to utf-8? that doesn’t sound good
<rakm> but even writing that to file after doing the dsub successfully, the img can't be opened with osx
ElFerna has joined #ruby
<ja> encoding binary to utf8 is sure to break it, I think
trav408 has quit [Quit: WeeChat 1.3]
<ja> why did you encode('utf-8') it, rakm?
<rakm> because .gsub errors out with ArgumentError: invalid byte sequence in UTF-8
<ja> what kind of error did you get before?
<ja> oh
azgil2 has quit [Ping timeout: 260 seconds]
<ja> err… uhhm… encodings have already fucked with my mind, especially in Ruby
nettoweb has joined #ruby
<rakm> yeah, i'm not sure i really understand what is happening
<rakm> the `blob.encoding` returns #<Encoding:UTF-8> though, before .encode call
<Ox0dea> rakm: Which is not what you want; you have binary data.
<rakm> so i don't uderstand why i need to do .encode('utf-8')
<ja> indeed
<rakm> ah so i should .encode('binary') ?
<ja> .force_encoding('binary'), maybe?
<Ox0dea> rakm: Aye.
<Ox0dea> Alternatively, String#b.
<Ox0dea> >> s = 'foo'; [s.encoding, s.b.encoding] # ja
<ruboto> Ox0dea # => [#<Encoding:UTF-8>, #<Encoding:ASCII-8BIT>] (https://eval.in/486640)
<ja> Ox0dea: WHAT?! :O
<Ox0dea> Sorry, that was for rakm.
<ja> … … … thank you, Ox0dea
<ja> that’s amazing
<Ox0dea> Happy to help. :)
<Ox0dea> Ruby is love.
<ja> @_@
<ja> it really is, yes
<ja> you should start a newsletter with pseudo-esoteric ruby knowledge, Ox0dea
<ja> IRC newsletter
<Ox0dea> Hm?
<ja> like “Ox0dea’s Weekly Five Things You Might Not Have Known About Ruby”
<Ox0dea> I think that's been done to death.
davedev24 has joined #ruby
<ja> but not with things like #b :<
jbrhbr has quit [Quit: Leaving.]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jessemcgilallen has joined #ruby
<rakm> this is the code i'm trying http://pastie.org/10637163
AntKnee has quit [Quit: Connection closed for inactivity]
<rakm> trying .b right now
Lucky__ has joined #ruby
<rakm> haven't successfully written the png yet
jackjackdripper has quit [Quit: Leaving.]
jbrhbr has joined #ruby
<Ox0dea> You're losing (crucial) information by transcoding from UTF-8 to ASCII and saying it's okay to replace bytes as necessary.
<ja> yeah, are you still using both of those encoding lines, rakm? both 9 and 12
<Ox0dea> It's quite easy to make a PNG invalid by flipping a single bit.
<rakm> may have possibly done both without resetting. i'll start from scratch
davedev2_ has quit [Ping timeout: 260 seconds]
<ja> I changed "0" to "\0" too
yes`r has joined #ruby
<rakm> ja that worked!!!!
<rakm> i'm pretty happy right now :D
<rakm> the escaping
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SCHAAP137 has quit [Ping timeout: 240 seconds]
icbm has quit [Quit: Leaving]
jessemcgilallen has quit [Read error: Connection reset by peer]
ElFerna has quit [Quit: WeeChat 1.3]
<Ox0dea> >> ?\C-@ == "\0" # ja
<ruboto> Ox0dea # => true (https://eval.in/486654)
<Ox0dea> </newsletter>
<ja> rakm: yay! I’m glad I could help ^o^
<Ox0dea> rakm: Glad you got it sorted. :)
<rakm> i don't even know what that ruby means.. `?\C@` ?
<ja> Ox0dea: … @_@ i can’t even
ElFerna has joined #ruby
<ja> ? is the character literal, I know
<ja> but…
<Ox0dea> ja: matz uses emacs.
Encapsulation has quit [Ping timeout: 265 seconds]
devbug has quit [Read error: Connection reset by peer]
aspire has quit [Quit: Leaving]
<rakm> ja , btw "iconhelll.rb" lol
<ja> Ox0dea: does ctrl+@ in emacs insert a null character or wat?
<ja> rakm: i had to name it something, right ^_^
goodcodeguy has joined #ruby
<Ox0dea> ja: I'm pretty sure that's the origin story, yeah.
shaileshg has quit [Quit: Connection closed for inactivity]
blackmesa has joined #ruby
<Ox0dea> <C-V><C-A> inserts a literal "\x01" in Vim (appears as a highlighted ^A), and I'm sure there's something very similar for emacs.
<Ox0dea> >> 'A'.ord.pred.chr # Why '@', you ask?
<ruboto> Ox0dea # => "@" (https://eval.in/486658)
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
druonysuse has joined #ruby
druonysuse has quit [Changing host]
druonysuse has joined #ruby
druonysus has quit [Ping timeout: 256 seconds]
lnx has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
toretore has quit [Ping timeout: 265 seconds]
Arnvald has joined #ruby
* ja really starts to feel like a noob when around folks like Ox0dea (didn’t even know #pred was a thing :X — I’ve often needed it to go with my #succ’ing)
rgtk has quit [Remote host closed the connection]
rgtk has joined #ruby
<ja> weird, String has #succ but not #pred
<jbrhbr> Ox0dea: i don't know how all the wires are connected internally and otherwise, but .lazy doesn't seem like it should be necessary on an enumerable like 0..Float::Infinity, nor does it seem like map should care whether or not something is infinite
<jbrhbr> so i say it seems warty because the handling of streams seems to have some inconsistencies, at least in my naive observations
<ja> what’s “pred” even meant to abbriviate, I wonder?
<jbrhbr> predicate
<Ox0dea> jbrhbr: Predecessor.
Juanchito has quit [Quit: Connection closed for inactivity]
<Ox0dea> ja: In line with successor, of course.
<jbrhbr> woops, context helps
<ja> oh, right, of course “Predecessor” — that word had completely escaped my mind
* ja should probably sleep
<ja> Ox0dea: Of course
<Ox0dea> These were the words used when Peano went about proving that 1 and 1 is, in fact, 2.
<jbrhbr> my brain was in stream land
<Ox0dea> jbrhbr: Whence the inconsistency? Ruby always performs strict evaluation unless explicitly instructed otherwise, no?
kies^ has joined #ruby
<jbrhbr> why is 1..Float::Infinity not already "lazy"?
<jbrhbr> i mean it's obviously lazy semantically
<Ox0dea> Nope.
rodfersou has quit [Remote host closed the connection]
<Ox0dea> A range is simply not an array.
podman has quit [Quit: Connection closed for inactivity]
<jbrhbr> i wasn't implying that it is
<jbrhbr> there is a construct that represents a lazy sequence here
<ja> Ox0dea: Interesting.
<jbrhbr> downstream, things can't consume it without this #lazy transformation
<jbrhbr> that's inconsistent
<Ox0dea> jbrhbr: You'll need to define "sequence" and "consume", I guess.
davedev24 has quit []
freerobby has joined #ruby
boxofrox has quit [Ping timeout: 256 seconds]
<Ox0dea> `1..Float::INFINITY` is an abstraction over a sequence.
<jbrhbr> you could argue that's an implementation detail
<Ox0dea> >> (1..Float::INFINITY).end # Does this constitute "consumption"?
<ruboto> Ox0dea # => Infinity (https://eval.in/486661)
Arnvald has quit []
<jbrhbr> not sure how i feel about that one :)
<jbrhbr> the end of infinity is infinity, mindblown!
hxegon has joined #ruby
jas02 has joined #ruby
<jbrhbr> Ox0dea: and i'm reading it correctly that .lazy effectively gives the preceding stuff a different definition of all of a lot of the built-in enumerable functions, right?
<jbrhbr> if so, that brings up the second issue which is that you need two definitions of those things, rather than one that know to consume a more generic enumerable interface (of which anything that can be iterated over would be a member)
ruu_ has quit []
rdavila has joined #ruby
jas02 has quit [Ping timeout: 260 seconds]
<Ox0dea> jbrhbr: I certainly concede that it'd be nice if Ruby were more like Haskell in this regard, but it doesn't actually ever get in the way that it isn't.
Arnvald has joined #ruby
<jbrhbr> most of my observations and ramblings are more pedantic than they are real practical issues
<jbrhbr> but yes, haskell, java's new 1.8 stuff and python3 handle it pretty well, for comparison
Arnvald has quit [Remote host closed the connection]
<jbrhbr> thinking through these kinds of distinctions leads to better understanding, for me at least :) and anyone bored enough to read
<Ox0dea> >> evens = Enumerator.new { |y| n = 0; loop { y << n += 2 } }; evens.take 10 # jbrhbr
cscheib has joined #ruby
<ruboto> Ox0dea # => [2, 4, 6, 8, 10, 12, 14, 16, 18, 20] (https://eval.in/486670)
Arnvald has joined #ruby
<Ox0dea> Ruby has had "generators" since forever.
<Ox0dea> Enumerator::Lazy is a nicety.
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
Rickmasta has joined #ruby
boxofrox has joined #ruby
<cscheib> anyone have suggestions for good things to practice Ruby skills with/on? I've done all of the Koans, and I'm working through most of what exercism.io has, and done quite a bit on codewars... are there other resources that have good exercises, or particular OSS projects that are a good entry point?
eytanfb has quit [Remote host closed the connection]
<Ox0dea> cscheib: Scratch an itch.
hahuang65 has quit [Ping timeout: 240 seconds]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
psy_ has quit [Ping timeout: 240 seconds]
goodcodeguy has joined #ruby
tds5016 has quit [Quit: Page closed]
babblebre has quit [Quit: Connection closed for inactivity]
dlitvak has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
<jbrhbr> Ox0dea: yup, that's one of the first things i looked for in ruby :p
<cscheib> Ox0dea: yea, I've got some stuff in mind... I've just got a long way to go before I have all the tools/design patterns figured out to get what I want to do into code
djbkd has quit [Quit: My people need me...]
<Ox0dea> cscheib: Dip sufficiently many toes in the water and you'll inevitably realize you're swimming. :)
bb010g has quit [Quit: Connection closed for inactivity]
howdoicomputer has quit [Ping timeout: 240 seconds]
calderonroberto has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
jun_ has joined #ruby
pika_pika has joined #ruby
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ElFerna has quit [Ping timeout: 272 seconds]
arooni_______ has joined #ruby
seitensei has joined #ruby
CloCkWeRX has left #ruby [#ruby]
<jbrhbr> heh that's a nice saying
<havenwood> Or that your toes have become wrinkled.
<havenwood> I guess you should take them out of the water intermittently on the path to swimming!
seitensei has quit [Ping timeout: 246 seconds]
<jbrhbr> which, outside of the land of metaphor, means… beer?
weemsledeux has joined #ruby
rdavila has joined #ruby
pawnbox has joined #ruby
sneakerhax has joined #ruby
rdavila has quit [Client Quit]
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdwrage_ is now known as sdwrage
paradisaeidae has quit [Read error: Connection reset by peer]
paradisaeidae has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
replay has quit []
Azure has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 255 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
avahey has joined #ruby
goodcodeguy has joined #ruby
auzty has joined #ruby
_whitelogger has joined #ruby
_whitelogger has joined #ruby
<Coraline> Neat
hahuang65 has joined #ruby
Yiota has quit [Ping timeout: 240 seconds]
drys has quit [Remote host closed the connection]
drys has joined #ruby
nateberkopec has quit [Quit: Leaving...]
lacuna has joined #ruby
dlitvak has joined #ruby
ohaibbq has quit [Quit: Leaving...]
lacuna has quit [Remote host closed the connection]
pika_pika has quit [Ping timeout: 240 seconds]
dlitvak has quit [Remote host closed the connection]
blackmesa has joined #ruby
lacuna has joined #ruby
hahuang65 has quit [Ping timeout: 255 seconds]
jun_ has quit [Remote host closed the connection]
akem2 has quit [Remote host closed the connection]
spt0 has quit [Ping timeout: 265 seconds]
spt0 has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has joined #ruby
danscho has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
sankaber has joined #ruby
Arnvald has quit [Read error: Connection reset by peer]
Arnvald has joined #ruby
solocshaw has joined #ruby
jun_ has joined #ruby
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has quit [Remote host closed the connection]
devoldmx has joined #ruby
dsdeiz has quit [Ping timeout: 240 seconds]
techsethi has joined #ruby
jessemcgilallen has joined #ruby
fcser has quit [Ping timeout: 272 seconds]
devoldmx has quit [Ping timeout: 265 seconds]
agent_zzz has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
lacuna has quit [Read error: Connection reset by peer]
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
braincrash has quit [Quit: bye bye]
krz has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zast has joined #ruby
jun_ has quit [Remote host closed the connection]
chipotle has joined #ruby
colleenmcguckin has joined #ruby
chipotle_ has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
julian-delphiki has quit [Read error: Connection reset by peer]
stannard has joined #ruby
chipotle has quit [Max SendQ exceeded]
ICantCook has quit [Quit: bye]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
jun_ has joined #ruby
Arnvald has quit [Remote host closed the connection]
stannard has quit [Ping timeout: 255 seconds]
Arnvald has joined #ruby
braincrash has joined #ruby
colleenmcguckin has quit [Remote host closed the connection]
gix has quit [Ping timeout: 255 seconds]
scripore has quit [Quit: This computer has gone to sleep]
Guest59287 has quit [Quit: Leaving]
Arnvald has quit [Read error: Connection reset by peer]
Arnvald has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
cpup has quit [Ping timeout: 265 seconds]
gix has joined #ruby
cpup has joined #ruby
Arnvald_ has joined #ruby
Arnvald has quit [Read error: Connection reset by peer]
dorei has quit []
mostlybadfly has quit [Quit: Connection closed for inactivity]
devbug_ has joined #ruby
yqt has quit [Ping timeout: 255 seconds]
brendan- has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has joined #ruby
nateberkopec has joined #ruby
lanet has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
mary5030 has joined #ruby
jun_ has quit [Remote host closed the connection]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
danscho has quit [Quit: Leaving]
amclain has quit [Quit: Leaving]
mrbignum has joined #ruby
techsethi has quit [Ping timeout: 272 seconds]
solocshaw has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
B1n4r10 has quit [Quit: Lost terminal]
eytanfb has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nateberkopec has quit [Ping timeout: 240 seconds]
solocshaw has joined #ruby
eytanfb has quit [Ping timeout: 265 seconds]
jun_ has joined #ruby
seitensei has joined #ruby
jun_ has quit [Ping timeout: 240 seconds]
lacuna has quit [Remote host closed the connection]
c355e3b has quit [Quit: Connection closed for inactivity]
seitensei has quit [Ping timeout: 260 seconds]
devoldmx has joined #ruby
devbug_ has quit [Ping timeout: 240 seconds]
rkazak has joined #ruby
devbug_ has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
msankhala has joined #ruby
arescorpio has quit [Quit: Leaving.]
fullofcaffeine has quit [Remote host closed the connection]
jas02 has joined #ruby
fullofcaffeine has joined #ruby
blackmesa has joined #ruby
jessemcgilallen has quit [Read error: Connection reset by peer]
<solenoids> what's the best drop-in ruby interpreter for optimizing memory usage? would jruby be the best option, ignoring the initial JVM overhead?
sdwrage has quit [Quit: This computer has gone to sleep]
jas02 has quit [Ping timeout: 246 seconds]
lanet has quit [Remote host closed the connection]
gizmore has joined #ruby
smactive has quit [Remote host closed the connection]
gizless has quit [Ping timeout: 240 seconds]
yes`r has quit [Ping timeout: 260 seconds]
roshanavand has joined #ruby
floatingpoint has joined #ruby
beast has joined #ruby
hakaya has joined #ruby
hakaya has quit [Client Quit]
mrbignum has quit []
cwong_on_irc has joined #ruby
berserk_ren has joined #ruby
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 43.0/20151208100201]]
mary5030 has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 240 seconds]
\13k has joined #ruby
<\13k> j #golang
astrobun_ has joined #ruby
Mr_Psmith has quit [Quit: Mr_Psmith]
dstarh has joined #ruby
ur5us has quit [Remote host closed the connection]
colleenmcguckin has joined #ruby
moei has quit [Quit: Leaving...]
dstarh has quit [Client Quit]
hahuang65 has joined #ruby
AKASkip has joined #ruby
moei has joined #ruby
kies^ has quit [Ping timeout: 255 seconds]
shaileshg has quit [Quit: Connection closed for inactivity]
techsethi has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
hahuang65 has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
Sucks has joined #ruby
nateberkopec has joined #ruby
dsdeiz has joined #ruby
andrew9183 has quit [Quit: andrew9183]
ornerymoose has quit [Quit: ornerymoose]
nateberkopec has quit [Ping timeout: 240 seconds]
jessemcgilallen has joined #ruby
hagabaka has joined #ruby
gizless has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BackEndCoder has quit [Quit: https://github.com/BackEndCoder]
gizmore has quit [Ping timeout: 240 seconds]
dsdeiz has quit [Ping timeout: 255 seconds]
juddey has quit [Ping timeout: 265 seconds]
yes`r has joined #ruby
<xybre> \13k: #go-nuts?
yfeldblum has quit [Ping timeout: 260 seconds]
<\13k> xybre: yep, I got it, thanks :)
<xybre> :D
dsdeiz has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lyoshajapan has joined #ruby
camus has joined #ruby
devbug has quit [Ping timeout: 240 seconds]
berserk_ren has quit [Ping timeout: 260 seconds]
jas02 has joined #ruby
dsdeiz has quit [Ping timeout: 260 seconds]
AKASkip has quit [Ping timeout: 265 seconds]
ur5us has joined #ruby
rdavila has joined #ruby
jas02 has quit [Ping timeout: 240 seconds]
Arnvald_ has quit [Remote host closed the connection]
dsdeiz has joined #ruby
sjums_ has joined #ruby
hagabaka has quit [Ping timeout: 272 seconds]
haxrbyte has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
rclements has quit [Quit: Leaving]
Arnvald has joined #ruby
haraoka has joined #ruby
dsdeiz has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
Lucky__ has joined #ruby
dsdeiz has joined #ruby
Arnvald_ has joined #ruby
Arnvald has quit [Read error: Connection reset by peer]
lyoshajapan has joined #ruby
sjums_ has quit [Quit: Connection reset by beer]
Ox0dea has quit [Quit: WeeChat 1.4-dev]
ur5us has quit [Remote host closed the connection]
devbug_ has quit [Ping timeout: 240 seconds]
sjums_ has joined #ruby
acadavid has quit [Ping timeout: 240 seconds]
deeprave has quit [Ping timeout: 240 seconds]
jdm has quit [Remote host closed the connection]
mroth has quit [Ping timeout: 240 seconds]
tejasmanohar has quit [Ping timeout: 240 seconds]
acadavid has joined #ruby
hohenfall has quit [Ping timeout: 240 seconds]
jdm has joined #ruby
sjums has quit [Remote host closed the connection]
Musashi007 has joined #ruby
mbeasley has joined #ruby
mroth has joined #ruby
deeprave has joined #ruby
tejasmanohar has joined #ruby
johnny56_ has joined #ruby
haxrbyte has quit [Quit: Leaving...]
skade has joined #ruby
johnny56 has quit [Ping timeout: 264 seconds]
gizmore has joined #ruby
devbug has joined #ruby
gizless has quit [Ping timeout: 240 seconds]
techsethi has quit [Quit: techsethi]
ramfjord has quit [Ping timeout: 260 seconds]
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
lxsameer has joined #ruby
last_staff has joined #ruby
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arooni_______ has quit [Ping timeout: 260 seconds]
hohenfall has joined #ruby
nunchuck has quit [Ping timeout: 240 seconds]
axisys_ has quit [Remote host closed the connection]
darkf has joined #ruby
sjums_ has quit [Remote host closed the connection]
sjums has joined #ruby
robbyoconnor has joined #ruby
gizless has joined #ruby
sigurding has joined #ruby
gizless has quit [Client Quit]
axisys has joined #ruby
lxsameer has quit [Ping timeout: 272 seconds]
ec is now known as cheeto_wuz_here
blackmesa has joined #ruby
gizmore has quit [Ping timeout: 256 seconds]
Musashi007 has quit [Quit: Musashi007]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
NeverDie has left #ruby ["http://radiux.io/"]
lxsameer has joined #ruby
passerine has joined #ruby
cheeto_wuz_here is now known as ec
howdoi has quit [Quit: Connection closed for inactivity]
drys has quit [Quit: Konversation terminated!]
lyoshajapan has quit [Remote host closed the connection]
nateberkopec has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
frog0909 has quit [Ping timeout: 246 seconds]
colegatron has quit [Ping timeout: 255 seconds]
dlitvak has joined #ruby
nateberkopec has quit [Ping timeout: 256 seconds]
dh64 has quit [Quit: Konversation terminated!]
dopie has joined #ruby
yfeldblum has joined #ruby
juddey has joined #ruby
renemaya has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
renemaya has quit [Remote host closed the connection]
seitensei has joined #ruby
jas02 has joined #ruby
tagrudev has joined #ruby
mgorbach has quit [Ping timeout: 272 seconds]
scripore has joined #ruby
yardenbar has joined #ruby
mgorbach has joined #ruby
Sucks has quit [Ping timeout: 246 seconds]
renemaya has joined #ruby
darkxploit has quit [Ping timeout: 260 seconds]
dlitvak has joined #ruby
seitensei has quit [Ping timeout: 240 seconds]
akkad has quit [Quit: Emacs must have died]
jas02 has quit [Ping timeout: 240 seconds]
nbdy has joined #ruby
htmldrum has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
startupality has joined #ruby
govg has quit [Ping timeout: 255 seconds]
colegatron has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
devoldmx has quit [Ping timeout: 240 seconds]
govg has joined #ruby
howdoi has joined #ruby
nateberkopec has joined #ruby
mikenovikov has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
codecop has joined #ruby
nateberkopec has quit [Client Quit]
<flughafen> morning everybody
triangles2 has quit [Ping timeout: 272 seconds]
dlitvak has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
mary5030 has joined #ruby
skade has joined #ruby
startupality has quit [Quit: startupality]
Arnvald_ has quit [Read error: Connection reset by peer]
Arnvald has joined #ruby
darkxploit has joined #ruby
Pupp3tm4st3r has joined #ruby
roshanavand has joined #ruby
steffkes has joined #ruby
steffkes has quit [Changing host]
steffkes has joined #ruby
SOLDIERz has joined #ruby
\13k__ has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
\13k__ has quit [Read error: Connection reset by peer]
claw has quit [Ping timeout: 255 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
skade has quit [Ping timeout: 240 seconds]
scripore has joined #ruby
\13k has quit [Remote host closed the connection]
<ljarvis> moin
<ljarvis> tis early
solars has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
lxsameer has quit [Ping timeout: 265 seconds]
scripore has quit [Client Quit]
troulouliou_div2 has joined #ruby
Bloomer has joined #ruby
dlitvak has joined #ruby
mary5030 has quit [Remote host closed the connection]
kam270 has quit [Quit: Leaving]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marwinism has joined #ruby
<flughafen> yeah, i get to work early
ramfjord has joined #ruby
dlitvak has quit [Ping timeout: 265 seconds]
<ljarvis> what time zone?
<flughafen> ljarvis: CET, i'm in Germany
skcin7 has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
<ljarvis> ah
krz has quit [Remote host closed the connection]
<ljarvis> I'm an hour behind
<flughafen> A brit!
ledestin has joined #ruby
dsdeiz has quit [Ping timeout: 265 seconds]
<ljarvis> quite
afisher has quit [Ping timeout: 252 seconds]
claw has joined #ruby
Rickmasta has joined #ruby
medvedu has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
topologist has joined #ruby
blackgoat has joined #ruby
topologist has quit [Changing host]
topologist has joined #ruby
blackgoat has quit [Client Quit]
kstuart has joined #ruby
Mon_Ouie has quit [Ping timeout: 255 seconds]
lyoshajapan has joined #ruby
passerine has quit [Quit: passerine]
<flughafen> ljarvis: ^
topologist has quit [Ping timeout: 255 seconds]
ramfjord has joined #ruby
<ljarvis> heh
krz has joined #ruby
jdm has quit [Remote host closed the connection]
jdm has joined #ruby
jdm has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
eytanfb has joined #ruby
polysics has joined #ruby
jas02 has joined #ruby
ta_ has quit [Remote host closed the connection]
eytanfb has quit [Ping timeout: 256 seconds]
rakm has joined #ruby
firstdayonthejob has quit [Ping timeout: 260 seconds]
jas02 has quit [Ping timeout: 255 seconds]
jpank has quit [Ping timeout: 240 seconds]
jbrhbr has joined #ruby
jas02 has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
andikr has joined #ruby
bigkevmcd has joined #ruby
polysics has quit [Ping timeout: 256 seconds]
jun_ has joined #ruby
dlitvak has joined #ruby
krz has quit [Ping timeout: 240 seconds]
krzkrz has joined #ruby
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
symm- has joined #ruby
steffkes has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
medvedu has quit [Remote host closed the connection]
danoo_ has quit [Ping timeout: 245 seconds]
tvw has joined #ruby
dlitvak has quit [Ping timeout: 246 seconds]
medvedu has joined #ruby
aganov has joined #ruby
anisha has joined #ruby
lacuna has quit [Remote host closed the connection]
TomyWork has joined #ruby
krzkrz has quit [Read error: Connection reset by peer]
msankhala has quit [Quit: This computer has gone to sleep]
beast has quit [Quit: Leaving]
krzkrz has joined #ruby
medvedu has quit [Client Quit]
blackmesa has joined #ruby
baweaver has quit [Remote host closed the connection]
medvedu has joined #ruby
nofxx has quit [Ping timeout: 260 seconds]
nofxx has joined #ruby
maxillopharyngea has joined #ruby
juddey has quit [Remote host closed the connection]
devbug has quit [Read error: Connection reset by peer]
medvedu has quit [Quit: he will be back]
medvedu has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
postmodern has quit [Quit: Leaving]
dlitvak has joined #ruby
djbkd has quit [Remote host closed the connection]
troulouliou_div2 has quit [Quit: Leaving]
rdark has joined #ruby
rdark has quit [Client Quit]
steffkes has joined #ruby
steffkes has quit [Changing host]
steffkes has joined #ruby
rdark has joined #ruby
lxsameer has joined #ruby
pawnbox has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
zast has quit [Remote host closed the connection]
maxillopharyngea has quit [Ping timeout: 240 seconds]
<medvedu> {nickname}
bytemonkey has joined #ruby
druonysuse has quit [Remote host closed the connection]
bytemonkey has left #ruby ["Leaving"]
araujo has quit [Ping timeout: 250 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
msankhala has joined #ruby
jun_ has quit [Remote host closed the connection]
jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
Pupp3tm4st3r has quit [Remote host closed the connection]
heftig has quit [Read error: Connection reset by peer]
heftig has joined #ruby
gamov has joined #ruby
medvedu has quit [Quit: he will be back]
Coral has joined #ruby
Coral is now known as Guest88454
terlar has joined #ruby
Pupp3tm4st3r has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
tesuji has joined #ruby
aufi has joined #ruby
Rickmasta has joined #ruby
jessemcgilallen has quit [Ping timeout: 256 seconds]
nettoweb has joined #ruby
devbug has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
symm- has quit [Ping timeout: 240 seconds]
zeroDivisible has quit [Ping timeout: 260 seconds]
edwinvdgraaf has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
bweston92 has quit [Ping timeout: 240 seconds]
mikenovikov has quit [Max SendQ exceeded]
Dimik has joined #ruby
skade has joined #ruby
AlexRussia has quit [Ping timeout: 256 seconds]
blaxter has joined #ruby
Hounddog has joined #ruby
hectortrope has joined #ruby
<Cork> is this the most efficient way to check what files in an array exist? files.select {|file| File.exists?(file) }
<Cork> or is there a better way to do that?
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
blaxter has quit [Ping timeout: 255 seconds]
tomphp has joined #ruby
tejasmanohar has quit [Ping timeout: 240 seconds]
ec has quit [Ping timeout: 240 seconds]
<apeiros> Cork: probably
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
<Cork> heh probably the best way or probably there are one? :D
ckrailo has quit [Ping timeout: 240 seconds]
InvGhost has joined #ruby
tomphp has quit [Max SendQ exceeded]
<apeiros> the former
<Cork> ok, thx
cardoni has quit [Ping timeout: 260 seconds]
ckrailo has joined #ruby
incomprehensibly has quit [Ping timeout: 250 seconds]
boxrick1 has quit [Ping timeout: 255 seconds]
tvw has quit [Remote host closed the connection]
jmhmccr has quit [Ping timeout: 250 seconds]
jhill has quit [Ping timeout: 240 seconds]
jpinnix______ has quit [Read error: Connection reset by peer]
jbrhbr has quit [Quit: Leaving.]
bweston92 has joined #ruby
devbug has quit [Ping timeout: 260 seconds]
andersh has quit [Ping timeout: 260 seconds]
vcoinminer_ has quit [Ping timeout: 255 seconds]
c0m0 has joined #ruby
mroth has quit [Ping timeout: 240 seconds]
jabreity__ has quit [Ping timeout: 250 seconds]
tomphp has joined #ruby
siddharth has quit [Ping timeout: 240 seconds]
<adaedra> Hello
jas02 has quit [Quit: jas02]
<blub> hi adaedra
ec has joined #ruby
seitensei has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
jpinnix______ has joined #ruby
incomprehensibly has joined #ruby
norc_ has joined #ruby
acadavid has quit [Ping timeout: 240 seconds]
andersh has joined #ruby
jhill has joined #ruby
tomphp has quit [Max SendQ exceeded]
cardoni has joined #ruby
ckrailo has quit [Ping timeout: 240 seconds]
mroth has joined #ruby
vcoinminer_ has joined #ruby
dEPy has joined #ruby
tomphp has joined #ruby
siddharth has joined #ruby
startupality has joined #ruby
jabreity__ has joined #ruby
huyderman has joined #ruby
boxrick1 has joined #ruby
tvw has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
calderonroberto has quit [Ping timeout: 260 seconds]
mroth has quit [Ping timeout: 240 seconds]
Arctaire has quit [Ping timeout: 250 seconds]
vcoinminer_ has quit [Ping timeout: 255 seconds]
ec has quit [Ping timeout: 260 seconds]
startupality has quit [Quit: startupality]
jabreity__ has quit [Ping timeout: 265 seconds]
lxsameer has quit [Ping timeout: 246 seconds]
acadavid has joined #ruby
blaxter has joined #ruby
azgil2 has joined #ruby
jpinnix______ has quit [Ping timeout: 246 seconds]
<dEPy> Anybody using activemodel serializers? I'm wondering if I can set it up so it fails if you try have has_many of has_one defined in the serializer but is not yet loaded.
gagrio_ has quit [Ping timeout: 246 seconds]
frog0909 has joined #ruby
edwinvdg_ has joined #ruby
cardoni has quit [Ping timeout: 256 seconds]
danzilio has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
jpinnix______ has joined #ruby
ckrailo has joined #ruby
jhill has quit [Ping timeout: 240 seconds]
Arctaire has joined #ruby
devoldmx has joined #ruby
jmhmccr has joined #ruby
tomphp has quit [Ping timeout: 272 seconds]
edwinvdgraaf has quit [Ping timeout: 256 seconds]
joonty has joined #ruby
danzilio has joined #ruby
startupality has joined #ruby
medvedu has joined #ruby
andersh has quit [Ping timeout: 260 seconds]
dukedave has quit [Ping timeout: 260 seconds]
incomprehensibly has quit [Ping timeout: 255 seconds]
mroth has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
deeprave has quit [Read error: Connection reset by peer]
<jhass> ?crosspost dEPy
<ruboto> dEPy, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
boxrick1 has quit [Ping timeout: 256 seconds]
drptbl has joined #ruby
jpinnix______ has quit [Ping timeout: 260 seconds]
bogn has quit [Ping timeout: 260 seconds]
cardoni has joined #ruby
tulak has joined #ruby
Arctaire has quit [Ping timeout: 255 seconds]
startupality has quit [Client Quit]
ta has joined #ruby
ec has joined #ruby
knowtheory has quit [Ping timeout: 255 seconds]
dukedave has joined #ruby
startupality has joined #ruby
andersh has joined #ruby
akahn has quit [Ping timeout: 260 seconds]
jhill has joined #ruby
chthon has joined #ruby
jmhmccr has quit [Ping timeout: 256 seconds]
tomphp has joined #ruby
rflot has quit [Read error: Connection reset by peer]
vondruch has quit [Ping timeout: 256 seconds]
dlitvak has joined #ruby
auzty has quit [Quit: Leaving]
vcoinminer_ has joined #ruby
ckrailo has quit [Ping timeout: 255 seconds]
mroth has quit [Ping timeout: 240 seconds]
dukedave has quit [Ping timeout: 255 seconds]
senayar has joined #ruby
pawnbox has joined #ruby
jhill has quit [Ping timeout: 255 seconds]
siddharth has quit [Ping timeout: 255 seconds]
gagrio_ has joined #ruby
jun_ has joined #ruby
roshanavand has joined #ruby
lxsameer has joined #ruby
roshanavand has quit [Remote host closed the connection]
danzilio has quit [Ping timeout: 256 seconds]
cardoni has quit [Ping timeout: 272 seconds]
<shevy> he evil!
dlitvak has quit [Ping timeout: 260 seconds]
elaptics`away is now known as elaptics
marr has joined #ruby
pawnbox_ has joined #ruby
vcoinminer_ has quit [Ping timeout: 240 seconds]
pawnbox has quit [Read error: No route to host]
andersh has quit [Ping timeout: 260 seconds]
acadavid has quit [Ping timeout: 255 seconds]
jun_ has quit [Ping timeout: 240 seconds]
ec has quit [Ping timeout: 260 seconds]
timonv has joined #ruby
startupality has quit [Quit: startupality]
mark3 has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #ruby
emrox has joined #ruby
disanoint has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
gregf_ has quit [Read error: No route to host]
yfeldblum has joined #ruby
emrox has quit [Client Quit]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 246 seconds]
dmolina has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
tulak has quit [Remote host closed the connection]
BSaboia has joined #ruby
ddubs has quit [Ping timeout: 250 seconds]
ddubs has joined #ruby
dsdeiz has joined #ruby
rodfersou has joined #ruby
krzkrzkrz has joined #ruby
krzkrz has quit [Read error: Connection reset by peer]
knowtheory has joined #ruby
gregf_ has joined #ruby
<Cork> is there a somewhat lean way to do something similar to `tr -dc A-Za-z0-9 < /dev/urandom | head -c 8` without system functions?
<Cork> meaning without calling tr or head
ec has joined #ruby
<jhass> what does it even do
disanoint has quit [Ping timeout: 255 seconds]
jpinnix______ has joined #ruby
jmhmccr has joined #ruby
<shevy> hehe
<Cork> it taps into urandom and filters out a-zA-Z0-9
<Cork> and grabs 8 characters
senayar has joined #ruby
danzilio has joined #ruby
<Cork> so basically a random string generator
rflot has joined #ruby
deeprave has joined #ruby
<apeiros> Cork: SecureRandom + tr
akahn has joined #ruby
acadavid has joined #ruby
jhill has joined #ruby
bogn has joined #ruby
vcoinminer_ has joined #ruby
<Cork> apeiros: ya, but how would i use SecureRandom as a stream?
<jhass> or if removing A-Z from the set is okay, just SecureRandom.hex
siddharth has joined #ruby
nbdy has quit [Quit: Textual IRC Client: www.textualapp.com]
<Cork> i've been hunting around with it
dukedave has joined #ruby
terlar has quit [Quit: WeeChat 1.3]
<apeiros> more convenient might be to sample 8 times
ckrailo has joined #ruby
<Cork> jhass: it needs to be as random as possible but still be ascii
kith has joined #ruby
mroth has joined #ruby
andersh has joined #ruby
<apeiros> >> alpha = [*'A'..'Z', *'a'..'z', *'0'..'0']; Array.new(8) { alpha.sample }.join
<Cork> apeiros: ya, that is an option
<ruboto> apeiros # => "EKHOXgGi" (https://eval.in/486876)
<apeiros> whoops
<apeiros> >> alpha = [*'A'..'Z', *'a'..'z', *'0'..'9']; Array.new(8) { alpha.sample }.join
<ruboto> apeiros # => "0sSeV7RQ" (https://eval.in/486877)
lyoshajapan has quit [Remote host closed the connection]
<jhass> that's not using securerandom though?
<Cork> ya
<apeiros> yeah, can use Array[] with securerandom
Arctaire has joined #ruby
kith_ has quit [Ping timeout: 250 seconds]
DeXterbed has joined #ruby
<jhass> jeez, it ought to be possible to pass SecureRandom as rng to sample
<apeiros> lots of refactoring possible wrt random
<apeiros> e.g. it'd be nice if we could fix the seed used for #hash
jabreity__ has joined #ruby
<jhass> omg
cardoni has joined #ruby
<apeiros> for testing, obviously :)
<jhass> oh I thought you meant "fix" as in "let it no longer do that"
<apeiros> (or judging by your "omg" - not so obviously)
incomprehensibly has joined #ruby
boxrick1 has joined #ruby
dlitvak has joined #ruby
<apeiros> ah no, fix as in "set it to a specific value"
devoldmx has quit [Remote host closed the connection]
<apeiros> oh, and for debugging.
wolffles has joined #ruby
tejasmanohar has joined #ruby
<apeiros> knowing the seed can help a ton in reproducing problems with algorithms which make use of prngs
Jackneill has joined #ruby
Dimik has quit [Ping timeout: 272 seconds]
z3uS| has joined #ruby
neanderslob has quit [Quit: No Ping reply in 180 seconds.]
rodfersou has quit [Quit: leaving]
rodfersou has joined #ruby
dlitvak has quit [Ping timeout: 272 seconds]
neanderslob has joined #ruby
z3uS has quit [Ping timeout: 260 seconds]
z3uS| is now known as z3uS
startupality has joined #ruby
wolffles has quit [Quit: wolffles]
jas02 has joined #ruby
goodcodeguy has joined #ruby
dlitvak has joined #ruby
tulak has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has quit [Ping timeout: 265 seconds]
nigro has joined #ruby
<nigro> anyone good at javascript?
goodcodeguy has joined #ruby
colleenmcguckin has quit []
<adaedra> I think there's a javascript channel
neanderslob has quit [Ping timeout: 255 seconds]
tulak has quit [Remote host closed the connection]
neanderslob has joined #ruby
gagrio_ has quit [Ping timeout: 260 seconds]
goodcodeguy has quit [Client Quit]
FernandoBasso has joined #ruby
eytanfb has joined #ruby
jun_ has joined #ruby
eytanfb has quit [Ping timeout: 272 seconds]
jinie_ has joined #ruby
passerine has joined #ruby
platzhirsch has joined #ruby
tvw has quit []
jinie_ has quit [Remote host closed the connection]
jinie_ has joined #ruby
jinie has quit [Remote host closed the connection]
jinie_ is now known as jinie
JammyHammy has quit [Read error: Connection reset by peer]
minimalism has quit [Quit: leaving]
ZiggyTheHamster has quit [Ping timeout: 240 seconds]
jun_ has quit [Ping timeout: 260 seconds]
cpup has quit [Ping timeout: 240 seconds]
cpup has joined #ruby
kstuart has quit [Quit: WeeChat 1.3]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<Bish> hello guys and girls!
<blub> hi bish
<Bish> apeiros: :^)
Arnvald has quit [Remote host closed the connection]
norc has joined #ruby
roshanavand has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
gagrio_ has joined #ruby
nanoz has quit [Quit: <3]
startupality has quit [Ping timeout: 256 seconds]
djbkd has joined #ruby
haraoka has quit [Remote host closed the connection]
dsdeiz has quit [Ping timeout: 260 seconds]
zotherstupidguy has joined #ruby
djbkd_ has quit [Ping timeout: 256 seconds]
yashinbasement has joined #ruby
roshanavand has quit [Ping timeout: 255 seconds]
lxsameer has quit [Ping timeout: 255 seconds]
varunwachaspati has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
ur5us has quit [Read error: No route to host]
ur5us has joined #ruby
platzhirsch has quit [Remote host closed the connection]
saneax_AFK is now known as saneax
saneax is now known as Guest60317
startupality has joined #ruby
tulak has joined #ruby
ur5us has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
lessless has quit [Ping timeout: 246 seconds]
senayar has quit [Read error: Connection reset by peer]
ElFerna has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
Ziggy has joined #ruby
Ziggy has quit [Changing host]
Ziggy has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
yfeldblu_ has joined #ruby
edwinvdgraaf has joined #ruby
Pupp3tm4st3r has joined #ruby
nfk|laptop has joined #ruby
pdoherty has quit [Remote host closed the connection]
ta has joined #ruby
dsdeiz has joined #ruby
lxsameer has joined #ruby
Ziggy has quit [Ping timeout: 272 seconds]
cassioscabral has joined #ruby
bithon has joined #ruby
bithon has quit [Changing host]
bithon has joined #ruby
toretore has joined #ruby
FooMunki has joined #ruby
seitensei has joined #ruby
renemaya has quit [Quit: Re has gone to sleep. ZZZzzz…]
msankhala has quit [Quit: This computer has gone to sleep]
krzkrzkrz has quit [Ping timeout: 272 seconds]
Snowy has joined #ruby
nanoz has joined #ruby
seitensei has quit [Ping timeout: 246 seconds]
<yorickpeterse> haha I wrote some disgusting C code and I'll burn in hell for it, but it might just help me track down memory leaks in production
Ziggy has joined #ruby
Ziggy has joined #ruby
<adaedra> #include <hell.h>
<yorickpeterse> Basically it keeps counters of objects that are retained after GC runs
<yorickpeterse> and it's totally not thread-safe at all
<yorickpeterse> but hey that's what a GIL is for ᕕ(ᐛ)ᕗ
<bithon> my favorite pasttime is to write terrible C/C++ code so thumbs up for you yorickpeterse :D
<blub> ᕕ(ᐛ)ᕗ
<yorickpeterse> I hate C
<shevy> hehe
<adaedra> ᕕ( ᐛ )ᕗ
<yorickpeterse> I'd do this in Rust if it wasn't such a PITA to write extensions in Rust for MRI
<adaedra> it is?
BSaboia has quit [Ping timeout: 265 seconds]
gregf_ has quit [Read error: No route to host]
platzhirsch has joined #ruby
<yorickpeterse> From what I remember yes
<yorickpeterse> That and people would need to have Rust/cargo installed, unless you precompile the extension and dump it in the Gem
<yorickpeterse> which then gives you all sorts of other problems
<adaedra> true
<shevy> return adaedra
<adaedra> missing ;
<shevy> but I capture a boolean!
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
bithon has quit [Quit: WeeChat 1.3]
<shevy> now I need one of you to be false
<adaedra> Who are you calling boolean? é_è
bithon has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
DeXterbed has quit [Ping timeout: 240 seconds]
gregf_ has joined #ruby
lacuna has quit [Ping timeout: 246 seconds]
roshanavand has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
roshanavand has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
slackr has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<slackr> hi
roshanavand has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
<jhass> slackr: why tabs?
roshanavand has joined #ruby
<Zarthus> oh my
roshanavand has quit [Read error: Connection reset by peer]
<adaedra> wow
<adaedra> such tabs, very misaligned
<slackr> jhass: Idk what's the problem with gh. My editor shows it properly
<adaedra> slackr: because tabs.
<Zarthus> slackr: tabs aren't for alignment
<slackr> adaedra: Zarthus jhass: https://u.pomf.io/wgasdg.png
<blub> thats not how you use tabs
AlexRussia has joined #ruby
<bithon> You should use set tabwidth=2 tabstop=2
<adaedra> that's the problem with tabs.
<Zarthus> and expandtab hehe
<bithon> and yeah of course
SCHAAP137 has joined #ruby
<bithon> expandtab
gagrio_ has quit [Remote host closed the connection]
<bithon> you can even have my .vimrc -- it's really really basic but works https://github.com/mirkos/config-files/blob/master/.vimrc
baweaver has quit [Ping timeout: 265 seconds]
<slackr> bithon: my vimrc is basically empty.
<bithon> so is my, kind of
<Zarthus> it's all about the vundle
<adaedra> slackr: github uses the default 8-sized tabs, while you have a 4-sized one.
<jhass> slackr: which ruby versions do you target?
gagrio has joined #ruby
<adaedra> :set sw=2 sts=2 et
<adaedra> ggVG=
<slackr> jhass: idk, It's my first gem.
Ishido has joined #ruby
<jhass> kay, then we just say 2.2 is good enough
<slackr> jhass: yaml is not required
<Zarthus> `loadit` is a pretty undescriptive method name
ramfjord has quit [Ping timeout: 240 seconds]
<jhass> https://github.com/and-the-rest/research_topicgen/blob/master/lib/research_topicgen.rb#L7 -> YAML.load_file File.join(__dir__, "data", "#{topic}.yml")
<jhass> slackr: YAML is the preferred interface to it
<adaedra> Wow, that aggressive doc.
blackmesa has quit [Ping timeout: 265 seconds]
<slackr> Zarthus: any other method name suggestion?
<jhass> https://github.com/and-the-rest/research_topicgen/blob/master/lib/research_topicgen.rb#L13 do you intend to return an array? I'd use explicit [ ] there then
<yorickpeterse> Hm, TIL there's a class called "NameError::message"
Guest88454 has quit [Remote host closed the connection]
<slackr> jhass: will do that. wait a minute
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> https://github.com/and-the-rest/research_topicgen/blob/master/lib/research_topicgen.rb#L18-L19 -> connectives = [*connectives[:common_connectives], *connectives[:extra_connectives]]
ashemark has joined #ruby
<ashemark> Hi!
<jhass> slackr: https://github.com/and-the-rest/research_topicgen/blob/master/lib/research_topicgen.rb#L28 way too long line, spread it across multiple (I'd put each array element on its own)
<adaedra> hi ashemark
<blub> haha whats with the tabs after the commas
Rickmasta has joined #ruby
azgil2 has quit [Quit: Leaving]
<apeiros> Bish:
<apeiros> (thumb-up, in case you don't emoji)
<blub> load_file sometimes returning an array is gross
<slackr> jhass: I didn't understand the L28 part
<ljarvis>
<adaedra> apeiros:
<adaedra> ljarvis: that was not really nice.
<jhass> slackr: not sure what's not clear on "this line is too long, add newlines"
<ashemark> where/how do I learn about middleware as a general concept/wrt sinatra?
<ljarvis> adaedra: :(
<adaedra> ashemark: middleware is a rack concept (may help you with the google searches)
<ljarvis> it's more of a general concept I'd say
<slackr> jhass: "i meant whether to keep each array_variables in single line?"
rdark has quit [Quit: WeeChat 1.0.1]
<jhass> slackr: yes? a [] literal allows you to add as many newlines as you want
<ashemark> i agree, it's more of a general concept, as I've seen it's used in nodejs as well..
Guest60317 is now known as saneax_AFK
tinyhippo is now known as angryhippo
<adaedra> ljarvis: agreed, but for the Sinatra stack, it's Rack which puts it in place
<jhass> slackr: also I'd probably keep wordN as an array and use word[N]
<adaedra> I had a write-up on it, but it's not up anymore :I
rdark has joined #ruby
nfk|laptop has quit [Quit: yawn]
<jhass> slackr: add spaces around ==
<jhass> slackr: no need for the parens in any of your (x || y)
<slackr> will take care of it.
<jhass> slackr: also no need for any of your self. inside the methods
<slackr> while invoking methods, you mean?
<jhass> yes
dlitvak has joined #ruby
<jhass> all your (x && y) don't need the parens either
<slackr> well I thought it made code more readable
ElFerna has quit [Ping timeout: 256 seconds]
<jhass> slackr: all your return keywords are not needed
blackmesa has joined #ruby
<jhass> there's probably a cleaner way to the logic in random_word
rdark has quit [Client Quit]
rdark has joined #ruby
ashemark has quit [Ping timeout: 272 seconds]
<jhass> you pass in the number in order to decide how many checks to do? why not look at cols.size?
bithon has quit [Quit: WeeChat 1.3]
<blub> your functions that return arrays sometimes so that you don't have to call them repeatedly are very ugly
bithon has joined #ruby
nfk|laptop has joined #ruby
<slackr> jhass: I will re-write that random_word function
<slackr> blub: L ?
<blub> like load_file
<jhass> slackr: so that's a yes?
ElFerna has joined #ruby
<slackr> jhass: of course.
<jhass> slackr: comment on it is outdated I guess?
<jhass> the goal is to have n different words?
yfeldblu_ has quit [Remote host closed the connection]
<jhass> slackr: sample takes an argument
astrobun_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<jhass> >> ["a", "b", "c", "d", "e"].sample(3)
<ruboto> jhass # => ["e", "d", "b"] (https://eval.in/487017)
<jhass> >> ["a", "b", "c", "d", "e"].sample(10)
<ruboto> jhass # => ["b", "a", "e", "c", "d"] (https://eval.in/487018)
<jhass> no repetitions
<slackr> that's clean
last_staff has quit [Read error: Connection reset by peer]
<slackr> I have to go through the irc-log again before I re-write
<jhass> sure
last_staff has joined #ruby
astrobu__ has joined #ruby
timonv has quit [Ping timeout: 256 seconds]
ElFerna has quit [Ping timeout: 240 seconds]
<slackr> jhass: thanks. bithon: thanks for the vimrc
<jhass> yw
<slackr> I'll be using 4 instead of 2.
<ljarvis> :O
<ljarvis> nooo
tagrudev has quit [Remote host closed the connection]
<shevy> use 5
<adaedra> slackr: Ruby standards is two spaces.
<slackr> oh
gamov has quit [Ping timeout: 255 seconds]
Arctaire has quit [Ping timeout: 255 seconds]
tagrudev has joined #ruby
rdark has quit [Quit: WeeChat 1.0.1]
danzilio has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 256 seconds]
vondruch has joined #ruby
rdark has joined #ruby
boxrick1 has quit [Ping timeout: 255 seconds]
kao has joined #ruby
cardoni has quit [Ping timeout: 240 seconds]
rflot has quit [Ping timeout: 260 seconds]
vcoinminer_ has quit [Ping timeout: 260 seconds]
dukedave has quit [Ping timeout: 240 seconds]
jhill has quit [Ping timeout: 255 seconds]
rdark has quit [Client Quit]
Macaveli has joined #ruby
rdark has joined #ruby
rdark has quit [Client Quit]
Arctaire has joined #ruby
boxrick1 has joined #ruby
rdark has joined #ruby
andersh has quit [Ping timeout: 240 seconds]
danzilio has joined #ruby
jun_ has joined #ruby
tejasmanohar has quit [Ping timeout: 256 seconds]
bogn has quit [Ping timeout: 260 seconds]
acadavid has quit [Ping timeout: 260 seconds]
jabreity__ has quit [Ping timeout: 240 seconds]
jhill has joined #ruby
knowtheory has quit [Ping timeout: 255 seconds]
cardoni has joined #ruby
banister has quit [Ping timeout: 256 seconds]
moeabdol has quit [Ping timeout: 260 seconds]
dukedave has joined #ruby
ckrailo has quit [Ping timeout: 240 seconds]
bogn has joined #ruby
goodcodeguy has joined #ruby
nanoz has quit [Quit: <3]
tulak has quit []
jpinnix______ has quit [Ping timeout: 255 seconds]
jun_ has quit [Ping timeout: 260 seconds]
danzilio has quit [Ping timeout: 240 seconds]
astrobu__ has quit [Remote host closed the connection]
<nigro> why would you kill han solo?
boxrick1 has quit [Ping timeout: 255 seconds]
<nigro> why would you make kylo ren the new darth vader?
<Zarthus> !ops nigro is just a troll
<ruboto> fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, workmad3, Coraline, miah, drbrain, slyphon, zenspider, rubyhacker1, Aria, ljarvis, Adaedra, baweaver
<ljarvis> !mute nigro
timonv has joined #ruby
<Zarthus> man, that's some quality time response.
mroth has quit [Ping timeout: 272 seconds]
deeprave has quit [Read error: Connection reset by peer]
<adaedra> that was quick indeed
siddharth has quit [Ping timeout: 240 seconds]
goodcodeguy has quit [Client Quit]
<Zarthus> I'm a bit disappointed the ops list isn't alphabeticized :(
<adaedra> the list isn't even up to date
<Zarthus> Even worse!
<adaedra> but I think changes are planned, so just be patient
bogn has quit [Read error: Connection reset by peer]
dukedave has quit [Ping timeout: 240 seconds]
<Zarthus> is ruboto open source?
akahn has quit [Read error: Connection reset by peer]
<adaedra> nope
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Zarthus> :<
<ljarvis> Zarthus: bug apeiros about it
<adaedra> ^
jmhmccr has quit [Ping timeout: 272 seconds]
<adaedra> Go #ruby-community, also
jhill has quit [Ping timeout: 255 seconds]
Arctaire has quit [Ping timeout: 255 seconds]
akaiiro has joined #ruby
incomprehensibly has quit [Ping timeout: 255 seconds]
<yorickpeterse> stupid C, stupid deadlocks, hrmpflf
cardoni has quit [Ping timeout: 240 seconds]
<adaedra> I deadlocked in Ruby once.
<ljarvis> unpossible!
<adaedra> It's nice because it detects it somehow.
c355e3b has joined #ruby
<yorickpeterse> So I basically have 3 functions: 1 for allocations, 1 for frees, 1 to get the current state of things
<yorickpeterse> the first two can lock/unlock fine
<yorickpeterse> Throw in a lock for the 3rd, boom, deadlock
nfk|laptop has quit [Ping timeout: 240 seconds]
<ljarvis> stop writing C
<yorickpeterse> which is weird because the 3rd shouldn't be able to run concurrently
<yorickpeterse> no
ec has quit [Ping timeout: 260 seconds]
<ljarvis> ok stop talking about it in here
<ljarvis> hah! i can enforce that
<yorickpeterse> :<
<adaedra> ljarvis: you muted a troll twice and you're still thirsty for power?
* ljarvis widens eyes
<ljarvis> ummm no
<jhass> can you stop once you started a bag of potato chips?
sdothum has joined #ruby
<ljarvis> yes, i stop when there are no potato chips in the bag
astrobun_ has joined #ruby
<jhass> see, same mechanism
yashinbasement has quit [Quit: Leaving]
incomprehensibly has joined #ruby
<ljarvis> so I will stop when this channel is just full of ops?
siddharth has joined #ruby
<adaedra> :o
<ljarvis> or.. just me
* ljarvis cackles
* ljarvis coughs because he has a cold
<yorickpeterse> weakling
akahn has joined #ruby
<adaedra> ljarvis: you can kick yourself too.
tulak has joined #ruby
<ljarvis> that seems counter productive
rflot has joined #ruby
<Bish> always loved that version
<adaedra> I think I saw a pixel
danzilio has joined #ruby
<Bish> despite the crappy quality of the video
<ljarvis> I just see an aubergine
<adaedra> Anyway, let's talk power abuse and bad quality videos in -offtopic.
dukedave has joined #ruby
jmhmccr has joined #ruby
skade has joined #ruby
aryaching has joined #ruby
nfk|laptop has joined #ruby
mikecmpbll has joined #ruby
vondruch has quit [Ping timeout: 256 seconds]
ElFerna has joined #ruby
mroth has joined #ruby
Macaveli_ has joined #ruby
slackr has quit [Ping timeout: 272 seconds]
slackr has joined #ruby
akahn has quit [Ping timeout: 240 seconds]
dseitz has joined #ruby
Macaveli has quit [Ping timeout: 240 seconds]
deeprave has joined #ruby
ec has joined #ruby
CloCkWeRX has joined #ruby
Macaveli has joined #ruby
danzilio has quit [Ping timeout: 255 seconds]
CloCkWeRX has quit [Client Quit]
CloCkWeRX1 has joined #ruby
dukedave has quit [Ping timeout: 260 seconds]
Macaveli has quit [Client Quit]
dEPy has quit [Quit: (null)]
astrobun_ has quit [Remote host closed the connection]
Macaveli_ has quit [Ping timeout: 240 seconds]
mroth has quit [Ping timeout: 240 seconds]
kstuart has joined #ruby
CloCkWeRX1 has quit [Client Quit]
CloCkWeRX has joined #ruby
rflot has quit [Ping timeout: 240 seconds]
prestorium has joined #ruby
UniFreak has joined #ruby
UniFreak has left #ruby ["Leaving"]
UniFreak has joined #ruby
zotherstupidguy has quit [Ping timeout: 240 seconds]
incomprehensibly has quit [Ping timeout: 240 seconds]
<UniFreak> so I changed the file C:\cygwin64\home\FangHao\.rvm\gems\ruby-2.2.1\gems\wdm-0.1.1\ext\wdm\extconf.rb by adding a line `have_library("msvcrt") and` into it
<UniFreak> but still the error occur with the same error
ddfreyne_ has quit [Remote host closed the connection]
<jhass> UniFreak: it might be worth to repeat the initial problem description
angryhippo has left #ruby [#ruby]
CloCkWeRX has quit [Ping timeout: 256 seconds]
<apeiros> Zarthus: sorry, ruboto won't be open source any time soon. parts of it will eventually be, making contributions possible.
Mon_Ouie has joined #ruby
roshanavand has joined #ruby
diegoviola has joined #ruby
<UniFreak> jhass:http://paste.linux.chat/view/38c9cb03
dstarh has joined #ruby
<slackr> apeiros: what framework does that bot use?
knowtheory has joined #ruby
jmhmccr has quit [Ping timeout: 240 seconds]
ec has quit [Ping timeout: 260 seconds]
<apeiros> slackr: currently cinch. next release a rewrite of butler.
<UniFreak> jhass: I'm following this:https://github.com/Maher4Ever/wdm/issues/12
rgtk has quit [Read error: Connection reset by peer]
dstarh has quit [Client Quit]
rgtk has joined #ruby
roshanavand has quit [Remote host closed the connection]
vondruch has joined #ruby
<jhass> UniFreak: could you run this with an english locale?
slackr has quit [Quit: WeeChat 1.3]
build22_ has joined #ruby
sigurding has quit [Quit: sigurding]
deeprave has quit [Ping timeout: 255 seconds]
knowtheory has quit [Ping timeout: 240 seconds]
siddharth has quit [Ping timeout: 260 seconds]
raniemi has joined #ruby
<Zarthus> apeiros: not as much interested in contributing as just looking at the source. I'm always interested in browsing the source of some popular projects written in ruby, but haven't found many of them that I can glue together and fully understand how it works. considering it's in cinch I was also interested in seeing how and where the code diverges from mine.
<jhass> UniFreak: to me that sounds like it doesn't include a needed header file on windows, nothing you can fix through modifying extconf.rb. I don't know enough about windows to get any more specific, sorry
<UniFreak> jhass: is there a way I can skip the gem when doing `bundle install`?
roshanavand has joined #ruby
<jhass> UniFreak: maybe, post your Gemfile and Gemfile.lock please
acadavid has joined #ruby
UniFreak has left #ruby ["Leaving"]
UniFreak has joined #ruby
incomprehensibly has joined #ruby
Arctaire has joined #ruby
<UniFreak> jhass: Gemfile.lock:http://paste.linux.chat/view/336927d7, Gemfile:http://paste.linux.chat/view/6b2aedb8
Macaveli has joined #ruby
<jhass> UniFreak: alright, given what it is, just dropping the last (gem 'wdm' ...) line from the Gemfile should be fine
jmhmccr has joined #ruby
vcoinminer_ has joined #ruby
<jhass> any live reload functionality probably won't work, but better than nothing
CloCkWeRX has joined #ruby
tulak has quit [Read error: Connection reset by peer]
tulak has joined #ruby
mroth has joined #ruby
DeXterbed has joined #ruby
dlitvak has quit [Remote host closed the connection]
kirun has joined #ruby
dlitvak has joined #ruby
jhill has joined #ruby
astrobun_ has joined #ruby
deeprave has joined #ruby
rflot has joined #ruby
mmitchell has joined #ruby
mmitchell has quit [Remote host closed the connection]
tejasmanohar has joined #ruby
knowtheory has joined #ruby
ckrailo has joined #ruby
zotherstupidguy has joined #ruby
kobain has joined #ruby
ec has joined #ruby
siddharth has joined #ruby
bogn has joined #ruby
cardoni has joined #ruby
huddy has quit [Quit: Connection closed for inactivity]
Macaveli has quit [Ping timeout: 240 seconds]
Bloomer has quit [Remote host closed the connection]
boxrick1 has joined #ruby
toretore has quit [Ping timeout: 260 seconds]
jabreity__ has joined #ruby
toretore has joined #ruby
Macaveli has joined #ruby
passerine has left #ruby [#ruby]
ruby-lang729 has joined #ruby
blackmesa has joined #ruby
InvGhost has quit [Ping timeout: 260 seconds]
saneax_AFK is now known as saneax
tvw has joined #ruby
jun_ has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
saneax is now known as Guest42445
UniFreak has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
andersh has joined #ruby
akahn has joined #ruby
astrobun_ has quit [Remote host closed the connection]
danzilio has joined #ruby
govg has quit [Ping timeout: 265 seconds]
jpinnix______ has joined #ruby
dukedave has joined #ruby
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
jun_ has quit [Ping timeout: 260 seconds]
moeabdol has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
Macaveli_ has joined #ruby
DeXterbed has quit [Ping timeout: 246 seconds]
colegatron has quit [Ping timeout: 240 seconds]
Macaveli_ has quit [Client Quit]
startupality has quit [Quit: startupality]
CloCkWeRX has quit [Ping timeout: 246 seconds]
DeXterbed has joined #ruby
mostlybadfly has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
Mr_Psmith has joined #ruby
Macaveli has quit [Ping timeout: 272 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krzkrzkrz has joined #ruby
DeXterbed has quit [Ping timeout: 246 seconds]
<zotherstupidguy> is there a basic auth twitter gem ?
<PaulePanter> Hi. My class deals with durations of multiples of 15 minutes. But arbitrary non-negative integers can be added. So there is a method doing `duration_15_minutes != real_durations`.
<PaulePanter> What’s the suggested name for the method: uncommon_duration? or has_uncommon_duration?
joonty has quit [Quit: joonty]
nigro has quit [Ping timeout: 252 seconds]
<adaedra> former
<adaedra> oh wait
<PaulePanter> adaedra: The URLs suggest that too.
madcodes has joined #ruby
<adaedra> yeah
seitensei has joined #ruby
<adaedra> there's no enforced rule, but the ? should be enough to denote it's a boolean, no need for is_ or has_ prefixes.
<PaulePanter> And would you suggest: common_duration? or uncommon_duration? ? Try to use the shorter one? But in if statements I probably would need a lot of negations then.
<PaulePanter> adaedra: Understood. Thank you for the clarifications.
millerti has joined #ruby
beast has joined #ruby
seitensei has quit [Ping timeout: 255 seconds]
sigurding has joined #ruby
colegatron has joined #ruby
jpank has joined #ruby
vondruch has quit [Ping timeout: 260 seconds]
pdoherty has joined #ruby
attyz is now known as plsk
Guest42445 is now known as saneax_AFK
shredding has joined #ruby
synthroid has joined #ruby
blaxter has quit [Quit: foo]
CloCkWeRX has joined #ruby
startupality has joined #ruby
pika_pika has joined #ruby
dukedave has quit []
dukedave has joined #ruby
boboc has joined #ruby
jhill has quit []
jhill has joined #ruby
ruby-lang856 has joined #ruby
mroth has quit []
<ruby-lang856> how can i get an invite to join #ruby-lang?
mroth has joined #ruby
kao has quit [Quit: Textual IRC Client: www.textualapp.com]
boboc has quit [Client Quit]
boboc has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ljarvis> ruby-lang856: there is no ruby-lang
<ljarvis> there is #ruby
<ljarvis> and you're here already \o/
ec has quit []
akaiiro has quit [Ping timeout: 240 seconds]
<GinoManWorks> ruby.live long
<GinoManWorks> ruby.live :long
acadavid has quit []
ec has joined #ruby
jpinnix______ has quit []
acadavid has joined #ruby
ckrailo has quit []
<boboc> guys i have a question, i have an exercise to compare 2 classes and return my value? for ex if i subclass the String and have MyString < String, if i do MyString > String to return true. is this possible?
jpinnix______ has joined #ruby
ckrailo has joined #ruby
<apeiros> ruby.live :long, and: "prosper"
akahn has quit []
akahn has joined #ruby
<apeiros> boboc: if you mean instance_of_MyString > instance_of_String, then yes
davedev24 has joined #ruby
<apeiros> boboc: if you literally mean MyString > String, then no, because Subclass is always < ParentClass
<apeiros> boboc: also, you shouldn't inherit from classes you don't control. composition over inheritance there.
baweaver has joined #ruby
<apeiros> I hope you get thought accordingly :)
jmhmccr has quit []
jmhmccr has joined #ruby
dotix has joined #ruby
startupality has quit [Quit: startupality]
<boboc> apeiros: not the instance, the class itself. and i know it doesn't make sense, is just an exercise i have and i'm not sure if the Comparable module can be extended somehow so i could control this > response :)
dotix has quit [Client Quit]
incomprehensibly has quit []
bithon has quit [Quit: WeeChat 1.3]
<apeiros> boboc: you can override MyString.<
<apeiros> that's horrible, though.
incomprehensibly has joined #ruby
knowtheory has quit []
<apeiros> i.e. you can make *any* method return *anything* you want.
knowtheory has joined #ruby
<ljarvis> within reason
<ljarvis> </pedant>
vcoinminer_ has quit []
<apeiros> >> class String; def <(*); "hello, this makes no sense"; end; end; "foo" < 42
<ruboto> apeiros # => "hello, this makes no sense" (https://eval.in/487070)
vondruch has joined #ruby
deeprave has quit []
<apeiros> ljarvis: I'd argue even beyond reason, see ^ :D
vcoinminer_ has joined #ruby
deeprave has joined #ruby
ruby-lang856 has quit [Ping timeout: 252 seconds]
cassioscabral has joined #ruby
rflot has quit []
rflot has joined #ruby
ornerymoose has joined #ruby
abyss has joined #ruby
rgtk has quit [Remote host closed the connection]
vasilakisfil has joined #ruby
Rickmasta has joined #ruby
baweaver has quit [Ping timeout: 255 seconds]
knowtheory_ has joined #ruby
<vasilakisfil> in my gem, in hashes as a value I can either have a regular value or a lambda or an object that responds to a #call method.. so instead of trying to figure out if the value of a specific key responds_to? :call everytime, I would like to create a new hash class that does that automatically
lurch_ has joined #ruby
<vasilakisfil> should I inherit the Hash or use composition ?
ruby-lang729 has quit [Quit: Page closed]
ornerymoose_ has joined #ruby
vcoinminer__ has joined #ruby
UniFreak has joined #ruby
bithon has joined #ruby
InvGhost has joined #ruby
<apeiros> vasilakisfil: as I just said above: do NOT inherit classes you don't control. use composition.
deeprave___ has joined #ruby
<vasilakisfil> ook
rflot_ has joined #ruby
ornerymoose has quit [Ping timeout: 240 seconds]
ornerymoose_ is now known as ornerymoose
<apeiros> vasilakisfil: take a look at Forwardable stdlib module
kalopsian has joined #ruby
<apeiros> and Delegator/SimpleDelegator. they make that quite easy.
<vasilakisfil> alright!
joonty has joined #ruby
astrobun_ has joined #ruby
cardoni has quit []
cardoni has joined #ruby
boxrick1 has quit []
arturaz has joined #ruby
boxrick1 has joined #ruby
dstarh has joined #ruby
sgambino has joined #ruby
<gregf_> fg
<gregf_> :|
<gregf_> sorry
<apeiros> ^Z
jabreity__ has quit []
d0nn1e has quit [Ping timeout: 240 seconds]
roshanavand has quit [Remote host closed the connection]
jabreity__ has joined #ruby
<ljarvis> heh
cardoni_ has joined #ruby
troulouliou_div2 has joined #ruby
d0nn1e has joined #ruby
roshanavand has joined #ruby
danzilio has quit []
CloCkWeRX has quit [Ping timeout: 256 seconds]
danzilio has joined #ruby
Arctaire has quit []
andersh has quit []
Arctaire has joined #ruby
astrobun_ has quit [Remote host closed the connection]
andersh has joined #ruby
pdoherty has quit [Remote host closed the connection]
arturaz has quit [Ping timeout: 240 seconds]
<vasilakisfil> why google still keeps ruby 1.9.3 docs as top results :/
maxmanders has quit [Ping timeout: 256 seconds]
danzilio_ has joined #ruby
boxrick1_ has joined #ruby
ruid has quit [Ping timeout: 265 seconds]
danzilio has quit [Client Quit]
danzilio_ is now known as danzilio
platzhirsch has left #ruby [#ruby]
astrobu__ has joined #ruby
astrobu__ has quit [Remote host closed the connection]
maxmanders has joined #ruby
jabreity___ has joined #ruby
sankaber has joined #ruby
roshanav_ has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
tejasmanohar has quit []
blackmesa has joined #ruby
tejasmanohar has joined #ruby
arturaz has joined #ruby
nfk|laptop is now known as it_tard
grepwood has joined #ruby
<grepwood> hi everyone
danzilio_ has joined #ruby
<grepwood> anyone here familiar with C's fwrite function? I kinda need something similar
<apeiros> hi grepwood
ramortegui has joined #ruby
<grepwood> hi apeiros, how are you? :)
<apeiros> fine, fine
<apeiros> what properties of fwrite do you need?
Arctaire_ has joined #ruby
<vasilakisfil> can't I define a method called real_[] ? :/
<grepwood> I have a byte array and I need to write down exactly 64 bytes from it
<apeiros> vasilakisfil: no
rgtk has joined #ruby
<vasilakisfil> what's the actual limitation?
<apeiros> vasilakisfil: you can define a method real_, which returns an object which responds to []
<vasilakisfil> ah right
<apeiros> vasilakisfil: [] can't be part of a method name, it's only allowed in [] and []=
cassioscabral has quit [Quit: cassioscabral]
andersh_ has joined #ruby
<grepwood> each time that 64 bytes are written down, I need to putc('\n') in there too
<grepwood> if you're asking why this is oddly similar to creating a RSA key file... it's because it is exactly that
Mon_Ouie has joined #ruby
<vasilakisfil> yeah I get that, but why is is not allowed by the ruby "specs" ? it wouldn't hurt, I think
f4cl3y has quit [Ping timeout: 272 seconds]
blackmesa has quit [Ping timeout: 265 seconds]
<apeiros> grepwood: puts *objects
<grepwood> apeiros, but what about the 64?
<apeiros> assuming objects is an array of 64byte strings (or objects which return 64byte strings when calling to_s)
<grepwood> oh dear no
<apeiros> if that's not the case, you'll have to elaborate on what you have
<grepwood> sure
<grepwood> the string is actually
arturaz has quit [Ping timeout: 272 seconds]
<apeiros> vasilakisfil: because how do you differ between obj.foo[0] and object.foo[0]? (once being .foo.[](0) and once being foo[](0))
dlitvak_ has joined #ruby
<apeiros> vasilakisfil: or to answer: because it'd be ambiguous.
<grepwood> what you get when you `grep -v ^\- | tr -d '\n'` your RSA key
<grepwood> so that's a really long base64
<grepwood> the reason it has to be stored in this way, is because I'm keeping it in a Chef server, so it has to be stored in a link-safe format (like base64 withoiut newlines)
<apeiros> base64 writes a newline after 60 chars, no?
tejasmanohar_ has joined #ruby
<grepwood> after 64, I counted
dlitvak has quit [Ping timeout: 272 seconds]
<grepwood> at least for SSL certs and RSA keys
<apeiros> Base64.encode64 will write a newline every 60 chars by default.
<apeiros> and doesn't seem to have an argument
<apeiros> grepwood: anway - you have a string containing base64 without newlines and you want to have newlines every 64 chars?
<grepwood> apeiros, yes, exactly
<apeiros> ok, then almost what I said above:
<grepwood> that way I can write it back into a file on the server and pretend it's the RSA key I originally had
<apeiros> puts longstring.scan(/.{,64}/)
<apeiros> assuming it *really* doesn't contain \n :)
<apeiros> sorry, puts longstring.scan(/.{1,64}/)
<apeiros> otherwise you might have an empty line in it
<grepwood> I can swear on my pinkie it has no newlines
<grepwood> Chef wouldn't accept it if it had
cassioscabral has joined #ruby
rgtk has quit [Remote host closed the connection]
<grepwood> you're the best apeiros :D
<apeiros> you say as if that wasn't obvious ;-p
<apeiros> +that
<apeiros> bleh
<apeiros> can't type
<apeiros> but meeting incoming so slightly stressed :D
* apeiros afk
millerti has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.4-dev]
freerobby has joined #ruby
ttilley has quit [Quit: Linkinus - http://linkinus.com]
ElFerna has quit [Ping timeout: 246 seconds]
f4cl3y has joined #ruby
devbug has joined #ruby
Rodya_ has joined #ruby
sdwrage has joined #ruby
kfrz has joined #ruby
norc has quit [Quit: Page closed]
vondruch has quit [Quit: Ex-Chat]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
AlexRussia has joined #ruby
araujo has quit [Max SendQ exceeded]
<kfrz> Hi, I'm wondering how to properly manage ruby on OSX El Capitan. I'm a developer, but I'm transitioning to separating all of my projects into Docker containers for many reasons. I'm now more concerned with how to manage local rubys, for example if I want to gem install tmuxinator I get permissions errors
valetudo has joined #ruby
<kfrz> which ruby is /usr/local/bin/ruby - is that accurate?
Drakevr has joined #ruby
kfrz has left #ruby [#ruby]
araujo has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
norc_ has quit [Ping timeout: 252 seconds]
<ljarvis> there's no wrong answer, really
araujo has quit [Max SendQ exceeded]
monumentlike has joined #ruby
<ljarvis> it's wherever you want it to be since the path can be custom. I would consider using a version manager (such as chruby)
devbug has quit [Ping timeout: 240 seconds]
araujo has joined #ruby
freerobby has quit [Quit: Leaving.]
<Bish> the f is tmuxiator, another great thing i have to look into!??!
roshanav_ has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Bish> coooooooooooooool
roshanavand has joined #ruby
<Lewix> apeiros: where do you work again
<adaedra> re
nertzy has joined #ruby
<ljarvis> for the lords of a pie ros
akaiiro has joined #ruby
jas02_ has joined #ruby
fcser has joined #ruby
<Lewix> ljarvis: I thought that was for an ape I rose
jas02 has quit [Ping timeout: 272 seconds]
jas02_ is now known as jas02
moeabdol has quit [Quit: WeeChat 1.3]
skade has quit [Quit: Computer has gone to sleep.]
Jardayn has joined #ruby
<Bish> are there more cool gems that i should know of?
<Bish> sequel,pry,tmuxiator
ElFerna has joined #ruby
bweston92 has quit [Quit: Leaving]
<Bish> most of them are rails, i don't like rails :/
<Bish> well i like rails, but i also like doing stuff myself
kalopsian has quit [Ping timeout: 272 seconds]
<ljarvis> no most of them aren't rails
TomPeed has joined #ruby
<ljarvis> but there are lots of rails ones, you can just go to a category
<ljarvis> if you like doing stuff yourself then looking at third party libraries is probably a bit confusing
<adaedra> there's also awesome-ruby
<adaedra> (website)
<ljarvis> that is not a url
chipotle has joined #ruby
<Bish> no matter how much i learn about ruby
<Bish> it just amazes me more
<adaedra> here it is http://awesome-ruby.com
<Bish> and with crystal we might get a kernel in ruby(-ish) language
<Bish> and have an OS
<Bish> woo~
ramfjord has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
<Bish> hype, anyone!?
cwong_on_irc has quit [Quit: Leaving.]
Xiti has quit [Quit: Xiti]
jas02_ has joined #ruby
tlaxkit has joined #ruby
malconis has joined #ruby
jas02 has quit [Ping timeout: 255 seconds]
jas02_ is now known as jas02
skade has joined #ruby
roshanavand has quit [Remote host closed the connection]
medvedu has quit [Remote host closed the connection]
FernandoBasso1 has joined #ruby
freerobby has joined #ruby
FernandoBasso has quit [Ping timeout: 265 seconds]
scripore has joined #ruby
nateberkopec has joined #ruby
TomyWork has joined #ruby
brendan- has joined #ruby
goodcodeguy has joined #ruby
yes`r has quit [Ping timeout: 246 seconds]
atomical has joined #ruby
sankaber has quit [Remote host closed the connection]
babblebre has joined #ruby
gizmore has joined #ruby
roshanavand has joined #ruby
sankaber has joined #ruby
stannard has joined #ruby
atomical has quit [Client Quit]
atomical has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Xiti has joined #ruby
Xiti has quit [Changing host]
Xiti has joined #ruby
it_tard is now known as nfk|laptop
Mr_Psmith has quit [Quit: Mr_Psmith]
nettoweb has quit [Ping timeout: 265 seconds]
joonty has quit [Quit: joonty]
nettoweb has joined #ruby
rippa has joined #ruby
makaveli0227TL has joined #ruby
dsdeiz has quit [Ping timeout: 246 seconds]
seitensei has joined #ruby
jabreity___ has quit []
nertzy has quit [Quit: This computer has gone to sleep]
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
pawnbox has joined #ruby
bigmac_ has joined #ruby
danzilio_ has quit []
Arctaire_ has quit []
andersh_ has quit []
roshanavand has quit []
Macaveli has joined #ruby
tejasmanohar_ has quit []
jcoe has joined #ruby
vcoinminer__ has quit []
linelevel has joined #ruby
seitensei has quit [Ping timeout: 240 seconds]
tagrudev has quit [Remote host closed the connection]
knowtheory_ has quit []
deeprave___ has quit []
joonty has joined #ruby
Macaveli has quit [Ping timeout: 260 seconds]
vondruch has joined #ruby
cajone_afk is now known as cajone
rflot_ has quit []
agent_white has quit [Quit: brb]
jcoe has quit [Client Quit]
tvw has quit [Ping timeout: 240 seconds]
krobzaur has joined #ruby
cardoni_ has quit []
krobzaur has quit [Client Quit]
build22_ has quit []
krobzaur has joined #ruby
shredding has quit [Ping timeout: 265 seconds]
agent_white has joined #ruby
boxrick1_ has quit []
<gizmore> i worked hard to get rid of rails in my project... now i miss it´s autoload
<adaedra> You can totally redo it.
<adaedra> Or use already done, I think that's what apeiros was working on.
<Bish> can i move "one module up" ?
tvw has joined #ruby
roshanavand has joined #ruby
Ziggy has quit [Ping timeout: 255 seconds]
weemsledeux has joined #ruby
dhollinger has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
decoponio has joined #ruby
cdg has joined #ruby
Ziggy has joined #ruby
Ziggy has quit [Changing host]
Ziggy has joined #ruby
whippythellama has joined #ruby
pdoherty has joined #ruby
dlitvak has joined #ruby
raniemi has quit [Remote host closed the connection]
RTG` has quit [Ping timeout: 240 seconds]
seitensei has joined #ruby
dlitvak_ has quit [Ping timeout: 255 seconds]
Xiti has quit [Ping timeout: 272 seconds]
ZiggyTheHamster has joined #ruby
mary5030 has joined #ruby
Ziggy has quit [Ping timeout: 256 seconds]
jas02 has quit [Quit: jas02]
scripore has quit [Ping timeout: 240 seconds]
dsdeiz has joined #ruby
kalopsian has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
grill has joined #ruby
aganov has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
sameerynho has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
huyderman has quit [Remote host closed the connection]
roshanavand has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
kalopsian has quit [Ping timeout: 272 seconds]
lxsameer has quit [Ping timeout: 246 seconds]
_stu_ has joined #ruby
medvedu has joined #ruby
cwong_on_irc has joined #ruby
akaiiro has quit [Ping timeout: 272 seconds]
seitensei has quit [Remote host closed the connection]
podman has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
jun_ has joined #ruby
AlphaAtom has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cheerio]
axl_ has joined #ruby
dmolina1 has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
RegulationD has joined #ruby
yardenbar has quit [Ping timeout: 246 seconds]
Sucks has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
boboc has quit []
dlitvak has joined #ruby
dmolina has quit [Ping timeout: 260 seconds]
jun_ has quit [Remote host closed the connection]
djcp3 has quit [Quit: WeeChat 1.0.1]
djcp has joined #ruby
chipotle_ has joined #ruby
rdavila has joined #ruby
yes`r has joined #ruby
slawrence00 has joined #ruby
aspire has joined #ruby
jcoe has joined #ruby
<yorickpeterse> https://gitlab.com/gitlab-org/allocations there we go
<yorickpeterse> and it only slows down allocations by ~1,8x
<yorickpeterse> instead of 5-10 times (what most other Gems do)
<yorickpeterse> and it's 120-something times faster than ObjectSpace.each_object :D
jessemcgilallen has joined #ruby
<apeiros> gizmore: https://github.com/apeiros/zeroload - note: it breaks with ruby and rails convention wrt file naming
<apeiros> but IMO it's absolutely worth it. at least I still wonder why I didn't do that earlier.
<adaedra> my memory was good \o/
<apeiros> yupp :)
<apeiros> it's really sad that we don't have const_added, though. makes recursive zeroload impossible :(
<gizmore> apeiros: thanks... i was already looking at it... but renaming 1000 files will be hard work -.-
zotherstupidguy has quit [Ping timeout: 272 seconds]
<apeiros> gizmore: are you a programmer or what?
<adaedra> write a script!
<grepwood> oh god
<gizmore> touché
<linelevel> Hello. I am running Redmine via Puma on an Ubuntu 14.04 server. After editing a config file, I could not get the new changes to take effect. As a last resort, I tried rebooting the entire server (obviously I could never do this on a production server), and it worked. So clearly I was not restarting Redmine properly to reload the new config. I had been attempting to restart it via upstart, which essentially runs `bundle exec puma --config config/p
<apeiros> but point taken, I'll add `zeroload rename_files [GLOB]`
<grepwood> is Ruby known for disregarding the order of lines in its programs?
<adaedra> no?
<apeiros> grepwood: no.
<adaedra> what is your problem?
<apeiros> grepwood: unless you make it so.
<grepwood> I have a function that does 2 things that interest us
cjbottaro has joined #ruby
<grepwood> 1. downloads a remote file to a known location
<grepwood> 2. uses said file to do stuff
agent_white has quit [Read error: Connection reset by peer]
scripore has joined #ruby
<grepwood> what happens is that Ruby is trying to do #2 ahead of #1
Rodya_ has quit [Remote host closed the connection]
<apeiros> yorickpeterse: that looks quite interesting!
<adaedra> maybe your download is done async? what do you use?
<adaedra> also, code.
<apeiros> grepwood: ruby does precisely what you tell it to do
<apeiros> it's not a guessing language
weemsledeux has joined #ruby
<yorickpeterse> apeiros: Yeah I'm happy with it so far, still gotta test it properly in GitLab itself
hectortrope has quit [Read error: Connection reset by peer]
<yorickpeterse> hopefully it doesn't slow things down too much
<apeiros> grepwood: note that I had cases such as filesystems reporting a file to be written when it wasn't. that's unrelated to ruby, though.
<yorickpeterse> oh durrr, messed up the Gem
<apeiros> yorickpeterse: might fit in very well into an instrumentation part for my framework :)
<grepwood> apeiros, I might be getting it really wrong then because this is the 2nd time I get this issue, with similar looking code
<apeiros> ?code grepwood
<ruboto> grepwood, We can't help you without your code, please post it to https://gist.github.com
rkazak has joined #ruby
hectortrope has joined #ruby
<grepwood> oh wait, I forgot you guys hate pastebin
<grepwood> give me a sec
agent_white has joined #ruby
jcoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> not just the guys, the ladies even more so! (I think)
sameerynho has quit [Quit: Leaving]
skade has joined #ruby
jcoe has joined #ruby
<apeiros> but yeah, speaking for myself: I won't read a pastebin.
<adaedra> YOU WOULD'NT DOWNLOAD A PASTEBIN
araujo_ has joined #ruby
<grepwood> it's sucs.org
<apeiros> totally not pastebin :D
<apeiros> well, plain/raw is still much better than pastebin
<grepwood> my uni's comp society
<apeiros> no linenumbers, though :-/
<adaedra> apeiros: what about pastebin's raw?
<grepwood> here's with line numbers
<apeiros> adaedra: no idea. is it fast yet?
<grepwood> and with my other embarassing pastebins
senayar has quit [Ping timeout: 240 seconds]
anisha has quit [Quit: Leaving]
<apeiros> grepwood: and which is now done before which, despite line orders?
<grepwood> apeiros, #16 is done before #12-14
<adaedra> apeiros: depends on your definition of fast. But it may be slowed down by the entry into switzerland.
skade has quit [Read error: Connection reset by peer]
<apeiros> grepwood: ok. well, let's explain what we know and what we don't know
<apeiros> grepwood: I can *guarantee* you, that `remote_file` is invoked before `system `
<grepwood> ouch, that hurts
chriscoffee has joined #ruby
<apeiros> grepwood: but since `remote_file` is NOT a core/stdlib ruby method, we do NOT know what it does or when it does what it does
<grepwood> right
<grepwood> I'll ask chef people because this is a chef thing
rgtk has joined #ruby
<apeiros> grepwood: i.e., without knowing its implementation, it's perfectly possible that this method spins up a thread and does it *whenever*
chriscoffee has quit [Client Quit]
<apeiros> grepwood: and yes, that's the right consequence of that :)
<apeiros> (asking in #chef)
araujo has quit [Ping timeout: 265 seconds]
ElFerna has quit [Ping timeout: 260 seconds]
<apeiros> adaedra: if it's fast, then pastebin raw is a ton better than pastebin :)
skade has joined #ruby
<apeiros> adaedra: still worse than gist
<apeiros> (line numbers and being able to highlight them is useful, multiple files too)
<adaedra> I have mixed feelings about gist.
<apeiros> what's the cons?
* grepwood wonders if gist is just as badly abused by doxers like pastebin is
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
tesuji has quit [Ping timeout: 265 seconds]
<adaedra> ?offtopic adaedra
<ruboto> adaedra, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<adaedra> right
<apeiros> not sure I agree on this being ot, but we can move there anyway :)
scripore has quit [Quit: This computer has gone to sleep]
treehug88 has joined #ruby
rgtk has quit [Ping timeout: 246 seconds]
<grepwood> well #chef is looking quite uninterested
scripore has joined #ruby
<adaedra> ?patience
<ruboto> looks like nobody with an an answer to your question is around. Just stick around for a couple of hours, many people check the backlog.
<grepwood> >a couple of hours
<grepwood> it hz
<grepwood> I'll try to separate the remote_file bits from the function, put them into another, and make that run from main()
<apeiros> grepwood: you can study the docs in the meantime
<apeiros> grepwood: also you can try to debug, as in add code to verify when what happens
<apeiros> and there's other venues, like ML, SO
psy_ has joined #ruby
skade has quit [Ping timeout: 246 seconds]
nixmaniack has joined #ruby
nixmaniack has quit [Changing host]
nixmaniack has joined #ruby
smactive has joined #ruby
dlitvak_ has joined #ruby
scripore has quit [Client Quit]
kies^ has joined #ruby
steffkes has quit [Ping timeout: 240 seconds]
scripore has joined #ruby
davedev2_ has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
dlitvak has quit [Ping timeout: 256 seconds]
smactive has quit [Ping timeout: 255 seconds]
skade has joined #ruby
scripore has quit [Client Quit]
pdoherty has quit [Ping timeout: 240 seconds]
<grepwood> no it's still screwed
UniFreak has quit [Ping timeout: 255 seconds]
aufi has quit [Quit: Konversation terminated!]
nixmaniack has quit [Read error: Connection reset by peer]
Icey has quit [Remote host closed the connection]
Icey has joined #ruby
mostlybadfly has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
sgambino has quit [Quit: Textual IRC Client: www.textualapp.com]
renemaya has joined #ruby
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nixmaniack has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
skade has quit [Ping timeout: 272 seconds]
nettoweb has joined #ruby
monumentlike has quit [Remote host closed the connection]
sneakerhax has quit [Ping timeout: 256 seconds]
socialjackie has joined #ruby
chipotle has joined #ruby
roshanavand has quit [Remote host closed the connection]
chipotle_ has quit [Ping timeout: 240 seconds]
skade has joined #ruby
roshanavand has joined #ruby
gregf has joined #ruby
roshanavand has quit [Remote host closed the connection]
sgambino has joined #ruby
roshanav_ has joined #ruby
socialjackie has quit [Client Quit]
cjbottaro has joined #ruby
synthroid has quit [Remote host closed the connection]
chipotle has quit [Client Quit]
Xiti has joined #ruby
konsolebox has joined #ruby
chipotle has joined #ruby
Bloomer has joined #ruby
nixmaniack has quit [Read error: Connection reset by peer]
nixmaniack has joined #ruby
tulak has quit [Remote host closed the connection]
nixmaniack has quit [Remote host closed the connection]
chthon has quit [Ping timeout: 255 seconds]
ElFerna has joined #ruby
howdoi has joined #ruby
hobodave has joined #ruby
SOLDIERz has quit [Ping timeout: 272 seconds]
jas02 has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
sgambino has quit [Quit: Textual IRC Client: www.textualapp.com]
jbrhbr has joined #ruby
jessemcgilallen has quit [Read error: Connection reset by peer]
ElFerna has quit [Read error: Connection reset by peer]
codecop has joined #ruby
dlitvak_ has quit [Remote host closed the connection]
grepwood has quit [Remote host closed the connection]
sgambino has joined #ruby
treehug88 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Madhur_ has joined #ruby
ashemark has joined #ruby
madcodes has quit [Ping timeout: 256 seconds]
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
govg has joined #ruby
jessemcgilallen has joined #ruby
cwong_on_irc has joined #ruby
dlitvak has joined #ruby
treehug88 has quit [Remote host closed the connection]
Xiti has quit [Quit: Xiti]
roshanav_ has quit [Remote host closed the connection]
dlitvak has quit [Remote host closed the connection]
huyderman has joined #ruby
tvw has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
<camus> What is a Hashie struct?
[Butch] has joined #ruby
root_murdoc has joined #ruby
root_murdoc has quit [Max SendQ exceeded]
baweaver has joined #ruby
root_murdoc has joined #ruby
<jhass> ?context
<ruboto> Please add more context to your question, what are you doing, why are you doing it, which libraries are involved. Post some code to gist if it clarifies your question.
root_murdoc has quit [Max SendQ exceeded]
dlitvak has joined #ruby
jas02 has quit [Quit: jas02]
cjbottaro has joined #ruby
dionysus69 has joined #ruby
ashemark has quit [Quit: WeeChat 1.3]
hakunin_ has quit [Read error: Connection reset by peer]
Rodya_ has quit [Ping timeout: 246 seconds]
treehug88 has joined #ruby
hakunin has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
ElFerna has joined #ruby
p0wn3d_ has joined #ruby
roshanavand has joined #ruby
RegulationD has quit [Remote host closed the connection]
Lucky__ has joined #ruby
nfk|laptop has quit [Ping timeout: 240 seconds]
RegulationD has joined #ruby
moeSeth has joined #ruby
<apeiros> ?justabot camus
<ruboto> camus, I'm just a bot. You don't need to address me.
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
roshanav_ has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
Hounddog has quit [Read error: Connection reset by peer]
rkazak has joined #ruby
yardenbar has joined #ruby
Lucky__ has quit [Ping timeout: 255 seconds]
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
troyready has joined #ruby
baweaver has quit []
amclain has joined #ruby
symm- has joined #ruby
devbug has joined #ruby
Xiti has joined #ruby
<jhass> camus: hashie is a gem, look it up
synthroid has joined #ruby
<camus> ok thanks
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
edwinvdgraaf has quit [Ping timeout: 240 seconds]
kknight has joined #ruby
roshanav_ has quit [Read error: Connection reset by peer]
kknight has quit [Max SendQ exceeded]
roshanavand has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kknight has joined #ruby
joonty has quit [Quit: joonty]
kknight has quit [Max SendQ exceeded]
nixmaniack has joined #ruby
nixmaniack has quit [Changing host]
nixmaniack has joined #ruby
kknight has joined #ruby
The_Phoenix has joined #ruby
alex88 has joined #ruby
yardenbar has quit [Ping timeout: 272 seconds]
mark3 has quit [Remote host closed the connection]
dlitvak has quit [Remote host closed the connection]
nixmaniack has quit [Ping timeout: 240 seconds]
rakm has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
senayar has quit []
jas02 has joined #ruby
nixmaniack has joined #ruby
jas02 has quit [Client Quit]
akem has joined #ruby
Xiti has quit [Quit: Xiti]
build22_ has joined #ruby
dlitvak has joined #ruby
lacuna has quit [Remote host closed the connection]
sneakerhax has joined #ruby
akem has quit [Read error: No route to host]
kristianpaul has quit [Remote host closed the connection]
akem has joined #ruby
dlitvak has quit [Remote host closed the connection]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fcser has quit [Ping timeout: 272 seconds]
AKASkip has joined #ruby
dlitvak has joined #ruby
ElFerna has quit [Read error: Connection reset by peer]
dlitvak has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
vasilakisfil has quit [Quit: Konversation terminated!]
seitensei has joined #ruby
seitensei has joined #ruby
FooMunki has quit [Quit: FooMunki]
jbrhbr has quit [Quit: Leaving.]
fcser has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
FooMunki has joined #ruby
Tempesta_ has joined #ruby
mbeasley has left #ruby ["WeeChat 0.4.2"]
ElFerna has joined #ruby
n1x has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Tempesta has quit [Ping timeout: 250 seconds]
lurch_ has quit [Quit: lurch_]
arooni_______ has joined #ruby
akem has quit [Read error: No route to host]
akem2 has joined #ruby
roshanavand has quit [Remote host closed the connection]
nixmaniack has quit [Ping timeout: 240 seconds]
seitensei has quit [Ping timeout: 246 seconds]
<shevy> hashie and cashie!
fantazo has joined #ruby
Snowy has quit []
monthy has joined #ruby
andikr has quit [Remote host closed the connection]
akem2 has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Ping timeout: 255 seconds]
roshanavand has joined #ruby
rkazak has joined #ruby
rdavila has joined #ruby
karapetyan has joined #ruby
araujo_ has quit [Quit: Leaving]
benhuda has joined #ruby
eytanfb has joined #ruby
lacuna has joined #ruby
Xiti has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
steffkes has joined #ruby
Tricon has joined #ruby
steffkes has quit [Changing host]
steffkes has joined #ruby
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
akkad has joined #ruby
nertzy has joined #ruby
ElFerna has quit [Ping timeout: 240 seconds]
rakm has joined #ruby
<alex88> hi there, I've this sample array https://repl.it/B9RU/2 and I've wrote the next part to create and array of array following its ancestors, is there a way to make it shorter/cleaner?
atomical has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
c0m0 has quit [Ping timeout: 256 seconds]
eytanfb has quit [Ping timeout: 265 seconds]
tlaxkit has quit [Quit: ¡Hasta luego!]
nertzy has quit [Client Quit]
n1x has quit [Read error: Connection reset by peer]
dlitvak has joined #ruby
dlitvak has quit [Remote host closed the connection]
krzkrzkrz has quit [Quit: WeeChat 1.2]
dlitvak has joined #ruby
nertzy has joined #ruby
rkazak has quit [Ping timeout: 256 seconds]
howdoicomputer has joined #ruby
poguez_ has joined #ruby
nixmaniack has joined #ruby
wldcordeiro has quit [Quit: WeeChat 1.3]
kknight has quit [Remote host closed the connection]
pandaant has joined #ruby
wldcordeiro has joined #ruby
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Lewix> alex88: i think if you put an example input and desired_output it'll be helpful
pandaant has quit [Remote host closed the connection]
<Papierkorb> alex88: you're basically replacing the Hash object by the id in the ancestors array?
dlitvak has quit [Remote host closed the connection]
pandaant has joined #ruby
<alex88> Lewix: oh sry, well the input example is the first line object, the output is the result you get running the script
wldcordeiro has quit [Client Quit]
wldcordeiro has joined #ruby
<alex88> Papierkorb: well I'm creating a tree, so go in each sub-array when I find that ancestors array is not empty
<alex88> and then append the current element
<Papierkorb> your code is really complicated
<Papierkorb> which would be okay-ish if it would do complicated things
<alex88> good
eytanfb has joined #ruby
<alex88> in this version, first I sort by the ancestors array length, so I can create first the root level elements, then the 1st level ones and so on
<alex88> then I go trough each of those and add them in the right place in the resulting array
<Papierkorb> alex88: so, what is the code supposed to do?
dlitvak has joined #ruby
<alex88> create a tree from that input array
<Papierkorb> not helpful.
govg has quit [Ping timeout: 255 seconds]
<alex88> oh you mean that code?
rgtk has joined #ruby
<Papierkorb> https://repl.it/B9RU/3 and now I've got things to do.
<alex88> sry
<Papierkorb> are you trolling me?
monthy has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 260 seconds]
<alex88> absolutely not
drbernardi has joined #ruby
<shevy> please do :)
hxegon has joined #ruby
<alex88> so in my code, I first sort the array by ancestors length, then in the foreach I first add the elements with 0 ancestors to the root array, then if the ancestors array is not empty, I search for the first parent in the root array, then if there are no more ancestors I put the element in the first parent I've just found, otherwise I search for the second level parent and so on
antgel has quit [Ping timeout: 255 seconds]
<alex88> in your code, you replace the ancestors, in mine, I actually add a "children" array to each element and I put the children thene
<Papierkorb> xy problem. What are you really trying to do? How should your input array be turned into a 'tree' ?
Channel6 has joined #ruby
<Papierkorb> Well, doing that modification shouldn't be hard
firstdayonthejob has joined #ruby
rgtk has quit [Ping timeout: 246 seconds]
hobodave has quit [Quit: Computer has gone to sleep.]
jbrhbr has joined #ruby
The_Phoenix has quit [Ping timeout: 246 seconds]
nixmaniack has quit [Remote host closed the connection]
pglombardo has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
<Papierkorb> Yep. slight variaton of my version
<alex88> each element has an array with the ids of its ancestors, so create a tree from that, putting each element in the ancestor's "children" array
diegoviola has quit [Quit: WeeChat 1.3]
dlitvak has joined #ruby
aryaching has joined #ruby
colleenmcguckin has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sigurding has quit [Quit: sigurding]
startupality has joined #ruby
drbernardibis has joined #ruby
zast has joined #ruby
troulouliou_div2 has quit [Ping timeout: 260 seconds]
devbug has quit [Ping timeout: 265 seconds]
drbernardibis has quit [Client Quit]
goodcodeguy has joined #ruby
berserk_ren has joined #ruby
f00bar-32 has joined #ruby
tulak has joined #ruby
build22_ has left #ruby [#ruby]
darkf has quit [Quit: Leaving]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
ascarter has joined #ruby
<drbernardi> SET HIDEMAIL ON
pdoherty has joined #ruby
<drbernardi> SET PRIVATE ON
nertzy has quit [Quit: This computer has gone to sleep]
blackmesa has joined #ruby
jun_ has joined #ruby
tulak has quit []
_djbkd has joined #ruby
last_staff1 has joined #ruby
synthroi_ has joined #ruby
nixmaniack has joined #ruby
berserk_ren has quit [Remote host closed the connection]
colleenmcguckin has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
icarus has joined #ruby
synthroi_ has quit [Remote host closed the connection]
synthroid has quit [Read error: No route to host]
synthroid has joined #ruby
colleenmcguckin has joined #ruby
synthroid has quit [Remote host closed the connection]
<shevy> ok...
berserk_ren has joined #ruby
last_staff has quit [Ping timeout: 265 seconds]
last_staff1 is now known as last_staff
nixmaniack has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
berserk_ren has quit [Remote host closed the connection]
stannard has quit [Remote host closed the connection]
pawnbox has joined #ruby
karapetyan has quit []
PedramT has joined #ruby
karapetyan has joined #ruby
stannard has joined #ruby
stannard has quit [Remote host closed the connection]
dh64 has joined #ruby
jun_ has quit [Remote host closed the connection]
blackjid has quit [Max SendQ exceeded]
InvGhost has quit [Ping timeout: 260 seconds]
blackjid has joined #ruby
PedramT has quit [Ping timeout: 240 seconds]
steffkes has quit [Ping timeout: 265 seconds]
Dimik has joined #ruby
medvedu has quit [Remote host closed the connection]
howdoicomputer has quit [Ping timeout: 246 seconds]
nixmaniack has joined #ruby
colleenmcguckin has quit [Read error: Connection reset by peer]
siddharth has quit [Ping timeout: 240 seconds]
colleenmcguckin has joined #ruby
banister has joined #ruby
RegulationD has joined #ruby
siddharth has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
The_Phoenix has joined #ruby
konsolebox has quit [Quit: Leaving]
dlitvak has quit [Remote host closed the connection]
jbrhbr has quit [Quit: Leaving.]
collembolic has joined #ruby
Macaveli has joined #ruby
dlitvak has joined #ruby
baweaver has quit [Remote host closed the connection]
collembolic has quit [Changing host]
collembolic has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
colegatron has quit [Ping timeout: 265 seconds]
n1x has joined #ruby
spider-mario has joined #ruby
nixmaniack has quit [Read error: Connection reset by peer]
<linelevel> Hello. I am running Redmine via Puma on an Ubuntu 14.04 server. After editing a config file, I could not get the new changes to take effect. As a last resort, I tried rebooting the entire server (obviously I could never do this on a production server), and it worked. So clearly I was not restarting Redmine properly to reload the new config. I had been attempting to restart it via upstart, which essentially runs `bundle exec puma --config config/p
jun_ has joined #ruby
jbrhbr has joined #ruby
Bloomer has quit [Remote host closed the connection]
diegoviola has joined #ruby
n1x has quit [Read error: Connection reset by peer]
devbug has joined #ruby
nixmaniack has joined #ruby
nixmaniack has quit [Changing host]
nixmaniack has joined #ruby
baweaver has joined #ruby
<apeiros> linelevel: when you don't get an answer, one reason can be that you didn't provide sufficient info
Waheedi has joined #ruby
<apeiros> linelevel: while I'm not familiar with upstart, I noticed some things about your question:
<Waheedi> I'm trying to do a post request using net::http
<apeiros> you don't say *how* exactly you tried to reboot it via upstart. you say "essentially runs X", why not exactly what?
dlitvak has quit [Remote host closed the connection]
<Waheedi> I'm trying to find out the best way I can pass Query String Params and Form data in the same request
PedramT has joined #ruby
<Waheedi> I'm aware of the set_form_data and I know i can use it to pass form data but not sure about the Query String params though
<apeiros> linelevel: unrelated to that: stopping and starting puma absolutely should reload the config. so I'd assume that there's indeed something wrong with the way you reboot via upstart.
harushimo has joined #ruby
<harushimo> I've got rbenv but I can't seem to get 2.2.3 on the list as installation source
<harushimo> why is that
<hxegon> is there a way to explode arrays in block params?
<hxegon> like [[1, 2], [3, 4]].each do |(a,b)|...
<jhass> doesn't work?
<linelevel> apeiros: in Ubuntu, you restart services via upstart by running `service <service_name> upstart`. In this case, <service_name> is `redmine`, so I ran `service redmine restart`. This runs an upstart init script which sets up the environment, then runs the `bundle exec puma --config config/puma.rb`.
timonv has quit [Ping timeout: 265 seconds]
<linelevel> apeiros: I meant to write `service <service_name> restart` in the first sentence, of course.
<harushimo> i installed using apt-get
<shevy> damn
ascarter has joined #ruby
<jhass> harushimo: if you want to use a packaged ruby, don't use rbenv
n1x has joined #ruby
<diegoviola> I've installed ruby to /usr/local with ruby-install, is there a way to remove this?
<jhass> if you want to use rbenv, don't use a packaged ruby
<diegoviola> I don't think there's a make uninstall in the src
<harushimo> oh really? why not
rdark has quit [Ping timeout: 256 seconds]
nixmaniack has quit [Read error: Connection reset by peer]
<harushimo> jhass: I'm curious
colleenmcguckin has quit [Read error: Connection reset by peer]
<jhass> because those don't work well together
<hxegon> jhass, hmm... ah. just realized I'm actually working with [{}], not [[]]
synthroid has joined #ruby
<shevy> diegoviola can you delete manually
<jhass> harushimo: maybe you're looking for something like chruby
<harushimo> jhass: I'm getting ruby for CF
colleenmcguckin has joined #ruby
<harushimo> jhass: what do you recommend?
<diegoviola> shevy: how though? and how do I know which files in /usr/local were installed from ruby
<diegoviola> and which ones don't
<jhass> CF?
<shevy> diegoviola what do you mean how, are you not using linux
<harushimo> cloud foundry
<diegoviola> shevy: yes, I know, with rm
<jhass> not familiar with whatever that is
<Waheedi> for example i need to simulate something like this with ruby curl 'https://website.com/?param=1&param=2'; --data 'name=x'
<shevy> diegoviola excellent!
<jhass> harushimo: why do you want to use rbenv?
dorei has joined #ruby
<diegoviola> shevy: I want to delete all files that were installed from ruby
<shevy> yes
<harushimo> jhass: it was a part of an instruction set that was given to me
<jhass> so ask whoever gave it to you for support?
<shevy> diegoviola the bin/ files from a default ruby should be: ruby, irb, ri, erb, gem, rake, rdoc
<diegoviola> shevy: there's more to that
<shevy> diegoviola not to bin/
<shevy> did you get rid of these files yet
scripore has joined #ruby
<shevy> next will be lib/ by default all that will be *ruby* there
<diegoviola> shevy: ok
<shevy> in particular lib/ruby/ and lib/libruby.so.2.2.0 (and some other so-named ones)
<harushimo> jhass: relax..I'm just wondering
<shevy> and once you got rid of this, you are about 80% complete already
colegatron has joined #ruby
<diegoviola> shevy: thanks
<harushimo> jhass: I did this same tutorial a few mons before I rebuilt my computer.
devbug has quit [Read error: Connection reset by peer]
<shevy> there should be an include aka /usr/local/include/ruby-2.2.0/ but only one directory
wjimenez5271 has quit [Ping timeout: 272 seconds]
<shevy> you can also get rid of /usr/local/share/ri/ if you want to
<jhass> harushimo: if it no longer works you probably skipped a step of it then
<diegoviola> shevy: ty
<harushimo> jhass: yep
PedramT has quit []
baweaver has quit [Remote host closed the connection]
<harushimo> jhass: sorry if I offending anyone. I'm just learning here
<shevy> and share/doc/ruby/ but these really should not be any problem, the newer installed ruby has all information it needs normally e. g. in RbConfig or gem env
<shevy> now it's 100% done!
devbug has joined #ruby
dsdeiz has quit [Ping timeout: 240 seconds]
<jhass> harushimo: and I'm just saying that trying to use a packaged ruby through rbenv is rather untypical. While I'm not familiar enough with rbenv to say for sure, I highly doubt it's even possible
Amnez777 has quit [Ping timeout: 260 seconds]
Amnez777 has joined #ruby
Amnez777 has quit [Max SendQ exceeded]
<harushimo> jhass: I prefer doing it that way
<jhass> then better figure out which step you skipped if it worked in the past
<harushimo> jhass: I prefer doing it from source if I can. I'm not liking the package managers
dolf has joined #ruby
Amnez777 has joined #ruby
<jhass> harushimo: now you're contradicting yourself
wjimenez5271 has joined #ruby
minimalism has joined #ruby
<shevy> lol
<shevy> poor jhass, has to deal with constantly changing specs from harushimo :)
<linelevel> apeiros: I have now tried it manually, and can confirm that restarting Puma does NOT reload the Redmine config.
<harushimo> I'm not changing anything here
<harushimo> hehe
<shevy> first rbenv... then suddenly apt-get ... now source
<shevy> come on harushimo
<shevy> what is the next ... rvm?
<harushimo> yes rvm heeh
<apeiros> linelevel: when you stopped redmine, was it indeed gone? as in, no longer reachable via the browser?
<harushimo> In all honesty, I'll usually do it from source but I use the package managers if I'm feeling lazy
<harushimo> package managers are my back up option
<shevy> I do it from source too
cjbottaro has joined #ruby
<jhass> curious, for me it's the other way around
<jhass> I usually write a package before using the source, unless I'm super lazy
<linelevel> apeiros: Yes, I checked that after `service redmine stop`. I got a bad gateway error from nginx. Then I did `service redmine start`, and the site loaded, but the config had not reloaded.
nettoweb has joined #ruby
<harushimo> haha..nice. I've run into problems when installing ruby through apt-get because it doesn't get updated
<jhass> I can imagine, most distros suck there
<shevy> yeah debian can be scary
TinkerTyper has joined #ruby
<harushimo> they do
<shevy> jhass have you had a look at voidlinux yet? (I only know that it exists, I have not tried it myself)
<jhass> the name rings a bell but I forgot everything about it
<shevy> hehe
<shevy> harushimo so have you finally decided on the one true way to use ruby yet
<jhass> is that the folks using nix?
n1x has quit [Read error: Connection reset by peer]
TinkerTyper has quit [Max SendQ exceeded]
nixmaniack has joined #ruby
timonv has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
<shevy> jhass hmm not sure... I thought it was separate... I knew it from stalking, I mean, following him here https://github.com/voidlinux/void-packages/commits?author=chneukirchen
dolf has quit [Quit: Leaving]
<harushimo> yeah
<harushimo> I've done ruby installs in the past so many times
<harushimo> what do you one true way?
<harushimo> what do you mean by one true way? is there one?
<shevy> source of course ftp://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.4.tar.xz but if you have to fight the underlying base system then it may not be worth it
axl_ has quit [Quit: axl_]
<harushimo> right
TinkerTyper has joined #ruby
<shevy> on debian typically some bindings will not be compiled such as readline, unless you have readline-dev there
<harushimo> i didn't know that
stannard has joined #ruby
howdoicomputer has joined #ruby
<shevy> default openssl also tended to be a problem, you may also have to make availabe libyaml, for psych http://pyyaml.org/download/libyaml/yaml-0.1.6.tar.gz
TinkerTyper has quit [Max SendQ exceeded]
FernandoBasso1 has quit [Quit: Leaving]
<harushimo> interesting. Thanks for the tips everyone
<jhass> harushimo: note that's just shevy's opinion, few share it
moeSeth has quit [Quit: Connection closed for inactivity]
<harushimo> right
<shevy> <jhass> I can imagine, most distros suck there
duncannz has joined #ruby
<jhass> if you want to use rbenv I would recommended rbenv's recommended way to install ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
<harushimo> jhass: I agree with you for some odd reason -v 2.2.3 doesn't show up on the versions list for ruby
Madhur__ has joined #ruby
TinkerTyper has joined #ruby
<jhass> well you said you installed ruby with apt-get, not rbenv
hobodave has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TinkerTyper has quit [Max SendQ exceeded]
makaveli0227TL has quit [Remote host closed the connection]
rdavila has quit [Ping timeout: 240 seconds]
pandaant has quit [Remote host closed the connection]
Madhur_ has quit [Ping timeout: 256 seconds]
TinkerTyper has joined #ruby
dlitvak has joined #ruby
TinkerTyper has quit [Max SendQ exceeded]
_djbkd has quit [Remote host closed the connection]
jun_ has quit [Remote host closed the connection]
_djbkd has joined #ruby
jun_ has joined #ruby
bubbys has joined #ruby
RegulationD has joined #ruby
aphprentice has quit [Quit: Connection closed for inactivity]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rikai has quit [Quit: No Ping reply in 180 seconds.]
edwinvdgraaf has joined #ruby
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
roshanavand has quit [Remote host closed the connection]
benhuda has quit [Quit: Textual IRC Client: www.textualapp.com]
TheSuper has joined #ruby
benhuda has joined #ruby
solocshaw has joined #ruby
davedev24 has joined #ruby
kies^ has quit [Ping timeout: 272 seconds]
rakm has joined #ruby
zeroDivisible has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
ur5us has joined #ruby
[Butch]_ has joined #ruby
davedev2_ has quit [Ping timeout: 260 seconds]
zeroDivisible has quit [Client Quit]
Authenticator has quit [Remote host closed the connection]
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
zast has quit [Remote host closed the connection]
zeroDivisible has joined #ruby
[Butch] has quit [Ping timeout: 255 seconds]
[Butch]_ is now known as [Butch]
jackjackdripper has joined #ruby
dmolina1 has quit [Ping timeout: 265 seconds]
cdg has quit [Remote host closed the connection]
Anderson69s has joined #ruby
seitensei has quit [Ping timeout: 240 seconds]
yes`r has quit [Read error: Connection reset by peer]
hobodave has quit [Quit: Computer has gone to sleep.]
scripore has quit [Quit: This computer has gone to sleep]
yeshacker has joined #ruby
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
nixmaniack has quit [Read error: Connection reset by peer]
nixmaniack has joined #ruby
nixmaniack has quit [Changing host]
nixmaniack has joined #ruby
nixmaniack has quit [Client Quit]
cassioscabral has quit [Read error: Connection reset by peer]
rikai has joined #ruby
cassioscabral has joined #ruby
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s00pcan has quit [Ping timeout: 260 seconds]
The_Phoenix has quit [Read error: Connection reset by peer]
hobodave has joined #ruby
s00pcan has joined #ruby
frem has joined #ruby
roshanavand has joined #ruby
jxs_ has joined #ruby
hahuang65 has quit [Ping timeout: 255 seconds]
roshanavand has quit [Remote host closed the connection]
hahuang65 has joined #ruby
jdm has joined #ruby
<ZeeNoodley> undefined method `signame' for Signal:Module (NoMethodError)
<ZeeNoodley> wat
roshanavand has joined #ruby
gr33n7007h has joined #ruby
yqt has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
dotix has joined #ruby
dotix has joined #ruby
seitensei has joined #ruby
mchu has joined #ruby
TomPeed has joined #ruby
duncannz has quit [Ping timeout: 265 seconds]
mchu has left #ruby [#ruby]
gr33n7007h is now known as al2o3-cr
huyderman has quit [Remote host closed the connection]
ruby-lang960 has joined #ruby
roshanavand has quit [Remote host closed the connection]
cassioscabral has joined #ruby
dlitvak has quit [Remote host closed the connection]
ruby-lang960 has quit [Ping timeout: 252 seconds]
cjbottaro has joined #ruby
rgtk has joined #ruby
cajone has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
AncientAmateur has joined #ruby
nunchuck has joined #ruby
startupality has quit [Quit: startupality]
kalopsian has joined #ruby
karapetyan has quit [Remote host closed the connection]
<harushimo> i got rbenv working again
baweaver has joined #ruby
rgtk has quit [Ping timeout: 246 seconds]
ElFerna has joined #ruby
<Waheedi> I'm still looking for some help figuring out if I can send a query string params and a form data in one post request
cajone has joined #ruby
yardenbar has joined #ruby
yardenbar has quit [Remote host closed the connection]
cornerma1 has joined #ruby
shock_one has joined #ruby
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
baweaver has quit [Ping timeout: 265 seconds]
yardenbar has joined #ruby
devbug has quit [Read error: Connection reset by peer]
mchu has joined #ruby
devbug has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mchu has left #ruby [#ruby]
last_staff has quit [Quit: last_staff]
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<TomyWork> what's a good way to make conditional parts in an erb template? <% if blahblah %> seems wordy
sparr has left #ruby ["WeeChat 1.0"]
ramfjord has joined #ruby
roshanavand has joined #ruby
s00pcan has quit [Ping timeout: 265 seconds]
cassioscabral has quit [Quit: cassioscabral]
blackmesa has quit [Ping timeout: 260 seconds]
howdoicomputer has quit [Ping timeout: 255 seconds]
<shevy> TomyWork but that is regular ruby code
<TomyWork> shevy well i know at least one template languages where you can make a part conditional on the existence of all variables references in it
<TomyWork> referenced*
davedev2_ has joined #ruby
eytanfb has quit [Remote host closed the connection]
Vitor has joined #ruby
<mg^> I'm not sure I'd call erb a "template language"... it's a template system and the language is ruby
poguez_ has quit [Quit: Connection closed for inactivity]
<TomyWork> it certainly is a language in the same way aba*bb* is a language :)
roshanavand has quit [Ping timeout: 256 seconds]
<TomyWork> well it's a regular expression generating a language...
<mg^> semantics at this point, I think
colegatron has quit [Ping timeout: 240 seconds]
<TomyWork> well there might be semantic sugar
rmrrn has quit [Ping timeout: 245 seconds]
<shevy> there are not many things you can do in erb on top of ruby; there is... what was it... <= or something... and one more I think, but that was it
<TomyWork> other than <%= foo %> == <% puts foo %>, that is
<TomyWork> k
<TomyWork> well minimalism is good
<shevy> but you still have to use regular ruby inside :)
davedev24 has quit [Ping timeout: 260 seconds]
<shevy> that documentation is pretty bad actually :\
cjbottaro has joined #ruby
jpfuentes2 has joined #ruby
<mg^> yeah
bin7me has joined #ruby
davedev2_ has quit []
eytanfb has joined #ruby
<mg^> I write a lot of erb templates thanks to puppet
<TomyWork> hehe
<TomyWork> that's what got me started with erb
idefine has joined #ruby
<TomyWork> but right now i'm writing a tiny sinatra app
<TomyWork> a gitlab webhook
malconis has quit [Read error: Connection reset by peer]
<TomyWork> (yay more ruby)
malconis has joined #ruby
yfeldblum has joined #ruby
kappy has quit [Quit: Lost terminal]
baweaver has joined #ruby
Waheedi has quit [Quit: Waheedi]
<shevy> you could probably write your own template replacement thingy that allows you to use a shorter syntax style
renemaya has quit [Quit: Re has gone to sleep. ZZZzzz…]
Dimik has quit [Ping timeout: 255 seconds]
calderonroberto has joined #ruby
eytanfb has quit [Ping timeout: 265 seconds]
<Papierkorb> Or extend upon others. I do that (not your issue) with HAML.
FooMunki has quit [Quit: FooMunki]
avahey has joined #ruby
eytanfb has joined #ruby
dlitvak has joined #ruby
colegatron has joined #ruby
jinie_ has joined #ruby
s00pcan has joined #ruby
jinie has quit [Remote host closed the connection]
jinie_ is now known as jinie
henrikthomasson has joined #ruby
bin7me has quit [Quit: Leaving]
symm- has quit [Ping timeout: 240 seconds]
bin7me has joined #ruby
rmrrn has joined #ruby
rmrrn has quit [Changing host]
rmrrn has joined #ruby
freerobby has quit [Quit: Leaving.]
kalopsian has quit [Ping timeout: 256 seconds]
alex88 has quit [Remote host closed the connection]
ferr has joined #ruby
dlitvak has quit [Ping timeout: 272 seconds]
ferr has quit [Client Quit]
gamename has joined #ruby
symm- has joined #ruby
drbernardi has quit [Quit: Leaving]
devbug has quit [Ping timeout: 255 seconds]
jdm has quit [Quit: Leaving]
jdm has joined #ruby
jbrhbr has quit [Quit: Leaving.]
InvGhost has joined #ruby
f00bar-32 has quit [Ping timeout: 246 seconds]
<gamename> hi guys. I'm not a ruby programmer, but I need to do something pretty trivial in it. I need to look for all files in .ssh which contain '---BEGIN .* PRIVATE KEY---' and return those file name paths in an array. Got any examples you can point me to?
henrikthomasson has quit []
ferr has joined #ruby
<Papierkorb> gamename: Dir["#{ENV['HOME']}/.ssh/*"].select{|path| File.readlines(path).grep(/---BEGIN .* PRIVATE KEY---/) rescue nil}.compact
<Papierkorb> “not tried it, only proved it correct”
davedev24 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<gamename> Papierkorb Thanks! :)
<apeiros> that won't work
<apeiros> File.read(path) =~ /aboveregex/
<Papierkorb> oh right, [] is truthy
<apeiros> and no .compact (pointless with .select in any case)
eytanfb has quit [Remote host closed the connection]
cassioscabral has joined #ruby
TheSuper has quit [Ping timeout: 272 seconds]
ferr has quit [Client Quit]
<gamename> apeiros Dir["#{ENV['HOME']}/.ssh/*"].select{|path| File.readlines(path) =~ /---BEGIN .* PRIVATE KEY---/} ???
ferr has joined #ruby
<apeiros> gamename: read, not readlines
Micaela has joined #ruby
Micaela has left #ruby [#ruby]
<Papierkorb> apeiros, gamename, don't leave out the "rescue nil" clause, the path might be a directory
renemaya has joined #ruby
renemaya has quit [Client Quit]
<gamename> This seems to work: Dir["#{ENV['HOME']}/.ssh/*"].select{|path| File.read(path) =~ /---BEGIN .* PRIVATE KEY---/ rescue nil}
<Papierkorb> Looks good. Just make sure that the $HOME evironment variable is set ;)
<apeiros> Papierkorb: ah, that's why you had it in there. ugly solution for that problem IMO.
<gamename> Papierkorb Thanks. Will do.
<apeiros> File.file?(path) && File.read(…) =~ …
<Papierkorb> apeiros: I forgot which method it was to test if it's a file
<apeiros> much better than just swallow all exceptions
<apeiros> aka: don't use exceptions for expected behavior.
<TomyWork> ruby's regexes have named captures. Can I backreference them in string.gsub(regex, replacement) somehow?
dlitvak has joined #ruby
<apeiros> TomyWork: Regexp documents how
<TomyWork> i tried message.gsub(@commit_regex, '\g<comment>')
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> &ri Regexp @TomyWork
<`derpy> class `Regexp`: A Regexp holds a regular expression, used to match a pattern against strings. Re… • http://rubydoc.info/stdlib/core/Regexp
<TomyWork> @commit_regex = /^(?<issue_id>[A-Z]+-[0-9]+) (?<comment>.*)$/
henrikthomasson has joined #ruby
<apeiros> might be in the separate regex doc file
prestorium has quit [Quit: Leaving]
millerti has joined #ruby
<TomyWork> apeiros it is covered, but the backref style described there doesnt work
aryaching has quit []
<bithon> clear
<TomyWork> it shows up as a literal \g<comment>
<mg^> there was some limitation to using references in certain circumstances, but it's been a while since I encountered them
<mg^> I believe those were solved by using the block form
TheSuper has joined #ruby
TheSuper has left #ruby [#ruby]
<apeiros> TomyWork: are you using an ancient ruby?
slackbotgz has joined #ruby
<apeiros> TomyWork: um, it's not documented as *\g*, it's *\k*
auxbuss has joined #ruby
<apeiros> "Named groups can be backreferenced with \k<name>, where name is the group name."
f00bar-32 has joined #ruby
auxbuss has quit [Client Quit]
dlitvak has quit [Ping timeout: 265 seconds]
devbug has joined #ruby
<TomyWork> oh, \g is a subexpression *call*
<TomyWork> thanks
kappy has joined #ruby
synthroid has quit []
pwnd_nsfw has quit [Ping timeout: 240 seconds]
eytanfb has joined #ruby
beast has quit [Quit: Leaving]
Anderson69s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dotix has quit [Ping timeout: 272 seconds]
DavidDudson has joined #ruby
eytanfb has quit [Ping timeout: 240 seconds]
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
eytanfb has joined #ruby
karapetyan has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
<TomyWork> crap. my gitlab webhook gets one POST request for every branch pushed. So if i push one commit to multiple branches, I get multiple simultaneous requests. sinatra apparently is able to serve those simultaneously too
<TomyWork> so... is there a simple way to mutex those? :)
<TomyWork> i'm using sinatra
Waheedi has joined #ruby
<jhass> uh
<jhass> Mutex?
<TomyWork> yeah i just found it. it's so simple, it doesnt even need any sugar :)
<TomyWork> i'm just so used to other languages where the on-board stuff is usually ugly
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arthurix has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
TinkerTyper has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
pwnd_nsfw has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
TinkerTyper has quit [Max SendQ exceeded]
_djbkd has quit [Remote host closed the connection]
mchu has joined #ruby
passerine has joined #ruby
renemaya has joined #ruby
cdg has joined #ruby
hobodave has joined #ruby
mchu has left #ruby [#ruby]
hxegon has quit [Quit: Leaving]
TinkerTyper has joined #ruby
rodferso1 has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
rodfersou has quit [Ping timeout: 240 seconds]
Idakyne has joined #ruby
kadoppe has quit [Ping timeout: 272 seconds]
<hfp> Hi all, is there a more idiomatic way to write `Hash.reject { |el| !foo.include? el }' ?
ornerymoose has quit [Quit: ornerymoose]
<jhass> hfp: select and skip the !
<jhass> with more context there might be a way to avoid it altogether
agent_white has joined #ruby
kadoppe has joined #ruby
maletor has joined #ruby
InvGhostt has joined #ruby
<maletor> Can I override `each` to wrap all the members in a decorator class? https://gist.github.com/maletor/01c3985a8e12f65de5b4
<jhass> maletor: yes?
ramfjord has joined #ruby
<maletor> jhass: where did i go wrong on that gist?
<jhass> oh
<jhass> why don't you just use map?
<maletor> i changed to map and i have the same issue
<jhass> .each shall return the original collection
Macaveli has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
<jhass> I'm not sure whether what you want makes any sense tbh
smactive has joined #ruby
<maletor> gotcha, can you try and help me make sense of what i'm trying to do lol
<jhass> maletor: could you show some more context and example uses with desired behavior described?
slackbotgz has quit [Remote host closed the connection]
<maletor> i have a collection obj. a skilleduserlist that i want to include enumerable in. i'll be passing users in here. when i iterate through the collection i want instances of skilledusers. a decorator around a user.
<jhass> maletor: so just results.each do |result| yield SkilledUser.new(result) end ?
<maletor> ah yield
yfeldblum has quit [Ping timeout: 240 seconds]
akem has joined #ruby
<jhass> maletor: well, block.call(SkilledUser.new(result)) would be basically equivalent
<jhass> behavior wise anyway
InvGhost has quit [Ping timeout: 260 seconds]
jun_ has quit [Remote host closed the connection]
<maletor> do you mean results.map?
<maletor> or results.each
<jhass> .each
smactive has quit [Ping timeout: 265 seconds]
<maletor> jhass, merry christmas that works
nertzy has joined #ruby
howdoicomputer has joined #ruby
_djbkd has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jun_ has joined #ruby
InvGhostt has quit [Ping timeout: 260 seconds]
AKASkip has quit [Ping timeout: 272 seconds]
<toretore> anyone ever run across "fiber called across stack rewinding barrier (FiberError)"?
<toretore> in ruby 2+ only
<toretore> (it seems)
jbrhbr has joined #ruby
CloCkWeRX has joined #ruby
<hfp> thanks jhass
eytanfb has quit [Remote host closed the connection]
<Waheedi> I believe no have even answered that guy
<Waheedi> so good luck :)
<Waheedi> no one*
symm- has quit [Ping timeout: 265 seconds]
CloCkWeRX has quit [Ping timeout: 260 seconds]
Spami has joined #ruby
baweaver has joined #ruby
maletor has quit [Quit: Textual IRC Client: www.textualapp.com]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Radar> Waheedi: It's not possible due to the HTTP spec iirc
<Radar> Waheedi: post params override query string. You should pass the query string as a parameter inside the post
<Waheedi> that sometimes does not make any sense
<Radar> what
<Waheedi> to pass the query string as a parameter inside the post?
SCHAAP137 has quit [Remote host closed the connection]
<Radar> Yes, you will need to do that.
<Radar> Otherwise query string won't be present in next request
<Radar> only post params
<Waheedi> alright
<Waheedi> maybe I better use curl then
<Radar> can't tell if trolling
<Radar> curl will have the same problems iirc
<Waheedi> no
* Radar throws hands in the air, gives up
Jackneill has quit [Remote host closed the connection]
<Waheedi> curl 'http://website.com/t?query=string'; --data 'name=data'
<Radar> Ok, great so you know how to do it then. Problem solved.
<Waheedi> this is a get request though
<Waheedi> lol
<Radar> This is why I ask for code to reproduce issues :(
<Radar> You trapped me into giving an answer without code
<Radar> gg
<Waheedi> ;0
n008f4g_ has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
eytanfb has joined #ruby
<Waheedi> thanks Radar :)
<Waheedi> merry christmas :)
dlitvak has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
solocshaw has quit [Remote host closed the connection]
DavidDudson has joined #ruby
diego2 has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
InvGhostt has joined #ruby
diegoviola is now known as Guest45110
diego2 is now known as diegoviola
Guest45110 has quit [Ping timeout: 246 seconds]
rgtk has joined #ruby
henrikthomasson has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 260 seconds]
SCHAAP137 has joined #ruby
solocshaw has joined #ruby
Idakyne has quit [Ping timeout: 240 seconds]
dlitvak has quit [Remote host closed the connection]
dotix has joined #ruby
symm- has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
delsol has joined #ruby
fsfsfs has joined #ruby
<delsol> is there something stupid I'm missing? ruby doesn't seem to want to chmod a directory to 777.....
<delsol> it'll go to 755.... but not 777
rgtk has quit [Ping timeout: 246 seconds]
sgambino has joined #ruby
<adaedra> How do you do it?
<delsol> File.chmod(0777, "directory")
dotix has quit [Ping timeout: 256 seconds]
f00bar-32 has quit [Ping timeout: 265 seconds]
<apeiros> afaik query params are fine in a post request. they're just part of the uri. but what the server makes of it is a different question.
<apeiros> also note that a browser sending a form is an entirely different thing :)
<adaedra> delsol: works for me. Do you have the right access rights to the parent folder? Does it works from the shell?
<delsol> apeiros: this isn't a web app...
ferr has quit [Quit: WeeChat 1.3]
<apeiros> (there it won't work due to html spec, not http spec)
<delsol> adaedra: works fine from the shell.
<delsol> from actual shell..
<apeiros> delsol: not talking to you
<adaedra> delsol: I think apeiros is replying to someone else :)
<adaedra> dammit
<apeiros> sniped
* adaedra dies
<apeiros> *zing*
<adaedra> delsol: Try with FileUtils.chmod, to see?
<fsfsfs> Whats a good IDE on Windows for whos starting Ruby, dont need anything advanced but an integrated compiler and console would be cool
codecop has quit [Remote host closed the connection]
hahuang65 has joined #ruby
<apeiros> but re delsol: umode maybe?
<apeiros> err, umask
<delsol> adaedra: works fine sitting at TTYS2, doesn't work with ruby backticks, or File.chmod
stannard has quit [Remote host closed the connection]
passerine has quit [Ping timeout: 240 seconds]
<delsol> apeiros: hmmmm.....
build22_ has joined #ruby
<apeiros> though I thought that only applies to defaults…
<adaedra> fsfsfs: Most known IDE Ruby is RubyMine. But many people use just a text editor and a terminal. Also. many people would avoid Windows.
<apeiros> ah well, afk. time for xenoblade.
blackmesa has joined #ruby
<adaedra> delsol: and with `FileUtils.chmod`? (Not File, FileUtils) It may be implemented differently.
Idakyne has joined #ruby
<adaedra> Otherwise, yes, you should look at umask, but it would be strange to affect this.
<delsol> adaedra: haven't tried FileUtils
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
jxs_ has quit [Remote host closed the connection]
<fsfsfs> adaedra, thanks. I dislike navigating between term and text editor every minute.
howdoi has quit [Quit: Connection closed for inactivity]
freerobby has quit [Quit: Leaving.]
nertzy has quit [Quit: This computer has gone to sleep]
n008f4g_ has quit [Ping timeout: 240 seconds]
snoozelose has joined #ruby
snoozelose has quit [Changing host]
snoozelose has joined #ruby
steffkes has joined #ruby
steffkes has quit [Changing host]
steffkes has joined #ruby
valetudo has quit [Remote host closed the connection]
<delsol> adaedra, apeiros: it was umask... :)
<adaedra> That's strange.
<adaedra> System?
<delsol> and thats why you should assume everyone is talking to you... sometimes you get a second answer... :)
<delsol> slackware
krobzaur has quit [Ping timeout: 272 seconds]
<adaedra> So Linux
<delsol> yeah
<adaedra> Ruby version?
Vitor has quit [Ping timeout: 255 seconds]
kaleido has joined #ruby
<delsol> 2.suck.sucks_more
<delsol> 2.0.0p353
<adaedra> Because I just tried on my Linux, and even with a 022 umask, it allows me to chmod 0777
sneakerhax has quit [Ping timeout: 272 seconds]
<delsol> I've got new ruby compiled, and running on test machine, with rails 3.2.x that still runs everything, but haven't tested enough to deploy....
fantazo has quit [Ping timeout: 265 seconds]
sneakers has joined #ruby
<mg^> yeah umask should only restrict the default modes for file creation
pandaant has joined #ruby
<mg^> explicit mode setting should be fine
<adaedra> And installing a 2.0 just for that, thanks but no thanks.
jessemcgilallen has joined #ruby
<delsol> adaedra: yeah... once I get more testing done, I'll be moving to 2.2.3
renemaya has quit [Quit: Re has gone to sleep. ZZZzzz…]
<delsol> anyways, thanks for the help!
<shevy> does rails make you lazy!
renemaya has joined #ruby
<adaedra> funny, your sentence looks like a question, but ends with !.
ElFerna has quit [Ping timeout: 255 seconds]
chipotle has quit [Ping timeout: 240 seconds]
<delsol> shevy: yes. Before you know it, instead of writing one SQL query by hand, you'll let activerecord make 750 queries on the same row.... for the same answer..... and It'll be OK...
<delsol> LOL
<adaedra> You don't need ActiveRecord for that, tbh.
<delsol> its easier in activerecord though.
<adaedra> And if you look at your console, you notice it quickly.
ElFerna has joined #ruby
<adaedra> But lazy developers are a good thing.
<shevy> ruby 1.8
<adaedra> get out with your dinosaur.
<shevy> lol
<delsol> in PHP, even doing a query in a query in a while() loop...
ta has quit [Remote host closed the connection]
dlitvak has joined #ruby
<delsol> your inside query is generally not a query with joins and all sorts of other insanity...
<shevy> php is now at version 7
karapetyan has quit [Remote host closed the connection]
<kaleido> php looks funny
karapetyan has joined #ruby
<AncientAmateur> @shevy take that as a warning sign and run
<AncientAmateur> err kaleido that is
<shevy> I'll run with kaleido!
sankaber has quit [Remote host closed the connection]
<adaedra> You should.
<AncientAmateur> just...php...not even once.
<delsol> nothing wrong with PHP....
<AncientAmateur> I'm not a fan
<adaedra> plenty of things, but that's not the topic of this channel.
<adaedra> ?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!
dhollinger has quit [Quit: WeeChat 1.3]
devbug has quit [Ping timeout: 272 seconds]
mchu has joined #ruby
chipotle has joined #ruby
<shevy> ruby is better than php
<kaleido> ().indeed
<adaedra> that includes you, shevy.
ramortegui has quit [Quit: Ex-Chat]
karapetyan has quit [Ping timeout: 246 seconds]
chipotle_ has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
hxegon has joined #ruby
chipotle has quit [Ping timeout: 256 seconds]
jgpawletko has quit [Ping timeout: 272 seconds]
snoozelose has quit [Quit: Leaving]
kstuart has quit [Quit: WeeChat 1.3]
Channel6 has quit [Ping timeout: 260 seconds]
neanderslob has quit [Ping timeout: 260 seconds]
_djbkd has quit [Ping timeout: 256 seconds]
dlitvak has quit [Remote host closed the connection]
neanderslob has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
jessemcgilallen has joined #ruby
klafka has joined #ruby
calderonroberto has quit [Remote host closed the connection]
steffkes has quit [Ping timeout: 265 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
ElFerna has quit [Ping timeout: 240 seconds]
<klafka> hi I'm trying to use a SortedSet to maintain a list of the top 5 dates as I iterate through an array of dates - https://gist.github.com/jtmcmc/2e22235642c8d891137c however the outcome here is that only one item is ever removed. It's weird because when I play with SortedSet on console it acts as expected but not in this script - any ideas?
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n_blownapart has joined #ruby
bogn has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
siddharth has quit [Ping timeout: 240 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
<klafka> using while > 5 rather than if works - but I don't understand why really
fsfsfs has quit [Quit: Leaving]
ferr has joined #ruby
ramfjord has joined #ruby
|3|ackn|gg3|2 has joined #ruby
<toretore> .to_a create another object
ferr has quit [Client Quit]
<toretore> your original SortedSet remains unchanged
<|3|ackn|gg3|2> to_a = array
bogn has joined #ruby
glenny has joined #ruby
<|3|ackn|gg3|2> an array is a thing that holds multiple things
hobodave has joined #ruby
siddharth has joined #ruby
nofxx has quit [Ping timeout: 255 seconds]
jdm has quit [Read error: Connection reset by peer]
<klafka> what's weird though is that the behavior isn't that within the IRB (if you see the comment I put in the gist) which is confusing. perhaps the delta here is around understanding how methods feed into each other / mutate objects
<adaedra> !ban |3|ackn|gg3|2 !P Unacceptable nick
|3|ackn|gg3|2 was kicked from #ruby by ChanServ [Banned: Unacceptable nick]
zenlot2 has joined #ruby
pandaant has quit [Remote host closed the connection]
akaiiro has joined #ruby
zenlot1 has quit [Ping timeout: 256 seconds]
<toretore> klafka, the output in your comment isn't visible
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<toretore> set.to_a.shift will not mutate set
Bellthoven has joined #ruby
Bellthoven has quit [Client Quit]
colleenmcguckin has quit []
<klafka> aah i see i didn't copy far enough - my bad
colleenmcguckin has joined #ruby
Bellthoven has joined #ruby
eytanfb has quit [Remote host closed the connection]
Guest69624 has quit []
<delsol> adaedra: So, it turns out....... another developer had " `chmod -R 755 #{ROOT_PATH}/log/exceptions` if i_am_server? "
blackgoat has joined #ruby
Guest69624 has joined #ruby
rakm has joined #ruby
colleenmcguckin has quit [Client Quit]
<delsol> thus, when it doesn't run the whole way through, it was 777.... when it fully ran everything else, 755....
* delsol ducks.
juddey has joined #ruby
<toretore> still not visible klafka
<klafka> why is it cutting off
<klafka> so weird
<adaedra> delsol: told you it wasn't normal.
<toretore> use markdown code syntax
spider-mario has quit [Read error: Connection reset by peer]
AncientAmateur has quit [Ping timeout: 260 seconds]
Guest69624 has quit [Client Quit]
colleenmcguckin has joined #ruby
Didac has quit [Ping timeout: 240 seconds]
braderhart has joined #ruby
* delsol makes notes to check other developer changing file permissions...
<klafka> ta thanks a bunch now fixed
delsol has left #ruby [#ruby]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jgpawletko has joined #ruby
colleenmcguckin has quit []
jgpawletko has quit [Client Quit]
colleenmcguckin has joined #ruby
colleenmcguckin has quit [Remote host closed the connection]
colleenmcguckin has joined #ruby
baweaver has quit [Remote host closed the connection]
_djbkd has joined #ruby
ur5us has quit [Remote host closed the connection]
colleenmcguckin has quit [Client Quit]
colleenmcguckin has joined #ruby
<Waheedi> Radar: I just double checked --data change the request to POST and yes it passes the query string and also the request body
ChameleonSix has joined #ruby
jgpawletko has joined #ruby
<ChameleonSix> hello
<bithon> hey
pglombardo has quit [Ping timeout: 246 seconds]
akem has quit [Remote host closed the connection]
dlitvak has joined #ruby
yeshacker has quit [Ping timeout: 256 seconds]
_djbkd has quit [Ping timeout: 255 seconds]
eytanfb has joined #ruby
eytanfb has quit [Remote host closed the connection]
andrew9183 has joined #ruby
eytanfb has joined #ruby
ChameleonSix has quit [Ping timeout: 252 seconds]
devbug has joined #ruby
jun_ has quit [Remote host closed the connection]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Wompy has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
InvGhostt has quit [Ping timeout: 260 seconds]
Ropeney has joined #ruby
Didac has joined #ruby
sneakers has quit [Ping timeout: 272 seconds]
shock_one has quit [Remote host closed the connection]
tricon_ has joined #ruby
dlitvak has quit [Remote host closed the connection]
shock_one has joined #ruby
banister has quit [Ping timeout: 255 seconds]
Tricon has quit [Ping timeout: 246 seconds]
_djbkd has joined #ruby
Bombas has joined #ruby
ledestin has joined #ruby
paradisaeidae has joined #ruby
dlitvak has joined #ruby
shock_one has quit [Ping timeout: 240 seconds]
ruby-lang895 has joined #ruby
ascarter has joined #ruby
dlitvak has quit [Remote host closed the connection]
ruby-lang895 has quit [Client Quit]
dlitvak has joined #ruby
Azure has quit [Quit: Oops.]
Azure has joined #ruby
dlitvak has quit [Remote host closed the connection]
scripore has joined #ruby
Wompy has quit [Remote host closed the connection]
hobodave has quit [Quit: Computer has gone to sleep.]
bitcycle has joined #ruby
<bitcycle> Hey all. Is there a way to delete all comments from XML using REXML?
dlitvak has joined #ruby
ChameleonSix has joined #ruby
<ChameleonSix> Hello
<ChameleonSix> Anyone?
chouhoul_ has quit [Remote host closed the connection]
Tricon has joined #ruby
tricon_ has quit [Read error: Connection reset by peer]
<havenwood> ChameleonSix: Anyone what?
<jbrhbr> ChameleonSix: in general, it's better to just ask something rather than ask to ask
<ChameleonSix> i know
<ChameleonSix> I need help on object manipulation
<ChameleonSix> idk how to pricecly explain
<ChameleonSix> precisely*
<ChameleonSix> how do i make a program that shows pc specs
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ChameleonSix> any ideas?
<apeiros> ChameleonSix: you think hard about how to write it, then you write it.
rgtk has joined #ruby
roshanavand has joined #ruby
symm- has quit [Ping timeout: 265 seconds]
<ChameleonSix> i dont know how to define the objects
stannard has joined #ruby
<ChameleonSix> uhy
<apeiros> Klass.new
<ChameleonSix> it should link with cmd
<apeiros> creates a new object
seitensei has quit [Remote host closed the connection]
<ChameleonSix> i know
ascarter has joined #ruby
kfpratt has quit [Remote host closed the connection]
<ChameleonSix> i mean i have no idea
<ChameleonSix> hint me?
<apeiros> go get a tutorial, learn to program first.
<apeiros> then ask a sensible question.
<apeiros> "how do I write a program that shows pc specs" ain't one.
stannard has quit [Remote host closed the connection]
snoozelose has joined #ruby
snoozelose has quit [Changing host]
snoozelose has joined #ruby
ta has joined #ruby
<ChameleonSix> i learned something
ta has quit [Remote host closed the connection]
<ChameleonSix> do you have an idea about that program
ta has joined #ruby
<ChameleonSix> like structure
<adaedra> do you?
<ChameleonSix> maybe
<adaedra> start here then
<ChameleonSix> i dont know how to make a program check for cpu model
<ChameleonSix> i am learning ruby
<ChameleonSix> at tree house
<adaedra> we're getting to something more precise already.
roshanavand has quit [Ping timeout: 255 seconds]
Bombas has quit [Ping timeout: 252 seconds]
<ChameleonSix> do you have an idea how to do that
<apeiros> you ask the operating system
<adaedra> Not precisely, but google have tons of them.
<ChameleonSix> ask the os
<ChameleonSix> how?
<apeiros> ChameleonSix: do you want to write it or do you want to hire somebody write it for you?
<apeiros> go, do some research
mistermocha has joined #ruby
ur5us has joined #ruby
baweaver has joined #ruby
<ChameleonSix> i want to learn
<apeiros> somebody else already did it. find that. see how they've done it.
gizless has joined #ruby
pika_pika has quit [Ping timeout: 260 seconds]
<ChameleonSix> there is no point if someone wirtes it
<apeiros> you won't learn by getting spoonfed.
<bitcycle> Hey all. Is there a way to delete all comments from XML using REXML?
<ChameleonSix> no one did in ruby
<apeiros> ChameleonSix: you're wrong.
<adaedra> ChameleonSix: a big part of programming is knowing how to search and find what you need. You seem to lack of that, time to train.
<apeiros> but even if, it wouldn't matter.
<ChameleonSix> lol
<ChameleonSix> google is shit
<adaedra> no it isn't.
<colleenmcguckin> google is great
snoozelose has quit [Client Quit]
<adaedra> learn to use it.
<apeiros> then use bing. we don't care.
<apeiros> but chances are, your skills are shit. not google.
<colleenmcguckin> you need to learn to use it effectively. it's the best tool you'll have learning
<ChameleonSix> duck duck go
<ChameleonSix> anyway
snoozelose has joined #ruby
<ChameleonSix> how do i disable a js to fake login checking
<apeiros> same difference. we don't care. use $searchmachine
<ChameleonSix> JavaScript*
<adaedra> ChameleonSix: If I use duck duck go and look for what you need, you tell me I won't find anything, right?
<apeiros> wrong channel
mistermocha has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
ginger|n|gger has joined #ruby
ginger|n|gger was kicked from #ruby by ChanServ [Banned: Unacceptable nick - http://ruby-community.com/pages/user_rules#rule_2_10]
snoozelose has quit [Client Quit]
<hxegon> ChameleonSix, what channel are you in right now?
snoozelose has joined #ruby
<ChameleonSix> yes
<ChameleonSix> javascript
<ChameleonSix> anyway
<apeiros> this is not #javascript.
<ChameleonSix> twitter is built on ruby?
<ChameleonSix> ik
dionysus69 has quit [Ping timeout: 265 seconds]
<hxegon> nor is this #s/ /\n
<apeiros> ChameleonSix: I'm quite close to kick you
gizmore has quit [Ping timeout: 256 seconds]
snoozelose has quit [Remote host closed the connection]
<ChameleonSix> my spirit will haunt yoy
<ChameleonSix> ok sorry
<apeiros> do some shit on your own, seriously. we're not a general information desk.
<ChameleonSix> ok
snoozelose has joined #ruby
<ChameleonSix> you look like a master programmer
gizmore has joined #ruby
<ChameleonSix> that is a compliment
<apeiros> that won't get you anywhere.
<jbrhbr> ChameleonSix: but to throw you a bone, irc tends to be good for specific questions, unless you can somehow phrase a general question in a specific way. so far you've done neither, so you can't really expect much
<ChameleonSix> i know you are cold harted
<ChameleonSix> ok
<apeiros> ChameleonSix: next thing you say which is not a specific ruby question means I kick you.
snoozelose has quit [Client Quit]
<hxegon> apeiros, you are not cold hearted :D
<apeiros> no, I'm short tempered.
<ChameleonSix> how do i ask the opearting system (windows ) to check for the free ram amount via cmd
snoozelose has joined #ruby
<ChameleonSix> using ruby script
<apeiros> !kick ChameleonSix not a ruby question. use a search engine as you have been told.
<hxegon> jesus fucking christ.
ChameleonSix was kicked from #ruby by ruboto [not a ruby question. use a search engine as you have been told.]
ChameleonSix has joined #ruby
<ChameleonSix> i said using ruby script
snoozelose has quit [Remote host closed the connection]
<havenwood> !kick ChameleonSix harebrained skulduggery
ChameleonSix was kicked from #ruby by ruboto [harebrained skulduggery]
ChameleonSix has joined #ruby
snoozelose has joined #ruby
<apeiros> "how do I build a house, using ruby script", still not a ruby question.
<apeiros> and next time, it's a ban.
freerobby has joined #ruby
<ChameleonSix> without the cmd part sorry
<ChameleonSix> but i read something that i need to link ruby to cmd
<jbrhbr> ChameleonSix: what have you tried so far?
gizless has quit [Ping timeout: 240 seconds]
<ChameleonSix> so it is impossible with ruby alone?
kaleido has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
houhoulis has joined #ruby
<ChameleonSix> im in the learning process
<hxegon> ChameleonSix, have you done any research at all yourself, or tried anything in pry or irb yet?
<ChameleonSix> and i have no idea how to do that
<ChameleonSix> uhh
shanemcd has joined #ruby
<ChameleonSix> what can i try
<hxegon> so no and no then.
CloCkWeRX has joined #ruby
<ChameleonSix> i just learned something about ruby objects
freerobby has quit [Client Quit]
CloCkWeRX has left #ruby [#ruby]
<adaedra> And yet ask for something completely unrelated.
<ChameleonSix> how do i summon the operating system
snoozelose has quit [Client Quit]
<jbrhbr> arcane magics
<apeiros> !ban ChameleonSix !T 3d do some research. come back in 3 days. have some sensible questions by then.
ChameleonSix was banned on #ruby by ChanServ [ChameleonSix!*@*]
ChameleonSix was kicked from #ruby by ChanServ [Banned: do some research. come back in 3 days. have some sensible questions by then.]
mistermocha has joined #ruby
<hxegon> first you draw a pentagram, then you google it.
snoozelose has joined #ruby
* apeiros out of patience.
<jbrhbr> i laughed harder at that than i should have
fantazo has joined #ruby
fantazo has quit [Read error: Connection reset by peer]
<apeiros> maybe should have suggested to tackle a problem they can actually solve for a starter.
<apeiros> but well, too late.
<adaedra> Well, after a bit of research, it's not surprising he/she doesn't find anything using DuckDuckGo. This thing is nuts.
<jbrhbr> well he claims he was learning ruby through treehouse, so they should have that under control
bitcycle has quit [Read error: Connection reset by peer]
snoozelose has quit [Client Quit]
<hxegon> jbrhbr, it was charming at first, but he/she will learn googling/etiquette no matter how nicely you tell them to stop using enter instead of space.
hahuang65 has quit [Ping timeout: 260 seconds]
<jbrhbr> yea
<apeiros> hxegon: this is like the 6th day I see this person with the same silly type of questions
<apeiros> they're told again and again.
<hxegon> ddg is pretty cool, but that isn't an answer to 'what have you looked up so far' :P
<apeiros> wow. I tried. took me all of 5s to find a standard windows tool to query for the cpu.
* apeiros afk, have a nice day y'all
<jbrhbr> cya
<hxegon> peace
jcoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> like, what the fuck duckduckgo. http://i.imgur.com/pr6r6CG.png
pika_pika has joined #ruby
<jbrhbr> pretty bad heh
<adaedra> The header concerns Ruby 1.8 apparently
snoozelose has joined #ruby
snoozelose has quit [Max SendQ exceeded]
<shevy> people wanted to release ruby memory back then
jgpawletko has quit [Quit: jgpawletko]
<cscheib> perhaps "available" memory is a better search
<hxegon> part of the reason for that is ddg doesn't track metadata, so it doesn't know any of your previous searches are related
snoozelose has joined #ruby
<cscheib> ^^ google spends a lot of time figuring out what you mean rather than what you actually searched for
<adaedra> cscheib: right, tried with duckduckgo, 5th result is relevant. It tells me to do %x(free).
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kaleido has joined #ruby
kaleido has quit [Client Quit]
<adaedra> hxegon: right too, results are a bit less relevant in private browser, but it stills nails it way better.
shaileshg has joined #ruby
bubbys has quit [Ping timeout: 246 seconds]
baweaver has quit [Remote host closed the connection]
snoozelose has quit [Changing host]
snoozelose has joined #ruby
kalopsian has joined #ruby
bubbys has joined #ruby
<mg^> That's a funny screenshot
<bradland> looking for some guidance in the form of libraries i could look at or names of patterns/search terms i could use to learn a little more about processing network streams