« Back to channel list

#ruby - 11 May 2017

« Back 1 day Forward 1 day »
[00:01:07] Pumukel: has joined #ruby
[00:15:24] LastWhisper____: has joined #ruby
[00:23:24] romank: has joined #ruby
[00:25:44] coderphive: has joined #ruby
[00:27:47] freeos: has joined #ruby
[00:30:01] some_novice: Novice Python user here - wondering if there is a preferred scraper module akin to Python's BeautifulSoup that I should be using for simple scrapes of a given field on a page?
[00:31:41] some_novice: I found rubyful_soup but it looks like it's pretty stale 1.0.4 is from 2006-03
[00:35:28] gusrub: has joined #ruby
[00:38:25] mrbobbytables: has left #ruby: ()
[00:41:21] brent__: has joined #ruby
[00:43:25] mikeiniowa: has joined #ruby
[00:45:50] elomatreb: some_novice: Mechanize is pretty popular for scraping stuff
[00:49:53] qmr: thinking of going with Intel® Xeon® E5-2687W v4 3.0GHz,30M Cache,9.60GT/s QPI,Turbo,HT,12C/24T (2x) for our new rails servers. anyone have any other suggestions?
[00:53:08] cschneid_: has joined #ruby
[00:55:14] etehtsea: has joined #ruby
[00:57:30] some_novice: Thanks elomatreb
[01:05:27] Pumukel: has joined #ruby
[01:10:46] some_novice: has joined #ruby
[01:14:16] tummy: has joined #ruby
[01:18:27] mim1k: has joined #ruby
[01:20:37] bmurt: has joined #ruby
[01:27:01] astrobunny: has joined #ruby
[01:32:20] bsartek: has joined #ruby
[01:33:46] apparition: has joined #ruby
[01:35:35] guardianJ: has joined #ruby
[01:39:30] jusa: has joined #ruby
[01:46:16] bsartek: has joined #ruby
[01:49:16] brent__: has joined #ruby
[01:50:05] guardianJ: has joined #ruby
[01:51:23] bronson: has joined #ruby
[01:56:04] petruff: has joined #ruby
[02:00:36] jhack32: has joined #ruby
[02:01:36] LastWhisper____: has joined #ruby
[02:01:37] d^sh: has joined #ruby
[02:05:39] jamesaxl: has joined #ruby
[02:10:54] rhyselsmore: has joined #ruby
[02:12:33] mwlang: has joined #ruby
[02:12:37] LastWhisper____: has joined #ruby
[02:14:16] mwlang: is there a simpler way for big numbers (w/o using activesupport) than this? 10_123_456.to_s.reverse.chars.each_slice(3).map{|s| s.join}.join(',').reverse
[02:14:16] mwlang: => "10,123,456"
[02:16:20] bambanx: has joined #ruby
[02:19:01] spiette_: has joined #ruby
[02:19:19] zenguy_pc: has joined #ruby
[02:20:25] genpaku: has joined #ruby
[02:22:02] brent__: has joined #ruby
[02:22:14] enterprisey: has joined #ruby
[02:22:48] LastWhisper____: has joined #ruby
[02:24:41] duderonomy: has joined #ruby
[02:26:11] ozcanesen: has joined #ruby
[02:27:16] Jameser: has joined #ruby
[02:29:40] charliesome: has joined #ruby
[02:31:11] nofxxx: has joined #ruby
[02:33:27] Radar: mwlang: I think that's the simplest version.
[02:33:28] Ryzokuken: has joined #ruby
[02:34:03] elomatreb: Ruby 2.4 added Integer#digits, saves you the string part at least
[02:34:28] mwlang: haven’t moved to 2.4, yet, but sounds interesting.
[02:36:35] elomatreb: >> 10_123_456.digits.each_slice(3).map {|s| s.join }.join(",").reverse
[02:36:36] ruby[bot]: elomatreb: # => undefined method `digits' for 10123456:Fixnum (NoMethodError) ...check link for more (https://eval.in/791818)
[02:36:42] elomatreb: RUBY_VERSION
[02:36:45] elomatreb: >> RUBY_VERSION
[02:36:46] ruby[bot]: elomatreb: # => "2.3.0" (https://eval.in/791819)
[02:36:51] elomatreb: You're not the only one ._.
[02:38:48] aryaching: has joined #ruby
[02:40:33] bambanx_: has joined #ruby
[02:51:02] xall_: has joined #ruby
[02:52:44] PorcoRex: has joined #ruby
[02:56:41] wethu: has joined #ruby
[03:00:01] LastWhisper____: has joined #ruby
[03:02:04] charliesome: has joined #ruby
[03:03:50] jusa: has joined #ruby
[03:04:21] guardianJ_: has joined #ruby
[03:07:42] Pumukel: has joined #ruby
[03:09:40] cschneid_: has joined #ruby
[03:11:03] dminuoso: has joined #ruby
[03:11:20] Trynemjoel: has joined #ruby
[03:15:30] coderphive: has joined #ruby
[03:15:52] Pumukel: has joined #ruby
[03:18:14] stlis: has joined #ruby
[03:18:59] mim1k: has joined #ruby
[03:19:35] nofxxxx: has joined #ruby
[03:21:12] Pumukel: has joined #ruby
[03:27:00] Pumukel: has joined #ruby
[03:27:32] zachary12: has joined #ruby
[03:28:27] jgnagy: has joined #ruby
[03:31:47] zachary12: has joined #ruby
[03:32:24] zachary12: has joined #ruby
[03:32:58] Pumukel: has joined #ruby
[03:35:06] guardianJ_: has joined #ruby
[03:35:42] ptierno: has joined #ruby
[03:36:03] stlis: has joined #ruby
[03:38:41] Pumukel: has joined #ruby
[03:38:47] jusa: has joined #ruby
[03:38:47] zachary12: has joined #ruby
[03:39:13] stlis: has joined #ruby
[03:43:37] __Yiota: has joined #ruby
[03:44:21] Pumukel: has joined #ruby
[03:45:09] ozcanesen: has joined #ruby
[03:50:18] Pumukel: has joined #ruby
[03:52:56] astrobunny: has joined #ruby
[03:53:02] gusrub: has joined #ruby
[03:53:18] etehtsea: has joined #ruby
[03:56:04] Pumukel: has joined #ruby
[03:58:40] sp4rrow: has joined #ruby
[04:00:32] gix: has joined #ruby
[04:01:56] Pumukel: has joined #ruby
[04:07:34] Pumukel: has joined #ruby
[04:07:54] juggler: has joined #ruby
[04:13:11] gusrub: has joined #ruby
[04:14:31] ptierno: has joined #ruby
[04:16:57] apparition: has joined #ruby
[04:17:11] guardianJ: has joined #ruby
[04:17:41] mim1k: has joined #ruby
[04:21:06] guardianJ: has joined #ruby
[04:25:23] Pumukel: has joined #ruby
[04:27:51] cschneid_: has joined #ruby
[04:29:49] Tempesta: has joined #ruby
[04:30:44] Pumukel: has joined #ruby
[04:31:55] SteenJobs: has joined #ruby
[04:33:53] canton7: has joined #ruby
[04:33:59] accessd: has joined #ruby
[04:34:46] renchan: has joined #ruby
[04:35:38] cschneid: has joined #ruby
[04:36:09] fnux: has joined #ruby
[04:36:22] Pumukel: has joined #ruby
[04:39:24] guardianJ: has joined #ruby
[04:40:06] Batholith: has joined #ruby
[04:40:06] Batholith: has joined #ruby
[04:43:20] Tariq: has joined #ruby
[04:44:20] Tariq: What’s up?
[04:45:33] guardianJ: has left #ruby: ()
[04:46:21] Tariq: Er, is it a good idea to ask a question about Ruby on Rails/Rails_Admin here?
[04:46:33] Tariq: Or does this chatroom only cover raw Ruby questions?
[04:46:36] hndk: has joined #ruby
[04:47:32] pankaj_: has joined #ruby
[04:47:37] Pumukel: has joined #ruby
[04:47:48] Tariq: PorcoRex, hi.
[04:48:03] ipolc: has joined #ruby
[04:48:16] PorcoRex: Tariq, hey.
[04:48:27] ptierno: has joined #ruby
[04:48:27] ptierno: has joined #ruby
[04:48:31] ipolc: has left #ruby: ()
[04:48:41] PorcoRex: Depends. I'm pretty much a newcomer here, so. What's the question?
[04:49:13] Tariq: A client wants to be able to type in data about users. However, the data they want to type in is dependent on certain properties
[04:49:30] Tariq: If a user is “X”, then I want to fill in data about Y. Else, I’ll fill out data about Z.
[04:49:33] Tariq: for instance
[04:49:54] Tariq: But I’m afraid of having a table containing 100 different rows
[04:50:01] Tariq: and then hiding the rows that are “not necessary to be filled”
[04:50:04] Tariq: using jQuery.
[04:50:21] Tariq: That sounds doable, and I believed that it happened at my last job.
[04:50:35] Tariq: But it also sounds like a horrible idea.
[04:50:41] Tariq: There has to be a better solution.
[04:50:44] Tariq: I just don’t know what.
[04:50:58] PorcoRex: Seems like not a Ruby question at all. I mean, there is not even a single hint of Ruby.
[04:51:19] Tariq: Well, I’m using Rails_Admin for this
[04:51:25] Tariq: so that’s why I thought it’d be a Ruby question
[04:52:24] Tariq: I know Ruby has serialization and de-serialization
[04:53:39] Tariq: Like, you can store and retreive artibrary data in a JSON/YAML file
[04:53:40] ivanskie: has joined #ruby
[04:54:04] PorcoRex: I'm not trying to be unhelpful on purpose, but you're talking about jQuery and database rows and it's not easy to figure how this relates to Ruby at all.
[04:56:03] Tariq: Fair enough. Maybe I’m not thinking at the right level of abstraction then.
[04:58:05] DeeJayh-L: has joined #ruby
[04:58:18] PorcoRex: I would assume jQuery you are using in the front end of a webapp? and the database as a back end tool? Is ruby involved in the middle somehow? Is this a Rails app for instance?
[04:58:24] Tariq: Yes, there is a Rails app
[04:58:47] Tariq: Rails_Admin is a Ruby gem that I’m using that generates a “backroom” UI for admins to manipulate the database
[04:59:08] Pumukel: has joined #ruby
[04:59:12] Tariq: you can use jQuery on that UI, and I have used jQuery in the past to add ‘features’ to the UI
[04:59:28] Tariq: It seems very hacky, but it looks like all the searching I’m doing suggests that this is “best practice”
[04:59:36] Tariq: so, I guess I’ll follow this “best practice".
[05:00:02] PorcoRex: Ok, but what would be the problem again?
[05:00:33] Tariq: The problem is that this “best practice” sounds horrible.
[05:01:02] Tariq: I mean, it might work for handling one or two fields
[05:01:13] Tariq: but if I have 100 different fields in a table
[05:01:35] Tariq: then I’m going to need to write a bunch of jQuery code
[05:01:43] Tariq: to hide 50 fields
[05:01:59] BTRE: has joined #ruby
[05:02:23] PorcoRex: Are you talking about jQuery input fields and also database fields?
[05:02:23] ivanskie: whats the name for off topic channel?
[05:02:45] ivanskie: ruby-offtopic? or not dash?
[05:03:08] PorcoRex: Sorry guys, but really, can you complain? There's absolutely nothing going on here.
[05:03:24] Tariq: I’ll IM you PorcoRex.
[05:03:40] PorcoRex: Tariq, sounds good.
[05:04:44] Pumukel: has joined #ruby
[05:05:36] ivanskie: so anyone here from BC?
[05:07:51] Deviant|Logic: has joined #ruby
[05:08:23] ivanskie: gah alright time for some sleeping
[05:08:27] ivanskie: has left #ruby: ()
[05:12:48] hndk: has joined #ruby
[05:13:48] sp4rrow: has joined #ruby
[05:16:55] Dimik: has joined #ruby
[05:21:23] Pumukel: has joined #ruby
[05:22:51] Bock: has joined #ruby
[05:27:22] Pumukel: has joined #ruby
[05:28:22] jusa: has joined #ruby
[05:30:15] Mia: has joined #ruby
[05:30:15] Mia: has joined #ruby
[05:30:48] bsartek: has joined #ruby
[05:42:59] brent__: has joined #ruby
[05:45:08] bernd9000: has joined #ruby
[05:46:14] User458764: has joined #ruby
[05:47:08] Jameser: has joined #ruby
[05:53:21] bronson: has joined #ruby
[05:56:24] jaruga________: has joined #ruby
[06:02:54] gothicsouth: has joined #ruby
[06:05:49] tildes: has joined #ruby
[06:05:53] cfec0b8d: has joined #ruby
[06:09:03] johnny56: has joined #ruby
[06:14:21] laekur: has joined #ruby
[06:15:34] dionysus69: has joined #ruby
[06:19:01] cam27: has joined #ruby
[06:29:09] cschneid_: has joined #ruby
[06:30:33] alazred: has joined #ruby
[06:30:33] alazred: has joined #ruby
[06:30:40] akkad: has joined #ruby
[06:35:30] patarr: has joined #ruby
[06:38:13] Seenox: has joined #ruby
[06:40:21] Jameser: has joined #ruby
[06:40:27] bkxd: has joined #ruby
[06:43:57] conta: has joined #ruby
[06:45:29] anisha: has joined #ruby
[06:47:59] milardovich: has joined #ruby
[06:50:14] last_staff: has joined #ruby
[06:56:00] esObe_: has joined #ruby
[06:58:10] nomad101: has joined #ruby
[06:58:24] TomyWork: has joined #ruby
[07:03:43] KeyJoo: has joined #ruby
[07:05:36] wethu: has joined #ruby
[07:14:37] andikr: has joined #ruby
[07:15:12] zenspider: has joined #ruby
[07:15:38] zenspider: has joined #ruby
[07:17:43] zenspider: oh what the fuck... why is zenspider[m] still here?
[07:18:00] zenspider: I nuked my account on riot/matrix... but it is still logged in?
[07:18:11] ChanServ: +o zenspider
[07:18:27] zenspider: zenspider kicked zenspider[m]: by zenspider
[07:18:49] zenspider: -o zenspider
[07:23:29] aufi: has joined #ruby
[07:24:29] zenspider: >> s = "blah"; r = /a/; [s =~ r, r =~ s, s === r, r === s]
[07:24:30] ruby[bot]: zenspider: # => [2, 2, false, true] (https://eval.in/791949)
[07:24:50] zenspider: >> s = "blah"; r = /a/; [s =~ r, r =~ s, s === r, r === s].map { |x| !!x }
[07:24:51] ruby[bot]: zenspider: # => [true, true, false, true] (https://eval.in/791950)
[07:26:35] cfec0b8d: has joined #ruby
[07:28:41] dminuoso: zenspider: That looks like a bug.
[07:29:30] zenspider: mmm... I don't think so... but you think it should be all trues?
[07:29:42] dminuoso: zenspider: Ohh, the documentation covers this heh.
[07:29:46] jgnagy: has joined #ruby
[07:30:03] zenspider: I'm just thinking out loud... trying to get similar results from something I'm working on... but I am not sure how it is the same / different yet
[07:30:04] dminuoso: zenspider: for str === obj, Returns whether str == obj, similar to Object#==. If obj is not an instance of String but responds to to_str, then the two strings are compared using case equality Object#===.
[07:30:43] zenspider: in my case, I'm trying to make pattern matching for trees
[07:31:00] matthewd: === is pretty widely not commutative
[07:32:31] zenspider: t = s(:b, s(:b, s(:a))); r = s{ s(:a) }; r =~ t && t =~ r && !(t === r) && (r === t)
[07:32:37] zenspider: the last 2 seem backwards to me
[07:33:44] Mortomes|Work: has joined #ruby
[07:34:11] matthewd: That sounds right to me
[07:34:29] zenspider: the results I have above? or that they're backards?
[07:34:33] matthewd: String === "x"; 1..5 === 3
[07:34:39] matthewd: The results
[07:34:59] zenspider: well then I'm done :P
[07:35:03] matthewd: matcher === value
[07:36:31] zenspider: OK... I'd agree with that... right. fuck. that's the opposite of what I have. Lemme make sure my tests are set up right
[07:36:46] Pumukel: has joined #ruby
[07:37:32] bsartek: has joined #ruby
[07:37:43] zenspider: yeah. my code is currently backwards for === from what I want. need to dig
[07:38:26] zenspider: gonna be nice once this shit works... but it gets confusing easily. the fact that they're trees and differently positional isn't fun
[07:39:07] zenspider: also, the current system allows for named capture, but that means that === needs to pass around an extra param and it returns a hash of the results... it's, odd.
[07:40:15] Macaveli: has joined #ruby
[07:40:17] burgestrand: has joined #ruby
[07:40:59] marr: has joined #ruby
[07:41:14] zenspider: not sure if I should keep it or cut it
[07:41:27] asperon: has joined #ruby
[07:42:09] zenspider: t = s(:b, s(:b, s(:a))); r = s{ s(:a) % :val }; (r === t)[:val] # => s(:a)
[07:42:18] asperon: might not be a ruby question but could somebody tell me how to flip the text via rmagic, preferably inside an annotate. I just want to flip the text and not the rest of the image.
[07:43:02] zenspider: asperon: you need to start by learning how to ask better questions
[07:43:19] zenspider: and you're right, that's not a ruby question at all... but that's hardly the point
[07:43:34] brent__: has joined #ruby
[07:43:57] universa1: if the text is already in the image, it gets kinda hard to flip the text and not the image
[07:45:40] asperon: universa1: its not, i am rendering it via annotate
[07:46:02] asperon: i guess it could render it to a new image, flip that and the composite into the other image
[07:46:08] asperon: it just feels wrong
[07:46:33] tamsuiboy: has joined #ruby
[07:47:13] asperon: perhaps i could flip the image and then flip it back, ill try that :)
[07:51:46] asperon: has left #ruby: ()
[07:54:05] Silthias: has joined #ruby
[07:54:15] bronson: has joined #ruby
[07:54:39] dionysus69: has joined #ruby
[07:58:44] User458764: has joined #ruby
[07:59:23] mikecmpbll: has joined #ruby
[08:00:37] cschneid_: has joined #ruby
[08:02:02] jaruga________: has joined #ruby
[08:05:43] conta: has joined #ruby
[08:07:17] mim1k: has joined #ruby
[08:07:28] zenguy_pc: has joined #ruby
[08:09:15] pandaant: has joined #ruby
[08:12:57] flying: has joined #ruby
[08:13:51] milardovich: has joined #ruby
[08:15:11] yogg-saron: has joined #ruby
[08:19:23] zenspider: matthewd: I'm wondering if it shouldn't be true for =~ and false for === regardless of order. that === should be structural matching and =~ should be any subset/level
[08:24:17] mark_66: has joined #ruby
[08:26:05] charliesome: has joined #ruby
[08:26:52] jaruga________: has joined #ruby
[08:29:00] bkxd: has joined #ruby
[08:31:25] aupadhye: has joined #ruby
[08:34:00] milardovich: has joined #ruby
[08:34:37] luckyuser: has joined #ruby
[08:35:00] luckyuser: has left #ruby: ()
[08:36:23] patarr: has joined #ruby
[08:37:07] tomphp: has joined #ruby
[08:37:44] Pumukel: has joined #ruby
[08:38:12] Stan: has joined #ruby
[08:42:57] dminuoso: zenspider: The problem is that String#=== has some special semantics. You cant compare them.
[08:43:09] dminuoso: zenspider: === is for case equality, =~ is for pattern matching.
[08:44:45] antib: has joined #ruby
[08:44:46] bsartek: has joined #ruby
[08:46:11] zenspider: dminuoso: how does that make String#=== special semantics? #=== is always for case equality. also not sure how that means I can't compare the two
[08:46:43] zenspider: >> case "blah" when /a/ then true else false end
[08:46:44] ruby[bot]: zenspider: # => true (https://eval.in/792017)
[08:46:52] zenspider: where I want to be able to do something similar:
[08:47:16] zenspider: case s(:b, s(:b, s(:a))) when s{ s(:a) } then true else false end
[08:47:37] zenspider: not sure if that SHOULD match at this point... depends on how I think about matching
[08:49:23] zenspider: if it should, that means I need to add extra constructs like regexp's ^
[08:50:54] dminuoso: zenspider: String#=== basically tries to force a situation that results in str == str
[08:51:45] zenspider: meh. that part I don't care about so much... there's no equivalent to tree-ifying
[08:52:50] zenspider: oooooh... I COULD add String#to_sexp, parse it with ruby_parser, and THEN match it. :P
[08:59:20] Silox|: has joined #ruby
[09:03:48] ur5us: has joined #ruby
[09:05:45] lxsameer: has joined #ruby
[09:06:27] TreyG: has joined #ruby
[09:08:33] benjen: has left #ruby: ("*Goes ranging*")
[09:09:52] railsForDaiz: has joined #ruby
[09:14:16] milardovich: has joined #ruby
[09:15:45] gregf_: has joined #ruby
[09:18:56] alazred: has joined #ruby
[09:18:56] alazred: has joined #ruby
[09:23:25] leitz: has joined #ruby
[09:23:49] xall_: has joined #ruby
[09:24:14] antgel: has joined #ruby
[09:31:07] jgnagy: has joined #ruby
[09:34:05] TreyG_: has joined #ruby
[09:37:47] tomphp: has joined #ruby
[09:38:29] benjen: has joined #ruby
[09:40:07] Pumukel: has joined #ruby
[09:43:33] patarr: has joined #ruby
[09:44:49] milardovich: has joined #ruby
[09:46:36] railsForDaiz: has joined #ruby
[09:49:39] testuserhaha: has joined #ruby
[09:52:24] psychicist__: has joined #ruby
[09:53:05] tomphp: has joined #ruby
[09:56:10] tomphp: has joined #ruby
[09:56:13] bronson: has joined #ruby
[09:58:01] jaruga________: has joined #ruby
[09:59:25] gizmore: has joined #ruby
[09:59:57] craysiii: has joined #ruby
[10:03:52] kassav_: has joined #ruby
[10:05:27] Pumukel: has joined #ruby
[10:08:20] EugenMayer: has joined #ruby
[10:08:30] harfangk: has joined #ruby
[10:08:37] charliesome: has joined #ruby
[10:09:13] EugenMayer: i am running into a file-max issue File using File.binread and processing files. It seems like files are kept open or similar, or a pipe ( 100.000 ). Any hints about that topic in general. Using google right now but nothing interesting yet
[10:10:07] ljarvis: eugenmayer: what are you doing exactly?
[10:11:42] EugenMayer: ljarvis: i am processing a number of files, reading them handling them to a webservice which extracs the text out of the files and the i store then into an elasticsearch ( that as the outline of what is done )
[10:12:32] EugenMayer: ljarvis: it seems like my file loading, binread is used since i do not know the encoding of the file, causes open file handles, which leads to too much files open issues ( and my system may crash, beside its blocked )
[10:12:55] ljarvis: eugenmayer: can you read what you want and then close the file after you're done on each iteration?
[10:14:10] EugenMayer: ljarvis: well sure i can close the file handle and as far as i can see, i do not do this ( failed .. ) still thought to ask about general pitfalls
[10:14:19] oded: has joined #ruby
[10:15:01] EugenMayer: I just seems that File.binread does not need to be closed,
[10:15:11] ljarvis: eugenmayer: in general if you're doing a lot of this, the rule is: only read what you need, and always clean up
[10:15:26] matthewd: > which leads to too much files open issues ( and my system may crash, beside its blocked )
[10:15:28] milardovich: has joined #ruby
[10:15:48] matthewd: Which one is happening?
[10:15:54] EugenMayer: https://hastebin.com/exoquwaqic.pas
[10:16:06] TreyG: has joined #ruby
[10:16:11] ljarvis: can you show some code and the actual error you're receiving?
[10:16:13] matthewd: Are you getting an actual error? If so, can we please see it?
[10:16:15] EugenMayer: matthewd: still in the deep analysis, but i expect it to be File.binread
[10:16:27] ljarvis: and yes, binread does close the file
[10:16:38] EugenMayer: matthewd: i get a kernel issue, to many files open. Lets do not go down on the sysop level
[10:16:57] ljarvis: how many files are we talking?
[10:16:58] matthewd: eugenmayer: We can't add new information with only your expectations
[10:17:22] matthewd: What kernel issue? Do you get an error message? Can we see it?
[10:17:36] EugenMayer: ljarvis: not exact number, but max 50 when the error occurs, so its nothing linear to the open files
[10:17:47] ferr: has joined #ruby
[10:17:51] ljarvis: yeah we need to see the error, 50 is nothing
[10:18:08] cardoni: has joined #ruby
[10:18:11] EugenMayer: https://hastebin.com/moducanede.pas
[10:18:39] EugenMayer: Guys, this wont make you happy, right? And thats why i did not start with it.
[10:18:54] ljarvis: it's more helpful than without it :)
[10:19:15] ljarvis: can you reproduce with a smaller sample?
[10:19:24] ljarvis: or share some code
[10:19:39] EugenMayer: trying to pin it to the section and will share the code then.
[10:19:50] ljarvis: cool, also where did that log come from?
[10:19:57] EugenMayer: Right about trying to du the reduction on the exact snippet
[10:21:37] matthewd: That error is helpful partly just because it's *not* the error you'd normally get from leaving too many file handles open inside a ruby process
[10:24:31] ljarvis: yeah i'd wager it's something else
[10:24:36] EugenMayer: matthewd: it is exactly that error :)
[10:24:59] EugenMayer: matthewd: the erorr varries if you run into the ulimit limit or the fs-max issue
[10:25:16] EugenMayer: i am providing infos as soonish as possible, still reducing
[10:26:02] unshadow: has joined #ruby
[10:26:32] EugenMayer: beside that, the error can varry if you run into a docker-env and hit the host limit or run on the host, i assume
[10:26:32] matthewd: eugenmayer: Fine, rephrase: the fact you're not running into the ulimit first seems informative
[10:26:59] matthewd: (assuming you don't have an insanely high ulimit set, which would be information you would've provided by now)
[10:27:18] EugenMayer: matthewd: the latter might be docker related. the user running the docker stack is non admin, but i assume that the docker daemon runs under root, which will explain that the ulimit -n will be unlimitted
[10:27:38] EugenMayer: docker will run under root -> no limits apply -> file-max limit
[10:27:48] tvw: has joined #ruby
[10:27:51] EugenMayer: (but in this case, its a suggestion )
[10:28:06] EugenMayer: i mean, thats what i am guessing
[10:28:09] kireevco: has joined #ruby
[10:28:46] User458764: has joined #ruby
[10:31:50] xenops: has joined #ruby
[10:32:32] Guest96: has joined #ruby
[10:33:35] romank: has joined #ruby
[10:36:16] sski: has joined #ruby
[10:42:31] Beams: has joined #ruby
[10:43:31] EugenMayer: matthewd: ljarvis i think i boiled it down to https://hastebin.com/ebofomuqed.rb
[10:43:46] EugenMayer: could #5 / #8 cause it?
[10:45:55] milardovich: has joined #ruby
[10:46:35] EugenMayer: actually know, even with my return statement above ( raturn data) i still get the issue
[10:48:19] unshadow: has joined #ruby
[10:50:03] matthewd: I'd still be trying to work out why you're hitting an 800k limit from about 50 files -- no matter how badly you mishandled them, you shouldn't get anywhere near that
[10:52:49] jhack: has joined #ruby
[10:53:09] Silthias: has joined #ruby
[10:55:34] EugenMayer: matthewd: yeah its not even near linear .. but well i cannot yet answer it :)
[10:58:16] Beams: has joined #ruby
[11:07:14] charliesome: has joined #ruby
[11:11:49] mim1k: has joined #ruby
[11:12:04] Klumben: has joined #ruby
[11:16:35] milardovich: has joined #ruby
[11:21:06] bgray_: has joined #ruby
[11:23:15] alem0lars: has joined #ruby
[11:25:18] bgray_: has left #ruby: ()
[11:30:45] petruff: has joined #ruby
[11:32:45] umdstu: i have a RestClient request that works locally, but not in production. it fails with an sslv3 error. how do i determine the difference between the ruby installs and when openssl support each has
[11:33:31] bestie: has joined #ruby
[11:34:32] HoierM: has joined #ruby
[11:36:20] milardovich: has joined #ruby
[11:38:45] psychicist__: has joined #ruby
[11:39:09] JeanCarloMachado: has joined #ruby
[11:39:33] User458764: has joined #ruby
[11:44:49] jaruga________: has joined #ruby
[11:53:28] antgel: has joined #ruby
[11:56:03] ldnunes: has joined #ruby
[11:56:59] bronson: has joined #ruby
[12:02:04] Pumukel: has joined #ruby
[12:02:42] cschneid_: has joined #ruby
[12:03:29] synthroid: has joined #ruby
[12:09:09] swills: has joined #ruby
[12:11:13] jrafanie: has joined #ruby
[12:16:36] tomphp: has joined #ruby
[12:16:38] jxf: has joined #ruby
[12:20:18] cam27: has joined #ruby
[12:20:47] mim1k: has joined #ruby
[12:20:48] yogg-saron: has joined #ruby
[12:22:03] etehtsea: has joined #ruby
[12:24:14] gnufied: has joined #ruby
[12:27:00] sysvalve: has joined #ruby
[12:28:11] madhatter: has joined #ruby
[12:29:23] pupsicle: has joined #ruby
[12:30:31] tomphp: has joined #ruby
[12:33:15] unshadow: has joined #ruby
[12:33:25] gnufied: has joined #ruby
[12:33:28] yogg-saron: has joined #ruby
[12:34:20] robotmay: has joined #ruby
[12:36:56] jeffreylevesque: has joined #ruby
[12:37:46] aufi: has joined #ruby
[12:38:57] nicolai86: has joined #ruby
[12:39:48] hashrocket: has joined #ruby
[12:39:51] kiltzman: has joined #ruby
[12:43:20] chouhoulis: has joined #ruby
[12:43:42] unshadow: has joined #ruby
[12:45:00] yogg-saron: has joined #ruby
[12:48:55] nicolai86: has joined #ruby
[12:52:11] TreyG: has joined #ruby
[12:52:38] ramortegui: has joined #ruby
[12:53:33] boxrick1: has joined #ruby
[12:57:18] yqt: has joined #ruby
[12:57:20] t-recx: has joined #ruby
[12:59:56] mim1k: has joined #ruby
[13:00:04] spiette_: has joined #ruby
[13:01:06] synthroid: has joined #ruby
[13:02:26] rann: has joined #ruby
[13:04:42] rann: has joined #ruby
[13:07:11] Jameser: has joined #ruby
[13:07:54] rprimus: has joined #ruby
[13:08:10] yogg-saron: has joined #ruby
[13:08:31] mim1k: has joined #ruby
[13:08:56] lucasr: has joined #ruby
[13:09:15] BSaboia: has joined #ruby
[13:10:35] Guest37310: has joined #ruby
[13:12:25] fmcgeough: has joined #ruby
[13:12:29] ski7777: has joined #ruby
[13:13:56] Takumo: has joined #ruby
[13:13:57] Takumo: has joined #ruby
[13:16:10] bronson: has joined #ruby
[13:16:47] gnufied: has joined #ruby
[13:19:41] Jameser: has joined #ruby
[13:21:39] andersh: has joined #ruby
[13:22:57] solidsnack: has joined #ruby
[13:24:17] nowhereman: has joined #ruby
[13:26:08] Beams: has joined #ruby
[13:26:34] nertzy: has joined #ruby
[13:27:53] rodrigovlds: has joined #ruby
[13:30:07] __Yiota: has joined #ruby
[13:31:02] DLSteve_: has joined #ruby
[13:31:34] wethu: has joined #ruby
[13:33:16] rodrigovlds_: has joined #ruby
[13:33:51] synthroid: has joined #ruby
[13:42:11] Jameser: has joined #ruby
[13:45:15] al2o3-cr: has joined #ruby
[13:46:55] Vingador: has joined #ruby
[13:48:43] fusta: has joined #ruby
[13:48:53] __Yiota: has joined #ruby
[13:50:14] Beams: has joined #ruby
[13:51:37] oleo: has joined #ruby
[13:51:57] shinnya: has joined #ruby
[13:52:44] Guest96: has joined #ruby
[13:53:19] yeticry_: has joined #ruby
[13:54:49] Jameser: has joined #ruby
[13:55:11] User458764: has joined #ruby
[13:57:21] kwd: has joined #ruby
[13:58:47] milardovich: has joined #ruby
[14:00:53] dminuoso: has joined #ruby
[14:00:55] yogg-saron: has joined #ruby
[14:01:06] Jameser: has joined #ruby
[14:01:26] jrafanie: has joined #ruby
[14:02:45] etehtsea: has joined #ruby
[14:03:19] Silthias: has joined #ruby
[14:03:38] cschneid_: has joined #ruby
[14:03:39] gnufied: has joined #ruby
[14:04:52] Tony-St4rk: has joined #ruby
[14:05:28] Pumukel: has joined #ruby
[14:07:56] nhhc: has joined #ruby
[14:08:20] Beams: has joined #ruby
[14:09:21] ResidentBiscuit: has joined #ruby
[14:11:03] Rodya_: has joined #ruby
[14:11:45] loechel: has joined #ruby
[14:13:36] ptierno: has joined #ruby
[14:13:36] ptierno: has joined #ruby
[14:17:23] Jameser: has joined #ruby
[14:18:26] alem0lars: has joined #ruby
[14:18:36] milardovich: has joined #ruby
[14:19:37] Klumben: has joined #ruby
[14:20:33] Silthias: has joined #ruby
[14:23:27] Jameser: has joined #ruby
[14:24:01] discopatrick: has joined #ruby
[14:27:11] cdg: has joined #ruby
[14:28:27] User458764: has joined #ruby
[14:29:03] milardovich: has joined #ruby
[14:30:13] kent\n: has joined #ruby
[14:31:54] gothicsouth: has joined #ruby
[14:33:23] dlitvak: has joined #ruby
[14:33:57] cam27: has joined #ruby
[14:35:07] Silox|: has joined #ruby
[14:35:51] xall_: has joined #ruby
[14:37:22] d10n-work: has joined #ruby
[14:38:00] bronson: has joined #ruby
[14:44:52] ledestin: has joined #ruby
[14:50:00] cschneid_: has joined #ruby
[14:54:18] tariqali: has joined #ruby
[14:54:58] pupsicle: has joined #ruby
[14:57:27] IggyBot: has joined #ruby
[14:59:13] mim1k: has joined #ruby
[14:59:32] volty: has joined #ruby
[15:00:14] rippa: has joined #ruby
[15:00:15] xall_: has joined #ruby
[15:01:48] Silox|: has joined #ruby
[15:03:48] Azure: has joined #ruby
[15:03:57] Beams: has joined #ruby
[15:04:42] milardovich: has joined #ruby
[15:05:58] jusa: has joined #ruby
[15:09:42] Lucky_ABA: has joined #ruby
[15:11:31] bronson: has joined #ruby
[15:12:38] tariqali: has joined #ruby
[15:13:01] psychicist__: has joined #ruby
[15:13:14] Rodya_: has joined #ruby
[15:14:27] ltem: has joined #ruby
[15:14:53] choke: has joined #ruby
[15:16:06] StockBot: Any experts on cinch here?
[15:16:13] jhack_: has joined #ruby
[15:17:25] SHyx0rmZ: has joined #ruby
[15:20:05] rodrigovlds_: has joined #ruby
[15:25:13] t-richards: has joined #ruby
[15:25:41] cschneid_: has joined #ruby
[15:26:16] ljarvis: StockBot: private message dominikh and tell him i sent you
[15:26:52] Hunter1_: has joined #ruby
[15:31:30] ascarter: has joined #ruby
[15:33:51] peteretep: has joined #ruby
[15:34:43] tariqali: has joined #ruby
[15:35:52] brent__: has joined #ruby
[15:38:28] xall_: has joined #ruby
[15:38:33] duderonomy: has joined #ruby
[15:38:41] synthroid: has joined #ruby
[15:42:59] bkxd: has joined #ruby
[15:48:30] MrSparkle: has joined #ruby
[15:49:12] quobo: has joined #ruby
[15:51:02] [Butch]: has joined #ruby
[15:51:36] nofxxxx: has joined #ruby
[15:52:57] Burgestr_: has joined #ruby
[15:53:50] amclain: has joined #ruby
[15:54:45] pwillard: has joined #ruby
[15:57:24] apeiros: ljarvis: is that some insider between you and dominikh?
[15:58:59] __Yiota: has joined #ruby
[15:59:03] ljarvis: you could say that (he is also the author though, and i was the previous author)
[16:00:52] apeiros: oh, before dominikh, you wrote cinch?
[16:01:04] wsmoak: has joined #ruby
[16:01:07] ljarvis: i wrote the original yeah, dom wrote a different bot and then we merged
[16:01:09] apeiros: either I didn't know or I forgot
[16:01:30] ljarvis: https://dominik.honnef.co/posts/2010/08/newton-cinch-merge/
[16:01:35] baweaver: apeiros doesn't know something!?
[16:01:48] apeiros: don't think I've heard of newton :-|
[16:01:51] ljarvis: probably just lost in the ether
[16:01:57] ljarvis: why do you think we merged :)
[16:02:18] __Yiota: has joined #ruby
[16:02:36] rkazak: has joined #ruby
[16:03:09] ljarvis: dom does not hide his feelings in that post about newton being superior and he just wanted users
[16:03:28] ljarvis: " Cinch has remarkably many users, even though I think that not even its developer knows how that’s possible"
[16:03:31] ljarvis: such a nice guy
[16:04:15] ljarvis: then dom took it over, made it "better" and lost many of the users
[16:04:20] ljarvis: i guess i was better at marketing :D
[16:04:44] apeiros: or irc in general lost users
[16:05:42] dminuoso: People still do IRC?
[16:06:03] ljarvis: well, i like my RAM so i try to avoid the obvious alternatives
[16:06:48] apeiros: yeah… twitter consumes 700MB of ram here… no idea what for.
[16:07:04] bronson: has joined #ruby
[16:07:06] apeiros: and the things I heard about slack are even worse
[16:07:09] ljarvis: Slack is using 2.3GB
[16:07:25] Papierkorb: That's insane
[16:07:26] ljarvis: and im idling
[16:07:46] Papierkorb: To be honest, I've never had any "web application" consume that much memory
[16:08:14] Papierkorb: ljarvis: Meaning, you can run slack about 6 times on a standard home PC before it running OOM? What a time to be alive
[16:08:15] ljarvis: my production rails app consumes ~400mb per worker instance
[16:08:33] bmurt: has joined #ruby
[16:08:52] laekur: has joined #ruby
[16:09:19] ljarvis: ram is cheap herp derp lets make clunky software
[16:09:46] Papierkorb: CPU time is cheap too!1111
[16:10:19] apeiros: I think a webapp server side consuming 400MB/instance is by far not as bad as a desktop app consuming 2.3GB
[16:10:25] BTRE: has joined #ruby
[16:10:39] baweaver: ljarvis: the app or the website?
[16:10:46] Papierkorb: if it's a forking server, then much of it is probably COW shared anyway
[16:10:52] ljarvis: baweaver: app
[16:11:03] baweaver: Electron tries to boot an entire version of Chrome, and Chrome is a hungry little chunker
[16:11:44] Mia: has joined #ruby
[16:11:44] Mia: has joined #ruby
[16:11:47] apeiros: Papierkorb: only as of ruby 2.0 iirc (or was it 2.1?)
[16:13:01] apeiros: before ruby's mark & sweep would spill write operations all over the ram and force the copy
[16:13:05] nankyokusei: has joined #ruby
[16:14:00] Papierkorb: apeiros: Yep, but I'd wager that any recent ruby software using forks use ruby >=2.1, and if not, it hasn't been a too annoying issue in many years
[16:14:38] Papierkorb: Sure there are still the outliers running Ruby 1.8 stuff, but imho, COW isn't their primary issue at this point ;)
[16:14:58] patarr: has joined #ruby
[16:17:52] gusrub: has joined #ruby
[16:20:07] cschneid_: has joined #ruby
[16:24:45] gothicsouth: has joined #ruby
[16:30:05] Qommand0r: has joined #ruby
[16:30:12] govg: has joined #ruby
[16:30:18] fusta: has joined #ruby
[16:30:48] __Yiota: has joined #ruby
[16:34:03] dtzuzu: has joined #ruby
[16:40:16] nitric: has joined #ruby
[16:47:13] AlexRussia: has joined #ruby
[16:49:26] raspado: has joined #ruby
[16:54:18] bsartek: has joined #ruby
[16:57:05] brent__: i'm trying to create a method to return some html using content_tag, but am having trouble
[16:59:04] dminuoso: brent__: Having trouble is usually solved with adding right curly braces.
[16:59:05] brent__: https://gist.github.com/brentluna/3c95d696bcc31ea130e029642077777e
[16:59:09] dminuoso: That's what helped me with my last trouble.
[16:59:23] brent__: thats a gist of what i'm trying to accomplish
[16:59:31] dminuoso: brent__: look at the concat helper
[16:59:38] dminuoso: brent__: also rails questions belong to #rubyonrails channel
[17:00:13] patarr: has joined #ruby
[17:00:33] railsForDaiz: has joined #ruby
[17:01:19] dminuoso: brent__: http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#method-i-concat
[17:03:38] Peteykun: has joined #ruby
[17:04:22] brent__: dminuoso: okay. awesome
[17:04:28] brent__: that got me to where I needed to go
[17:05:42] jusa: has joined #ruby
[17:07:07] yogg-saron: has joined #ruby
[17:11:57] User458764: has joined #ruby
[17:13:00] cagomez: has joined #ruby
[17:19:11] chouhoul_: has joined #ruby
[17:20:56] chouhoul_: has joined #ruby
[17:23:56] duderonomy: has joined #ruby
[17:24:33] bronson: has joined #ruby
[17:26:34] HoierM: has joined #ruby
[17:27:51] User458764: has joined #ruby
[17:28:26] boombox_: has joined #ruby
[17:28:31] blackwind_123: has joined #ruby
[17:29:28] skweek: has joined #ruby
[17:29:51] nankyokusei: has joined #ruby
[17:31:11] yogg-saron: has joined #ruby
[17:31:50] milardovich: has joined #ruby
[17:33:27] ascarter: has joined #ruby
[17:34:54] AndBobsYourUncle: has joined #ruby
[17:35:37] Hunter1_: has joined #ruby
[17:37:56] aryaching: has joined #ruby
[17:41:08] cam27: has joined #ruby
[17:41:11] jrafanie: has joined #ruby
[17:52:02] nowhereman: has joined #ruby
[17:52:18] ahuman: has joined #ruby
[17:53:16] fmccann: has joined #ruby
[17:55:47] dtzuzu: has joined #ruby
[17:56:04] yogg-saron: has joined #ruby
[17:56:18] bronson: has joined #ruby
[17:57:44] govg: has joined #ruby
[17:59:08] dionysus69: has joined #ruby
[18:09:55] mim1k: has joined #ruby
[18:10:47] fusta: has joined #ruby
[18:11:46] railsForDaiz: has joined #ruby
[18:12:38] j: has joined #ruby
[18:13:23] furkanusta: has joined #ruby
[18:13:55] chouhoulis: has joined #ruby
[18:14:00] Hunter1_: has joined #ruby
[18:14:23] synthroid: has joined #ruby
[18:18:32] rkazak: has joined #ruby
[18:24:59] mostlybadfly: has joined #ruby
[18:25:44] bkxd: has joined #ruby
[18:25:46] pankaj: has joined #ruby
[18:27:11] jrafanie: has joined #ruby
[18:27:19] User458764: has joined #ruby
[18:31:33] rickumali: has joined #ruby
[18:40:25] tildes: has joined #ruby
[18:41:09] etehtsea: has joined #ruby
[18:42:23] cschneid_: has joined #ruby
[18:43:28] ekinmur: has joined #ruby
[18:44:47] ShekharReddy: has joined #ruby
[18:48:46] hobodave: has joined #ruby
[18:49:49] scorphus: has joined #ruby
[18:51:02] railsForDaiz: has joined #ruby
[18:51:03] u0_a190: has joined #ruby
[18:52:32] synthroid: has joined #ruby
[18:52:37] TomyLobo: has joined #ruby
[18:58:31] im0nde: has joined #ruby
[18:59:05] ascarter: has joined #ruby
[19:01:35] pupsicle: has joined #ruby
[19:03:22] Dimik: has joined #ruby
[19:03:34] furkanusta: has joined #ruby
[19:06:13] fusta: has joined #ruby
[19:06:22] choke: has joined #ruby
[19:09:06] Ryzokuken: has joined #ruby
[19:09:07] Celsian: has joined #ruby
[19:09:21] ShekharReddy: hey guys is there any easier way to install rvm on ubuntu 14.04
[19:09:37] ShekharReddy: i came acorss an error while installing jekyll locally
[19:09:58] Celsian: Hi there, can anyone explain why line 17 returns nothing? https://puu.sh/vMUIk/aae707759e.png
[19:09:59] ShekharReddy: i am following this http://stackoverflow.com/a/34523631/5757626
[19:10:34] jenrzzz: has joined #ruby
[19:10:52] laekur: ShekharReddy: you can try rbenv instead of rvm too
[19:11:20] rkazak: has joined #ruby
[19:11:39] ShekharReddy: hmm.. not a problem if that can get me jekyll install on my laptop
[19:12:13] cagomez: has joined #ruby
[19:12:42] laekur: Personal choice really. I like rbenv more than rvm, so there's that.
[19:12:54] laekur: Does the same job so
[19:14:17] Macaveli: has joined #ruby
[19:17:35] GinoMan: has joined #ruby
[19:17:37] jackrandom: has joined #ruby
[19:19:48] rickumali: Celsian: slice isn't for hashes in Ruby core, AFAIK
[19:20:03] gothicsouth: has joined #ruby
[19:20:23] chouhoulis: has joined #ruby
[19:20:48] jeffreylevesque: has joined #ruby
[19:24:17] chouhoul_: has joined #ruby
[19:24:24] ekinmur: has joined #ruby
[19:27:36] rickumali: has left #ruby: ()
[19:27:42] enterprisey: has joined #ruby
[19:28:53] laekur: has joined #ruby
[19:29:45] cek: has joined #ruby
[19:30:27] jusa: has joined #ruby
[19:30:30] Celsian: rickumali: It would appear that no matter how I change the CSV around the first hash value will not work. Regardless of whether I slice it or not.
[19:30:42] cek: >> Time.now - Time.now
[19:30:43] ruby[bot]: cek: # => -2.9151e-05 (https://eval.in/792428)
[19:31:21] SeepingN: has joined #ruby
[19:31:38] __Yiota: has joined #ruby
[19:33:11] cagomez: has joined #ruby
[19:34:31] lxsameer: has joined #ruby
[19:35:18] Jakaria: has joined #ruby
[19:36:11] TreyG: has joined #ruby
[19:36:25] Jakaria: hi, I am learning Ruby... this is my first script.... when I run this script this error is showing: void value expression
[19:36:26] Jakaria: next unless (x % 2) == 0
[19:36:45] Jakaria: this is the link of the script void value expression
[19:36:46] Jakaria: next unless (x % 2) == 0
[19:36:56] Jakaria: https://pastebin.com/7aiiET0k
[19:36:58] ruby[bot]: Jakaria: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/c5e5f1083560b32cb8b131f3e6e8c534
[19:36:58] ruby[bot]: Jakaria: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[19:37:20] Jakaria: oh, didn't knew about that... :P
[19:37:50] cagomez: has joined #ruby
[19:38:24] nankyokusei: has joined #ruby
[19:38:26] ljarvis: Jakaria x++ isn't valid ruby x = 1
[19:38:30] Celsian: I resolved my issue, I added ":header_converters => :symbol" to my CSV object which converts the headers in advance. I then don't lose the first key/value pair when I row.to_hash.
[19:38:42] shinnya: has joined #ruby
[19:38:54] Jakaria: oh... so, I need to use x += 1?
[19:39:22] AnoHito: has joined #ruby
[19:39:22] ljarvis: 1.upto(10) do ... end would be more concise
[19:39:40] ljarvis: or even 10.times if you don't care about starting at 1
[19:40:53] matthewd: Or 2.step(10, 2)
[19:40:55] mikecmpbll: has joined #ruby
[19:41:55] LukyCZ: has joined #ruby
[19:42:05] apeiros: always when I read matthewd, I think of "the matthew daemon"
[19:42:26] ljarvis: 2.step(10, 2).each(&method(:puts)) # paycheck
[19:42:48] ljarvis: they're different
[19:42:49] apeiros: oh wait, no newline
[19:42:56] j: has joined #ruby
[19:43:09] apeiros: ACTION never really liked display anyway, boooo, boooo!
[19:43:29] ljarvis: puts 2.step(10, 2).to_a
[19:43:35] ljarvis: + 2 million other ways to do it
[19:44:42] matthewd: (1..10).select(&:even?).each {|x| puts x }
[19:45:26] matthewd: Jakaria: The general theme/point is that you want to use Enumerable (and other block-yielding) methods rather than constructing a while loop by hand
[19:46:09] baweaver: you're going to throw the poor person for a loop D:
[19:46:35] Jakaria: whoa... hold on there buddy :D ..... I just started learnign Ruby :)
[19:46:47] matthewd: To #each their own
[19:46:50] Jakaria: that was my first script... lol
[19:46:56] cek: >> loop {}
[19:46:59] ruby[bot]: cek: # => (https://eval.in/792429)
[19:47:01] VeryBewitching: has joined #ruby
[19:47:06] baweaver: We're a very #select'ive bunch
[19:47:28] baweaver: cek: It'll #max out
[19:48:02] cek: has left #ruby: ()
[19:48:30] ljarvis: >> loop.first
[19:48:32] ruby[bot]: ljarvis: # => nil (https://eval.in/792431)
[19:49:34] apeiros: they're gone. but just for future reference, trying to break the bot = ban.
[19:49:45] apeiros: (re cek's `loop {}`)
[19:50:58] kirun: has joined #ruby
[19:52:06] perniciouscaffei: has joined #ruby
[19:54:14] patarr: has joined #ruby
[19:54:50] AnoHito_: has joined #ruby
[19:55:03] apeiros: nb, if anybody is truly interested in hardening the bot, or actively test it for security issues - approach an op. it can be done. but not just rogue on this bot.
[19:56:16] al2o3-cr: apeiros: why is not possible to /query the bot?
[19:56:25] tildes: has joined #ruby
[19:57:26] apeiros: it is, but it can be defined per command on whether it can be used in a query.
[19:57:48] apeiros: (and per privilege level)
[19:58:05] bronson: has joined #ruby
[19:58:37] apeiros: and its main purpose is to serve in the channel, not for private needs :)
[19:58:51] apeiros: i.e. I don't want to exceed its send quota by replying in query
[19:59:43] skweek: has joined #ruby
[20:00:30] ur5us: has joined #ruby
[20:01:34] mondongo: has joined #ruby
[20:02:04] mondongo: has left #ruby: ()
[20:02:04] Jakaria: has left #ruby: ("WeeChat 1.4")
[20:03:57] KeyJoo: has joined #ruby
[20:04:05] chouhoulis: has joined #ruby
[20:06:07] Rodya_: has joined #ruby
[20:06:10] tvw: has joined #ruby
[20:07:02] Lucky_ABA: has joined #ruby
[20:07:41] AndBobsYourUncle: has joined #ruby
[20:11:52] perniciouscaffei: has joined #ruby
[20:14:26] bkxd: has joined #ruby
[20:14:56] Jayson_Virissimo: has joined #ruby
[20:16:08] pankaj: has joined #ruby
[20:18:00] Macaveli: has joined #ruby
[20:18:36] finisherr: has joined #ruby
[20:19:05] finisherr: does allow_any_instance_of allow you to stub methods on a real instance?
[20:21:14] ascarter: has joined #ruby
[20:22:45] railsForDaiz: has joined #ruby
[20:32:10] cfec0b8d: has joined #ruby
[20:34:29] cdg: has joined #ruby
[20:35:25] postmodern: has joined #ruby
[20:37:13] gothicsouth: has joined #ruby
[20:40:35] AlexRussia: has joined #ruby
[20:41:04] Bock: has joined #ruby
[20:43:25] tildes: has joined #ruby
[20:43:29] Dimik: has joined #ruby
[20:44:18] brent__: has joined #ruby
[20:44:34] Bock: has joined #ruby
[20:47:19] rkazak: has joined #ruby
[20:49:14] blackwind_123: has joined #ruby
[20:53:47] wsewolod: has joined #ruby
[20:54:02] wsewolod: has left #ruby: ()
[20:54:31] nofxx: has joined #ruby
[20:54:42] jeffreylevesque: has joined #ruby
[20:58:42] bronson: has joined #ruby
[20:59:48] ozcanesen: has joined #ruby
[21:01:11] ascarter: has joined #ruby
[21:01:46] jeffreylevesque: has left #ruby: ()
[21:03:17] chef3000: has joined #ruby
[21:04:00] nofxx: has joined #ruby
[21:04:33] chef3000: I want to use Dir.glob but exclude files that start with oe and rh Is there a way to do this in one line?
[21:04:40] choke: has joined #ruby
[21:08:12] baweaver: *.grep(/regex/)
[21:09:40] mim1k: has joined #ruby
[21:09:44] baweaver: or just put reject onto the end of it
[21:09:51] baweaver: &ri Enumerable#reject
[21:09:51] `derpy: http://ruby-doc.org/core-2.4.1/Enumerable.html#method-i-reject
[21:10:05] bkxd: has joined #ruby
[21:15:39] xiengu: has joined #ruby
[21:20:20] GinoMan: has joined #ruby
[21:26:06] JeanCarloMachado: has joined #ruby
[21:26:32] ljarvis: Chef3000: Dir.glob("/path/[^(oe|rh)]*.rb")
[21:27:48] pb122-two: has joined #ruby
[21:34:05] _sfiguser: has joined #ruby
[21:34:32] Channel6: has joined #ruby
[21:35:33] jgnagy: has joined #ruby
[21:36:09] j: has joined #ruby
[21:37:34] GinoMan: has joined #ruby
[21:37:55] tomphp: has joined #ruby
[21:38:50] jhack32: has joined #ruby
[21:42:38] Channel6: has left #ruby: ("Leaving")
[21:43:36] perniciouscaffei: has joined #ruby
[21:44:40] cyphase: has joined #ruby
[21:47:21] milardovich: has joined #ruby
[21:47:55] webhat: has joined #ruby
[21:56:57] patr0clus: has joined #ruby
[21:58:19] nankyokusei: has joined #ruby
[22:00:37] AnoHito: has joined #ruby
[22:01:32] AnoHito: has joined #ruby
[22:10:47] jenrzzz: has joined #ruby
[22:10:57] jenrzzz: has joined #ruby
[22:13:51] chouhoul_: has joined #ruby
[22:15:19] jusa: has joined #ruby
[22:17:13] tomphp: has joined #ruby
[22:17:36] pankaj: has joined #ruby
[22:20:20] GinoMan: has joined #ruby
[22:22:56] chef3000: ljarvis thank you that was what I needed.
[22:24:42] mathys: has joined #ruby
[22:25:02] Tharbakery: has joined #ruby
[22:28:18] Cohedrin: has joined #ruby
[22:29:30] jane_booty_doe: has joined #ruby
[22:29:54] chouhoulis: has joined #ruby
[22:30:06] Tharbakery: has joined #ruby
[22:30:59] Emmanuel_Chanel: has joined #ruby
[22:31:26] j: has joined #ruby
[22:31:45] perniciouscaffei: has joined #ruby
[22:33:26] _sfiguser: guys is there any module in ruby who allows me todo matrix operations... and math things ?
[22:33:31] _sfiguser: such as numpy or scipy
[22:33:53] Radar: https://ruby-doc.org/stdlib-2.3.0/libdoc/matrix/rdoc/Matrix.html
[22:33:58] Radar: First result for "Ruby matrix" on google.
[22:34:17] Radar: https://ruby-doc.org/core-2.3.0/Math.html
[22:34:21] Radar: First result for "Ruby math" on google.
[22:34:57] matthewd: Also http://sciruby.com/ -- though I don't know anything beyond its existence
[22:35:19] Tharbakery: has joined #ruby
[22:38:39] Tharbakery: has joined #ruby
[22:43:35] JeanCarloMachado: has joined #ruby
[22:45:29] LastWhisper____: has joined #ruby
[22:46:13] gusrub: has joined #ruby
[22:46:45] crayfishx: has joined #ruby
[22:51:10] railsForDaiz: has joined #ruby
[22:51:32] AnoHito_: has joined #ruby
[22:53:26] Wolland: has joined #ruby
[22:53:42] pankaj: has joined #ruby
[22:59:25] bronson: has joined #ruby
[23:01:12] Trynemjoel: has joined #ruby
[23:03:51] alveric: has joined #ruby
[23:03:52] enterprisey: has joined #ruby
[23:05:22] cschneid_: has joined #ruby
[23:07:41] railsForDaiz: has joined #ruby
[23:09:28] Jamdaman: has joined #ruby
[23:10:12] mim1k: has joined #ruby
[23:10:30] Jamdaman: has joined #ruby
[23:15:50] HoierM: has joined #ruby
[23:15:53] Authenticator: has joined #ruby
[23:17:13] HoierM: has joined #ruby
[23:20:40] SteenJobs: has joined #ruby
[23:21:37] SteenJobs: has joined #ruby
[23:30:45] cschneid_: has joined #ruby
[23:31:02] dx7: has joined #ruby
[23:31:20] dx7: anyone here using Phusion Passenger?
[23:31:35] JeanCarloMachado: has joined #ruby
[23:37:07] sp4rrow: has joined #ruby
[23:38:57] Aeyris: has joined #ruby
[23:39:10] spiette_: has joined #ruby
[23:39:18] JeanCarloMachado: has joined #ruby
[23:39:51] brent__: has joined #ruby
[23:44:03] Cohedrin: has joined #ruby
[23:45:48] sp4rrow: has joined #ruby
[23:48:58] JeanCarloMachado: has joined #ruby
[23:49:06] GodFather: has joined #ruby
[23:52:16] ozcanesen: has joined #ruby
[23:53:41] SteenJobs: has joined #ruby
[23:53:51] DLSteve: has joined #ruby
[23:54:32] charliesome: has joined #ruby
[23:54:57] Lucky_ABA: has joined #ruby
[23:59:11] nankyokusei: has joined #ruby