« Back to channel list

#ruby - 17 December 2015

« Back 1 day Forward 1 day »
[00:00:34] bronson: has joined #ruby
[00:01:08] ChanServ: -o havenwood
[00:01:15] akem: has joined #ruby
[00:01:25] rhg135: has joined #ruby
[00:02:19] shevy: xybre I have been wondering about the same question too :)
[00:02:20] Ropeney: has joined #ruby
[00:03:06] eytanfb: has joined #ruby
[00:03:14] baweaver: well enough on that one, feel free to discuss in #ruby-offtopic but lets not feed the trolls :)
[00:03:48] jun_: has joined #ruby
[00:04:13] dmolina: has joined #ruby
[00:05:10] dotix: has joined #ruby
[00:06:24] akem2: has joined #ruby
[00:06:58] paradisaeidae: has joined #ruby
[00:07:15] dlitvak: has joined #ruby
[00:11:23] Nahra```: has joined #ruby
[00:11:34] synthroid: has joined #ruby
[00:18:33] hxegon: Is making a subclass that basically passes a number of options to the superclass a code smell?
[00:18:33] Mr_Psmith: has joined #ruby
[00:18:58] bb010g: has joined #ruby
[00:19:22] jhass: passes how?
[00:19:47] CloCkWeRX: has joined #ruby
[00:19:56] hxegon: I need to reformulate the question, give me a minute.
[00:21:22] bb010g: has joined #ruby
[00:21:34] hxegon: jhass, calling super with specific option hash in #new
[00:21:44] jhass: sounds pretty normal
[00:21:58] xybre: hxegon: why not just a class method?
[00:23:20] hxegon: xybre, I don't know... Is Dog.shitzu better than Shitzu.new?
[00:23:20] B1n4r10: has joined #ruby
[00:23:39] Ox0dea: Sometimes.
[00:24:13] hxegon: Ox0dea, that doesn't help me :P
[00:25:02] dorei: on the expectations of the end user
[00:25:26] xybre: Yeah and how the API is going to be used.
[00:26:00] Ox0dea: >> %w[expectations sepiacontext].map { |s| s.chars.sort }.reduce :==
[00:26:02] ruboto: Ox0dea # => true (https://eval.in/486609)
[00:26:11] xybre: Sometimes you want a subclass, sometimes you just want an instance with certain initialization.
[00:26:14] ornerymoose_: has joined #ruby
[00:27:23] hxegon: Maybe Dog.shitzu would be better then. I just want named, certain initialization.
[00:27:48] Ox0dea: hxegon: Initialization or instantiation?
[00:29:12] calderonroberto: has joined #ruby
[00:30:37] devbug: has joined #ruby
[00:31:22] hxegon: Ox0dea, pretty sure initialize. I don't really need a separate dog, just certain values in a Dog object. Does that make sense?
[00:31:27] hxegon: Ox0dea, good question.
[00:31:49] devoldmx: has joined #ruby
[00:32:12] Ox0dea: hxegon: Certain values and no additional behavior?
[00:32:21] akem: has joined #ruby
[00:32:47] JakeSays: has joined #ruby
[00:33:02] 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?
[00:33:51] Ox0dea: I'm phoning the authorities.
[00:34:07] cassioscabral: has joined #ruby
[00:35:01] mary5030: has joined #ruby
[00:35:35] havenwood: ACTION makes siren noises
[00:36:21] 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.
[00:37:00] Ox0dea: Perl 6 has objects of type Block. :<
[00:37:26] akem: has joined #ruby
[00:38:36] hxegon: Ox0dea, what would your suggestion be if it did need additional behavior?
[00:38:44] Ox0dea: hxegon: A subclass, of course.
[00:38:55] DEATHTOAMERICA: has joined #ruby
[00:38:59] DEATHTOAMERICA: ???????? ????????
[00:39:12] DEATHTOAMERICA: type /join ISIL for freedom
[00:39:13] hxegon: DEATHTOAMERICA, whats up kyle
[00:39:55] druonysus: has joined #ruby
[00:39:56] druonysus: has joined #ruby
[00:40:05] hxegon: DEATHTOAMERICA, probably not the best way to get your ideas across with that nick
[00:40:06] eam: Translate
[00:40:06] eam: can I ask rails questions in here?
[00:40:08] akem: has joined #ruby
[00:40:16] ruboto: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[00:40:17] eam: ???????? ???? ???? ???????? ?????????????? ?????????????? ???? ?????? ??????????????
[00:40:29] eam: Radar: oh I just beefed the joke
[00:40:30] ChanServ: +o baweaver
[00:40:44] Radar: eam: Can I ask questions bars in this area?
[00:41:02] JakeSays: so if i were to say "hey fuckturds" - that better than "hey guys"?
[00:41:03] eam: are we gonna play the translation convergence game
[00:41:23] jbrhbr: eam: i appreciate the attempt :p
[00:41:24] hxegon: JakeSays, no, people don't usually identify with fuckturd
[00:41:44] eam: we can say "beefed" though
[00:41:45] Radar: JakeSays: First warning.
[00:41:47] DEATHTOINFIDEL: has joined #ruby
[00:41:50] DEATHTOINFIDEL: type /join #ISIL for freedom
[00:41:53] DEATHTOINFIDEL: ???????? ????????
[00:42:01] ruid: has joined #ruby
[00:42:02] hxegon: ?ot DEATHTOINFIDEL
[00:42:02] 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!
[00:42:07] Radar: Radar kicked DEATHTOINFIDEL: thanks
[00:42:11] DEATHTOINFIDEL: has joined #ruby
[00:42:20] shevy: xybre ^^^ another webchatter bites the dust :D
[00:42:33] hxegon: aww, I like how he took my suggestion lol
[00:42:40] azgil2: alah mudak
[00:43:25] DEATHTOINFIDEL: ???????? ????????
[00:43:29] JakeSays: well i was just curious as to what the limits were to social correctness.
[00:43:39] ChanServ: +b DEATHTOINFIDEL!*@*
[00:43:40] ChanServ: ChanServ kicked DEATHTOINFIDEL: is banned from this channel
[00:43:47] azgil2: pls dont kick alahdicksuckers
[00:44:35] Radar: -qqqq fowl!*@* N1993|2!*@* sinepreggin!*@* volk!*@*
[00:44:48] Radar: Setting +m until we sort out this shit.
[00:44:55] Radar: Please standby.
[00:45:02] RegulationD: has joined #ruby
[00:45:28] Radar: -q krainboltgreene!*@*
[00:45:57] Radar: +q krainboltgreene!*@*
[00:46:18] Radar: Thanks for your patience.
[00:46:37] 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.
[00:47:03] JakeSays: am i registered?
[00:47:11] Radar: JakeSays: apparently so
[00:47:43] brianonymous: has joined #ruby
[00:48:04] shevy: >> RUBY_VERSION
[00:48:06] ruboto: shevy # => "2.2.0" (https://eval.in/486610)
[00:50:09] eytanfb: has joined #ruby
[00:51:38] brianonymous: has left #ruby: ()
[00:51:48] druonysus: has joined #ruby
[00:51:49] druonysus: has joined #ruby
[00:52:48] JakeSays: has left #ruby: ()
[00:52:59] Musashi007: has joined #ruby
[00:53:26] CloCkWeRX: has joined #ruby
[00:53:59] Ebok: That annoyed me, and I wasnt even here for it
[00:54:06] arescorpio: has joined #ruby
[00:54:23] Ox0dea: The end times might be coming. Look busy or something.
[00:54:44] Ebok: How're you doing Ox0dea?
[00:54:53] Ox0dea: Ebok: Well enough, thanks. Yourself?
[00:55:16] jackjackdripper1: has joined #ruby
[00:55:24] Ebok: Good good. I havent touched the language for the last three weeks though. Guilty of fallout4 :/ Need to get back into things.
[00:55:39] Ox0dea: Alas. Have you gotten quite good with Enumerable yet?
[00:55:49] Ebok: I love enumerables.
[00:55:59] Ox0dea: Hm? There is only one.
[00:56:29] Ebok: I was refering to its collective methods
[00:56:29] Ox0dea: Er, sorry. I take your meaning now.
[00:56:47] Ox0dea: What's your favorite?
[00:56:54] Ox0dea: You can't say #map or #reduce.
[00:58:07] 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.
[00:58:42] Ebok: Honestly. I dont know!
[00:59:05] Ox0dea: Well, let's see...
[00:59:07] Ox0dea: >> Enumerable.instance_methods.sample 3
[00:59:08] 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
[00:59:08] ruboto: Ox0dea # => [:member?, :max_by, :min] (https://eval.in/486611)
[00:59:13] colegatron: has joined #ruby
[00:59:19] Ox0dea: Ebok: #inject is #reduce, mind. :)
[00:59:23] davedev24: has joined #ruby
[00:59:30] Ebok: Well then.
[01:00:00] hxegon: #select is really handy
[01:00:03] Ox0dea: There really are so many good ones. I'm quite fond of #group_by.
[01:00:14] DLSteve: has joined #ruby
[01:00:15] Ebok: Select and group_by are both fun
[01:00:21] jdm: has joined #ruby
[01:00:33] dotix: has joined #ruby
[01:00:38] Ox0dea: And unreasonably effective to boot.
[01:00:54] Ebok: Unreasonably effective. I like that.
[01:02:18] jas02: has joined #ruby
[01:02:20] Ebok: Honestly, I consider just about every method in this list to be a lot of fun.
[01:03:13] akem2: has joined #ruby
[01:03:20] Ebok: Id say one the that makes the least sense to me so far is lazy
[01:03:51] Ebok: But that might simply be due to how it reads in rubydoc
[01:04:21] akem: has joined #ruby
[01:04:22] jhass: so you like #chunk?
[01:05:08] Ebok: I havent used it enough to make firm commitment, but it seems to make enough sense.
[01:05:10] jbrhbr: #lazy seems like a bit of a wart
[01:06:01] Ebok: chunk is marked as deprecated, so I figured it was just there because we dont get rid of things.
[01:06:19] rakm: has joined #ruby
[01:06:28] akem: has joined #ruby
[01:06:47] rickmasta: has joined #ruby
[01:09:24] lacuna: has joined #ruby
[01:11:09] dlitvak: has joined #ruby
[01:11:09] znz_jp: has joined #ruby
[01:11:15] akem2: has joined #ruby
[01:11:23] Ox0dea: jbrhbr: ?
[01:12:31] paradisaeidae: has joined #ruby
[01:13:06] TomPeed: has joined #ruby
[01:13:19] akem: has joined #ruby
[01:15:08] rdavila: has joined #ruby
[01:15:24] CloCkWeRX: has joined #ruby
[01:17:39] millerti: has joined #ruby
[01:18:44] lacuna: has joined #ruby
[01:19:25] akem: has joined #ruby
[01:19:38] DavidDudson: has joined #ruby
[01:20:37] lessless: has joined #ruby
[01:23:34] akem2: has joined #ruby
[01:24:10] jackjackdripper: has joined #ruby
[01:25:15] lancetw: has joined #ruby
[01:25:27] troter______: has joined #ruby
[01:25:28] _joes___: has joined #ruby
[01:25:34] jackcom: has joined #ruby
[01:25:46] jackcom: has left #ruby: ()
[01:25:53] djbender: has joined #ruby
[01:25:59] ElFerna: has joined #ruby
[01:26:06] frode15243: has joined #ruby
[01:26:14] benlakey: has joined #ruby
[01:27:07] mrsolo: has joined #ruby
[01:27:10] vikaton: has joined #ruby
[01:27:14] pizzaops: has joined #ruby
[01:27:14] huddy: has joined #ruby
[01:27:25] skmp: has joined #ruby
[01:27:34] im0b: has joined #ruby
[01:28:08] lacrosse: has joined #ruby
[01:28:27] daxroc: has joined #ruby
[01:28:28] frankS2: has joined #ruby
[01:28:32] mikolalysenko: has joined #ruby
[01:28:58] prosody: has joined #ruby
[01:29:25] symm-: has joined #ruby
[01:31:39] devoldmx: has joined #ruby
[01:31:45] nertzy: has joined #ruby
[01:32:04] ElFerna: has joined #ruby
[01:32:29] dsdeiz: has joined #ruby
[01:33:02] Musashi007: has joined #ruby
[01:33:14] devbug: has joined #ruby
[01:33:28] howdoicomputer: has joined #ruby
[01:37:27] icbm: has joined #ruby
[01:41:59] rakm: anyone know any perl? i'm trying to port some perl code that gets an image out of sqlite db (stored as blob)
[01:42:07] rakm: http://pastie.org/10637144#30-38
[01:42:15] rakm: not sure how to port that part ^
[01:42:47] rakm: trying to use sqlite3 gem and have the binary string, but writing it to a file doesn't give me the image
[01:43:01] rakm: i'm not sure how to encode it and do those characture substitutions
[01:43:39] ja: omfg pelr
[01:44:07] djbkd: has joined #ruby
[01:44:08] ja: I wish I could be of any help, rakm
[01:44:22] rakm: ah no problem, thanks :)
[01:44:29] ja: ???need to substitute back in the null characters for 1??? ??? wtf, why are they even doing that? sounds odd
[01:44:34] rakm: i'm looking at an old codebase and trying to make sense of it
[01:44:38] rakm: yeah, not sure at all
[01:44:47] rakm: i see the reverse substition happening at the insert also
[01:44:56] rakm: but i have no idea why
[01:45:09] ja: isn???t that just like `row_ref[0].gsub! /11/, "\0"` and `.gsub! /12/, '1'`?
[01:45:19] rakm: ### decrypt blobs
[01:45:19] rakm: $param{$key} =~ s/11/\0/g; # null is represented by 11
[01:45:20] rakm: $param{$key} =~ s/12/1/g; # 1 is represented by 12
[01:45:20] ja: haha, that sounds extremely hacky
[01:45:38] ja: oh dear
[01:45:46] ozzloy: has joined #ruby
[01:45:47] ozzloy: has joined #ruby
[01:45:58] ja: ?????why??? some old sqlite version that didn???t support null bytes in blobs, maybe?! :X
[01:46:02] ja: absurd.
[01:46:11] rakm: ja yeah, i tried gsub, but to even do that, i had to encode('utf-8') and then do the gsub
[01:46:28] ja: ohh, why encode to utf-8? that doesn???t sound good
[01:46:33] rakm: but even writing that to file after doing the dsub successfully, the img can't be opened with osx
[01:46:39] ElFerna: has joined #ruby
[01:46:56] ja: encoding binary to utf8 is sure to break it, I think
[01:47:16] ja: why did you encode('utf-8') it, rakm?
[01:47:17] rakm: because .gsub errors out with ArgumentError: invalid byte sequence in UTF-8
[01:47:19] ja: what kind of error did you get before?
[01:47:35] rakm: found this https://robots.thoughtbot.com/fight-back-utf-8-invalid-byte-sequences
[01:47:35] ja: err?????uhhm??? encodings have already fucked with my mind, especially in Ruby
[01:47:38] nettoweb: has joined #ruby
[01:47:51] rakm: yeah, i'm not sure i really understand what is happening
[01:48:20] rakm: the `blob.encoding` returns #<Encoding:UTF-8> though, before .encode call
[01:48:31] Ox0dea: rakm: Which is not what you want; you have binary data.
[01:48:33] rakm: so i don't uderstand why i need to do .encode('utf-8')
[01:48:48] rakm: ah so i should .encode('binary') ?
[01:48:51] ja: .force_encoding('binary'), maybe?
[01:48:52] Ox0dea: rakm: Aye.
[01:48:58] Ox0dea: Alternatively, String#b.
[01:49:12] Ox0dea: >> s = 'foo'; [s.encoding, s.b.encoding] # ja
[01:49:13] ruboto: Ox0dea # => [#<Encoding:UTF-8>, #<Encoding:ASCII-8BIT>] (https://eval.in/486640)
[01:49:16] ja: Ox0dea: WHAT?! :O
[01:49:25] Ox0dea: Sorry, that was for rakm.
[01:49:25] ja: ??? ??? ??? thank you, Ox0dea
[01:49:32] ja: that???s amazing
[01:49:33] Ox0dea: Happy to help. :)
[01:49:37] Ox0dea: Ruby is love.
[01:49:41] ja: it really is, yes
[01:50:04] ja: you should start a newsletter with pseudo-esoteric ruby knowledge, Ox0dea
[01:50:07] ja: IRC newsletter
[01:50:45] ja: like ???Ox0dea???s Weekly Five Things You Might Not Have Known About Ruby???
[01:50:59] Ox0dea: I think that's been done to death.
[01:51:01] davedev24: has joined #ruby
[01:51:08] ja: but not with things like #b :<
[01:52:10] jessemcgilallen: has joined #ruby
[01:52:19] rakm: this is the code i'm trying http://pastie.org/10637163
[01:52:33] rakm: trying .b right now
[01:52:44] luckyme: has joined #ruby
[01:53:25] rakm: haven't successfully written the png yet
[01:53:59] jbrhbr: has joined #ruby
[01:54:00] Ox0dea: You're losing (crucial) information by transcoding from UTF-8 to ASCII and saying it's okay to replace bytes as necessary.
[01:54:25] ja: yeah, are you still using both of those encoding lines, rakm? both 9 and 12
[01:54:30] Ox0dea: It's quite easy to make a PNG invalid by flipping a single bit.
[01:54:54] rakm: may have possibly done both without resetting. i'll start from scratch
[01:56:10] ja: rakm: try https://gist.github.com/alminde/9d0067803fac3393be76 if you???d like
[01:56:19] ja: I changed "0" to "\0" too
[01:56:57] yes`r: has joined #ruby
[01:56:57] rakm: ja that worked!!!!
[01:57:05] rakm: i'm pretty happy right now :D
[01:57:14] rakm: the escaping
[01:57:47] Ox0dea: >> ?\C-@ == "\0" # ja
[01:57:48] ruboto: Ox0dea # => true (https://eval.in/486654)
[01:57:56] Ox0dea: </newsletter>
[01:58:35] ja: rakm: yay! I???m glad I could help ^o^
[01:58:36] Ox0dea: rakm: Glad you got it sorted. :)
[01:58:54] rakm: i don't even know what that ruby means.. `?\C@` ?
[01:58:56] ja: Ox0dea: ??? @_@ i can???t even
[01:58:57] ElFerna: has joined #ruby
[01:59:09] ja: ? is the character literal, I know
[01:59:21] Ox0dea: ja: matz uses emacs.
[02:00:46] rakm: ja , btw "iconhelll.rb" lol
[02:01:08] ja: Ox0dea: does ctrl+@ in emacs insert a null character or wat?
[02:01:27] ja: rakm: i had to name it something, right ^_^
[02:01:35] goodcodeguy: has joined #ruby
[02:01:58] Ox0dea: ja: I'm pretty sure that's the origin story, yeah.
[02:02:50] blackmesa: has joined #ruby
[02:02:57] 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.
[02:03:21] Ox0dea: >> 'A'.ord.pred.chr # Why '@', you ask?
[02:03:22] ruboto: Ox0dea # => "@" (https://eval.in/486658)
[02:05:18] druonysuse: has joined #ruby
[02:05:19] druonysuse: has joined #ruby
[02:08:38] Arnvald: has joined #ruby
[02:08:55] ja: ACTION 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)
[02:09:15] rgtk: has joined #ruby
[02:09:30] ja: weird, String has #succ but not #pred
[02:09:44] 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
[02:10:08] jbrhbr: so i say it seems warty because the handling of streams seems to have some inconsistencies, at least in my naive observations
[02:10:17] ja: what???s ???pred??? even meant to abbriviate, I wonder?
[02:10:22] jbrhbr: predicate
[02:10:37] Ox0dea: jbrhbr: Predecessor.
[02:10:47] Ox0dea: ja: In line with successor, of course.
[02:10:47] jbrhbr: woops, context helps
[02:10:49] ja: oh, right, of course ???Predecessor??? ??? that word had completely escaped my mind
[02:11:01] ja: ACTION should probably sleep
[02:11:09] ja: Ox0dea: Of course
[02:11:11] Ox0dea: These were the words used when Peano went about proving that 1 and 1 is, in fact, 2.
[02:11:34] jbrhbr: my brain was in stream land
[02:12:34] Ox0dea: jbrhbr: Whence the inconsistency? Ruby always performs strict evaluation unless explicitly instructed otherwise, no?
[02:13:01] kies^: has joined #ruby
[02:13:05] jbrhbr: why is 1..Float::Infinity not already "lazy"?
[02:13:12] jbrhbr: i mean it's obviously lazy semantically
[02:13:42] Ox0dea: A range is simply not an array.
[02:14:05] jbrhbr: i wasn't implying that it is
[02:14:15] jbrhbr: there is a construct that represents a lazy sequence here
[02:14:23] ja: Ox0dea: Interesting.
[02:14:25] jbrhbr: downstream, things can't consume it without this #lazy transformation
[02:14:37] jbrhbr: that's inconsistent
[02:14:53] Ox0dea: jbrhbr: You'll need to define "sequence" and "consume", I guess.
[02:15:12] freerobby: has joined #ruby
[02:15:20] Ox0dea: `1..Float::INFINITY` is an abstraction over a sequence.
[02:15:39] jbrhbr: you could argue that's an implementation detail
[02:16:04] Ox0dea: >> (1..Float::INFINITY).end # Does this constitute "consumption"?
[02:16:05] ruboto: Ox0dea # => Infinity (https://eval.in/486661)
[02:16:34] jbrhbr: not sure how i feel about that one :)
[02:16:55] jbrhbr: the end of infinity is infinity, mindblown!
[02:17:50] hxegon: has joined #ruby
[02:18:36] jas02: has joined #ruby
[02:20:30] 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?
[02:21:36] 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)
[02:23:40] rdavila: has joined #ruby
[02:23:51] 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.
[02:24:35] Arnvald: has joined #ruby
[02:24:49] jbrhbr: most of my observations and ramblings are more pedantic than they are real practical issues
[02:25:08] jbrhbr: but yes, haskell, java's new 1.8 stuff and python3 handle it pretty well, for comparison
[02:25:46] jbrhbr: thinking through these kinds of distinctions leads to better understanding, for me at least :) and anyone bored enough to read
[02:25:50] Ox0dea: >> evens = Enumerator.new { |y| n = 0; loop { y << n += 2 } }; evens.take 10 # jbrhbr
[02:25:52] ruboto: Ox0dea # => [2, 4, 6, 8, 10, 12, 14, 16, 18, 20] (https://eval.in/486670)
[02:25:52] cscheib: has joined #ruby
[02:25:53] Arnvald: has joined #ruby
[02:26:07] Ox0dea: Ruby has had "generators" since forever.
[02:26:21] Ox0dea: Enumerator::Lazy is a nicety.
[02:28:08] hahuang65: has joined #ruby
[02:28:20] rickmasta: has joined #ruby
[02:28:28] boxofrox: has joined #ruby
[02:29:16] 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?
[02:30:49] Ox0dea: cscheib: Scratch an itch.
[02:34:23] goodcodeguy: has joined #ruby
[02:37:14] jbrhbr: Ox0dea: yup, that's one of the first things i looked for in ruby :p
[02:37:27] 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
[02:38:31] Ox0dea: cscheib: Dip sufficiently many toes in the water and you'll inevitably realize you're swimming. :)
[02:41:28] calderonroberto: has joined #ruby
[02:41:34] jun_: has joined #ruby
[02:42:43] pika_pika: has joined #ruby
[02:47:52] arooni-mobile: has joined #ruby
[02:48:00] seitensei: has joined #ruby
[02:49:48] CloCkWeRX: has left #ruby: ()
[02:50:28] jbrhbr: heh that's a nice saying
[02:50:55] havenwood: Or that your toes have become wrinkled.
[02:52:22] havenwood: I guess you should take them out of the water intermittently on the path to swimming!
[02:52:56] jbrhbr: which, outside of the land of metaphor, means??? beer?
[02:53:55] weemsledeux: has joined #ruby
[02:54:47] rdavila: has joined #ruby
[02:54:55] pawnbox: has joined #ruby
[02:55:05] sneakerhax: has joined #ruby
[02:57:45] paradisaeidae: has joined #ruby
[02:58:11] Azure: has joined #ruby
[03:00:02] avahey: has joined #ruby
[03:00:06] goodcodeguy: has joined #ruby
[03:00:30] auzty: has joined #ruby
[03:02:19] bogn1: has joined #ruby
[03:03:27] kam270: has joined #ruby
[03:03:54] bogn1: has joined #ruby
[03:04:18] bogn1: has joined #ruby
[03:05:22] dlitvak: has joined #ruby
[03:07:14] ohaibbq: has joined #ruby
[03:09:47] bogn: has joined #ruby
[03:10:57] chipotle_: has joined #ruby
[03:12:17] devbug: has joined #ruby
[03:12:52] diego1: has joined #ruby
[03:13:00] rickmasta: has joined #ruby
[03:13:03] cibs: has joined #ruby
[03:13:09] TomPeed: has joined #ruby
[03:13:17] diego1: has joined #ruby
[03:13:51] rdavila: has joined #ruby
[03:16:26] dlitvak: has joined #ruby
[03:16:49] andrew9183: has joined #ruby
[03:17:06] nanoz: has joined #ruby
[03:17:25] andrew9183: Is there a way to turn a ruby hash into a vanilla hash? {:name => ???foo???} to {name: ???foo???}. I need it for http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Types/Filter.html
[03:17:38] baweaver: has joined #ruby
[03:19:36] howdoi: has joined #ruby
[03:21:21] mroth: has joined #ruby
[03:22:22] siddharth: has joined #ruby
[03:22:44] ckrailo: has joined #ruby
[03:22:56] DukeDave: has joined #ruby
[03:23:13] dlitvak: has joined #ruby
[03:23:28] deeprave: has joined #ruby
[03:23:29] cardoni: has joined #ruby
[03:23:30] danzilio: has joined #ruby
[03:23:45] rflot: has joined #ruby
[03:23:58] acadavid: has joined #ruby
[03:24:10] Coraline: http://apidock.com/rails/Hash/symbolize_keys!
[03:24:10] akahn: has joined #ruby
[03:24:11] ec: has joined #ruby
[03:24:14] andersh: has joined #ruby
[03:24:22] Coraline: Oh wait, sorry, misunderstood your question
[03:24:48] knowtheory: has joined #ruby
[03:24:59] ja: wth is a ???vanilla hash????
[03:25:43] shaileshg: has joined #ruby
[03:26:00] andrew9183: nevermind a ruby hash worked, understandably
[03:26:25] i: has joined #ruby
[03:26:31] calderonroberto: has joined #ruby
[03:26:31] Jardayn: has joined #ruby
[03:26:38] Coraline: would be surprised to see one hash format accepted and not the other
[03:28:03] andrew9183: that was fun, i hacked together a ruby dashboard that polls aws cloudwatch
[03:28:19] _whitelogger: has joined #ruby
[03:28:38] _whitelogger: has joined #ruby
[03:28:52] hahuang65: has joined #ruby
[03:30:22] drys: has joined #ruby
[03:31:27] lacuna: has joined #ruby
[03:31:51] dlitvak: has joined #ruby
[03:33:20] blackmesa: has joined #ruby
[03:33:43] lacuna: has joined #ruby
[03:40:41] spt0: has joined #ruby
[03:42:56] dlitvak: has joined #ruby
[03:46:07] danscho: has joined #ruby
[03:47:38] sankaber: has joined #ruby
[03:47:52] Arnvald: has joined #ruby
[03:48:23] solocshaw: has joined #ruby
[03:49:36] jun_: has joined #ruby
[03:53:18] devoldmx: has joined #ruby
[03:56:18] techsethi: has joined #ruby
[03:57:32] jessemcgilallen: has joined #ruby
[04:00:50] agent_white: has joined #ruby
[04:03:20] lacuna: has joined #ruby
[04:03:20] lacuna: has joined #ruby
[04:07:00] krz: has joined #ruby
[04:08:47] zast: has joined #ruby
[04:10:10] chipotle: has joined #ruby
[04:10:23] colleenmcguckin: has joined #ruby
[04:12:19] stannard: has joined #ruby
[04:15:08] jun_: has joined #ruby
[04:17:20] Arnvald: has joined #ruby
[04:18:18] braincrash: has joined #ruby
[04:22:23] Arnvald: has joined #ruby
[04:24:20] gix: has joined #ruby
[04:25:19] cpup: has joined #ruby
[04:26:08] Arnvald_: has joined #ruby
[04:28:19] devbug_: has joined #ruby
[04:30:47] Scripore: has joined #ruby
[04:31:23] nateberkopec: has joined #ruby
[04:31:52] lanet: has joined #ruby
[04:32:37] yfeldblum: has joined #ruby
[04:34:22] mary5030: has joined #ruby
[04:38:49] mrbignum: has joined #ruby
[04:41:35] eytanfb: has joined #ruby
[04:44:17] solocshaw: has joined #ruby
[04:47:26] jun_: has joined #ruby
[04:48:57] seitensei: has joined #ruby
[04:54:01] devoldmx: has joined #ruby
[04:57:26] rkazak: has joined #ruby
[04:58:04] devbug_: has joined #ruby
[04:58:57] msankhala: has joined #ruby
[05:01:27] jas02: has joined #ruby
[05:01:44] fullofcaffeine: has joined #ruby
[05:03:51] blackmesa: has joined #ruby
[05:04:49] solenoids: what's the best drop-in ruby interpreter for optimizing memory usage? would jruby be the best option, ignoring the initial JVM overhead?
[05:06:19] gizmore: has joined #ruby
[05:13:24] roshanavand: has joined #ruby
[05:13:35] floatingpoint: has joined #ruby
[05:13:43] beast: has joined #ruby
[05:13:59] hakaya: has joined #ruby
[05:15:45] cwong_on_irc: has joined #ruby
[05:16:13] berserk_ren: has joined #ruby
[05:19:26] \13k: has joined #ruby
[05:19:59] \13k: j #golang
[05:20:52] astrobun_: has joined #ruby
[05:24:57] dstarh: has joined #ruby
[05:26:48] colleenmcguckin: has joined #ruby
[05:30:52] hahuang65: has joined #ruby
[05:31:14] AKASkip: has joined #ruby
[05:31:40] moei: has joined #ruby
[05:33:21] techsethi: has joined #ruby
[05:38:31] sucks: has joined #ruby
[05:39:20] nateberkopec: has joined #ruby
[05:40:27] dsdeiz: has joined #ruby
[05:44:18] jessemcgilallen: has joined #ruby
[05:44:24] hagabaka: has joined #ruby
[05:45:10] gizless: has joined #ruby
[05:49:21] yes`r: has joined #ruby
[05:50:07] xybre: \13k: #go-nuts?
[05:50:26] \13k: xybre: yep, I got it, thanks :)
[05:50:50] dsdeiz: has joined #ruby
[05:51:55] lyoshajapan: has joined #ruby
[05:53:49] camus: has joined #ruby
[05:55:44] jas02: has joined #ruby
[05:58:17] ur5us: has joined #ruby
[05:59:30] rdavila: has joined #ruby
[06:01:09] dsdeiz: has joined #ruby
[06:01:42] sjumsa: has joined #ruby
[06:02:58] haxrbyte: has joined #ruby
[06:04:13] Arnvald: has joined #ruby
[06:04:52] haraoka: has joined #ruby
[06:05:52] djbkd: has joined #ruby
[06:06:59] luckyme: has joined #ruby
[06:07:00] dsdeiz: has joined #ruby
[06:07:39] Arnvald_: has joined #ruby
[06:07:53] lyoshajapan: has joined #ruby
[06:10:02] sjumsa: has joined #ruby
[06:11:52] acadavid: has joined #ruby
[06:11:56] jdm: has joined #ruby
[06:12:47] Musashi007: has joined #ruby
[06:12:47] mbeasley: has joined #ruby
[06:13:11] mroth: has joined #ruby
[06:13:12] deeprave: has joined #ruby
[06:13:37] tejasmanohar: has joined #ruby
[06:13:37] johnny56_: has joined #ruby
[06:13:50] skade: has joined #ruby
[06:14:49] gizmore: has joined #ruby
[06:16:51] devbug: has joined #ruby
[06:21:09] lacuna: has joined #ruby
[06:21:10] lacuna: has joined #ruby
[06:21:12] lxsameer: has joined #ruby
[06:21:17] last_staff: has joined #ruby
[06:24:10] hohenfall: has joined #ruby
[06:27:32] darkf: has joined #ruby
[06:29:53] sjums: has joined #ruby
[06:30:27] robbyoconnor: has joined #ruby
[06:31:40] gizless: has joined #ruby
[06:31:54] sigurding: has joined #ruby
[06:33:43] axisys: has joined #ruby
[06:34:22] blackmesa: has joined #ruby
[06:36:23] NeverDie: has left #ruby: ("http://radiux.io/")
[06:36:43] lxsameer: has joined #ruby
[06:37:40] passerine: has joined #ruby
[06:40:05] nateberkopec: has joined #ruby
[06:43:29] dlitvak: has joined #ruby
[06:45:40] dopie: has joined #ruby
[06:45:42] yfeldblum: has joined #ruby
[06:46:22] juddey: has joined #ruby
[06:47:28] renemaya: has joined #ruby
[06:49:49] seitensei: has joined #ruby
[06:49:54] jas02: has joined #ruby
[06:52:04] tagrudev: has joined #ruby
[06:52:15] Scripore: has joined #ruby
[06:52:42] yardenbar: has joined #ruby
[06:52:45] mgorbach: has joined #ruby
[06:53:14] renemaya: has joined #ruby
[06:54:04] dlitvak: has joined #ruby
[06:54:31] nbdy: has joined #ruby
[06:54:38] devoldmx: has joined #ruby
[06:55:09] startupality: has joined #ruby
[06:57:56] colegatron: has joined #ruby
[06:59:21] govg: has joined #ruby
[06:59:25] howdoi: has joined #ruby
[07:00:18] nateberkopec: has joined #ruby
[07:00:20] mikenovikov: has joined #ruby
[07:00:51] codecop: has joined #ruby
[07:02:01] flughafen: morning everybody
[07:04:09] dlitvak: has joined #ruby
[07:04:25] mary5030: has joined #ruby
[07:04:44] skade: has joined #ruby
[07:05:43] Arnvald: has joined #ruby
[07:05:49] darkxploit: has joined #ruby
[07:05:55] Pupp3tm4st3r: has joined #ruby
[07:06:08] roshanavand: has joined #ruby
[07:06:54] steffkes: has joined #ruby
[07:06:55] steffkes: has joined #ruby
[07:06:55] SOLDIERz: has joined #ruby
[07:07:23] \13k__: has joined #ruby
[07:09:04] Scripore: has joined #ruby
[07:10:22] solars: has joined #ruby
[07:12:14] troulouliou_div2: has joined #ruby
[07:13:46] Bloomer: has joined #ruby
[07:14:15] dlitvak: has joined #ruby
[07:15:58] marwinism: has joined #ruby
[07:16:09] flughafen: yeah, i get to work early
[07:16:25] ramfjord: has joined #ruby
[07:20:44] ljarvis: what time zone?
[07:20:57] flughafen: ljarvis: CET, i'm in Germany
[07:21:03] skcin7: has joined #ruby
[07:22:08] ljarvis: I'm an hour behind
[07:22:55] ledestin: has joined #ruby
[07:24:25] flughafen: http://i.imgur.com/fiCFnNz.jpg hehe
[07:24:36] claw: has joined #ruby
[07:24:41] rickmasta: has joined #ruby
[07:24:42] baweaver: ljarvis: http://www.total-knowledge.com/~ilya/mips/ugt.html
[07:24:45] medvedu: has joined #ruby
[07:25:17] topologist: has joined #ruby
[07:25:17] blackgoat: has joined #ruby
[07:25:20] topologist: has joined #ruby
[07:28:16] kstuart: has joined #ruby
[07:30:26] lyoshajapan: has joined #ruby
[07:34:48] ramfjord: has joined #ruby
[07:39:37] krz: has joined #ruby
[07:40:47] jdm: has joined #ruby
[07:41:14] firstdayonthejob: has joined #ruby
[07:42:05] eytanfb: has joined #ruby
[07:43:42] Polysics: has joined #ruby
[07:44:09] jas02: has joined #ruby
[07:47:20] rakm: has joined #ruby
[07:49:46] jbrhbr: has joined #ruby
[07:50:25] jas02: has joined #ruby
[07:51:27] yfeldblum: has joined #ruby
[07:51:36] andikr: has joined #ruby
[07:51:51] bigkevmcd: has joined #ruby
[07:54:12] jun_: has joined #ruby
[07:54:12] dlitvak: has joined #ruby
[07:54:48] krzkrz: has joined #ruby
[07:55:42] symm-: has joined #ruby
[07:57:24] tvw: has joined #ruby
[07:58:49] medvedu: has joined #ruby
[07:59:20] aganov: has joined #ruby
[07:59:49] anisha: has joined #ruby
[08:00:55] TomyWork: has joined #ruby
[08:02:08] krzkrz: has joined #ruby
[08:04:24] blackmesa: has joined #ruby
[08:05:17] medvedu: has joined #ruby
[08:06:27] nofxx: has joined #ruby
[08:06:57] maxillopharyngea: has joined #ruby
[08:10:34] medvedu: has joined #ruby
[08:12:16] ur5us: has joined #ruby
[08:14:21] dlitvak: has joined #ruby
[08:17:54] rdark: has joined #ruby
[08:18:04] steffkes: has joined #ruby
[08:18:05] steffkes: has joined #ruby
[08:18:14] rdark: has joined #ruby
[08:18:40] lxsameer: has joined #ruby
[08:18:44] pawnbox: has joined #ruby
[08:22:20] medvedu: {nickname}
[08:23:34] bytemonkey: has joined #ruby
[08:24:26] bytemonkey: has left #ruby: ("Leaving")
[08:25:30] mary5030: has joined #ruby
[08:26:28] msankhala: has joined #ruby
[08:26:44] jhass: -qo $~a jhass
[08:26:54] jhass: -oo Radar jhass
[08:27:50] heftig: has joined #ruby
[08:27:57] gamov: has joined #ruby
[08:28:06] Coral: has joined #ruby
[08:29:09] terlar: has joined #ruby
[08:29:20] Pupp3tm4st3r: has joined #ruby
[08:30:21] tesuji: has joined #ruby
[08:31:31] aufi: has joined #ruby
[08:33:51] rickmasta: has joined #ruby
[08:34:38] nettoweb: has joined #ruby
[08:37:31] devbug: has joined #ruby
[08:40:22] edwinvdgraaf: has joined #ruby
[08:41:56] Dimik: has joined #ruby
[08:42:27] skade: has joined #ruby
[08:43:25] blaxter: has joined #ruby
[08:45:09] Hounddog: has joined #ruby
[08:47:09] hectortrope: has joined #ruby
[08:47:18] Cork: is this the most efficient way to check what files in an array exist? files.select {|file| File.exists?(file) }
[08:47:27] Cork: or is there a better way to do that?
[08:47:43] pawnbox: has joined #ruby
[08:49:08] tomphp: has joined #ruby
[08:50:23] apeiros: Cork: probably
[08:50:37] seitensei: has joined #ruby
[08:50:38] seitensei: has joined #ruby
[08:50:42] Cork: heh probably the best way or probably there are one? :D
[08:50:47] InvGhost: has joined #ruby
[08:51:17] apeiros: the former
[08:52:04] ckrailo: has joined #ruby
[08:53:02] bweston92: has joined #ruby
[08:53:45] c0m0: has joined #ruby
[08:54:09] tomphp: has joined #ruby
[08:55:01] blub: hi adaedra
[08:55:05] ec: has joined #ruby
[08:55:23] devoldmx: has joined #ruby
[08:55:40] jpinnix______: has joined #ruby
[08:55:40] incomprehensibly: has joined #ruby
[08:55:57] norc_: has joined #ruby
[08:56:11] andersh: has joined #ruby
[08:56:59] jhill: has joined #ruby
[08:57:16] cardoni: has joined #ruby
[08:57:42] mroth: has joined #ruby
[08:57:44] vcoinminer_: has joined #ruby
[08:57:45] dEPy: has joined #ruby
[08:57:48] tomphp: has joined #ruby
[08:57:52] siddharth: has joined #ruby
[08:57:59] startupality: has joined #ruby
[08:58:08] jabreity__: has joined #ruby
[08:58:17] huyderman: has joined #ruby
[08:58:20] boxrick1: has joined #ruby
[08:58:47] tvw: has joined #ruby
[09:01:00] blackmesa: has joined #ruby
[09:03:15] acadavid: has joined #ruby
[09:03:30] blaxter: has joined #ruby
[09:03:52] azgil2: has joined #ruby
[09:03:56] 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.
[09:04:36] frog0909: has joined #ruby
[09:04:49] edwinvdg_: has joined #ruby
[09:05:46] baweaver: has joined #ruby
[09:06:14] jpinnix______: has joined #ruby
[09:06:18] ckrailo: has joined #ruby
[09:06:50] Arctaire: has joined #ruby
[09:07:04] devoldmx: has joined #ruby
[09:07:11] jmhmccr: has joined #ruby
[09:07:46] joonty: has joined #ruby
[09:07:49] danzilio: has joined #ruby
[09:08:08] startupality: has joined #ruby
[09:08:37] medvedu: has joined #ruby
[09:10:18] mroth: has joined #ruby
[09:10:34] jhass: ?crosspost dEPy
[09:10:34] 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.
[09:10:41] drptbl: has joined #ruby
[09:10:52] cardoni: has joined #ruby
[09:10:53] tulak: has joined #ruby
[09:12:03] ta: has joined #ruby
[09:12:08] ec: has joined #ruby
[09:12:46] DukeDave: has joined #ruby
[09:12:47] startupality: has joined #ruby
[09:13:02] andersh: has joined #ruby
[09:13:14] jhill: has joined #ruby
[09:13:35] chthon: has joined #ruby
[09:14:40] tomphp: has joined #ruby
[09:15:15] dlitvak: has joined #ruby
[09:16:15] vcoinminer_: has joined #ruby
[09:18:16] senayar: has joined #ruby
[09:18:21] pawnbox: has joined #ruby
[09:18:37] gagrio_: has joined #ruby
[09:18:41] jun_: has joined #ruby
[09:18:51] roshanavand: has joined #ruby
[09:18:54] lxsameer: has joined #ruby
[09:20:22] marr: has joined #ruby
[09:21:35] pawnbox_: has joined #ruby
[09:23:51] timonv: has joined #ruby
[09:26:46] mark3: has joined #ruby
[09:28:46] pawnbox: has joined #ruby
[09:30:17] emrox: has joined #ruby
[09:30:44] disanoint: has joined #ruby
[09:31:37] yfeldblum: has joined #ruby
[09:34:13] dmolina: has joined #ruby
[09:34:40] BSaboia: has joined #ruby
[09:35:06] ddubs: has joined #ruby
[09:36:03] dsdeiz: has joined #ruby
[09:36:14] rodfersou: has joined #ruby
[09:36:52] krzkrzkrz: has joined #ruby
[09:37:28] knowtheory: has joined #ruby
[09:37:28] gregf_: has joined #ruby
[09:37:31] 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?
[09:37:39] Cork: meaning without calling tr or head
[09:37:43] ec: has joined #ruby
[09:37:56] jhass: what does it even do
[09:38:09] jpinnix______: has joined #ruby
[09:38:09] jmhmccr: has joined #ruby
[09:38:19] Cork: it taps into urandom and filters out a-zA-Z0-9
[09:38:24] Cork: and grabs 8 characters
[09:38:24] senayar: has joined #ruby
[09:38:33] danzilio: has joined #ruby
[09:38:56] Cork: so basically a random string generator
[09:39:03] rflot: has joined #ruby
[09:39:04] deeprave: has joined #ruby
[09:39:07] apeiros: Cork: SecureRandom + tr
[09:39:09] akahn: has joined #ruby
[09:39:11] acadavid: has joined #ruby
[09:39:15] jhill: has joined #ruby
[09:39:34] bogn: has joined #ruby
[09:39:36] vcoinminer_: has joined #ruby
[09:39:38] Cork: apeiros: ya, but how would i use SecureRandom as a stream?
[09:39:40] jhass: or if removing A-Z from the set is okay, just SecureRandom.hex
[09:39:40] siddharth: has joined #ruby
[09:39:45] Cork: i've been hunting around with it
[09:39:59] DukeDave: has joined #ruby
[09:40:11] apeiros: more convenient might be to sample 8 times
[09:40:13] ckrailo: has joined #ruby
[09:40:16] Cork: jhass: it needs to be as random as possible but still be ascii
[09:40:17] kith: has joined #ruby
[09:40:35] mroth: has joined #ruby
[09:40:41] andersh: has joined #ruby
[09:40:47] apeiros: >> alpha = [*'A'..'Z', *'a'..'z', *'0'..'0']; Array.new(8) { alpha.sample }.join
[09:40:48] Cork: apeiros: ya, that is an option
[09:40:48] ruboto: apeiros # => "EKHOXgGi" (https://eval.in/486876)
[09:40:57] apeiros: >> alpha = [*'A'..'Z', *'a'..'z', *'0'..'9']; Array.new(8) { alpha.sample }.join
[09:40:58] ruboto: apeiros # => "0sSeV7RQ" (https://eval.in/486877)
[09:41:04] jhass: that's not using securerandom though?
[09:41:21] apeiros: yeah, can use Array[] with securerandom
[09:42:42] Arctaire: has joined #ruby
[09:43:01] DeXterbed: has joined #ruby
[09:43:06] jhass: jeez, it ought to be possible to pass SecureRandom as rng to sample
[09:43:55] apeiros: lots of refactoring possible wrt random
[09:44:04] apeiros: e.g. it'd be nice if we could fix the seed used for #hash
[09:44:09] jabreity__: has joined #ruby
[09:44:17] cardoni: has joined #ruby
[09:44:23] apeiros: for testing, obviously :)
[09:44:54] jhass: oh I thought you meant "fix" as in "let it no longer do that"
[09:44:58] apeiros: (or judging by your "omg" - not so obviously)
[09:44:59] incomprehensibly: has joined #ruby
[09:45:18] boxrick1: has joined #ruby
[09:45:19] dlitvak: has joined #ruby
[09:45:20] apeiros: ah no, fix as in "set it to a specific value"
[09:45:32] apeiros: oh, and for debugging.
[09:45:46] wolffles: has joined #ruby
[09:45:58] tejasmanohar: has joined #ruby
[09:46:04] apeiros: knowing the seed can help a ton in reproducing problems with algorithms which make use of prngs
[09:46:58] Jackneill: has joined #ruby
[09:48:32] z3uS|: has joined #ruby
[09:50:38] rodfersou: has joined #ruby
[09:51:33] neanderslob: has joined #ruby
[09:52:08] startupality: has joined #ruby
[09:53:10] jas02: has joined #ruby
[09:55:06] goodcodeguy: has joined #ruby
[09:55:42] dlitvak: has joined #ruby
[09:58:42] tulak: has joined #ruby
[10:03:20] nigro: has joined #ruby
[10:03:26] nigro: anyone good at javascript?
[10:04:40] goodcodeguy: has joined #ruby
[10:05:48] adaedra: I think there's a javascript channel
[10:06:28] neanderslob: has joined #ruby
[10:08:28] FernandoBasso: has joined #ruby
[10:08:53] eytanfb: has joined #ruby
[10:13:29] jun_: has joined #ruby
[10:13:59] jinie_: has joined #ruby
[10:14:21] passerine: has joined #ruby
[10:14:22] platzhirsch: has joined #ruby
[10:15:23] jinie_: has joined #ruby
[10:20:45] cpup: has joined #ruby
[10:21:31] yfeldblum: has joined #ruby
[10:24:10] Bish: hello guys and girls!
[10:24:22] Bish: apeiros: :^)
[10:27:02] norc: has joined #ruby
[10:27:16] roshanavand: has joined #ruby
[10:28:44] roshanavand: has joined #ruby
[10:29:34] gagrio_: has joined #ruby
[10:30:56] djbkd: has joined #ruby
[10:32:42] zotherstupidguy: has joined #ruby
[10:32:51] yashinbasement: has joined #ruby
[10:35:02] varunwachaspati: has joined #ruby
[10:36:36] ur5us: has joined #ruby
[10:38:21] startupality: has joined #ruby
[10:39:38] tulak: has joined #ruby
[10:41:35] ElFerna: has joined #ruby
[10:41:51] senayar: has joined #ruby
[10:41:52] senayar: has joined #ruby
[10:42:04] ziggy: has joined #ruby
[10:42:05] ziggy: has joined #ruby
[10:44:11] yfeldblum: has joined #ruby
[10:44:16] edwinvdgraaf: has joined #ruby
[10:44:17] Pupp3tm4st3r: has joined #ruby
[10:45:06] nfk|laptop: has joined #ruby
[10:48:11] ta: has joined #ruby
[10:48:25] dsdeiz: has joined #ruby
[10:48:50] lxsameer: has joined #ruby
[10:49:56] cassioscabral: has joined #ruby
[10:49:57] bithon: has joined #ruby
[10:50:07] bithon: has joined #ruby
[10:50:09] toretore: has joined #ruby
[10:50:29] FooMunki: has joined #ruby
[10:51:31] seitensei: has joined #ruby
[10:54:45] snowy: has joined #ruby
[10:56:12] nanoz: has joined #ruby
[10:57:16] 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
[10:57:27] ziggy: has joined #ruby
[10:57:27] ziggy: has joined #ruby
[10:58:06] adaedra: #include <hell.h>
[10:58:25] yorickpeterse: https://gist.github.com/YorickPeterse/0df70b4f341cb67f21ed
[10:58:33] yorickpeterse: Basically it keeps counters of objects that are retained after GC runs
[10:58:39] yorickpeterse: and it's totally not thread-safe at all
[10:58:45] yorickpeterse: but hey that's what a GIL is for ???(???)???
[10:59:17] bithon: my favorite pasttime is to write terrible C/C++ code so thumbs up for you yorickpeterse :D
[10:59:23] blub: ???(???)???
[10:59:36] adaedra: ???( ??? )???
[10:59:38] yorickpeterse: I'd do this in Rust if it wasn't such a PITA to write extensions in Rust for MRI
[11:00:47] platzhirsch: has joined #ruby
[11:00:59] yorickpeterse: From what I remember yes
[11:01:15] yorickpeterse: That and people would need to have Rust/cargo installed, unless you precompile the extension and dump it in the Gem
[11:01:20] yorickpeterse: which then gives you all sorts of other problems
[11:01:41] shevy: return adaedra
[11:01:55] shevy: but I capture a boolean!
[11:02:00] lacuna: has joined #ruby
[11:02:00] lacuna: has joined #ruby
[11:02:08] shevy: now I need one of you to be false
[11:02:13] adaedra: Who are you calling boolean? ??_??
[11:02:21] bithon: has joined #ruby
[11:05:37] gregf_: has joined #ruby
[11:06:37] roshanavand: has joined #ruby
[11:07:07] baweaver: has joined #ruby
[11:07:22] roshanavand: has joined #ruby
[11:07:51] slackR: has joined #ruby
[11:08:12] roshanavand: has joined #ruby
[11:08:56] slackR: please review my code: https://github.com/and-the-rest/research_topicgen
[11:09:01] roshanavand: has joined #ruby
[11:09:50] roshanavand: has joined #ruby
[11:10:16] jhass: slackr: why tabs?
[11:10:34] jhass: https://github.com/and-the-rest/research_topicgen/blob/master/research_topicgen.gemspec look how badly that renders
[11:10:41] roshanavand: has joined #ruby
[11:11:32] adaedra: such tabs, very misaligned
[11:11:34] slackR: jhass: Idk what's the problem with gh. My editor shows it properly
[11:11:50] adaedra: slackr: because tabs.
[11:11:52] Zarthus: slackr: tabs aren't for alignment
[11:11:53] slackR: adaedra: Zarthus jhass: https://u.pomf.io/wgasdg.png
[11:11:54] blub: thats not how you use tabs
[11:12:03] AlexRussia: has joined #ruby
[11:12:04] bithon: You should use set tabwidth=2 tabstop=2
[11:12:14] adaedra: that's the problem with tabs.
[11:12:14] Zarthus: and expandtab hehe
[11:12:19] SCHAAP137: has joined #ruby
[11:12:19] bithon: and yeah of course
[11:12:22] bithon: expandtab
[11:12:50] bithon: you can even have my .vimrc -- it's really really basic but works https://github.com/mirkos/config-files/blob/master/.vimrc
[11:13:10] slackR: bithon: my vimrc is basically empty.
[11:13:22] bithon: so is my, kind of
[11:13:34] Zarthus: it's all about the vundle
[11:13:37] adaedra: slackr: github uses the default 8-sized tabs, while you have a 4-sized one.
[11:13:51] jhass: slackr: which ruby versions do you target?
[11:14:08] gagrio: has joined #ruby
[11:14:21] adaedra: :set sw=2 sts=2 et
[11:14:33] slackR: jhass: idk, It's my first gem.
[11:14:33] Ishido: has joined #ruby
[11:14:42] jhass: kay, then we just say 2.2 is good enough
[11:14:44] jhass: https://github.com/and-the-rest/research_topicgen/blob/master/lib/research_topicgen.rb#L1 -> require "yaml"
[11:15:24] slackR: jhass: yaml is not required
[11:15:32] Zarthus: `loadit` is a pretty undescriptive method name
[11:15:36] 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")
[11:15:48] slackR: jhass: http://ruby-doc.org/stdlib-2.1.0/libdoc/psych/rdoc/Psych.html
[11:16:12] jhass: slackr: YAML is the preferred interface to it
[11:16:21] adaedra: Wow, that aggressive doc.
[11:16:32] slackR: Zarthus: any other method name suggestion?
[11:16:44] 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
[11:16:55] jhass: https://github.com/and-the-rest/research_topicgen/blob/master/lib/research_topicgen.rb#L18-L19 drop this
[11:17:22] yorickpeterse: Hm, TIL there's a class called "NameError::message"
[11:17:55] slackR: jhass: will do that. wait a minute
[11:18:35] jhass: https://github.com/and-the-rest/research_topicgen/blob/master/lib/research_topicgen.rb#L18-L19 -> connectives = [*connectives[:common_connectives], *connectives[:extra_connectives]]
[11:18:39] ashemark: has joined #ruby
[11:19:24] 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)
[11:19:54] adaedra: hi ashemark
[11:20:10] blub: haha whats with the tabs after the commas
[11:20:22] jhass: https://github.com/and-the-rest/research_topicgen/blob/master/lib/research_topicgen.rb#L33 -> "#{sentence.join(' ')}."
[11:20:22] rickmasta: has joined #ruby
[11:20:37] apeiros: Bish: ???????? ;-)
[11:20:55] apeiros: (thumb-up, in case you don't emoji)
[11:21:05] blub: load_file sometimes returning an array is gross
[11:21:06] slackR: jhass: I didn't understand the L28 part
[11:21:09] jhass: https://github.com/and-the-rest/research_topicgen/blob/master/lib/research_topicgen.rb#L39-L40 -> repeated code, maybe pull it into loadit
[11:21:16] ljarvis: ???? if you dont emoji
[11:21:26] adaedra: apeiros: ????
[11:21:37] adaedra: ljarvis: that was not really nice.
[11:21:51] jhass: slackr: not sure what's not clear on "this line is too long, add newlines"
[11:21:51] ashemark: where/how do I learn about middleware as a general concept/wrt sinatra?
[11:22:02] ljarvis: adaedra: :(
[11:22:24] adaedra: ashemark: middleware is a rack concept (may help you with the google searches)
[11:22:42] ljarvis: it's more of a general concept I'd say
[11:22:45] slackR: jhass: "i meant whether to keep each array_variables in single line?"
[11:23:20] jhass: slackr: yes? a [] literal allows you to add as many newlines as you want
[11:23:22] ashemark: i agree, it's more of a general concept, as I've seen it's used in nodejs as well..
[11:23:32] adaedra: ljarvis: agreed, but for the Sinatra stack, it's Rack which puts it in place
[11:23:34] jhass: slackr: https://github.com/and-the-rest/research_topicgen/blob/master/lib/research_topicgen.rb#L45 I'd prefer a if/elsif chain here
[11:23:50] jhass: slackr: also I'd probably keep wordN as an array and use word[N]
[11:23:52] adaedra: I had a write-up on it, but it's not up anymore :I
[11:23:52] rdark: has joined #ruby
[11:24:04] jhass: slackr: add spaces around ==
[11:24:24] jhass: slackr: no need for the parens in any of your (x || y)
[11:24:33] slackR: will take care of it.
[11:24:44] jhass: slackr: also no need for any of your self. inside the methods
[11:25:16] slackR: while invoking methods, you mean?
[11:26:12] dlitvak: has joined #ruby
[11:26:25] jhass: all your (x && y) don't need the parens either
[11:27:06] slackR: well I thought it made code more readable
[11:27:26] jhass: slackr: all your return keywords are not needed
[11:28:00] blackmesa: has joined #ruby
[11:28:02] jhass: there's probably a cleaner way to the logic in random_word
[11:28:37] rdark: has joined #ruby
[11:29:02] jhass: you pass in the number in order to decide how many checks to do? why not look at cols.size?
[11:29:25] blub: your functions that return arrays sometimes so that you don't have to call them repeatedly are very ugly
[11:29:33] bithon: has joined #ruby
[11:29:59] nfk|laptop: has joined #ruby
[11:29:59] slackR: jhass: I will re-write that random_word function
[11:30:08] slackR: blub: L ?
[11:30:32] blub: like load_file
[11:30:36] jhass: slackr: so that's a yes?
[11:30:51] ElFerna: has joined #ruby
[11:31:06] slackR: jhass: of course.
[11:31:07] jhass: slackr: comment on it is outdated I guess?
[11:31:20] jhass: the goal is to have n different words?
[11:31:47] jhass: slackr: sample takes an argument
[11:32:01] yfeldblum: has joined #ruby
[11:32:10] jhass: >> ["a", "b", "c", "d", "e"].sample(3)
[11:32:11] ruboto: jhass # => ["e", "d", "b"] (https://eval.in/487017)
[11:32:13] jhass: >> ["a", "b", "c", "d", "e"].sample(10)
[11:32:14] ruboto: jhass # => ["b", "a", "e", "c", "d"] (https://eval.in/487018)
[11:32:26] jhass: no repetitions
[11:32:44] slackR: that's clean
[11:33:17] slackR: I have to go through the irc-log again before I re-write
[11:33:33] last_staff: has joined #ruby
[11:34:53] astrobun_: has joined #ruby
[11:36:23] slackR: jhass: thanks. bithon: thanks for the vimrc
[11:36:49] slackR: I'll be using 4 instead of 2.
[11:37:32] adaedra: slackr: Ruby standards is two spaces.
[11:39:22] tagrudev: has joined #ruby
[11:39:40] vondruch: has joined #ruby
[11:39:46] rdark: has joined #ruby
[11:40:21] kao: has joined #ruby
[11:41:10] Macaveli: has joined #ruby
[11:41:11] rdark: has joined #ruby
[11:41:34] Arctaire: has joined #ruby
[11:41:43] boxrick1: has joined #ruby
[11:41:45] rdark: has joined #ruby
[11:42:05] danzilio: has joined #ruby
[11:42:21] jun_: has joined #ruby
[11:43:17] jhill: has joined #ruby
[11:43:43] cardoni: has joined #ruby
[11:44:24] DukeDave: has joined #ruby
[11:44:47] bogn: has joined #ruby
[11:44:49] goodcodeguy: has joined #ruby
[11:47:05] nigro: why would you kill han solo?
[11:47:18] nigro: why would you make kylo ren the new darth vader?
[11:47:31] ruboto: fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, workmad3, Coraline, miah, drbrain, slyphon, zenspider, rubyhacker1, Aria, ljarvis, Adaedra, baweaver
[11:47:34] ruboto: +q nigro!*@*
[11:47:34] ruboto: -o ruboto
[11:47:43] timonv: has joined #ruby
[11:47:47] Zarthus: man, that's some quality time response.
[11:48:14] adaedra: that was quick indeed
[11:48:48] Zarthus: I'm a bit disappointed the ops list isn't alphabeticized :(
[11:49:05] adaedra: the list isn't even up to date
[11:49:14] Zarthus: Even worse!
[11:49:32] adaedra: but I think changes are planned, so just be patient
[11:49:52] Zarthus: is ruboto open source?
[11:50:15] ljarvis: Zarthus: bug apeiros about it
[11:50:28] adaedra: Go #ruby-community, also
[11:51:00] akaiiro: has joined #ruby
[11:51:45] yorickpeterse: stupid C, stupid deadlocks, hrmpflf
[11:52:00] adaedra: I deadlocked in Ruby once.
[11:52:15] ljarvis: unpossible!
[11:52:17] adaedra: It's nice because it detects it somehow.
[11:52:20] c355E3B: has joined #ruby
[11:52:28] yorickpeterse: So I basically have 3 functions: 1 for allocations, 1 for frees, 1 to get the current state of things
[11:52:33] yorickpeterse: the first two can lock/unlock fine
[11:52:38] yorickpeterse: Throw in a lock for the 3rd, boom, deadlock
[11:52:57] ljarvis: stop writing C
[11:52:58] yorickpeterse: which is weird because the 3rd shouldn't be able to run concurrently
[11:53:07] ljarvis: ok stop talking about it in here
[11:53:11] ljarvis: hah! i can enforce that
[11:53:47] adaedra: ljarvis: you muted a troll twice and you're still thirsty for power?
[11:54:09] ljarvis: ACTION widens eyes
[11:54:28] jhass: can you stop once you started a bag of potato chips?
[11:55:07] sdothum: has joined #ruby
[11:55:11] ljarvis: yes, i stop when there are no potato chips in the bag
[11:55:16] astrobun_: has joined #ruby
[11:55:24] jhass: see, same mechanism
[11:56:00] incomprehensibly: has joined #ruby
[11:56:00] ljarvis: so I will stop when this channel is just full of ops?
[11:56:02] siddharth: has joined #ruby
[11:56:31] ljarvis: or.. just me
[11:56:33] ljarvis: ACTION cackles
[11:56:37] ljarvis: ACTION coughs because he has a cold
[11:56:52] akahn: has joined #ruby
[11:57:14] adaedra: ljarvis: you can kick yourself too.
[11:57:39] tulak: has joined #ruby
[11:57:43] ljarvis: that seems counter productive
[11:57:49] rflot: has joined #ruby
[11:57:49] Bish: https://www.youtube.com/watch?v=XHosLhPEN3k
[11:57:53] Bish: always loved that version
[11:58:04] adaedra: I think I saw a pixel
[11:58:06] danzilio: has joined #ruby
[11:58:06] Bish: despite the crappy quality of the video
[11:58:31] ljarvis: I just see an aubergine
[11:58:44] adaedra: Anyway, let's talk power abuse and bad quality videos in -offtopic.
[11:58:56] DukeDave: has joined #ruby
[11:59:17] jmhmccr: has joined #ruby
[12:00:25] skade: has joined #ruby
[12:00:33] aryaching: has joined #ruby
[12:00:37] nfk|laptop: has joined #ruby
[12:01:10] mikecmpbll: has joined #ruby
[12:01:34] ElFerna: has joined #ruby
[12:02:13] mroth: has joined #ruby
[12:02:33] Macaveli_: has joined #ruby
[12:03:16] slackR: has joined #ruby
[12:03:48] dseitz: has joined #ruby
[12:04:37] deeprave: has joined #ruby
[12:04:40] ec: has joined #ruby
[12:05:19] CloCkWeRX: has joined #ruby
[12:05:25] Macaveli: has joined #ruby
[12:05:58] CloCkWeRX1: has joined #ruby
[12:09:28] kstuart: has joined #ruby
[12:09:35] CloCkWeRX: has joined #ruby
[12:10:11] prestorium: has joined #ruby
[12:10:40] UniFreak: has joined #ruby
[12:10:51] UniFreak: has left #ruby: ("Leaving")
[12:11:52] UniFreak: has joined #ruby
[12:12:53] 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
[12:13:08] UniFreak: but still the error occur with the same error
[12:14:08] jhass: UniFreak: it might be worth to repeat the initial problem description
[12:14:10] angryhippo: has left #ruby: ()
[12:14:16] apeiros: Zarthus: sorry, ruboto won't be open source any time soon. parts of it will eventually be, making contributions possible.
[12:14:36] Mon_Ouie: has joined #ruby
[12:14:38] roshanavand: has joined #ruby
[12:14:44] diegoviola: has joined #ruby
[12:14:50] UniFreak: jhass:http://paste.linux.chat/view/38c9cb03
[12:14:52] dstarh: has joined #ruby
[12:14:56] slackR: apeiros: what framework does that bot use?
[12:15:02] knowtheory: has joined #ruby
[12:15:12] apeiros: slackr: currently cinch. next release a rewrite of butler.
[12:15:27] UniFreak: jhass: I'm following this:https://github.com/Maher4Ever/wdm/issues/12
[12:15:58] rgtk: has joined #ruby
[12:16:27] vondruch: has joined #ruby
[12:17:11] jhass: UniFreak: could you run this with an english locale?
[12:17:23] build22_: has joined #ruby
[12:19:36] UniFreak: jhass: here: http://paste.linux.chat/view/a25a6807
[12:20:38] raniemi: has joined #ruby
[12:20:52] 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.
[12:21:00] 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
[12:21:28] UniFreak: jhass: is there a way I can skip the gem when doing `bundle install`?
[12:21:54] roshanavand: has joined #ruby
[12:21:55] jhass: UniFreak: maybe, post your Gemfile and Gemfile.lock please
[12:22:06] acadavid: has joined #ruby
[12:22:56] UniFreak: has left #ruby: ("Leaving")
[12:23:01] UniFreak: has joined #ruby
[12:23:18] incomprehensibly: has joined #ruby
[12:23:36] Arctaire: has joined #ruby
[12:23:46] UniFreak: jhass: Gemfile.lock:http://paste.linux.chat/view/336927d7, Gemfile:http://paste.linux.chat/view/6b2aedb8
[12:23:55] Macaveli: has joined #ruby
[12:24:30] jhass: UniFreak: alright, given what it is, just dropping the last (gem 'wdm' ...) line from the Gemfile should be fine
[12:24:41] jmhmccr: has joined #ruby
[12:25:13] vcoinminer_: has joined #ruby
[12:25:14] jhass: any live reload functionality probably won't work, but better than nothing
[12:25:36] CloCkWeRX: has joined #ruby
[12:26:37] tulak: has joined #ruby
[12:26:42] mroth: has joined #ruby
[12:27:18] DeXterbed: has joined #ruby
[12:28:18] kirun: has joined #ruby
[12:28:22] dlitvak: has joined #ruby
[12:28:50] jhill: has joined #ruby
[12:28:51] astrobun_: has joined #ruby
[12:29:17] deeprave: has joined #ruby
[12:29:30] rflot: has joined #ruby
[12:30:03] mmitchell: has joined #ruby
[12:30:28] tejasmanohar: has joined #ruby
[12:30:44] knowtheory: has joined #ruby
[12:31:07] ckrailo: has joined #ruby
[12:31:14] zotherstupidguy: has joined #ruby
[12:31:26] kobain: has joined #ruby
[12:31:30] ec: has joined #ruby
[12:31:42] siddharth: has joined #ruby
[12:32:07] bogn: has joined #ruby
[12:32:21] cardoni: has joined #ruby
[12:34:12] boxrick1: has joined #ruby
[12:34:44] jabreity__: has joined #ruby
[12:35:35] toretore: has joined #ruby
[12:35:38] Macaveli: has joined #ruby
[12:35:42] passerine: has left #ruby: ()
[12:35:45] ruby-lang729: has joined #ruby
[12:36:08] blackmesa: has joined #ruby
[12:36:20] tvw: has joined #ruby
[12:36:34] jun_: has joined #ruby
[12:38:05] dionysus69: has joined #ruby
[12:38:51] andersh: has joined #ruby
[12:39:01] akahn: has joined #ruby
[12:39:57] danzilio: has joined #ruby
[12:40:56] jpinnix______: has joined #ruby
[12:41:44] DukeDave: has joined #ruby
[12:41:56] ruid: has joined #ruby
[12:41:57] ruid: has joined #ruby
[12:42:01] moeabdol: has joined #ruby
[12:42:32] Macaveli_: has joined #ruby
[12:45:00] DeXterbed: has joined #ruby
[12:45:04] mostlybadfly: has joined #ruby
[12:45:47] Mr_Psmith: has joined #ruby
[12:49:11] krzkrzkrz: has joined #ruby
[12:50:01] zotherstupidguy: is there a basic auth twitter gem ?
[12:50:02] 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`.
[12:50:41] PaulePanter: What???s the suggested name for the method: uncommon_duration? or has_uncommon_duration?
[12:50:57] PaulePanter: https://github.com/bbatsov/ruby-style-guide
[12:51:02] PaulePanter: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/43765
[12:51:18] PaulePanter: adaedra: The URLs suggest that too.
[12:51:44] madcodes: has joined #ruby
[12:52:25] seitensei: has joined #ruby
[12:52:58] adaedra: there's no enforced rule, but the ? should be enough to denote it's a boolean, no need for is_ or has_ prefixes.
[12:53:08] 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.
[12:53:28] PaulePanter: adaedra: Understood. Thank you for the clarifications.
[12:53:37] millerti: has joined #ruby
[12:53:41] beast: has joined #ruby
[12:57:10] sigurding: has joined #ruby
[12:58:14] colegatron: has joined #ruby
[12:58:37] jpank: has joined #ruby
[12:59:22] pdoherty: has joined #ruby
[13:00:13] shredding: has joined #ruby
[13:00:43] synthroid: has joined #ruby
[13:01:30] CloCkWeRX: has joined #ruby
[13:01:35] startupality: has joined #ruby
[13:02:09] pika_pika: has joined #ruby
[13:02:22] DukeDave: has joined #ruby
[13:02:29] boboc: has joined #ruby
[13:03:53] jhill: has joined #ruby
[13:04:23] ruby-lang856: has joined #ruby
[13:04:41] ruby-lang856: how can i get an invite to join #ruby-lang?
[13:04:44] mroth: has joined #ruby
[13:05:25] boboc: has joined #ruby
[13:06:15] ljarvis: ruby-lang856: there is no ruby-lang
[13:06:20] ljarvis: there is #ruby
[13:06:31] ljarvis: and you're here already \o/
[13:06:36] GinoManWorks: ruby.live long
[13:06:55] GinoManWorks: ruby.live :long
[13:07:03] ec: has joined #ruby
[13:07:09] acadavid: has joined #ruby
[13:07:23] 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?
[13:07:23] jpinnix______: has joined #ruby
[13:07:24] ckrailo: has joined #ruby
[13:07:27] apeiros: ruby.live :long, and: "prosper"
[13:07:57] akahn: has joined #ruby
[13:08:01] apeiros: boboc: if you mean instance_of_MyString > instance_of_String, then yes
[13:08:17] davedev24: has joined #ruby
[13:08:20] apeiros: boboc: if you literally mean MyString > String, then no, because Subclass is always < ParentClass
[13:08:43] apeiros: boboc: also, you shouldn't inherit from classes you don't control. composition over inheritance there.
[13:08:55] baweaver: has joined #ruby
[13:09:00] apeiros: I hope you get thought accordingly :)
[13:09:27] jmhmccr: has joined #ruby
[13:09:27] dotix: has joined #ruby
[13:09:31] 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 :)
[13:10:26] apeiros: boboc: you can override MyString.<
[13:10:30] apeiros: that's horrible, though.
[13:10:31] incomprehensibly: has joined #ruby
[13:10:42] apeiros: i.e. you can make *any* method return *anything* you want.
[13:10:42] knowtheory: has joined #ruby
[13:10:57] ljarvis: within reason
[13:11:09] apeiros: >> class String; def <(*); "hello, this makes no sense"; end; end; "foo" < 42
[13:11:10] ruboto: apeiros # => "hello, this makes no sense" (https://eval.in/487070)
[13:11:20] vondruch: has joined #ruby
[13:11:25] apeiros: ljarvis: I'd argue even beyond reason, see ^ :D
[13:11:32] vcoinminer_: has joined #ruby
[13:11:33] deeprave: has joined #ruby
[13:11:46] cassioscabral: has joined #ruby
[13:12:05] rflot: has joined #ruby
[13:12:26] ornerymoose: has joined #ruby
[13:12:33] abyss: has joined #ruby
[13:13:04] vasilakisFiL: has joined #ruby
[13:13:29] rickmasta: has joined #ruby
[13:14:04] knowtheory_: has joined #ruby
[13:14:07] 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
[13:14:12] lurch_: has joined #ruby
[13:14:14] vasilakisFiL: should I inherit the Hash or use composition ?
[13:15:08] ornerymoose_: has joined #ruby
[13:15:11] vcoinminer__: has joined #ruby
[13:15:20] UniFreak: has joined #ruby
[13:15:41] bithon: has joined #ruby
[13:15:47] InvGhost: has joined #ruby
[13:16:12] apeiros: vasilakisfil: as I just said above: do NOT inherit classes you don't control. use composition.
[13:16:24] deeprave___: has joined #ruby
[13:16:38] rflot_: has joined #ruby
[13:16:49] apeiros: vasilakisfil: take a look at Forwardable stdlib module
[13:16:54] kalopsian: has joined #ruby
[13:17:04] apeiros: and Delegator/SimpleDelegator. they make that quite easy.
[13:18:46] joonty: has joined #ruby
[13:19:17] astrobun_: has joined #ruby
[13:21:30] cardoni: has joined #ruby
[13:23:24] arturaz: has joined #ruby
[13:23:32] boxrick1: has joined #ruby
[13:23:56] dstarh: has joined #ruby
[13:24:00] sgambino: has joined #ruby
[13:26:43] jabreity__: has joined #ruby
[13:27:39] cardoni_: has joined #ruby
[13:27:53] troulouliou_div2: has joined #ruby
[13:29:12] d0nn1e: has joined #ruby
[13:29:30] roshanavand: has joined #ruby
[13:29:42] danzilio: has joined #ruby
[13:30:11] Arctaire: has joined #ruby
[13:30:55] andersh: has joined #ruby
[13:32:14] vasilakisFiL: why google still keeps ruby 1.9.3 docs as top results :/
[13:32:30] danzilio_: has joined #ruby
[13:32:58] boxrick1_: has joined #ruby
[13:33:59] platzhirsch: has left #ruby: ()
[13:34:06] astrobun_: has joined #ruby
[13:35:35] maxmanders: has joined #ruby
[13:36:13] jabreity___: has joined #ruby
[13:38:09] sankaber: has joined #ruby
[13:38:26] roshanav_: has joined #ruby
[13:39:11] blackmesa: has joined #ruby
[13:39:14] tejasmanohar: has joined #ruby
[13:39:14] arturaz: has joined #ruby
[13:42:27] grepwood: has joined #ruby
[13:42:29] grepwood: hi everyone
[13:42:43] danzilio_: has joined #ruby
[13:42:46] grepwood: anyone here familiar with C's fwrite function? I kinda need something similar
[13:43:09] apeiros: hi grepwood
[13:43:11] ramortegui: has joined #ruby
[13:43:18] grepwood: hi apeiros, how are you? :)
[13:43:23] apeiros: fine, fine
[13:43:30] apeiros: what properties of fwrite do you need?
[13:43:49] Arctaire_: has joined #ruby
[13:43:54] vasilakisFiL: can't I define a method called real_[] ? :/
[13:43:57] grepwood: I have a byte array and I need to write down exactly 64 bytes from it
[13:44:00] apeiros: vasilakisfil: no
[13:44:04] rgtk: has joined #ruby
[13:44:11] vasilakisFiL: what's the actual limitation?
[13:44:12] apeiros: vasilakisfil: you can define a method real_, which returns an object which responds to []
[13:44:31] apeiros: vasilakisfil: [] can't be part of a method name, it's only allowed in [] and []=
[13:44:50] andersh_: has joined #ruby
[13:45:05] grepwood: each time that 64 bytes are written down, I need to putc('\n') in there too
[13:45:24] grepwood: if you're asking why this is oddly similar to creating a RSA key file... it's because it is exactly that
[13:45:26] Mon_Ouie: has joined #ruby
[13:45:26] vasilakisFiL: yeah I get that, but why is is not allowed by the ruby "specs" ? it wouldn't hurt, I think
[13:45:51] apeiros: grepwood: puts *objects
[13:46:07] grepwood: apeiros, but what about the 64?
[13:46:11] apeiros: assuming objects is an array of 64byte strings (or objects which return 64byte strings when calling to_s)
[13:46:25] apeiros: if that's not the case, you'll have to elaborate on what you have
[13:46:41] grepwood: the string is actually
[13:47:03] apeiros: vasilakisfil: because how do you differ between obj.foo[0] and object.foo[0]? (once being .foo.[](0) and once being foo[](0))
[13:47:05] dlitvak_: has joined #ruby
[13:47:16] apeiros: vasilakisfil: or to answer: because it'd be ambiguous.
[13:47:23] grepwood: what you get when you `grep -v ^\- | tr -d '\n'` your RSA key
[13:47:38] grepwood: so that's a really long base64
[13:48:19] 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)
[13:48:31] apeiros: base64 writes a newline after 60 chars, no?
[13:48:35] tejasmanohar_: has joined #ruby
[13:48:40] grepwood: after 64, I counted
[13:48:50] grepwood: at least for SSL certs and RSA keys
[13:49:20] apeiros: Base64.encode64 will write a newline every 60 chars by default.
[13:49:29] apeiros: and doesn't seem to have an argument
[13:50:11] apeiros: grepwood: anway - you have a string containing base64 without newlines and you want to have newlines every 64 chars?
[13:50:29] grepwood: apeiros, yes, exactly
[13:50:35] apeiros: ok, then almost what I said above:
[13:50:52] grepwood: that way I can write it back into a file on the server and pretend it's the RSA key I originally had
[13:50:55] apeiros: puts longstring.scan(/.{,64}/)
[13:51:17] apeiros: assuming it *really* doesn't contain \n :)
[13:51:23] apeiros: sorry, puts longstring.scan(/.{1,64}/)
[13:51:31] apeiros: otherwise you might have an empty line in it
[13:51:33] grepwood: I can swear on my pinkie it has no newlines
[13:51:50] grepwood: Chef wouldn't accept it if it had
[13:52:52] cassioscabral: has joined #ruby
[13:54:50] grepwood: you're the best apeiros :D
[13:55:45] apeiros: you say as if that wasn't obvious ;-p
[13:55:55] apeiros: can't type
[13:56:03] apeiros: but meeting incoming so slightly stressed :D
[13:56:06] apeiros: ACTION afk
[13:56:27] millerti: has joined #ruby
[13:57:49] freerobby: has joined #ruby
[14:00:01] f4cl3y: has joined #ruby
[14:00:27] devbug: has joined #ruby
[14:00:29] Rodya_: has joined #ruby
[14:00:33] sdwrage: has joined #ruby
[14:00:49] kfrz: has joined #ruby
[14:01:42] araujo: has joined #ruby
[14:01:55] araujo: has joined #ruby
[14:02:02] AlexRussia: has joined #ruby
[14:02:25] 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
[14:02:27] valetudo: has joined #ruby
[14:02:35] kfrz: which ruby is /usr/local/bin/ruby - is that accurate?
[14:02:51] Drakevr: has joined #ruby
[14:03:13] kfrz: has left #ruby: ()
[14:03:19] araujo: has joined #ruby
[14:03:55] Drakevr: has joined #ruby
[14:04:01] ljarvis: there's no wrong answer, really
[14:04:21] monumentlike: has joined #ruby
[14:04:25] 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)
[14:05:09] araujo: has joined #ruby
[14:09:01] Bish: the f is tmuxiator, another great thing i have to look into!??!
[14:10:08] Bish: coooooooooooooool
[14:10:23] roshanavand: has joined #ruby
[14:10:54] Lewix: apeiros: where do you work again
[14:13:29] nertzy: has joined #ruby
[14:14:28] ljarvis: for the lords of a pie ros
[14:14:38] akaiiro: has joined #ruby
[14:15:32] jas02_: has joined #ruby
[14:15:47] FCser: has joined #ruby
[14:16:15] Lewix: ljarvis: I thought that was for an ape I rose
[14:19:11] Jardayn: has joined #ruby
[14:19:30] Bish: are there more cool gems that i should know of?
[14:19:35] Bish: sequel,pry,tmuxiator
[14:19:48] ElFerna: has joined #ruby
[14:20:32] ljarvis: Bish: https://www.ruby-toolbox.com
[14:21:25] Bish: most of them are rails, i don't like rails :/
[14:21:34] Bish: well i like rails, but i also like doing stuff myself
[14:22:07] ljarvis: no most of them aren't rails
[14:22:27] TomPeed: has joined #ruby
[14:22:35] ljarvis: but there are lots of rails ones, you can just go to a category
[14:22:54] ljarvis: if you like doing stuff yourself then looking at third party libraries is probably a bit confusing
[14:23:59] adaedra: there's also awesome-ruby
[14:24:17] ljarvis: that is not a url
[14:25:04] chipotle: has joined #ruby
[14:25:43] Bish: no matter how much i learn about ruby
[14:25:45] Bish: it just amazes me more
[14:26:04] adaedra: here it is http://awesome-ruby.com
[14:26:27] Bish: and with crystal we might get a kernel in ruby(-ish) language
[14:26:36] Bish: and have an OS
[14:27:53] ramfjord: has joined #ruby
[14:29:07] Bish: hype, anyone!?
[14:31:15] jas02_: has joined #ruby
[14:31:37] tlaxkit: has joined #ruby
[14:32:01] malconis: has joined #ruby
[14:33:58] skade: has joined #ruby
[14:36:52] FernandoBasso1: has joined #ruby
[14:37:03] freerobby: has joined #ruby
[14:40:14] Scripore: has joined #ruby
[14:40:37] nateberkopec: has joined #ruby
[14:41:23] TomyWork: has joined #ruby
[14:42:12] brendan-: has joined #ruby
[14:42:35] goodcodeguy: has joined #ruby
[14:43:05] atomical: has joined #ruby
[14:44:08] babblebre: has joined #ruby
[14:44:09] gizmore: has joined #ruby
[14:44:39] roshanavand: has joined #ruby
[14:44:50] sankaber: has joined #ruby
[14:45:03] stannard: has joined #ruby
[14:45:45] atomical: has joined #ruby
[14:46:51] Xiti: has joined #ruby
[14:46:52] Xiti: has joined #ruby
[14:50:20] nettoweb: has joined #ruby
[14:50:22] rippa: has joined #ruby
[14:51:07] makaveli0227TL: has joined #ruby
[14:53:18] seitensei: has joined #ruby
[14:53:44] lacuna: has joined #ruby
[14:53:45] lacuna: has joined #ruby
[14:53:55] pawnbox: has joined #ruby
[14:54:19] bigmac_: has joined #ruby
[14:54:57] Macaveli: has joined #ruby
[14:56:12] JCOE: has joined #ruby
[14:57:17] linelevel: has joined #ruby
[14:58:29] joonty: has joined #ruby
[14:59:42] vondruch: has joined #ruby
[15:02:00] krobzaur: has joined #ruby
[15:02:16] krobzaur: has joined #ruby
[15:03:27] agent_white: has joined #ruby
[15:04:57] gizmore: i worked hard to get rid of rails in my project... now i miss it??s autoload
[15:05:59] adaedra: You can totally redo it.
[15:06:10] adaedra: Or use already done, I think that's what apeiros was working on.
[15:06:51] Bish: can i move "one module up" ?
[15:07:08] tvw: has joined #ruby
[15:07:16] roshanavand: has joined #ruby
[15:08:06] weemsledeux: has joined #ruby
[15:08:14] dhollinger: has joined #ruby
[15:09:08] decoponio: has joined #ruby
[15:09:31] cdg: has joined #ruby
[15:09:42] ziggy: has joined #ruby
[15:09:43] ziggy: has joined #ruby
[15:10:18] whippythellama: has joined #ruby
[15:10:22] pdoherty: has joined #ruby
[15:10:28] dlitvak: has joined #ruby
[15:13:06] seitensei: has joined #ruby
[15:13:47] ZiggyTheHamster: has joined #ruby
[15:14:11] mary5030: has joined #ruby
[15:16:23] dsdeiz: has joined #ruby
[15:17:18] kalopsian: has joined #ruby
[15:18:01] grill: has joined #ruby
[15:19:24] sameerynho: has joined #ruby
[15:21:57] roshanavand: has joined #ruby
[15:23:43] _stu_: has joined #ruby
[15:24:03] medvedu: has joined #ruby
[15:26:41] cwong_on_irc: has joined #ruby
[15:27:41] podman: has joined #ruby
[15:31:18] jun_: has joined #ruby
[15:31:33] alphaatom: has joined #ruby
[15:32:03] axl_: has joined #ruby
[15:33:17] dmolina1: has joined #ruby
[15:33:57] RegulationD: has joined #ruby
[15:34:52] sucks: has joined #ruby
[15:36:52] dlitvak: has joined #ruby
[15:37:44] djcp: has joined #ruby
[15:37:46] chipotle_: has joined #ruby
[15:39:08] rdavila: has joined #ruby
[15:40:11] yes`r: has joined #ruby
[15:40:56] slawrence00: has joined #ruby
[15:41:08] aspire: has joined #ruby
[15:41:55] JCOE: has joined #ruby
[15:42:09] yorickpeterse: https://gitlab.com/gitlab-org/allocations there we go
[15:42:15] yorickpeterse: and it only slows down allocations by ~1,8x
[15:42:21] yorickpeterse: instead of 5-10 times (what most other Gems do)
[15:42:29] yorickpeterse: and it's 120-something times faster than ObjectSpace.each_object :D
[15:44:01] jessemcgilallen: has joined #ruby
[15:44:01] apeiros: gizmore: https://github.com/apeiros/zeroload - note: it breaks with ruby and rails convention wrt file naming
[15:44:25] apeiros: but IMO it's absolutely worth it. at least I still wonder why I didn't do that earlier.
[15:44:31] adaedra: my memory was good \o/
[15:45:03] apeiros: it's really sad that we don't have const_added, though. makes recursive zeroload impossible :(
[15:45:15] gizmore: apeiros: thanks... i was already looking at it... but renaming 1000 files will be hard work -.-
[15:45:25] apeiros: gizmore: are you a programmer or what?
[15:45:30] adaedra: write a script!
[15:45:33] yorickpeterse: https://gitlab.com/gitlab-org/allocations link FYI
[15:45:55] 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
[15:45:55] apeiros: but point taken, I'll add `zeroload rename_files [GLOB]`
[15:46:06] grepwood: is Ruby known for disregarding the order of lines in its programs?
[15:46:29] apeiros: grepwood: no.
[15:46:33] adaedra: what is your problem?
[15:46:39] apeiros: grepwood: unless you make it so.
[15:46:48] grepwood: I have a function that does 2 things that interest us
[15:47:00] cjbottaro: has joined #ruby
[15:47:04] grepwood: 1. downloads a remote file to a known location
[15:47:09] grepwood: 2. uses said file to do stuff
[15:47:26] Scripore: has joined #ruby
[15:47:27] grepwood: what happens is that Ruby is trying to do #2 ahead of #1
[15:47:33] apeiros: yorickpeterse: that looks quite interesting!
[15:47:37] adaedra: maybe your download is done async? what do you use?
[15:47:38] adaedra: also, code.
[15:47:55] apeiros: grepwood: ruby does precisely what you tell it to do
[15:48:06] apeiros: it's not a guessing language
[15:48:12] weemsledeux: has joined #ruby
[15:48:16] yorickpeterse: apeiros: Yeah I'm happy with it so far, still gotta test it properly in GitLab itself
[15:48:21] yorickpeterse: hopefully it doesn't slow things down too much
[15:48:28] 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.
[15:48:35] yorickpeterse: oh durrr, messed up the Gem
[15:48:59] apeiros: yorickpeterse: might fit in very well into an instrumentation part for my framework :)
[15:49:45] grepwood: apeiros, I might be getting it really wrong then because this is the 2nd time I get this issue, with similar looking code
[15:50:01] apeiros: ?code grepwood
[15:50:01] ruboto: grepwood, We can't help you without your code, please post it to https://gist.github.com
[15:50:01] rkazak: has joined #ruby
[15:50:06] hectortrope: has joined #ruby
[15:50:08] grepwood: oh wait, I forgot you guys hate pastebin
[15:50:11] grepwood: give me a sec
[15:50:17] agent_white: has joined #ruby
[15:50:26] apeiros: not just the guys, the ladies even more so! (I think)
[15:50:48] skade: has joined #ruby
[15:50:56] JCOE: has joined #ruby
[15:50:56] apeiros: but yeah, speaking for myself: I won't read a pastebin.
[15:51:01] grepwood: https://sucs.org/Tools/PasteBin/872/plain
[15:51:11] adaedra: YOU WOULD'NT DOWNLOAD A PASTEBIN
[15:51:39] araujo_: has joined #ruby
[15:51:59] grepwood: it's sucs.org
[15:52:06] apeiros: totally not pastebin :D
[15:52:17] apeiros: well, plain/raw is still much better than pastebin
[15:52:17] grepwood: my uni's comp society
[15:52:22] apeiros: no linenumbers, though :-/
[15:52:29] adaedra: apeiros: what about pastebin's raw?
[15:52:35] grepwood: sorry https://sucs.org/Tools/PasteBin/872
[15:52:42] grepwood: here's with line numbers
[15:52:42] apeiros: adaedra: no idea. is it fast yet?
[15:52:51] grepwood: and with my other embarassing pastebins
[15:53:13] apeiros: grepwood: and which is now done before which, despite line orders?
[15:53:41] grepwood: apeiros, #16 is done before #12-14
[15:53:46] adaedra: apeiros: depends on your definition of fast. But it may be slowed down by the entry into switzerland.
[15:53:59] apeiros: grepwood: ok. well, let's explain what we know and what we don't know
[15:54:19] apeiros: grepwood: I can *guarantee* you, that `remote_file` is invoked before `system `
[15:54:33] grepwood: ouch, that hurts
[15:54:34] chriscoffee: has joined #ruby
[15:54:37] 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
[15:54:59] grepwood: I'll ask chef people because this is a chef thing
[15:54:59] rgtk: has joined #ruby
[15:55:00] apeiros: grepwood: i.e., without knowing its implementation, it's perfectly possible that this method spins up a thread and does it *whenever*
[15:55:13] apeiros: grepwood: and yes, that's the right consequence of that :)
[15:55:18] apeiros: (asking in #chef)
[15:55:46] apeiros: adaedra: if it's fast, then pastebin raw is a ton better than pastebin :)
[15:55:50] skade: has joined #ruby
[15:55:53] apeiros: adaedra: still worse than gist
[15:56:05] apeiros: (line numbers and being able to highlight them is useful, multiple files too)
[15:56:11] adaedra: I have mixed feelings about gist.
[15:56:29] apeiros: what's the cons?
[15:56:30] grepwood: ACTION wonders if gist is just as badly abused by doxers like pastebin is
[15:56:44] senayar: has joined #ruby
[15:56:45] senayar: has joined #ruby
[15:56:53] adaedra: ?offtopic adaedra
[15:56:53] 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!
[15:57:16] apeiros: not sure I agree on this being ot, but we can move there anyway :)
[15:58:58] treehug88: has joined #ruby
[15:59:28] grepwood: well #chef is looking quite uninterested
[15:59:34] Scripore: has joined #ruby
[15:59:59] 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.
[16:00:11] grepwood: >a couple of hours
[16:00:42] grepwood: I'll try to separate the remote_file bits from the function, put them into another, and make that run from main()
[16:00:42] apeiros: grepwood: you can study the docs in the meantime
[16:01:01] apeiros: grepwood: also you can try to debug, as in add code to verify when what happens
[16:01:10] apeiros: and there's other venues, like ML, SO
[16:01:42] psye: has joined #ruby
[16:02:10] nixmaniack: has joined #ruby
[16:02:11] nixmaniack: has joined #ruby
[16:02:26] smactive: has joined #ruby
[16:02:41] dlitvak_: has joined #ruby
[16:02:42] kies^: has joined #ruby
[16:04:26] Scripore: has joined #ruby
[16:06:13] davedev24: has joined #ruby
[16:06:54] skade: has joined #ruby
[16:10:05] grepwood: no it's still screwed
[16:12:19] Icey: has joined #ruby
[16:12:35] mostlybadfly: has joined #ruby
[16:16:06] renemaya: has joined #ruby
[16:17:56] nixmaniack: has joined #ruby
[16:19:25] nettoweb: has joined #ruby
[16:20:41] socialjackie: has joined #ruby
[16:21:13] chipotle: has joined #ruby
[16:22:16] skade: has joined #ruby
[16:22:17] roshanavand: has joined #ruby
[16:22:41] gregf: has joined #ruby
[16:23:25] sgambino: has joined #ruby
[16:23:26] roshanav_: has joined #ruby
[16:23:39] cjbottaro: has joined #ruby
[16:25:15] Xiti: has joined #ruby
[16:25:15] konsolebox: has joined #ruby
[16:27:07] chipotle: has joined #ruby
[16:27:27] Bloomer: has joined #ruby
[16:29:12] nixmaniack: has joined #ruby
[16:32:00] ElFerna: has joined #ruby
[16:32:34] howdoi: has joined #ruby
[16:32:39] hobodave: has joined #ruby
[16:32:57] jas02: has joined #ruby
[16:33:54] edwinvdgraaf: has joined #ruby
[16:35:12] jbrhbr: has joined #ruby
[16:35:45] codecop: has joined #ruby
[16:36:35] sgambino: has joined #ruby
[16:36:59] treehug88: has joined #ruby
[16:37:48] Madhur_: has joined #ruby
[16:39:04] ashemark: has joined #ruby
[16:40:54] govg: has joined #ruby
[16:42:13] jessemcgilallen: has joined #ruby
[16:42:32] cwong_on_irc: has joined #ruby
[16:42:44] dlitvak: has joined #ruby
[16:47:25] huyderman: has joined #ruby
[16:48:08] Rodya_: has joined #ruby
[16:48:28] camus: What is a Hashie struct?
[16:48:51] [Butch]: has joined #ruby
[16:49:09] root_murdoc: has joined #ruby
[16:49:22] baweaver: has joined #ruby
[16:49:37] root_murdoc: has joined #ruby
[16:49:43] 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.
[16:49:56] dlitvak: has joined #ruby
[16:51:30] cjbottaro: has joined #ruby
[16:51:32] dionysus69: has joined #ruby
[16:52:21] camus: ruboto: Sure, thanks - http://www.rubydoc.info/gems/fullcontact#Usage_Examples
[16:52:58] treehug88: has joined #ruby
[16:53:09] hakunin: has joined #ruby
[16:53:37] ElFerna: has joined #ruby
[16:53:49] p0wn3d_: has joined #ruby
[16:54:29] roshanavand: has joined #ruby
[16:55:49] luckyme: has joined #ruby
[16:56:02] RegulationD: has joined #ruby
[16:56:33] moeSeth: has joined #ruby
[16:58:05] apeiros: ?justabot camus
[16:58:05] ruboto: camus, I'm just a bot. You don't need to address me.
[16:58:34] roshanav_: has joined #ruby
[16:59:55] rkazak: has joined #ruby
[17:00:12] yardenbar: has joined #ruby
[17:01:34] troyready: has joined #ruby
[17:01:37] amclain: has joined #ruby
[17:03:42] symm-: has joined #ruby
[17:03:45] devbug: has joined #ruby
[17:04:40] Xiti: has joined #ruby
[17:05:14] jhass: camus: hashie is a gem, look it up
[17:05:40] synthroid: has joined #ruby
[17:05:42] camus: ok thanks
[17:08:16] kknight: has joined #ruby
[17:08:37] roshanavand: has joined #ruby
[17:09:35] kknight: has joined #ruby
[17:10:07] nixmaniack: has joined #ruby
[17:10:08] nixmaniack: has joined #ruby
[17:10:16] kknight: has joined #ruby
[17:10:46] The_Phoenix: has joined #ruby
[17:11:55] alex88: has joined #ruby
[17:15:32] rakm: has joined #ruby
[17:20:22] jas02: has joined #ruby
[17:20:25] nixmaniack: has joined #ruby
[17:21:24] akem: has joined #ruby
[17:21:39] build22_: has joined #ruby
[17:22:00] dlitvak: has joined #ruby
[17:23:19] sneakerhax: has joined #ruby
[17:23:47] akem: has joined #ruby
[17:25:27] AKASkip: has joined #ruby
[17:25:28] dlitvak: has joined #ruby
[17:28:07] seitensei: has joined #ruby
[17:28:08] seitensei: has joined #ruby
[17:28:35] FCser: has joined #ruby
[17:28:48] FooMunki: has joined #ruby
[17:28:55] Tempesta_: has joined #ruby
[17:29:42] mbeasley: has left #ruby: ("WeeChat 0.4.2")
[17:30:03] ElFerna: has joined #ruby
[17:30:09] n1x: has joined #ruby
[17:31:34] arooni-mobile: has joined #ruby
[17:31:48] akem2: has joined #ruby
[17:32:39] shevy: hashie and cashie!
[17:32:55] fantazo: has joined #ruby
[17:33:32] monthy: has joined #ruby
[17:35:52] roshanavand: has joined #ruby
[17:35:57] rkazak: has joined #ruby
[17:37:49] rdavila: has joined #ruby
[17:38:36] karapetyan: has joined #ruby
[17:39:11] benhuda: has joined #ruby
[17:39:22] eytanfb: has joined #ruby
[17:39:51] lacuna: has joined #ruby
[17:39:57] Xiti: has joined #ruby
[17:41:00] steffkes: has joined #ruby
[17:41:01] Tricon: has joined #ruby
[17:41:01] steffkes: has joined #ruby
[17:41:29] Rodya_: has joined #ruby
[17:41:55] akkad: has joined #ruby
[17:41:55] nertzy: has joined #ruby
[17:42:36] rakm: has joined #ruby
[17:42:44] 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?
[17:42:51] atomical: has joined #ruby
[17:44:48] dlitvak: has joined #ruby
[17:45:03] dlitvak: has joined #ruby
[17:45:12] nertzy: has joined #ruby
[17:45:48] howdoicomputer: has joined #ruby
[17:48:47] poguez_: has joined #ruby
[17:49:05] nixmaniack: has joined #ruby
[17:49:51] pandaant: has joined #ruby
[17:49:58] wldcordeiro: has joined #ruby
[17:50:19] Lewix: alex88: i think if you put an example input and desired_output it'll be helpful
[17:51:41] Papierkorb: alex88: you're basically replacing the Hash object by the id in the ancestors array?
[17:52:04] pandaant: has joined #ruby
[17:52:07] alex88: Lewix: oh sry, well the input example is the first line object, the output is the result you get running the script
[17:52:34] wldcordeiro: has joined #ruby
[17:52:38] alex88: Papierkorb: well I'm creating a tree, so go in each sub-array when I find that ancestors array is not empty
[17:52:48] alex88: and then append the current element
[17:53:00] Papierkorb: your code is really complicated
[17:53:17] Papierkorb: which would be okay-ish if it would do complicated things
[17:53:50] eytanfb: has joined #ruby
[17:54:19] 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
[17:54:37] alex88: then I go trough each of those and add them in the right place in the resulting array
[17:54:38] Papierkorb: alex88: so, what is the code supposed to do?
[17:54:55] dlitvak: has joined #ruby
[17:55:33] alex88: create a tree from that input array
[17:55:48] Papierkorb: not helpful.
[17:56:06] alex88: oh you mean that code?
[17:56:08] rgtk: has joined #ruby
[17:56:10] Papierkorb: https://repl.it/B9RU/3 and now I've got things to do.
[17:56:15] Papierkorb: are you trolling me?
[17:57:18] alex88: absolutely not
[17:57:26] drbernardi: has joined #ruby
[17:58:50] shevy: please do :)
[17:58:55] hxegon: has joined #ruby
[17:58:56] 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
[17:59:43] 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
[17:59:43] Papierkorb: xy problem. What are you really trying to do? How should your input array be turned into a 'tree' ?
[17:59:54] Channel6: has joined #ruby
[18:00:14] Papierkorb: Well, doing that modification shouldn't be hard
[18:00:20] firstdayonthejob: has joined #ruby
[18:01:04] jbrhbr: has joined #ruby
[18:01:23] alex88: Papierkorb: https://gist.github.com/alex88/567546ebe838359fe0d4
[18:01:45] pglombardo: has joined #ruby
[18:01:57] Papierkorb: Yep. slight variaton of my version
[18:01:57] 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
[18:03:01] dlitvak: has joined #ruby
[18:03:01] aryaching: has joined #ruby
[18:03:31] colleenmcguckin: has joined #ruby
[18:06:41] startupality: has joined #ruby
[18:07:17] drbernardibis: has joined #ruby
[18:07:32] zast: has joined #ruby
[18:09:49] goodcodeguy: has joined #ruby
[18:10:14] berserk_ren: has joined #ruby
[18:10:41] f00bar-32: has joined #ruby
[18:11:06] tulak: has joined #ruby
[18:11:15] build22_: has left #ruby: ()
[18:12:51] hahuang65: has joined #ruby
[18:13:09] ascarter: has joined #ruby
[18:13:15] drbernardi: SET HIDEMAIL ON
[18:13:21] pdoherty: has joined #ruby
[18:13:31] drbernardi: SET PRIVATE ON
[18:15:53] blackmesa: has joined #ruby
[18:16:42] jun_: has joined #ruby
[18:18:38] _djbkd: has joined #ruby
[18:19:10] last_staff1: has joined #ruby
[18:19:56] synthroid: has joined #ruby
[18:20:03] nixmaniack: has joined #ruby
[18:20:09] baweaver: has joined #ruby
[18:20:13] icarus: has joined #ruby
[18:20:56] synthroid: has joined #ruby
[18:20:58] colleenmcguckin: has joined #ruby
[18:21:29] berserk_ren: has joined #ruby
[18:24:38] pawnbox: has joined #ruby
[18:25:51] PedramT: has joined #ruby
[18:25:53] karapetyan: has joined #ruby
[18:25:56] stannard: has joined #ruby
[18:27:34] dh64: has joined #ruby
[18:29:47] blackjid: has joined #ruby
[18:30:46] Dimik: has joined #ruby
[18:32:18] nixmaniack: has joined #ruby
[18:33:19] colleenmcguckin: has joined #ruby
[18:33:46] banister: has joined #ruby
[18:34:10] RegulationD: has joined #ruby
[18:34:35] siddharth: has joined #ruby
[18:37:35] araujo: has joined #ruby
[18:37:36] araujo: has joined #ruby
[18:39:03] The_Phoenix: has joined #ruby
[18:40:16] collembolic: has joined #ruby
[18:41:03] Macaveli: has joined #ruby
[18:41:21] dlitvak: has joined #ruby
[18:42:04] collembolic: has joined #ruby
[18:43:51] n1x: has joined #ruby
[18:44:04] spider-mario: has joined #ruby
[18:44:22] 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
[18:44:58] jun_: has joined #ruby
[18:45:23] jbrhbr: has joined #ruby
[18:47:46] diegoviola: has joined #ruby
[18:49:24] devbug: has joined #ruby
[18:49:47] nixmaniack: has joined #ruby
[18:49:48] nixmaniack: has joined #ruby
[18:49:54] baweaver: has joined #ruby
[18:50:08] apeiros: linelevel: when you don't get an answer, one reason can be that you didn't provide sufficient info
[18:50:09] waheedi: has joined #ruby
[18:50:23] apeiros: linelevel: while I'm not familiar with upstart, I noticed some things about your question:
[18:50:27] waheedi: I'm trying to do a post request using net::http
[18:51:34] apeiros: you don't say *how* exactly you tried to reboot it via upstart. you say "essentially runs X", why not exactly what?
[18:51:36] waheedi: I'm trying to find out the best way I can pass Query String Params and Form data in the same request
[18:51:36] PedramT: has joined #ruby
[18:51:47] 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
[18:51:57] 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.
[18:51:57] harushimo: has joined #ruby
[18:52:19] harushimo: I've got rbenv but I can't seem to get 2.2.3 on the list as installation source
[18:52:21] harushimo: why is that
[18:53:18] hxegon: is there a way to explode arrays in block params?
[18:53:40] hxegon: like [[1, 2], [3, 4]].each do |(a,b)|...
[18:53:49] jhass: doesn't work?
[18:53:51] 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`.
[18:54:23] linelevel: apeiros: I meant to write `service <service_name> restart` in the first sentence, of course.
[18:54:33] harushimo: i installed using apt-get
[18:54:42] ascarter: has joined #ruby
[18:54:58] jhass: harushimo: if you want to use a packaged ruby, don't use rbenv
[18:54:59] n1x: has joined #ruby
[18:54:59] diegoviola: I've installed ruby to /usr/local with ruby-install, is there a way to remove this?
[18:55:06] jhass: if you want to use rbenv, don't use a packaged ruby
[18:55:09] diegoviola: I don't think there's a make uninstall in the src
[18:55:19] harushimo: oh really? why not
[18:55:32] harushimo: jhass: I'm curious
[18:55:42] jhass: because those don't work well together
[18:55:43] hxegon: jhass, hmm... ah. just realized I'm actually working with [{}], not [[]]
[18:55:54] synthroid: has joined #ruby
[18:55:58] shevy: diegoviola can you delete manually
[18:56:00] jhass: harushimo: maybe you're looking for something like chruby
[18:56:15] harushimo: jhass: I'm getting ruby for CF
[18:56:17] colleenmcguckin: has joined #ruby
[18:56:25] harushimo: jhass: what do you recommend?
[18:56:25] diegoviola: shevy: how though? and how do I know which files in /usr/local were installed from ruby
[18:56:30] diegoviola: and which ones don't
[18:56:37] shevy: diegoviola what do you mean how, are you not using linux
[18:56:37] harushimo: cloud foundry
[18:56:49] diegoviola: shevy: yes, I know, with rm
[18:56:50] jhass: not familiar with whatever that is
[18:56:52] waheedi: for example i need to simulate something like this with ruby curl 'https://website.com/?param=1&param=2' --data 'name=x'
[18:56:54] shevy: diegoviola excellent!
[18:57:00] jhass: harushimo: why do you want to use rbenv?
[18:57:03] dorei: has joined #ruby
[18:57:06] diegoviola: shevy: I want to delete all files that were installed from ruby
[18:57:18] harushimo: jhass: it was a part of an instruction set that was given to me
[18:57:32] jhass: so ask whoever gave it to you for support?
[18:57:37] shevy: diegoviola the bin/ files from a default ruby should be: ruby, irb, ri, erb, gem, rake, rdoc
[18:57:54] diegoviola: shevy: there's more to that
[18:58:01] shevy: diegoviola not to bin/
[18:58:07] shevy: did you get rid of these files yet
[18:58:08] Scripore: has joined #ruby
[18:58:46] shevy: next will be lib/ by default all that will be *ruby* there
[18:59:03] shevy: in particular lib/ruby/ and lib/libruby.so.2.2.0 (and some other so-named ones)
[18:59:04] ChanServ: -bb nalkxulkuk!*@* *!*@gateway/web/freenode/ip.178.62.106.169
[18:59:07] harushimo: jhass: relax..I'm just wondering
[18:59:16] shevy: and once you got rid of this, you are about 80% complete already
[18:59:19] colegatron: has joined #ruby
[18:59:22] diegoviola: shevy: thanks
[18:59:28] harushimo: jhass: I did this same tutorial a few mons before I rebuilt my computer.
[18:59:34] shevy: there should be an include aka /usr/local/include/ruby-2.2.0/ but only one directory
[18:59:49] shevy: you can also get rid of /usr/local/share/ri/ if you want to
[18:59:53] jhass: harushimo: if it no longer works you probably skipped a step of it then
[19:00:19] harushimo: jhass: sorry if I offending anyone. I'm just learning here
[19:00:20] 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
[19:00:33] shevy: now it's 100% done!
[19:00:56] devbug: has joined #ruby
[19:01:15] 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
[19:01:40] Amnez777: has joined #ruby
[19:01:42] harushimo: jhass: I prefer doing it that way
[19:01:58] jhass: then better figure out which step you skipped if it worked in the past
[19:02:07] harushimo: jhass: I prefer doing it from source if I can. I'm not liking the package managers
[19:02:10] dolf: has joined #ruby
[19:02:12] Amnez777: has joined #ruby
[19:02:18] jhass: harushimo: now you're contradicting yourself
[19:02:18] wjimenez5271: has joined #ruby
[19:02:18] minimalism: has joined #ruby
[19:02:46] shevy: poor jhass, has to deal with constantly changing specs from harushimo :)
[19:03:00] linelevel: apeiros: I have now tried it manually, and can confirm that restarting Puma does NOT reload the Redmine config.
[19:03:02] harushimo: I'm not changing anything here
[19:03:04] shevy: first rbenv... then suddenly apt-get ... now source
[19:03:07] shevy: come on harushimo
[19:03:14] shevy: what is the next ... rvm?
[19:03:21] harushimo: yes rvm heeh
[19:03:22] apeiros: linelevel: when you stopped redmine, was it indeed gone? as in, no longer reachable via the browser?
[19:03:43] harushimo: In all honesty, I'll usually do it from source but I use the package managers if I'm feeling lazy
[19:03:55] harushimo: package managers are my back up option
[19:03:56] shevy: I do it from source too
[19:03:58] cjbottaro: has joined #ruby
[19:04:01] jhass: curious, for me it's the other way around
[19:04:15] jhass: I usually write a package before using the source, unless I'm super lazy
[19:04:33] 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.
[19:04:46] nettoweb: has joined #ruby
[19:04:51] harushimo: haha..nice. I've run into problems when installing ruby through apt-get because it doesn't get updated
[19:05:06] jhass: I can imagine, most distros suck there
[19:05:08] shevy: yeah debian can be scary
[19:05:27] TinkerTyper: has joined #ruby
[19:05:44] shevy: jhass have you had a look at voidlinux yet? (I only know that it exists, I have not tried it myself)
[19:06:06] jhass: the name rings a bell but I forgot everything about it
[19:06:27] shevy: harushimo so have you finally decided on the one true way to use ruby yet
[19:06:30] jhass: is that the folks using nix?
[19:06:54] nixmaniack: has joined #ruby
[19:06:55] timonv: has joined #ruby
[19:07:05] 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
[19:07:46] harushimo: I've done ruby installs in the past so many times
[19:08:15] harushimo: what do you one true way?
[19:08:28] harushimo: what do you mean by one true way? is there one?
[19:08:39] 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
[19:08:58] TinkerTyper: has joined #ruby
[19:09:28] shevy: on debian typically some bindings will not be compiled such as readline, unless you have readline-dev there
[19:09:39] harushimo: i didn't know that
[19:09:41] stannard: has joined #ruby
[19:09:47] howdoicomputer: has joined #ruby
[19:09:54] 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
[19:10:27] harushimo: interesting. Thanks for the tips everyone
[19:10:31] jhass: harushimo: note that's just shevy's opinion, few share it
[19:10:58] shevy: <jhass> I can imagine, most distros suck there
[19:11:06] duncannz: has joined #ruby
[19:11:09] jhass: if you want to use rbenv I would recommended rbenv's recommended way to install ruby
[19:12:05] duncannz: has joined #ruby
[19:12:07] harushimo: jhass: I agree with you for some odd reason -v 2.2.3 doesn't show up on the versions list for ruby
[19:12:23] Madhur__: has joined #ruby
[19:12:34] TinkerTyper: has joined #ruby
[19:12:47] jhass: well you said you installed ruby with apt-get, not rbenv
[19:13:13] hobodave: has joined #ruby
[19:16:00] TinkerTyper: has joined #ruby
[19:16:52] dlitvak: has joined #ruby
[19:18:57] _djbkd: has joined #ruby
[19:18:59] jun_: has joined #ruby
[19:19:11] bubbys: has joined #ruby
[19:19:55] RegulationD: has joined #ruby
[19:21:22] edwinvdgraaf: has joined #ruby
[19:22:14] _djbkd: has joined #ruby
[19:24:12] TheSuper: has joined #ruby
[19:24:42] benhuda: has joined #ruby
[19:25:18] solocshaw: has joined #ruby
[19:25:27] davedev24: has joined #ruby
[19:25:50] rakm: has joined #ruby
[19:26:30] zeroDivisible: has joined #ruby
[19:27:42] edwinvdgraaf: has joined #ruby
[19:27:59] ur5us: has joined #ruby
[19:28:23] [Butch]_: has joined #ruby
[19:29:01] seitensei: has joined #ruby
[19:29:02] seitensei: has joined #ruby
[19:30:21] zeroDivisible: has joined #ruby
[19:31:13] jackjackdripper: has joined #ruby
[19:32:08] Anderson69s: has joined #ruby
[19:33:36] yeshacker: has joined #ruby
[19:33:53] jackjackdripper: has joined #ruby
[19:36:48] nixmaniack: has joined #ruby
[19:36:49] nixmaniack: has joined #ruby
[19:37:10] rikai: has joined #ruby
[19:37:29] cassioscabral: has joined #ruby
[19:39:26] hobodave: has joined #ruby
[19:40:04] s00pcan: has joined #ruby
[19:40:24] Frem: has joined #ruby
[19:42:30] roshanavand: has joined #ruby
[19:42:34] jxs_: has joined #ruby
[19:45:04] hahuang65: has joined #ruby
[19:45:07] jdm: has joined #ruby
[19:45:13] ZeeNoodley: undefined method `signame' for Signal:Module (NoMethodError)
[19:45:43] roshanavand: has joined #ruby
[19:45:44] gr33n7007h: has joined #ruby
[19:45:49] yqt: has joined #ruby
[19:48:18] dotix: has joined #ruby
[19:48:19] dotix: has joined #ruby
[19:48:19] seitensei: has joined #ruby
[19:48:56] mchu: has joined #ruby
[19:49:17] TomPeed: has joined #ruby
[19:49:25] mchu: has left #ruby: ()
[19:51:42] ruby-lang960: has joined #ruby
[19:54:38] cassioscabral: has joined #ruby
[19:56:33] cjbottaro: has joined #ruby
[19:56:39] rgtk: has joined #ruby
[19:58:27] nunchuck: has joined #ruby
[19:58:27] AncientAmateur: has joined #ruby
[19:59:04] kalopsian: has joined #ruby
[20:00:09] harushimo: i got rbenv working again
[20:00:58] baweaver: has joined #ruby
[20:01:18] ElFerna: has joined #ruby
[20:01:35] 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
[20:01:53] cajone: has joined #ruby
[20:01:56] yardenbar: has joined #ruby
[20:02:32] cornerma1: has joined #ruby
[20:05:03] shock_one: has joined #ruby
[20:06:17] yardenbar: has joined #ruby
[20:07:11] mchu: has joined #ruby
[20:07:48] devbug: has joined #ruby
[20:09:38] mchu: has left #ruby: ()
[20:13:09] TomyWork: what's a good way to make conditional parts in an erb template? <% if blahblah %> seems wordy
[20:14:38] sparr: has left #ruby: ("WeeChat 1.0")
[20:14:47] ramfjord: has joined #ruby
[20:15:17] roshanavand: has joined #ruby
[20:16:33] shevy: TomyWork but that is regular ruby code
[20:17:32] 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
[20:17:51] TomyWork: referenced*
[20:18:04] davedev24: has joined #ruby
[20:18:57] Vitor: has joined #ruby
[20:18:59] mg^: I'm not sure I'd call erb a "template language"... it's a template system and the language is ruby
[20:19:41] TomyWork: it certainly is a language in the same way aba*bb* is a language :)
[20:20:00] TomyWork: well it's a regular expression generating a language...
[20:20:16] mg^: semantics at this point, I think
[20:20:49] TomyWork: well there might be semantic sugar
[20:21:10] 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
[20:21:15] TomyWork: other than <%= foo %> == <% puts foo %>, that is
[20:21:40] TomyWork: well minimalism is good
[20:22:03] shevy: yeah the formats are listed there http://ruby-doc.org/stdlib-2.2.4/libdoc/erb/rdoc/ERB.html#method-c-new
[20:22:09] shevy: but you still have to use regular ruby inside :)
[20:22:42] shevy: that documentation is pretty bad actually :\
[20:22:57] cjbottaro: has joined #ruby
[20:23:04] jpfuentes2: has joined #ruby
[20:23:27] bin7me: has joined #ruby
[20:23:53] eytanfb: has joined #ruby
[20:24:21] mg^: I write a lot of erb templates thanks to puppet
[20:25:16] TomyWork: that's what got me started with erb
[20:25:17] idefine: has joined #ruby
[20:25:31] TomyWork: but right now i'm writing a tiny sinatra app
[20:25:44] TomyWork: a gitlab webhook
[20:25:51] TomyWork: (yay more ruby)
[20:25:54] malconis: has joined #ruby
[20:26:09] yfeldblum: has joined #ruby
[20:27:37] baweaver: has joined #ruby
[20:27:53] shevy: you could probably write your own template replacement thingy that allows you to use a shorter syntax style
[20:28:25] calderonroberto: has joined #ruby
[20:28:38] Papierkorb: Or extend upon others. I do that (not your issue) with HAML.
[20:30:10] avahey: has joined #ruby
[20:30:13] eytanfb: has joined #ruby
[20:30:47] dlitvak: has joined #ruby
[20:31:15] colegatron: has joined #ruby
[20:31:25] jinie_: has joined #ruby
[20:31:29] s00pcan: has joined #ruby
[20:31:47] henrikthomasson: has joined #ruby
[20:33:01] bin7me: has joined #ruby
[20:33:32] rmrrn: has joined #ruby
[20:33:33] rmrrn: has joined #ruby
[20:34:19] ferr: has joined #ruby
[20:37:24] gamename: has joined #ruby
[20:38:54] symm-: has joined #ruby
[20:41:00] jdm: has joined #ruby
[20:42:18] InvGhost: has joined #ruby
[20:42:31] 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?
[20:43:47] ferr: has joined #ruby
[20:44:40] Papierkorb: gamename: Dir["#{ENV['HOME']}/.ssh/*"].select{|path| File.readlines(path).grep(/---BEGIN .* PRIVATE KEY---/) rescue nil}.compact
[20:44:54] Papierkorb: ???not tried it, only proved it correct???
[20:44:55] davedev24: has joined #ruby
[20:45:09] gamename: Papierkorb Thanks! :)
[20:45:50] apeiros: that won't work
[20:46:05] apeiros: File.read(path) =~ /aboveregex/
[20:46:22] Papierkorb: oh right, [] is truthy
[20:46:24] apeiros: and no .compact (pointless with .select in any case)
[20:47:08] cassioscabral: has joined #ruby
[20:47:56] gamename: apeiros Dir["#{ENV['HOME']}/.ssh/*"].select{|path| File.readlines(path) =~ /---BEGIN .* PRIVATE KEY---/} ???
[20:48:07] ferr: has joined #ruby
[20:48:09] apeiros: gamename: read, not readlines
[20:48:25] Micaela: has joined #ruby
[20:48:42] Micaela: has left #ruby: ()
[20:48:43] Papierkorb: apeiros, gamename, don't leave out the "rescue nil" clause, the path might be a directory
[20:48:54] renemaya: has joined #ruby
[20:49:32] gamename: This seems to work: Dir["#{ENV['HOME']}/.ssh/*"].select{|path| File.read(path) =~ /---BEGIN .* PRIVATE KEY---/ rescue nil}
[20:50:00] Papierkorb: Looks good. Just make sure that the $HOME evironment variable is set ;)
[20:50:14] apeiros: Papierkorb: ah, that's why you had it in there. ugly solution for that problem IMO.
[20:50:29] gamename: Papierkorb Thanks. Will do.
[20:50:33] apeiros: File.file?(path) && File.read(???) =~ ???
[20:50:36] Papierkorb: apeiros: I forgot which method it was to test if it's a file
[20:50:43] apeiros: much better than just swallow all exceptions
[20:50:54] apeiros: aka: don't use exceptions for expected behavior.
[20:51:04] TomyWork: ruby's regexes have named captures. Can I backreference them in string.gsub(regex, replacement) somehow?
[20:51:12] dlitvak: has joined #ruby
[20:51:18] apeiros: TomyWork: Regexp documents how
[20:51:24] TomyWork: i tried message.gsub(@commit_regex, '\g<comment>')
[20:51:30] apeiros: &ri Regexp @TomyWork
[20:51:31] `derpy: class `Regexp`: A Regexp holds a regular expression, used to match a pattern against strings. Re??? ??? http://rubydoc.info/stdlib/core/Regexp
[20:51:42] TomyWork: @commit_regex = /^(?<issue_id>[A-Z]+-[0-9]+) (?<comment>.*)$/
[20:51:46] henrikthomasson: has joined #ruby
[20:51:47] apeiros: might be in the separate regex doc file
[20:51:54] millerti: has joined #ruby
[20:52:14] TomyWork: apeiros it is covered, but the backref style described there doesnt work
[20:52:43] TomyWork: it shows up as a literal \g<comment>
[20:52:55] mg^: there was some limitation to using references in certain circumstances, but it's been a while since I encountered them
[20:53:13] mg^: I believe those were solved by using the block form
[20:53:36] TheSuper: has joined #ruby
[20:53:42] TheSuper: has left #ruby: ()
[20:54:21] apeiros: TomyWork: are you using an ancient ruby?
[20:54:25] slackbotgz: has joined #ruby
[20:54:55] apeiros: TomyWork: um, it's not documented as *\g*, it's *\k*
[20:55:09] auxbuss: has joined #ruby
[20:55:11] apeiros: "Named groups can be backreferenced with \k<name>, where name is the group name."
[20:55:13] f00bar-32: has joined #ruby
[20:56:50] devbug: has joined #ruby
[20:56:53] TomyWork: oh, \g is a subexpression *call*
[20:57:37] kappy: has joined #ruby
[20:59:49] eytanfb: has joined #ruby
[21:02:58] DavidDudson: has joined #ruby
[21:05:35] freerobby: has joined #ruby
[21:06:55] eytanfb: has joined #ruby
[21:07:01] karapetyan: has joined #ruby
[21:07:33] 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
[21:07:54] TomyWork: so... is there a simple way to mutex those? :)
[21:08:16] TomyWork: i'm using sinatra
[21:08:40] waheedi: has joined #ruby
[21:09:03] TomyWork: yeah i just found it. it's so simple, it doesnt even need any sugar :)
[21:09:17] TomyWork: i'm just so used to other languages where the on-board stuff is usually ugly
[21:10:25] arthurix: has joined #ruby
[21:10:58] TinkerTyper: has joined #ruby
[21:12:51] pwnd_nsfw: has joined #ruby
[21:16:41] mchu: has joined #ruby
[21:16:51] passerine: has joined #ruby
[21:17:44] renemaya: has joined #ruby
[21:19:45] cdg: has joined #ruby
[21:20:30] hobodave: has joined #ruby
[21:20:36] mchu: has left #ruby: ()
[21:20:43] TinkerTyper: has joined #ruby
[21:21:21] rodferso1: has joined #ruby
[21:24:11] idakyne: has joined #ruby
[21:24:43] hfp: Hi all, is there a more idiomatic way to write `Hash.reject { |el| !foo.include? el }' ?
[21:25:24] jhass: hfp: select and skip the !
[21:25:45] jhass: with more context there might be a way to avoid it altogether
[21:26:11] agent_white: has joined #ruby
[21:26:39] kadoppe: has joined #ruby
[21:26:56] Maletor: has joined #ruby
[21:27:21] InvGhostt: has joined #ruby
[21:27:23] Maletor: Can I override `each` to wrap all the members in a decorator class? https://gist.github.com/maletor/01c3985a8e12f65de5b4
[21:27:52] jhass: maletor: yes?
[21:27:59] ramfjord: has joined #ruby
[21:28:05] Maletor: jhass: where did i go wrong on that gist?
[21:28:16] jhass: why don't you just use map?
[21:28:25] Maletor: i changed to map and i have the same issue
[21:28:29] jhass: .each shall return the original collection
[21:29:05] Macaveli: has joined #ruby
[21:29:07] jhass: I'm not sure whether what you want makes any sense tbh
[21:29:21] smactive: has joined #ruby
[21:29:28] Maletor: gotcha, can you try and help me make sense of what i'm trying to do lol
[21:29:31] jhass: maletor: could you show some more context and example uses with desired behavior described?
[21:30:19] 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.
[21:30:56] jhass: maletor: so just results.each do |result| yield SkilledUser.new(result) end ?
[21:31:21] akem: has joined #ruby
[21:31:26] jhass: maletor: well, block.call(SkilledUser.new(result)) would be basically equivalent
[21:31:37] jhass: behavior wise anyway
[21:31:58] Maletor: do you mean results.map?
[21:32:03] Maletor: or results.each
[21:34:21] Maletor: jhass, merry christmas that works
[21:34:29] nertzy: has joined #ruby
[21:34:48] howdoicomputer: has joined #ruby
[21:35:08] _djbkd: has joined #ruby
[21:37:30] jun_: has joined #ruby
[21:38:18] toretore: anyone ever run across "fiber called across stack rewinding barrier (FiberError)"?
[21:38:30] toretore: in ruby 2+ only
[21:40:02] jbrhbr: has joined #ruby
[21:40:03] CloCkWeRX: has joined #ruby
[21:42:03] waheedi: http://stackoverflow.com/questions/7964294/post-to-a-url-with-a-querystring-in-ruby this is my question
[21:42:10] hfp: thanks jhass
[21:43:46] waheedi: I believe no have even answered that guy
[21:43:51] waheedi: so good luck :)
[21:44:36] Spami: has joined #ruby
[21:46:25] baweaver: has joined #ruby
[21:48:16] Radar: Waheedi: It's not possible due to the HTTP spec iirc
[21:48:31] Radar: Waheedi: post params override query string. You should pass the query string as a parameter inside the post
[21:48:46] waheedi: that sometimes does not make any sense
[21:49:21] waheedi: to pass the query string as a parameter inside the post?
[21:49:50] Radar: Yes, you will need to do that.
[21:50:02] Radar: Otherwise query string won't be present in next request
[21:50:03] Radar: only post params
[21:50:32] waheedi: maybe I better use curl then
[21:50:43] Radar: can't tell if trolling
[21:50:51] Radar: curl will have the same problems iirc
[21:51:08] Radar: ACTION throws hands in the air, gives up
[21:52:00] waheedi: curl 'http://website.com/t?query=string' --data 'name=data'
[21:52:13] Radar: Ok, great so you know how to do it then. Problem solved.
[21:52:14] waheedi: this is a get request though
[21:52:22] Radar: This is why I ask for code to reproduce issues :(
[21:52:28] Radar: You trapped me into giving an answer without code
[21:52:38] n008f4g_: has joined #ruby
[21:52:59] eytanfb: has joined #ruby
[21:53:04] waheedi: thanks Radar :)
[21:53:09] waheedi: merry christmas :)
[21:53:29] dlitvak: has joined #ruby
[21:55:23] DavidDudson: has joined #ruby
[21:55:32] diego2: has joined #ruby
[21:55:40] diego2: has joined #ruby
[21:56:18] InvGhostt: has joined #ruby
[21:57:31] rgtk: has joined #ruby
[21:58:36] SCHAAP137: has joined #ruby
[21:58:37] solocshaw: has joined #ruby
[21:59:01] dotix: has joined #ruby
[21:59:08] symm-: has joined #ruby
[22:01:28] delsol: has joined #ruby
[22:01:44] fsfsfs: has joined #ruby
[22:01:46] delsol: is there something stupid I'm missing? ruby doesn't seem to want to chmod a directory to 777.....
[22:01:54] delsol: it'll go to 755.... but not 777
[22:02:06] sgambino: has joined #ruby
[22:02:14] adaedra: How do you do it?
[22:03:32] delsol: File.chmod(0777, "directory")
[22:03:41] 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.
[22:04:30] apeiros: also note that a browser sending a form is an entirely different thing :)
[22:04:36] adaedra: delsol: works for me. Do you have the right access rights to the parent folder? Does it works from the shell?
[22:04:39] delsol: apeiros: this isn't a web app...
[22:04:45] apeiros: (there it won't work due to html spec, not http spec)
[22:04:46] delsol: adaedra: works fine from the shell.
[22:04:56] delsol: from actual shell..
[22:04:57] apeiros: delsol: not talking to you
[22:05:00] adaedra: delsol: I think apeiros is replying to someone else :)
[22:05:13] adaedra: ACTION dies
[22:05:37] adaedra: delsol: Try with FileUtils.chmod, to see?
[22:05:40] fsfsfs: Whats a good IDE on Windows for whos starting Ruby, dont need anything advanced but an integrated compiler and console would be cool
[22:05:42] hahuang65: has joined #ruby
[22:05:46] apeiros: but re delsol: umode maybe?
[22:06:07] apeiros: err, umask
[22:06:09] delsol: adaedra: works fine sitting at TTYS2, doesn't work with ruby backticks, or File.chmod
[22:06:22] delsol: apeiros: hmmmm.....
[22:06:35] build22_: has joined #ruby
[22:06:35] apeiros: though I thought that only applies to defaults???
[22:06:40] 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.
[22:06:45] apeiros: ah well, afk. time for xenoblade.
[22:07:02] blackmesa: has joined #ruby
[22:07:19] adaedra: delsol: and with `FileUtils.chmod`? (Not File, FileUtils) It may be implemented differently.
[22:07:31] idakyne: has joined #ruby
[22:07:36] adaedra: Otherwise, yes, you should look at umask, but it would be strange to affect this.
[22:07:37] delsol: adaedra: haven't tried FileUtils
[22:08:10] fsfsfs: adaedra, thanks. I dislike navigating between term and text editor every minute.
[22:10:19] snoozelose: has joined #ruby
[22:10:45] snoozelose: has joined #ruby
[22:10:53] steffkes: has joined #ruby
[22:10:54] steffkes: has joined #ruby
[22:11:34] delsol: adaedra, apeiros: it was umask... :)
[22:11:43] adaedra: That's strange.
[22:11:58] delsol: and thats why you should assume everyone is talking to you... sometimes you get a second answer... :)
[22:12:19] delsol: slackware
[22:12:31] adaedra: Ruby version?
[22:12:38] kaleido: has joined #ruby
[22:12:42] delsol: 2.suck.sucks_more
[22:13:05] delsol: 2.0.0p353
[22:14:05] adaedra: Because I just tried on my Linux, and even with a 022 umask, it allows me to chmod 0777
[22:14:17] 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....
[22:14:25] sneakers: has joined #ruby
[22:14:34] mg^: yeah umask should only restrict the default modes for file creation
[22:14:42] pandaant: has joined #ruby
[22:14:55] mg^: explicit mode setting should be fine
[22:15:09] adaedra: And installing a 2.0 just for that, thanks but no thanks.
[22:15:58] jessemcgilallen: has joined #ruby
[22:16:58] delsol: adaedra: yeah... once I get more testing done, I'll be moving to 2.2.3
[22:17:30] delsol: anyways, thanks for the help!
[22:17:32] shevy: does rails make you lazy!
[22:17:46] renemaya: has joined #ruby
[22:18:34] adaedra: funny, your sentence looks like a question, but ends with !.
[22:19:02] 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...
[22:19:51] adaedra: You don't need ActiveRecord for that, tbh.
[22:20:04] delsol: its easier in activerecord though.
[22:20:14] adaedra: And if you look at your console, you notice it quickly.
[22:20:31] ElFerna: has joined #ruby
[22:20:35] adaedra: But lazy developers are a good thing.
[22:21:01] adaedra: get out with your dinosaur.
[22:21:40] delsol: in PHP, even doing a query in a query in a while() loop...
[22:21:47] dlitvak: has joined #ruby
[22:21:54] delsol: your inside query is generally not a query with joins and all sorts of other insanity...
[22:22:22] shevy: php is now at version 7
[22:22:48] kaleido: php looks funny
[22:23:01] karapetyan: has joined #ruby
[22:23:36] AncientAmateur: @shevy take that as a warning sign and run
[22:23:54] AncientAmateur: err kaleido that is
[22:24:02] shevy: I'll run with kaleido!
[22:24:08] adaedra: You should.
[22:24:09] AncientAmateur: just...php...not even once.
[22:24:20] delsol: nothing wrong with PHP....
[22:24:33] adaedra: plenty of things, but that's not the topic of this channel.
[22:24:35] ruboto: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
[22:25:57] mchu: has joined #ruby
[22:26:15] chipotle: has joined #ruby
[22:26:27] shevy: ruby is better than php
[22:26:44] adaedra: that includes you, shevy.
[22:27:43] chipotle_: has joined #ruby
[22:30:37] hxegon: has joined #ruby
[22:34:50] neanderslob: has joined #ruby
[22:35:42] jessemcgilallen: has joined #ruby
[22:36:25] klafka: has joined #ruby
[22:38:45] 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?
[22:39:58] n_blownapart: has joined #ruby
[22:41:19] yfeldblum: has joined #ruby
[22:42:15] klafka: using while > 5 rather than if works - but I don't understand why really
[22:42:31] ferr: has joined #ruby
[22:42:59] ramfjord: has joined #ruby
[22:43:23] |3|ackn|gg3|2: has joined #ruby
[22:43:31] toretore: .to_a create another object
[22:43:43] toretore: your original SortedSet remains unchanged
[22:43:45] bogn: has joined #ruby
[22:43:52] Glenny: has joined #ruby
[22:43:54] |3|ackn|gg3|2: an array is a thing that holds multiple things
[22:44:02] hobodave: has joined #ruby
[22:44:58] siddharth: has joined #ruby
[22:46:04] 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
[22:46:11] adaedra: !ban |3|ackn|gg3|2 !P Unacceptable nick
[22:46:15] ChanServ: +b |3|ackn|gg3|2!*@*
[22:46:15] ChanServ: ChanServ kicked |3|ackn|gg3|2: Unacceptable nick
[22:46:17] zenlot2: has joined #ruby
[22:46:25] akaiiro: has joined #ruby
[22:47:45] toretore: klafka, the output in your comment isn't visible
[22:47:55] Mia: has joined #ruby
[22:47:56] Mia: has joined #ruby
[22:48:01] toretore: set.to_a.shift will not mutate set
[22:48:08] Bellthoven: has joined #ruby
[22:48:54] klafka: aah i see i didn't copy far enough - my bad
[22:49:15] colleenmcguckin: has joined #ruby
[22:49:21] Bellthoven: has joined #ruby
[22:50:06] delsol: adaedra: So, it turns out....... another developer had " `chmod -R 755 #{ROOT_PATH}/log/exceptions` if i_am_server? "
[22:50:06] klafka: https://gist.github.com/jtmcmc/2e22235642c8d891137c ok updated the comment
[22:50:16] blackgoat: has joined #ruby
[22:50:18] Guest69624: has joined #ruby
[22:50:19] rakm: has joined #ruby
[22:50:26] delsol: thus, when it doesn't run the whole way through, it was 777.... when it fully ran everything else, 755....
[22:50:30] delsol: ACTION ducks.
[22:50:33] juddey: has joined #ruby
[22:50:34] toretore: still not visible klafka
[22:50:38] klafka: why is it cutting off
[22:50:45] adaedra: delsol: told you it wasn't normal.
[22:50:54] toretore: use markdown code syntax
[22:51:10] colleenmcguckin: has joined #ruby
[22:51:32] braderhart: has joined #ruby
[22:51:53] delsol: ACTION makes notes to check other developer changing file permissions...
[22:52:41] klafka: ta thanks a bunch now fixed
[22:52:46] delsol: has left #ruby: ()
[22:52:46] adaedra: -b testBot_83753*!*@*$#ruby-fix-your-connection
[22:54:58] adaedra: -o adaedra
[22:57:15] jgpawletko: has joined #ruby
[22:57:50] colleenmcguckin: has joined #ruby
[22:58:35] colleenmcguckin: has joined #ruby
[22:59:02] _djbkd: has joined #ruby
[22:59:45] colleenmcguckin: has joined #ruby
[23:00:03] waheedi: Radar: I just double checked --data change the request to POST and yes it passes the query string and also the request body
[23:00:05] ChameleonSix: has joined #ruby
[23:00:06] jgpawletko: has joined #ruby
[23:02:55] dlitvak: has joined #ruby
[23:03:27] eytanfb: has joined #ruby
[23:03:37] andrew9183: has joined #ruby
[23:03:43] eytanfb: has joined #ruby
[23:06:19] devbug: has joined #ruby
[23:10:15] Wompy: has joined #ruby
[23:13:23] Ropeney: has joined #ruby
[23:13:29] Didac: has joined #ruby
[23:14:33] tricon_: has joined #ruby
[23:15:04] shock_one: has joined #ruby
[23:17:33] _djbkd: has joined #ruby
[23:18:27] Bombas: has joined #ruby
[23:18:32] ledestin: has joined #ruby
[23:18:43] paradisaeidae: has joined #ruby
[23:19:11] dlitvak: has joined #ruby
[23:20:47] ruby-lang895: has joined #ruby
[23:21:14] ascarter: has joined #ruby
[23:22:40] dlitvak: has joined #ruby
[23:23:23] Azure: has joined #ruby
[23:25:13] Scripore: has joined #ruby
[23:25:56] bitcycle: has joined #ruby
[23:26:09] bitcycle: Hey all. Is there a way to delete all comments from XML using REXML?
[23:27:51] dlitvak: has joined #ruby
[23:28:11] ChameleonSix: has joined #ruby
[23:29:45] Tricon: has joined #ruby
[23:29:45] havenwood: ChameleonSix: Anyone what?
[23:29:47] jbrhbr: ChameleonSix: in general, it's better to just ask something rather than ask to ask
[23:30:16] ChameleonSix: I need help on object manipulation
[23:30:31] ChameleonSix: idk how to pricecly explain
[23:31:14] ChameleonSix: how do i make a program that shows pc specs
[23:32:40] apeiros: ChameleonSix: you think hard about how to write it, then you write it.
[23:32:45] rgtk: has joined #ruby
[23:32:54] roshanavand: has joined #ruby
[23:33:30] ChameleonSix: i dont know how to define the objects
[23:33:32] stannard: has joined #ruby
[23:33:53] ChameleonSix: it should link with cmd
[23:33:54] apeiros: creates a new object
[23:34:03] ascarter: has joined #ruby
[23:34:11] ChameleonSix: i mean i have no idea
[23:34:27] apeiros: go get a tutorial, learn to program first.
[23:34:31] apeiros: then ask a sensible question.
[23:34:44] apeiros: "how do I write a program that shows pc specs" ain't one.
[23:35:54] snoozelose: has joined #ruby
[23:36:08] snoozelose: has joined #ruby
[23:36:22] ta: has joined #ruby
[23:36:24] ChameleonSix: i learned something
[23:36:32] ChameleonSix: do you have an idea about that program
[23:36:34] ta: has joined #ruby
[23:36:39] ChameleonSix: like structure
[23:37:03] adaedra: start here then
[23:37:17] ChameleonSix: i dont know how to make a program check for cpu model
[23:37:23] ChameleonSix: i am learning ruby
[23:37:26] ChameleonSix: at tree house
[23:37:33] adaedra: we're getting to something more precise already.
[23:38:04] ChameleonSix: do you have an idea how to do that
[23:38:12] apeiros: you ask the operating system
[23:38:25] adaedra: Not precisely, but google have tons of them.
[23:38:58] apeiros: ChameleonSix: do you want to write it or do you want to hire somebody write it for you?
[23:39:04] apeiros: go, do some research
[23:39:06] mistermocha: has joined #ruby
[23:39:11] ur5us: has joined #ruby
[23:39:16] baweaver: has joined #ruby
[23:39:17] ChameleonSix: i want to learn
[23:39:20] apeiros: somebody else already did it. find that. see how they've done it.
[23:39:24] gizless: has joined #ruby
[23:39:27] ChameleonSix: there is no point if someone wirtes it
[23:39:29] apeiros: you won't learn by getting spoonfed.
[23:39:31] bitcycle: Hey all. Is there a way to delete all comments from XML using REXML?
[23:39:32] ChameleonSix: no one did in ruby
[23:39:49] apeiros: ChameleonSix: you're wrong.
[23:39:52] 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.
[23:39:53] apeiros: but even if, it wouldn't matter.
[23:40:03] ChameleonSix: google is shit
[23:40:11] adaedra: no it isn't.
[23:40:13] colleenmcguckin: google is great
[23:40:20] adaedra: learn to use it.
[23:40:20] apeiros: then use bing. we don't care.
[23:40:28] apeiros: but chances are, your skills are shit. not google.
[23:40:29] colleenmcguckin: you need to learn to use it effectively. it's the best tool you'll have learning
[23:40:45] snoozelose: has joined #ruby
[23:40:53] ChameleonSix: how do i disable a js to fake login checking
[23:40:55] apeiros: same difference. we don't care. use $searchmachine
[23:41:04] adaedra: ChameleonSix: If I use duck duck go and look for what you need, you tell me I won't find anything, right?
[23:41:05] apeiros: wrong channel
[23:41:24] ginger|n|gger: has joined #ruby
[23:41:24] ChanServ: +b *N|GGER*!*@*
[23:41:24] ChanServ: ChanServ kicked ginger|n|gger: Unacceptable nick - http://ruby-community.com/pages/user_rules#rule_2_10
[23:41:37] hxegon: ChameleonSix, what channel are you in right now?
[23:41:53] snoozelose: has joined #ruby
[23:42:11] apeiros: this is not #javascript.
[23:42:14] ChameleonSix: twitter is built on ruby?
[23:42:28] hxegon: nor is this #s/ /\n
[23:42:38] apeiros: ChameleonSix: I'm quite close to kick you
[23:42:58] ChameleonSix: my spirit will haunt yoy
[23:43:05] apeiros: do some shit on your own, seriously. we're not a general information desk.
[23:43:15] snoozelose: has joined #ruby
[23:43:22] ChameleonSix: you look like a master programmer
[23:43:23] gizmore: has joined #ruby
[23:43:31] ChameleonSix: that is a compliment
[23:43:50] apeiros: that won't get you anywhere.
[23:44:01] 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
[23:44:05] ChameleonSix: i know you are cold harted
[23:44:28] apeiros: ChameleonSix: next thing you say which is not a specific ruby question means I kick you.
[23:44:32] hxegon: apeiros, you are not cold hearted :D
[23:44:42] apeiros: no, I'm short tempered.
[23:44:43] ChameleonSix: how do i ask the opearting system (windows ) to check for the free ram amount via cmd
[23:44:46] snoozelose: has joined #ruby
[23:44:56] ChameleonSix: using ruby script
[23:44:59] apeiros: !kick ChameleonSix not a ruby question. use a search engine as you have been told.
[23:45:00] hxegon: jesus fucking christ.
[23:45:02] ruboto: ruboto kicked ChameleonSix: a ruby question. use a search engine as you have been told.
[23:45:02] ruboto: -o ruboto
[23:45:10] ChameleonSix: has joined #ruby
[23:45:22] ChameleonSix: i said using ruby script
[23:45:26] havenwood: !kick ChameleonSix harebrained skulduggery
[23:45:27] ruboto: ruboto kicked ChameleonSix: skulduggery
[23:45:27] ruboto: -o ruboto
[23:45:39] ChameleonSix: has joined #ruby
[23:45:40] snoozelose: has joined #ruby
[23:45:42] apeiros: "how do I build a house, using ruby script", still not a ruby question.
[23:45:47] apeiros: and next time, it's a ban.
[23:45:48] freerobby: has joined #ruby
[23:45:53] ChameleonSix: without the cmd part sorry
[23:46:05] ChameleonSix: but i read something that i need to link ruby to cmd
[23:46:13] jbrhbr: ChameleonSix: what have you tried so far?
[23:46:20] ChameleonSix: so it is impossible with ruby alone?
[23:46:30] houhoulis: has joined #ruby
[23:46:36] ChameleonSix: im in the learning process
[23:46:42] hxegon: ChameleonSix, have you done any research at all yourself, or tried anything in pry or irb yet?
[23:46:42] ChameleonSix: and i have no idea how to do that
[23:46:54] shanemcd: has joined #ruby
[23:46:56] ChameleonSix: what can i try
[23:47:02] hxegon: so no and no then.
[23:47:15] CloCkWeRX: has joined #ruby
[23:47:16] ChameleonSix: i just learned something about ruby objects
[23:47:26] CloCkWeRX: has left #ruby: ()
[23:47:31] adaedra: And yet ask for something completely unrelated.
[23:47:31] ChameleonSix: how do i summon the operating system
[23:47:41] jbrhbr: arcane magics
[23:47:54] apeiros: !ban ChameleonSix !T 3d do some research. come back in 3 days. have some sensible questions by then.
[23:47:58] ChanServ: +b ChameleonSix!*@*
[23:47:58] ChanServ: ChanServ kicked ChameleonSix: do some research. come back in 3 days. have some sensible questions by then.
[23:47:58] mistermocha: has joined #ruby
[23:47:59] hxegon: first you draw a pentagram, then you google it.
[23:48:01] snoozelose: has joined #ruby
[23:48:10] apeiros: ACTION out of patience.
[23:48:15] jbrhbr: i laughed harder at that than i should have
[23:48:23] fantazo: has joined #ruby
[23:48:54] apeiros: maybe should have suggested to tackle a problem they can actually solve for a starter.
[23:49:01] apeiros: but well, too late.
[23:49:18] adaedra: Well, after a bit of research, it's not surprising he/she doesn't find anything using DuckDuckGo. This thing is nuts.
[23:49:22] jbrhbr: well he claims he was learning ruby through treehouse, so they should have that under control
[23:49:45] 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.
[23:50:12] apeiros: hxegon: this is like the 6th day I see this person with the same silly type of questions
[23:50:16] apeiros: they're told again and again.
[23:50:46] hxegon: ddg is pretty cool, but that isn't an answer to 'what have you looked up so far' :P
[23:51:33] apeiros: wow. I tried. took me all of 5s to find a standard windows tool to query for the cpu.
[23:51:52] apeiros: ACTION afk, have a nice day y'all
[23:53:32] adaedra: like, what the fuck duckduckgo. http://i.imgur.com/pr6r6CG.png
[23:54:10] pika_pika: has joined #ruby
[23:54:15] jbrhbr: pretty bad heh
[23:55:03] adaedra: The header concerns Ruby 1.8 apparently
[23:55:09] snoozelose: has joined #ruby
[23:55:17] shevy: people wanted to release ruby memory back then
[23:55:25] cscheib: perhaps "available" memory is a better search
[23:55:27] 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
[23:55:56] snoozelose: has joined #ruby
[23:56:03] cscheib: ^^ google spends a lot of time figuring out what you mean rather than what you actually searched for
[23:56:26] adaedra: cscheib: right, tried with duckduckgo, 5th result is relevant. It tells me to do %x(free).
[23:56:44] kaleido: has joined #ruby
[23:57:30] adaedra: hxegon: right too, results are a bit less relevant in private browser, but it stills nails it way better.
[23:57:58] shaileshg: has joined #ruby
[23:58:26] snoozelose: has joined #ruby
[23:58:58] kalopsian: has joined #ruby
[23:59:19] bubbys: has joined #ruby
[23:59:41] mg^: That's a funny screenshot
[23:59:52] 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